@ui5/webcomponents-base 0.0.0-9261ac932 → 0.0.0-95afb1087

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 (480) hide show
  1. package/CHANGELOG.md +831 -0
  2. package/LICENSE.txt +201 -0
  3. package/README.md +7 -7
  4. package/cypress.config.js +1 -1
  5. package/dist/.tsbuildinfobuild +1 -1
  6. package/dist/Assets-fetch.d.ts +1 -0
  7. package/dist/Assets-fetch.js +3 -0
  8. package/dist/Assets-fetch.js.map +1 -0
  9. package/dist/Assets-node.d.ts +12 -0
  10. package/dist/Assets-node.js +14 -0
  11. package/dist/Assets-node.js.map +1 -0
  12. package/dist/Assets.d.ts +1 -0
  13. package/dist/Assets.js +3 -0
  14. package/dist/Assets.js.map +1 -0
  15. package/dist/Boot.js +2 -0
  16. package/dist/Boot.js.map +1 -1
  17. package/dist/CustomElementsRegistry.d.ts +2 -1
  18. package/dist/CustomElementsRegistry.js +5 -2
  19. package/dist/CustomElementsRegistry.js.map +1 -1
  20. package/dist/CustomElementsScopeUtils.d.ts +4 -2
  21. package/dist/CustomElementsScopeUtils.js +8 -1
  22. package/dist/CustomElementsScopeUtils.js.map +1 -1
  23. package/dist/DragAndDrop.d.ts +2 -0
  24. package/dist/DragAndDrop.js +5 -0
  25. package/dist/DragAndDrop.js.map +1 -0
  26. package/dist/FeaturesRegistry.d.ts +1 -13
  27. package/dist/FeaturesRegistry.js +1 -37
  28. package/dist/FeaturesRegistry.js.map +1 -1
  29. package/dist/FontFace.js +0 -8
  30. package/dist/FontFace.js.map +1 -1
  31. package/dist/InitialConfiguration.js +7 -0
  32. package/dist/InitialConfiguration.js.map +1 -1
  33. package/dist/Keys.d.ts +4 -1
  34. package/dist/Keys.js +4 -1
  35. package/dist/Keys.js.map +1 -1
  36. package/dist/ManagedStyles.d.ts +4 -6
  37. package/dist/ManagedStyles.js +6 -16
  38. package/dist/ManagedStyles.js.map +1 -1
  39. package/dist/ScrollbarStyles.d.ts +2 -0
  40. package/dist/ScrollbarStyles.js +9 -0
  41. package/dist/ScrollbarStyles.js.map +1 -0
  42. package/dist/UI5Element.d.ts +48 -17
  43. package/dist/UI5Element.js +65 -42
  44. package/dist/UI5Element.js.map +1 -1
  45. package/dist/UI5ElementMetadata.d.ts +4 -9
  46. package/dist/UI5ElementMetadata.js +0 -7
  47. package/dist/UI5ElementMetadata.js.map +1 -1
  48. package/dist/asset-registries/Icons.d.ts +42 -8
  49. package/dist/asset-registries/Icons.js +51 -8
  50. package/dist/asset-registries/Icons.js.map +1 -1
  51. package/dist/asset-registries/Illustrations.d.ts +133 -8
  52. package/dist/asset-registries/Illustrations.js +82 -1
  53. package/dist/asset-registries/Illustrations.js.map +1 -1
  54. package/dist/asset-registries/LocaleData.js +2 -1
  55. package/dist/asset-registries/LocaleData.js.map +1 -1
  56. package/dist/asset-registries/Themes.d.ts +3 -6
  57. package/dist/asset-registries/Themes.js +1 -2
  58. package/dist/asset-registries/Themes.js.map +1 -1
  59. package/dist/config/Language.d.ts +2 -1
  60. package/dist/config/Language.js +12 -1
  61. package/dist/config/Language.js.map +1 -1
  62. package/dist/config/Theme.js +1 -2
  63. package/dist/config/Theme.js.map +1 -1
  64. package/dist/config/ThemeRoot.d.ts +3 -1
  65. package/dist/config/ThemeRoot.js +3 -1
  66. package/dist/config/ThemeRoot.js.map +1 -1
  67. package/dist/css/MultipleDragGhost.css +17 -0
  68. package/dist/css/OpenUI5PopupStyles.css +5 -0
  69. package/dist/css/ScrollbarStyles.css +3 -0
  70. package/dist/custom-elements-internal.json +1797 -1736
  71. package/dist/custom-elements.json +1424 -1301
  72. package/dist/decorators/bound.d.ts +1 -0
  73. package/dist/decorators/bound.js +34 -0
  74. package/dist/decorators/bound.js.map +1 -0
  75. package/dist/decorators/customElement.d.ts +38 -0
  76. package/dist/decorators/customElement.js +1 -4
  77. package/dist/decorators/customElement.js.map +1 -1
  78. package/dist/decorators/event-strict.d.ts +15 -0
  79. package/dist/decorators/event-strict.js +26 -0
  80. package/dist/decorators/event-strict.js.map +1 -0
  81. package/dist/decorators/event.d.ts +1 -0
  82. package/dist/decorators/event.js +1 -0
  83. package/dist/decorators/event.js.map +1 -1
  84. package/dist/decorators/i18n.js +6 -0
  85. package/dist/decorators/i18n.js.map +1 -1
  86. package/dist/decorators.d.ts +4 -1
  87. package/dist/decorators.js +4 -1
  88. package/dist/decorators.js.map +1 -1
  89. package/dist/features/F6Navigation.d.ts +1 -0
  90. package/dist/features/F6Navigation.js +39 -12
  91. package/dist/features/F6Navigation.js.map +1 -1
  92. package/dist/features/OpenUI5Enablement.d.ts +1 -1
  93. package/dist/features/OpenUI5Support.d.ts +5 -0
  94. package/dist/features/OpenUI5Support.js +42 -29
  95. package/dist/features/OpenUI5Support.js.map +1 -1
  96. package/dist/features/insertOpenUI5PopupStyles.d.ts +2 -0
  97. package/dist/features/insertOpenUI5PopupStyles.js +9 -0
  98. package/dist/features/insertOpenUI5PopupStyles.js.map +1 -0
  99. package/dist/features/patchPopup.d.ts +17 -4
  100. package/dist/features/patchPopup.js +67 -8
  101. package/dist/features/patchPopup.js.map +1 -1
  102. package/dist/generated/AssetParameters.js +1 -1
  103. package/dist/generated/AssetParameters.js.map +1 -1
  104. package/dist/generated/VersionInfo.js +6 -6
  105. package/dist/generated/VersionInfo.js.map +1 -1
  106. package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
  107. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
  108. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
  109. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
  110. package/dist/generated/css/BusyIndicator.css.d.ts +2 -3
  111. package/dist/generated/css/BusyIndicator.css.js +1 -6
  112. package/dist/generated/css/BusyIndicator.css.js.map +1 -1
  113. package/dist/generated/css/FontFace.css.d.ts +2 -3
  114. package/dist/generated/css/FontFace.css.js +36 -6
  115. package/dist/generated/css/FontFace.css.js.map +1 -1
  116. package/dist/generated/css/MultipleDragGhost.css.d.ts +2 -0
  117. package/dist/generated/css/MultipleDragGhost.css.js +2 -0
  118. package/dist/generated/css/MultipleDragGhost.css.js.map +1 -0
  119. package/dist/generated/css/OpenUI5PopupStyles.css.d.ts +2 -0
  120. package/dist/generated/css/OpenUI5PopupStyles.css.js +2 -0
  121. package/dist/generated/css/OpenUI5PopupStyles.css.js.map +1 -0
  122. package/dist/generated/css/ScrollbarStyles.css.d.ts +2 -0
  123. package/dist/generated/css/ScrollbarStyles.css.js +2 -0
  124. package/dist/generated/css/ScrollbarStyles.css.js.map +1 -0
  125. package/dist/generated/css/SystemCSSVars.css.d.ts +2 -3
  126. package/dist/generated/css/SystemCSSVars.css.js +1 -6
  127. package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
  128. package/dist/generated/i18n/i18n-defaults.d.ts +3 -0
  129. package/dist/generated/i18n/i18n-defaults.js +3 -0
  130. package/dist/generated/i18n/i18n-defaults.js.map +1 -0
  131. package/dist/generated/json-imports/i18n-fetch.d.ts +1 -0
  132. package/dist/generated/json-imports/i18n-fetch.js +2 -0
  133. package/dist/generated/json-imports/i18n-fetch.js.map +1 -0
  134. package/dist/generated/json-imports/i18n-node.d.ts +1 -0
  135. package/dist/generated/json-imports/i18n-node.js +2 -0
  136. package/dist/generated/json-imports/i18n-node.js.map +1 -0
  137. package/dist/generated/json-imports/i18n.d.ts +1 -0
  138. package/dist/generated/json-imports/i18n.js +2 -0
  139. package/dist/generated/json-imports/i18n.js.map +1 -0
  140. package/dist/index.d.ts +49 -0
  141. package/dist/index.js +91 -0
  142. package/dist/index.js.map +1 -0
  143. package/dist/jsx-dev-runtime.d.ts +4 -0
  144. package/dist/jsx-dev-runtime.js +43 -0
  145. package/dist/jsx-dev-runtime.js.map +1 -0
  146. package/dist/jsx-runtime.d.ts +51 -0
  147. package/dist/jsx-runtime.js +27 -0
  148. package/dist/jsx-runtime.js.map +1 -0
  149. package/dist/jsx-utils.d.ts +3 -0
  150. package/dist/jsx-utils.js +48 -0
  151. package/dist/jsx-utils.js.map +1 -0
  152. package/dist/locale/nextFallbackLocale.js +6 -2
  153. package/dist/locale/nextFallbackLocale.js.map +1 -1
  154. package/dist/prod/Assets-fetch.js +2 -0
  155. package/dist/prod/Assets-fetch.js.map +7 -0
  156. package/dist/prod/Assets-node.js +2 -0
  157. package/dist/prod/Assets-node.js.map +7 -0
  158. package/dist/prod/Assets.js +2 -0
  159. package/dist/prod/Assets.js.map +7 -0
  160. package/dist/prod/Boot.js +1 -1
  161. package/dist/prod/Boot.js.map +3 -3
  162. package/dist/prod/CustomElementsRegistry.js +5 -5
  163. package/dist/prod/CustomElementsRegistry.js.map +3 -3
  164. package/dist/prod/CustomElementsScopeUtils.js +1 -1
  165. package/dist/prod/CustomElementsScopeUtils.js.map +3 -3
  166. package/dist/prod/DragAndDrop.js +2 -0
  167. package/dist/prod/DragAndDrop.js.map +7 -0
  168. package/dist/prod/FeaturesRegistry.js +1 -1
  169. package/dist/prod/FeaturesRegistry.js.map +3 -3
  170. package/dist/prod/FontFace.js +1 -1
  171. package/dist/prod/FontFace.js.map +3 -3
  172. package/dist/prod/InitialConfiguration.js +1 -1
  173. package/dist/prod/InitialConfiguration.js.map +2 -2
  174. package/dist/prod/Keys.js +1 -1
  175. package/dist/prod/Keys.js.map +3 -3
  176. package/dist/prod/ManagedStyles.js +1 -1
  177. package/dist/prod/ManagedStyles.js.map +3 -3
  178. package/dist/prod/ScrollbarStyles.js +2 -0
  179. package/dist/prod/ScrollbarStyles.js.map +7 -0
  180. package/dist/prod/UI5Element.js +1 -1
  181. package/dist/prod/UI5Element.js.map +3 -3
  182. package/dist/prod/UI5ElementMetadata.js +1 -1
  183. package/dist/prod/UI5ElementMetadata.js.map +2 -2
  184. package/dist/prod/asset-registries/Icons.js +1 -1
  185. package/dist/prod/asset-registries/Icons.js.map +3 -3
  186. package/dist/prod/asset-registries/Illustrations.js +1 -1
  187. package/dist/prod/asset-registries/Illustrations.js.map +3 -3
  188. package/dist/prod/asset-registries/LocaleData.js +1 -1
  189. package/dist/prod/asset-registries/LocaleData.js.map +2 -2
  190. package/dist/prod/asset-registries/Themes.js +1 -1
  191. package/dist/prod/asset-registries/Themes.js.map +2 -2
  192. package/dist/prod/config/Language.js +1 -1
  193. package/dist/prod/config/Language.js.map +3 -3
  194. package/dist/prod/config/Theme.js +1 -1
  195. package/dist/prod/config/Theme.js.map +3 -3
  196. package/dist/prod/config/ThemeRoot.js.map +2 -2
  197. package/dist/prod/decorators/bound.js +2 -0
  198. package/dist/prod/decorators/bound.js.map +7 -0
  199. package/dist/prod/decorators/customElement.js +1 -1
  200. package/dist/prod/decorators/customElement.js.map +3 -3
  201. package/dist/prod/decorators/event-strict.js +2 -0
  202. package/dist/prod/decorators/event-strict.js.map +7 -0
  203. package/dist/prod/decorators/event.js.map +2 -2
  204. package/dist/prod/decorators/i18n.js +1 -1
  205. package/dist/prod/decorators/i18n.js.map +2 -2
  206. package/dist/prod/decorators.js +1 -1
  207. package/dist/prod/decorators.js.map +3 -3
  208. package/dist/prod/features/F6Navigation.js +1 -1
  209. package/dist/prod/features/F6Navigation.js.map +3 -3
  210. package/dist/prod/features/OpenUI5Support.js +1 -1
  211. package/dist/prod/features/OpenUI5Support.js.map +3 -3
  212. package/dist/prod/features/insertOpenUI5PopupStyles.js +2 -0
  213. package/dist/prod/features/insertOpenUI5PopupStyles.js.map +7 -0
  214. package/dist/prod/features/patchPopup.js +1 -1
  215. package/dist/prod/features/patchPopup.js.map +3 -3
  216. package/dist/prod/generated/AssetParameters.js +1 -1
  217. package/dist/prod/generated/AssetParameters.js.map +2 -2
  218. package/dist/prod/generated/VersionInfo.js +1 -1
  219. package/dist/prod/generated/VersionInfo.js.map +2 -2
  220. package/dist/prod/generated/assets/i18n/messagebundle_en.json +1 -0
  221. package/dist/prod/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
  222. package/dist/prod/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
  223. package/dist/prod/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
  224. package/dist/prod/generated/css/BusyIndicator.css.js +1 -1
  225. package/dist/prod/generated/css/BusyIndicator.css.js.map +3 -3
  226. package/dist/prod/generated/css/FontFace.css.js +36 -1
  227. package/dist/prod/generated/css/FontFace.css.js.map +3 -3
  228. package/dist/prod/generated/css/MultipleDragGhost.css.js +2 -0
  229. package/dist/prod/generated/css/MultipleDragGhost.css.js.map +7 -0
  230. package/dist/prod/generated/css/OpenUI5PopupStyles.css.js +2 -0
  231. package/dist/prod/generated/css/OpenUI5PopupStyles.css.js.map +7 -0
  232. package/dist/prod/generated/css/ScrollbarStyles.css.js +2 -0
  233. package/dist/prod/generated/css/ScrollbarStyles.css.js.map +7 -0
  234. package/dist/prod/generated/css/SystemCSSVars.css.js +1 -1
  235. package/dist/prod/generated/css/SystemCSSVars.css.js.map +3 -3
  236. package/dist/prod/generated/i18n/i18n-defaults.js +2 -0
  237. package/dist/prod/generated/i18n/i18n-defaults.js.map +7 -0
  238. package/dist/prod/generated/json-imports/i18n-fetch.js +2 -0
  239. package/dist/prod/generated/json-imports/i18n-fetch.js.map +7 -0
  240. package/dist/prod/generated/json-imports/i18n-node.js +2 -0
  241. package/dist/prod/generated/json-imports/i18n-node.js.map +7 -0
  242. package/dist/prod/generated/json-imports/i18n.js +2 -0
  243. package/dist/prod/generated/json-imports/i18n.js.map +7 -0
  244. package/dist/prod/index.js +2 -0
  245. package/dist/prod/index.js.map +7 -0
  246. package/dist/prod/jsx-dev-runtime.js +2 -0
  247. package/dist/prod/jsx-dev-runtime.js.map +7 -0
  248. package/dist/prod/jsx-runtime.js +2 -0
  249. package/dist/prod/jsx-runtime.js.map +7 -0
  250. package/dist/prod/jsx-utils.js +2 -0
  251. package/dist/prod/jsx-utils.js.map +7 -0
  252. package/dist/prod/locale/nextFallbackLocale.js +1 -1
  253. package/dist/prod/locale/nextFallbackLocale.js.map +3 -3
  254. package/dist/prod/renderer/JsxRenderer.js +2 -0
  255. package/dist/prod/renderer/JsxRenderer.js.map +7 -0
  256. package/dist/prod/renderer/LitRenderer.js +1 -1
  257. package/dist/prod/renderer/LitRenderer.js.map +3 -3
  258. package/dist/prod/renderer/executeTemplate.js +1 -1
  259. package/dist/prod/renderer/executeTemplate.js.map +3 -3
  260. package/dist/prod/ssr-dom-shim.js +1 -1
  261. package/dist/prod/ssr-dom-shim.js.map +3 -3
  262. package/dist/prod/theming/applyTheme.js +1 -1
  263. package/dist/prod/theming/applyTheme.js.map +3 -3
  264. package/dist/prod/theming/getStylesString.js +1 -1
  265. package/dist/prod/theming/getStylesString.js.map +2 -2
  266. package/dist/prod/theming/getThemeDesignerTheme.js +1 -1
  267. package/dist/prod/theming/getThemeDesignerTheme.js.map +3 -3
  268. package/dist/prod/thirdparty/preact/jsx.d.js +2 -0
  269. package/dist/prod/thirdparty/preact/jsx.d.js.map +7 -0
  270. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +2 -0
  271. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +7 -0
  272. package/dist/prod/thirdparty/preact/jsxRuntime.module.js +1 -0
  273. package/dist/prod/thirdparty/preact/preact.module.d.js +2 -0
  274. package/dist/prod/thirdparty/preact/preact.module.d.js.map +7 -0
  275. package/dist/prod/thirdparty/preact/preact.module.js +1 -0
  276. package/dist/prod/types/SortOrder.js +2 -0
  277. package/dist/prod/types/SortOrder.js.map +7 -0
  278. package/dist/prod/updateShadowRoot.js +1 -1
  279. package/dist/prod/updateShadowRoot.js.map +3 -3
  280. package/dist/prod/util/AccessibilityTextsHelper.js +2 -0
  281. package/dist/prod/util/AccessibilityTextsHelper.js.map +7 -0
  282. package/dist/prod/util/ColorConversion.js +1 -1
  283. package/dist/prod/util/ColorConversion.js.map +3 -3
  284. package/dist/prod/util/FocusableElements.js +1 -1
  285. package/dist/prod/util/FocusableElements.js.map +3 -3
  286. package/dist/prod/util/HTMLSanitizer.js.map +1 -1
  287. package/dist/prod/util/SelectionAssistant.js +1 -1
  288. package/dist/prod/util/SelectionAssistant.js.map +3 -3
  289. package/dist/prod/util/StringHelper.js +1 -1
  290. package/dist/prod/util/StringHelper.js.map +3 -3
  291. package/dist/prod/util/TabbableElements.js +1 -1
  292. package/dist/prod/util/TabbableElements.js.map +2 -2
  293. package/dist/prod/util/dragAndDrop/DragRegistry.js +1 -1
  294. package/dist/prod/util/dragAndDrop/DragRegistry.js.map +3 -3
  295. package/dist/prod/util/dragAndDrop/findClosestPosition.js +1 -1
  296. package/dist/prod/util/dragAndDrop/findClosestPosition.js.map +3 -3
  297. package/dist/prod/util/dragAndDrop/handleDragOver.js +2 -0
  298. package/dist/prod/util/dragAndDrop/handleDragOver.js.map +7 -0
  299. package/dist/prod/util/dragAndDrop/handleDrop.js +2 -0
  300. package/dist/prod/util/dragAndDrop/handleDrop.js.map +7 -0
  301. package/dist/prod/util/getFastNavigationGroups.js +1 -1
  302. package/dist/prod/util/getFastNavigationGroups.js.map +2 -2
  303. package/dist/prod/util/getParentElement.js +1 -1
  304. package/dist/prod/util/getParentElement.js.map +3 -3
  305. package/dist/prod/util/hash2str.js +2 -0
  306. package/dist/prod/util/hash2str.js.map +7 -0
  307. package/dist/prod/util/isElementHidden.js +1 -1
  308. package/dist/prod/util/isElementHidden.js.map +3 -3
  309. package/dist/prod/util/isEventMarked.js +2 -0
  310. package/dist/prod/util/isEventMarked.js.map +7 -0
  311. package/dist/prod/util/throttle.js +2 -0
  312. package/dist/prod/util/throttle.js.map +7 -0
  313. package/dist/prod/util/toLowercaseEnumValue.js +2 -0
  314. package/dist/prod/util/toLowercaseEnumValue.js.map +7 -0
  315. package/dist/prod/util/valueStateNavigation.js +2 -0
  316. package/dist/prod/util/valueStateNavigation.js.map +7 -0
  317. package/dist/prod/validateThemeRoot.js +1 -1
  318. package/dist/prod/validateThemeRoot.js.map +2 -2
  319. package/dist/renderer/JsxRenderer.d.ts +3 -0
  320. package/dist/renderer/JsxRenderer.js +26 -0
  321. package/dist/renderer/JsxRenderer.js.map +1 -0
  322. package/dist/renderer/LitRenderer.js +4 -3
  323. package/dist/renderer/LitRenderer.js.map +1 -1
  324. package/dist/renderer/executeTemplate.d.ts +3 -12
  325. package/dist/renderer/executeTemplate.js +1 -20
  326. package/dist/renderer/executeTemplate.js.map +1 -1
  327. package/dist/ssr-dom-shim.js +52 -1
  328. package/dist/ssr-dom-shim.js.map +1 -1
  329. package/dist/theming/applyTheme.d.ts +2 -0
  330. package/dist/theming/applyTheme.js +21 -30
  331. package/dist/theming/applyTheme.js.map +1 -1
  332. package/dist/theming/getStylesString.js +2 -4
  333. package/dist/theming/getStylesString.js.map +1 -1
  334. package/dist/theming/getThemeDesignerTheme.js +2 -1
  335. package/dist/theming/getThemeDesignerTheme.js.map +1 -1
  336. package/dist/thirdparty/preact/jsx.d.ts +2616 -0
  337. package/dist/thirdparty/preact/jsxRuntime.module.d.ts +62 -0
  338. package/dist/thirdparty/preact/jsxRuntime.module.js +1 -0
  339. package/dist/thirdparty/preact/preact.module.d.ts +398 -0
  340. package/dist/thirdparty/preact/preact.module.js +1 -0
  341. package/dist/types/SortOrder.d.ts +24 -0
  342. package/dist/types/SortOrder.js +26 -0
  343. package/dist/types/SortOrder.js.map +1 -0
  344. package/dist/types.d.ts +30 -27
  345. package/dist/types.js.map +1 -1
  346. package/dist/updateShadowRoot.js +1 -2
  347. package/dist/updateShadowRoot.js.map +1 -1
  348. package/dist/util/{AriaLabelHelper.d.ts → AccessibilityTextsHelper.d.ts} +3 -1
  349. package/dist/util/{AriaLabelHelper.js → AccessibilityTextsHelper.js} +36 -8
  350. package/dist/util/AccessibilityTextsHelper.js.map +1 -0
  351. package/dist/util/ColorConversion.d.ts +2 -1
  352. package/dist/util/ColorConversion.js +35 -23
  353. package/dist/util/ColorConversion.js.map +1 -1
  354. package/dist/util/FocusableElements.js +43 -15
  355. package/dist/util/FocusableElements.js.map +1 -1
  356. package/dist/util/HTMLSanitizer.d.ts +2 -0
  357. package/dist/util/HTMLSanitizer.js +2 -2
  358. package/dist/util/HTMLSanitizer.js.map +1 -1
  359. package/dist/util/SelectionAssistant.js +0 -8
  360. package/dist/util/SelectionAssistant.js.map +1 -1
  361. package/dist/util/StringHelper.d.ts +2 -1
  362. package/dist/util/StringHelper.js +4 -1
  363. package/dist/util/StringHelper.js.map +1 -1
  364. package/dist/util/TabbableElements.js +2 -2
  365. package/dist/util/TabbableElements.js.map +1 -1
  366. package/dist/util/dragAndDrop/DragRegistry.d.ts +35 -8
  367. package/dist/util/dragAndDrop/DragRegistry.js +42 -50
  368. package/dist/util/dragAndDrop/DragRegistry.js.map +1 -1
  369. package/dist/util/dragAndDrop/findClosestPosition.d.ts +2 -1
  370. package/dist/util/dragAndDrop/findClosestPosition.js +45 -41
  371. package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -1
  372. package/dist/util/dragAndDrop/handleDragOver.d.ts +16 -0
  373. package/dist/util/dragAndDrop/handleDragOver.js +42 -0
  374. package/dist/util/dragAndDrop/handleDragOver.js.map +1 -0
  375. package/dist/util/dragAndDrop/handleDrop.d.ts +5 -0
  376. package/dist/util/dragAndDrop/handleDrop.js +22 -0
  377. package/dist/util/dragAndDrop/handleDrop.js.map +1 -0
  378. package/dist/util/getClassCopy.d.ts +16 -5
  379. package/dist/util/getFastNavigationGroups.js +6 -1
  380. package/dist/util/getFastNavigationGroups.js.map +1 -1
  381. package/dist/util/getParentElement.d.ts +1 -1
  382. package/dist/util/getParentElement.js +2 -2
  383. package/dist/util/getParentElement.js.map +1 -1
  384. package/dist/util/hash2str.d.ts +1 -0
  385. package/dist/util/hash2str.js +14 -0
  386. package/dist/util/hash2str.js.map +1 -0
  387. package/dist/util/isElementHidden.js +2 -1
  388. package/dist/util/isElementHidden.js.map +1 -1
  389. package/dist/util/isEventMarked.d.ts +2 -0
  390. package/dist/util/isEventMarked.js +6 -0
  391. package/dist/util/isEventMarked.js.map +1 -0
  392. package/dist/util/throttle.d.ts +2 -0
  393. package/dist/util/throttle.js +20 -0
  394. package/dist/util/throttle.js.map +1 -0
  395. package/dist/util/toLowercaseEnumValue.d.ts +3 -0
  396. package/dist/util/toLowercaseEnumValue.js +4 -0
  397. package/dist/util/toLowercaseEnumValue.js.map +1 -0
  398. package/dist/util/valueStateNavigation.d.ts +8 -0
  399. package/dist/util/valueStateNavigation.js +40 -0
  400. package/dist/util/valueStateNavigation.js.map +1 -0
  401. package/dist/validateThemeRoot.js +6 -2
  402. package/dist/validateThemeRoot.js.map +1 -1
  403. package/dist/vscode.html-custom-data.json +1 -1
  404. package/package-scripts.cjs +65 -34
  405. package/package.json +38 -25
  406. package/src/css/MultipleDragGhost.css +17 -0
  407. package/src/css/OpenUI5PopupStyles.css +5 -0
  408. package/src/css/ScrollbarStyles.css +3 -0
  409. package/src/i18n/messagebundle.properties +5 -0
  410. package/src/i18n/messagebundle_en.properties +2 -0
  411. package/src/i18n/messagebundle_en_US_sappsd.properties +2 -0
  412. package/src/i18n/messagebundle_en_US_saprigi.properties +2 -0
  413. package/src/i18n/messagebundle_en_US_saptrc.properties +2 -0
  414. package/src/thirdparty/preact/jsxRuntime.module.js +1 -0
  415. package/src/thirdparty/preact/preact.module.js +1 -0
  416. package/src/thirdparty/preact/version.txt +1 -0
  417. package/tsconfig.json +0 -1
  418. package/cypress/specs/Accessor.cy.ts +0 -79
  419. package/cypress/specs/Boot.cy.ts +0 -23
  420. package/cypress/specs/ConfigurationChange.cy.ts +0 -41
  421. package/cypress/specs/ConfigurationScript.cy.ts +0 -116
  422. package/cypress/specs/ConfigurationURL.cy.ts +0 -182
  423. package/cypress/specs/CustomMount.cy.ts +0 -34
  424. package/cypress/specs/CustomTheme.cy.ts +0 -36
  425. package/cypress/specs/EventProvider.cy.ts +0 -59
  426. package/cypress/specs/SystemDOMElements.cy.ts +0 -8
  427. package/cypress/specs/Theming.cy.ts +0 -74
  428. package/cypress/specs/UI5ElementInvalidation.cy.ts +0 -207
  429. package/cypress/specs/UI5ElementLifecycle.cy.ts +0 -82
  430. package/cypress/specs/UI5ElementListenForChildPropChanges.cy.ts +0 -62
  431. package/cypress/specs/UI5ElementMetadataExt.cy.ts +0 -42
  432. package/cypress/specs/UI5ElementPropertyValidation.cy.ts +0 -16
  433. package/cypress/specs/UI5ElementPropsAndAttrs.cy.ts +0 -113
  434. package/cypress/specs/UI5ElementShadowDOM.cy.ts +0 -30
  435. package/cypress/specs/UI5ElementSlots.cy.ts +0 -116
  436. package/cypress/specs/WithComplexTemplate.cy.ts +0 -32
  437. package/cypress/tsconfig.json +0 -20
  438. package/dist/MarkedEvents.d.ts +0 -9
  439. package/dist/MarkedEvents.js +0 -15
  440. package/dist/MarkedEvents.js.map +0 -1
  441. package/dist/css/FontFace.css +0 -96
  442. package/dist/css/OverrideFontFace.css +0 -32
  443. package/dist/generated/css/OverrideFontFace.css.d.ts +0 -3
  444. package/dist/generated/css/OverrideFontFace.css.js +0 -7
  445. package/dist/generated/css/OverrideFontFace.css.js.map +0 -1
  446. package/dist/prod/MarkedEvents.js +0 -2
  447. package/dist/prod/MarkedEvents.js.map +0 -7
  448. package/dist/prod/generated/css/OverrideFontFace.css.js +0 -2
  449. package/dist/prod/generated/css/OverrideFontFace.css.js.map +0 -7
  450. package/dist/prod/types/AriaHasPopup.js +0 -2
  451. package/dist/prod/types/AriaHasPopup.js.map +0 -7
  452. package/dist/prod/types/AriaLandmarkRole.js +0 -2
  453. package/dist/prod/types/AriaLandmarkRole.js.map +0 -7
  454. package/dist/prod/types/AriaRole.js +0 -2
  455. package/dist/prod/types/AriaRole.js.map +0 -7
  456. package/dist/prod/util/AriaLabelHelper.js +0 -2
  457. package/dist/prod/util/AriaLabelHelper.js.map +0 -7
  458. package/dist/prod/util/getEffectiveScrollbarStyle.js +0 -26
  459. package/dist/prod/util/getEffectiveScrollbarStyle.js.map +0 -7
  460. package/dist/prod/util/isElementContainingBlock.js +0 -2
  461. package/dist/prod/util/isElementContainingBlock.js.map +0 -7
  462. package/dist/types/AriaHasPopup.d.ts +0 -32
  463. package/dist/types/AriaHasPopup.js +0 -34
  464. package/dist/types/AriaHasPopup.js.map +0 -1
  465. package/dist/types/AriaLandmarkRole.d.ts +0 -79
  466. package/dist/types/AriaLandmarkRole.js +0 -81
  467. package/dist/types/AriaLandmarkRole.js.map +0 -1
  468. package/dist/types/AriaRole.d.ts +0 -27
  469. package/dist/types/AriaRole.js +0 -29
  470. package/dist/types/AriaRole.js.map +0 -1
  471. package/dist/util/AriaLabelHelper.js.map +0 -1
  472. package/dist/util/getEffectiveScrollbarStyle.d.ts +0 -2
  473. package/dist/util/getEffectiveScrollbarStyle.js +0 -34
  474. package/dist/util/getEffectiveScrollbarStyle.js.map +0 -1
  475. package/dist/util/isElementContainingBlock.d.ts +0 -2
  476. package/dist/util/isElementContainingBlock.js +0 -11
  477. package/dist/util/isElementContainingBlock.js.map +0 -1
  478. package/index.js +0 -214
  479. package/src/css/FontFace.css +0 -96
  480. package/src/css/OverrideFontFace.css +0 -32
@@ -0,0 +1 @@
1
+ export default function hash2str(hash: Record<string, boolean>): string;
@@ -0,0 +1,14 @@
1
+ export default function hash2str(hash) {
2
+ let str = "";
3
+ // eslint-disable-next-line no-restricted-syntax
4
+ for (const prop in hash) {
5
+ if (hash[prop]) {
6
+ if (str) {
7
+ str += " ";
8
+ }
9
+ str += prop;
10
+ }
11
+ }
12
+ return str;
13
+ }
14
+ //# sourceMappingURL=hash2str.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash2str.js","sourceRoot":"","sources":["../../src/util/hash2str.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,IAA6B;IAC7D,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,gDAAgD;IAChD,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,CAAC;QACzB,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YAChB,IAAI,GAAG,EAAE,CAAC;gBACT,GAAG,IAAI,GAAG,CAAC;YACZ,CAAC;YACD,GAAG,IAAI,IAAI,CAAC;QACb,CAAC;IACF,CAAC;IACD,OAAO,GAAG,CAAC;AACZ,CAAC","sourcesContent":["export default function hash2str(hash: Record<string, boolean>): string {\n\tlet str = \"\";\n\t// eslint-disable-next-line no-restricted-syntax\n\tfor (const prop in hash) {\n\t\tif (hash[prop]) {\n\t\t\tif (str) {\n\t\t\t\tstr += \" \";\n\t\t\t}\n\t\t\tstr += prop;\n\t\t}\n\t}\n\treturn str;\n}\n"]}
@@ -2,7 +2,8 @@ const isElementHidden = (el) => {
2
2
  if (el.nodeName === "SLOT") {
3
3
  return false;
4
4
  }
5
- return (el.offsetWidth <= 0 && el.offsetHeight <= 0) || (el.style && el.style.visibility === "hidden");
5
+ const computedStyle = window.getComputedStyle(el);
6
+ return (computedStyle.display !== "contents" && (el.offsetWidth <= 0 && el.offsetHeight <= 0)) || (computedStyle.visibility === "hidden");
6
7
  };
7
8
  export default isElementHidden;
8
9
  //# sourceMappingURL=isElementHidden.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isElementHidden.js","sourceRoot":"","sources":["../../src/util/isElementHidden.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,CAAC,EAAe,EAAE,EAAE;IAC3C,IAAI,EAAE,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,CAAC,EAAE,CAAC,WAAW,IAAI,CAAC,IAAI,EAAE,CAAC,YAAY,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC;AACxG,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["const isElementHidden = (el: HTMLElement) => {\n\tif (el.nodeName === \"SLOT\") {\n\t\treturn false;\n\t}\n\n\treturn (el.offsetWidth <= 0 && el.offsetHeight <= 0) || (el.style && el.style.visibility === \"hidden\");\n};\n\nexport default isElementHidden;\n"]}
1
+ {"version":3,"file":"isElementHidden.js","sourceRoot":"","sources":["../../src/util/isElementHidden.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,CAAC,EAAe,EAAE,EAAE;IAC3C,IAAI,EAAE,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACd,CAAC;IAED,MAAM,aAAa,GAAG,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAElD,OAAO,CAAC,aAAa,CAAC,OAAO,KAAK,UAAU,IAAI,CAAC,EAAE,CAAC,WAAW,IAAI,CAAC,IAAI,EAAE,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC;AAC3I,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC","sourcesContent":["const isElementHidden = (el: HTMLElement) => {\n\tif (el.nodeName === \"SLOT\") {\n\t\treturn false;\n\t}\n\n\tconst computedStyle = window.getComputedStyle(el);\n\n\treturn (computedStyle.display !== \"contents\" && (el.offsetWidth <= 0 && el.offsetHeight <= 0)) || (computedStyle.visibility === \"hidden\");\n};\n\nexport default isElementHidden;\n"]}
@@ -0,0 +1,2 @@
1
+ declare const isEventMarked: (event: any, key?: string) => boolean;
2
+ export default isEventMarked;
@@ -0,0 +1,6 @@
1
+ const defaultOpenUI5Key = "handledByControl";
2
+ const isEventMarked = (event, key = defaultOpenUI5Key) => {
3
+ return !!event[`_sapui_${key}`];
4
+ };
5
+ export default isEventMarked;
6
+ //# sourceMappingURL=isEventMarked.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEventMarked.js","sourceRoot":"","sources":["../../src/util/isEventMarked.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAE7C,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,MAAc,iBAAiB,EAAE,EAAE;IACrE,OAAO,CAAC,CAAC,KAAK,CAAC,UAAU,GAAG,EAAE,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["const defaultOpenUI5Key = \"handledByControl\";\n\nconst isEventMarked = (event: any, key: string = defaultOpenUI5Key) => {\n\treturn !!event[`_sapui_${key}`];\n};\n\nexport default isEventMarked;\n"]}
@@ -0,0 +1,2 @@
1
+ declare function throttle(func: () => void, delay: number): () => void;
2
+ export default throttle;
@@ -0,0 +1,20 @@
1
+ function throttle(func, delay) {
2
+ let lastArgs = null; // used to ensure an explicit last call after the delay
3
+ let throttleTimeout = null;
4
+ return function throttled(...args) {
5
+ if (throttleTimeout) {
6
+ lastArgs = args;
7
+ return;
8
+ }
9
+ func(...args);
10
+ throttleTimeout = setTimeout(() => {
11
+ if (lastArgs) {
12
+ func(...lastArgs);
13
+ lastArgs = null;
14
+ }
15
+ throttleTimeout = null;
16
+ }, delay);
17
+ };
18
+ }
19
+ export default throttle;
20
+ //# sourceMappingURL=throttle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../src/util/throttle.ts"],"names":[],"mappings":"AAEA,SAAS,QAAQ,CAAC,IAAgB,EAAE,KAAa;IAChD,IAAI,QAAQ,GAAc,IAAI,CAAC,CAAC,uDAAuD;IACvF,IAAI,eAAe,GAAmB,IAAI,CAAC;IAE3C,OAAO,SAAS,SAAS,CAAC,GAAG,IAAI;QAChC,IAAI,eAAe,EAAE,CAAC;YACrB,QAAQ,GAAG,IAAI,CAAC;YAChB,OAAO;QACR,CAAC;QAED,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QACd,eAAe,GAAG,UAAU,CAAC,GAAG,EAAE;YACjC,IAAI,QAAQ,EAAE,CAAC;gBACd,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;gBAClB,QAAQ,GAAG,IAAI,CAAC;YACjB,CAAC;YACD,eAAe,GAAG,IAAI,CAAC;QACxB,CAAC,EAAE,KAAK,CAAC,CAAC;IACX,CAAC,CAAC;AACH,CAAC;AAED,eAAe,QAAQ,CAAC","sourcesContent":["import type { Timeout } from \"../types.js\";\n\nfunction throttle(func: () => void, delay: number): () => void {\n\tlet lastArgs: [] | null = null; // used to ensure an explicit last call after the delay\n\tlet throttleTimeout: Timeout | null = null;\n\n\treturn function throttled(...args) {\n\t\tif (throttleTimeout) {\n\t\t\tlastArgs = args;\n\t\t\treturn;\n\t\t}\n\n\t\tfunc(...args);\n\t\tthrottleTimeout = setTimeout(() => {\n\t\t\tif (lastArgs) {\n\t\t\t\tfunc(...lastArgs);\n\t\t\t\tlastArgs = null;\n\t\t\t}\n\t\t\tthrottleTimeout = null;\n\t\t}, delay);\n\t};\n}\n\nexport default throttle;\n"]}
@@ -0,0 +1,3 @@
1
+ type LowercaseEnum<T> = T extends string ? Lowercase<T> : never;
2
+ export default function toLowercaseEnumValue<T extends string>(value: T): LowercaseEnum<T>;
3
+ export {};
@@ -0,0 +1,4 @@
1
+ export default function toLowercaseEnumValue(value) {
2
+ return value.toLowerCase();
3
+ }
4
+ //# sourceMappingURL=toLowercaseEnumValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toLowercaseEnumValue.js","sourceRoot":"","sources":["../../src/util/toLowercaseEnumValue.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAmB,KAAQ;IACtE,OAAO,KAAK,CAAC,WAAW,EAAsB,CAAC;AAChD,CAAC","sourcesContent":["type LowercaseEnum<T> = T extends string ? Lowercase<T> : never;\n\nexport default function toLowercaseEnumValue<T extends string>(value: T): LowercaseEnum<T> {\n\treturn value.toLowerCase() as LowercaseEnum<T>;\n}\n"]}
@@ -0,0 +1,8 @@
1
+ interface ControlHandlers {
2
+ closeValueState: () => void;
3
+ focusInput: () => void;
4
+ navigateToItem: () => void;
5
+ isPopoverOpen: () => boolean;
6
+ }
7
+ declare const attachListeners: (e: KeyboardEvent, links: Array<HTMLElement>, index: number, handlers: ControlHandlers) => void;
8
+ export { attachListeners, ControlHandlers };
@@ -0,0 +1,40 @@
1
+ import { isDown, isUp, isTabNext, isTabPrevious, isEscape, } from "../Keys.js";
2
+ const attachListeners = (e, links, index, handlers) => {
3
+ if (isTabNext(e)) {
4
+ if (index !== links.length - 1) {
5
+ e.stopImmediatePropagation();
6
+ e.preventDefault();
7
+ links[index + 1].focus();
8
+ }
9
+ else {
10
+ handlers.closeValueState();
11
+ handlers.focusInput();
12
+ }
13
+ }
14
+ if (isTabPrevious(e)) {
15
+ e.preventDefault();
16
+ e.stopImmediatePropagation();
17
+ if (index > 0) {
18
+ links[index - 1].focus();
19
+ }
20
+ else {
21
+ handlers.focusInput();
22
+ }
23
+ }
24
+ if (isUp(e)) {
25
+ e.preventDefault();
26
+ e.stopImmediatePropagation();
27
+ handlers.isPopoverOpen() && handlers.focusInput();
28
+ }
29
+ if (isDown(e)) {
30
+ e.preventDefault();
31
+ e.stopImmediatePropagation();
32
+ handlers.navigateToItem();
33
+ }
34
+ if (isEscape(e)) {
35
+ e.preventDefault();
36
+ e.stopImmediatePropagation();
37
+ }
38
+ };
39
+ export { attachListeners };
40
+ //# sourceMappingURL=valueStateNavigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valueStateNavigation.js","sourceRoot":"","sources":["../../src/util/valueStateNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,IAAI,EACJ,SAAS,EACT,aAAa,EACb,QAAQ,GACR,MAAM,YAAY,CAAC;AASpB,MAAM,eAAe,GAAG,CAAC,CAAgB,EAAE,KAAyB,EAAE,KAAa,EAAE,QAAyB,EAAE,EAAE;IACjH,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;QAClB,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAChC,CAAC,CAAC,wBAAwB,EAAE,CAAC;YAC7B,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC;aAAM,CAAC;YACP,QAAQ,CAAC,eAAe,EAAE,CAAC;YAC3B,QAAQ,CAAC,UAAU,EAAE,CAAC;QACvB,CAAC;IACF,CAAC;IAED,IAAI,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;QACtB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,wBAAwB,EAAE,CAAC;QAC7B,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACf,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;QAC1B,CAAC;aAAM,CAAC;YACP,QAAQ,CAAC,UAAU,EAAE,CAAC;QACvB,CAAC;IACF,CAAC;IAED,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QACb,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,wBAAwB,EAAE,CAAC;QAC7B,QAAQ,CAAC,aAAa,EAAE,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC;IACnD,CAAC;IAED,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;QACf,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,wBAAwB,EAAE,CAAC;QAC7B,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC3B,CAAC;IAED,IAAI,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;QACjB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,CAAC,CAAC,wBAAwB,EAAE,CAAC;IAC9B,CAAC;AACF,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAmB,CAAC","sourcesContent":["import {\n\tisDown,\n\tisUp,\n\tisTabNext,\n\tisTabPrevious,\n\tisEscape,\n} from \"../Keys.js\";\n\ninterface ControlHandlers {\n\tcloseValueState: () => void;\n\tfocusInput: () => void;\n\tnavigateToItem: () => void;\n\tisPopoverOpen: () => boolean;\n}\n\nconst attachListeners = (e: KeyboardEvent, links: Array<HTMLElement>, index: number, handlers: ControlHandlers) => {\n\tif (isTabNext(e)) {\n\t\tif (index !== links.length - 1) {\n\t\t\te.stopImmediatePropagation();\n\t\t\te.preventDefault();\n\t\t\tlinks[index + 1].focus();\n\t\t} else {\n\t\t\thandlers.closeValueState();\n\t\t\thandlers.focusInput();\n\t\t}\n\t}\n\n\tif (isTabPrevious(e)) {\n\t\te.preventDefault();\n\t\te.stopImmediatePropagation();\n\t\tif (index > 0) {\n\t\t\tlinks[index - 1].focus();\n\t\t} else {\n\t\t\thandlers.focusInput();\n\t\t}\n\t}\n\n\tif (isUp(e)) {\n\t\te.preventDefault();\n\t\te.stopImmediatePropagation();\n\t\thandlers.isPopoverOpen() && handlers.focusInput();\n\t}\n\n\tif (isDown(e)) {\n\t\te.preventDefault();\n\t\te.stopImmediatePropagation();\n\t\thandlers.navigateToItem();\n\t}\n\n\tif (isEscape(e)) {\n\t\te.preventDefault();\n\t\te.stopImmediatePropagation();\n\t}\n};\n\nexport { attachListeners, ControlHandlers };\n"]}
@@ -4,8 +4,12 @@ const getMetaTagValue = (metaTagName) => {
4
4
  return metaTagContent;
5
5
  };
6
6
  const validateThemeOrigin = (origin) => {
7
- const allowedOrigins = getMetaTagValue("sap-allowedThemeOrigins");
8
- return allowedOrigins && allowedOrigins.split(",").some(allowedOrigin => {
7
+ const allowedOrigins = getMetaTagValue("sap-allowed-theme-origins") ?? getMetaTagValue("sap-allowedThemeOrigins"); // Prioritize the new meta tag name
8
+ // If no allowed origins are specified, block.
9
+ if (!allowedOrigins) {
10
+ return false;
11
+ }
12
+ return allowedOrigins.split(",").some(allowedOrigin => {
9
13
  return allowedOrigin === "*" || origin === allowedOrigin.trim();
10
14
  });
11
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"validateThemeRoot.js","sourceRoot":"","sources":["../src/validateThemeRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,eAAe,GAAG,CAAC,WAAmB,EAAE,EAAE;IAC/C,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,cAAc,WAAW,IAAI,CAAC,EACpE,cAAc,GAAG,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAE7D,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,MAAc,EAAE,EAAE;IAC9C,MAAM,cAAc,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;IAElE,OAAO,cAAc,IAAI,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;QACvE,OAAO,aAAa,KAAK,GAAG,IAAI,MAAM,KAAK,aAAa,CAAC,IAAI,EAAE,CAAC;IACjE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,MAAc,EAAE,SAAiB,EAAE,EAAE;IAC7D,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC;IAE5C,OAAO,IAAI,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,SAAiB,EAAE,EAAE;IAC/C,IAAI,SAAS,CAAC;IAEd,IAAI,CAAC;QACJ,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5D,sBAAsB;YACtB,wFAAwF;YACxF,iGAAiG;YACjG,0FAA0F;YAC1F,SAAS,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC9D,CAAC;aAAM,CAAC;YACP,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;YACxC,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC;YAEnC,IAAI,MAAM,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC3C,+BAA+B;gBAC/B,SAAS,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC;YACrC,CAAC;iBAAM,CAAC;gBACP,oFAAoF;gBACpF,wBAAwB;gBACxB,SAAS,GAAG,eAAe,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;YACzE,CAAC;QACF,CAAC;QAED,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC9B,SAAS,GAAG,GAAG,SAAS,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,GAAG,SAAS,MAAM,CAAC;IAC3B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,8BAA8B;IAC/B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import { getLocationHref } from \"./Location.js\";\n\nconst getMetaTagValue = (metaTagName: string) => {\n\tconst metaTag = document.querySelector(`META[name=\"${metaTagName}\"]`),\n\t\tmetaTagContent = metaTag && metaTag.getAttribute(\"content\");\n\n\treturn metaTagContent;\n};\n\nconst validateThemeOrigin = (origin: string) => {\n\tconst allowedOrigins = getMetaTagValue(\"sap-allowedThemeOrigins\");\n\n\treturn allowedOrigins && allowedOrigins.split(\",\").some(allowedOrigin => {\n\t\treturn allowedOrigin === \"*\" || origin === allowedOrigin.trim();\n\t});\n};\n\nconst buildCorrectUrl = (oldUrl: string, newOrigin: string) => {\n\tconst oldUrlPath = new URL(oldUrl).pathname;\n\n\treturn new URL(oldUrlPath, newOrigin).toString();\n};\n\nconst validateThemeRoot = (themeRoot: string) => {\n\tlet resultUrl;\n\n\ttry {\n\t\tif (themeRoot.startsWith(\".\") || themeRoot.startsWith(\"/\")) {\n\t\t\t// Handle relative url\n\t\t\t// new URL(\"/newExmPath\", \"http://example.com/exmPath\") => http://example.com/newExmPath\n\t\t\t// new URL(\"./newExmPath\", \"http://example.com/exmPath\") => http://example.com/exmPath/newExmPath\n\t\t\t// new URL(\"../newExmPath\", \"http://example.com/exmPath\") => http://example.com/newExmPath\n\t\t\tresultUrl = new URL(themeRoot, getLocationHref()).toString();\n\t\t} else {\n\t\t\tconst themeRootURL = new URL(themeRoot);\n\t\t\tconst origin = themeRootURL.origin;\n\n\t\t\tif (origin && validateThemeOrigin(origin)) {\n\t\t\t\t// If origin is allowed, use it\n\t\t\t\tresultUrl = themeRootURL.toString();\n\t\t\t} else {\n\t\t\t\t// If origin is not allow and the URL is not relative, we have to replace the origin\n\t\t\t\t// with current location\n\t\t\t\tresultUrl = buildCorrectUrl(themeRootURL.toString(), getLocationHref());\n\t\t\t}\n\t\t}\n\n\t\tif (!resultUrl.endsWith(\"/\")) {\n\t\t\tresultUrl = `${resultUrl}/`;\n\t\t}\n\n\t\treturn `${resultUrl}UI5/`;\n\t} catch (e) {\n\t\t// Catch if URL is not correct\n\t}\n};\n\nexport default validateThemeRoot;\n"]}
1
+ {"version":3,"file":"validateThemeRoot.js","sourceRoot":"","sources":["../src/validateThemeRoot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,eAAe,GAAG,CAAC,WAAmB,EAAE,EAAE;IAC/C,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,cAAc,WAAW,IAAI,CAAC,EACpE,cAAc,GAAG,OAAO,IAAI,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;IAE7D,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,CAAC,MAAc,EAAE,EAAE;IAC9C,MAAM,cAAc,GAAG,eAAe,CAAC,2BAA2B,CAAC,IAAI,eAAe,CAAC,yBAAyB,CAAC,CAAC,CAAC,mCAAmC;IAEtJ,8CAA8C;IAC9C,IAAI,CAAC,cAAc,EAAE,CAAC;QACrB,OAAO,KAAK,CAAC;IACd,CAAC;IAED,OAAO,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE;QACrD,OAAO,aAAa,KAAK,GAAG,IAAI,MAAM,KAAK,aAAa,CAAC,IAAI,EAAE,CAAC;IACjE,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,MAAc,EAAE,SAAiB,EAAE,EAAE;IAC7D,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC;IAE5C,OAAO,IAAI,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,SAAiB,EAAE,EAAE;IAC/C,IAAI,SAAS,CAAC;IAEd,IAAI,CAAC;QACJ,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5D,sBAAsB;YACtB,wFAAwF;YACxF,iGAAiG;YACjG,0FAA0F;YAC1F,SAAS,GAAG,IAAI,GAAG,CAAC,SAAS,EAAE,eAAe,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC9D,CAAC;aAAM,CAAC;YACP,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC;YACxC,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC;YAEnC,IAAI,MAAM,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC3C,+BAA+B;gBAC/B,SAAS,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC;YACrC,CAAC;iBAAM,CAAC;gBACP,oFAAoF;gBACpF,wBAAwB;gBACxB,SAAS,GAAG,eAAe,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,eAAe,EAAE,CAAC,CAAC;YACzE,CAAC;QACF,CAAC;QAED,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;YAC9B,SAAS,GAAG,GAAG,SAAS,GAAG,CAAC;QAC7B,CAAC;QAED,OAAO,GAAG,SAAS,MAAM,CAAC;IAC3B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACZ,8BAA8B;IAC/B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import { getLocationHref } from \"./Location.js\";\n\nconst getMetaTagValue = (metaTagName: string) => {\n\tconst metaTag = document.querySelector(`META[name=\"${metaTagName}\"]`),\n\t\tmetaTagContent = metaTag && metaTag.getAttribute(\"content\");\n\n\treturn metaTagContent;\n};\n\nconst validateThemeOrigin = (origin: string) => {\n\tconst allowedOrigins = getMetaTagValue(\"sap-allowed-theme-origins\") ?? getMetaTagValue(\"sap-allowedThemeOrigins\"); // Prioritize the new meta tag name\n\n\t// If no allowed origins are specified, block.\n\tif (!allowedOrigins) {\n\t\treturn false;\n\t}\n\n\treturn allowedOrigins.split(\",\").some(allowedOrigin => {\n\t\treturn allowedOrigin === \"*\" || origin === allowedOrigin.trim();\n\t});\n};\n\nconst buildCorrectUrl = (oldUrl: string, newOrigin: string) => {\n\tconst oldUrlPath = new URL(oldUrl).pathname;\n\n\treturn new URL(oldUrlPath, newOrigin).toString();\n};\n\nconst validateThemeRoot = (themeRoot: string) => {\n\tlet resultUrl;\n\n\ttry {\n\t\tif (themeRoot.startsWith(\".\") || themeRoot.startsWith(\"/\")) {\n\t\t\t// Handle relative url\n\t\t\t// new URL(\"/newExmPath\", \"http://example.com/exmPath\") => http://example.com/newExmPath\n\t\t\t// new URL(\"./newExmPath\", \"http://example.com/exmPath\") => http://example.com/exmPath/newExmPath\n\t\t\t// new URL(\"../newExmPath\", \"http://example.com/exmPath\") => http://example.com/newExmPath\n\t\t\tresultUrl = new URL(themeRoot, getLocationHref()).toString();\n\t\t} else {\n\t\t\tconst themeRootURL = new URL(themeRoot);\n\t\t\tconst origin = themeRootURL.origin;\n\n\t\t\tif (origin && validateThemeOrigin(origin)) {\n\t\t\t\t// If origin is allowed, use it\n\t\t\t\tresultUrl = themeRootURL.toString();\n\t\t\t} else {\n\t\t\t\t// If origin is not allow and the URL is not relative, we have to replace the origin\n\t\t\t\t// with current location\n\t\t\t\tresultUrl = buildCorrectUrl(themeRootURL.toString(), getLocationHref());\n\t\t\t}\n\t\t}\n\n\t\tif (!resultUrl.endsWith(\"/\")) {\n\t\t\tresultUrl = `${resultUrl}/`;\n\t\t}\n\n\t\treturn `${resultUrl}UI5/`;\n\t} catch (e) {\n\t\t// Catch if URL is not correct\n\t}\n};\n\nexport default validateThemeRoot;\n"]}
@@ -3,7 +3,7 @@
3
3
  "tags": [
4
4
  {
5
5
  "name": "ui5element",
6
- "description": "Base class for all UI5 Web Components\n\n\n---\n\n\n\n\n### **Methods:**\n - **onBeforeRendering(): _void_** - Called every time before the component renders.\n- **onAfterRendering(): _void_** - Called every time after the component renders.\n- **onEnterDOM(): _void_** - Called on connectedCallback - added to the DOM.\n- **onExitDOM(): _void_** - Called on disconnectedCallback - removed from the DOM.\n- **attachInvalidate(callback: _(param: InvalidationInfo) => void_): _void_** - Attach a callback that will be executed whenever the component is invalidated\n- **detachInvalidate(callback: _(param: InvalidationInfo) => void_): _void_** - Detach the callback that is executed whenever the component is invalidated\n- **onInvalidation(changeInfo: _ChangeInfo_): _void_** - A callback that is executed each time an already rendered component is invalidated (scheduled for re-rendering)\n- **getDomRef(): _HTMLElement | undefined_** - Returns the DOM Element inside the Shadow Root that corresponds to the opening tag in the UI5 Web Component's template\n*Note:* For logical (abstract) elements (items, options, etc...), returns the part of the parent's DOM that represents this option\nUse this method instead of \"this.shadowRoot\" to read the Shadow DOM, if ever necessary\n- **getFocusDomRef(): _HTMLElement | undefined_** - Returns the DOM Element marked with \"data-sap-focus-ref\" inside the template.\nThis is the element that will receive the focus by default.\n- **getFocusDomRefAsync(): _Promise<HTMLElement | undefined>_** - Waits for dom ref and then returns the DOM Element marked with \"data-sap-focus-ref\" inside the template.\nThis is the element that will receive the focus by default.\n- **focus(focusOptions: _FocusOptions_): _Promise<void>_** - Set the focus to the element, returned by \"getFocusDomRef()\" (marked by \"data-sap-focus-ref\")\n- **fireDecoratorEvent(name: _string_, data: _T_): _boolean_** - Fires a custom event, configured via the \"event\" decorator.\n- **getSlottedNodes(): _Array<T>_** - Returns the actual children, associated with a slot.\nUseful when there are transitive slots in nested component scenarios and you don't want to get a list of the slots, but rather of their content.\n- **attachComponentStateFinalized(callback: _() => void_): _void_** - Attach a callback that will be executed whenever the component's state is finalized\n- **detachComponentStateFinalized(callback: _() => void_): _void_** - Detach the callback that is executed whenever the component's state is finalized\n- **getUniqueDependencies(): _Array<typeof UI5Element>_** - Returns a list of the unique dependencies for this UI5 Web Component\n- **define(): _typeof UI5Element_** - Registers a UI5 Web Component in the browser window object\n- **getMetadata(): _UI5ElementMetadata_** - Returns an instance of UI5ElementMetadata.js representing this UI5 Web Component's full metadata (its and its parents')\nNote: not to be confused with the \"get metadata()\" method, which returns an object for this class's metadata only",
6
+ "description": "Base class for all UI5 Web Components\n\n\n---\n\n\n\n\n### **Methods:**\n - **onBeforeRendering(): _void_** - Called every time before the component renders.\n- **onAfterRendering(): _void_** - Called every time after the component renders.\n- **onEnterDOM(): _void_** - Called on connectedCallback - added to the DOM.\n- **onExitDOM(): _void_** - Called on disconnectedCallback - removed from the DOM.\n- **attachInvalidate(callback: _(param: InvalidationInfo) => void_): _void_** - Attach a callback that will be executed whenever the component is invalidated\n- **detachInvalidate(callback: _(param: InvalidationInfo) => void_): _void_** - Detach the callback that is executed whenever the component is invalidated\n- **onInvalidation(changeInfo: _ChangeInfo_): _void_** - A callback that is executed each time an already rendered component is invalidated (scheduled for re-rendering)\n- **getDomRef(): _HTMLElement | undefined_** - Returns the DOM Element inside the Shadow Root that corresponds to the opening tag in the UI5 Web Component's template\n*Note:* For logical (abstract) elements (items, options, etc...), returns the part of the parent's DOM that represents this option\nUse this method instead of \"this.shadowRoot\" to read the Shadow DOM, if ever necessary\n- **getFocusDomRef(): _HTMLElement | undefined_** - Returns the DOM Element marked with \"data-sap-focus-ref\" inside the template.\nThis is the element that will receive the focus by default.\n- **getFocusDomRefAsync(): _Promise<HTMLElement | undefined>_** - Waits for dom ref and then returns the DOM Element marked with \"data-sap-focus-ref\" inside the template.\nThis is the element that will receive the focus by default.\n- **focus(focusOptions: _FocusOptions_): _Promise<void>_** - Set the focus to the element, returned by \"getFocusDomRef()\" (marked by \"data-sap-focus-ref\")\n- **fireDecoratorEvent(name: _N_, data: _this[\"eventDetails\"][N] | undefined_): _boolean_** - Fires a custom event, configured via the \"event\" decorator.\n- **getSlottedNodes(): _Array<T>_** - Returns the actual children, associated with a slot.\nUseful when there are transitive slots in nested component scenarios and you don't want to get a list of the slots, but rather of their content.\n- **attachComponentStateFinalized(callback: _() => void_): _void_** - Attach a callback that will be executed whenever the component's state is finalized\n- **detachComponentStateFinalized(callback: _() => void_): _void_** - Detach the callback that is executed whenever the component's state is finalized\n- **getUniqueDependencies(): _Array<typeof UI5Element>_** - Returns a list of the unique dependencies for this UI5 Web Component\n- **define(): _typeof UI5Element_** - Registers a UI5 Web Component in the browser window object\n- **getMetadata(): _UI5ElementMetadata_** - Returns an instance of UI5ElementMetadata.js representing this UI5 Web Component's full metadata (its and its parents')\nNote: not to be confused with the \"get metadata()\" method, which returns an object for this class's metadata only",
7
7
  "attributes": [
8
8
  {
9
9
  "name": "effective-dir",
@@ -3,6 +3,7 @@ const path = require("path");
3
3
 
4
4
  const assetParametersScript = resolve.sync("@ui5/webcomponents-base/lib/generate-asset-parameters/index.js");
5
5
  const stylesScript = resolve.sync("@ui5/webcomponents-base/lib/generate-styles/index.js");
6
+ const fontFaceScript = resolve.sync("@ui5/webcomponents-base/lib/css-processors/css-processor-font-face.mjs");
6
7
  const versionScript = resolve.sync("@ui5/webcomponents-base/lib/generate-version-info/index.js");
7
8
  const copyUsedModules = resolve.sync("@ui5/webcomponents-tools/lib/copy-list/index.js");
8
9
  const amdToES6 = resolve.sync("@ui5/webcomponents-tools/lib/amd-to-es6/index.js");
@@ -13,58 +14,88 @@ const LIB = path.join(__dirname, `../tools/lib/`);
13
14
  const viteConfig = `-c "${require.resolve("@ui5/webcomponents-tools/components-package/vite.config.js")}"`;
14
15
 
15
16
  const scripts = {
16
- clean: "rimraf src/generated && rimraf dist && rimraf .port",
17
- lint: `eslint .`,
18
- generate: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates",
19
- prepare: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates typescript integrate.no-remaining-require",
17
+ __ui5envs: {
18
+ UI5_TS: "true",
19
+ UI5_BASE: true,
20
+ UI5_CEM_MODE: "dev",
21
+ },
22
+ clean: {
23
+ default: "ui5nps clean.generated clean.dist",
24
+ "generated": `ui5nps-script "${LIB}/rimraf/rimraf.js src/generated`,
25
+ "dist": `ui5nps-script "${LIB}/rimraf/rimraf.js dist`,
26
+ },
27
+ lint: `ui5nps-script "${LIB}/eslint/eslint.js"`,
28
+ generate: "ui5nps clean build.i18n integrate copy generateAssetParameters generateVersionInfo generateStyles generateFontFace build.jsonImports",
29
+ prepare: "ui5nps clean build.i18n integrate copy generateAssetParameters generateVersionInfo generateStyles generateFontFace typescript integrate.no-remaining-require build.jsonImports",
20
30
  typescript: "tsc -b",
21
31
  integrate: {
22
- default: "nps integrate.copy-used-modules integrate.amd-to-es6 integrate.third-party",
23
- "copy-used-modules": `node "${copyUsedModules}" ./used-modules.txt dist/`,
24
- "amd-to-es6": `node "${amdToES6}" dist/`,
25
- "no-remaining-require": `node "${noRequire}" dist/`,
32
+ default: "ui5nps integrate.copy-used-modules integrate.amd-to-es6 integrate.third-party",
33
+ "copy-used-modules": `ui5nps-script "${copyUsedModules}" ./used-modules.txt dist/`,
34
+ "amd-to-es6": `ui5nps-script "${amdToES6}" dist/`,
35
+ "no-remaining-require": `ui5nps-script "${noRequire}" dist/`,
26
36
  "third-party": {
27
- default: "nps integrate.third-party.copy integrate.third-party.fix",
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/",
37
+ default: "ui5nps integrate.third-party.copy integrate.third-party.fix",
38
+ copy: `ui5nps-script "${LIB}copy-and-watch/index.js" ../../node_modules/@openui5/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js dist/sap/ui/thirdparty/`,
29
39
  fix: "replace-in-file 240 xA0 dist/sap/ui/thirdparty/caja-html-sanitizer.js"
30
40
  },
31
41
  },
32
42
  build: {
33
- default: `nps prepare`,
34
- bundle: `vite build ${viteConfig}`,
43
+ default: `ui5nps prepare`,
44
+ bundle: `ui5nps-script "${LIB}/vite-bundler/vite-bundler.mjs" ${viteConfig}`,
45
+ i18n: {
46
+ default: "ui5nps build.i18n.defaultsjs build.i18n.json",
47
+ defaultsjs: `ui5nps-script "${LIB}/i18n/defaults.js" src/i18n src/generated/i18n`,
48
+ json: `ui5nps-script "${LIB}/i18n/toJSON.js" src/i18n dist/generated/assets/i18n`,
49
+ },
50
+ jsonImports: {
51
+ default: "ui5nps build.jsonImports.i18n",
52
+ i18n: `ui5nps-script "${LIB}/generate-json-imports/i18n.js" dist/generated/assets/i18n src/generated/json-imports`,
53
+ },
35
54
  },
36
55
  copy: {
37
- default: "nps copy.src",
38
- src: `copy-and-watch "src/**/*.{js,css,d.ts}" dist/`,
56
+ default: "ui5nps copy.src",
57
+ src: `ui5nps-script "${LIB}copy-and-watch/index.js" "src/**/*.{js,css,d.ts}" dist/`,
58
+ srcWithWatch: `ui5nps-script "${LIB}copy-and-watch/index.js" "src/**/*.{js,css,d.ts}" dist/ --watch --skip-initial-copy`,
39
59
  },
40
- generateAssetParameters: `node "${assetParametersScript}"`,
41
- generateVersionInfo: `node "${versionScript}"`,
42
- generateStyles: `node "${stylesScript}"`,
43
- generateTemplates: ``,
44
- generateTestTemplates: `mkdirp test/test-elements/generated/templates && cross-env UI5_BASE=true UI5_TS=true node "${LIB}/hbs2ui5/index.js" -d test/test-elements -o test/test-elements/generated/templates`,
60
+ generateAssetParameters: `ui5nps-script "${assetParametersScript}"`,
61
+ generateVersionInfo: `ui5nps-script "${versionScript}"`,
62
+ generateStyles: `ui5nps-script "${stylesScript}"`,
63
+ generateFontFace: `ui5nps-script "${fontFaceScript}"`,
64
+ generateTestTemplates: `node "${LIB}/hbs2ui5/index.js" -d test/test-elements -o test/test-elements/generated/templates`,
45
65
  generateProd: {
46
- "default": "nps generateProd.remove-dev-mode generateProd.copy-prod",
47
- "remove-dev-mode": `node "${LIB}/remove-dev-mode/remove-dev-mode.mjs"`,
48
- "copy-prod": `copy-and-watch "dist/sap/**/*" dist/prod/sap/`,
49
- },
66
+ "default": "ui5nps generateProd.remove-dev-mode generateProd.copy-prod",
67
+ "remove-dev-mode": `ui5nps-script "${LIB}/remove-dev-mode/remove-dev-mode.mjs"`,
68
+ "copy-prod": {
69
+ default: "ui5nps-p generateProd.copy-prod.ui5 generateProd.copy-prod.preact generateProd.copy-prod.assets",
70
+ "ui5": `ui5nps-script "${LIB}copy-and-watch/index.js" "dist/sap/**/*" dist/prod/sap/`,
71
+ "preact": `ui5nps-script "${LIB}copy-and-watch/index.js" "dist/thirdparty/preact/**/*.js" dist/prod/thirdparty/preact/`,
72
+ "assets": `ui5nps-script "${LIB}copy-and-watch/index.js" "dist/generated/assets/**/*.json" dist/prod/generated/assets/`,
73
+ }
74
+ },
50
75
  generateAPI: {
51
- default: "nps generateAPI.generateCEM generateAPI.validateCEM",
52
- generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs" --dev`,
53
- validateCEM: `node "${LIB}/cem/validate.js" --dev`,
76
+ default: "ui5nps generateAPI.generateCEM generateAPI.validateCEM",
77
+ generateCEM: `ui5nps-script "${LIB}/cem/cem.js" analyze --config "${LIB}cem/custom-elements-manifest.config.mjs"`,
78
+ validateCEM: `ui5nps-script "${LIB}/cem/validate.js"`,
54
79
  },
55
80
  watch: {
56
- default: 'concurrently "nps watch.src" "nps watch.styles"',
57
- withBundle: 'concurrently "nps watch.src" "nps watch.bundle" "nps watch.styles"',
58
- src: 'nps "copy.src --watch --skip-initial-copy"',
59
- bundle: `node ${LIB}/dev-server/dev-server.mjs ${viteConfig}`,
60
- styles: 'chokidar "src/css/*.css" -c "nps generateStyles"'
81
+ default: 'ui5nps-p watch.src watch.styles', // concurently
82
+ withBundle: 'ui5nps-p watch.src watch.bundle watch.styles', // concurently
83
+ src: 'ui5nps copy.srcWithWatch',
84
+ bundle: `ui5nps-script ${LIB}/dev-server/dev-server.mjs ${viteConfig}`,
85
+ styles: `ui5nps-script "${LIB}/chokidar/chokidar.js" "src/css/*.css" "ui5nps generateStyles"`
61
86
  },
62
87
  test: {
63
- default: 'concurrently "nps test.ssr" "nps test.ssr2" "nps test.test-cy-ci"',
88
+ default: 'ui5nps-p test.ssr test.ssr2 test.test-cy-ci', // concurently
64
89
  ssr: `mocha test/ssr`,
65
90
  ssr2: "node -e \"import('./dist/Device.js')\"",
66
- "test-cy-ci": `nps generate && nps generateTestTemplates && cross-env UI5_BASE=true yarn cypress run --component --browser chrome`,
67
- "test-cy-open": `nps generate && nps generateTestTemplates && cross-env UI5_BASE=true yarn cypress open --component --browser chrome`,
91
+ "test-cy-ci": {
92
+ default: "ui5nps generateTestTemplates test.test-cy-ci.cypress",
93
+ cypress: ` yarn cypress run --component --browser chrome`
94
+ },
95
+ "test-cy-open": {
96
+ default: "ui5nps generateTestTemplates test.test-cy-open.cypress",
97
+ cypress: ` yarn cypress open --component --browser chrome`
98
+ }
68
99
  },
69
100
  };
70
101
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-base",
3
- "version": "0.0.0-9261ac932",
3
+ "version": "0.0.0-95afb1087",
4
4
  "description": "UI5 Web Components: webcomponents.base",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
8
- "module": "index.js",
8
+ "module": "./dist/index.js",
9
9
  "keywords": [
10
10
  "openui5",
11
11
  "sapui5",
@@ -13,17 +13,21 @@
13
13
  ],
14
14
  "repository": {
15
15
  "type": "git",
16
- "url": "https://github.com/SAP/ui5-webcomponents.git",
16
+ "url": "https://github.com/UI5/webcomponents.git",
17
17
  "directory": "packages/base"
18
18
  },
19
- "types": "./dist",
20
19
  "exports": {
20
+ "./jsx-runtime": "./dist/jsx-runtime.js",
21
+ "./jsx-dev-runtime": "./dist/jsx-dev-runtime.js",
21
22
  "./dist/ssr-dom.js": {
22
23
  "browser": "./dist/ssr-dom.js",
23
24
  "node": "./dist/ssr-dom-shim.js",
24
25
  "default": "./dist/ssr-dom.js"
25
26
  },
26
- ".": "./index.js",
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "default": "./dist/index.js"
30
+ },
27
31
  "./dist/*": {
28
32
  "production": "./dist/prod/*",
29
33
  "development": "./dist/*",
@@ -31,19 +35,24 @@
31
35
  },
32
36
  "./package.json": "./package.json",
33
37
  "./bundle.esm.js": "./bundle.esm.js",
34
- "./*": "./dist/*"
38
+ "./*": {
39
+ "production": "./dist/prod/*",
40
+ "development": "./dist/*",
41
+ "default": "./dist/*"
42
+ }
35
43
  },
44
+ "types": "./dist",
36
45
  "scripts": {
37
- "clean": "nps clean",
38
- "lint": "nps lint",
39
- "start": "nps start",
40
- "build": "nps build",
41
- "generate": "nps generate",
42
- "generateAPI": "nps generateAPI",
43
- "generateProd": "nps generateProd",
44
- "bundle": "nps build.bundle",
45
- "test": "nps test",
46
- "test:cypress:open": "nps test.test-cy-open",
46
+ "clean": "wc-dev clean",
47
+ "lint": "wc-dev lint",
48
+ "start": "wc-dev start",
49
+ "build": "wc-dev build",
50
+ "generate": "wc-dev generate",
51
+ "generateAPI": "wc-dev generateAPI",
52
+ "generateProd": "wc-dev generateProd",
53
+ "bundle": "wc-dev build.bundle",
54
+ "test": "wc-dev test",
55
+ "test:cypress:open": "wc-dev test.test-cy-open",
47
56
  "prepublishOnly": "tsc -b"
48
57
  },
49
58
  "dependencies": {
@@ -51,16 +60,20 @@
51
60
  "lit-html": "^2.0.1"
52
61
  },
53
62
  "devDependencies": {
63
+ "@custom-elements-manifest/analyzer": "^0.10.10",
54
64
  "@openui5/sap.ui.core": "1.120.17",
55
- "@ui5/webcomponents-tools": "0.0.0-9261ac932",
56
- "chromedriver": "^128.0.3",
65
+ "@sap-theming/theming-base-content": "11.29.3",
66
+ "@ui5/cypress-internal": "0.1.0",
67
+ "@ui5/webcomponents-tools": "0.0.0-95afb1087",
57
68
  "clean-css": "^5.2.2",
58
- "copy-and-watch": "^0.1.5",
59
- "cross-env": "^7.0.3",
60
- "eslint": "^7.22.0",
61
- "mkdirp": "^1.0.4",
69
+ "cypress": "^15.3.0",
70
+ "mocha": "^11.7.2",
62
71
  "replace-in-file": "^6.3.5",
63
72
  "resolve": "^1.20.0",
64
- "touch": "^3.1.0"
65
- }
66
- }
73
+ "touch": "^3.1.0",
74
+ "typescript": "^5.6.2",
75
+ "vite": "5.4.21"
76
+ },
77
+ "customElements": "dist/custom-elements.json",
78
+ "gitHead": "1b7f451f1e43ae13626dfc69b3c2bfa8b0d32219"
79
+ }
@@ -0,0 +1,17 @@
1
+ :host {
2
+ /* copy list item design */
3
+ justify-content: center;
4
+ align-items: center;
5
+ display: flex;
6
+ color: var(--sapList_TextColor);
7
+ background-color: var(--sapList_Background);
8
+ font-family: var(--sapFontFamily);
9
+ height: var(--sapElement_LineHeight);
10
+ border-bottom: var(--sapList_BorderWidth) solid var(--sapList_BorderColor);
11
+ /* drag and drop related */
12
+ opacity: 0.8;
13
+ position: absolute;
14
+ padding: 0 1rem;
15
+ top: -1000px;
16
+ left: -1000px;
17
+ }
@@ -0,0 +1,5 @@
1
+ [data-sap-ui-popup][popover] {
2
+ border: none;
3
+ overflow: visible;
4
+ margin: 0;
5
+ }
@@ -0,0 +1,3 @@
1
+ html:not(.ui5-content-native-scrollbars) {
2
+ scrollbar-color: var(--sapScrollBar_FaceColor) var(--sapScrollBar_TrackColor);
3
+ }
@@ -0,0 +1,5 @@
1
+ #This is the resource bundle for the UI5 Web Components
2
+ #__ldi.translation.uuid=96bea51a-d5e3-46f0-b1d1-514d97be02ec
3
+
4
+ #XTXT: Text for the Multiple Drag & Drop action
5
+ DRAG_DROP_MULTIPLE_TEXT={0} items
@@ -0,0 +1,2 @@
1
+
2
+ DRAG_DROP_MULTIPLE_TEXT={0} items
@@ -0,0 +1,2 @@
1
+
2
+ DRAG_DROP_MULTIPLE_TEXT=[[[{0} įţēɱş]]]
@@ -0,0 +1,2 @@
1
+
2
+ DRAG_DROP_MULTIPLE_TEXT=‌​​‍​‍‍​‍‍‍‌‍‌‌‍‍​‍‌‍‍‌‌​‌​‌‍‌​​‍​‌​​​​​​​{0}‌‌‌ items
@@ -0,0 +1,2 @@
1
+
2
+ DRAG_DROP_MULTIPLE_TEXT=4r96ZyyeFuBw3vy23me9QQ_{0} items
@@ -0,0 +1 @@
1
+ import{options as r,Fragment as e}from"./preact.module.js";export{Fragment}from"./preact.module.js";var t=/["&<]/;function n(r){if(0===r.length||!1===t.test(r))return r;for(var e=0,n=0,o="",f="";n<r.length;n++){switch(r.charCodeAt(n)){case 34:f="&quot;";break;case 38:f="&amp;";break;case 60:f="&lt;";break;default:continue}n!==e&&(o+=r.slice(e,n)),o+=f,e=n+1}return n!==e&&(o+=r.slice(e,n)),o}var o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=0,i=Array.isArray;function u(e,t,n,o,i,u){t||(t={});var a,c,l=t;"ref"in t&&(a=t.ref,delete t.ref);var p={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--f,__i:-1,__u:0,__source:i,__self:u};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===l[c]&&(l[c]=a[c]);return r.vnode&&r.vnode(p),p}function a(r){var t=u(e,{tpl:r,exprs:[].slice.call(arguments,1)});return t.key=t.__v,t}var c={},l=/[A-Z]/g;function p(e,t){if(r.attr){var f=r.attr(e,t);if("string"==typeof f)return f}if("ref"===e||"key"===e)return"";if("style"===e&&"object"==typeof t){var i="";for(var u in t){var a=t[u];if(null!=a&&""!==a){var p="-"==u[0]?u:c[u]||(c[u]=u.replace(l,"-$&").toLowerCase()),s=";";"number"!=typeof a||p.startsWith("--")||o.test(p)||(s="px;"),i=i+p+":"+a+s}}return e+'="'+i+'"'}return null==t||!1===t||"function"==typeof t||"object"==typeof t?"":!0===t?e:e+'="'+n(t)+'"'}function s(r){if(null==r||"boolean"==typeof r||"function"==typeof r)return null;if("object"==typeof r){if(void 0===r.constructor)return r;if(i(r)){for(var e=0;e<r.length;e++)r[e]=s(r[e]);return r}}return n(""+r)}export{u as jsx,p as jsxAttr,u as jsxDEV,s as jsxEscape,a as jsxTemplate,u as jsxs};
@@ -0,0 +1 @@
1
+ var n,l,t,u,i,o,r,e,f,c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var t in l)n[t]=l[t];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function g(l,t,u){var i,o,r,e={};for(r in t)"key"==r?i=t[r]:"ref"==r?o=t[r]:e[r]=t[r];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):u),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===e[r]&&(e[r]=l.defaultProps[r]);return m(l,e,i,o,null)}function m(n,u,i,o,r){var e={type:n,props:u,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++t:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var t;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e)return t.__e;return"function"==typeof n.type?C(n):null}function S(n){var l,t;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e){n.__e=n.__c.base=t.__e;break}return S(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!P.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(P)}function P(){var n,t,u,o,r,f,c,s;for(i.sort(e);n=i.shift();)n.__d&&(t=i.length,o=void 0,f=(r=(u=n).__v).__e,c=[],s=[],u.__P&&((o=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),F(u.__P,o,r,u.__n,u.__P.namespaceURI,32&r.__u?[f]:null,c,null==f?C(r):f,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,z(c,o,s),o.__e!=f&&S(o)),i.length>t&&i.sort(e));P.__r=0}function $(n,l,t,u,i,o,r,e,f,c,s){var a,h,y,d,w,_,g=u&&u.__k||v,m=l.length;for(f=I(t,l,g,f),a=0;a<m;a++)null!=(y=t.__k[a])&&(h=-1===y.__i?p:g[y.__i]||p,y.__i=a,_=F(n,y,h,i,o,r,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),4&y.__u||h.__k===y.__k?f=H(y,f,n):"function"==typeof y.type&&void 0!==_?f=_:d&&(f=d.nextSibling),y.__u&=-7);return t.__e=w,f}function I(n,l,t,u){var i,o,r,e,f,c=l.length,s=t.length,a=s,h=0;for(n.__k=[],i=0;i<c;i++)null!=(o=l[i])&&"boolean"!=typeof o&&"function"!=typeof o?(e=i+h,(o=n.__k[i]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,r=null,-1!==(f=o.__i=O(o,t,e,a))&&(a--,(r=t[f])&&(r.__u|=2)),null==r||null===r.__v?(-1==f&&h--,"function"!=typeof o.type&&(o.__u|=4)):f!==e&&(f==e-1?h--:f==e+1?h++:(f>e?h--:h++,o.__u|=4))):o=n.__k[i]=null;if(a)for(i=0;i<s;i++)null!=(r=t[i])&&0==(2&r.__u)&&(r.__e==u&&(u=C(r)),q(r,r));return u}function H(n,l,t){var u,i;if("function"==typeof n.type){for(u=n.__k,i=0;u&&i<u.length;i++)u[i]&&(u[i].__=n,l=H(u[i],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(l=C(n)),t.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function L(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){L(n,l)}):l.push(n)),l}function O(n,l,t,u){var i=n.key,o=n.type,r=t-1,e=t+1,f=l[t];if(null===f||f&&i==f.key&&o===f.type&&0==(2&f.__u))return t;if(("function"!=typeof o||o===k||i)&&u>(null!=f&&0==(2&f.__u)?1:0))for(;r>=0||e<l.length;){if(r>=0){if((f=l[r])&&0==(2&f.__u)&&i==f.key&&o===f.type)return r;r--}if(e<l.length){if((f=l[e])&&0==(2&f.__u)&&i==f.key&&o===f.type)return e;e++}}return-1}function T(n,l,t){"-"===l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||y.test(l)?t:t+"px"}function j(n,l,t,u,i){var o,r;n:if("style"===l)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof u&&(n.style.cssText=u=""),u)for(l in u)t&&l in t||T(n.style,l,"");if(t)for(l in t)u&&t[l]===u[l]||T(n.style,l,t[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,o?a:s,o)):n.removeEventListener(l,o?a:s,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{r=n.tagName&&n.tagName.includes("-"),t!==u&&(n[l]=null!=t||r?t:"");break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function A(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function F(n,t,u,i,o,r,e,f,c,s){var a,h,p,v,y,g,m,b,C,S,M,P,I,H,L,O,T,j=t.type;if(void 0!==t.constructor)return null;128&u.__u&&(c=!!(32&u.__u),r=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof j)try{if(b=t.props,C="prototype"in j&&j.prototype.render,S=(a=j.contextType)&&i[a.__c],M=a?S?S.props.value:a.__:i,u.__c?m=(h=t.__c=u.__c).__=h.__E:(C?t.__c=h=new j(b,M):(t.__c=h=new x(b,M),h.constructor=j,h.render=B),S&&S.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=t,p)C&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(C&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||t.__v===u.__v)){for(t.__v!==u.__v&&(h.props=b,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t)}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,g)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,I=l.__r,H=0,C){for(h.state=h.__s,h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),L=0;L<h._sb.length;L++)h.__h.push(h._sb[L]);h._sb=[]}else do{h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++H<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(v,y)),f=$(n,d(O=null!=a&&a.type===k&&null==a.key?a.props.children:a)?O:[O],t,u,i,o,r,e,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(t.__v=null,c||null!=r)if(n.then){for(t.__u|=c?160:128;f&&8===f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,t.__e=f}else for(T=r.length;T--;)_(r[T]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u)}else null==r&&t.__v===u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=N(u.__e,t,u,i,o,r,e,c,s);return(a=l.diffed)&&a(t),128&t.__u?void 0:f}function z(n,t,u){for(var i=0;i<u.length;i++)V(u[i],u[++i],u[++i]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){l.__e(n,t.__v)}})}function N(t,u,i,o,r,e,f,c,s){var a,h,v,y,w,g,m,b,k=i.props,x=u.props,S=u.type;if("svg"===S?r="http://www.w3.org/2000/svg":"math"===S?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!S&&(S?w.localName===S:3===w.nodeType)){t=w,e[a]=null;break}if(null==t){if(null===S)return document.createTextNode(x);t=document.createElementNS(r,S,x.is&&x),c&&(l.__m&&l.__m(u,e),c=!1),e=null}if(null===S)k===x||c&&t.data===x||(t.data=x);else{if(e=e&&n.call(t.childNodes),k=i.props||p,!c&&null!=e)for(k={},a=0;a<t.attributes.length;a++)k[(w=t.attributes[a]).name]=w.value;for(a in k)if(w=k[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in x)){if("value"==a&&"defaultValue"in x||"checked"==a&&"defaultChecked"in x)continue;j(t,a,null,w,r)}for(a in x)w=x[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?g=w:"checked"==a?m=w:c&&"function"!=typeof w||k[a]===w||((a.startsWith("on")||"ref"===a&&"function"==typeof w)&&(b=o[Object.keys(o)[0]])&&(w=w.bind(b.props.value)),j(t,a,w,k[a],r));if(h)c||v&&(h.__html===v.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(v&&(t.innerHTML=""),$(t,d(y)?y:[y],u,i,o,"foreignObject"===S?"http://www.w3.org/1999/xhtml":r,e,f,e?e[0]:i.__k&&C(i,0),c,s),null!=e)for(a=e.length;a--;)_(e[a]);c||(a="value","progress"===S&&null==g?t.removeAttribute("value"):void 0!==g&&(g!==t[a]||"progress"===S&&!g||"option"===S&&g!==k[a])&&j(t,a,g,k[a],r),a="checked",void 0!==m&&m!==t[a]&&j(t,a,m,k[a],r))}return t}function V(n,t,u){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==t||(n.__u=n(t))}else n.current=t}catch(n){l.__e(n,u)}}function q(n,t,u){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,t)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,t)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&q(i[o],t,u||"function"!=typeof n.type);u||_(n.__e),n.__c=n.__=n.__e=void 0}function B(n,l,t){return this.constructor(n,t)}function D(t,u,i){var o,r,e,f;u===document&&(u=document.documentElement),l.__&&l.__(t,u),r=(o="function"==typeof i)?null:i&&i.__k||u.__k,e=[],f=[],F(u,t=(!o&&i||u).__k=g(k,null,[t]),r||p,p,u.namespaceURI,!o&&i?[i]:r?null:u.firstChild?n.call(u.childNodes):null,e,!o&&i?i:r?r.__e:u.firstChild,o,f),z(e,t,f)}function E(n,l){D(n,l,E)}function G(l,t,u){var i,o,r,e,f=w({},l.props);for(r in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),t)"key"==r?i=t[r]:"ref"==r?o=t[r]:f[r]=void 0===t[r]&&void 0!==e?e[r]:t[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),m(l.type,f,i||l.key,o||l.ref,null)}function J(n,l){var t={__c:l="__cC"+h++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l]=this,this.getChildContext=function(){return u},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&t.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){t.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){t&&t.delete(n),l&&l.call(n)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}n=v.slice,l={__e:function(n,l,t,u){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,u||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},t=0,u=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},t),this.props)),n&&w(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=A(!1),a=A(!0),h=0;export{x as Component,k as Fragment,G as cloneElement,J as createContext,g as createElement,b as createRef,g as h,E as hydrate,u as isValidElement,l as options,D as render,L as toChildArray};
@@ -0,0 +1 @@
1
+ preact version: "10.25.1"
package/tsconfig.json CHANGED
@@ -5,7 +5,6 @@
5
5
  "src/global.d.ts",
6
6
  ],
7
7
  "compilerOptions": {
8
- "types": ["@ui5/webcomponents-tools"],
9
8
  "outDir": "dist",
10
9
  "composite": true,
11
10
  "rootDir": "src",