@ui5/webcomponents-base 0.0.0-dcd8e5389 → 0.0.0-ddc5fe31b

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 (214) hide show
  1. package/.eslintignore +1 -1
  2. package/CHANGELOG.md +492 -0
  3. package/README.md +6 -1
  4. package/bundle.esm.js +4 -1
  5. package/dist/.tsbuildinfo +1 -0
  6. package/dist/AssetRegistry.d.ts +2 -2
  7. package/dist/AssetRegistry.js +2 -2
  8. package/dist/AssetRegistry.js.map +1 -1
  9. package/dist/Boot.js +1 -1
  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 -1
  18. package/dist/Device.js +10 -1
  19. package/dist/Device.js.map +1 -1
  20. package/dist/EventProvider.js +1 -1
  21. package/dist/EventProvider.js.map +1 -1
  22. package/dist/FontFace.js +1 -1
  23. package/dist/FontFace.js.map +1 -1
  24. package/dist/IgnoreCustomElements.d.ts +27 -0
  25. package/dist/IgnoreCustomElements.js +39 -0
  26. package/dist/IgnoreCustomElements.js.map +1 -0
  27. package/dist/InitialConfiguration.d.ts +2 -1
  28. package/dist/InitialConfiguration.js +7 -2
  29. package/dist/InitialConfiguration.js.map +1 -1
  30. package/dist/Keys.d.ts +5 -1
  31. package/dist/Keys.js +109 -106
  32. package/dist/Keys.js.map +1 -1
  33. package/dist/ManagedStyles.d.ts +5 -4
  34. package/dist/ManagedStyles.js +95 -15
  35. package/dist/ManagedStyles.js.map +1 -1
  36. package/dist/MediaRange.d.ts +0 -6
  37. package/dist/MediaRange.js +5 -15
  38. package/dist/MediaRange.js.map +1 -1
  39. package/dist/StaticAreaItem.d.ts +3 -4
  40. package/dist/StaticAreaItem.js +9 -8
  41. package/dist/StaticAreaItem.js.map +1 -1
  42. package/dist/UI5Element.d.ts +28 -25
  43. package/dist/UI5Element.js +48 -37
  44. package/dist/UI5Element.js.map +1 -1
  45. package/dist/UI5ElementMetadata.d.ts +4 -11
  46. package/dist/UI5ElementMetadata.js +3 -11
  47. package/dist/UI5ElementMetadata.js.map +1 -1
  48. package/dist/asset-registries/Icons.d.ts +4 -3
  49. package/dist/asset-registries/Icons.js +28 -17
  50. package/dist/asset-registries/Icons.js.map +1 -1
  51. package/dist/asset-registries/Illustrations.d.ts +1 -0
  52. package/dist/asset-registries/Illustrations.js +50 -20
  53. package/dist/asset-registries/Illustrations.js.map +1 -1
  54. package/dist/asset-registries/LocaleData.js.map +1 -1
  55. package/dist/asset-registries/Themes.d.ts +4 -3
  56. package/dist/asset-registries/Themes.js +26 -10
  57. package/dist/asset-registries/Themes.js.map +1 -1
  58. package/dist/asset-registries/i18n.js +2 -1
  59. package/dist/asset-registries/i18n.js.map +1 -1
  60. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.d.ts +1 -2
  61. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.js +1 -2
  62. package/dist/asset-registries/util/IconCollectionsAlias.js.map +1 -0
  63. package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +20 -0
  64. package/dist/asset-registries/util/IconCollectionsByTheme.js +42 -0
  65. package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -0
  66. package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +13 -0
  67. package/dist/asset-registries/util/getIconCollectionByTheme.js +29 -0
  68. package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -0
  69. package/dist/config/AnimationMode.d.ts +2 -2
  70. package/dist/config/AnimationMode.js +1 -1
  71. package/dist/config/AnimationMode.js.map +1 -1
  72. package/dist/config/CalendarType.d.ts +8 -1
  73. package/dist/config/CalendarType.js +18 -2
  74. package/dist/config/CalendarType.js.map +1 -1
  75. package/dist/config/Icons.d.ts +2 -17
  76. package/dist/config/Icons.js +1 -60
  77. package/dist/config/Icons.js.map +1 -1
  78. package/dist/config/ThemeRoot.d.ts +29 -0
  79. package/dist/config/ThemeRoot.js +59 -0
  80. package/dist/config/ThemeRoot.js.map +1 -0
  81. package/dist/connectToComponent.d.ts +9 -0
  82. package/dist/connectToComponent.js +59 -0
  83. package/dist/connectToComponent.js.map +1 -0
  84. package/dist/css/FontFace.css +47 -17
  85. package/dist/custom-elements-internal.json +2765 -0
  86. package/dist/custom-elements.json +2528 -0
  87. package/dist/decorators/customElement.d.ts +1 -1
  88. package/dist/decorators/customElement.js +1 -1
  89. package/dist/decorators/customElement.js.map +1 -1
  90. package/dist/decorators/event.d.ts +5 -2
  91. package/dist/decorators/event.js.map +1 -1
  92. package/dist/delegate/ItemNavigation.d.ts +1 -0
  93. package/dist/delegate/ItemNavigation.js +4 -5
  94. package/dist/delegate/ItemNavigation.js.map +1 -1
  95. package/dist/delegate/ResizeHandler.d.ts +4 -6
  96. package/dist/delegate/ResizeHandler.js +4 -6
  97. package/dist/delegate/ResizeHandler.js.map +1 -1
  98. package/dist/delegate/ScrollEnablement.js +2 -2
  99. package/dist/delegate/ScrollEnablement.js.map +1 -1
  100. package/dist/features/OpenUI5Enablement.d.ts +1 -1
  101. package/dist/features/OpenUI5Support.d.ts +13 -3
  102. package/dist/features/OpenUI5Support.js +89 -33
  103. package/dist/features/OpenUI5Support.js.map +1 -1
  104. package/dist/generated/AssetParameters.d.ts +6 -0
  105. package/dist/generated/AssetParameters.js +3 -10
  106. package/dist/generated/AssetParameters.js.map +1 -0
  107. package/dist/generated/VersionInfo.d.ts +10 -0
  108. package/dist/generated/VersionInfo.js +9 -8
  109. package/dist/generated/VersionInfo.js.map +1 -0
  110. package/dist/generated/css/FontFace.css.js +1 -1
  111. package/dist/generated/css/FontFace.css.js.map +1 -1
  112. package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.d.ts +3 -3
  113. package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.js.map +1 -1
  114. package/dist/getSharedResource.js +7 -1
  115. package/dist/getSharedResource.js.map +1 -1
  116. package/dist/i18nBundle.d.ts +2 -4
  117. package/dist/i18nBundle.js +3 -5
  118. package/dist/i18nBundle.js.map +1 -1
  119. package/dist/locale/RTLAwareRegistry.d.ts +1 -1
  120. package/dist/locale/RTLAwareRegistry.js.map +1 -1
  121. package/dist/renderer/LitRenderer.d.ts +2 -2
  122. package/dist/sap/base/Log.js +698 -188
  123. package/dist/sap/base/assert.js +28 -1
  124. package/dist/sap/base/config/MemoryConfigurationProvider.js +20 -0
  125. package/dist/sap/base/security/URLListValidator.js +253 -6
  126. package/dist/sap/base/security/encodeCSS.js +34 -8
  127. package/dist/sap/base/security/encodeXML.js +47 -17
  128. package/dist/sap/base/security/sanitizeHTML.js +35 -13
  129. package/dist/sap/base/strings/toHex.js +27 -2
  130. package/dist/sap/base/util/now.js +24 -3
  131. package/dist/sap/base/util/uid.js +27 -0
  132. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +112 -97
  133. package/dist/ssr-dom-shim.d.ts +1 -0
  134. package/dist/ssr-dom-shim.js +12 -0
  135. package/dist/ssr-dom-shim.js.map +1 -0
  136. package/dist/ssr-dom.d.ts +0 -0
  137. package/dist/ssr-dom.js +3 -0
  138. package/dist/ssr-dom.js.map +1 -0
  139. package/dist/theming/applyTheme.js +8 -7
  140. package/dist/theming/applyTheme.js.map +1 -1
  141. package/dist/types/AnimationMode.d.ts +0 -8
  142. package/dist/types/AnimationMode.js +0 -8
  143. package/dist/types/AnimationMode.js.map +1 -1
  144. package/dist/types/CSSColor.d.ts +0 -4
  145. package/dist/types/CSSColor.js +0 -4
  146. package/dist/types/CSSColor.js.map +1 -1
  147. package/dist/types/CSSSize.d.ts +11 -0
  148. package/dist/types/CSSSize.js +14 -0
  149. package/dist/types/CSSSize.js.map +1 -0
  150. package/dist/types/CalendarType.d.ts +0 -9
  151. package/dist/types/CalendarType.js +0 -9
  152. package/dist/types/CalendarType.js.map +1 -1
  153. package/dist/types/DOMReference.d.ts +0 -4
  154. package/dist/types/DOMReference.js +0 -4
  155. package/dist/types/DOMReference.js.map +1 -1
  156. package/dist/types/DataType.d.ts +1 -6
  157. package/dist/types/DataType.js +1 -6
  158. package/dist/types/DataType.js.map +1 -1
  159. package/dist/types/Float.d.ts +0 -3
  160. package/dist/types/Float.js +0 -3
  161. package/dist/types/Float.js.map +1 -1
  162. package/dist/types/Integer.d.ts +0 -3
  163. package/dist/types/Integer.js +0 -3
  164. package/dist/types/Integer.js.map +1 -1
  165. package/dist/types/InvisibleMessageMode.d.ts +5 -10
  166. package/dist/types/InvisibleMessageMode.js +4 -11
  167. package/dist/types/InvisibleMessageMode.js.map +1 -1
  168. package/dist/types/ItemNavigationBehavior.d.ts +0 -6
  169. package/dist/types/ItemNavigationBehavior.js +0 -6
  170. package/dist/types/ItemNavigationBehavior.js.map +1 -1
  171. package/dist/types/NavigationMode.d.ts +0 -8
  172. package/dist/types/NavigationMode.js +0 -8
  173. package/dist/types/NavigationMode.js.map +1 -1
  174. package/dist/types/ValueState.d.ts +0 -14
  175. package/dist/types/ValueState.js +0 -14
  176. package/dist/types/ValueState.js.map +1 -1
  177. package/dist/updateShadowRoot.js +2 -1
  178. package/dist/updateShadowRoot.js.map +1 -1
  179. package/dist/util/ColorConversion.js +200 -195
  180. package/dist/util/ColorConversion.js.map +1 -1
  181. package/dist/util/PopupUtils.js +1 -1
  182. package/dist/util/PopupUtils.js.map +1 -1
  183. package/dist/util/detectNavigatorLanguage.d.ts +2 -2
  184. package/dist/util/detectNavigatorLanguage.js +6 -1
  185. package/dist/util/detectNavigatorLanguage.js.map +1 -1
  186. package/dist/util/getClassCopy.d.ts +52 -33
  187. package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
  188. package/dist/util/getDesigntimePropertyAsArray.js +2 -1
  189. package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
  190. package/dist/util/getParentElement.d.ts +2 -0
  191. package/dist/util/getParentElement.js +5 -0
  192. package/dist/util/getParentElement.js.map +1 -0
  193. package/dist/util/getSingletonElementInstance.d.ts +10 -1
  194. package/dist/util/getSingletonElementInstance.js +11 -2
  195. package/dist/util/getSingletonElementInstance.js.map +1 -1
  196. package/dist/util/isElementContainingBlock.d.ts +2 -0
  197. package/dist/util/isElementContainingBlock.js +11 -0
  198. package/dist/util/isElementContainingBlock.js.map +1 -0
  199. package/index.js +3 -3
  200. package/lib/generate-asset-parameters/index.js +2 -2
  201. package/lib/generate-version-info/index.js +2 -2
  202. package/package-scripts.cjs +12 -18
  203. package/package.json +14 -6
  204. package/src/css/FontFace.css +47 -17
  205. package/tsconfig.json +4 -0
  206. package/used-modules.txt +4 -0
  207. package/dist/api.json +0 -1
  208. package/dist/assets/Boot.34b7cea0.css +0 -1
  209. package/dist/assets/Boot.f21d1bf8.js +0 -9
  210. package/dist/assets/bundle.esm.fff719c1.js +0 -50
  211. package/dist/assets-meta/IconCollectionsAlias.js.map +0 -1
  212. package/dist/config/ThemeRoots.d.ts +0 -4
  213. package/dist/config/ThemeRoots.js +0 -28
  214. package/dist/config/ThemeRoots.js.map +0 -1
@@ -1,5 +1,9 @@
1
1
  import { DEFAULT_LANGUAGE } from "../generated/AssetParameters.js";
2
- export default () => {
2
+ const isSSR = typeof document === "undefined";
3
+ const detectNavigatorLanguage = () => {
4
+ if (isSSR) {
5
+ return DEFAULT_LANGUAGE;
6
+ }
3
7
  const browserLanguages = navigator.languages;
4
8
  const navigatorLanguage = () => {
5
9
  return navigator.language;
@@ -7,4 +11,5 @@ export default () => {
7
11
  const rawLocale = (browserLanguages && browserLanguages[0]) || navigatorLanguage();
8
12
  return rawLocale || DEFAULT_LANGUAGE;
9
13
  };
14
+ export default detectNavigatorLanguage;
10
15
  //# sourceMappingURL=detectNavigatorLanguage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"detectNavigatorLanguage.js","sourceRoot":"","sources":["../../src/util/detectNavigatorLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,eAAe,GAAG,EAAE;IACnB,MAAM,gBAAgB,GAAG,SAAS,CAAC,SAAS,CAAC;IAE7C,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC9B,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,EAAE,CAAC;IAEnF,OAAO,SAAS,IAAI,gBAAgB,CAAC;AACtC,CAAC,CAAC","sourcesContent":["import { DEFAULT_LANGUAGE } from \"../generated/AssetParameters.js\";\n\nexport default () => {\n\tconst browserLanguages = navigator.languages;\n\n\tconst navigatorLanguage = () => {\n\t\treturn navigator.language;\n\t};\n\n\tconst rawLocale = (browserLanguages && browserLanguages[0]) || navigatorLanguage();\n\n\treturn rawLocale || DEFAULT_LANGUAGE;\n};\n"]}
1
+ {"version":3,"file":"detectNavigatorLanguage.js","sourceRoot":"","sources":["../../src/util/detectNavigatorLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,KAAK,GAAG,OAAO,QAAQ,KAAK,WAAW,CAAC;AAE9C,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACpC,IAAI,KAAK,EAAE;QACV,OAAO,gBAAgB,CAAC;KACxB;IACD,MAAM,gBAAgB,GAAG,SAAS,CAAC,SAAS,CAAC;IAE7C,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC9B,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,EAAE,CAAC;IAEnF,OAAO,SAAS,IAAI,gBAAgB,CAAC;AACtC,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC","sourcesContent":["import { DEFAULT_LANGUAGE } from \"../generated/AssetParameters.js\";\n\nconst isSSR = typeof document === \"undefined\";\n\nconst detectNavigatorLanguage = () => {\n\tif (isSSR) {\n\t\treturn DEFAULT_LANGUAGE;\n\t}\n\tconst browserLanguages = navigator.languages;\n\n\tconst navigatorLanguage = () => {\n\t\treturn navigator.language;\n\t};\n\n\tconst rawLocale = (browserLanguages && browserLanguages[0]) || navigatorLanguage();\n\n\treturn rawLocale || DEFAULT_LANGUAGE;\n};\n\nexport default detectNavigatorLanguage;\n"]}
@@ -4,9 +4,10 @@ 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 & {
@@ -18,7 +19,6 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
18
19
  };
19
20
  _doNotSyncAttributes: Set<string>;
20
21
  _state: import("../UI5ElementMetadata.js").State;
21
- _onComponentStateFinalized?: (() => void) | undefined;
22
22
  _getRealDomRef?: (() => HTMLElement) | undefined;
23
23
  staticAreaItem?: import("../StaticAreaItem.js").default | undefined;
24
24
  readonly _id: string;
@@ -46,9 +46,9 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
46
46
  _updateAttribute(name: string, newValue: import("../UI5ElementMetadata.js").PropertyValue): void;
47
47
  _upgradeProperty(this: Record<string, any>, propertyName: string): void;
48
48
  _upgradeAllProperties(): void;
49
- _getChildChangeListener(slotName: string): ((param: import("../UI5Element.js").ChangeInfo & {
49
+ _getChildChangeListener(slotName: string): (param: import("../UI5Element.js").ChangeInfo & {
50
50
  target: UI5Element;
51
- }) => void) | undefined;
51
+ }) => void;
52
52
  _getSlotChangeListener(slotName: string): (this: HTMLSlotElement, ev: Event) => void;
53
53
  _attachSlotChange(child: HTMLSlotElement, slotName: string): void;
54
54
  _detachSlotChange(child: HTMLSlotElement, slotName: string): void;
@@ -66,6 +66,8 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
66
66
  fireEvent<T>(name: string, data?: T | undefined, cancelable?: boolean, bubbles?: boolean): boolean;
67
67
  _fireEvent<T_1>(name: string, data?: T_1 | undefined, cancelable?: boolean, bubbles?: boolean): boolean;
68
68
  getSlottedNodes<T_2 = Node>(slotName: string): T_2[];
69
+ attachComponentStateFinalized(callback: () => void): void;
70
+ detachComponentStateFinalized(callback: () => void): void;
69
71
  readonly effectiveDir: string | undefined;
70
72
  readonly isUI5Element: boolean;
71
73
  readonly classes: import("../types.js").ClassMap;
@@ -85,11 +87,15 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
85
87
  readonly offsetTop: number;
86
88
  readonly offsetWidth: number;
87
89
  outerText: string;
90
+ popover: string | null;
88
91
  spellcheck: boolean;
89
92
  title: string;
90
93
  translate: boolean;
91
94
  attachInternals(): ElementInternals;
92
95
  click(): void;
96
+ hidePopover(): void;
97
+ showPopover(): void;
98
+ togglePopover(force?: boolean | undefined): void;
93
99
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
94
100
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
95
101
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
@@ -118,9 +124,12 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
118
124
  slot: string;
119
125
  readonly tagName: string;
120
126
  attachShadow(init: ShadowRootInit): ShadowRoot;
127
+ checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
121
128
  closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
122
129
  closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
130
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
123
131
  closest<E extends Element = Element>(selectors: string): E | null;
132
+ computedStyleMap(): StylePropertyMapReadOnly;
124
133
  getAttribute(qualifiedName: string): string | null;
125
134
  getAttributeNS(namespace: string | null, localName: string): string | null;
126
135
  getAttributeNames(): string[];
@@ -129,11 +138,14 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
129
138
  getBoundingClientRect(): DOMRect;
130
139
  getClientRects(): DOMRectList;
131
140
  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]>;
141
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
142
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
143
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
144
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
134
145
  getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
135
146
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
136
147
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
148
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
137
149
  getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
138
150
  hasAttribute(qualifiedName: string): boolean;
139
151
  hasAttributeNS(namespace: string | null, localName: string): boolean;
@@ -191,24 +203,24 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
191
203
  normalize(): void;
192
204
  removeChild<T_5 extends Node>(child: T_5): T_5;
193
205
  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;
206
+ readonly ELEMENT_NODE: 1;
207
+ readonly ATTRIBUTE_NODE: 2;
208
+ readonly TEXT_NODE: 3;
209
+ readonly CDATA_SECTION_NODE: 4;
210
+ readonly ENTITY_REFERENCE_NODE: 5;
211
+ readonly ENTITY_NODE: 6;
212
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
213
+ readonly COMMENT_NODE: 8;
214
+ readonly DOCUMENT_NODE: 9;
215
+ readonly DOCUMENT_TYPE_NODE: 10;
216
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
217
+ readonly NOTATION_NODE: 12;
218
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
219
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
220
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
221
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
222
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
223
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
212
224
  dispatchEvent(event: Event): boolean;
213
225
  ariaAtomic: string | null;
214
226
  ariaAutoComplete: string | null;
@@ -216,7 +228,6 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
216
228
  ariaChecked: string | null;
217
229
  ariaColCount: string | null;
218
230
  ariaColIndex: string | null;
219
- ariaColIndexText: string | null;
220
231
  ariaColSpan: string | null;
221
232
  ariaCurrent: string | null;
222
233
  ariaDisabled: string | null;
@@ -240,7 +251,6 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
240
251
  ariaRoleDescription: string | null;
241
252
  ariaRowCount: string | null;
242
253
  ariaRowIndex: string | null;
243
- ariaRowIndexText: string | null;
244
254
  ariaRowSpan: string | null;
245
255
  ariaSelected: string | null;
246
256
  ariaSetSize: string | null;
@@ -250,6 +260,9 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
250
260
  ariaValueNow: string | null;
251
261
  ariaValueText: string | null;
252
262
  role: string | null;
263
+ ariaBraileLabel: string | null;
264
+ ariaBraileRoleDescription: string | null;
265
+ ariaDescription: string | null;
253
266
  animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
254
267
  getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
255
268
  after(...nodes: (string | Node)[]): void;
@@ -265,17 +278,19 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
265
278
  readonly lastElementChild: Element | null;
266
279
  append(...nodes: (string | Node)[]): void;
267
280
  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;
281
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
282
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
283
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
284
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
270
285
  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]>;
286
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
287
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
288
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
289
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
273
290
  querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
274
291
  replaceChildren(...nodes: (string | Node)[]): void;
275
292
  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;
293
+ readonly attributeStyleMap: StylePropertyMap;
279
294
  readonly style: CSSStyleDeclaration;
280
295
  contentEditable: string;
281
296
  enterKeyHint: string;
@@ -296,7 +311,9 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
296
311
  onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
297
312
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
298
313
  oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
314
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
299
315
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
316
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
300
317
  ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
301
318
  ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
302
319
  ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
@@ -329,6 +346,7 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
329
346
  onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
330
347
  onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
331
348
  onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
349
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
332
350
  onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
333
351
  onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
334
352
  onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -345,6 +363,7 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
345
363
  onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
346
364
  onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
347
365
  onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
366
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
348
367
  onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
349
368
  onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
350
369
  onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -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"]}
@@ -1,2 +1,11 @@
1
- declare const getSingletonElementInstance: (tag: string, parentElement?: HTMLElement) => Element;
1
+ /**
2
+ * Returns a singleton HTML element, inserted in given parent element of HTML page,
3
+ * used mostly to store and share global resources between multiple UI5 Web Components runtimes.
4
+ *
5
+ * @param { string } tag the element tag/selector
6
+ * @param { HTMLElement } parentElement the parent element to insert the singleton element instance
7
+ * @param { Function } createEl a factory function for the element instantiation, by default document.createElement is used
8
+ * @returns { Element }
9
+ */
10
+ declare const getSingletonElementInstance: (tag: string, parentElement?: HTMLElement, createEl?: () => Element) => Element;
2
11
  export default getSingletonElementInstance;
@@ -1,9 +1,18 @@
1
- const getSingletonElementInstance = (tag, parentElement = document.body) => {
1
+ /**
2
+ * Returns a singleton HTML element, inserted in given parent element of HTML page,
3
+ * used mostly to store and share global resources between multiple UI5 Web Components runtimes.
4
+ *
5
+ * @param { string } tag the element tag/selector
6
+ * @param { HTMLElement } parentElement the parent element to insert the singleton element instance
7
+ * @param { Function } createEl a factory function for the element instantiation, by default document.createElement is used
8
+ * @returns { Element }
9
+ */
10
+ const getSingletonElementInstance = (tag, parentElement = document.body, createEl) => {
2
11
  let el = document.querySelector(tag);
3
12
  if (el) {
4
13
  return el;
5
14
  }
6
- el = document.createElement(tag);
15
+ el = createEl ? createEl() : document.createElement(tag);
7
16
  return parentElement.insertBefore(el, parentElement.firstChild);
8
17
  };
9
18
  export default getSingletonElementInstance;
@@ -1 +1 @@
1
- {"version":3,"file":"getSingletonElementInstance.js","sourceRoot":"","sources":["../../src/util/getSingletonElementInstance.ts"],"names":[],"mappings":"AAAA,MAAM,2BAA2B,GAAG,CAAC,GAAW,EAAE,gBAA6B,QAAQ,CAAC,IAAI,EAAE,EAAE;IAC/F,IAAI,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAErC,IAAI,EAAE,EAAE;QACP,OAAO,EAAE,CAAC;KACV;IAED,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAEjC,OAAO,aAAa,CAAC,YAAY,CAAC,EAAE,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;AACjE,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC","sourcesContent":["const getSingletonElementInstance = (tag: string, parentElement: HTMLElement = document.body) => {\n\tlet el = document.querySelector(tag);\n\n\tif (el) {\n\t\treturn el;\n\t}\n\n\tel = document.createElement(tag);\n\n\treturn parentElement.insertBefore(el, parentElement.firstChild);\n};\n\nexport default getSingletonElementInstance;\n"]}
1
+ {"version":3,"file":"getSingletonElementInstance.js","sourceRoot":"","sources":["../../src/util/getSingletonElementInstance.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,2BAA2B,GAAG,CAAC,GAAW,EAAE,gBAA6B,QAAQ,CAAC,IAAI,EAAE,QAAwB,EAAE,EAAE;IACzH,IAAI,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAErC,IAAI,EAAE,EAAE;QACP,OAAO,EAAE,CAAC;KACV;IAED,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAEzD,OAAO,aAAa,CAAC,YAAY,CAAC,EAAE,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;AACjE,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC","sourcesContent":["/**\n * Returns a singleton HTML element, inserted in given parent element of HTML page,\n * used mostly to store and share global resources between multiple UI5 Web Components runtimes.\n *\n * @param { string } tag the element tag/selector\n * @param { HTMLElement } parentElement the parent element to insert the singleton element instance\n * @param { Function } createEl a factory function for the element instantiation, by default document.createElement is used\n * @returns { Element }\n */\nconst getSingletonElementInstance = (tag: string, parentElement: HTMLElement = document.body, createEl?: () => Element) => {\n\tlet el = document.querySelector(tag);\n\n\tif (el) {\n\t\treturn el;\n\t}\n\n\tel = createEl ? createEl() : document.createElement(tag);\n\n\treturn parentElement.insertBefore(el, parentElement.firstChild);\n};\n\nexport default getSingletonElementInstance;\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/getIconCollectionsByTheme.js";
16
16
  import {
17
17
  getLanguage,
18
18
  setLanguage,
@@ -18,8 +18,8 @@ export {
18
18
  };`;
19
19
 
20
20
  const generate = async () => {
21
- await fs.mkdir("dist/generated/", { recursive: true });
22
- return fs.writeFile("dist/generated/AssetParameters.js", fileContent);
21
+ await fs.mkdir("src/generated/", { recursive: true });
22
+ return fs.writeFile("src/generated/AssetParameters.ts", fileContent);
23
23
  }
24
24
 
25
25
  generate().then(() => {
@@ -23,8 +23,8 @@ const generate = async () => {
23
23
  };
24
24
  export default VersionInfo;`;
25
25
 
26
- await fs.mkdir("dist/generated/", { recursive: true });
27
- await fs.writeFile("dist/generated/VersionInfo.js", fileContent);
26
+ await fs.mkdir("src/generated/", { recursive: true });
27
+ await fs.writeFile("src/generated/VersionInfo.ts", fileContent);
28
28
  }
29
29
 
30
30
  generate().then(() => {
@@ -5,8 +5,7 @@ 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");
10
9
 
11
10
  const LIB = path.join(__dirname, `../tools/lib/`);
12
11
 
@@ -15,14 +14,13 @@ const viteConfig = `-c "${require.resolve("@ui5/webcomponents-tools/components-p
15
14
  const scripts = {
16
15
  clean: "rimraf jsdoc-dist && rimraf src/generated && rimraf dist && rimraf .port",
17
16
  lint: `eslint .`,
18
- prepare: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates typescript generateAPI",
19
- typescript: "tsc",
17
+ generate: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates",
18
+ prepare: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates typescript",
19
+ typescript: "tsc -b",
20
20
  integrate: {
21
- default: "nps integrate.copy-used-modules integrate.replace-amd integrate.amd-to-es6 integrate.esm-abs-to-rel integrate.third-party",
21
+ default: "nps integrate.copy-used-modules integrate.amd-to-es6 integrate.third-party",
22
22
  "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/`,
23
+ "amd-to-es6": `node "${amdToES6}" dist/`,
26
24
  "third-party": {
27
25
  default: "nps integrate.third-party.copy integrate.third-party.fix",
28
26
  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 +28,7 @@ const scripts = {
30
28
  },
31
29
  },
32
30
  build: {
33
- default: `nps prepare lint build.bundle`,
31
+ default: `nps prepare`,
34
32
  bundle: `vite build ${viteConfig}`,
35
33
  },
36
34
  copy: {
@@ -42,21 +40,17 @@ const scripts = {
42
40
  generateStyles: `node "${stylesScript}"`,
43
41
  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`,
44
42
  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/"
43
+ default: "nps generateAPI.generateCEM generateAPI.validateCEM",
44
+ generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs" --dev`,
45
+ validateCEM: `node "${LIB}/cem/validate.js" --dev`,
50
46
  },
51
47
  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"',
48
+ default: 'concurrently "nps watch.src" "nps watch.styles"',
49
+ withBundle: 'concurrently "nps watch.src" "nps watch.bundle" "nps watch.styles"',
54
50
  src: 'nps "copy.src --watch --skip-initial-copy"',
55
- typescript: 'tsc --watch',
56
51
  bundle: `node ${LIB}/dev-server/dev-server.js ${viteConfig}`,
57
52
  styles: 'chokidar "src/css/*.css" -c "nps generateStyles"'
58
53
  },
59
- start: "nps prepare watch.withBundle",
60
54
  test: {
61
55
  default: 'concurrently "nps test.wdio" "nps test.ssr" "nps test.ssr2"',
62
56
  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-dcd8e5389",
3
+ "version": "0.0.0-ddc5fe31b",
4
4
  "description": "UI5 Web Components: webcomponents.base",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -17,6 +17,11 @@
17
17
  "directory": "packages/base"
18
18
  },
19
19
  "exports": {
20
+ "./dist/ssr-dom.js": {
21
+ "browser": "./dist/ssr-dom.js",
22
+ "node": "./dist/ssr-dom-shim.js",
23
+ "default": "./dist/ssr-dom.js"
24
+ },
20
25
  ".": "./index.js",
21
26
  "./dist/*": "./dist/*",
22
27
  "./package.json": "./package.json",
@@ -28,17 +33,20 @@
28
33
  "lint": "nps lint",
29
34
  "start": "nps start",
30
35
  "build": "nps build",
36
+ "generate": "nps generate",
37
+ "generateAPI": "nps generateAPI",
38
+ "bundle": "nps build.bundle",
31
39
  "test": "nps test",
32
- "prepublishOnly": "npm run clean && npm run build"
40
+ "prepublishOnly": "tsc"
33
41
  },
34
42
  "dependencies": {
43
+ "@lit-labs/ssr-dom-shim": "^1.1.2",
35
44
  "lit-html": "^2.0.1"
36
45
  },
37
46
  "devDependencies": {
38
- "@buxlabs/amd-to-es6": "0.16.1",
39
- "@openui5/sap.ui.core": "1.112.0",
40
- "@ui5/webcomponents-tools": "0.0.0-dcd8e5389",
41
- "chromedriver": "112.0.0",
47
+ "@openui5/sap.ui.core": "1.120.3",
48
+ "@ui5/webcomponents-tools": "0.0.0-ddc5fe31b",
49
+ "chromedriver": "119.0.1",
42
50
  "clean-css": "^5.2.2",
43
51
  "copy-and-watch": "^0.1.5",
44
52
  "cross-env": "^7.0.3",
@@ -2,65 +2,95 @@
2
2
  font-family: "72";
3
3
  font-style: normal;
4
4
  font-weight: 400;
5
- src: local("72"),
6
- url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2");
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;
7
7
  }
8
8
 
9
9
  @font-face {
10
10
  font-family: "72full";
11
11
  font-style: normal;
12
12
  font-weight: 400;
13
- src: local('72-full'),
14
- url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2");
15
-
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');
16
14
  }
17
15
 
18
16
  @font-face {
19
17
  font-family: "72";
20
18
  font-style: normal;
21
19
  font-weight: 700;
22
- src: local('72-Bold'),
23
- url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2");
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;
24
22
  }
25
23
 
26
24
  @font-face {
27
25
  font-family: "72full";
28
26
  font-style: normal;
29
27
  font-weight: 700;
30
- src: local('72-Bold-full'),
31
- url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2");
28
+ src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2");
32
29
  }
33
30
 
34
31
  @font-face {
35
32
  font-family: '72-Bold';
36
33
  font-style: normal;
37
- src: local('72-Bold'),
38
- url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2");
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;
39
36
  }
40
37
 
41
38
  @font-face {
42
39
  font-family: '72-Boldfull';
43
40
  font-style: normal;
44
- src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2");
41
+ src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2");
45
42
  }
46
43
 
47
44
  @font-face {
48
45
  font-family: '72-Light';
49
46
  font-style: normal;
50
- src: local('72-Light'),
51
- url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Light.woff2?ui5-webcomponents) format("woff2");
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;
52
49
  }
53
50
 
54
51
  @font-face {
55
52
  font-family: '72-Lightfull';
56
53
  font-style: normal;
57
- src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Light-full.woff2?ui5-webcomponents) format("woff2");
54
+ src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Light-full.woff2?ui5-webcomponents) format("woff2");
55
+ }
56
+
57
+ @font-face {
58
+ font-family: '72Mono';
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;
61
+ }
62
+
63
+ @font-face {
64
+ font-family: '72Monofull';
65
+ src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular-full.woff2?ui5-webcomponents) format('woff2');
66
+ }
67
+
68
+ @font-face {
69
+ font-family: '72Mono-Bold';
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;
72
+ }
73
+
74
+ @font-face {
75
+ font-family: '72Mono-Boldfull';
76
+ src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold-full.woff2?ui5-webcomponents) format('woff2');
58
77
  }
59
78
 
60
79
  @font-face {
61
80
  font-family: "72Black";
62
81
  font-style: bold;
63
82
  font-weight: 900;
64
- src: local('72Black'),
65
- url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format("woff2");
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;
66
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');
90
+ }
91
+
92
+ @font-face {
93
+ font-family: "72-SemiboldDuplex";
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;
96
+ }