Releases: SchweizerischeBundesbahnen/scion-workbench
Releases · SchweizerischeBundesbahnen/scion-workbench
1.0.0-beta.20 (@scion/workbench-client)
1.0.0-beta.20 (2023-10-31)
Features
16.0.0-beta.8 (@scion/workbench)
16.0.0-beta.8 (2023-10-10)
Bug Fixes
- workbench: activate part when activating view (2e2368a)
- workbench: activate part when microfrontend gains focus (6e05d8c)
- workbench: allow to focus element outside the context menu when opened (2556b04)
- workbench: close view list menu when microfrontend gains focus (629cd8d)
- workbench: detach overlays associated with peripheral views when maximizing the main area (6cf3388)
- workbench: do not close views that are not closable (cf9993b)
Features
BREAKING CHANGES
-
workbench: The new tab design and theming of the SCION Workbench has introduced a breaking change.
To migrate:
- update
@scion/components
to version16.2.0
or higher - update
@scion/workbench-client
to version1.0.0-beta.19
or higher - The workbench can now be styled using well-defined design tokens instead of undocumented CSS selectors. See How to theme SCION Workbench for a list of supported tokens.
- The tab height has changed from two lines to one line, not displaying the heading anymore. You can change the tab height back to two lines by setting the
--sci-workbench-tab-height
design token to3.5rem
.:root { --sci-workbench-tab-height: 3.5rem; }
- Custom icon font is now configured top-level in
@scion/workbench
SCSS module. Previously, the custom icon font was configured under the$theme
map entry.Before:
@use '@scion/workbench' with ( $theme: ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) ) );
After:
@use '@scion/workbench' with ( icon-font: ( filename: 'custom-workbench-icons', version: '1.0.0' ) );
- Contribution of custom tab component has changed:
- Close button is now rendered separately and can be removed from the custom tab component.
- Custom tab component should add a right margin if rendered in the context of a tab or drag image to not overlap the close button.
- Inject current rendering context using
VIEW_TAB_RENDERING_CONTEXT
DI token instead ofVIEW_TAB_CONTEXT
DI token. Supported contexts aretab
,list-item
anddrag-image
.
- update
1.0.0-beta.19 (@scion/workbench-client)
1.0.0-beta.19 (2023-10-10)
Features
16.0.0-beta.7 (@scion/workbench)
16.0.0-beta.7 (2023-09-26)
Code Refactoring
BREAKING CHANGES
-
workbench: Changing the display of the start page has introduced a breaking change.
The workbench no longer supports displaying part actions on the start page. Instead, add controls (actions) directly to the start page.
16.0.0-beta.6 (@scion/workbench)
16.0.0-beta.6 (2023-09-20)
Bug Fixes
- workbench: do not publish changed layout objects until processed a layout change (8286d65)
Features
BREAKING CHANGES
-
workbench: Adding support for optional main area introduced breaking changes.
The following APIs have changed:
- renamed
MAIN_AREA_PART_ID
toMAIN_AREA
; - changed signature of
WorkbenchLayoutFn
to takeWorkbenchLayoutFactory
instead ofWorkbenchLayout
as argument; - layout definitions, if any, must now add the
MAIN_AREA
part explicitly; - changed inputs of
wbPartAction
directive to takecanMatch
function instead ofview
,part
andarea
inputs;
The following snippets illustrate how a migration could look like:
Initial layout: Before migration
import {MAIN_AREA_PART_ID, WorkbenchModule} from '@scion/workbench'; WorkbenchModule.forRoot({ layout: layout => layout .addPart('left', {relativeTo: MAIN_AREA_PART_ID, align: 'left', ratio: .25}) .addView('navigator', {partId: 'left', activateView: true}) });
Initial layout: After migration
import {MAIN_AREA, WorkbenchLayoutFactory, WorkbenchModule} from '@scion/workbench'; WorkbenchModule.forRoot({ layout: (factory: WorkbenchLayoutFactory) => factory .addPart(MAIN_AREA) .addPart('left', {relativeTo: MAIN_AREA, align: 'left', ratio: .25}) .addView('navigator', {partId: 'left', activateView: true}) });
Part Action: Before migration
<wb-workbench> <ng-template wbPartAction area="main"> <button [wbRouterLink]="'/path/to/view'"> Open View </button> </ng-template> </wb-workbench>
Part Action: After migration
<wb-workbench> <ng-template wbPartAction [canMatch]="isPartInMainArea"> <button [wbRouterLink]="'/path/to/view'"> Open View </button> </ng-template> </wb-workbench>
isPartInMainArea = (part: WorkbenchPart): boolean => { return part.isInMainArea; };
- renamed
16.0.0-beta.5 (@scion/workbench)
16.0.0-beta.5 (2023-08-24)
Bug Fixes
- workbench: display perspective also for slow/asynchronous initial navigation (da4bfe5)
- workbench: display view 'standalone' when moving it to a new window (3d851af), closes #477
- workbench: ensure menu items in view context-menu to display in full-width (0702fb1)
- workbench: resolve perspective layout storage issues (754747a), closes #470 #471 #472
- workbench: support application URL to contain view outlets of views contained the perspective grid (1eead4b), closes #474
Features
16.0.0-beta.4 (@scion/workbench)
16.0.0-beta.4 (2023-08-11)
Bug Fixes
16.0.0-beta.3 (@scion/workbench)
16.0.0-beta.3 (2023-08-08)
Bug Fixes
16.0.0-beta.2 (@scion/workbench)
16.0.0-beta.1 (@scion/workbench)
16.0.0-beta.1 (2023-06-08)
Dependencies
Features
- workbench: accept passing
undefined
in optional inputs (b19f428) - workbench: comply with basic accessibility rules (ed52668)
- workbench: mark required inputs as required (e8ccb94)
BREAKING CHANGES
-
workbench: Removing compatibility of deprecated router API introduced a breaking change in client applications.
To migrate applications using @scion/workbench-client:
- update @scion/workbench-client to version
1.0.0-beta.17
or greater
- update @scion/workbench-client to version
-
workbench: Updating
@scion/workbench
to Angular 16 introduced a breaking change.To migrate:
- update your application to Angular 16.x; for detailed migration instructions, refer to https://v16.angular.io/guide/update-to-latest-version;
- update @scion/components to version 16; for detailed migration instructions, refer to https://github.com/SchweizerischeBundesbahnen/scion-toolkit/blob/master/CHANGELOG_COMPONENTS.md;