@ui5/webcomponents-tools 0.0.0-d9b978d1d → 0.0.0-da0d3eb88

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 (40) hide show
  1. package/CHANGELOG.md +514 -0
  2. package/assets-meta.js +2 -6
  3. package/components-package/eslint.js +1 -0
  4. package/components-package/nps.js +20 -17
  5. package/components-package/wdio.js +414 -405
  6. package/icons-collection/nps.js +2 -2
  7. package/lib/amd-to-es6/index.js +102 -0
  8. package/lib/amd-to-es6/no-remaining-require.js +33 -0
  9. package/lib/cem/custom-elements-manifest.config.mjs +501 -0
  10. package/lib/cem/event.mjs +131 -0
  11. package/lib/cem/schema-internal.json +1357 -0
  12. package/lib/cem/schema.json +1098 -0
  13. package/lib/cem/types-internal.d.ts +796 -0
  14. package/lib/cem/types.d.ts +736 -0
  15. package/lib/cem/utils.mjs +384 -0
  16. package/lib/cem/validate.js +70 -0
  17. package/lib/create-icons/index.js +8 -6
  18. package/lib/create-illustrations/index.js +40 -33
  19. package/lib/create-new-component/index.js +4 -11
  20. package/lib/create-new-component/tsFileContentTemplate.js +3 -12
  21. package/lib/css-processors/css-processor-component-styles.mjs +48 -0
  22. package/lib/css-processors/scope-variables.mjs +3 -0
  23. package/lib/dev-server/ssr-dom-shim-loader.js +26 -0
  24. package/lib/generate-js-imports/illustrations.js +9 -9
  25. package/lib/generate-json-imports/i18n.js +3 -35
  26. package/lib/generate-json-imports/themes.js +2 -29
  27. package/lib/i18n/defaults.js +1 -1
  28. package/lib/remove-dev-mode/remove-dev-mode.mjs +37 -0
  29. package/lib/scoping/lint-src.js +8 -7
  30. package/package.json +6 -2
  31. package/components-package/wdio.sync.js +0 -368
  32. package/lib/create-new-component/jsFileContentTemplate.js +0 -73
  33. package/lib/esm-abs-to-rel/index.js +0 -61
  34. package/lib/generate-custom-elements-manifest/index.js +0 -327
  35. package/lib/jsdoc/config.json +0 -29
  36. package/lib/jsdoc/configTypescript.json +0 -29
  37. package/lib/jsdoc/plugin.js +0 -2468
  38. package/lib/jsdoc/preprocess.js +0 -146
  39. package/lib/jsdoc/template/publish.js +0 -4120
  40. package/lib/replace-global-core/index.js +0 -25
package/CHANGELOG.md CHANGED
@@ -3,6 +3,520 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.0.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.2...v2.0.0-rc.3) (2024-05-10)
7
+
8
+
9
+ ### chore
10
+
11
+ * **Icons:** make pathData async ([#8785](https://github.com/SAP/ui5-webcomponents/issues/8785)) ([0549dc9](https://github.com/SAP/ui5-webcomponents/commit/0549dc95edae139f7a4f9efbbc7170922b3ab6cb))
12
+
13
+
14
+ ### Code Refactoring
15
+
16
+ * **theming:** remove Belize theme ([#8519](https://github.com/SAP/ui5-webcomponents/issues/8519)) ([990313f](https://github.com/SAP/ui5-webcomponents/commit/990313fc8e429a491f4d6e67306d3df2703e54fe)), closes [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461)
17
+
18
+
19
+ ### BREAKING CHANGES
20
+
21
+ * **theming:** Remove SAP Belize theme
22
+ * **Icons:** UI5 Web Components Icons now export `getPathData` (function) instead of `pathData` (string)
23
+
24
+ If you used icons like this:
25
+
26
+ ```js
27
+ import "@ui5/webcomponents-icons/dist/accept.js";
28
+ ```
29
+
30
+ or like this:
31
+
32
+ ```js
33
+ import accept from "@ui5/webcomponents-icons/dist/accept.js";
34
+ ```
35
+
36
+ **there is no change and no adaptations are required**.
37
+
38
+ In the rare case you imported `pathData` from icons, for example:
39
+
40
+ ```js
41
+ import { pathData, ltr, accData } from "@ui5/webcomponents-icons/dist/accept.js";
42
+ console.log(pathData); // String containing the SVG path
43
+ ```
44
+
45
+ you must change your code to, for example:
46
+
47
+ ```js
48
+ import { getPathData, ltr, accData } from "@ui5/webcomponents-icons/dist/accept.js";
49
+ getPathData().then(pathData => {
50
+ console.log(pathData); // String containing the SVG path
51
+ });
52
+ ```
53
+
54
+
55
+
56
+
57
+
58
+ # [2.0.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.1...v2.0.0-rc.2) (2024-04-18)
59
+
60
+ **Note:** Version bump only for package @ui5/webcomponents-tools
61
+
62
+
63
+
64
+
65
+
66
+ # [2.0.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.0...v2.0.0-rc.1) (2024-04-11)
67
+
68
+ **Note:** Version bump only for package @ui5/webcomponents-tools
69
+
70
+
71
+
72
+
73
+
74
+ # [2.0.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0...v2.0.0-rc.0) (2024-04-09)
75
+
76
+
77
+ ### chore
78
+
79
+ * bring release-2.0 to main ([#8651](https://github.com/SAP/ui5-webcomponents/issues/8651)) ([69271c9](https://github.com/SAP/ui5-webcomponents/commit/69271c9468c7dd54f90710fc4613ae0a79f85cef)), closes [#8494](https://github.com/SAP/ui5-webcomponents/issues/8494) [#8496](https://github.com/SAP/ui5-webcomponents/issues/8496) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8497](https://github.com/SAP/ui5-webcomponents/issues/8497) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8504](https://github.com/SAP/ui5-webcomponents/issues/8504) [#8509](https://github.com/SAP/ui5-webcomponents/issues/8509) [#8507](https://github.com/SAP/ui5-webcomponents/issues/8507) [#8511](https://github.com/SAP/ui5-webcomponents/issues/8511) [#8501](https://github.com/SAP/ui5-webcomponents/issues/8501) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8503](https://github.com/SAP/ui5-webcomponents/issues/8503) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8506](https://github.com/SAP/ui5-webcomponents/issues/8506) [#8502](https://github.com/SAP/ui5-webcomponents/issues/8502) [#8524](https://github.com/SAP/ui5-webcomponents/issues/8524) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8525](https://github.com/SAP/ui5-webcomponents/issues/8525) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8518](https://github.com/SAP/ui5-webcomponents/issues/8518) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8526](https://github.com/SAP/ui5-webcomponents/issues/8526) [#8529](https://github.com/SAP/ui5-webcomponents/issues/8529) [#8528](https://github.com/SAP/ui5-webcomponents/issues/8528) [#8531](https://github.com/SAP/ui5-webcomponents/issues/8531) [#8532](https://github.com/SAP/ui5-webcomponents/issues/8532) [#8534](https://github.com/SAP/ui5-webcomponents/issues/8534) [#8163](https://github.com/SAP/ui5-webcomponents/issues/8163) [#8527](https://github.com/SAP/ui5-webcomponents/issues/8527) [#8538](https://github.com/SAP/ui5-webcomponents/issues/8538) [#8521](https://github.com/SAP/ui5-webcomponents/issues/8521) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8542](https://github.com/SAP/ui5-webcomponents/issues/8542) [#8461](https://github.com/SAP/ui5-webcomponents/issues/8461) [#8548](https://github.com/SAP/ui5-webcomponents/issues/8548) [#8555](https://github.com/SAP/ui5-webcomponents/issues/8555) [#8559](https://github.com/SAP/ui5-webcomponents/issues/8559) [#8565](https://github.com/SAP/ui5-webcomponents/issues/8565) [#8570](https://github.com/SAP/ui5-webcomponents/issues/8570) [#8558](https://github.com/SAP/ui5-webcomponents/issues/8558) [#8568](https://github.com/SAP/ui5-webcomponents/issues/8568) [#8596](https://github.com/SAP/ui5-webcomponents/issues/8596) [#8192](https://github.com/SAP/ui5-webcomponents/issues/8192) [#8606](https://github.com/SAP/ui5-webcomponents/issues/8606) [#8605](https://github.com/SAP/ui5-webcomponents/issues/8605) [#8600](https://github.com/SAP/ui5-webcomponents/issues/8600) [#8602](https://github.com/SAP/ui5-webcomponents/issues/8602) [#8593](https://github.com/SAP/ui5-webcomponents/issues/8593)
80
+
81
+
82
+ ### BREAKING CHANGES
83
+
84
+ * "Device#isIE" method has been removed and no longer available
85
+
86
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
87
+ * Removed the `CSP.js` module and the creation of `<style>` and `<link>` tags, as all browsers now support adoptedStyleSheets. The following APIs are not available any more and should not be used:
88
+ ```ts
89
+ import { setUseLinks } from "@ui5/webcomponents-base/dist/CSP.js"
90
+ import { setPackageCSSRoot } from "@ui5/webcomponents-base/dist/CSP.js"
91
+ import { setPreloadLinks } from "@ui5/webcomponents-base/dist/CSP.js"
92
+ ```
93
+ * Removed the `ICardHeader` interface. If you previously used the interface
94
+ ```ts
95
+ import type { ICardHeader } from "@ui5/webcomponents-base/dist/Card.js"
96
+ ```
97
+ Use the CardHeader type instead:
98
+ ```ts
99
+ import type CardHeader from "@ui5/webcomponents-base/dist/CardHeader.js"
100
+ ```
101
+ * Removed the `IUploadCollectionItem` interface. If you previously used the interface:
102
+ ```js
103
+ import type { IUploadCollectionItem} from "@ui5/webcomponents-fiori/dist/UploadCollection.js"
104
+ ```
105
+ Use the `UploadCollectionItem` type instead:
106
+ ```js
107
+ import type UploadCollectionItem from "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js"
108
+ ```
109
+
110
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
111
+ * The `size` property now accepts different values. If you previously used it like:
112
+ ```html
113
+ <ui5-busy-indicator size="Small"></ui5-busy-indicator>
114
+ ```
115
+ Now use the new values instead:
116
+ ```html
117
+ <ui5-busy-indicator size="S"></ui5-busy-indicator>
118
+ ```
119
+
120
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
121
+ * The `status` property and its shadow part have been renamed. If you previously used them:
122
+ ```html
123
+ <style>
124
+ .cardHeader::part(status) { ... }
125
+ </style>
126
+ <ui5-card-header status="3 of 10"></ui5-popover>
127
+ ```
128
+ Now use `additionalText` instead:
129
+ ```html
130
+ <style>
131
+ .cardHeader::part(additional-text) { ... }
132
+ </style>
133
+ <ui5-card-header class="cardHeader" additional-text="3 of 10"></ui5-card-header>
134
+ ```
135
+
136
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
137
+ * The `pageIndicatorStyle` no longer exists. If you previously used it like:
138
+ ```html
139
+ <ui5-carousel page-indicator-style="Numeric"></ui5-carousel>
140
+ ```
141
+ Now you should use `pageIndicatorType` instead:
142
+ ```html
143
+ <ui5-carousel page-indicator-type="Numeric"></ui5-carousel>
144
+ ```
145
+
146
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
147
+ * Removed `UI5Element#render` method in favour of `UI5Element#renderer`. If you previously used "render"
148
+ ```js
149
+ class MyClass extends UI5Element {
150
+ static get render() {
151
+ return litRenderer;
152
+ }
153
+ }
154
+ ```
155
+ start using "renderer"
156
+ ```ts
157
+ class MyClass extends UI5Element {
158
+ static get renderer() {
159
+ return litRenderer;
160
+ }
161
+ }
162
+ ```
163
+ * Remove JavaScript template option from @ui5/create-webcomponents-package
164
+ Previously `npm init @ui5/webcomponents-package` used to create JS-based project, however now it will be TypeScript-based project.
165
+ If you previously used `npm init @ui5/webcomponents-package --enable-typescript` to create TypeScript-based project, now it's by default, e.g `npm init @ui5/webcomponents-package` and `--enable-typescript` is removed.
166
+ * The `Left` and `Right` options option have been renamed. If you previously used them to set the placement or the alignment of the popover:
167
+ ```html
168
+ <ui5-popover horizontal-align="Left" placement-type="Left"></ui5-popover>
169
+ ```
170
+ Now use `Start` or `End` instead:
171
+ ```html
172
+ <ui5-popover horizontal-align="Start" placement-type="Start"></ui5-popover>
173
+ ```
174
+
175
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
176
+
177
+ * docs: deploy v2 preview
178
+ * Remove `soccor` icon. Use `soccer` instead.
179
+ * Remove `add-polygone` icon. Use `add-polygon` instead.
180
+ * The JSDoc plugin has been removed, and the generation of api.json has stopped. If you previously relied on the `ui5-package/dist/api.json file`, you can now use `ui5-package/dist/custom-elements.json`
181
+ * All Assets-static.js modules are removed. If you previously imported any Assets-static.js module from any package:
182
+ ```ts
183
+ import "@ui5/webcomponents/dist/Assets-static.js";
184
+ import "@ui5/webcomponents-icons/dist/Assets-static.js"
185
+ ```
186
+ use the dynamic equivalent of it:
187
+ ```ts
188
+ import "@ui5/webcomponents/dist/Assets.js";
189
+ import "@ui5/webcomponents-icons/dist/Assets.js"
190
+ ```
191
+
192
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
193
+ * The event `selected-dates-change ` is renamed to `selection-change`. In addition the event details
194
+ `values` and `dates` are renamed to `selectedValues` and `selectedDateValues`. If you previously used the Calendar event as follows:
195
+ ```ts
196
+ myCalendar.addEventListener("selected-dates-change", () => {
197
+ const values = e.detail.values;
198
+ const dates = e.detail.dates;
199
+ })
200
+ ```
201
+ Now you have to use the new event name and details:
202
+ ```ts
203
+ myCalendar.addEventListener("selection-change", () => {
204
+ const values = event.detail.selectedValues;
205
+ const dates = event.detail.selectedDateValues;
206
+ })
207
+ ```
208
+
209
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
210
+ * The property `color` is renamed to `value`. If you previously used the change event of the ColorPicker as follows:
211
+ ```html
212
+ <ui5-color-picker color="red"></ui5-color-picker>
213
+ ```
214
+ Now you have to use it like this:
215
+ ```html
216
+ <ui5-color-picker value="red"></ui5-color-picker>
217
+ ```
218
+
219
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
220
+ * JavaScript projects may not function properly with the tools package.
221
+ * The `openPopover` and `showAt` methods are removed in favor of `open` and `opener` properties. If you previously used the imperative API:
222
+ ```js
223
+ button.addEventListener("click", function(event) {
224
+ colorPalettePopover.showAt(this);
225
+ });
226
+ ```
227
+ Now the declarative API should be used instead:
228
+ ```html
229
+ <ui5-button id="opener">Open</ui5-button>
230
+ <ui5-color-palette-popover opener="opener">
231
+ ```
232
+ ```js
233
+ button.addEventListener("click", function(event) {
234
+ colorPalettePopover.open = !colorPalettePopover.open;
235
+ });
236
+ ```
237
+ * The `ui5-bar` component is now in `main` library. If you previously imported the `ui5-bar` from `fiori`:
238
+ ```ts
239
+ import "@ui5/webcomponents-fiori/dist/Bar.js;
240
+ ```
241
+ Now, import the `ui5-bar` from `main`:
242
+ ```ts
243
+ import "@ui5/webcomponents/dist/Bar.js";
244
+ ```
245
+
246
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
247
+ * If you have previously used:
248
+ ```html
249
+ <ui5-tab id="nestedTab" slot="subTabs"></ui5-tab>
250
+ ```
251
+ Now use:
252
+ ```html
253
+ <ui5-tab id="nestedTab" slot="items"></ui5-tab>
254
+ ```
255
+
256
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
257
+ * If you have previously used:
258
+ ```html
259
+ <ui5-tabcontainer tabs-overflow-mode="StartAndEnd"></ui5-tabcontainer>
260
+ ```
261
+ Now use:
262
+ ```html
263
+ <ui5-tabcontainer overflow-mode="StartAndEnd"></ui5-tabcontainer>
264
+ ```
265
+
266
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
267
+ * If you previously imported `TabContainerBackgroundDesign`, use `BackgroundDesign` instead.
268
+
269
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
270
+ * The showOverflow property is removed. If previously you have used:
271
+ ```html
272
+ <ui5-tabcontainer show-overflow></ui5-tabcontainer>
273
+ ```
274
+ now use the overflowButton slot:
275
+ ```html
276
+ <ui5-tabcontainer>
277
+ <ui5-button slot="startOverflowButton" id="startOverflowButton">Start</ui5-button>
278
+ <ui5-button slot="overflowButton" id="endOverflowButton">End</ui5-button>
279
+ </ui5-tabcontainer>
280
+ ```
281
+
282
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
283
+ * The `placementType` property and the `PopoverPlacementType` enum have been renamed.
284
+ If you have previously used the `placementType` property and the `PopoverPlacementType`
285
+ ```html
286
+ <ui5-popover placement-type="Bottom"></ui5-popover>
287
+ ```
288
+ ```js
289
+ import PopoverPlacementType from "@ui5/webcomponents/dist/types/PopoverPlacementType.js";
290
+ ```
291
+ Now use `placement` instead:
292
+ ```html
293
+ <ui5-placement="Bottom"></ui5-popover>
294
+ ```
295
+ ```js
296
+ import PopoverPlacementType from "@ui5/webcomponents/dist/types/PopoverPlacement.js";
297
+ ```
298
+
299
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
300
+ * The `size` property of the `ui5--illustrated-message` is renamed to `design`.
301
+ If you have previously used the `size` property:
302
+ ```html
303
+ <ui5-illustrated-message size="Dialog">
304
+ ```
305
+ Now use `design` instead:
306
+ ```html
307
+ <ui5-illustrated-message design="Dialog">
308
+
309
+ ```
310
+
311
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
312
+ * The `separator-style` property is renamed to `separators` and the `BreadcrumbsSeparatorStyle` enum is renamed to `BreadcrumbsSeparator`.
313
+ If you have previously used the `separator-style` property:
314
+ ```html
315
+ <ui5-breadcrumbs separator-style="Slash">
316
+ ```
317
+ Now use `separators` instead:
318
+ ```html
319
+ <ui5-breadcrumbs separators="Slash">
320
+ ```
321
+
322
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
323
+ * The `disabled` property of the `ui5-option` is removed.
324
+ If you have previously used the `disabled` property:
325
+ ```html
326
+ <ui5-option disabled>Option</ui5-option>
327
+ ```
328
+ it will no longer work for the component.
329
+
330
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
331
+ * You can no longer import and implement the `ITab` interface. TabContainer is designed to work only with Tab and TabSeparator classes, so the interface was obsolete.
332
+
333
+
334
+
335
+
336
+
337
+ # [1.24.0](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0-rc.4...v1.24.0) (2024-04-04)
338
+
339
+ **Note:** Version bump only for package @ui5/webcomponents-tools
340
+
341
+
342
+
343
+
344
+
345
+ # [1.24.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0-rc.3...v1.24.0-rc.4) (2024-04-04)
346
+
347
+ **Note:** Version bump only for package @ui5/webcomponents-tools
348
+
349
+
350
+
351
+
352
+
353
+ # [1.24.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0-rc.2...v1.24.0-rc.3) (2024-03-28)
354
+
355
+
356
+ ### Features
357
+
358
+ * **framework:** support sr, mk, cnr locales ([#8534](https://github.com/SAP/ui5-webcomponents/issues/8534)) ([5b410d6](https://github.com/SAP/ui5-webcomponents/commit/5b410d65267e79d4420b1a6d6788db6495abc962)), closes [#8163](https://github.com/SAP/ui5-webcomponents/issues/8163)
359
+
360
+
361
+
362
+
363
+
364
+ # [1.24.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0-rc.1...v1.24.0-rc.2) (2024-03-21)
365
+
366
+ **Note:** Version bump only for package @ui5/webcomponents-tools
367
+
368
+
369
+
370
+
371
+
372
+ # [1.24.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0-rc.0...v1.24.0-rc.1) (2024-03-15)
373
+
374
+ **Note:** Version bump only for package @ui5/webcomponents-tools
375
+
376
+
377
+
378
+
379
+
380
+ # [1.24.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.23.1...v1.24.0-rc.0) (2024-03-14)
381
+
382
+ **Note:** Version bump only for package @ui5/webcomponents-tools
383
+
384
+
385
+
386
+
387
+
388
+ ## [1.23.1](https://github.com/SAP/ui5-webcomponents/compare/v1.23.1-rc.0...v1.23.1) (2024-03-08)
389
+
390
+ **Note:** Version bump only for package @ui5/webcomponents-tools
391
+
392
+
393
+
394
+
395
+
396
+ ## [1.23.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.23.0...v1.23.1-rc.0) (2024-03-07)
397
+
398
+ **Note:** Version bump only for package @ui5/webcomponents-tools
399
+
400
+
401
+
402
+
403
+
404
+ # [1.23.0](https://github.com/SAP/ui5-webcomponents/compare/v1.23.0-rc.5...v1.23.0) (2024-03-06)
405
+
406
+
407
+ ### Features
408
+
409
+ * **ui5-illustrated-message:** introduced "Dot" size ([#8343](https://github.com/SAP/ui5-webcomponents/issues/8343)) ([9c88f36](https://github.com/SAP/ui5-webcomponents/commit/9c88f36112888c1a766875611eb2a0aecbbc6f23)), closes [#8328](https://github.com/SAP/ui5-webcomponents/issues/8328)
410
+
411
+
412
+
413
+
414
+
415
+ # [1.23.0-rc.5](https://github.com/SAP/ui5-webcomponents/compare/v1.23.0-rc.4...v1.23.0-rc.5) (2024-02-29)
416
+
417
+
418
+ ### Bug Fixes
419
+
420
+ * remove sap.ui.require call from unused openui5 module ([#8359](https://github.com/SAP/ui5-webcomponents/issues/8359)) ([50219ac](https://github.com/SAP/ui5-webcomponents/commit/50219ac23add7b86fe26d8ca51e2181f01404992))
421
+
422
+
423
+
424
+
425
+
426
+ # [1.23.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v1.23.0-rc.3...v1.23.0-rc.4) (2024-02-26)
427
+
428
+ **Note:** Version bump only for package @ui5/webcomponents-tools
429
+
430
+
431
+
432
+
433
+
434
+ # [1.23.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.23.0-rc.2...v1.23.0-rc.3) (2024-02-22)
435
+
436
+ **Note:** Version bump only for package @ui5/webcomponents-tools
437
+
438
+
439
+
440
+
441
+
442
+ # [1.23.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.23.0-rc.1...v1.23.0-rc.2) (2024-02-20)
443
+
444
+ **Note:** Version bump only for package @ui5/webcomponents-tools
445
+
446
+
447
+
448
+
449
+
450
+ # [1.23.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.23.0-rc.0...v1.23.0-rc.1) (2024-02-19)
451
+
452
+
453
+ ### Bug Fixes
454
+
455
+ * **tools:** fix usage of require in mjs ([#8258](https://github.com/SAP/ui5-webcomponents/issues/8258)) ([cbca059](https://github.com/SAP/ui5-webcomponents/commit/cbca059b926a8a5473d1f13690b6670239aafb8e))
456
+
457
+
458
+
459
+
460
+
461
+ # [1.23.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.22.1-rc.0...v1.23.0-rc.0) (2024-02-15)
462
+
463
+ **Note:** Version bump only for package @ui5/webcomponents-tools
464
+
465
+
466
+
467
+
468
+
469
+ ## [1.22.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.22.0...v1.22.1-rc.0) (2024-02-08)
470
+
471
+ **Note:** Version bump only for package @ui5/webcomponents-tools
472
+
473
+
474
+
475
+
476
+
477
+ # [1.22.0](https://github.com/SAP/ui5-webcomponents/compare/v1.22.0-rc.3...v1.22.0) (2024-02-05)
478
+
479
+ **Note:** Version bump only for package @ui5/webcomponents-tools
480
+
481
+
482
+
483
+
484
+
485
+ # [1.22.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v1.22.0-rc.2...v1.22.0-rc.3) (2024-02-01)
486
+
487
+ **Note:** Version bump only for package @ui5/webcomponents-tools
488
+
489
+
490
+
491
+
492
+
493
+ # [1.22.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v1.22.0-rc.1...v1.22.0-rc.2) (2024-01-25)
494
+
495
+ **Note:** Version bump only for package @ui5/webcomponents-tools
496
+
497
+
498
+
499
+
500
+
501
+ # [1.22.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v1.22.0-rc.0...v1.22.0-rc.1) (2024-01-18)
502
+
503
+
504
+ ### Features
505
+
506
+ * **illustration:** use illustration name as default module export ([#8074](https://github.com/SAP/ui5-webcomponents/issues/8074)) ([a9c0705](https://github.com/SAP/ui5-webcomponents/commit/a9c07055d4e06e4d1f69b7a2a48b36eb77fae4aa))
507
+
508
+
509
+
510
+
511
+
512
+ # [1.22.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.21.0...v1.22.0-rc.0) (2024-01-11)
513
+
514
+ **Note:** Version bump only for package @ui5/webcomponents-tools
515
+
516
+
517
+
518
+
519
+
6
520
  # [1.21.0](https://github.com/SAP/ui5-webcomponents/compare/v1.21.0-rc.5...v1.21.0) (2024-01-05)
7
521
 
8
522
  **Note:** Version bump only for package @ui5/webcomponents-tools
package/assets-meta.js CHANGED
@@ -4,9 +4,6 @@ const assetsMeta = {
4
4
  "all": [
5
5
  "sap_fiori_3",
6
6
  "sap_fiori_3_dark",
7
- "sap_belize",
8
- "sap_belize_hcb",
9
- "sap_belize_hcw",
10
7
  "sap_fiori_3_hcb",
11
8
  "sap_fiori_3_hcw",
12
9
  "sap_horizon",
@@ -83,7 +80,7 @@ const assetsMeta = {
83
80
  "ar_SA",
84
81
  "bg",
85
82
  "ca",
86
- // "cnr_ME" - cldr for not available yet
83
+ "cnr",
87
84
  "cs",
88
85
  "da",
89
86
  "de",
@@ -131,7 +128,7 @@ const assetsMeta = {
131
128
  "lt",
132
129
  "lv",
133
130
  "ms",
134
- // "mk_MK" cldr not available yet
131
+ "mk",
135
132
  "nb",
136
133
  "nl",
137
134
  "nl_BE",
@@ -144,7 +141,6 @@ const assetsMeta = {
144
141
  "sk",
145
142
  "sl",
146
143
  "sr",
147
- // "sr_Cyrl_RS" - cldr not available yet
148
144
  "sr_Latn",
149
145
  "sv",
150
146
  "th",
@@ -28,6 +28,7 @@ const overrides = tsMode ? [{
28
28
  "@typescript-eslint/no-unsafe-call": "off",
29
29
  "@typescript-eslint/no-non-null-assertion": "off",
30
30
  "@typescript-eslint/no-empty-function": "off",
31
+ "@typescript-eslint/no-empty-interface": "off",
31
32
  "lines-between-class-members": "off",
32
33
  }
33
34
  }] : [];
@@ -1,8 +1,13 @@
1
1
  const path = require("path");
2
2
  const fs = require("fs");
3
- const resolve = require("resolve");
4
3
  const LIB = path.join(__dirname, `../lib/`);
5
- const preprocessJSDocScript = resolve.sync("@ui5/webcomponents-tools/lib/jsdoc/preprocess.js");
4
+ let websiteBaseUrl = "/";
5
+
6
+ if (process.env.DEPOY) {
7
+ websiteBaseUrl = "/ui5-webcomponents/";
8
+ } else if (process.env.DEPLOY_NIGHTLY) {
9
+ websiteBaseUrl = "/ui5-webcomponents/nightly/";
10
+ }
6
11
 
7
12
  const getScripts = (options) => {
8
13
 
@@ -12,9 +17,9 @@ const getScripts = (options) => {
12
17
  const createIllustrationsJSImportsScript = illustrations.join(" && ");
13
18
 
14
19
  // The script creates the "src/generated/js-imports/Illustration.js" file that registers loaders (dynamic JS imports) for each illustration
15
- const createIllustrationsLoadersScript = illustrationsData.map(illustrations => `node ${LIB}/generate-js-imports/illustrations.js ${illustrations.destinationPath} ${illustrations.dynamicImports.outputFile} ${illustrations.collection} ${illustrations.dynamicImports.location} ${illustrations.dynamicImports.prefix || '\"\"'} ${illustrations.dynamicImports.filterOut.join(" ")}`).join(" && ");
20
+ const createIllustrationsLoadersScript = illustrationsData.map(illustrations => `node ${LIB}/generate-js-imports/illustrations.js ${illustrations.destinationPath} ${illustrations.dynamicImports.outputFile} ${illustrations.set} ${illustrations.collection} ${illustrations.dynamicImports.location} ${illustrations.dynamicImports.filterOut.join(" ")}`).join(" && ");
16
21
 
17
- const tsOption = options.typescript;
22
+ const tsOption = !options.legacy;
18
23
  const tsCommandOld = tsOption ? "tsc" : "";
19
24
  let tsWatchCommandStandalone = tsOption ? "tsc --watch" : "";
20
25
  // this command is only used for standalone projects. monorepo projects get their watch from vite, so opt-out here
@@ -54,7 +59,7 @@ const getScripts = (options) => {
54
59
  }
55
60
 
56
61
  const scripts = {
57
- clean: 'rimraf jsdoc-dist && rimraf src/generated && rimraf dist && rimraf .port && nps "scope.testPages.clean"',
62
+ clean: 'rimraf src/generated && rimraf dist && rimraf .port && nps "scope.testPages.clean"',
58
63
  lint: `eslint . ${eslintConfig}`,
59
64
  lintfix: `eslint . ${eslintConfig} --fix`,
60
65
  generate: {
@@ -72,9 +77,10 @@ const getScripts = (options) => {
72
77
  default: "nps prepare lint build.bundle", // build.bundle2
73
78
  templates: `mkdirp src/generated/templates && ${tsCrossEnv} node "${LIB}/hbs2ui5/index.js" -d src/ -o src/generated/templates`,
74
79
  styles: {
75
- default: `concurrently "nps build.styles.themes" "nps build.styles.components"`,
80
+ default: `concurrently "nps build.styles.themes" "nps build.styles.components" "nps build.styles.componentStyles"`,
76
81
  themes: `node "${LIB}/css-processors/css-processor-themes.mjs"`,
77
82
  components: `node "${LIB}/css-processors/css-processor-components.mjs"`,
83
+ componentStyles: `node "${LIB}/css-processors/css-processor-component-styles.mjs"`,
78
84
  },
79
85
  i18n: {
80
86
  default: "nps build.i18n.defaultsjs build.i18n.json",
@@ -90,7 +96,7 @@ const getScripts = (options) => {
90
96
  default: "mkdirp src/generated/js-imports && nps build.jsImports.illustrationsLoaders",
91
97
  illustrationsLoaders: createIllustrationsLoadersScript,
92
98
  },
93
- bundle: `vite build ${viteConfig}`,
99
+ bundle: `vite build ${viteConfig} --mode testing --base ${websiteBaseUrl}`,
94
100
  bundle2: ``,
95
101
  illustrations: createIllustrationsJSImportsScript,
96
102
  },
@@ -101,19 +107,19 @@ const getScripts = (options) => {
101
107
  props: `node "${LIB}/copy-and-watch/index.js" --silent "src/**/*.properties" dist/`,
102
108
  },
103
109
  watch: {
104
- default: `${tsCrossEnv} concurrently "nps watch.templates" "nps watch.typescript" "nps watch.api" "nps watch.src" "nps watch.styles" "nps watch.i18n" "nps watch.props"`,
110
+ default: `${tsCrossEnv} concurrently "nps watch.templates" "nps watch.typescript" "nps watch.src" "nps watch.styles" "nps watch.i18n" "nps watch.props"`,
105
111
  devServer: 'concurrently "nps watch.default" "nps watch.bundle"',
106
112
  src: 'nps "copy.src --watch --safe --skip-initial-copy"',
107
113
  typescript: tsWatchCommandStandalone,
108
114
  props: 'nps "copy.props --watch --safe --skip-initial-copy"',
109
115
  bundle: `node ${LIB}/dev-server/dev-server.js ${viteConfig}`,
110
116
  styles: {
111
- default: 'concurrently "nps watch.styles.themes" "nps watch.styles.components"',
117
+ default: 'concurrently "nps watch.styles.themes" "nps watch.styles.components" "nps watch.styles.componentStyles" ',
112
118
  themes: 'nps "build.styles.themes -w"',
113
119
  components: `nps "build.styles.components -w"`,
120
+ componentStyles: `nps "build.styles.componentStyles -w"`,
114
121
  },
115
122
  templates: 'chokidar "src/**/*.hbs" -c "nps build.templates"',
116
- api: 'chokidar "test/**/*.sample.html" -c "nps generateAPI"',
117
123
  i18n: 'chokidar "src/i18n/messagebundle.properties" -c "nps build.i18n.defaultsjs"'
118
124
  },
119
125
  start: "nps prepare watch.devServer",
@@ -131,16 +137,13 @@ const getScripts = (options) => {
131
137
  replace: `node "${LIB}/scoping/scope-test-pages.js" test/pages/scoped demo`,
132
138
  },
133
139
  watchWithBundle: 'concurrently "nps scope.watch" "nps scope.bundle" ',
134
- watch: 'concurrently "nps watch.templates" "nps watch.api" "nps watch.src" "nps watch.props" "nps watch.styles"',
140
+ watch: 'concurrently "nps watch.templates" "nps watch.src" "nps watch.props" "nps watch.styles"',
135
141
  bundle: `node ${LIB}/dev-server/dev-server.js ${viteConfig}`,
136
142
  },
137
143
  generateAPI: {
138
- default: "nps generateAPI.prepare generateAPI.preprocess generateAPI.jsdoc generateAPI.cleanup generateAPI.prepareManifest",
139
- prepare: `node "${LIB}/copy-and-watch/index.js" --silent "dist/**/*.js" jsdoc-dist/`,
140
- prepareManifest: `node "${LIB}/generate-custom-elements-manifest/index.js" dist dist`,
141
- preprocess: `node "${preprocessJSDocScript}" jsdoc-dist/ src`,
142
- jsdoc: `jsdoc -c "${LIB}/jsdoc/configTypescript.json"`,
143
- cleanup: "rimraf jsdoc-dist/"
144
+ default: tsOption ? "nps generateAPI.generateCEM generateAPI.validateCEM" : "",
145
+ generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs" ${ options.dev ? "--dev" : "" }`,
146
+ validateCEM: `node "${LIB}/cem/validate.js" ${ options.dev ? "--dev" : "" }`,
144
147
  },
145
148
  };
146
149