@siemens/element-ng 51.0.0 → 51.0.1
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.
- package/fesm2022/siemens-element-ng-accordion.mjs +2 -2
- package/fesm2022/siemens-element-ng-accordion.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ag-grid.mjs +125 -125
- package/fesm2022/siemens-element-ng-ag-grid.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-application-header.mjs +4 -4
- package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-avatar.mjs +5 -5
- package/fesm2022/siemens-element-ng-avatar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-breadcrumb.mjs +2 -2
- package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-card.mjs +2 -2
- package/fesm2022/siemens-element-ng-card.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-carousel.mjs +2 -2
- package/fesm2022/siemens-element-ng-carousel.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-chat-messages.mjs +18 -18
- package/fesm2022/siemens-element-ng-chat-messages.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-circle-status.mjs +2 -2
- package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-color-picker.mjs +18 -18
- package/fesm2022/siemens-element-ng-color-picker.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-connection-strength.mjs +2 -2
- package/fesm2022/siemens-element-ng-connection-strength.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-content-action-bar.mjs +2 -2
- package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-dashboard.mjs +8 -8
- package/fesm2022/siemens-element-ng-dashboard.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +2 -2
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-datepicker.mjs +8 -8
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs +2 -2
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-empty-state.mjs +2 -2
- package/fesm2022/siemens-element-ng-empty-state.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-file-uploader.mjs +2 -2
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-filter-bar.mjs +4 -4
- package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-filtered-search.mjs +4 -4
- package/fesm2022/siemens-element-ng-filtered-search.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-footer.mjs +2 -2
- package/fesm2022/siemens-element-ng-footer.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-help-button.mjs +2 -2
- package/fesm2022/siemens-element-ng-help-button.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-landing-page.mjs +2 -2
- package/fesm2022/siemens-element-ng-landing-page.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-language-switcher.mjs +2 -2
- package/fesm2022/siemens-element-ng-language-switcher.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-list-details.mjs +2 -2
- package/fesm2022/siemens-element-ng-list-details.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-loading-spinner.mjs +4 -4
- package/fesm2022/siemens-element-ng-loading-spinner.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-maplibre.mjs +21 -21
- package/fesm2022/siemens-element-ng-maplibre.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-markdown-extensions-katex.mjs +2 -2
- package/fesm2022/siemens-element-ng-markdown-extensions-katex.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-markdown-hightlighter-highlightjs.mjs +2 -2
- package/fesm2022/siemens-element-ng-markdown-hightlighter-highlightjs.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-menu.mjs +6 -6
- package/fesm2022/siemens-element-ng-menu.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar-vertical-next.mjs +6 -6
- package/fesm2022/siemens-element-ng-navbar-vertical-next.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs +6 -6
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-notification-item.mjs +2 -4
- package/fesm2022/siemens-element-ng-notification-item.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-number-input.mjs +2 -2
- package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-password-strength.mjs +2 -2
- package/fesm2022/siemens-element-ng-password-strength.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-phone-number.mjs +2 -2
- package/fesm2022/siemens-element-ng-phone-number.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-photo-upload.mjs +4 -4
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-pills-input.mjs +2 -2
- package/fesm2022/siemens-element-ng-pills-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-result-details-list.mjs +2 -2
- package/fesm2022/siemens-element-ng-result-details-list.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-search-bar.mjs +2 -2
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-select.mjs +4 -4
- package/fesm2022/siemens-element-ng-select.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-side-panel.mjs +6 -6
- package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-skip-links.mjs +2 -2
- package/fesm2022/siemens-element-ng-skip-links.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-slider.mjs +2 -2
- package/fesm2022/siemens-element-ng-slider.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-source-chip.mjs +2 -2
- package/fesm2022/siemens-element-ng-source-chip.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-split.mjs +4 -4
- package/fesm2022/siemens-element-ng-split.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-bar.mjs +4 -4
- package/fesm2022/siemens-element-ng-status-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-counter.mjs +2 -2
- package/fesm2022/siemens-element-ng-status-counter.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-toggle.mjs +2 -2
- package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-summary-chip.mjs +2 -2
- package/fesm2022/siemens-element-ng-summary-chip.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-summary-widget.mjs +2 -2
- package/fesm2022/siemens-element-ng-summary-widget.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-system-banner.mjs +2 -2
- package/fesm2022/siemens-element-ng-system-banner.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs-legacy.mjs +2 -2
- package/fesm2022/siemens-element-ng-tabs-legacy.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs.mjs +2 -2
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-threshold.mjs +2 -2
- package/fesm2022/siemens-element-ng-threshold.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-toast-notification.mjs +2 -2
- package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tour.mjs +4 -4
- package/fesm2022/siemens-element-ng-tour.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tree-view.mjs +4 -4
- package/fesm2022/siemens-element-ng-tree-view.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-wizard.mjs +2 -2
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -1
- package/maplibre/styles/maplibre-gl.scss +22 -22
- package/package.json +4 -4
- package/schematics/migration.json +5 -0
- package/schematics/migrations/data/css-custom-properties.js +204 -12
- package/schematics/migrations/data/element-migration-data.js +13 -1
- package/schematics/migrations/data/index.js +1 -1
- package/schematics/ng-update/index.js +1 -0
- package/schematics/ng-update/migrate-to-v51-0-1.js +12 -0
- package/schematics/utils/testing.js +13 -1
- package/types/siemens-element-ng-avatar.d.ts +1 -1
- package/types/siemens-element-ng-notification-item.d.ts +0 -12
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
"version": "51.0.0",
|
|
6
6
|
"description": "Updates Siemens element to v51",
|
|
7
7
|
"factory": "./ng-update/index#migrateToV51"
|
|
8
|
+
},
|
|
9
|
+
"migration-v51-0-1": {
|
|
10
|
+
"version": "51.0.1",
|
|
11
|
+
"description": "Renames Siemens Design Language color tokens to include the color group segment",
|
|
12
|
+
"factory": "./ng-update/index#migrateToV5101"
|
|
8
13
|
}
|
|
9
14
|
}
|
|
10
15
|
}
|
|
@@ -1,3 +1,194 @@
|
|
|
1
|
+
/** Color token suffixes that moved from `si.sys.<group>` to `si.sys.color.<group>`. */
|
|
2
|
+
export const SYS_COLOR_TOKEN_NAMES = [
|
|
3
|
+
'background-0',
|
|
4
|
+
'background-1',
|
|
5
|
+
'background-2',
|
|
6
|
+
'background-3',
|
|
7
|
+
'background-4',
|
|
8
|
+
'background-accent',
|
|
9
|
+
'background-accent-active',
|
|
10
|
+
'background-accent-hover',
|
|
11
|
+
'background-accent-secondary',
|
|
12
|
+
'background-accent-secondary-active',
|
|
13
|
+
'background-accent-secondary-hover',
|
|
14
|
+
'background-active',
|
|
15
|
+
'background-caution',
|
|
16
|
+
'background-caution-active',
|
|
17
|
+
'background-caution-hover',
|
|
18
|
+
'background-caution-subtle',
|
|
19
|
+
'background-critical',
|
|
20
|
+
'background-critical-active',
|
|
21
|
+
'background-critical-hover',
|
|
22
|
+
'background-critical-subtle',
|
|
23
|
+
'background-danger',
|
|
24
|
+
'background-danger-active',
|
|
25
|
+
'background-danger-hover',
|
|
26
|
+
'background-danger-secondary',
|
|
27
|
+
'background-danger-subtle',
|
|
28
|
+
'background-hover',
|
|
29
|
+
'background-information',
|
|
30
|
+
'background-information-active',
|
|
31
|
+
'background-information-hover',
|
|
32
|
+
'background-information-subtle',
|
|
33
|
+
'background-inverse',
|
|
34
|
+
'background-neutral',
|
|
35
|
+
'background-neutral-active',
|
|
36
|
+
'background-neutral-hover',
|
|
37
|
+
'background-success',
|
|
38
|
+
'background-success-active',
|
|
39
|
+
'background-success-hover',
|
|
40
|
+
'background-success-subtle',
|
|
41
|
+
'background-warning',
|
|
42
|
+
'background-warning-active',
|
|
43
|
+
'background-warning-hover',
|
|
44
|
+
'background-warning-secondary',
|
|
45
|
+
'background-warning-subtle',
|
|
46
|
+
'border-1',
|
|
47
|
+
'border-2',
|
|
48
|
+
'border-3',
|
|
49
|
+
'border-4',
|
|
50
|
+
'border-accent',
|
|
51
|
+
'border-accent-active',
|
|
52
|
+
'border-accent-hover',
|
|
53
|
+
'border-caution',
|
|
54
|
+
'border-critical',
|
|
55
|
+
'border-danger',
|
|
56
|
+
'border-danger-secondary',
|
|
57
|
+
'border-information',
|
|
58
|
+
'border-inverse',
|
|
59
|
+
'border-neutral',
|
|
60
|
+
'border-success',
|
|
61
|
+
'border-warning',
|
|
62
|
+
'border-warning-secondary',
|
|
63
|
+
'code-1',
|
|
64
|
+
'code-2',
|
|
65
|
+
'code-3',
|
|
66
|
+
'code-4',
|
|
67
|
+
'code-5',
|
|
68
|
+
'code-6',
|
|
69
|
+
'code-7',
|
|
70
|
+
'code-8',
|
|
71
|
+
'code-9',
|
|
72
|
+
'code-10',
|
|
73
|
+
'code-11',
|
|
74
|
+
'code-12',
|
|
75
|
+
'data-categorical-1',
|
|
76
|
+
'data-categorical-2',
|
|
77
|
+
'data-categorical-3',
|
|
78
|
+
'data-categorical-4',
|
|
79
|
+
'data-categorical-5',
|
|
80
|
+
'data-categorical-6',
|
|
81
|
+
'data-categorical-7',
|
|
82
|
+
'data-categorical-8',
|
|
83
|
+
'data-categorical-9',
|
|
84
|
+
'data-categorical-10',
|
|
85
|
+
'data-categorical-11',
|
|
86
|
+
'data-categorical-12',
|
|
87
|
+
'data-categorical-13',
|
|
88
|
+
'data-categorical-14',
|
|
89
|
+
'data-categorical-15',
|
|
90
|
+
'data-categorical-16',
|
|
91
|
+
'data-categorical-17',
|
|
92
|
+
'data-rating-average',
|
|
93
|
+
'data-rating-bad',
|
|
94
|
+
'data-rating-excellent',
|
|
95
|
+
'data-rating-good',
|
|
96
|
+
'data-rating-poor',
|
|
97
|
+
'data-sequential-avocado-1',
|
|
98
|
+
'data-sequential-avocado-2',
|
|
99
|
+
'data-sequential-avocado-3',
|
|
100
|
+
'data-sequential-avocado-4',
|
|
101
|
+
'data-sequential-blue-1',
|
|
102
|
+
'data-sequential-blue-2',
|
|
103
|
+
'data-sequential-blue-3',
|
|
104
|
+
'data-sequential-blue-4',
|
|
105
|
+
'data-sequential-deep-blue-1',
|
|
106
|
+
'data-sequential-deep-blue-2',
|
|
107
|
+
'data-sequential-deep-blue-3',
|
|
108
|
+
'data-sequential-deep-blue-4',
|
|
109
|
+
'data-sequential-green-1',
|
|
110
|
+
'data-sequential-green-2',
|
|
111
|
+
'data-sequential-green-3',
|
|
112
|
+
'data-sequential-green-4',
|
|
113
|
+
'data-sequential-interactive-coral-1',
|
|
114
|
+
'data-sequential-interactive-coral-2',
|
|
115
|
+
'data-sequential-interactive-coral-3',
|
|
116
|
+
'data-sequential-interactive-coral-4',
|
|
117
|
+
'data-sequential-orange-1',
|
|
118
|
+
'data-sequential-orange-2',
|
|
119
|
+
'data-sequential-orange-3',
|
|
120
|
+
'data-sequential-orange-4',
|
|
121
|
+
'data-sequential-orchid-1',
|
|
122
|
+
'data-sequential-orchid-2',
|
|
123
|
+
'data-sequential-orchid-3',
|
|
124
|
+
'data-sequential-orchid-4',
|
|
125
|
+
'data-sequential-plum-1',
|
|
126
|
+
'data-sequential-plum-2',
|
|
127
|
+
'data-sequential-plum-3',
|
|
128
|
+
'data-sequential-plum-4',
|
|
129
|
+
'data-sequential-purple-1',
|
|
130
|
+
'data-sequential-purple-2',
|
|
131
|
+
'data-sequential-purple-3',
|
|
132
|
+
'data-sequential-purple-4',
|
|
133
|
+
'data-sequential-red-1',
|
|
134
|
+
'data-sequential-red-2',
|
|
135
|
+
'data-sequential-red-3',
|
|
136
|
+
'data-sequential-red-4',
|
|
137
|
+
'data-sequential-royal-blue-1',
|
|
138
|
+
'data-sequential-royal-blue-2',
|
|
139
|
+
'data-sequential-royal-blue-3',
|
|
140
|
+
'data-sequential-royal-blue-4',
|
|
141
|
+
'data-sequential-sand-1',
|
|
142
|
+
'data-sequential-sand-2',
|
|
143
|
+
'data-sequential-sand-3',
|
|
144
|
+
'data-sequential-sand-4',
|
|
145
|
+
'data-sequential-turquoise-1',
|
|
146
|
+
'data-sequential-turquoise-2',
|
|
147
|
+
'data-sequential-turquoise-3',
|
|
148
|
+
'data-sequential-turquoise-4',
|
|
149
|
+
'data-sequential-yellow-1',
|
|
150
|
+
'data-sequential-yellow-2',
|
|
151
|
+
'data-sequential-yellow-3',
|
|
152
|
+
'data-sequential-yellow-4',
|
|
153
|
+
'effects-backdrop',
|
|
154
|
+
'effects-focus',
|
|
155
|
+
'effects-logo',
|
|
156
|
+
'effects-shadow-1',
|
|
157
|
+
'effects-shadow-2',
|
|
158
|
+
'effects-shadow-3',
|
|
159
|
+
'effects-shadow-4',
|
|
160
|
+
'text-accent',
|
|
161
|
+
'text-accent-active',
|
|
162
|
+
'text-accent-hover',
|
|
163
|
+
'text-caution',
|
|
164
|
+
'text-critical',
|
|
165
|
+
'text-danger',
|
|
166
|
+
'text-disabled',
|
|
167
|
+
'text-information',
|
|
168
|
+
'text-inverse',
|
|
169
|
+
'text-on-accent',
|
|
170
|
+
'text-on-accent-secondary',
|
|
171
|
+
'text-on-accent-secondary-active',
|
|
172
|
+
'text-on-accent-secondary-hover',
|
|
173
|
+
'text-on-caution',
|
|
174
|
+
'text-on-critical',
|
|
175
|
+
'text-on-danger',
|
|
176
|
+
'text-on-danger-secondary',
|
|
177
|
+
'text-on-information',
|
|
178
|
+
'text-on-neutral',
|
|
179
|
+
'text-on-success',
|
|
180
|
+
'text-on-warning',
|
|
181
|
+
'text-on-warning-secondary',
|
|
182
|
+
'text-primary',
|
|
183
|
+
'text-secondary',
|
|
184
|
+
'text-success',
|
|
185
|
+
'text-warning'
|
|
186
|
+
];
|
|
187
|
+
export const SYS_COLOR_TOKEN_RENAMES = SYS_COLOR_TOKEN_NAMES.flatMap(name => [
|
|
188
|
+
{ replace: `$si-sys-${name}`, replaceWith: `$si-sys-color-${name}` },
|
|
189
|
+
{ replace: `--si-sys-${name}`, replaceWith: `--si-sys-color-${name}` },
|
|
190
|
+
{ replace: `si-sys-${name}`, replaceWith: `si-sys-color-${name}` }
|
|
191
|
+
]);
|
|
1
192
|
export const CSS_CUSTOM_PROPERTIES_MIGRATION = [
|
|
2
193
|
{
|
|
3
194
|
replace: '--si-feedback-icon-offset',
|
|
@@ -157,47 +348,47 @@ export const CSS_CUSTOM_PROPERTIES_MIGRATION = [
|
|
|
157
348
|
},
|
|
158
349
|
{
|
|
159
350
|
replace: '$box-shadow',
|
|
160
|
-
replaceWith: '$si-sys-effects-shadow-2'
|
|
351
|
+
replaceWith: '$si-sys-color-effects-shadow-2'
|
|
161
352
|
},
|
|
162
353
|
{
|
|
163
354
|
replace: '$box-shadow-sm',
|
|
164
|
-
replaceWith: '$si-sys-effects-shadow-1'
|
|
355
|
+
replaceWith: '$si-sys-color-effects-shadow-1'
|
|
165
356
|
},
|
|
166
357
|
{
|
|
167
358
|
replace: '$box-shadow-lg',
|
|
168
|
-
replaceWith: '$si-sys-effects-shadow-3'
|
|
359
|
+
replaceWith: '$si-sys-color-effects-shadow-3'
|
|
169
360
|
},
|
|
170
361
|
{
|
|
171
362
|
replace: '$popover-box-shadow',
|
|
172
|
-
replaceWith: '$si-sys-effects-shadow-3'
|
|
363
|
+
replaceWith: '$si-sys-color-effects-shadow-3'
|
|
173
364
|
},
|
|
174
365
|
{
|
|
175
366
|
replace: '$modal-content-box-shadow-xs',
|
|
176
|
-
replaceWith: '$si-sys-effects-shadow-3'
|
|
367
|
+
replaceWith: '$si-sys-color-effects-shadow-3'
|
|
177
368
|
},
|
|
178
369
|
{
|
|
179
370
|
replace: '$modal-content-box-shadow-sm-up',
|
|
180
|
-
replaceWith: '$si-sys-effects-shadow-2'
|
|
371
|
+
replaceWith: '$si-sys-color-effects-shadow-2'
|
|
181
372
|
},
|
|
182
373
|
{
|
|
183
374
|
replace: '$thumbnail-box-shadow',
|
|
184
|
-
replaceWith: '$si-sys-effects-shadow-1'
|
|
375
|
+
replaceWith: '$si-sys-color-effects-shadow-1'
|
|
185
376
|
},
|
|
186
377
|
{
|
|
187
378
|
replace: '$element-elevation-1',
|
|
188
|
-
replaceWith: '$si-sys-effects-shadow-1'
|
|
379
|
+
replaceWith: '$si-sys-color-effects-shadow-1'
|
|
189
380
|
},
|
|
190
381
|
{
|
|
191
382
|
replace: '$element-elevation-2',
|
|
192
|
-
replaceWith: '$si-sys-effects-shadow-2'
|
|
383
|
+
replaceWith: '$si-sys-color-effects-shadow-2'
|
|
193
384
|
},
|
|
194
385
|
{
|
|
195
386
|
replace: '$element-elevation-3',
|
|
196
|
-
replaceWith: '$si-sys-effects-shadow-3'
|
|
387
|
+
replaceWith: '$si-sys-color-effects-shadow-3'
|
|
197
388
|
},
|
|
198
389
|
{
|
|
199
390
|
replace: '$element-elevation-4',
|
|
200
|
-
replaceWith: '$si-sys-effects-shadow-4'
|
|
391
|
+
replaceWith: '$si-sys-color-effects-shadow-4'
|
|
201
392
|
},
|
|
202
393
|
...['font-size', 'line-height', 'font-weight'].flatMap(property => [
|
|
203
394
|
{
|
|
@@ -220,5 +411,6 @@ export const CSS_CUSTOM_PROPERTIES_MIGRATION = [
|
|
|
220
411
|
replace: `$si-${property}-display-bold`,
|
|
221
412
|
replaceWith: `$si-${property}-display-lg-sbold`
|
|
222
413
|
}
|
|
223
|
-
])
|
|
414
|
+
]),
|
|
415
|
+
...SYS_COLOR_TOKEN_RENAMES
|
|
224
416
|
];
|
|
@@ -6,7 +6,7 @@ import { ATTRIBUTE_SELECTORS_MIGRATION } from './attribute-selectors.js';
|
|
|
6
6
|
import { CLASS_MEMBER_REPLACEMENTS_MIGRATION } from './class-member-replacement.js';
|
|
7
7
|
import { COMPONENT_PROPERTY_NAMES_MIGRATION } from './component-property-names.js';
|
|
8
8
|
import { COMPONENT_PROPERTY_TO_CHILD_MIGRATION } from './component-property-to-child.js';
|
|
9
|
-
import { CSS_CUSTOM_PROPERTIES_MIGRATION } from './css-custom-properties.js';
|
|
9
|
+
import { CSS_CUSTOM_PROPERTIES_MIGRATION, SYS_COLOR_TOKEN_RENAMES } from './css-custom-properties.js';
|
|
10
10
|
import { ELEMENT_CLASS_CHANGES_MIGRATION } from './element-class-changes.js';
|
|
11
11
|
import { ELEMENT_SELECTORS_MIGRATION } from './element-selectors.js';
|
|
12
12
|
import { PROVIDER_FUNCTION_REMOVALS_MIGRATION } from './provider-function-removals.js';
|
|
@@ -24,3 +24,15 @@ export const getElementMigrationData = () => ({
|
|
|
24
24
|
symbolRemovalChanges: SYMBOL_REMOVALS_MIGRATION,
|
|
25
25
|
symbolRenamingChanges: SYMBOL_RENAMING_MIGRATION
|
|
26
26
|
});
|
|
27
|
+
export const getColorTokenRenameMigrationData = () => ({
|
|
28
|
+
attributeSelectorChanges: [],
|
|
29
|
+
classMemberReplacementChanges: [],
|
|
30
|
+
componentPropertyNameChanges: [],
|
|
31
|
+
cssCustomPropertyChanges: SYS_COLOR_TOKEN_RENAMES,
|
|
32
|
+
componentPropertyToChildChanges: [],
|
|
33
|
+
elementClassChanges: [],
|
|
34
|
+
elementSelectorChanges: [],
|
|
35
|
+
providerFunctionRemovalChanges: [],
|
|
36
|
+
symbolRemovalChanges: [],
|
|
37
|
+
symbolRenamingChanges: []
|
|
38
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getElementMigrationData } from './element-migration-data.js';
|
|
1
|
+
export { getColorTokenRenameMigrationData, getElementMigrationData } from './element-migration-data.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { getColorTokenRenameMigrationData } from '../migrations/data/index.js';
|
|
6
|
+
import { elementMigrationRule } from '../migrations/element-migration/element-migration.js';
|
|
7
|
+
export const migrateToV5101 = () => {
|
|
8
|
+
return (tree, context) => {
|
|
9
|
+
context.logger.info('🚀 Starting color token rename for v51.0.1...');
|
|
10
|
+
return elementMigrationRule({ path: '/' }, getColorTokenRenameMigrationData())(tree, context);
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
+
import { UnitTestTree } from '@angular-devkit/schematics/testing';
|
|
2
|
+
const testAppCache = new Map();
|
|
1
3
|
/**
|
|
2
4
|
* Creates a sample workspace with two applications: 'app' (default) and 'second-app'
|
|
3
5
|
*/
|
|
4
6
|
export const createTestApp = async (runner, appOptions = {}, files) => {
|
|
5
|
-
|
|
7
|
+
const cacheKey = JSON.stringify(appOptions);
|
|
8
|
+
let cachedTree = testAppCache.get(cacheKey);
|
|
9
|
+
if (!cachedTree) {
|
|
10
|
+
cachedTree = createBaseTestApp(runner, appOptions);
|
|
11
|
+
testAppCache.set(cacheKey, cachedTree);
|
|
12
|
+
}
|
|
13
|
+
const tree = new UnitTestTree((await cachedTree).branch());
|
|
6
14
|
if (files) {
|
|
7
15
|
addTestFiles(tree, files);
|
|
8
16
|
}
|
|
17
|
+
return tree;
|
|
18
|
+
};
|
|
19
|
+
const createBaseTestApp = async (runner, appOptions) => {
|
|
20
|
+
let tree = await createWorkspace(runner);
|
|
9
21
|
tree = await runner.runExternalSchematic('@schematics/angular', 'application', { name: 'app', ...appOptions }, tree);
|
|
10
22
|
tree = await runner.runExternalSchematic('@schematics/angular', 'application', { name: 'second-app', ...appOptions }, tree);
|
|
11
23
|
return tree;
|
|
@@ -9,7 +9,7 @@ import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
|
9
9
|
*/
|
|
10
10
|
declare class SiAvatarBackgroundColorDirective implements OnChanges {
|
|
11
11
|
/**
|
|
12
|
-
* The desired color index from $si-sys-data-categorical-* color tokens. This can be set to any kind of
|
|
12
|
+
* The desired color index from $si-sys-color-data-categorical-* color tokens. This can be set to any kind of
|
|
13
13
|
* positive integer that is then mapped to a color index.
|
|
14
14
|
* A better way to set a pseudo-random color is to set {@link autoColor} to `true`.
|
|
15
15
|
*
|
|
@@ -8,7 +8,6 @@ import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
|
8
8
|
* @param type - The type of the link, always 'router-link'.
|
|
9
9
|
* @param routerLink - The router link to navigate to.
|
|
10
10
|
* @param extras - Optional navigation extras for the router.
|
|
11
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
12
11
|
*/
|
|
13
12
|
interface NotificationItemRouterLink {
|
|
14
13
|
type: 'router-link';
|
|
@@ -20,7 +19,6 @@ interface NotificationItemRouterLink {
|
|
|
20
19
|
* @param type - The type of the link, always 'link'.
|
|
21
20
|
* @param href - The URL to navigate to.
|
|
22
21
|
* @param target - Optional target attribute for the link.
|
|
23
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
24
22
|
*/
|
|
25
23
|
interface NotificationItemLink {
|
|
26
24
|
type: 'link';
|
|
@@ -31,7 +29,6 @@ interface NotificationItemLink {
|
|
|
31
29
|
* Base interface for notification item actions.
|
|
32
30
|
* @param ariaLabel - The ARIA label for accessibility.
|
|
33
31
|
* @param icon - The icon to display for the action.
|
|
34
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
35
32
|
*/
|
|
36
33
|
interface NotificationItemBase {
|
|
37
34
|
ariaLabel: TranslatableString;
|
|
@@ -54,7 +51,6 @@ interface NotificationItemActionCircleButton extends NotificationItemBase {
|
|
|
54
51
|
* @param type - The type of the action, always 'action-icon-button'.
|
|
55
52
|
* @param customClass - Optional custom CSS class for styling.
|
|
56
53
|
* @param action - The action to perform when the button is clicked.
|
|
57
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
58
54
|
*/
|
|
59
55
|
interface NotificationItemActionIconButton extends NotificationItemBase {
|
|
60
56
|
type: 'action-icon-button';
|
|
@@ -66,7 +62,6 @@ interface NotificationItemActionIconButton extends NotificationItemBase {
|
|
|
66
62
|
* @param type - The type of the link, always 'router-link'.
|
|
67
63
|
* @param routerLink - The router link to navigate to.
|
|
68
64
|
* @param extras - Optional navigation extras for the router.
|
|
69
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
70
65
|
*/
|
|
71
66
|
interface NotificationItemRouterLinkIcon extends NotificationItemBase {
|
|
72
67
|
type: 'router-link';
|
|
@@ -78,7 +73,6 @@ interface NotificationItemRouterLinkIcon extends NotificationItemBase {
|
|
|
78
73
|
* @param type - The type of the link, always 'link'.
|
|
79
74
|
* @param href - The URL to navigate to.
|
|
80
75
|
* @param target - Optional target attribute for the link.
|
|
81
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
82
76
|
*/
|
|
83
77
|
interface NotificationItemLinkIcon extends NotificationItemBase {
|
|
84
78
|
type: 'link';
|
|
@@ -90,7 +84,6 @@ interface NotificationItemLinkIcon extends NotificationItemBase {
|
|
|
90
84
|
* @param type - The type of the action, always 'action-button'.
|
|
91
85
|
* @param label - The label to display on the button.
|
|
92
86
|
* @param action - The action to perform when the button is clicked.
|
|
93
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
94
87
|
*/
|
|
95
88
|
interface NotificationItemActionButton {
|
|
96
89
|
type: 'action-button';
|
|
@@ -101,7 +94,6 @@ interface NotificationItemActionButton {
|
|
|
101
94
|
* Interface for a menu in a notification item.
|
|
102
95
|
* @param type - The type of the action, always 'menu'.
|
|
103
96
|
* @param menuItems - The menu items to display in the menu.
|
|
104
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
105
97
|
*/
|
|
106
98
|
interface NotificationItemMenu {
|
|
107
99
|
type: 'menu';
|
|
@@ -109,20 +101,16 @@ interface NotificationItemMenu {
|
|
|
109
101
|
}
|
|
110
102
|
/**
|
|
111
103
|
* Union type for quick actions in a notification item.
|
|
112
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
113
104
|
*/
|
|
114
105
|
type NotificationItemQuickAction = NotificationItemActionCircleButton | NotificationItemActionIconButton | NotificationItemLinkIcon | NotificationItemRouterLinkIcon;
|
|
115
106
|
/**
|
|
116
107
|
* Union type for primary actions in a notification item.
|
|
117
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
118
108
|
*/
|
|
119
109
|
type NotificationItemPrimaryAction = NotificationItemActionCircleButton | NotificationItemActionIconButton | NotificationItemLinkIcon | NotificationItemRouterLinkIcon | NotificationItemMenu | NotificationItemActionButton;
|
|
120
110
|
/**
|
|
121
111
|
* This component represents a single notification that can be used within notification
|
|
122
112
|
* centers, popovers, or other containers. It supports various action types including
|
|
123
113
|
* router links, standard links, action buttons, and menus.
|
|
124
|
-
*
|
|
125
|
-
* @deprecated Use the CSS-based list item component instead.
|
|
126
114
|
*/
|
|
127
115
|
declare class SiNotificationItemComponent {
|
|
128
116
|
protected readonly icons: Record<"elementOptionsVertical", string>;
|