@ui5/webcomponents-base 0.0.0-d1315d658 → 0.0.0-d473b9686

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 (301) hide show
  1. package/CHANGELOG.md +948 -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/IgnoreCustomElements.d.ts +3 -5
  21. package/dist/IgnoreCustomElements.js +3 -5
  22. package/dist/IgnoreCustomElements.js.map +1 -1
  23. package/dist/InitialConfiguration.d.ts +2 -2
  24. package/dist/InitialConfiguration.js +6 -5
  25. package/dist/InitialConfiguration.js.map +1 -1
  26. package/dist/Keys.d.ts +3 -1
  27. package/dist/Keys.js +109 -106
  28. package/dist/Keys.js.map +1 -1
  29. package/dist/ManagedStyles.d.ts +5 -4
  30. package/dist/ManagedStyles.js +55 -60
  31. package/dist/ManagedStyles.js.map +1 -1
  32. package/dist/MediaRange.d.ts +6 -12
  33. package/dist/MediaRange.js +21 -31
  34. package/dist/MediaRange.js.map +1 -1
  35. package/dist/UI5Element.d.ts +50 -54
  36. package/dist/UI5Element.js +179 -112
  37. package/dist/UI5Element.js.map +1 -1
  38. package/dist/UI5ElementMetadata.d.ts +13 -13
  39. package/dist/UI5ElementMetadata.js +26 -15
  40. package/dist/UI5ElementMetadata.js.map +1 -1
  41. package/dist/asset-registries/Icons.d.ts +4 -3
  42. package/dist/asset-registries/Icons.js +28 -17
  43. package/dist/asset-registries/Icons.js.map +1 -1
  44. package/dist/asset-registries/Illustrations.d.ts +2 -0
  45. package/dist/asset-registries/Illustrations.js +51 -20
  46. package/dist/asset-registries/Illustrations.js.map +1 -1
  47. package/dist/asset-registries/LocaleData.js +1 -1
  48. package/dist/asset-registries/LocaleData.js.map +1 -1
  49. package/dist/asset-registries/Themes.d.ts +4 -3
  50. package/dist/asset-registries/Themes.js +26 -10
  51. package/dist/asset-registries/Themes.js.map +1 -1
  52. package/dist/asset-registries/i18n.d.ts +2 -2
  53. package/dist/asset-registries/i18n.js +4 -3
  54. package/dist/asset-registries/i18n.js.map +1 -1
  55. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.d.ts +1 -2
  56. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.js +1 -2
  57. package/dist/asset-registries/util/IconCollectionsAlias.js.map +1 -0
  58. package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +20 -0
  59. package/dist/asset-registries/util/IconCollectionsByTheme.js +42 -0
  60. package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -0
  61. package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +13 -0
  62. package/dist/asset-registries/util/getIconCollectionByTheme.js +29 -0
  63. package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -0
  64. package/dist/config/AnimationMode.js +2 -1
  65. package/dist/config/AnimationMode.js.map +1 -1
  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 +13 -1
  88. package/dist/css/SystemCSSVars.css +0 -8
  89. package/dist/decorators/customElement.d.ts +3 -3
  90. package/dist/decorators/customElement.js +11 -6
  91. package/dist/decorators/customElement.js.map +1 -1
  92. package/dist/decorators/event.d.ts +5 -2
  93. package/dist/decorators/event.js.map +1 -1
  94. package/dist/decorators.d.ts +5 -0
  95. package/dist/decorators.js +6 -0
  96. package/dist/decorators.js.map +1 -0
  97. package/dist/delegate/ItemNavigation.d.ts +9 -8
  98. package/dist/delegate/ItemNavigation.js +12 -13
  99. package/dist/delegate/ItemNavigation.js.map +1 -1
  100. package/dist/delegate/ResizeHandler.d.ts +4 -6
  101. package/dist/delegate/ResizeHandler.js +4 -6
  102. package/dist/delegate/ResizeHandler.js.map +1 -1
  103. package/dist/delegate/ScrollEnablement.js +2 -2
  104. package/dist/delegate/ScrollEnablement.js.map +1 -1
  105. package/dist/features/InputElementsFormSupport.d.ts +18 -0
  106. package/dist/features/InputElementsFormSupport.js +40 -0
  107. package/dist/features/InputElementsFormSupport.js.map +1 -0
  108. package/dist/features/OpenUI5Enablement.d.ts +1 -1
  109. package/dist/features/OpenUI5Support.d.ts +0 -2
  110. package/dist/features/OpenUI5Support.js +8 -22
  111. package/dist/features/OpenUI5Support.js.map +1 -1
  112. package/dist/features/patchPatcher.d.ts +11 -0
  113. package/dist/features/patchPatcher.js +11 -0
  114. package/dist/features/patchPatcher.js.map +1 -0
  115. package/dist/features/patchPopup.d.ts +14 -0
  116. package/dist/features/patchPopup.js +50 -0
  117. package/dist/features/patchPopup.js.map +1 -0
  118. package/dist/generated/AssetParameters.d.ts +6 -0
  119. package/dist/generated/AssetParameters.js +3 -10
  120. package/dist/generated/AssetParameters.js.map +1 -0
  121. package/dist/generated/VersionInfo.d.ts +10 -0
  122. package/dist/generated/VersionInfo.js +9 -8
  123. package/dist/generated/VersionInfo.js.map +1 -0
  124. package/dist/generated/css/FontFace.css.js +1 -1
  125. package/dist/generated/css/FontFace.css.js.map +1 -1
  126. package/dist/generated/css/SystemCSSVars.css.js +1 -1
  127. package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
  128. package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.d.ts +1 -1
  129. package/dist/i18nBundle.d.ts +1 -3
  130. package/dist/i18nBundle.js +1 -4
  131. package/dist/i18nBundle.js.map +1 -1
  132. package/dist/locale/applyDirection.d.ts +3 -2
  133. package/dist/locale/applyDirection.js +3 -2
  134. package/dist/locale/applyDirection.js.map +1 -1
  135. package/dist/locale/getEffectiveDir.d.ts +1 -1
  136. package/dist/locale/getEffectiveDir.js +3 -19
  137. package/dist/locale/getEffectiveDir.js.map +1 -1
  138. package/dist/renderer/LitRenderer.d.ts +2 -2
  139. package/dist/renderer/LitRenderer.js +2 -8
  140. package/dist/renderer/LitRenderer.js.map +1 -1
  141. package/dist/renderer/directives/style-map.d.ts +13 -0
  142. package/dist/renderer/directives/style-map.js +59 -59
  143. package/dist/renderer/directives/style-map.js.map +1 -0
  144. package/dist/renderer/executeTemplate.d.ts +8 -0
  145. package/dist/renderer/executeTemplate.js +1 -0
  146. package/dist/renderer/executeTemplate.js.map +1 -1
  147. package/dist/sap/base/Log.js +698 -188
  148. package/dist/sap/base/assert.js +28 -1
  149. package/dist/sap/base/config/MemoryConfigurationProvider.js +20 -0
  150. package/dist/sap/base/security/URLListValidator.js +253 -6
  151. package/dist/sap/base/security/encodeCSS.js +34 -8
  152. package/dist/sap/base/security/encodeXML.js +47 -17
  153. package/dist/sap/base/security/sanitizeHTML.js +35 -13
  154. package/dist/sap/base/strings/toHex.js +27 -2
  155. package/dist/sap/base/util/now.js +24 -3
  156. package/dist/sap/base/util/uid.js +27 -0
  157. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +1 -1
  158. package/dist/ssr-dom-shim.d.ts +1 -0
  159. package/dist/ssr-dom-shim.js +12 -0
  160. package/dist/ssr-dom-shim.js.map +1 -0
  161. package/dist/ssr-dom.d.ts +0 -0
  162. package/dist/ssr-dom.js +0 -0
  163. package/dist/theming/applyTheme.js +5 -6
  164. package/dist/theming/applyTheme.js.map +1 -1
  165. package/dist/theming/getConstructableStyle.d.ts +1 -1
  166. package/dist/theming/getConstructableStyle.js +3 -3
  167. package/dist/theming/getConstructableStyle.js.map +1 -1
  168. package/dist/theming/getEffectiveStyle.d.ts +1 -1
  169. package/dist/theming/getEffectiveStyle.js +5 -12
  170. package/dist/theming/getEffectiveStyle.js.map +1 -1
  171. package/dist/types/AnimationMode.d.ts +0 -8
  172. package/dist/types/AnimationMode.js +0 -8
  173. package/dist/types/AnimationMode.js.map +1 -1
  174. package/dist/types/AriaHasPopup.d.ts +32 -0
  175. package/dist/types/AriaHasPopup.js +34 -0
  176. package/dist/types/AriaHasPopup.js.map +1 -0
  177. package/dist/types/AriaLandmarkRole.d.ts +79 -0
  178. package/dist/types/AriaLandmarkRole.js +81 -0
  179. package/dist/types/AriaLandmarkRole.js.map +1 -0
  180. package/dist/types/AriaRole.d.ts +27 -0
  181. package/dist/types/AriaRole.js +29 -0
  182. package/dist/types/AriaRole.js.map +1 -0
  183. package/dist/types/CSSColor.d.ts +0 -4
  184. package/dist/types/CSSColor.js +0 -4
  185. package/dist/types/CSSColor.js.map +1 -1
  186. package/dist/types/CSSSize.d.ts +11 -0
  187. package/dist/types/CSSSize.js +14 -0
  188. package/dist/types/CSSSize.js.map +1 -0
  189. package/dist/types/CalendarType.d.ts +0 -9
  190. package/dist/types/CalendarType.js +0 -9
  191. package/dist/types/CalendarType.js.map +1 -1
  192. package/dist/types/DOMReference.d.ts +1 -5
  193. package/dist/types/DOMReference.js +1 -5
  194. package/dist/types/DOMReference.js.map +1 -1
  195. package/dist/types/DataType.d.ts +1 -6
  196. package/dist/types/DataType.js +1 -6
  197. package/dist/types/DataType.js.map +1 -1
  198. package/dist/types/Float.d.ts +0 -3
  199. package/dist/types/Float.js +0 -3
  200. package/dist/types/Float.js.map +1 -1
  201. package/dist/types/Integer.d.ts +0 -3
  202. package/dist/types/Integer.js +0 -3
  203. package/dist/types/Integer.js.map +1 -1
  204. package/dist/types/InvisibleMessageMode.d.ts +5 -10
  205. package/dist/types/InvisibleMessageMode.js +4 -11
  206. package/dist/types/InvisibleMessageMode.js.map +1 -1
  207. package/dist/types/ItemNavigationBehavior.d.ts +0 -6
  208. package/dist/types/ItemNavigationBehavior.js +0 -6
  209. package/dist/types/ItemNavigationBehavior.js.map +1 -1
  210. package/dist/types/MovePlacement.d.ts +20 -0
  211. package/dist/types/MovePlacement.js +22 -0
  212. package/dist/types/MovePlacement.js.map +1 -0
  213. package/dist/types/NavigationMode.d.ts +0 -8
  214. package/dist/types/NavigationMode.js +0 -8
  215. package/dist/types/NavigationMode.js.map +1 -1
  216. package/dist/types/Orientation.d.ts +16 -0
  217. package/dist/types/Orientation.js +18 -0
  218. package/dist/types/Orientation.js.map +1 -0
  219. package/dist/types/ValueState.d.ts +3 -17
  220. package/dist/types/ValueState.js +3 -17
  221. package/dist/types/ValueState.js.map +1 -1
  222. package/dist/types.d.ts +24 -1
  223. package/dist/types.js.map +1 -1
  224. package/dist/updateShadowRoot.d.ts +1 -2
  225. package/dist/updateShadowRoot.js +5 -28
  226. package/dist/updateShadowRoot.js.map +1 -1
  227. package/dist/util/ColorConversion.js +200 -195
  228. package/dist/util/ColorConversion.js.map +1 -1
  229. package/dist/util/InvisibleMessage.d.ts +1 -1
  230. package/dist/util/InvisibleMessage.js +2 -2
  231. package/dist/util/InvisibleMessage.js.map +1 -1
  232. package/dist/util/PopupUtils.d.ts +1 -3
  233. package/dist/util/PopupUtils.js +1 -15
  234. package/dist/util/PopupUtils.js.map +1 -1
  235. package/dist/util/clamp.js +2 -1
  236. package/dist/util/clamp.js.map +1 -1
  237. package/dist/util/createLinkInHead.d.ts +1 -1
  238. package/dist/util/createLinkInHead.js +1 -1
  239. package/dist/util/createLinkInHead.js.map +1 -1
  240. package/dist/util/detectNavigatorLanguage.d.ts +2 -2
  241. package/dist/util/detectNavigatorLanguage.js +6 -1
  242. package/dist/util/detectNavigatorLanguage.js.map +1 -1
  243. package/dist/util/dragAndDrop/DragRegistry.d.ts +12 -0
  244. package/dist/util/dragAndDrop/DragRegistry.js +68 -0
  245. package/dist/util/dragAndDrop/DragRegistry.js.map +1 -0
  246. package/dist/util/dragAndDrop/findClosestPosition.d.ts +7 -0
  247. package/dist/util/dragAndDrop/findClosestPosition.js +59 -0
  248. package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -0
  249. package/dist/util/dragAndDrop/longDragOverHandler.d.ts +2 -0
  250. package/dist/util/dragAndDrop/longDragOverHandler.js +25 -0
  251. package/dist/util/dragAndDrop/longDragOverHandler.js.map +1 -0
  252. package/dist/util/getClassCopy.d.ts +64 -43
  253. package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
  254. package/dist/util/getDesigntimePropertyAsArray.js +2 -1
  255. package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
  256. package/dist/util/getParentElement.d.ts +2 -0
  257. package/dist/util/getParentElement.js +5 -0
  258. package/dist/util/getParentElement.js.map +1 -0
  259. package/dist/util/isElementContainingBlock.d.ts +2 -0
  260. package/dist/util/isElementContainingBlock.js +11 -0
  261. package/dist/util/isElementContainingBlock.js.map +1 -0
  262. package/index.js +3 -19
  263. package/package-scripts.cjs +22 -19
  264. package/package.json +23 -8
  265. package/src/css/FontFace.css +13 -1
  266. package/src/css/SystemCSSVars.css +0 -8
  267. package/tsconfig.json +6 -0
  268. package/.eslintignore +0 -16
  269. package/.eslintrc.cjs +0 -3
  270. package/bundle.esm.js +0 -67
  271. package/dist/CSP.d.ts +0 -30
  272. package/dist/CSP.js +0 -51
  273. package/dist/CSP.js.map +0 -1
  274. package/dist/StaticArea.d.ts +0 -3
  275. package/dist/StaticArea.js +0 -7
  276. package/dist/StaticArea.js.map +0 -1
  277. package/dist/StaticAreaItem.d.ts +0 -37
  278. package/dist/StaticAreaItem.js +0 -105
  279. package/dist/StaticAreaItem.js.map +0 -1
  280. package/dist/api.json +0 -1
  281. package/dist/assets/Boot.34b7cea0.css +0 -1
  282. package/dist/assets/Boot.f668b2d0.js +0 -9
  283. package/dist/assets/bundle.esm.88a9eda7.js +0 -50
  284. package/dist/assets-meta/IconCollectionsAlias.js.map +0 -1
  285. package/dist/config/RTL.d.ts +0 -7
  286. package/dist/config/RTL.js +0 -37
  287. package/dist/config/RTL.js.map +0 -1
  288. package/dist/theming/getEffectiveLinksHrefs.d.ts +0 -3
  289. package/dist/theming/getEffectiveLinksHrefs.js +0 -17
  290. package/dist/theming/getEffectiveLinksHrefs.js.map +0 -1
  291. package/dist/theming/preloadLinks.d.ts +0 -3
  292. package/dist/theming/preloadLinks.js +0 -19
  293. package/dist/theming/preloadLinks.js.map +0 -1
  294. package/dist/util/createStyleInHead.d.ts +0 -8
  295. package/dist/util/createStyleInHead.js +0 -18
  296. package/dist/util/createStyleInHead.js.map +0 -1
  297. package/lib/generate-asset-parameters/index.js +0 -27
  298. package/lib/generate-styles/index.js +0 -31
  299. package/lib/generate-version-info/index.js +0 -32
  300. package/src/renderer/directives/style-map.js +0 -72
  301. package/used-modules.txt +0 -10
@@ -4,26 +4,26 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
4
4
  __id?: string | undefined;
5
5
  _suppressInvalidation: boolean;
6
6
  _changedState: import("../UI5Element.js").ChangeInfo[];
7
- _eventProvider: import("../EventProvider.js").default<import("../UI5Element.js").ChangeInfo & {
7
+ _invalidationEventProvider: import("../EventProvider.js").default<import("../UI5Element.js").ChangeInfo & {
8
8
  target: UI5Element;
9
9
  }, void>;
10
+ _componentStateFinalizedEventProvider: import("../EventProvider.js").default<void, void>;
10
11
  _inDOM: boolean;
11
12
  _fullyConnected: boolean;
12
13
  _childChangeListeners: Map<string, (param: import("../UI5Element.js").ChangeInfo & {
13
14
  target: UI5Element;
14
15
  }) => void>;
16
+ _slotsAssignedNodes: WeakMap<HTMLSlotElement, Node[]>;
15
17
  _slotChangeListeners: Map<string, (this: HTMLSlotElement, ev: Event) => void>;
16
18
  _domRefReadyPromise: Promise<void> & {
17
19
  _deferredResolve?: import("../types.js").PromiseResolve | undefined;
18
20
  };
19
21
  _doNotSyncAttributes: Set<string>;
20
22
  _state: import("../UI5ElementMetadata.js").State;
21
- _onComponentStateFinalized?: (() => void) | undefined;
23
+ _internals?: ElementInternals | undefined;
22
24
  _getRealDomRef?: (() => HTMLElement) | undefined;
23
- staticAreaItem?: import("../StaticAreaItem.js").default | undefined;
24
25
  readonly _id: string;
25
26
  render(): object;
26
- renderStatic(): object;
27
27
  connectedCallback(): Promise<void>;
28
28
  disconnectedCallback(): void;
29
29
  onBeforeRendering(): void;
@@ -43,14 +43,15 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
43
43
  }) => void): void;
44
44
  _onChildChange(slotName: string, childChangeInfo: import("../UI5Element.js").ChangeInfo): void;
45
45
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
46
+ formAssociatedCallback(): void;
46
47
  _updateAttribute(name: string, newValue: import("../UI5ElementMetadata.js").PropertyValue): void;
47
48
  _upgradeProperty(this: Record<string, any>, propertyName: string): void;
48
49
  _upgradeAllProperties(): void;
49
- _getChildChangeListener(slotName: string): ((param: import("../UI5Element.js").ChangeInfo & {
50
+ _getChildChangeListener(slotName: string): (param: import("../UI5Element.js").ChangeInfo & {
50
51
  target: UI5Element;
51
- }) => void) | undefined;
52
+ }) => void;
52
53
  _getSlotChangeListener(slotName: string): (this: HTMLSlotElement, ev: Event) => void;
53
- _attachSlotChange(child: HTMLSlotElement, slotName: string): void;
54
+ _attachSlotChange(slot: HTMLSlotElement, slotName: string, invalidateOnChildChange: boolean): void;
54
55
  _detachSlotChange(child: HTMLSlotElement, slotName: string): void;
55
56
  _onSlotChange(slotName: string): void;
56
57
  onInvalidation(changeInfo: import("../UI5Element.js").ChangeInfo): void;
@@ -66,10 +67,16 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
66
67
  fireEvent<T>(name: string, data?: T | undefined, cancelable?: boolean, bubbles?: boolean): boolean;
67
68
  _fireEvent<T_1>(name: string, data?: T_1 | undefined, cancelable?: boolean, bubbles?: boolean): boolean;
68
69
  getSlottedNodes<T_2 = Node>(slotName: string): T_2[];
70
+ attachComponentStateFinalized(callback: () => void): void;
71
+ detachComponentStateFinalized(callback: () => void): void;
69
72
  readonly effectiveDir: string | undefined;
70
73
  readonly isUI5Element: boolean;
71
74
  readonly classes: import("../types.js").ClassMap;
72
- getStaticAreaItemDomRef(): Promise<ShadowRoot | null>;
75
+ readonly accessibilityInfo: import("../types.js").AccessibilityInfo;
76
+ readonly validity: ValidityState | undefined;
77
+ readonly validationMessage: string | undefined;
78
+ checkValidity(): boolean | undefined;
79
+ reportValidity(): boolean | undefined;
73
80
  accessKey: string;
74
81
  readonly accessKeyLabel: string;
75
82
  autocapitalize: string;
@@ -85,11 +92,15 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
85
92
  readonly offsetTop: number;
86
93
  readonly offsetWidth: number;
87
94
  outerText: string;
95
+ popover: string | null;
88
96
  spellcheck: boolean;
89
97
  title: string;
90
98
  translate: boolean;
91
99
  attachInternals(): ElementInternals;
92
100
  click(): void;
101
+ hidePopover(): void;
102
+ showPopover(): void;
103
+ togglePopover(force?: boolean | undefined): void;
93
104
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
94
105
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
95
106
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
@@ -118,9 +129,12 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
118
129
  slot: string;
119
130
  readonly tagName: string;
120
131
  attachShadow(init: ShadowRootInit): ShadowRoot;
132
+ checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
121
133
  closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
122
134
  closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
135
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
123
136
  closest<E extends Element = Element>(selectors: string): E | null;
137
+ computedStyleMap(): StylePropertyMapReadOnly;
124
138
  getAttribute(qualifiedName: string): string | null;
125
139
  getAttributeNS(namespace: string | null, localName: string): string | null;
126
140
  getAttributeNames(): string[];
@@ -129,11 +143,14 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
129
143
  getBoundingClientRect(): DOMRect;
130
144
  getClientRects(): DOMRectList;
131
145
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
132
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
133
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
146
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
147
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
148
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
149
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
134
150
  getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
135
151
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
136
152
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
153
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
137
154
  getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
138
155
  hasAttribute(qualifiedName: string): boolean;
139
156
  hasAttributeNS(namespace: string | null, localName: string): boolean;
@@ -191,24 +208,24 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
191
208
  normalize(): void;
192
209
  removeChild<T_5 extends Node>(child: T_5): T_5;
193
210
  replaceChild<T_6 extends Node>(node: Node, child: T_6): T_6;
194
- readonly ATTRIBUTE_NODE: number;
195
- readonly CDATA_SECTION_NODE: number;
196
- readonly COMMENT_NODE: number;
197
- readonly DOCUMENT_FRAGMENT_NODE: number;
198
- readonly DOCUMENT_NODE: number;
199
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
200
- readonly DOCUMENT_POSITION_CONTAINS: number;
201
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
202
- readonly DOCUMENT_POSITION_FOLLOWING: number;
203
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
204
- readonly DOCUMENT_POSITION_PRECEDING: number;
205
- readonly DOCUMENT_TYPE_NODE: number;
206
- readonly ELEMENT_NODE: number;
207
- readonly ENTITY_NODE: number;
208
- readonly ENTITY_REFERENCE_NODE: number;
209
- readonly NOTATION_NODE: number;
210
- readonly PROCESSING_INSTRUCTION_NODE: number;
211
- readonly TEXT_NODE: number;
211
+ readonly ELEMENT_NODE: 1;
212
+ readonly ATTRIBUTE_NODE: 2;
213
+ readonly TEXT_NODE: 3;
214
+ readonly CDATA_SECTION_NODE: 4;
215
+ readonly ENTITY_REFERENCE_NODE: 5;
216
+ readonly ENTITY_NODE: 6;
217
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
218
+ readonly COMMENT_NODE: 8;
219
+ readonly DOCUMENT_NODE: 9;
220
+ readonly DOCUMENT_TYPE_NODE: 10;
221
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
222
+ readonly NOTATION_NODE: 12;
223
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
224
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
225
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
226
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
227
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
228
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
212
229
  dispatchEvent(event: Event): boolean;
213
230
  ariaAtomic: string | null;
214
231
  ariaAutoComplete: string | null;
@@ -216,7 +233,6 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
216
233
  ariaChecked: string | null;
217
234
  ariaColCount: string | null;
218
235
  ariaColIndex: string | null;
219
- ariaColIndexText: string | null;
220
236
  ariaColSpan: string | null;
221
237
  ariaCurrent: string | null;
222
238
  ariaDisabled: string | null;
@@ -240,7 +256,6 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
240
256
  ariaRoleDescription: string | null;
241
257
  ariaRowCount: string | null;
242
258
  ariaRowIndex: string | null;
243
- ariaRowIndexText: string | null;
244
259
  ariaRowSpan: string | null;
245
260
  ariaSelected: string | null;
246
261
  ariaSetSize: string | null;
@@ -250,6 +265,9 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
250
265
  ariaValueNow: string | null;
251
266
  ariaValueText: string | null;
252
267
  role: string | null;
268
+ ariaBraileLabel: string | null;
269
+ ariaBraileRoleDescription: string | null;
270
+ ariaDescription: string | null;
253
271
  animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
254
272
  getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
255
273
  after(...nodes: (string | Node)[]): void;
@@ -265,17 +283,19 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
265
283
  readonly lastElementChild: Element | null;
266
284
  append(...nodes: (string | Node)[]): void;
267
285
  prepend(...nodes: (string | Node)[]): void;
268
- querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6] | null;
269
- querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7] | null;
286
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
287
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
288
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
289
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
270
290
  querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
271
- querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
272
- querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
291
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
292
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
293
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
294
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
273
295
  querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
274
296
  replaceChildren(...nodes: (string | Node)[]): void;
275
297
  readonly assignedSlot: HTMLSlotElement | null;
276
- oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
277
- oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
278
- onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
298
+ readonly attributeStyleMap: StylePropertyMap;
279
299
  readonly style: CSSStyleDeclaration;
280
300
  contentEditable: string;
281
301
  enterKeyHint: string;
@@ -296,7 +316,9 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
296
316
  onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
297
317
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
318
  oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
319
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
299
320
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
321
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
300
322
  ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
301
323
  ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
302
324
  ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
@@ -329,6 +351,7 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
329
351
  onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
330
352
  onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
331
353
  onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
354
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
332
355
  onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
356
  onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
357
  onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -345,6 +368,7 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
345
368
  onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
346
369
  onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
347
370
  onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
371
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
348
372
  onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
349
373
  onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
350
374
  onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -379,17 +403,14 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
379
403
  blur(): void;
380
404
  };
381
405
  template?: import("../renderer/executeTemplate.js").TemplateFunction | undefined;
382
- staticAreaTemplate?: import("../renderer/executeTemplate.js").TemplateFunction | undefined;
383
406
  _metadata: import("../UI5ElementMetadata.js").default;
384
- render: import("../UI5Element.js").Renderer;
385
- renderer?: import("../UI5Element.js").Renderer | undefined;
407
+ renderer: import("../UI5Element.js").Renderer;
408
+ readonly formAssociated: boolean;
386
409
  readonly observedAttributes: string[];
387
410
  _needsShadowDOM(): boolean;
388
- _needsStaticArea(): boolean;
389
411
  _generateAccessors(): void;
390
412
  metadata: import("../UI5ElementMetadata.js").Metadata;
391
- readonly styles: import("../types.js").ComponentStylesData;
392
- readonly staticAreaStyles: import("../types.js").ComponentStylesData;
413
+ styles: import("../types.js").ComponentStylesData;
393
414
  readonly dependencies: (typeof UI5Element)[];
394
415
  getUniqueDependencies(this: typeof UI5Element): (typeof UI5Element)[];
395
416
  whenDependenciesDefined(): Promise<(typeof UI5Element)[]>;
@@ -1,2 +1,2 @@
1
- declare const _default: (value: string) => string[] | null;
2
- export default _default;
1
+ declare const designTimePropertyAsArray: (value: string) => string[] | null;
2
+ export default designTimePropertyAsArray;
@@ -1,5 +1,6 @@
1
- export default (value) => {
1
+ const designTimePropertyAsArray = (value) => {
2
2
  const m = /\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(value);
3
3
  return m && m[2] ? m[2].split(/,/) : null;
4
4
  };
5
+ export default designTimePropertyAsArray;
5
6
  //# sourceMappingURL=getDesigntimePropertyAsArray.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDesigntimePropertyAsArray.js","sourceRoot":"","sources":["../../src/util/getDesigntimePropertyAsArray.ts"],"names":[],"mappings":"AAAA,eAAe,CAAC,KAAa,EAAE,EAAE;IAChC,MAAM,CAAC,GAAG,oCAAoC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3C,CAAC,CAAC","sourcesContent":["export default (value: string) => {\n\tconst m = /\\$([-a-z0-9A-Z._]+)(?::([^$]*))?\\$/.exec(value);\n\treturn m && m[2] ? m[2].split(/,/) : null;\n};\n"]}
1
+ {"version":3,"file":"getDesigntimePropertyAsArray.js","sourceRoot":"","sources":["../../src/util/getDesigntimePropertyAsArray.ts"],"names":[],"mappings":"AAAA,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAAE,EAAE;IACnD,MAAM,CAAC,GAAG,oCAAoC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC","sourcesContent":["const designTimePropertyAsArray = (value: string) => {\n\tconst m = /\\$([-a-z0-9A-Z._]+)(?::([^$]*))?\\$/.exec(value);\n\treturn m && m[2] ? m[2].split(/,/) : null;\n};\n\nexport default designTimePropertyAsArray;\n"]}
@@ -0,0 +1,2 @@
1
+ declare const getParentElement: (el: HTMLElement) => HTMLElement;
2
+ export default getParentElement;
@@ -0,0 +1,5 @@
1
+ const getParentElement = (el) => {
2
+ return (el.parentElement ? el.parentNode : el.parentNode.host);
3
+ };
4
+ export default getParentElement;
5
+ //# sourceMappingURL=getParentElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getParentElement.js","sourceRoot":"","sources":["../../src/util/getParentElement.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GAAG,CAAC,EAAe,EAAE,EAAE;IAC5C,OAAO,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAE,EAAE,CAAC,UAAyB,CAAC,IAAI,CAAgB,CAAC;AAC/F,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["const getParentElement = (el: HTMLElement) => {\n\treturn (el.parentElement ? el.parentNode : (el.parentNode as ShadowRoot).host) as HTMLElement;\n};\n\nexport default getParentElement;\n"]}
@@ -0,0 +1,2 @@
1
+ declare const isElementContainingBlock: (el: HTMLElement) => boolean | "";
2
+ export default isElementContainingBlock;
@@ -0,0 +1,11 @@
1
+ const isElementContainingBlock = (el) => {
2
+ const computedStyle = getComputedStyle(el);
3
+ return ["size", "inline-size"].indexOf(computedStyle.containerType) > -1
4
+ || ["transform", "perspective"].indexOf(computedStyle.willChange) > -1
5
+ || ["layout", "paint", "strict", "content"].indexOf(computedStyle.contain) > -1
6
+ || (computedStyle.transform && computedStyle.transform !== "none")
7
+ || (computedStyle.perspective && computedStyle.perspective !== "none")
8
+ || (computedStyle.backdropFilter && computedStyle.backdropFilter !== "none");
9
+ };
10
+ export default isElementContainingBlock;
11
+ //# sourceMappingURL=isElementContainingBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isElementContainingBlock.js","sourceRoot":"","sources":["../../src/util/isElementContainingBlock.ts"],"names":[],"mappings":"AAAA,MAAM,wBAAwB,GAAG,CAAC,EAAe,EAAE,EAAE;IACpD,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE3C,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;WACrE,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;WACnE,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;WAC5E,CAAC,aAAa,CAAC,SAAS,IAAI,aAAa,CAAC,SAAS,KAAK,MAAM,CAAC;WAC/D,CAAC,aAAa,CAAC,WAAW,IAAI,aAAa,CAAC,WAAW,KAAK,MAAM,CAAC;WACnE,CAAC,aAAa,CAAC,cAAc,IAAI,aAAa,CAAC,cAAc,KAAK,MAAM,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC","sourcesContent":["const isElementContainingBlock = (el: HTMLElement) => {\n\tconst computedStyle = getComputedStyle(el);\n\n\treturn [\"size\", \"inline-size\"].indexOf(computedStyle.containerType) > -1\n\t|| [\"transform\", \"perspective\"].indexOf(computedStyle.willChange) > -1\n\t|| [\"layout\", \"paint\", \"strict\", \"content\"].indexOf(computedStyle.contain) > -1\n\t|| (computedStyle.transform && computedStyle.transform !== \"none\")\n\t|| (computedStyle.perspective && computedStyle.perspective !== \"none\")\n\t|| (computedStyle.backdropFilter && computedStyle.backdropFilter !== \"none\");\n};\n\nexport default isElementContainingBlock;\n"]}
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // animations/
2
2
  import scroll from "./dist/animations/scroll.js";
3
3
  import slideDown from "./dist/animations/slideDown.js";
4
- import slideUp from "./dist/animations/slideup.js";
4
+ import slideUp from "./dist/animations/slideUp.js";
5
5
 
6
6
  // config/
7
7
  import { getAnimationMode, setAnimationMode } from "./dist/config/AnimationMode.js";
@@ -10,9 +10,9 @@ import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "./dist/conf
10
10
  import {
11
11
  setDefaultIconCollection,
12
12
  getDefaultIconCollection,
13
- getEffectiveIconCollection,
14
- RegisteredIconCollection,
15
13
  } from "./dist/config/Icons.js";
14
+ import { RegisteredIconCollection } from "./dist/asset-registries/util/IconCollectionsByTheme.js";
15
+ import getEffectiveIconCollection from "./dist/asset-registries/util/getIconCollectionByTheme.js";
16
16
  import {
17
17
  getLanguage,
18
18
  setLanguage,
@@ -21,7 +21,6 @@ import {
21
21
  getFetchDefaultLanguage,
22
22
  } from "./dist/config/Language.js";
23
23
  import { getNoConflict, setNoConflict } from "./dist/config/NoConflict.js";
24
- import { getRTL } from "./dist/config/RTL.js";
25
24
  import {
26
25
  getTheme,
27
26
  setTheme,
@@ -57,13 +56,6 @@ import { registerIconLoader } from "./dist/asset-registries/Icons.js";
57
56
  // Boot.ts
58
57
  import { attachBoot } from "./dist/Boot.js";
59
58
 
60
- // CSP.ts
61
- import {
62
- setPackageCSSRoot,
63
- setUseLinks,
64
- setPreloadLinks,
65
- } from "./dist/CSP.js";
66
-
67
59
  // CustomElementsScope.ts
68
60
  import {
69
61
  setCustomElementsScopingSuffix,
@@ -76,7 +68,6 @@ import {
76
68
  // Device.ts
77
69
  import {
78
70
  supportsTouch,
79
- isIE,
80
71
  isSafari,
81
72
  isChrome,
82
73
  isFirefox,
@@ -138,7 +129,6 @@ export {
138
129
  getFetchDefaultLanguage,
139
130
  getNoConflict,
140
131
  setNoConflict,
141
- getRTL,
142
132
  getTheme,
143
133
  setTheme,
144
134
  getDefaultTheme,
@@ -175,11 +165,6 @@ export {
175
165
  // Boot.ts
176
166
  attachBoot,
177
167
 
178
- // CSP.ts
179
- setPackageCSSRoot,
180
- setUseLinks,
181
- setPreloadLinks,
182
-
183
168
  // CustomElementsScope.ts
184
169
  setCustomElementsScopingSuffix,
185
170
  getCustomElementsScopingSuffix,
@@ -189,7 +174,6 @@ export {
189
174
 
190
175
  // Device.ts
191
176
  supportsTouch,
192
- isIE,
193
177
  isSafari,
194
178
  isChrome,
195
179
  isFirefox,
@@ -5,24 +5,24 @@ const assetParametersScript = resolve.sync("@ui5/webcomponents-base/lib/generate
5
5
  const stylesScript = resolve.sync("@ui5/webcomponents-base/lib/generate-styles/index.js");
6
6
  const versionScript = resolve.sync("@ui5/webcomponents-base/lib/generate-version-info/index.js");
7
7
  const copyUsedModules = resolve.sync("@ui5/webcomponents-tools/lib/copy-list/index.js");
8
- const esmAbsToRel = resolve.sync("@ui5/webcomponents-tools/lib/esm-abs-to-rel/index.js");
9
- const preprocessJSDocScript = resolve.sync("@ui5/webcomponents-tools/lib/jsdoc/preprocess.js");
8
+ const amdToES6 = resolve.sync("@ui5/webcomponents-tools/lib/amd-to-es6/index.js");
9
+ const noRequire = resolve.sync("@ui5/webcomponents-tools/lib/amd-to-es6/no-remaining-require.js");
10
10
 
11
11
  const LIB = path.join(__dirname, `../tools/lib/`);
12
12
 
13
13
  const viteConfig = `-c "${require.resolve("@ui5/webcomponents-tools/components-package/vite.config.js")}"`;
14
14
 
15
15
  const scripts = {
16
- clean: "rimraf jsdoc-dist && rimraf src/generated && rimraf dist && rimraf .port",
16
+ clean: "rimraf src/generated && rimraf dist && rimraf .port",
17
17
  lint: `eslint .`,
18
- prepare: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates typescript generateAPI",
19
- typescript: "tsc",
18
+ generate: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates generateSsrDom",
19
+ prepare: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates typescript integrate.no-remaining-require",
20
+ typescript: "tsc -b",
20
21
  integrate: {
21
- default: "nps integrate.copy-used-modules integrate.replace-amd integrate.amd-to-es6 integrate.esm-abs-to-rel integrate.third-party",
22
+ default: "nps integrate.copy-used-modules integrate.amd-to-es6 integrate.third-party",
22
23
  "copy-used-modules": `node "${copyUsedModules}" ./used-modules.txt dist/`,
23
- "replace-amd": "replace-in-file sap.ui.define define dist/**/*.js",
24
- "amd-to-es6": "amdtoes6 --src=dist/ --replace --glob=**/*.js",
25
- "esm-abs-to-rel": `node "${esmAbsToRel}" dist/ dist/`,
24
+ "amd-to-es6": `node "${amdToES6}" dist/`,
25
+ "no-remaining-require": `node "${noRequire}" dist/`,
26
26
  "third-party": {
27
27
  default: "nps integrate.third-party.copy integrate.third-party.fix",
28
28
  copy: "mkdirp dist/sap/ui/thirdparty/ && copy-and-watch ../../node_modules/@openui5/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js dist/sap/ui/thirdparty/",
@@ -30,7 +30,7 @@ const scripts = {
30
30
  },
31
31
  },
32
32
  build: {
33
- default: `nps prepare lint build.bundle`,
33
+ default: `nps prepare`,
34
34
  bundle: `vite build ${viteConfig}`,
35
35
  },
36
36
  copy: {
@@ -40,23 +40,26 @@ const scripts = {
40
40
  generateAssetParameters: `node "${assetParametersScript}"`,
41
41
  generateVersionInfo: `node "${versionScript}"`,
42
42
  generateStyles: `node "${stylesScript}"`,
43
+ // these files are ignored in TS because the import in UI5Elments tries to load them from the dist and throws an error. create them empty here
44
+ generateSsrDom: `yarn nodetouch dist/ssr-dom.js dist/ssr-dom.d.ts`,
43
45
  generateTemplates: `mkdirp src/generated/templates && cross-env UI5_BASE=true UI5_TS=true node "${LIB}/hbs2ui5/index.js" -d test/elements -o src/generated/templates`,
46
+ generateProd: {
47
+ "default": "nps generateProd.remove-dev-mode generateProd.copy-prod",
48
+ "remove-dev-mode": `node "${LIB}/remove-dev-mode/remove-dev-mode.mjs"`,
49
+ "copy-prod": `copy-and-watch "dist/sap/**/*" dist/prod/sap/`,
50
+ },
44
51
  generateAPI: {
45
- default: "nps generateAPI.prepare generateAPI.preprocess generateAPI.jsdoc generateAPI.cleanup",
46
- prepare: `copy-and-watch "dist/**/*.js" jsdoc-dist/`,
47
- preprocess: `node "${preprocessJSDocScript}" jsdoc-dist/`,
48
- jsdoc: `jsdoc -c "${LIB}/jsdoc/configTypescript.json"`,
49
- cleanup: "rimraf jsdoc-dist/"
52
+ default: "nps generateAPI.generateCEM generateAPI.validateCEM",
53
+ generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs" --dev`,
54
+ validateCEM: `node "${LIB}/cem/validate.js" --dev`,
50
55
  },
51
56
  watch: {
52
- default: 'concurrently "nps watch.src" "nps watch.styles" "nps watch.typescript"',
53
- withBundle: 'concurrently "nps watch.src" "nps watch.bundle" "nps watch.styles" "nps watch.typescript"',
57
+ default: 'concurrently "nps watch.src" "nps watch.styles"',
58
+ withBundle: 'concurrently "nps watch.src" "nps watch.bundle" "nps watch.styles"',
54
59
  src: 'nps "copy.src --watch --skip-initial-copy"',
55
- typescript: 'tsc --watch',
56
60
  bundle: `node ${LIB}/dev-server/dev-server.js ${viteConfig}`,
57
61
  styles: 'chokidar "src/css/*.css" -c "nps generateStyles"'
58
62
  },
59
- start: "nps prepare watch.withBundle",
60
63
  test: {
61
64
  default: 'concurrently "nps test.wdio" "nps test.ssr" "nps test.ssr2"',
62
65
  ssr: `mocha test/ssr`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-base",
3
- "version": "0.0.0-d1315d658",
3
+ "version": "0.0.0-d473b9686",
4
4
  "description": "UI5 Web Components: webcomponents.base",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -16,9 +16,19 @@
16
16
  "url": "https://github.com/SAP/ui5-webcomponents.git",
17
17
  "directory": "packages/base"
18
18
  },
19
+ "types": "./dist",
19
20
  "exports": {
21
+ "./dist/ssr-dom.js": {
22
+ "browser": "./dist/ssr-dom.js",
23
+ "node": "./dist/ssr-dom-shim.js",
24
+ "default": "./dist/ssr-dom.js"
25
+ },
20
26
  ".": "./index.js",
21
- "./dist/*": "./dist/*",
27
+ "./dist/*": {
28
+ "production": "./dist/prod/*",
29
+ "development": "./dist/*",
30
+ "default": "./dist/*"
31
+ },
22
32
  "./package.json": "./package.json",
23
33
  "./bundle.esm.js": "./bundle.esm.js",
24
34
  "./*": "./dist/*"
@@ -28,23 +38,28 @@
28
38
  "lint": "nps lint",
29
39
  "start": "nps start",
30
40
  "build": "nps build",
41
+ "generate": "nps generate",
42
+ "generateAPI": "nps generateAPI",
43
+ "generateProd": "nps generateProd",
44
+ "bundle": "nps build.bundle",
31
45
  "test": "nps test",
32
- "prepublishOnly": "npm run clean && npm run build"
46
+ "prepublishOnly": "tsc -b"
33
47
  },
34
48
  "dependencies": {
49
+ "@lit-labs/ssr-dom-shim": "^1.1.2",
35
50
  "lit-html": "^2.0.1"
36
51
  },
37
52
  "devDependencies": {
38
- "@buxlabs/amd-to-es6": "0.16.1",
39
- "@openui5/sap.ui.core": "1.116.0",
40
- "@ui5/webcomponents-tools": "0.0.0-d1315d658",
41
- "chromedriver": "114.0.0",
53
+ "@openui5/sap.ui.core": "1.120.5",
54
+ "@ui5/webcomponents-tools": "0.0.0-d473b9686",
55
+ "chromedriver": "^125.0.0",
42
56
  "clean-css": "^5.2.2",
43
57
  "copy-and-watch": "^0.1.5",
44
58
  "cross-env": "^7.0.3",
45
59
  "eslint": "^7.22.0",
46
60
  "mkdirp": "^1.0.4",
47
61
  "replace-in-file": "^6.3.5",
48
- "resolve": "^1.20.0"
62
+ "resolve": "^1.20.0",
63
+ "touch": "^3.1.0"
49
64
  }
50
65
  }
@@ -3,6 +3,7 @@
3
3
  font-style: normal;
4
4
  font-weight: 400;
5
5
  src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2"), local("72");
6
+ unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
6
7
  }
7
8
 
8
9
  @font-face {
@@ -10,7 +11,6 @@
10
11
  font-style: normal;
11
12
  font-weight: 400;
12
13
  src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2"), local('72-full');
13
-
14
14
  }
15
15
 
16
16
  @font-face {
@@ -18,6 +18,7 @@
18
18
  font-style: normal;
19
19
  font-weight: 700;
20
20
  src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"), local('72-Bold');
21
+ unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
21
22
  }
22
23
 
23
24
  @font-face {
@@ -31,6 +32,7 @@
31
32
  font-family: '72-Bold';
32
33
  font-style: normal;
33
34
  src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"), local('72-Bold');
35
+ unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
34
36
  }
35
37
 
36
38
  @font-face {
@@ -43,6 +45,7 @@
43
45
  font-family: '72-Light';
44
46
  font-style: normal;
45
47
  src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Light.woff2?ui5-webcomponents) format("woff2"), local('72-Light');
48
+ unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
46
49
  }
47
50
 
48
51
  @font-face {
@@ -54,6 +57,7 @@
54
57
  @font-face {
55
58
  font-family: '72Mono';
56
59
  src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular.woff2?ui5-webcomponents) format('woff2'), local('72Mono');
60
+ unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
57
61
  }
58
62
 
59
63
  @font-face {
@@ -64,6 +68,7 @@
64
68
  @font-face {
65
69
  font-family: '72Mono-Bold';
66
70
  src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold.woff2?ui5-webcomponents) format('woff2'), local('72Mono-Bold');
71
+ unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
67
72
  }
68
73
 
69
74
  @font-face {
@@ -76,9 +81,16 @@
76
81
  font-style: bold;
77
82
  font-weight: 900;
78
83
  src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format("woff2"), local('72Black');
84
+ unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
85
+ }
86
+
87
+ @font-face {
88
+ font-family: '72Blackfull';
89
+ src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black-full.woff2?ui5-webcomponents) format('woff2');
79
90
  }
80
91
 
81
92
  @font-face {
82
93
  font-family: "72-SemiboldDuplex";
83
94
  src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-SemiboldDuplex.woff2?ui5-webcomponents) format("woff2"), local('72-SemiboldDuplex');
95
+ unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
84
96
  }
@@ -7,11 +7,3 @@
7
7
  .sapUiSizeCompact {
8
8
  --_ui5_content_density:compact;
9
9
  }
10
-
11
- [dir="rtl"] {
12
- --_ui5_dir:rtl;
13
- }
14
-
15
- [dir="ltr"] {
16
- --_ui5_dir:ltr;
17
- }
package/tsconfig.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "include": ["src/**/*", "src/global.d.ts"],
3
+ // ssr-dom is imported with bare specifier so that conditional exports are used, but this treats it as input and output, so ignore it
4
+ "exclude": ["src/ssr-dom.ts"],
3
5
  "compilerOptions": {
4
6
  "target": "ES2021",
7
+ "lib": ["DOM", "DOM.Iterable", "ES2023"],
5
8
  // Generate d.ts files
6
9
  "declaration": true,
7
10
  "outDir": "dist",
@@ -10,5 +13,8 @@
10
13
  "inlineSources": true,
11
14
  "strict": true,
12
15
  "moduleResolution": "node",
16
+ "composite": true,
17
+ "rootDir": "src",
18
+ "tsBuildInfoFile": "dist/.tsbuildinfo",
13
19
  },
14
20
  }