@siemens/element-ng 48.3.0 → 48.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/accordion/index.d.ts +0 -1
  2. package/chat-messages/index.d.ts +176 -156
  3. package/dashboard/index.d.ts +2 -3
  4. package/fesm2022/siemens-element-ng-accordion.mjs +2 -3
  5. package/fesm2022/siemens-element-ng-accordion.mjs.map +1 -1
  6. package/fesm2022/siemens-element-ng-chat-messages.mjs +291 -168
  7. package/fesm2022/siemens-element-ng-chat-messages.mjs.map +1 -1
  8. package/fesm2022/siemens-element-ng-dashboard.mjs +7 -11
  9. package/fesm2022/siemens-element-ng-dashboard.mjs.map +1 -1
  10. package/fesm2022/siemens-element-ng-datepicker.mjs +5 -3
  11. package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -1
  12. package/fesm2022/siemens-element-ng-filtered-search.mjs +4 -8
  13. package/fesm2022/siemens-element-ng-filtered-search.mjs.map +1 -1
  14. package/fesm2022/siemens-element-ng-loading-spinner.mjs +2 -2
  15. package/fesm2022/siemens-element-ng-loading-spinner.mjs.map +1 -1
  16. package/fesm2022/siemens-element-ng-navbar-vertical.mjs +21 -24
  17. package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -1
  18. package/fesm2022/siemens-element-ng-select.mjs +4 -0
  19. package/fesm2022/siemens-element-ng-select.mjs.map +1 -1
  20. package/fesm2022/siemens-element-ng-side-panel.mjs +3 -5
  21. package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
  22. package/fesm2022/siemens-element-ng-status-bar.mjs +3 -4
  23. package/fesm2022/siemens-element-ng-status-bar.mjs.map +1 -1
  24. package/fesm2022/siemens-element-ng-tour.mjs +58 -21
  25. package/fesm2022/siemens-element-ng-tour.mjs.map +1 -1
  26. package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
  27. package/fesm2022/siemens-element-ng-tree-view.mjs +4 -4
  28. package/fesm2022/siemens-element-ng-tree-view.mjs.map +1 -1
  29. package/filtered-search/index.d.ts +6 -7
  30. package/navbar-vertical/index.d.ts +3 -4
  31. package/package.json +15 -15
  32. package/schematics/migrations/action-modal-migration/action-modal-migration.js +45 -4
  33. package/schematics/migrations/data/output-names.js +0 -1
  34. package/schematics/migrations/data/symbol-removals.js +0 -9
  35. package/schematics/migrations/element-migration/element-migration.js +1 -9
  36. package/schematics/migrations/wizard-migration/index.js +2 -10
  37. package/schematics/ts-import-to-siemens-migration/index.js +130 -25
  38. package/schematics/ts-import-to-siemens-migration/mappings/charts-ng-mappings.js +2 -1
  39. package/schematics/ts-import-to-siemens-migration/mappings/dashboards-ng-mappings.js +3 -1
  40. package/schematics/ts-import-to-siemens-migration/mappings/element-ng-mappings.js +54 -0
  41. package/schematics/ts-import-to-siemens-migration/mappings/element-translate-ng-mappings.js +1 -1
  42. package/schematics/ts-import-to-siemens-migration/mappings/index.js +1 -0
  43. package/schematics/ts-import-to-siemens-migration/mappings/maps-ng-mappings.js +2 -1
  44. package/schematics/ts-import-to-siemens-migration/mappings/native-charts-ng-mappings.js +33 -0
  45. package/schematics/utils/project-utils.js +1 -1
  46. package/schematics/utils/schematics-file-system.js +1 -1
  47. package/schematics/utils/template-utils.js +5 -5
  48. package/schematics/utils/ts-utils.js +1 -1
  49. package/select/index.d.ts +5 -0
  50. package/status-bar/index.d.ts +0 -1
  51. package/template-i18n.json +1 -0
  52. package/tour/index.d.ts +4 -2
  53. package/translate/index.d.ts +1 -0
@@ -16,6 +16,6 @@ export const ELEMENT_TRANSLATE_NG_MAPPINGS = {
16
16
  'SiTranslateNgxTModule': '@siemens/element-translate-ng/ngx-translate',
17
17
  'SiTranslatePipe': '@siemens/element-translate-ng/translate',
18
18
  't': '@siemens/element-translate-ng/translate',
19
- 'TranslatableString': '@siemens/element-translate-ng/translate-types',
19
+ 'TranslatableString': '@siemens/element-translate-ng/translate',
20
20
  'TranslationResult': '@siemens/element-translate-ng/translate'
21
21
  };
@@ -7,3 +7,4 @@ export * from './dashboards-ng-mappings.js';
7
7
  export * from './element-ng-mappings.js';
8
8
  export * from './element-translate-ng-mappings.js';
9
9
  export * from './maps-ng-mappings.js';
10
+ export * from './native-charts-ng-mappings.js';
@@ -42,5 +42,6 @@ export const MAPS_NG_MAPPINGS = {
42
42
  'SiMapPopoverComponent': '@siemens/maps-ng',
43
43
  'SiMapsNgModule': '@siemens/maps-ng',
44
44
  'SiMapTooltipComponent': '@siemens/maps-ng',
45
- 'TOOLTIP_FEATURES_TO_DISPLAY': '@siemens/maps-ng'
45
+ 'TOOLTIP_FEATURES_TO_DISPLAY': '@siemens/maps-ng',
46
+ 'SimplMapsNgModule': '@siemens/maps-ng'
46
47
  };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) Siemens 2016 - 2025
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export const NATIVE_CHARTS_NG_MAPPINGS = {
6
+ // Components
7
+ 'SiNChartGaugeComponent': '@siemens/native-charts-ng/gauge',
8
+ 'SiMicrochartBarComponent': '@siemens/native-charts-ng/microchart-bar',
9
+ 'SiMicrochartDonutComponent': '@siemens/native-charts-ng/microchart-donut',
10
+ 'SiMicrochartLineComponent': '@siemens/native-charts-ng/microchart-line',
11
+ 'SiMicrochartProgressComponent': '@siemens/native-charts-ng/microchart-progress',
12
+ // Module
13
+ 'SiNativeChartsNgModule': '@siemens/native-charts-ng',
14
+ 'SimplNativeChartsNgModule': '@siemens/native-charts-ng',
15
+ // Interfaces - Gauge
16
+ 'GaugeSeries': '@siemens/native-charts-ng/gauge',
17
+ 'GaugeSegment': '@siemens/native-charts-ng/gauge',
18
+ // Interfaces - Microchart Bar
19
+ 'MicrochartBarSeries': '@siemens/native-charts-ng/microchart-bar',
20
+ // Interfaces - Microchart Donut
21
+ 'MicrochartDonutSeries': '@siemens/native-charts-ng/microchart-donut',
22
+ // Interfaces - Microchart Line
23
+ 'MicrochartLineSeries': '@siemens/native-charts-ng/microchart-line',
24
+ // Interfaces - Microchart Progress
25
+ 'MicrochartProgressSeries': '@siemens/native-charts-ng/microchart-progress',
26
+ // Utilities
27
+ 'Coordinate': '@siemens/native-charts-ng/utils',
28
+ 'polarToCartesian': '@siemens/native-charts-ng/utils',
29
+ 'makeArc': '@siemens/native-charts-ng/utils',
30
+ 'makeLine': '@siemens/native-charts-ng/utils',
31
+ 'makePolyline': '@siemens/native-charts-ng/utils',
32
+ 'valueToRelativeAngle': '@siemens/native-charts-ng/utils'
33
+ };
@@ -5,7 +5,7 @@
5
5
  import { normalize } from '@angular-devkit/core';
6
6
  import { SchematicsException } from '@angular-devkit/schematics';
7
7
  import { allTargetOptions, allWorkspaceTargets, getWorkspace } from '@schematics/angular/utility/workspace';
8
- import { dirname, isAbsolute, resolve } from 'path';
8
+ import { dirname, isAbsolute, resolve } from 'path/posix';
9
9
  import { parseTsconfigFile } from './ts-utils.js';
10
10
  export const getGlobalStyles = async (tree) => {
11
11
  const globalStyles = new Set();
@@ -3,7 +3,7 @@
3
3
  * SPDX-License-Identifier: MIT
4
4
  */
5
5
  import { normalize } from '@angular-devkit/core';
6
- import { relative } from 'path';
6
+ import { relative } from 'path/posix';
7
7
  export class SchematicsFileSystem {
8
8
  tree;
9
9
  basePath = normalize(process.cwd());
@@ -1,4 +1,4 @@
1
- import { join, dirname } from 'path';
1
+ import { join, dirname } from 'path/posix';
2
2
  import ts from 'typescript';
3
3
  import { findAttribute, findElement } from './html-utils.js';
4
4
  export const getInlineTemplates = (source) => {
@@ -100,7 +100,7 @@ const removeSymbols = ({ template, offset, recorder, elementName, attributeSelec
100
100
  };
101
101
  export const renameElementTag = ({ tree, filePath, sourceFile, recorder, fromName, toName }) => {
102
102
  getInlineTemplates(sourceFile).forEach(template => renameElementTagInTemplate({
103
- template: template.text,
103
+ template: sourceFile.text.substring(template.getStart() + 1, template.getEnd() - 1),
104
104
  offset: template.getStart() + 1,
105
105
  toName,
106
106
  fromName,
@@ -122,7 +122,7 @@ export const renameElementTag = ({ tree, filePath, sourceFile, recorder, fromNam
122
122
  };
123
123
  export const renameAttribute = ({ tree, filePath, sourceFile, recorder, fromName, toName }) => {
124
124
  getInlineTemplates(sourceFile).forEach(template => renameAttributeInTemplate({
125
- template: template.text,
125
+ template: sourceFile.text.substring(template.getStart() + 1, template.getEnd() - 1),
126
126
  offset: template.getStart() + 1,
127
127
  toName,
128
128
  fromName,
@@ -144,7 +144,7 @@ export const renameAttribute = ({ tree, filePath, sourceFile, recorder, fromName
144
144
  };
145
145
  export const renameApi = ({ tree, filePath, sourceFile, recorder, elementName, apis }) => {
146
146
  getInlineTemplates(sourceFile).forEach(template => renameApiInTemplate({
147
- template: template.text,
147
+ template: sourceFile.text.substring(template.getStart() + 1, template.getEnd() - 1),
148
148
  offset: template.getStart() + 1,
149
149
  elementName,
150
150
  recorder,
@@ -166,7 +166,7 @@ export const renameApi = ({ tree, filePath, sourceFile, recorder, elementName, a
166
166
  };
167
167
  export const removeSymbol = ({ tree, filePath, sourceFile, recorder, elementName, attributeSelector, names }) => {
168
168
  getInlineTemplates(sourceFile).forEach(template => removeSymbols({
169
- template: template.text,
169
+ template: sourceFile.text.substring(template.getStart() + 1, template.getEnd() - 1),
170
170
  offset: template.getStart() + 1,
171
171
  elementName,
172
172
  attributeSelector,
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { normalize } from '@angular-devkit/core';
6
6
  import { SchematicsException } from '@angular-devkit/schematics';
7
- import { isAbsolute } from 'path';
7
+ import { isAbsolute } from 'path/posix';
8
8
  import ts from 'typescript';
9
9
  import { SchematicsFileSystem } from './schematics-file-system.js';
10
10
  /**
package/select/index.d.ts CHANGED
@@ -561,6 +561,11 @@ declare class SiSelectActionDirective {
561
561
  }
562
562
 
563
563
  declare class SiSelectActionsDirective {
564
+ /** @internal */
565
+ static ngTemplateContextGuard(directive: SiSelectActionsDirective, context: unknown): context is {
566
+ searchText?: string;
567
+ visibleOptionsCount?: number;
568
+ };
564
569
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiSelectActionsDirective, never>;
565
570
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SiSelectActionsDirective, "[siSelectActions]", ["si-select-actions"], {}, {}, never, never, true, never>;
566
571
  }
@@ -137,7 +137,6 @@ declare class SiStatusBarComponent implements DoCheck, OnDestroy, OnChanges {
137
137
  private readonly translateService;
138
138
  private readonly resizeObserver;
139
139
  private readonly measureService;
140
- private readonly destroyRef;
141
140
  constructor();
142
141
  ngOnChanges(changes: SimpleChanges): void;
143
142
  ngDoCheck(): void;
@@ -49,6 +49,7 @@
49
49
  "SI_DATEPICKER.SECONDS": "Seconds",
50
50
  "SI_DATEPICKER.START_DATE_PLACEHOLDER": "Start date",
51
51
  "SI_DATEPICKER.START_TIME_LABEL": "from",
52
+ "SI_DATEPICKER.TODAY": "Today",
52
53
  "SI_DATE_RANGE_FILTER.ADVANCED": "Advanced",
53
54
  "SI_DATE_RANGE_FILTER.AFTER": "After",
54
55
  "SI_DATE_RANGE_FILTER.APPLY": "Apply",
package/tour/index.d.ts CHANGED
@@ -104,10 +104,12 @@ declare class SiTourService {
104
104
  private makeStep;
105
105
  private scrollIntoView;
106
106
  private handleBeforeNextPromise;
107
- private makeOverlay;
107
+ private centerOverlay;
108
+ private attachOverlay;
109
+ private createFlexiblePositionStrategy;
110
+ private createOrUpdateOverlays;
108
111
  private handleResizeSubscription;
109
112
  private isElementVisible;
110
- private handlePositionChangeSubscription;
111
113
  private getElement;
112
114
  private hide;
113
115
  static ɵfac: i0.ɵɵFactoryDeclaration<SiTourService, never>;
@@ -52,6 +52,7 @@ interface SiTranslatableKeys {
52
52
  'SI_DATEPICKER.SECONDS'?: string;
53
53
  'SI_DATEPICKER.START_DATE_PLACEHOLDER'?: string;
54
54
  'SI_DATEPICKER.START_TIME_LABEL'?: string;
55
+ 'SI_DATEPICKER.TODAY'?: string;
55
56
  'SI_DATE_RANGE_FILTER.ADVANCED'?: string;
56
57
  'SI_DATE_RANGE_FILTER.AFTER'?: string;
57
58
  'SI_DATE_RANGE_FILTER.APPLY'?: string;