Update to Element v49¶
Complete @simpl/* to @siemens/* migration¶
Element v49 is no longer released as an internal package under @simpl/*. Finish the migration to @siemens/*. See the migration guide (Siemens Employees only) for instructions.
Update to Angular 21¶
Update all @angular/* packages to Angular 21. Follow the Angular update guide.
Consider modernizing your application setup by running Angular migrations. Review your eslint setup. Use Siemens Lint and avoid disabling rules to catch deprecated Angular constructs.
Remove deprecations¶
Remove all Element deprecated API usages from your codebase. Use @typescript-eslint/no-deprecated to find them.
The v49 schematics cover these removals:
si-unauthorized-page/SiUnauthorizedPageComponentmigrated tosi-info-page/SiInfoPageComponentCONFIG_TOKENfrom dashboards replaced bySI_DASHBOARD_CONFIGURATION.ToastStateNamerenamed toStatusTypeand relocated to@siemens/element-ng/common.SiMapComponent.onResizeremoved entirely; references get stripped.
Update Element¶
Update the packages and run migrations:
npm i @simpl/brand@3.1.0 # Only for Siemens applications
ng update @siemens/element-ng@49
Do manual adjustments where needed, especially for the following:
Icons¶
Element Icons have an updated Design. Review icon usages outside of Element components.
Always use the correct classes for sizing an icon:
- (small: 16px):
<si-icon class="icon-sm" icon="..." /> - (default: 20px):
<si-icon class="icon" icon="..." /> - (large: 24px):
<si-icon class="icon-lg" icon="..." />
As the icons now have a reduced built-in margin, spacings must be adjusted:
- remove negative margins, which previously were needed to remove the spacing overhead
- add extra spacing-1 between icons and inline-text
Animations¶
Remove the @angular/animations package and @angular/platform-browser/animations imports if your app never uses the animations property in their @Component metadata. See our Motion animation chapter for more details.
Compile and test your application. Consult the changelog for more changes.
Manual updating¶
- Update all Element packages to version 49.0.0.
- Update
@simpl/brandto version 3.1.0. - Read the changelog and follow the suggested steps to update your application.
Except where otherwise noted, content on this site is licensed under MIT License.