@ui5/webcomponents-base 2.0.0-rc.2 → 2.0.0-rc.3

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 (48) hide show
  1. package/CHANGELOG.md +155 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/Boot.js +2 -3
  4. package/dist/Boot.js.map +1 -1
  5. package/dist/asset-registries/Icons.js +1 -1
  6. package/dist/asset-registries/Icons.js.map +1 -1
  7. package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +3 -3
  8. package/dist/asset-registries/util/getIconCollectionByTheme.js +3 -3
  9. package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -1
  10. package/dist/config/Theme.d.ts +3 -2
  11. package/dist/config/Theme.js +7 -3
  12. package/dist/config/Theme.js.map +1 -1
  13. package/dist/custom-elements-internal.json +180 -6
  14. package/dist/custom-elements.json +75 -0
  15. package/dist/features/OpenUI5Support.js +8 -2
  16. package/dist/features/OpenUI5Support.js.map +1 -1
  17. package/dist/features/patchPatcher.d.ts +11 -0
  18. package/dist/features/patchPatcher.js +11 -0
  19. package/dist/features/patchPatcher.js.map +1 -0
  20. package/dist/features/patchPopup.d.ts +14 -0
  21. package/dist/features/patchPopup.js +50 -0
  22. package/dist/features/patchPopup.js.map +1 -0
  23. package/dist/generated/AssetParameters.js +1 -1
  24. package/dist/generated/AssetParameters.js.map +1 -1
  25. package/dist/generated/VersionInfo.js +3 -3
  26. package/dist/generated/VersionInfo.js.map +1 -1
  27. package/dist/types/AriaHasPopup.d.ts +32 -0
  28. package/dist/types/AriaHasPopup.js +34 -0
  29. package/dist/types/AriaHasPopup.js.map +1 -0
  30. package/dist/types/AriaLandmarkRole.d.ts +79 -0
  31. package/dist/types/AriaLandmarkRole.js +81 -0
  32. package/dist/types/AriaLandmarkRole.js.map +1 -0
  33. package/dist/types/AriaRole.d.ts +27 -0
  34. package/dist/types/AriaRole.js +29 -0
  35. package/dist/types/AriaRole.js.map +1 -0
  36. package/dist/types/ValueState.d.ts +3 -3
  37. package/dist/types/ValueState.js +3 -3
  38. package/dist/types/ValueState.js.map +1 -1
  39. package/dist/types.d.ts +15 -2
  40. package/dist/types.js.map +1 -1
  41. package/package.json +4 -4
  42. package/.eslintignore +0 -17
  43. package/.eslintrc.cjs +0 -3
  44. package/bundle.esm.js +0 -65
  45. package/lib/generate-asset-parameters/index.js +0 -27
  46. package/lib/generate-styles/index.js +0 -31
  47. package/lib/generate-version-info/index.js +0 -32
  48. package/used-modules.txt +0 -14
package/CHANGELOG.md CHANGED
@@ -3,6 +3,161 @@
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
+ * rename ValueState values ([#8864](https://github.com/SAP/ui5-webcomponents/issues/8864)) ([ef9304d](https://github.com/SAP/ui5-webcomponents/commit/ef9304da4b1446178b1b2bfa737d9867461cc4bc))
17
+ * **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)
18
+ * **ui5-*:** use unified API to define a11y attributes via `accessibilityAttributes` ([#8810](https://github.com/SAP/ui5-webcomponents/issues/8810)) ([49d587c](https://github.com/SAP/ui5-webcomponents/commit/49d587c73120a5511a34e61be949018605f49acd))
19
+
20
+
21
+ ### BREAKING CHANGES
22
+
23
+ * **ui5-*:** FlexibleLayout's `accessibilityTexts` and `accessibilityRoles` properties are removed. If you have previously used the `accessibilityTexts` or `accessibilityRoles` properties:
24
+ ```js
25
+ fcl.accessibilityTexts = {
26
+ startColumnAccessibleName: "Products list",
27
+ midColumnAccessibleName: "Product information",
28
+ endColumnAccessibleName: "Product detailed information",
29
+ startArrowLeftText: "Collapse products list",
30
+ startArrowRightText: "Expand products list",
31
+ endArrowLeftText: "Expand product detailed information",
32
+ endArrowRightText: "Collapse product detailed information",
33
+ startArrowContainerAccessibleName: "Start Arrow Container",
34
+ endArrowContainerAccessibleName: "End Arrow Container",
35
+ }
36
+
37
+ fcl.accessibilityRoles = {
38
+ startColumnRole: "complementary",
39
+ startArrowContainerRole: "navigation",
40
+ midColumnRole: "main",
41
+ endArrowContainerRole: "navigation",
42
+ endColumnRole: "complementary".
43
+ }
44
+ ```
45
+ Now use `accessibilityAttributes` instead:
46
+ ```js
47
+ fcl.accessibilityAttributes = {
48
+ startColumn: {
49
+ role: "complementary",
50
+ name: "Products list",
51
+ },
52
+ midColumn: {
53
+ role: "main",
54
+ name: "Product information",
55
+ },
56
+ endColumn: {
57
+ role: "complementary",
58
+ name: "Product detailed information",
59
+ },
60
+ startArrowLeft: {
61
+ name: "Collapse products list",
62
+ },
63
+ startArrowRight: {
64
+ name: "Expand products list",
65
+ },
66
+ endArrowLeft: {
67
+ name: "Expand product detailed information",
68
+ },
69
+ endArrowRight: {
70
+ name: "Collapse product detailed information",
71
+ },
72
+ startArrowContainer: {
73
+ role: "navigation",
74
+ name: "Start Arrow Container",
75
+ },
76
+ endArrowContainer: {
77
+ role: "navigation",
78
+ name: "End Arrow Container",
79
+ },
80
+ };
81
+ ```
82
+
83
+ ShellBar's `accessibilityTexts` and `accessibilityRoles` properties are removed. If you have previously used the `accessibilityTexts` or `accessibilityRoles` properties:
84
+ ```js
85
+ shellbar.accessibilityTexts = {
86
+ profileButtonTitle: "John Dow",
87
+ logoTitle: "Custom logo title",
88
+ }
89
+
90
+ shellbar.accessibilityRoles = {
91
+ logoRole: "link"
92
+ };
93
+ ```
94
+ Now use `accessibilityAttributes` instead:
95
+ ```js
96
+ shellbar.accessibilityAttributes = {
97
+ profile: {
98
+ name: "John Dow",
99
+ },
100
+ logo: {
101
+ role: "link"
102
+ name: "Custom logo title"
103
+ },
104
+ };
105
+ ```
106
+
107
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
108
+
109
+
110
+ * If you previously used ValueState.Warning, ValueState.Error or ValueState.Success, start using ValueState.Critical, ValueState.Negative and ValueState.Positive respectively.
111
+ All components with valueState property are also affected. For example:
112
+ ```html
113
+ <ui5-input value-state="Success"></ui5-input>
114
+ <ui5-input value-state="Warning"></ui5-input>
115
+ <ui5-input value-state="Error"></ui5-input>
116
+ ```
117
+ ```html
118
+ <ui5-input value-state="Positive"></ui5-input>
119
+ <ui5-input value-state="Critical"></ui5-input>
120
+ <ui5-input value-state="Negative"></ui5-input>
121
+ ```
122
+
123
+ Related to: https://github.com/SAP/ui5-webcomponents/issues/8461
124
+ * **theming:** Remove SAP Belize theme
125
+ * **Icons:** UI5 Web Components Icons now export `getPathData` (function) instead of `pathData` (string)
126
+
127
+ If you used icons like this:
128
+
129
+ ```js
130
+ import "@ui5/webcomponents-icons/dist/accept.js";
131
+ ```
132
+
133
+ or like this:
134
+
135
+ ```js
136
+ import accept from "@ui5/webcomponents-icons/dist/accept.js";
137
+ ```
138
+
139
+ **there is no change and no adaptations are required**.
140
+
141
+ In the rare case you imported `pathData` from icons, for example:
142
+
143
+ ```js
144
+ import { pathData, ltr, accData } from "@ui5/webcomponents-icons/dist/accept.js";
145
+ console.log(pathData); // String containing the SVG path
146
+ ```
147
+
148
+ you must change your code to, for example:
149
+
150
+ ```js
151
+ import { getPathData, ltr, accData } from "@ui5/webcomponents-icons/dist/accept.js";
152
+ getPathData().then(pathData => {
153
+ console.log(pathData); // String containing the SVG path
154
+ });
155
+ ```
156
+
157
+
158
+
159
+
160
+
6
161
  # [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)
7
162
 
8
163