@ui5/webcomponents-base 1.24.0 → 2.0.0-rc.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.
Files changed (62) hide show
  1. package/.eslintignore +0 -1
  2. package/CHANGELOG.md +279 -0
  3. package/README.md +0 -8
  4. package/bundle.esm.js +0 -1
  5. package/config/wdio.conf.cjs +0 -8
  6. package/dist/.tsbuildinfo +1 -1
  7. package/dist/Device.d.ts +1 -2
  8. package/dist/Device.js +5 -12
  9. package/dist/Device.js.map +1 -1
  10. package/dist/ManagedStyles.js +21 -99
  11. package/dist/ManagedStyles.js.map +1 -1
  12. package/dist/UI5Element.d.ts +5 -26
  13. package/dist/UI5Element.js +24 -54
  14. package/dist/UI5Element.js.map +1 -1
  15. package/dist/UI5ElementMetadata.d.ts +2 -0
  16. package/dist/UI5ElementMetadata.js +3 -0
  17. package/dist/UI5ElementMetadata.js.map +1 -1
  18. package/dist/custom-elements-internal.json +0 -76
  19. package/dist/custom-elements.json +0 -76
  20. package/dist/decorators/customElement.d.ts +1 -2
  21. package/dist/decorators/customElement.js +6 -4
  22. package/dist/decorators/customElement.js.map +1 -1
  23. package/dist/features/OpenUI5Support.d.ts +0 -2
  24. package/dist/features/OpenUI5Support.js +2 -23
  25. package/dist/features/OpenUI5Support.js.map +1 -1
  26. package/dist/generated/VersionInfo.js +5 -5
  27. package/dist/generated/VersionInfo.js.map +1 -1
  28. package/dist/renderer/LitRenderer.js +2 -8
  29. package/dist/renderer/LitRenderer.js.map +1 -1
  30. package/dist/theming/getConstructableStyle.d.ts +1 -1
  31. package/dist/theming/getConstructableStyle.js +3 -3
  32. package/dist/theming/getConstructableStyle.js.map +1 -1
  33. package/dist/theming/getEffectiveStyle.d.ts +1 -1
  34. package/dist/theming/getEffectiveStyle.js +5 -12
  35. package/dist/theming/getEffectiveStyle.js.map +1 -1
  36. package/dist/updateShadowRoot.d.ts +1 -2
  37. package/dist/updateShadowRoot.js +5 -29
  38. package/dist/updateShadowRoot.js.map +1 -1
  39. package/dist/util/PopupUtils.d.ts +1 -3
  40. package/dist/util/PopupUtils.js +1 -15
  41. package/dist/util/PopupUtils.js.map +1 -1
  42. package/dist/util/dragAndDrop/DragRegistry.d.ts +1 -1
  43. package/dist/util/dragAndDrop/DragRegistry.js.map +1 -1
  44. package/dist/util/getClassCopy.d.ts +1 -8
  45. package/index.js +0 -14
  46. package/package-scripts.cjs +1 -1
  47. package/package.json +3 -3
  48. package/dist/CSP.d.ts +0 -33
  49. package/dist/CSP.js +0 -54
  50. package/dist/CSP.js.map +0 -1
  51. package/dist/StaticAreaItem.d.ts +0 -35
  52. package/dist/StaticAreaItem.js +0 -100
  53. package/dist/StaticAreaItem.js.map +0 -1
  54. package/dist/theming/getEffectiveLinksHrefs.d.ts +0 -3
  55. package/dist/theming/getEffectiveLinksHrefs.js +0 -17
  56. package/dist/theming/getEffectiveLinksHrefs.js.map +0 -1
  57. package/dist/theming/preloadLinks.d.ts +0 -3
  58. package/dist/theming/preloadLinks.js +0 -19
  59. package/dist/theming/preloadLinks.js.map +0 -1
  60. package/dist/util/createStyleInHead.d.ts +0 -8
  61. package/dist/util/createStyleInHead.js +0 -18
  62. package/dist/util/createStyleInHead.js.map +0 -1
package/.eslintignore CHANGED
@@ -2,7 +2,6 @@
2
2
  test
3
3
  lib
4
4
  dist
5
- jsdoc-dist
6
5
  src/generated
7
6
  src/thirdparty
8
7
  bundle.esm.js
package/CHANGELOG.md CHANGED
@@ -3,6 +3,285 @@
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.1](https://github.com/SAP/ui5-webcomponents/compare/v2.0.0-rc.0...v2.0.0-rc.1) (2024-04-11)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * decorators stop searching for accessors when reaching HTMLElement ([#8718](https://github.com/SAP/ui5-webcomponents/issues/8718)) ([dbc48cd](https://github.com/SAP/ui5-webcomponents/commit/dbc48cd14d01681a8ec53c268eca3187056aa2b4))
12
+
13
+
14
+ ### Features
15
+
16
+ * add shadowRootOptions for [@custom](https://github.com/custom)Element decorator ([#8703](https://github.com/SAP/ui5-webcomponents/issues/8703)) ([7168dc2](https://github.com/SAP/ui5-webcomponents/commit/7168dc297f411d9b5d64127a47e2361f17442439))
17
+
18
+
19
+
20
+
21
+
22
+ # [2.0.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0...v2.0.0-rc.0) (2024-04-09)
23
+
24
+
25
+ ### chore
26
+
27
+ * 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)
28
+
29
+
30
+ ### BREAKING CHANGES
31
+
32
+ * "Device#isIE" method has been removed and no longer available
33
+
34
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
35
+ * 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:
36
+ ```ts
37
+ import { setUseLinks } from "@ui5/webcomponents-base/dist/CSP.js"
38
+ import { setPackageCSSRoot } from "@ui5/webcomponents-base/dist/CSP.js"
39
+ import { setPreloadLinks } from "@ui5/webcomponents-base/dist/CSP.js"
40
+ ```
41
+ * Removed the `ICardHeader` interface. If you previously used the interface
42
+ ```ts
43
+ import type { ICardHeader } from "@ui5/webcomponents-base/dist/Card.js"
44
+ ```
45
+ Use the CardHeader type instead:
46
+ ```ts
47
+ import type CardHeader from "@ui5/webcomponents-base/dist/CardHeader.js"
48
+ ```
49
+ * Removed the `IUploadCollectionItem` interface. If you previously used the interface:
50
+ ```js
51
+ import type { IUploadCollectionItem} from "@ui5/webcomponents-fiori/dist/UploadCollection.js"
52
+ ```
53
+ Use the `UploadCollectionItem` type instead:
54
+ ```js
55
+ import type UploadCollectionItem from "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js"
56
+ ```
57
+
58
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
59
+ * The `size` property now accepts different values. If you previously used it like:
60
+ ```html
61
+ <ui5-busy-indicator size="Small"></ui5-busy-indicator>
62
+ ```
63
+ Now use the new values instead:
64
+ ```html
65
+ <ui5-busy-indicator size="S"></ui5-busy-indicator>
66
+ ```
67
+
68
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
69
+ * The `status` property and its shadow part have been renamed. If you previously used them:
70
+ ```html
71
+ <style>
72
+ .cardHeader::part(status) { ... }
73
+ </style>
74
+ <ui5-card-header status="3 of 10"></ui5-popover>
75
+ ```
76
+ Now use `additionalText` instead:
77
+ ```html
78
+ <style>
79
+ .cardHeader::part(additional-text) { ... }
80
+ </style>
81
+ <ui5-card-header class="cardHeader" additional-text="3 of 10"></ui5-card-header>
82
+ ```
83
+
84
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
85
+ * The `pageIndicatorStyle` no longer exists. If you previously used it like:
86
+ ```html
87
+ <ui5-carousel page-indicator-style="Numeric"></ui5-carousel>
88
+ ```
89
+ Now you should use `pageIndicatorType` instead:
90
+ ```html
91
+ <ui5-carousel page-indicator-type="Numeric"></ui5-carousel>
92
+ ```
93
+
94
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
95
+ * Removed `UI5Element#render` method in favour of `UI5Element#renderer`. If you previously used "render"
96
+ ```js
97
+ class MyClass extends UI5Element {
98
+ static get render() {
99
+ return litRenderer;
100
+ }
101
+ }
102
+ ```
103
+ start using "renderer"
104
+ ```ts
105
+ class MyClass extends UI5Element {
106
+ static get renderer() {
107
+ return litRenderer;
108
+ }
109
+ }
110
+ ```
111
+ * Remove JavaScript template option from @ui5/create-webcomponents-package
112
+ Previously `npm init @ui5/webcomponents-package` used to create JS-based project, however now it will be TypeScript-based project.
113
+ 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.
114
+ * The `Left` and `Right` options option have been renamed. If you previously used them to set the placement or the alignment of the popover:
115
+ ```html
116
+ <ui5-popover horizontal-align="Left" placement-type="Left"></ui5-popover>
117
+ ```
118
+ Now use `Start` or `End` instead:
119
+ ```html
120
+ <ui5-popover horizontal-align="Start" placement-type="Start"></ui5-popover>
121
+ ```
122
+
123
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
124
+
125
+ * docs: deploy v2 preview
126
+ * Remove `soccor` icon. Use `soccer` instead.
127
+ * Remove `add-polygone` icon. Use `add-polygon` instead.
128
+ * 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`
129
+ * All Assets-static.js modules are removed. If you previously imported any Assets-static.js module from any package:
130
+ ```ts
131
+ import "@ui5/webcomponents/dist/Assets-static.js";
132
+ import "@ui5/webcomponents-icons/dist/Assets-static.js"
133
+ ```
134
+ use the dynamic equivalent of it:
135
+ ```ts
136
+ import "@ui5/webcomponents/dist/Assets.js";
137
+ import "@ui5/webcomponents-icons/dist/Assets.js"
138
+ ```
139
+
140
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
141
+ * The event `selected-dates-change ` is renamed to `selection-change`. In addition the event details
142
+ `values` and `dates` are renamed to `selectedValues` and `selectedDateValues`. If you previously used the Calendar event as follows:
143
+ ```ts
144
+ myCalendar.addEventListener("selected-dates-change", () => {
145
+ const values = e.detail.values;
146
+ const dates = e.detail.dates;
147
+ })
148
+ ```
149
+ Now you have to use the new event name and details:
150
+ ```ts
151
+ myCalendar.addEventListener("selection-change", () => {
152
+ const values = event.detail.selectedValues;
153
+ const dates = event.detail.selectedDateValues;
154
+ })
155
+ ```
156
+
157
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
158
+ * The property `color` is renamed to `value`. If you previously used the change event of the ColorPicker as follows:
159
+ ```html
160
+ <ui5-color-picker color="red"></ui5-color-picker>
161
+ ```
162
+ Now you have to use it like this:
163
+ ```html
164
+ <ui5-color-picker value="red"></ui5-color-picker>
165
+ ```
166
+
167
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
168
+ * JavaScript projects may not function properly with the tools package.
169
+ * The `openPopover` and `showAt` methods are removed in favor of `open` and `opener` properties. If you previously used the imperative API:
170
+ ```js
171
+ button.addEventListener("click", function(event) {
172
+ colorPalettePopover.showAt(this);
173
+ });
174
+ ```
175
+ Now the declarative API should be used instead:
176
+ ```html
177
+ <ui5-button id="opener">Open</ui5-button>
178
+ <ui5-color-palette-popover opener="opener">
179
+ ```
180
+ ```js
181
+ button.addEventListener("click", function(event) {
182
+ colorPalettePopover.open = !colorPalettePopover.open;
183
+ });
184
+ ```
185
+ * The `ui5-bar` component is now in `main` library. If you previously imported the `ui5-bar` from `fiori`:
186
+ ```ts
187
+ import "@ui5/webcomponents-fiori/dist/Bar.js;
188
+ ```
189
+ Now, import the `ui5-bar` from `main`:
190
+ ```ts
191
+ import "@ui5/webcomponents/dist/Bar.js";
192
+ ```
193
+
194
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
195
+ * If you have previously used:
196
+ ```html
197
+ <ui5-tab id="nestedTab" slot="subTabs"></ui5-tab>
198
+ ```
199
+ Now use:
200
+ ```html
201
+ <ui5-tab id="nestedTab" slot="items"></ui5-tab>
202
+ ```
203
+
204
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
205
+ * If you have previously used:
206
+ ```html
207
+ <ui5-tabcontainer tabs-overflow-mode="StartAndEnd"></ui5-tabcontainer>
208
+ ```
209
+ Now use:
210
+ ```html
211
+ <ui5-tabcontainer overflow-mode="StartAndEnd"></ui5-tabcontainer>
212
+ ```
213
+
214
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
215
+ * If you previously imported `TabContainerBackgroundDesign`, use `BackgroundDesign` instead.
216
+
217
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
218
+ * The showOverflow property is removed. If previously you have used:
219
+ ```html
220
+ <ui5-tabcontainer show-overflow></ui5-tabcontainer>
221
+ ```
222
+ now use the overflowButton slot:
223
+ ```html
224
+ <ui5-tabcontainer>
225
+ <ui5-button slot="startOverflowButton" id="startOverflowButton">Start</ui5-button>
226
+ <ui5-button slot="overflowButton" id="endOverflowButton">End</ui5-button>
227
+ </ui5-tabcontainer>
228
+ ```
229
+
230
+ Relates to https://github.com/SAP/ui5-webcomponents/issues/8461
231
+ * The `placementType` property and the `PopoverPlacementType` enum have been renamed.
232
+ If you have previously used the `placementType` property and the `PopoverPlacementType`
233
+ ```html
234
+ <ui5-popover placement-type="Bottom"></ui5-popover>
235
+ ```
236
+ ```js
237
+ import PopoverPlacementType from "@ui5/webcomponents/dist/types/PopoverPlacementType.js";
238
+ ```
239
+ Now use `placement` instead:
240
+ ```html
241
+ <ui5-placement="Bottom"></ui5-popover>
242
+ ```
243
+ ```js
244
+ import PopoverPlacementType from "@ui5/webcomponents/dist/types/PopoverPlacement.js";
245
+ ```
246
+
247
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461
248
+ * The `size` property of the `ui5--illustrated-message` is renamed to `design`.
249
+ If you have previously used the `size` property:
250
+ ```html
251
+ <ui5-illustrated-message size="Dialog">
252
+ ```
253
+ Now use `design` instead:
254
+ ```html
255
+ <ui5-illustrated-message design="Dialog">
256
+
257
+ ```
258
+
259
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
260
+ * The `separator-style` property is renamed to `separators` and the `BreadcrumbsSeparatorStyle` enum is renamed to `BreadcrumbsSeparator`.
261
+ If you have previously used the `separator-style` property:
262
+ ```html
263
+ <ui5-breadcrumbs separator-style="Slash">
264
+ ```
265
+ Now use `separators` instead:
266
+ ```html
267
+ <ui5-breadcrumbs separators="Slash">
268
+ ```
269
+
270
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
271
+ * The `disabled` property of the `ui5-option` is removed.
272
+ If you have previously used the `disabled` property:
273
+ ```html
274
+ <ui5-option disabled>Option</ui5-option>
275
+ ```
276
+ it will no longer work for the component.
277
+
278
+ Related to https://github.com/SAP/ui5-webcomponents/issues/8461, https://github.com/SAP/ui5-webcomponents/issues/7887
279
+ * 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.
280
+
281
+
282
+
283
+
284
+
6
285
  # [1.24.0](https://github.com/SAP/ui5-webcomponents/compare/v1.24.0-rc.4...v1.24.0) (2024-04-04)
7
286
 
8
287
  **Note:** Version bump only for package @ui5/webcomponents-base
package/README.md CHANGED
@@ -20,9 +20,6 @@ Contains the base files for all Web Components, most notably `@ui5/webcomponents
20
20
  Components | `import applyDirection from "@ui5/webcomponents-base/dist/locale/applyDirection.js"`| Applies direction ("ltr"/"rtl") - re-renders all RTL-aware components |
21
21
  Components | `import { setCustomElementsScopingSuffix } from "@ui5/webcomponents-base/dist/CustomElementsScope.js"`| Adds suffix to the tag names of all components |
22
22
  Components | `@ui5/webcomponents-base/dist/util/InvisibleMessage.js` | Provides a way to expose dynamic content changes that can be announced by screen readers |
23
- CSP compliance| `import { setPackageCSSRoot } from "@ui5/webcomponents-base/dist/CSP.js"`| Sets directory path where the CSS resources for given package will be served from |
24
- CSP compliance| `import { setUseLinks } from "@ui5/webcomponents-base/dist/CSP.js"` | Enables or disables the usage of `<link>` tags instead of `<style>` tags |
25
- CSP compliance| `import { setPreloadLinks } from "@ui5/webcomponents-base/dist/CSP.js"` | Enables or disables the preloading of `<link>` tags |
26
23
 
27
24
  ### `applyDirection.js`
28
25
  - `applyDirection`
@@ -42,11 +39,6 @@ Contains the base files for all Web Components, most notably `@ui5/webcomponents
42
39
 
43
40
  - `ignoreCustomElements`
44
41
 
45
- ### `CSP.js`
46
- - `setPackageCSSRoot`
47
- - `setUseLinks`
48
- - `setPreloadLinks`
49
-
50
42
  ### `i18nBundle.js`
51
43
 
52
44
  - `registerI18nLoader`
package/bundle.esm.js CHANGED
@@ -10,7 +10,6 @@ import "./test/elements/Generic.js";
10
10
  import "./test/elements/NoShadowDOM.js";
11
11
  import "./test/elements/Parent.js";
12
12
  import "./test/elements/Child.js";
13
- import "./test/elements/WithStaticArea.js";
14
13
  import "./test/elements/WithComplexTemplate.js";
15
14
  import "./test/elements/GenericExt.js";
16
15
 
@@ -230,13 +230,6 @@ exports.config = {
230
230
  }, this, attrName);
231
231
  }, true);
232
232
 
233
- await browser.addCommand("getStaticAreaItemClassName", async function(selector) {
234
- return browser.executeAsync(async (selector, done) => {
235
- const staticAreaItem = await document.querySelector(selector).getStaticAreaItemDomRef();
236
- done(staticAreaItem.host.classList[0]);
237
- }, selector);
238
- }, false);
239
-
240
233
  await browser.addLocatorStrategy('activeElement', (selector) => {
241
234
  return document.querySelector(selector).shadowRoot.activeElement;
242
235
  });
@@ -256,7 +249,6 @@ exports.config = {
256
249
  "getHTML",
257
250
  "getProperty",
258
251
  "getSize",
259
- "getStaticAreaItemClassName", // custom
260
252
  "getText",
261
253
  "getValue",
262
254
  "hasClass", // custom