@ui5/webcomponents-base 0.0.0-0af474175 → 0.0.0-0dd36ca4b

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 (297) hide show
  1. package/CHANGELOG.md +1055 -0
  2. package/README.md +2 -9
  3. package/config/wdio.conf.cjs +0 -8
  4. package/dist/.tsbuildinfo +1 -0
  5. package/dist/AssetRegistry.d.ts +2 -2
  6. package/dist/AssetRegistry.js +2 -2
  7. package/dist/AssetRegistry.js.map +1 -1
  8. package/dist/Boot.d.ts +3 -2
  9. package/dist/Boot.js +8 -6
  10. package/dist/Boot.js.map +1 -1
  11. package/dist/CustomElementsScope.d.ts +4 -4
  12. package/dist/CustomElementsScope.js +2 -2
  13. package/dist/CustomElementsScope.js.map +1 -1
  14. package/dist/CustomElementsScopeUtils.d.ts +8 -1
  15. package/dist/CustomElementsScopeUtils.js +13 -1
  16. package/dist/CustomElementsScopeUtils.js.map +1 -1
  17. package/dist/Device.d.ts +2 -2
  18. package/dist/Device.js +14 -12
  19. package/dist/Device.js.map +1 -1
  20. package/dist/FontFace.js +1 -1
  21. package/dist/FontFace.js.map +1 -1
  22. package/dist/IgnoreCustomElements.d.ts +3 -5
  23. package/dist/IgnoreCustomElements.js +3 -5
  24. package/dist/IgnoreCustomElements.js.map +1 -1
  25. package/dist/InitialConfiguration.d.ts +2 -2
  26. package/dist/InitialConfiguration.js +7 -6
  27. package/dist/InitialConfiguration.js.map +1 -1
  28. package/dist/Keys.d.ts +7 -1
  29. package/dist/Keys.js +113 -106
  30. package/dist/Keys.js.map +1 -1
  31. package/dist/ManagedStyles.d.ts +5 -4
  32. package/dist/ManagedStyles.js +55 -60
  33. package/dist/ManagedStyles.js.map +1 -1
  34. package/dist/MediaRange.d.ts +6 -12
  35. package/dist/MediaRange.js +21 -31
  36. package/dist/MediaRange.js.map +1 -1
  37. package/dist/UI5Element.d.ts +48 -53
  38. package/dist/UI5Element.js +127 -100
  39. package/dist/UI5Element.js.map +1 -1
  40. package/dist/UI5ElementMetadata.d.ts +13 -13
  41. package/dist/UI5ElementMetadata.js +26 -15
  42. package/dist/UI5ElementMetadata.js.map +1 -1
  43. package/dist/asset-registries/Icons.d.ts +4 -3
  44. package/dist/asset-registries/Icons.js +28 -17
  45. package/dist/asset-registries/Icons.js.map +1 -1
  46. package/dist/asset-registries/Illustrations.d.ts +2 -0
  47. package/dist/asset-registries/Illustrations.js +51 -20
  48. package/dist/asset-registries/Illustrations.js.map +1 -1
  49. package/dist/asset-registries/LocaleData.js +1 -1
  50. package/dist/asset-registries/LocaleData.js.map +1 -1
  51. package/dist/asset-registries/Themes.d.ts +4 -3
  52. package/dist/asset-registries/Themes.js +26 -10
  53. package/dist/asset-registries/Themes.js.map +1 -1
  54. package/dist/asset-registries/i18n.d.ts +2 -2
  55. package/dist/asset-registries/i18n.js +4 -3
  56. package/dist/asset-registries/i18n.js.map +1 -1
  57. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.d.ts +1 -2
  58. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.js +1 -2
  59. package/dist/asset-registries/util/IconCollectionsAlias.js.map +1 -0
  60. package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +20 -0
  61. package/dist/asset-registries/util/IconCollectionsByTheme.js +42 -0
  62. package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -0
  63. package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +13 -0
  64. package/dist/asset-registries/util/getIconCollectionByTheme.js +29 -0
  65. package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -0
  66. package/dist/config/CalendarType.d.ts +8 -1
  67. package/dist/config/CalendarType.js +18 -2
  68. package/dist/config/CalendarType.js.map +1 -1
  69. package/dist/config/Icons.d.ts +9 -24
  70. package/dist/config/Icons.js +8 -67
  71. package/dist/config/Icons.js.map +1 -1
  72. package/dist/config/Language.d.ts +1 -1
  73. package/dist/config/Language.js +6 -3
  74. package/dist/config/Language.js.map +1 -1
  75. package/dist/config/Theme.d.ts +4 -3
  76. package/dist/config/Theme.js +13 -6
  77. package/dist/config/Theme.js.map +1 -1
  78. package/dist/config/ThemeRoot.d.ts +2 -4
  79. package/dist/config/ThemeRoot.js +2 -4
  80. package/dist/config/ThemeRoot.js.map +1 -1
  81. package/dist/config/Timezone.d.ts +1 -1
  82. package/dist/config/Timezone.js +1 -1
  83. package/dist/config/Timezone.js.map +1 -1
  84. package/dist/connectToComponent.d.ts +9 -0
  85. package/dist/connectToComponent.js +59 -0
  86. package/dist/connectToComponent.js.map +1 -0
  87. package/dist/css/FontFace.css +47 -17
  88. package/dist/css/SystemCSSVars.css +0 -8
  89. package/dist/custom-elements-internal.json +2952 -0
  90. package/dist/custom-elements.json +2583 -0
  91. package/dist/decorators/customElement.d.ts +3 -3
  92. package/dist/decorators/customElement.js +10 -5
  93. package/dist/decorators/customElement.js.map +1 -1
  94. package/dist/decorators/event.d.ts +5 -2
  95. package/dist/decorators/event.js.map +1 -1
  96. package/dist/decorators.d.ts +5 -0
  97. package/dist/decorators.js +6 -0
  98. package/dist/decorators.js.map +1 -0
  99. package/dist/delegate/ItemNavigation.d.ts +9 -8
  100. package/dist/delegate/ItemNavigation.js +13 -14
  101. package/dist/delegate/ItemNavigation.js.map +1 -1
  102. package/dist/delegate/ResizeHandler.d.ts +4 -6
  103. package/dist/delegate/ResizeHandler.js +4 -6
  104. package/dist/delegate/ResizeHandler.js.map +1 -1
  105. package/dist/delegate/ScrollEnablement.js +2 -2
  106. package/dist/delegate/ScrollEnablement.js.map +1 -1
  107. package/dist/features/InputElementsFormSupport.d.ts +18 -0
  108. package/dist/features/InputElementsFormSupport.js +40 -0
  109. package/dist/features/InputElementsFormSupport.js.map +1 -0
  110. package/dist/features/OpenUI5Enablement.d.ts +1 -1
  111. package/dist/features/OpenUI5Support.d.ts +13 -5
  112. package/dist/features/OpenUI5Support.js +87 -46
  113. package/dist/features/OpenUI5Support.js.map +1 -1
  114. package/dist/features/patchPatcher.d.ts +11 -0
  115. package/dist/features/patchPatcher.js +11 -0
  116. package/dist/features/patchPatcher.js.map +1 -0
  117. package/dist/features/patchPopup.d.ts +14 -0
  118. package/dist/features/patchPopup.js +50 -0
  119. package/dist/features/patchPopup.js.map +1 -0
  120. package/dist/generated/AssetParameters.d.ts +6 -0
  121. package/dist/generated/AssetParameters.js +3 -10
  122. package/dist/generated/AssetParameters.js.map +1 -0
  123. package/dist/generated/VersionInfo.d.ts +10 -0
  124. package/dist/generated/VersionInfo.js +9 -8
  125. package/dist/generated/VersionInfo.js.map +1 -0
  126. package/dist/generated/css/FontFace.css.js +1 -1
  127. package/dist/generated/css/FontFace.css.js.map +1 -1
  128. package/dist/generated/css/SystemCSSVars.css.js +1 -1
  129. package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
  130. package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.d.ts +1 -1
  131. package/dist/i18nBundle.d.ts +2 -4
  132. package/dist/i18nBundle.js +1 -4
  133. package/dist/i18nBundle.js.map +1 -1
  134. package/dist/locale/applyDirection.d.ts +3 -2
  135. package/dist/locale/applyDirection.js +3 -2
  136. package/dist/locale/applyDirection.js.map +1 -1
  137. package/dist/locale/getEffectiveDir.d.ts +1 -1
  138. package/dist/locale/getEffectiveDir.js +3 -19
  139. package/dist/locale/getEffectiveDir.js.map +1 -1
  140. package/dist/renderer/LitRenderer.d.ts +2 -2
  141. package/dist/renderer/LitRenderer.js +2 -8
  142. package/dist/renderer/LitRenderer.js.map +1 -1
  143. package/dist/renderer/directives/style-map.d.ts +13 -0
  144. package/dist/renderer/directives/style-map.js +59 -59
  145. package/dist/renderer/directives/style-map.js.map +1 -0
  146. package/dist/sap/base/Log.js +698 -188
  147. package/dist/sap/base/assert.js +28 -1
  148. package/dist/sap/base/config/MemoryConfigurationProvider.js +20 -0
  149. package/dist/sap/base/security/URLListValidator.js +253 -6
  150. package/dist/sap/base/security/encodeCSS.js +34 -8
  151. package/dist/sap/base/security/encodeXML.js +47 -17
  152. package/dist/sap/base/security/sanitizeHTML.js +35 -13
  153. package/dist/sap/base/strings/toHex.js +27 -2
  154. package/dist/sap/base/util/now.js +24 -3
  155. package/dist/sap/base/util/uid.js +27 -0
  156. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +112 -97
  157. package/dist/ssr-dom-shim.d.ts +1 -0
  158. package/dist/ssr-dom-shim.js +12 -0
  159. package/dist/ssr-dom-shim.js.map +1 -0
  160. package/dist/ssr-dom.d.ts +0 -0
  161. package/dist/ssr-dom.js +0 -0
  162. package/dist/theming/applyTheme.js +5 -5
  163. package/dist/theming/applyTheme.js.map +1 -1
  164. package/dist/theming/getConstructableStyle.d.ts +1 -1
  165. package/dist/theming/getConstructableStyle.js +3 -3
  166. package/dist/theming/getConstructableStyle.js.map +1 -1
  167. package/dist/theming/getEffectiveStyle.d.ts +1 -1
  168. package/dist/theming/getEffectiveStyle.js +5 -12
  169. package/dist/theming/getEffectiveStyle.js.map +1 -1
  170. package/dist/types/AnimationMode.d.ts +0 -8
  171. package/dist/types/AnimationMode.js +0 -8
  172. package/dist/types/AnimationMode.js.map +1 -1
  173. package/dist/types/AriaHasPopup.d.ts +32 -0
  174. package/dist/types/AriaHasPopup.js +34 -0
  175. package/dist/types/AriaHasPopup.js.map +1 -0
  176. package/dist/types/AriaLandmarkRole.d.ts +79 -0
  177. package/dist/types/AriaLandmarkRole.js +81 -0
  178. package/dist/types/AriaLandmarkRole.js.map +1 -0
  179. package/dist/types/AriaRole.d.ts +27 -0
  180. package/dist/types/AriaRole.js +29 -0
  181. package/dist/types/AriaRole.js.map +1 -0
  182. package/dist/types/CSSColor.d.ts +0 -4
  183. package/dist/types/CSSColor.js +0 -4
  184. package/dist/types/CSSColor.js.map +1 -1
  185. package/dist/types/CSSSize.d.ts +11 -0
  186. package/dist/types/CSSSize.js +14 -0
  187. package/dist/types/CSSSize.js.map +1 -0
  188. package/dist/types/CalendarType.d.ts +0 -9
  189. package/dist/types/CalendarType.js +0 -9
  190. package/dist/types/CalendarType.js.map +1 -1
  191. package/dist/types/DOMReference.d.ts +1 -5
  192. package/dist/types/DOMReference.js +1 -5
  193. package/dist/types/DOMReference.js.map +1 -1
  194. package/dist/types/DataType.d.ts +1 -6
  195. package/dist/types/DataType.js +1 -6
  196. package/dist/types/DataType.js.map +1 -1
  197. package/dist/types/Float.d.ts +0 -3
  198. package/dist/types/Float.js +0 -3
  199. package/dist/types/Float.js.map +1 -1
  200. package/dist/types/Integer.d.ts +0 -3
  201. package/dist/types/Integer.js +0 -3
  202. package/dist/types/Integer.js.map +1 -1
  203. package/dist/types/InvisibleMessageMode.d.ts +5 -10
  204. package/dist/types/InvisibleMessageMode.js +4 -11
  205. package/dist/types/InvisibleMessageMode.js.map +1 -1
  206. package/dist/types/ItemNavigationBehavior.d.ts +0 -6
  207. package/dist/types/ItemNavigationBehavior.js +0 -6
  208. package/dist/types/ItemNavigationBehavior.js.map +1 -1
  209. package/dist/types/MovePlacement.d.ts +20 -0
  210. package/dist/types/MovePlacement.js +22 -0
  211. package/dist/types/MovePlacement.js.map +1 -0
  212. package/dist/types/NavigationMode.d.ts +0 -8
  213. package/dist/types/NavigationMode.js +0 -8
  214. package/dist/types/NavigationMode.js.map +1 -1
  215. package/dist/types/Orientation.d.ts +16 -0
  216. package/dist/types/Orientation.js +18 -0
  217. package/dist/types/Orientation.js.map +1 -0
  218. package/dist/types/ValueState.d.ts +3 -17
  219. package/dist/types/ValueState.js +3 -17
  220. package/dist/types/ValueState.js.map +1 -1
  221. package/dist/types.d.ts +24 -1
  222. package/dist/types.js.map +1 -1
  223. package/dist/updateShadowRoot.d.ts +1 -2
  224. package/dist/updateShadowRoot.js +5 -28
  225. package/dist/updateShadowRoot.js.map +1 -1
  226. package/dist/util/ColorConversion.js +200 -195
  227. package/dist/util/ColorConversion.js.map +1 -1
  228. package/dist/util/InvisibleMessage.d.ts +1 -1
  229. package/dist/util/InvisibleMessage.js.map +1 -1
  230. package/dist/util/PopupUtils.d.ts +1 -3
  231. package/dist/util/PopupUtils.js +1 -15
  232. package/dist/util/PopupUtils.js.map +1 -1
  233. package/dist/util/clamp.js +2 -1
  234. package/dist/util/clamp.js.map +1 -1
  235. package/dist/util/createLinkInHead.d.ts +1 -1
  236. package/dist/util/createLinkInHead.js +1 -1
  237. package/dist/util/createLinkInHead.js.map +1 -1
  238. package/dist/util/detectNavigatorLanguage.d.ts +2 -2
  239. package/dist/util/detectNavigatorLanguage.js +6 -1
  240. package/dist/util/detectNavigatorLanguage.js.map +1 -1
  241. package/dist/util/dragAndDrop/DragRegistry.d.ts +12 -0
  242. package/dist/util/dragAndDrop/DragRegistry.js +68 -0
  243. package/dist/util/dragAndDrop/DragRegistry.js.map +1 -0
  244. package/dist/util/dragAndDrop/findClosestPosition.d.ts +7 -0
  245. package/dist/util/dragAndDrop/findClosestPosition.js +59 -0
  246. package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -0
  247. package/dist/util/dragAndDrop/longDragOverHandler.d.ts +2 -0
  248. package/dist/util/dragAndDrop/longDragOverHandler.js +25 -0
  249. package/dist/util/dragAndDrop/longDragOverHandler.js.map +1 -0
  250. package/dist/util/getClassCopy.d.ts +62 -42
  251. package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
  252. package/dist/util/getDesigntimePropertyAsArray.js +2 -1
  253. package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
  254. package/dist/util/getParentElement.d.ts +2 -0
  255. package/dist/util/getParentElement.js +5 -0
  256. package/dist/util/getParentElement.js.map +1 -0
  257. package/dist/util/isElementContainingBlock.d.ts +2 -0
  258. package/dist/util/isElementContainingBlock.js +11 -0
  259. package/dist/util/isElementContainingBlock.js.map +1 -0
  260. package/dist/vscode.html-custom-data.json +22 -0
  261. package/index.js +3 -19
  262. package/package-scripts.cjs +17 -19
  263. package/package.json +16 -7
  264. package/src/css/FontFace.css +47 -17
  265. package/src/css/SystemCSSVars.css +0 -8
  266. package/tsconfig.json +6 -0
  267. package/.eslintignore +0 -16
  268. package/.eslintrc.cjs +0 -3
  269. package/bundle.esm.js +0 -67
  270. package/dist/CSP.d.ts +0 -30
  271. package/dist/CSP.js +0 -51
  272. package/dist/CSP.js.map +0 -1
  273. package/dist/StaticAreaItem.d.ts +0 -36
  274. package/dist/StaticAreaItem.js +0 -102
  275. package/dist/StaticAreaItem.js.map +0 -1
  276. package/dist/api.json +0 -1
  277. package/dist/assets/Boot.34b7cea0.css +0 -1
  278. package/dist/assets/Boot.4ee0e678.js +0 -9
  279. package/dist/assets/bundle.esm.a67f0b0c.js +0 -50
  280. package/dist/assets-meta/IconCollectionsAlias.js.map +0 -1
  281. package/dist/config/RTL.d.ts +0 -7
  282. package/dist/config/RTL.js +0 -37
  283. package/dist/config/RTL.js.map +0 -1
  284. package/dist/theming/getEffectiveLinksHrefs.d.ts +0 -3
  285. package/dist/theming/getEffectiveLinksHrefs.js +0 -17
  286. package/dist/theming/getEffectiveLinksHrefs.js.map +0 -1
  287. package/dist/theming/preloadLinks.d.ts +0 -3
  288. package/dist/theming/preloadLinks.js +0 -19
  289. package/dist/theming/preloadLinks.js.map +0 -1
  290. package/dist/util/createStyleInHead.d.ts +0 -8
  291. package/dist/util/createStyleInHead.js +0 -18
  292. package/dist/util/createStyleInHead.js.map +0 -1
  293. package/lib/generate-asset-parameters/index.js +0 -27
  294. package/lib/generate-styles/index.js +0 -31
  295. package/lib/generate-version-info/index.js +0 -32
  296. package/src/renderer/directives/style-map.js +0 -72
  297. package/used-modules.txt +0 -10
@@ -2,8 +2,6 @@ type Range = Map<string, Array<number>>;
2
2
  /**
3
3
  * Enumeration containing the names and settings of predefined screen width media query range sets.
4
4
  *
5
- * @namespace
6
- * @name MediaRange.RANGESETS
7
5
  * @public
8
6
  */
9
7
  declare enum RANGESETS {
@@ -11,23 +9,19 @@ declare enum RANGESETS {
11
9
  * A 4-step range set (S-M-L-XL).
12
10
  *
13
11
  * The ranges of this set are:
14
- * <ul>
15
- * <li><code>"S"</code>: For screens smaller than 600 pixels.</li>
16
- * <li><code>"M"</code>: For screens greater than or equal to 600 pixels and smaller than 1024 pixels.</li>
17
- * <li><code>"L"</code>: For screens greater than or equal to 1024 pixels and smaller than 1440 pixels.</li>
18
- * <li><code>"XL"</code>: For screens greater than or equal to 1440 pixels.</li>
19
- * </ul>
20
12
  *
21
- * @name MediaRange.RANGESETS.RANGE_4STEPS
13
+ * - `"S"`: For screens smaller than 600 pixels.
14
+ * - `"M"`: For screens greater than or equal to 600 pixels and smaller than 1024 pixels.
15
+ * - `"L"`: For screens greater than or equal to 1024 pixels and smaller than 1440 pixels.
16
+ * - `"XL"`: For screens greater than or equal to 1440 pixels.
17
+ *
18
+ *
22
19
  * @public
23
20
  */
24
21
  RANGE_4STEPS = "4Step"
25
22
  }
26
23
  /**
27
24
  * API for screen width changes.
28
- *
29
- * @namespace
30
- * @name MediaRange
31
25
  */
32
26
  declare const MediaRange: {
33
27
  RANGESETS: typeof RANGESETS;
@@ -7,8 +7,6 @@ DEAFULT_RANGE_SET.set("XL", [1440, Infinity]);
7
7
  /**
8
8
  * Enumeration containing the names and settings of predefined screen width media query range sets.
9
9
  *
10
- * @namespace
11
- * @name MediaRange.RANGESETS
12
10
  * @public
13
11
  */
14
12
  var RANGESETS;
@@ -17,14 +15,13 @@ var RANGESETS;
17
15
  * A 4-step range set (S-M-L-XL).
18
16
  *
19
17
  * The ranges of this set are:
20
- * <ul>
21
- * <li><code>"S"</code>: For screens smaller than 600 pixels.</li>
22
- * <li><code>"M"</code>: For screens greater than or equal to 600 pixels and smaller than 1024 pixels.</li>
23
- * <li><code>"L"</code>: For screens greater than or equal to 1024 pixels and smaller than 1440 pixels.</li>
24
- * <li><code>"XL"</code>: For screens greater than or equal to 1440 pixels.</li>
25
- * </ul>
26
18
  *
27
- * @name MediaRange.RANGESETS.RANGE_4STEPS
19
+ * - `"S"`: For screens smaller than 600 pixels.
20
+ * - `"M"`: For screens greater than or equal to 600 pixels and smaller than 1024 pixels.
21
+ * - `"L"`: For screens greater than or equal to 1024 pixels and smaller than 1440 pixels.
22
+ * - `"XL"`: For screens greater than or equal to 1440 pixels.
23
+ *
24
+ *
28
25
  * @public
29
26
  */
30
27
  RANGESETS["RANGE_4STEPS"] = "4Step";
@@ -32,23 +29,22 @@ var RANGESETS;
32
29
  /**
33
30
  * Initializes a screen width media query range set.
34
31
  *
35
- * This initialization step makes the range set ready to be used for one of the other functions in namespace <code>MediaRange</code>.
32
+ * This initialization step makes the range set ready to be used for one of the other functions in namespace `MediaRange`.
36
33
  *
37
34
  * A range set can be defined as shown in the following example:
38
- * <pre>
35
+ * ```
39
36
  * MediaRange.initRangeSet("MyRangeSet", [200, 400], ["Small", "Medium", "Large"]);
40
- * </pre>
37
+ * ```
41
38
  * This example defines the following named ranges:
42
- * <ul>
43
- * <li><code>"Small"</code>: For screens smaller than 200 pixels.</li>
44
- * <li><code>"Medium"</code>: For screens greater than or equal to 200 pixels and smaller than 400 pixels.</li>
45
- * <li><code>"Large"</code>: For screens greater than or equal to 400 pixels.</li>
46
- * </ul>
47
39
  *
48
- * @param {string} name The name of the range set to be initialized.
40
+ * - `"Small"`: For screens smaller than 200 pixels.
41
+ * - `"Medium"`: For screens greater than or equal to 200 pixels and smaller than 400 pixels.
42
+ * - `"Large"`: For screens greater than or equal to 400 pixels.
43
+ *
44
+ *
45
+ * @param name The name of the range set to be initialized.
49
46
  * The name must be a valid id and consist only of letters and numeric digits.
50
- * @param {Range} [range] The given range set.
51
- * @name MediaRange.initRangeSet
47
+ * @param range The given range set.
52
48
  */
53
49
  const initRangeSet = (name, range) => {
54
50
  mediaRanges.set(name, range);
@@ -56,16 +52,13 @@ const initRangeSet = (name, range) => {
56
52
  /**
57
53
  * Returns information about the current active range of the range set with the given name.
58
54
  *
59
- * If the optional parameter <code>width</code> is given, the active range will be determined for that width,
55
+ * If the optional parameter `width` is given, the active range will be determined for that width,
60
56
  * otherwise it is determined for the current window size.
61
57
  *
62
- * @param {string} name The name of the range set. The range set must be initialized beforehand ({@link MediaRange.initRangeSet})
63
- * @param {number} [width] An optional width, based on which the range should be determined;
64
- * If <code>width</code> is not provided, the window size will be used.
65
- * @returns {string} The name of the current active interval of the range set.
66
- *
67
- * @name MediaRange.getCurrentRange
68
- * @function
58
+ * @param name The name of the range set. The range set must be initialized beforehand ({@link MediaRange.initRangeSet})
59
+ * @param [width] An optional width, based on which the range should be determined;
60
+ * If `width` is not provided, the window size will be used.
61
+ * @returns The name of the current active interval of the range set.
69
62
  * @public
70
63
  */
71
64
  const getCurrentRange = (name, width = window.innerWidth) => {
@@ -84,9 +77,6 @@ const getCurrentRange = (name, width = window.innerWidth) => {
84
77
  };
85
78
  /**
86
79
  * API for screen width changes.
87
- *
88
- * @namespace
89
- * @name MediaRange
90
80
  */
91
81
  const MediaRange = {
92
82
  RANGESETS,
@@ -1 +1 @@
1
- {"version":3,"file":"MediaRange.js","sourceRoot":"","sources":["../src/MediaRange.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,IAAI,GAAG,EAAiB,CAAC;AAE7C,MAAM,iBAAiB,GAAU,IAAI,GAAG,EAAyB,CAAC;AAClE,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;AACrC,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AACxC,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AACzC,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AAE9C;;;;;;GAMG;AACF,IAAK,SAgBL;AAhBA,WAAK,SAAS;IACd;;;;;;;;;;;;;OAaG;IACH,mCAAsB,CAAA;AACvB,CAAC,EAhBK,SAAS,KAAT,SAAS,QAgBd;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,KAAY,EAAE,EAAE;IACnD,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,KAAK,GAAG,MAAM,CAAC,UAAU,EAAU,EAAE;IAC3E,IAAI,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAErC,IAAI,CAAC,QAAQ,EAAE;QACd,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,YAAY,CAAE,CAAC;KACpD;IAED,IAAI,gBAAgB,CAAC;IACrB,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEzC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAC/B,IAAI,cAAc,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,cAAc,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;YAC7D,gBAAgB,GAAG,GAAG,CAAC;SACvB;IACF,CAAC,CAAC,CAAC;IAEH,OAAO,gBAAgB,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF;;;;;GAKG;AAEH,MAAM,UAAU,GAAG;IAClB,SAAS;IACT,YAAY;IACZ,eAAe;CACf,CAAC;AAEF,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;AAE9E,eAAe,UAAU,CAAC","sourcesContent":["type Range = Map<string, Array<number>>;\n\nconst mediaRanges = new Map<string, Range>();\n\nconst DEAFULT_RANGE_SET: Range = new Map<string, Array<number>>();\nDEAFULT_RANGE_SET.set(\"S\", [0, 599]);\nDEAFULT_RANGE_SET.set(\"M\", [600, 1023]);\nDEAFULT_RANGE_SET.set(\"L\", [1024, 1439]);\nDEAFULT_RANGE_SET.set(\"XL\", [1440, Infinity]);\n\n/**\n * Enumeration containing the names and settings of predefined screen width media query range sets.\n *\n * @namespace\n * @name MediaRange.RANGESETS\n * @public\n */\n enum RANGESETS {\n\t/**\n\t * A 4-step range set (S-M-L-XL).\n\t *\n\t * The ranges of this set are:\n\t * <ul>\n\t * <li><code>\"S\"</code>: For screens smaller than 600 pixels.</li>\n\t * <li><code>\"M\"</code>: For screens greater than or equal to 600 pixels and smaller than 1024 pixels.</li>\n\t * <li><code>\"L\"</code>: For screens greater than or equal to 1024 pixels and smaller than 1440 pixels.</li>\n\t * <li><code>\"XL\"</code>: For screens greater than or equal to 1440 pixels.</li>\n\t * </ul>\n\t *\n\t * @name MediaRange.RANGESETS.RANGE_4STEPS\n\t * @public\n\t */\n\tRANGE_4STEPS = \"4Step\",\n}\n\n/**\n * Initializes a screen width media query range set.\n *\n * This initialization step makes the range set ready to be used for one of the other functions in namespace <code>MediaRange</code>.\n *\n * A range set can be defined as shown in the following example:\n * <pre>\n * MediaRange.initRangeSet(\"MyRangeSet\", [200, 400], [\"Small\", \"Medium\", \"Large\"]);\n * </pre>\n * This example defines the following named ranges:\n * <ul>\n * <li><code>\"Small\"</code>: For screens smaller than 200 pixels.</li>\n * <li><code>\"Medium\"</code>: For screens greater than or equal to 200 pixels and smaller than 400 pixels.</li>\n * <li><code>\"Large\"</code>: For screens greater than or equal to 400 pixels.</li>\n * </ul>\n *\n * @param {string} name The name of the range set to be initialized.\n * The name must be a valid id and consist only of letters and numeric digits.\n * @param {Range} [range] The given range set.\n * @name MediaRange.initRangeSet\n */\nconst initRangeSet = (name: string, range: Range) => {\n\tmediaRanges.set(name, range);\n};\n\n/**\n * Returns information about the current active range of the range set with the given name.\n *\n * If the optional parameter <code>width</code> is given, the active range will be determined for that width,\n * otherwise it is determined for the current window size.\n *\n * @param {string} name The name of the range set. The range set must be initialized beforehand ({@link MediaRange.initRangeSet})\n * @param {number} [width] An optional width, based on which the range should be determined;\n * If <code>width</code> is not provided, the window size will be used.\n * @returns {string} The name of the current active interval of the range set.\n *\n * @name MediaRange.getCurrentRange\n * @function\n * @public\n */\nconst getCurrentRange = (name: string, width = window.innerWidth): string => {\n\tlet rangeSet = mediaRanges.get(name);\n\n\tif (!rangeSet) {\n\t\trangeSet = mediaRanges.get(RANGESETS.RANGE_4STEPS)!;\n\t}\n\n\tlet currentRangeName;\n\tconst effectiveWidth = Math.floor(width);\n\n\trangeSet.forEach((value, key) => {\n\t\tif (effectiveWidth >= value[0] && effectiveWidth <= value[1]) {\n\t\t\tcurrentRangeName = key;\n\t\t}\n\t});\n\n\treturn currentRangeName || [...rangeSet.keys()][0];\n};\n\n/**\n * API for screen width changes.\n *\n * @namespace\n * @name MediaRange\n */\n\nconst MediaRange = {\n\tRANGESETS,\n\tinitRangeSet,\n\tgetCurrentRange,\n};\n\nMediaRange.initRangeSet(MediaRange.RANGESETS.RANGE_4STEPS, DEAFULT_RANGE_SET);\n\nexport default MediaRange;\n"]}
1
+ {"version":3,"file":"MediaRange.js","sourceRoot":"","sources":["../src/MediaRange.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG,IAAI,GAAG,EAAiB,CAAC;AAE7C,MAAM,iBAAiB,GAAU,IAAI,GAAG,EAAyB,CAAC;AAClE,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;AACrC,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;AACxC,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AACzC,iBAAiB,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AAE9C;;;;GAIG;AACF,IAAK,SAeL;AAfA,WAAK,SAAS;IACd;;;;;;;;;;;;OAYG;IACH,mCAAsB,CAAA;AACvB,CAAC,EAfK,SAAS,KAAT,SAAS,QAed;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,KAAY,EAAE,EAAE;IACnD,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,KAAK,GAAG,MAAM,CAAC,UAAU,EAAU,EAAE;IAC3E,IAAI,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAErC,IAAI,CAAC,QAAQ,EAAE;QACd,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,YAAY,CAAE,CAAC;KACpD;IAED,IAAI,gBAAgB,CAAC;IACrB,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEzC,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAC/B,IAAI,cAAc,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,cAAc,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE;YAC7D,gBAAgB,GAAG,GAAG,CAAC;SACvB;IACF,CAAC,CAAC,CAAC;IAEH,OAAO,gBAAgB,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,UAAU,GAAG;IAClB,SAAS;IACT,YAAY;IACZ,eAAe;CACf,CAAC;AAEF,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;AAE9E,eAAe,UAAU,CAAC","sourcesContent":["type Range = Map<string, Array<number>>;\n\nconst mediaRanges = new Map<string, Range>();\n\nconst DEAFULT_RANGE_SET: Range = new Map<string, Array<number>>();\nDEAFULT_RANGE_SET.set(\"S\", [0, 599]);\nDEAFULT_RANGE_SET.set(\"M\", [600, 1023]);\nDEAFULT_RANGE_SET.set(\"L\", [1024, 1439]);\nDEAFULT_RANGE_SET.set(\"XL\", [1440, Infinity]);\n\n/**\n * Enumeration containing the names and settings of predefined screen width media query range sets.\n *\n * @public\n */\n enum RANGESETS {\n\t/**\n\t * A 4-step range set (S-M-L-XL).\n\t *\n\t * The ranges of this set are:\n\t *\n\t * - `\"S\"`: For screens smaller than 600 pixels.\n\t * - `\"M\"`: For screens greater than or equal to 600 pixels and smaller than 1024 pixels.\n\t * - `\"L\"`: For screens greater than or equal to 1024 pixels and smaller than 1440 pixels.\n\t * - `\"XL\"`: For screens greater than or equal to 1440 pixels.\n\t *\n\t *\n\t * @public\n\t */\n\tRANGE_4STEPS = \"4Step\",\n}\n\n/**\n * Initializes a screen width media query range set.\n *\n * This initialization step makes the range set ready to be used for one of the other functions in namespace `MediaRange`.\n *\n * A range set can be defined as shown in the following example:\n * ```\n * MediaRange.initRangeSet(\"MyRangeSet\", [200, 400], [\"Small\", \"Medium\", \"Large\"]);\n * ```\n * This example defines the following named ranges:\n *\n * - `\"Small\"`: For screens smaller than 200 pixels.\n * - `\"Medium\"`: For screens greater than or equal to 200 pixels and smaller than 400 pixels.\n * - `\"Large\"`: For screens greater than or equal to 400 pixels.\n *\n *\n * @param name The name of the range set to be initialized.\n * The name must be a valid id and consist only of letters and numeric digits.\n * @param range The given range set.\n */\nconst initRangeSet = (name: string, range: Range) => {\n\tmediaRanges.set(name, range);\n};\n\n/**\n * Returns information about the current active range of the range set with the given name.\n *\n * If the optional parameter `width` is given, the active range will be determined for that width,\n * otherwise it is determined for the current window size.\n *\n * @param name The name of the range set. The range set must be initialized beforehand ({@link MediaRange.initRangeSet})\n * @param [width] An optional width, based on which the range should be determined;\n * If `width` is not provided, the window size will be used.\n * @returns The name of the current active interval of the range set.\n * @public\n */\nconst getCurrentRange = (name: string, width = window.innerWidth): string => {\n\tlet rangeSet = mediaRanges.get(name);\n\n\tif (!rangeSet) {\n\t\trangeSet = mediaRanges.get(RANGESETS.RANGE_4STEPS)!;\n\t}\n\n\tlet currentRangeName;\n\tconst effectiveWidth = Math.floor(width);\n\n\trangeSet.forEach((value, key) => {\n\t\tif (effectiveWidth >= value[0] && effectiveWidth <= value[1]) {\n\t\t\tcurrentRangeName = key;\n\t\t}\n\t});\n\n\treturn currentRangeName || [...rangeSet.keys()][0];\n};\n\n/**\n * API for screen width changes.\n */\nconst MediaRange = {\n\tRANGESETS,\n\tinitRangeSet,\n\tgetCurrentRange,\n};\n\nMediaRange.initRangeSet(MediaRange.RANGESETS.RANGE_4STEPS, DEAFULT_RANGE_SET);\n\nexport default MediaRange;\n"]}
@@ -1,9 +1,9 @@
1
+ import "@ui5/webcomponents-base/dist/ssr-dom.js";
1
2
  import UI5ElementMetadata, { Slot, SlotValue, State, PropertyValue, Metadata } from "./UI5ElementMetadata.js";
2
3
  import EventProvider from "./EventProvider.js";
3
- import StaticAreaItem from "./StaticAreaItem.js";
4
4
  import type { TemplateFunction, TemplateFunctionResult } from "./renderer/executeTemplate.js";
5
- import type { PromiseResolve, ComponentStylesData, ClassMap } from "./types.js";
6
- type Renderer = (templateResult: TemplateFunctionResult, container: HTMLElement | DocumentFragment, styleStrOrHrefsArr: string | Array<string> | undefined, forStaticArea: boolean, options: RendererOptions) => void;
5
+ import type { AccessibilityInfo, PromiseResolve, ComponentStylesData, ClassMap } from "./types.js";
6
+ type Renderer = (templateResult: TemplateFunctionResult, container: HTMLElement | DocumentFragment, options: RendererOptions) => void;
7
7
  type RendererOptions = {
8
8
  /**
9
9
  * An object to use as the `this` value for event listeners. It's often
@@ -26,12 +26,9 @@ type InvalidationInfo = ChangeInfo & {
26
26
  type ChildChangeListener = (param: InvalidationInfo) => void;
27
27
  type SlotChangeListener = (this: HTMLSlotElement, ev: Event) => void;
28
28
  /**
29
+ * @class
29
30
  * Base class for all UI5 Web Components
30
31
  *
31
- * @class
32
- * @constructor
33
- * @author SAP SE
34
- * @alias sap.ui.webc.base.UI5Element
35
32
  * @extends HTMLElement
36
33
  * @public
37
34
  */
@@ -39,7 +36,8 @@ declare abstract class UI5Element extends HTMLElement {
39
36
  __id?: string;
40
37
  _suppressInvalidation: boolean;
41
38
  _changedState: Array<ChangeInfo>;
42
- _eventProvider: EventProvider<InvalidationInfo, void>;
39
+ _invalidationEventProvider: EventProvider<InvalidationInfo, void>;
40
+ _componentStateFinalizedEventProvider: EventProvider<void, void>;
43
41
  _inDOM: boolean;
44
42
  _fullyConnected: boolean;
45
43
  _childChangeListeners: Map<string, ChildChangeListener>;
@@ -49,17 +47,11 @@ declare abstract class UI5Element extends HTMLElement {
49
47
  };
50
48
  _doNotSyncAttributes: Set<string>;
51
49
  _state: State;
52
- _onComponentStateFinalized?: () => void;
50
+ _internals?: ElementInternals;
53
51
  _getRealDomRef?: () => HTMLElement;
54
- staticAreaItem?: StaticAreaItem;
55
52
  static template?: TemplateFunction;
56
- static staticAreaTemplate?: TemplateFunction;
57
53
  static _metadata: UI5ElementMetadata;
58
- /**
59
- * @deprecated
60
- */
61
- static render: Renderer;
62
- static renderer?: Renderer;
54
+ static renderer: Renderer;
63
55
  constructor();
64
56
  /**
65
57
  * Returns a unique ID for this UI5 Element
@@ -69,7 +61,6 @@ declare abstract class UI5Element extends HTMLElement {
69
61
  */
70
62
  get _id(): string;
71
63
  render(): object;
72
- renderStatic(): object;
73
64
  /**
74
65
  * Do not call this method from derivatives of UI5Element, use "onEnterDOM" only
75
66
  * @private
@@ -125,22 +116,22 @@ declare abstract class UI5Element extends HTMLElement {
125
116
  /**
126
117
  * Attach a callback that will be executed whenever the component is invalidated
127
118
  *
128
- * @param {InvalidationInfo} callback
119
+ * @param callback
129
120
  * @public
130
121
  */
131
122
  attachInvalidate(callback: (param: InvalidationInfo) => void): void;
132
123
  /**
133
124
  * Detach the callback that is executed whenever the component is invalidated
134
125
  *
135
- * @param {InvalidationInfo} callback
126
+ * @param callback
136
127
  * @public
137
128
  */
138
129
  detachInvalidate(callback: (param: InvalidationInfo) => void): void;
139
130
  /**
140
131
  * Callback that is executed whenever a monitored child changes its state
141
132
  *
142
- * @param {sting} slotName the slot in which a child was invalidated
143
- * @param { ChangeInfo } childChangeInfo the changeInfo object for the child in the given slot
133
+ * @param slotName the slot in which a child was invalidated
134
+ * @param childChangeInfo the changeInfo object for the child in the given slot
144
135
  * @private
145
136
  */
146
137
  _onChildChange(slotName: string, childChangeInfo: ChangeInfo): void;
@@ -149,6 +140,8 @@ declare abstract class UI5Element extends HTMLElement {
149
140
  * @private
150
141
  */
151
142
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
143
+ formAssociatedCallback(): void;
144
+ static get formAssociated(): boolean;
152
145
  /**
153
146
  * @private
154
147
  */
@@ -165,15 +158,13 @@ declare abstract class UI5Element extends HTMLElement {
165
158
  * Returns a singleton event listener for the "change" event of a child in a given slot
166
159
  *
167
160
  * @param slotName the name of the slot, where the child is
168
- * @returns {ChildChangeListener}
169
161
  * @private
170
162
  */
171
- _getChildChangeListener(slotName: string): ChildChangeListener | undefined;
163
+ _getChildChangeListener(slotName: string): ChildChangeListener;
172
164
  /**
173
165
  * Returns a singleton slotchange event listener that invalidates the component due to changes in the given slot
174
166
  *
175
167
  * @param slotName the name of the slot, where the slot element (whose slotchange event we're listening to) is
176
- * @returns {SlotChangeListener}
177
168
  * @private
178
169
  */
179
170
  _getSlotChangeListener(slotName: string): SlotChangeListener;
@@ -207,9 +198,9 @@ declare abstract class UI5Element extends HTMLElement {
207
198
  * 1) children: immediate children (HTML elements or text nodes) were added, removed or reordered in the slot
208
199
  * 2) textcontent: text nodes in the slot changed value (or nested text nodes were added or changed value). Can only trigger for slots of "type: Node"
209
200
  * 3) slotchange: a slot element, slotted inside that slot had its "slotchange" event listener called. This practically means that transitively slotted children changed.
210
- * Can only trigger if the child of a slot is a slot element itself.
201
+ * Can only trigger if the child of a slot is a slot element itself.
211
202
  * 4) childchange: indicates that a UI5Element child in that slot was invalidated and in turn invalidated the component.
212
- * Can only trigger for slots with "invalidateOnChildChange" metadata descriptor
203
+ * Can only trigger for slots with "invalidateOnChildChange" metadata descriptor
213
204
  *
214
205
  * - newValue: the new value of the property (for type="property" only)
215
206
  *
@@ -257,7 +248,7 @@ declare abstract class UI5Element extends HTMLElement {
257
248
  getFocusDomRefAsync(): Promise<HTMLElement | undefined>;
258
249
  /**
259
250
  * Set the focus to the element, returned by "getFocusDomRef()" (marked by "data-sap-focus-ref")
260
- * @param {FocusOptions} focusOptions additional options for the focus
251
+ * @param focusOptions additional options for the focus
261
252
  * @public
262
253
  */
263
254
  focus(focusOptions?: FocusOptions): Promise<void>;
@@ -268,7 +259,7 @@ declare abstract class UI5Element extends HTMLElement {
268
259
  * @param data - additional data for the event
269
260
  * @param cancelable - true, if the user can call preventDefault on the event object
270
261
  * @param bubbles - true, if the event bubbles
271
- * @returns {boolean} false, if the event was cancelled (preventDefault called), true otherwise
262
+ * @returns false, if the event was cancelled (preventDefault called), true otherwise
272
263
  */
273
264
  fireEvent<T>(name: string, data?: T, cancelable?: boolean, bubbles?: boolean): boolean;
274
265
  _fireEvent<T>(name: string, data?: T, cancelable?: boolean, bubbles?: boolean): boolean;
@@ -277,39 +268,50 @@ declare abstract class UI5Element extends HTMLElement {
277
268
  * Useful when there are transitive slots in nested component scenarios and you don't want to get a list of the slots, but rather of their content.
278
269
  * @public
279
270
  */
280
- getSlottedNodes<T = Node>(slotName: string): T[];
271
+ getSlottedNodes<T = Node>(slotName: string): Array<T>;
272
+ /**
273
+ * Attach a callback that will be executed whenever the component's state is finalized
274
+ *
275
+ * @param callback
276
+ * @public
277
+ */
278
+ attachComponentStateFinalized(callback: () => void): void;
279
+ /**
280
+ * Detach the callback that is executed whenever the component's state is finalized
281
+ *
282
+ * @param callback
283
+ * @public
284
+ */
285
+ detachComponentStateFinalized(callback: () => void): void;
281
286
  /**
282
287
  * Determines whether the component should be rendered in RTL mode or not.
283
288
  * Returns: "rtl", "ltr" or undefined
284
289
  *
285
290
  * @public
286
- * @returns {String|undefined}
291
+ * @default undefined
287
292
  */
288
293
  get effectiveDir(): string | undefined;
289
294
  /**
290
295
  * Used to duck-type UI5 elements without using instanceof
291
- * @returns {boolean}
292
296
  * @public
297
+ * @default true
293
298
  */
294
299
  get isUI5Element(): boolean;
295
300
  get classes(): ClassMap;
296
301
  /**
297
- * Do not override this method in derivatives of UI5Element, use metadata properties instead
302
+ * Returns the component accessibility info.
298
303
  * @private
299
304
  */
300
- static get observedAttributes(): string[];
305
+ get accessibilityInfo(): AccessibilityInfo;
301
306
  /**
307
+ * Do not override this method in derivatives of UI5Element, use metadata properties instead
302
308
  * @private
303
309
  */
304
- static _needsShadowDOM(): boolean;
310
+ static get observedAttributes(): string[];
305
311
  /**
306
312
  * @private
307
313
  */
308
- static _needsStaticArea(): boolean;
309
- /**
310
- * @public
311
- */
312
- getStaticAreaItemDomRef(): Promise<ShadowRoot | null>;
314
+ static _needsShadowDOM(): boolean;
313
315
  /**
314
316
  * @private
315
317
  */
@@ -323,12 +325,7 @@ declare abstract class UI5Element extends HTMLElement {
323
325
  * Returns the CSS for this UI5 Web Component Class
324
326
  * @protected
325
327
  */
326
- static get styles(): ComponentStylesData;
327
- /**
328
- * Returns the Static Area CSS for this UI5 Web Component Class
329
- * @protected
330
- */
331
- static get staticAreaStyles(): ComponentStylesData;
328
+ static styles: ComponentStylesData;
332
329
  /**
333
330
  * Returns an array with the dependencies for this UI5 Web Component, which could be:
334
331
  * - composed components (used in its shadow root or static area item)
@@ -342,39 +339,37 @@ declare abstract class UI5Element extends HTMLElement {
342
339
  *
343
340
  * @public
344
341
  */
345
- static getUniqueDependencies(this: typeof UI5Element): (typeof UI5Element)[];
342
+ static getUniqueDependencies(this: typeof UI5Element): Array<typeof UI5Element>;
346
343
  /**
347
344
  * Returns a promise that resolves whenever all dependencies for this UI5 Web Component have resolved
348
- *
349
- * @returns {Promise}
350
345
  */
351
346
  static whenDependenciesDefined(): Promise<Array<typeof UI5Element>>;
352
347
  /**
353
348
  * Hook that will be called upon custom element definition
354
349
  *
355
350
  * @protected
356
- * @returns {Promise<void>}
357
351
  */
358
352
  static onDefine(): Promise<void>;
359
353
  /**
360
354
  * Registers a UI5 Web Component in the browser window object
361
355
  * @public
362
- * @returns {Promise<UI5Element>}
363
356
  */
364
357
  static define(): Promise<typeof UI5Element>;
365
358
  /**
366
359
  * Returns an instance of UI5ElementMetadata.js representing this UI5 Web Component's full metadata (its and its parents')
367
360
  * Note: not to be confused with the "get metadata()" method, which returns an object for this class's metadata only
368
361
  * @public
369
- * @returns {UI5ElementMetadata}
370
362
  */
371
363
  static getMetadata(): UI5ElementMetadata;
364
+ get validity(): ValidityState | undefined;
365
+ get validationMessage(): string | undefined;
366
+ checkValidity(): boolean | undefined;
367
+ reportValidity(): boolean | undefined;
372
368
  }
373
369
  /**
374
370
  * Always use duck-typing to cover all runtimes on the page.
375
- * @returns {boolean}
376
371
  */
377
372
  declare const instanceOfUI5Element: (object: any) => object is UI5Element;
378
373
  export default UI5Element;
379
- export { instanceOfUI5Element };
374
+ export { instanceOfUI5Element, };
380
375
  export type { ChangeInfo, Renderer, RendererOptions, };