@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,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";import t from"./animations/scroll.js";import o from"./animations/slideDown.js";import r from"./animations/slideUp.js";import{getAnimationMode as m,setAnimationMode as i}from"./config/AnimationMode.js";import{getCalendarType as a}from"./config/CalendarType.js";import{getFirstDayOfWeek as n,getLegacyDateCalendarCustomizing as p}from"./config/FormatSettings.js";import{setDefaultIconCollection as s,getDefaultIconCollection as f}from"./config/Icons.js";import{RegisteredIconCollection as g}from"./asset-registries/util/IconCollectionsByTheme.js";import l from"./asset-registries/util/getIconCollectionByTheme.js";import{startMultipleDrag as d}from"./DragAndDrop.js";import{getLanguage as u,setLanguage as c,getDefaultLanguage as C,setFetchDefaultLanguage as T,getFetchDefaultLanguage as h}from"./config/Language.js";import{getNoConflict as D,setNoConflict as x}from"./config/NoConflict.js";import{getTheme as L,setTheme as E,getDefaultTheme as y}from"./config/Theme.js";import I from"./decorators/customElement.js";import S from"./decorators/event.js";import v from"./decorators/property.js";import R from"./decorators/slot.js";import F from"./delegate/ItemNavigation.js";import J from"./delegate/ResizeHandler.js";import M from"./delegate/ScrollEnablement.js";import N from"./locale/applyDirection.js";import{attachDirectionChange as U,detachDirectionChange as B}from"./locale/directionChange.js";import b from"./locale/getEffectiveDir.js";import{attachLanguageChange as k,detachLanguageChange as z}from"./locale/languageChange.js";import{URLListValidator as A,sanitizeHTML as O}from"./util/HTMLSanitizer.js";import{registerI18nLoader as P}from"./asset-registries/i18n.js";import{registerLocaleDataLoader as j}from"./asset-registries/LocaleData.js";import{registerThemePropertiesLoader as H}from"./asset-registries/Themes.js";import{registerIconLoader as X}from"./asset-registries/Icons.js";import{attachBoot as w}from"./Boot.js";import{setCustomElementsScopingSuffix as G,getCustomElementsScopingSuffix as V,setCustomElementsScopingRules as W,getCustomElementsScopingRules as q,getEffectiveScopingSuffixForTag as K}from"./CustomElementsScope.js";import{supportsTouch as Q,isSafari as Y,isChrome as Z,isFirefox as _,isPhone as $,isTablet as ee,isDesktop as te,isCombi as oe,isIOS as re,isAndroid as me}from"./Device.js";import ie from"./EventProvider.js";import ae,{getI18nBundle as ne,registerCustomI18nBundleGetter as pe}from"./i18nBundle.js";import se from"./MediaRange.js";import{renderDeferred as fe,renderImmediately as ge,cancelRender as le,renderFinished as de}from"./Render.js";import{addCustomCSS as ue,attachThemeLoaded as ce,detachThemeLoaded as Ce}from"./Theming.js";import e from"./UI5Element.js";export default e;export{d as startMultipleDrag,t as scroll,o as slideDown,r as slideUp,m as getAnimationMode,i as setAnimationMode,a as getCalendarType,n as getFirstDayOfWeek,p as getLegacyDateCalendarCustomizing,s as setDefaultIconCollection,f as getDefaultIconCollection,l as getEffectiveIconCollection,g as RegisteredIconCollection,u as getLanguage,c as setLanguage,C as getDefaultLanguage,T as setFetchDefaultLanguage,h as getFetchDefaultLanguage,D as getNoConflict,x as setNoConflict,L as getTheme,E as setTheme,y as getDefaultTheme,I as customElement,S as event,v as property,R as slot,F as ItemNavigation,J as ResizeHandler,M as ScrollEnablement,N as applyDirection,U as attachDirectionChange,B as detachDirectionChange,b as getEffectiveDir,k as attachLanguageChange,z as detachLanguageChange,A as URLListValidator,O as sanitizeHTML,P as registerI18nLoader,j as registerLocaleDataLoader,H as registerThemePropertiesLoader,X as registerIconLoader,w as attachBoot,G as setCustomElementsScopingSuffix,V as getCustomElementsScopingSuffix,W as setCustomElementsScopingRules,q as getCustomElementsScopingRules,K as getEffectiveScopingSuffixForTag,Q as supportsTouch,Y as isSafari,Z as isChrome,_ as isFirefox,$ as isPhone,ee as isTablet,te as isDesktop,oe as isCombi,re as isIOS,me as isAndroid,ie as EventProvider,ae as I18nBundle,ne as getI18nBundle,pe as registerCustomI18nBundleGetter,se as MediaRange,fe as renderDeferred,ge as renderImmediately,le as cancelRender,de as renderFinished,ue as addCustomCSS,ce as attachThemeLoaded,Ce as detachThemeLoaded,e as UI5Element};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["import type { JSX } from \"./jsx-runtime.d.ts\";\n\n// animations/\nimport scroll from \"./animations/scroll.js\";\nimport slideDown from \"./animations/slideDown.js\";\nimport slideUp from \"./animations/slideUp.js\";\n\n// config/\nimport { getAnimationMode, setAnimationMode } from \"./config/AnimationMode.js\";\nimport { getCalendarType } from \"./config/CalendarType.js\";\nimport { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from \"./config/FormatSettings.js\";\nimport {\n\tsetDefaultIconCollection,\n\tgetDefaultIconCollection,\n} from \"./config/Icons.js\";\nimport { RegisteredIconCollection } from \"./asset-registries/util/IconCollectionsByTheme.js\";\nimport getEffectiveIconCollection from \"./asset-registries/util/getIconCollectionByTheme.js\";\nimport { startMultipleDrag } from \"./DragAndDrop.js\";\nimport {\n\tgetLanguage,\n\tsetLanguage,\n\tgetDefaultLanguage,\n\tsetFetchDefaultLanguage,\n\tgetFetchDefaultLanguage,\n} from \"./config/Language.js\";\nimport { getNoConflict, setNoConflict } from \"./config/NoConflict.js\";\nimport {\n\tgetTheme,\n\tsetTheme,\n\tgetDefaultTheme,\n} from \"./config/Theme.js\";\n\n// decorators/\nimport customElement from \"./decorators/customElement.js\";\nimport event from \"./decorators/event.js\";\nimport property from \"./decorators/property.js\";\nimport slot from \"./decorators/slot.js\";\n\n// delegate/\nimport ItemNavigation from \"./delegate/ItemNavigation.js\";\nimport ResizeHandler from \"./delegate/ResizeHandler.js\";\nimport ScrollEnablement from \"./delegate/ScrollEnablement.js\";\n\n// locale/\nimport applyDirection from \"./locale/applyDirection.js\";\nimport { attachDirectionChange, detachDirectionChange } from \"./locale/directionChange.js\";\nimport getEffectiveDir from \"./locale/getEffectiveDir.js\";\nimport { attachLanguageChange, detachLanguageChange } from \"./locale/languageChange.js\";\n\n// util/\nimport { URLListValidator, sanitizeHTML } from \"./util/HTMLSanitizer.js\";\n\n// Assets.ts\nimport { registerI18nLoader } from \"./asset-registries/i18n.js\";\nimport { registerLocaleDataLoader } from \"./asset-registries/LocaleData.js\";\nimport { registerThemePropertiesLoader } from \"./asset-registries/Themes.js\";\nimport { registerIconLoader } from \"./asset-registries/Icons.js\";\n\n// Boot.ts\nimport { attachBoot } from \"./Boot.js\";\n\n// CustomElementsScope.ts\nimport {\n\tsetCustomElementsScopingSuffix,\n\tgetCustomElementsScopingSuffix,\n\tsetCustomElementsScopingRules,\n\tgetCustomElementsScopingRules,\n\tgetEffectiveScopingSuffixForTag,\n} from \"./CustomElementsScope.js\";\n\n// Device.ts\nimport {\n\tsupportsTouch,\n\tisSafari,\n\tisChrome,\n\tisFirefox,\n\tisPhone,\n\tisTablet,\n\tisDesktop,\n\tisCombi,\n\tisIOS,\n\tisAndroid,\n} from \"./Device.js\";\n\n// EventProvider.ts\nimport EventProvider from \"./EventProvider.js\";\n\n// i18nBundle.ts\nimport I18nBundle, { getI18nBundle, registerCustomI18nBundleGetter } from \"./i18nBundle.js\";\n\n// MediaRange.ts\nimport MediaRange from \"./MediaRange.js\";\n\n// Render.ts\nimport {\n\trenderDeferred,\n\trenderImmediately,\n\tcancelRender,\n\trenderFinished,\n} from \"./Render.js\";\n\n// Theming.ts\nimport { addCustomCSS, attachThemeLoaded, detachThemeLoaded } from \"./Theming.js\";\n\n// UI5Element.ts\nimport UI5Element from \"./UI5Element.js\";\n\nexport default UI5Element;\nexport {\n\t// drag and drop\n\tstartMultipleDrag,\n\n\t// animations/\n\tscroll,\n\tslideDown,\n\tslideUp,\n\n\t// config/\n\tgetAnimationMode,\n\tsetAnimationMode,\n\tgetCalendarType,\n\tgetFirstDayOfWeek,\n\tgetLegacyDateCalendarCustomizing,\n\tsetDefaultIconCollection,\n\tgetDefaultIconCollection,\n\tgetEffectiveIconCollection,\n\tRegisteredIconCollection,\n\tgetLanguage,\n\tsetLanguage,\n\tgetDefaultLanguage,\n\tsetFetchDefaultLanguage,\n\tgetFetchDefaultLanguage,\n\tgetNoConflict,\n\tsetNoConflict,\n\tgetTheme,\n\tsetTheme,\n\tgetDefaultTheme,\n\n\t// decorators/\n\tcustomElement,\n\tevent,\n\tproperty,\n\tslot,\n\n\t// delegate/\n\tItemNavigation,\n\tResizeHandler,\n\tScrollEnablement,\n\n\t// locale/\n\tapplyDirection,\n\tattachDirectionChange,\n\tdetachDirectionChange,\n\tgetEffectiveDir,\n\tattachLanguageChange,\n\tdetachLanguageChange,\n\n\t// util/\n\tURLListValidator,\n\tsanitizeHTML,\n\n\t// Assets.ts\n\tregisterI18nLoader,\n\tregisterLocaleDataLoader,\n\tregisterThemePropertiesLoader,\n\tregisterIconLoader,\n\n\t// Boot.ts\n\tattachBoot,\n\n\t// CustomElementsScope.ts\n\tsetCustomElementsScopingSuffix,\n\tgetCustomElementsScopingSuffix,\n\tsetCustomElementsScopingRules,\n\tgetCustomElementsScopingRules,\n\tgetEffectiveScopingSuffixForTag,\n\n\t// Device.ts\n\tsupportsTouch,\n\tisSafari,\n\tisChrome,\n\tisFirefox,\n\tisPhone,\n\tisTablet,\n\tisDesktop,\n\tisCombi,\n\tisIOS,\n\tisAndroid,\n\n\t// EventProvider.ts\n\tEventProvider,\n\n\t// i18nBundle.ts\n\tI18nBundle,\n\tgetI18nBundle,\n\tregisterCustomI18nBundleGetter,\n\n\t// MediaRange.ts\n\tMediaRange,\n\n\t// Render.ts\n\trenderDeferred,\n\trenderImmediately,\n\tcancelRender,\n\trenderFinished,\n\n\t// Theming.ts\n\taddCustomCSS,\n\tattachThemeLoaded,\n\tdetachThemeLoaded,\n\n\t// UI5Element.ts\n\tUI5Element,\n};\n\ntype TargetedCustomEvent<D, T> = Omit<CustomEvent<D>, \"currentTarget\"> & { currentTarget: T };\n// export type UI5NativeEvent<T extends keyof HTMLElementTagNameMap, N> = Parameters<JSX.IntrinsicElements[T][N]>[0];\nexport type UI5CustomEvent<T extends UI5Element, N extends keyof T[\"eventDetails\"]> = TargetedCustomEvent<T[\"eventDetails\"][N], T>;\nexport type JsxTemplateResult = JSX.Element | void;\nexport type JsxTemplate = () => JsxTemplateResult;\n\nexport type * from \"./types.d.ts\";\nexport type * from \"./jsx-runtime.d.ts\";\n"],
5
+ "mappings": "aAGA,OAAOA,MAAY,yBACnB,OAAOC,MAAe,4BACtB,OAAOC,MAAa,0BAGpB,OAAS,oBAAAC,EAAkB,oBAAAC,MAAwB,4BACnD,OAAS,mBAAAC,MAAuB,2BAChC,OAAS,qBAAAC,EAAmB,oCAAAC,MAAwC,6BACpE,OACC,4BAAAC,EACA,4BAAAC,MACM,oBACP,OAAS,4BAAAC,MAAgC,oDACzC,OAAOC,MAAgC,sDACvC,OAAS,qBAAAC,MAAyB,mBAClC,OACC,eAAAC,EACA,eAAAC,EACA,sBAAAC,EACA,2BAAAC,EACA,2BAAAC,MACM,uBACP,OAAS,iBAAAC,EAAe,iBAAAC,MAAqB,yBAC7C,OACC,YAAAC,EACA,YAAAC,EACA,mBAAAC,MACM,oBAGP,OAAOC,MAAmB,gCAC1B,OAAOC,MAAW,wBAClB,OAAOC,MAAc,2BACrB,OAAOC,MAAU,uBAGjB,OAAOC,MAAoB,+BAC3B,OAAOC,MAAmB,8BAC1B,OAAOC,MAAsB,iCAG7B,OAAOC,MAAoB,6BAC3B,OAAS,yBAAAC,EAAuB,yBAAAC,MAA6B,8BAC7D,OAAOC,MAAqB,8BAC5B,OAAS,wBAAAC,EAAsB,wBAAAC,MAA4B,6BAG3D,OAAS,oBAAAC,EAAkB,gBAAAC,MAAoB,0BAG/C,OAAS,sBAAAC,MAA0B,6BACnC,OAAS,4BAAAC,MAAgC,mCACzC,OAAS,iCAAAC,MAAqC,+BAC9C,OAAS,sBAAAC,MAA0B,8BAGnC,OAAS,cAAAC,MAAkB,YAG3B,OACC,kCAAAC,EACA,kCAAAC,EACA,iCAAAC,EACA,iCAAAC,EACA,mCAAAC,MACM,2BAGP,OACC,iBAAAC,EACA,YAAAC,EACA,YAAAC,EACA,aAAAC,EACA,WAAAC,EACA,YAAAC,GACA,aAAAC,GACA,WAAAC,GACA,SAAAC,GACA,aAAAC,OACM,cAGP,OAAOC,OAAmB,qBAG1B,OAAOC,IAAc,iBAAAC,GAAe,kCAAAC,OAAsC,kBAG1E,OAAOC,OAAgB,kBAGvB,OACC,kBAAAC,GACA,qBAAAC,GACA,gBAAAC,GACA,kBAAAC,OACM,cAGP,OAAS,gBAAAC,GAAc,qBAAAC,GAAmB,qBAAAC,OAAyB,eAGnE,OAAOC,MAAgB,kBAEvB,eAAeA,EACf,OAEC1D,KAAA,kBAGAZ,KAAA,OACAC,KAAA,UACAC,KAAA,QAGAC,KAAA,iBACAC,KAAA,iBACAC,KAAA,gBACAC,KAAA,kBACAC,KAAA,iCACAC,KAAA,yBACAC,KAAA,yBACAE,KAAA,2BACAD,KAAA,yBACAG,KAAA,YACAC,KAAA,YACAC,KAAA,mBACAC,KAAA,wBACAC,KAAA,wBACAC,KAAA,cACAC,KAAA,cACAC,KAAA,SACAC,KAAA,SACAC,KAAA,gBAGAC,KAAA,cACAC,KAAA,MACAC,KAAA,SACAC,KAAA,KAGAC,KAAA,eACAC,KAAA,cACAC,KAAA,iBAGAC,KAAA,eACAC,KAAA,sBACAC,KAAA,sBACAC,KAAA,gBACAC,KAAA,qBACAC,KAAA,qBAGAC,KAAA,iBACAC,KAAA,aAGAC,KAAA,mBACAC,KAAA,yBACAC,KAAA,8BACAC,KAAA,mBAGAC,KAAA,WAGAC,KAAA,+BACAC,KAAA,+BACAC,KAAA,8BACAC,KAAA,8BACAC,KAAA,gCAGAC,KAAA,cACAC,KAAA,SACAC,KAAA,SACAC,KAAA,UACAC,KAAA,QACAC,MAAA,SACAC,MAAA,UACAC,MAAA,QACAC,MAAA,MACAC,MAAA,UAGAC,MAAA,cAGAC,MAAA,WACAC,MAAA,cACAC,MAAA,+BAGAC,MAAA,WAGAC,MAAA,eACAC,MAAA,kBACAC,MAAA,aACAC,MAAA,eAGAC,MAAA,aACAC,MAAA,kBACAC,MAAA,kBAGAC,KAAA",
6
+ "names": ["scroll", "slideDown", "slideUp", "getAnimationMode", "setAnimationMode", "getCalendarType", "getFirstDayOfWeek", "getLegacyDateCalendarCustomizing", "setDefaultIconCollection", "getDefaultIconCollection", "RegisteredIconCollection", "getEffectiveIconCollection", "startMultipleDrag", "getLanguage", "setLanguage", "getDefaultLanguage", "setFetchDefaultLanguage", "getFetchDefaultLanguage", "getNoConflict", "setNoConflict", "getTheme", "setTheme", "getDefaultTheme", "customElement", "event", "property", "slot", "ItemNavigation", "ResizeHandler", "ScrollEnablement", "applyDirection", "attachDirectionChange", "detachDirectionChange", "getEffectiveDir", "attachLanguageChange", "detachLanguageChange", "URLListValidator", "sanitizeHTML", "registerI18nLoader", "registerLocaleDataLoader", "registerThemePropertiesLoader", "registerIconLoader", "attachBoot", "setCustomElementsScopingSuffix", "getCustomElementsScopingSuffix", "setCustomElementsScopingRules", "getCustomElementsScopingRules", "getEffectiveScopingSuffixForTag", "supportsTouch", "isSafari", "isChrome", "isFirefox", "isPhone", "isTablet", "isDesktop", "isCombi", "isIOS", "isAndroid", "EventProvider", "I18nBundle", "getI18nBundle", "registerCustomI18nBundleGetter", "MediaRange", "renderDeferred", "renderImmediately", "cancelRender", "renderFinished", "addCustomCSS", "attachThemeLoaded", "detachThemeLoaded", "UI5Element"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";import{jsxDEV as i,Fragment as c}from"./thirdparty/preact/jsxRuntime.module.js";import{options as s}from"./thirdparty/preact/preact.module.js";import{isUI5ElementClass as m,preprocess as u}from"./jsx-utils.js";import{kebabToCamelCase as f}from"./util/StringHelper.js";const a=s.vnode;s.vnode=t=>{const e=t.props;e!==null&&typeof e=="object"&&e.class&&e.class,a&&a(t)};function E(t){return t.name.startsWith("bound ")||t.toString().includes("=>")}function d(t,e){if(!m(t))return;const n=t.getMetadata().getTag(),r=t.getMetadata().getAttributesList();Object.keys(e).forEach(o=>{o.includes("-")&&r.includes(o)&&console.warn(`Avoid attribute usage in favour of properties ['${o}' --> '${f(o)}'] for tag [${n}]. Check stack trace to find out which template causes this. Attributes are not type-checked and boolean conversion is manual and error-prone.`)})}export function Fragment(t,e){return c(t,e)}export function jsxDEV(t,e,n){const r=u(t,e,n);return d(t,e),i(r,e,n)}
2
+ //# sourceMappingURL=jsx-dev-runtime.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/jsx-dev-runtime.ts"],
4
+ "sourcesContent": ["// eslint-disable-next-line import/extensions\nimport { jsxDEV as _jsxDEV, Fragment as _Fragment } from \"./thirdparty/preact/jsxRuntime.module.js\";\nimport { options } from \"./thirdparty/preact/preact.module.js\";\nimport { type VNode } from \"./jsx-runtime.js\";\nimport type UI5Element from \"./UI5Element.js\";\nimport { isUI5ElementClass, preprocess } from \"./jsx-utils.js\";\nimport { kebabToCamelCase } from \"./util/StringHelper.js\";\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst old = options.vnode;\n\noptions.vnode = vnode => {\n\tconst props: Record<string, any> = vnode.props;\n\tif (props !== null && typeof props === \"object\") {\n\t\tif (props.class && typeof props.class === \"object\") {\n\t\t\t// props.class = classObjToStr(props.class as Record<string, boolean>);\n\t\t}\n\t}\n\told && old(vnode);\n};\n\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction isBoundOrArrow(func: Function): boolean {\n\t// TODO improve => detection after func params\n\treturn func.name.startsWith(\"bound \") || func.toString().includes(\"=>\");\n}\n\nfunction checkAttributeUsage(type: string | typeof UI5Element, props: Record<string, any>) {\n\tif (!isUI5ElementClass(type)) {\n\t\treturn;\n\t}\n\n\tconst tag = type.getMetadata().getTag();\n\tconst componentAttributes = type.getMetadata().getAttributesList();\n\tObject.keys(props).forEach(prop => {\n\t\tif (prop.includes(\"-\") && componentAttributes.includes(prop)) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.warn(`Avoid attribute usage in favour of properties ['${prop}' --> '${kebabToCamelCase(prop)}'] for tag [${tag}]. Check stack trace to find out which template causes this. Attributes are not type-checked and boolean conversion is manual and error-prone.`);\n\t\t}\n\t});\n}\n\nexport function Fragment(props: Record<string, any>, context?: any) {\n\treturn _Fragment(props, context);\n}\n\nexport function jsxDEV(type: string | typeof UI5Element, props: Record<string, any>, key: string): VNode<any> {\n\tconst tag = preprocess(type, props, key);\n\n\tcheckAttributeUsage(type, props);\n\n\treturn _jsxDEV(tag, props, key) as VNode<any>;\n}\n"],
5
+ "mappings": "aACA,OAAS,UAAUA,EAAS,YAAYC,MAAiB,2CACzD,OAAS,WAAAC,MAAe,uCAGxB,OAAS,qBAAAC,EAAmB,cAAAC,MAAkB,iBAC9C,OAAS,oBAAAC,MAAwB,yBAGjC,MAAMC,EAAMJ,EAAQ,MAEpBA,EAAQ,MAAQK,GAAS,CACxB,MAAMC,EAA6BD,EAAM,MACrCC,IAAU,MAAQ,OAAOA,GAAU,UAClCA,EAAM,OAAgBA,EAAM,MAIjCF,GAAOA,EAAIC,CAAK,CACjB,EAGA,SAASE,EAAeC,EAAyB,CAEhD,OAAOA,EAAK,KAAK,WAAW,QAAQ,GAAKA,EAAK,SAAS,EAAE,SAAS,IAAI,CACvE,CAEA,SAASC,EAAoBC,EAAkCJ,EAA4B,CAC1F,GAAI,CAACL,EAAkBS,CAAI,EAC1B,OAGD,MAAMC,EAAMD,EAAK,YAAY,EAAE,OAAO,EAChCE,EAAsBF,EAAK,YAAY,EAAE,kBAAkB,EACjE,OAAO,KAAKJ,CAAK,EAAE,QAAQO,GAAQ,CAC9BA,EAAK,SAAS,GAAG,GAAKD,EAAoB,SAASC,CAAI,GAE1D,QAAQ,KAAK,mDAAmDA,CAAI,UAAUV,EAAiBU,CAAI,CAAC,eAAeF,CAAG,gJAAgJ,CAExQ,CAAC,CACF,CAEO,gBAAS,SAASL,EAA4BQ,EAAe,CACnE,OAAOf,EAAUO,EAAOQ,CAAO,CAChC,CAEO,gBAAS,OAAOJ,EAAkCJ,EAA4BS,EAAyB,CAC7G,MAAMJ,EAAMT,EAAWQ,EAAMJ,EAAOS,CAAG,EAEvC,OAAAN,EAAoBC,EAAMJ,CAAK,EAExBR,EAAQa,EAAKL,EAAOS,CAAG,CAC/B",
6
+ "names": ["_jsxDEV", "_Fragment", "options", "isUI5ElementClass", "preprocess", "kebabToCamelCase", "old", "vnode", "props", "isBoundOrArrow", "func", "checkAttributeUsage", "type", "tag", "componentAttributes", "prop", "context", "key"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";import{jsx as a,jsxs as p,Fragment as d}from"./thirdparty/preact/jsxRuntime.module.js";import{options as s}from"./thirdparty/preact/preact.module.js";import{preprocess as o}from"./jsx-utils.js";const i=s.vnode;s.vnode=t=>{const e=t.props;e!==null&&typeof e=="object"&&e.class&&e.class,i&&i(t)};export function Fragment(t,e){return d(t,e)}export function jsx(t,e,n){const r=o(t,e,n);return a(r,e,n)}export function jsxs(t,e,n){const r=o(t,e,n);return p(r,e,n)}export{};export{};
2
+ //# sourceMappingURL=jsx-runtime.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/jsx-runtime.ts"],
4
+ "sourcesContent": ["// eslint-disable-next-line import/extensions\nimport { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"./thirdparty/preact/jsxRuntime.module.js\";\nimport type { JSX as _JSX } from \"./thirdparty/preact/jsxRuntime.module.d.ts\";\nimport { options, type VNode as _VNode } from \"./thirdparty/preact/preact.module.js\";\nimport type UI5Element from \"./UI5Element.js\";\nimport { preprocess } from \"./jsx-utils.js\";\nimport { jsxDEV } from \"./jsx-dev-runtime.js\";\n\n// eslint-disable-next-line @typescript-eslint/no-namespace\ndeclare namespace JSX {\n\ttype JSXWithClassObj = { [K in keyof _JSX.IntrinsicElements]: Omit<_JSX.IntrinsicElements[K], \"class\"> & { class?: object | string | undefined } };\n\ttype AllHTMLAttributesWithClassObj<T extends EventTarget> = Omit<_JSX.AllHTMLAttributes<T>, \"class\"> & { class?: object | string | undefined }\n\ttype HTMLAttributesWithClassObj<T extends EventTarget> = Omit<_JSX.HTMLAttributes<T>, \"class\"> & { class?: object | string | undefined }\n export interface IntrinsicElements extends JSXWithClassObj {}\n export type ElementClass = UI5Element;\n\texport interface Element extends VNode<any> {}\n export interface ElementAttributesProperty<T extends EventTarget> {\n\t\t_jsxProps: HTMLAttributes<T>;\n\t}\n\texport interface AllHTMLAttributes<T extends EventTarget> extends AllHTMLAttributesWithClassObj<T> {}\n\texport interface HTMLAttributes<T extends EventTarget> extends HTMLAttributesWithClassObj<T> {}\n\texport interface DOMAttributes<T extends EventTarget> extends _JSX.DOMAttributes<T> {}\n\texport interface SVGAttributes extends _JSX.SVGAttributes {}\n\texport type AriaRole = _JSX.AriaRole;\n\texport type AriaAttributes = _JSX.AriaAttributes;\n\texport type MouseEventHandler<T extends EventTarget> = _JSX.MouseEventHandler<T>;\n\texport type TargetedMouseEvent<Target extends EventTarget> = _JSX.TargetedMouseEvent<Target>;\n\texport type TargetedInputEvent<Target extends EventTarget> = _JSX.TargetedInputEvent<Target>;\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst old = options.vnode;\n\noptions.vnode = vnode => {\n\tconst props: Record<string, any> = vnode.props;\n\tif (props !== null && typeof props === \"object\") {\n\t\tif (props.class && typeof props.class === \"object\") {\n\t\t\t// props.class = classObjToStr(props.class as Record<string, boolean>);\n\t\t}\n\t}\n\told && old(vnode);\n};\n\nexport function Fragment(props: Record<string, any>, context?: any) {\n\treturn _Fragment(props, context);\n}\nexport function jsx(type: string | typeof UI5Element, props: Record<string, any>, key: string): VNode<any> {\n\tconst tag = preprocess(type, props, key);\n\n\treturn _jsx(tag, props, key) as VNode<any>;\n}\nexport function jsxs(type: string | typeof UI5Element, props: Record<string, any>, key: string): VNode<any> {\n\tconst tag = preprocess(type, props, key);\n\n\treturn _jsxs(tag, props, key) as VNode<any>;\n}\nexport { type jsxDEV };\n\nexport type ComponentChild =\n\t| VNode<any>\n\t| object\n\t| string\n\t| number\n\t| bigint\n\t| boolean\n\t| null\n\t| undefined;\nexport type ComponentChildren = ComponentChild[] | ComponentChild;\n\nexport type VNode<T = {}> = Omit<_VNode<T>, \"type\" | \"props\"> & { type: string | typeof UI5Element, props: T & { children: ComponentChildren } };\n\nexport { JSX };\n"],
5
+ "mappings": "aACA,OAAS,OAAOA,EAAM,QAAQC,EAAO,YAAYC,MAAiB,2CAElE,OAAS,WAAAC,MAAqC,uCAE9C,OAAS,cAAAC,MAAkB,iBA0B3B,MAAMC,EAAMF,EAAQ,MAEpBA,EAAQ,MAAQG,GAAS,CACxB,MAAMC,EAA6BD,EAAM,MACrCC,IAAU,MAAQ,OAAOA,GAAU,UAClCA,EAAM,OAAgBA,EAAM,MAIjCF,GAAOA,EAAIC,CAAK,CACjB,EAEO,gBAAS,SAASC,EAA4BC,EAAe,CACnE,OAAON,EAAUK,EAAOC,CAAO,CAChC,CACO,gBAAS,IAAIC,EAAkCF,EAA4BG,EAAyB,CAC1G,MAAMC,EAAMP,EAAWK,EAAMF,EAAOG,CAAG,EAEvC,OAAOV,EAAKW,EAAKJ,EAAOG,CAAG,CAC5B,CACO,gBAAS,KAAKD,EAAkCF,EAA4BG,EAAyB,CAC3G,MAAMC,EAAMP,EAAWK,EAAMF,EAAOG,CAAG,EAEvC,OAAOT,EAAMU,EAAKJ,EAAOG,CAAG,CAC7B,CACA,SAeA",
6
+ "names": ["_jsx", "_jsxs", "_Fragment", "options", "preprocess", "old", "vnode", "props", "context", "type", "key", "tag"]
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";import f from"./util/hash2str.js";import{pascalToKebabCase as r}from"./util/StringHelper.js";function g(e,t,o){const n=e.getMetadata().getEvents();Object.keys(t).forEach(s=>{if(s.startsWith("on")){const a=s.slice(2),c=r(a),l=a.charAt(0).toLowerCase()+a.slice(1);let i;c in n?i=c:l in n&&(i=l),i&&s!=="onClick"&&(t[`onui5-${i}`]=t[s],delete t[s])}})}export function isUI5ElementClass(e){return typeof e=="function"&&"getMetadata"in e}export function preprocess(e,t,o){let n;return isUI5ElementClass(e)?(n=e.getMetadata().getTag(),g(e,t,o)):n=e,typeof t.class=="object"&&(t.class=f(t.class)),n}
2
+ //# sourceMappingURL=jsx-utils.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/jsx-utils.ts"],
4
+ "sourcesContent": ["import type UI5Element from \"./UI5Element.js\";\nimport hash2str from \"./util/hash2str.js\";\nimport { pascalToKebabCase } from \"./util/StringHelper.js\";\n\nfunction convertEventScoping(type: typeof UI5Element, props: Record<string, any>, key: string) {\n\tconst events = type.getMetadata().getEvents();\n\n\tObject.keys(props).forEach(prop => {\n\t\tif (prop.startsWith(\"on\")) {\n\t\t\t// Exteract the kebab-case event: onChange - change, onSelectionChange - selection-change, etc.\n\t\t\tconst pascalEvent = prop.slice(\"on\".length);\n\t\t\tconst kebabCaseEvent = pascalToKebabCase(pascalEvent);\n\t\t\t// Also support camelCase events\n\t\t\tconst camelCaseEvent = pascalEvent.charAt(0).toLowerCase() + pascalEvent.slice(1);\n\n\t\t\tlet origEvent: string | undefined;\n\t\t\tif (kebabCaseEvent in events) {\n\t\t\t\torigEvent = kebabCaseEvent;\n\t\t\t} else if (camelCaseEvent in events) {\n\t\t\t\torigEvent = camelCaseEvent;\n\t\t\t}\n\t\t\t// Attach for the \"ui5-\" preffixed event\n\t\t\tif (origEvent) {\n\t\t\t\tif ((prop !== \"onClick\")) {\n\t\t\t\t\tprops[`onui5-${origEvent}`] = props[prop];\n\t\t\t\t\t// TODO keep native events for now, find a way to mark them for runtime\n\t\t\t\t\tdelete props[prop];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n}\n\nexport function isUI5ElementClass(type: string | typeof UI5Element): type is typeof UI5Element {\n\treturn typeof type === \"function\" && \"getMetadata\" in type;\n}\n\nexport function preprocess(type: string | typeof UI5Element, props: Record<string, any>, key: string) {\n\tlet tag: string;\n\tif (isUI5ElementClass(type)) {\n\t\ttag = type.getMetadata().getTag();\n\t\tconvertEventScoping(type, props, key);\n\t} else {\n\t\ttag = type;\n\t}\n\n\t// convert class object to string\n\tif (typeof props.class === \"object\") {\n\t\tprops.class = hash2str(props.class);\n\t}\n\n\treturn tag;\n}\n"],
5
+ "mappings": "aACA,OAAOA,MAAc,qBACrB,OAAS,qBAAAC,MAAyB,yBAElC,SAASC,EAAoBC,EAAyBC,EAA4BC,EAAa,CAC9F,MAAMC,EAASH,EAAK,YAAY,EAAE,UAAU,EAE5C,OAAO,KAAKC,CAAK,EAAE,QAAQG,GAAQ,CAClC,GAAIA,EAAK,WAAW,IAAI,EAAG,CAE1B,MAAMC,EAAcD,EAAK,MAAM,CAAW,EACpCE,EAAiBR,EAAkBO,CAAW,EAE9CE,EAAiBF,EAAY,OAAO,CAAC,EAAE,YAAY,EAAIA,EAAY,MAAM,CAAC,EAEhF,IAAIG,EACAF,KAAkBH,EACrBK,EAAYF,EACFC,KAAkBJ,IAC5BK,EAAYD,GAGTC,GACEJ,IAAS,YACbH,EAAM,SAASO,CAAS,EAAE,EAAIP,EAAMG,CAAI,EAExC,OAAOH,EAAMG,CAAI,EAGpB,CACD,CAAC,CACF,CAEO,gBAAS,kBAAkBJ,EAA6D,CAC9F,OAAO,OAAOA,GAAS,YAAc,gBAAiBA,CACvD,CAEO,gBAAS,WAAWA,EAAkCC,EAA4BC,EAAa,CACrG,IAAIO,EACJ,OAAI,kBAAkBT,CAAI,GACzBS,EAAMT,EAAK,YAAY,EAAE,OAAO,EAChCD,EAAoBC,EAAMC,EAAOC,CAAG,GAEpCO,EAAMT,EAIH,OAAOC,EAAM,OAAU,WAC1BA,EAAM,MAAQJ,EAASI,EAAM,KAAK,GAG5BQ,CACR",
6
+ "names": ["hash2str", "pascalToKebabCase", "convertEventScoping", "type", "props", "key", "events", "prop", "pascalEvent", "kebabCaseEvent", "camelCaseEvent", "origEvent", "tag"]
7
+ }
@@ -1,2 +1,2 @@
1
- "use strict";import{DEFAULT_LOCALE as t}from"../generated/AssetParameters.js";const e=r=>{if(!r)return t;if(r==="zh_HK")return"zh_TW";const n=r.lastIndexOf("_");return n>=0?r.slice(0,n):r!==t?t:""};export default e;
1
+ "use strict";import{DEFAULT_LOCALE as A}from"../generated/AssetParameters.js";const r={zh_HK:"zh_TW",in:"id"},n=t=>{if(!t)return A;if(r[t])return r[t];const L=t.lastIndexOf("_");return L>=0?t.slice(0,L):t!==A?A:""};export default n;
2
2
  //# sourceMappingURL=nextFallbackLocale.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/locale/nextFallbackLocale.ts"],
4
- "sourcesContent": ["import { DEFAULT_LOCALE } from \"../generated/AssetParameters.js\";\n\n/**\n * Calculates the next fallback locale for the given locale.\n *\n * @param {string} locale Locale string in Java format (underscores) or null\n * @returns {string} Next fallback Locale or \"en\" if no fallbacks found.\n */\nconst nextFallbackLocale = (locale: string) => {\n\tif (!locale) {\n\t\treturn DEFAULT_LOCALE;\n\t}\n\n\tif (locale === \"zh_HK\") {\n\t\treturn \"zh_TW\";\n\t}\n\n\t// if there are multiple segments (separated by underscores), remove the last one\n\tconst p = locale.lastIndexOf(\"_\");\n\tif (p >= 0) {\n\t\treturn locale.slice(0, p);\n\t}\n\n\t// for any language but the default, fallback to the default first before falling back to the 'raw' language (empty string)\n\treturn locale !== DEFAULT_LOCALE ? DEFAULT_LOCALE : \"\";\n};\n\nexport default nextFallbackLocale;\n"],
5
- "mappings": "aAAA,OAAS,kBAAAA,MAAsB,kCAQ/B,MAAMC,EAAsBC,GAAmB,CAC9C,GAAI,CAACA,EACJ,OAAOF,EAGR,GAAIE,IAAW,QACd,MAAO,QAIR,MAAMC,EAAID,EAAO,YAAY,GAAG,EAChC,OAAIC,GAAK,EACDD,EAAO,MAAM,EAAGC,CAAC,EAIlBD,IAAWF,EAAiBA,EAAiB,EACrD,EAEA,eAAeC",
6
- "names": ["DEFAULT_LOCALE", "nextFallbackLocale", "locale", "p"]
4
+ "sourcesContent": ["import { DEFAULT_LOCALE } from \"../generated/AssetParameters.js\";\n\nconst LOCALE_FALBACK_MAP = {\n\t\"zh_HK\": \"zh_TW\",\n\t\"in\": \"id\",\n};\n\n/**\n * Calculates the next fallback locale for the given locale.\n *\n * @param {string} locale Locale string in Java format (underscores) or null\n * @returns {string} Next fallback Locale or \"en\" if no fallbacks found.\n */\nconst nextFallbackLocale = (locale: string) => {\n\tif (!locale) {\n\t\treturn DEFAULT_LOCALE;\n\t}\n\n\tif (LOCALE_FALBACK_MAP[locale as keyof typeof LOCALE_FALBACK_MAP]) {\n\t\treturn LOCALE_FALBACK_MAP[locale as keyof typeof LOCALE_FALBACK_MAP];\n\t}\n\n\t// if there are multiple segments (separated by underscores), remove the last one\n\tconst p = locale.lastIndexOf(\"_\");\n\tif (p >= 0) {\n\t\treturn locale.slice(0, p);\n\t}\n\n\t// for any language but the default, fallback to the default first before falling back to the 'raw' language (empty string)\n\treturn locale !== DEFAULT_LOCALE ? DEFAULT_LOCALE : \"\";\n};\n\nexport default nextFallbackLocale;\n"],
5
+ "mappings": "aAAA,OAAS,kBAAAA,MAAsB,kCAE/B,MAAMC,EAAqB,CAC1B,MAAS,QACT,GAAM,IACP,EAQMC,EAAsBC,GAAmB,CAC9C,GAAI,CAACA,EACJ,OAAOH,EAGR,GAAIC,EAAmBE,CAAyC,EAC/D,OAAOF,EAAmBE,CAAyC,EAIpE,MAAMC,EAAID,EAAO,YAAY,GAAG,EAChC,OAAIC,GAAK,EACDD,EAAO,MAAM,EAAGC,CAAC,EAIlBD,IAAWH,EAAiBA,EAAiB,EACrD,EAEA,eAAeE",
6
+ "names": ["DEFAULT_LOCALE", "LOCALE_FALBACK_MAP", "nextFallbackLocale", "locale", "p"]
7
7
  }
@@ -0,0 +1,2 @@
1
+ "use strict";import{hydrate as p,render as n,createContext as f}from"../thirdparty/preact/preact.module.js";import{jsx as s}from"../thirdparty/preact/jsxRuntime.module.js";const l=new WeakMap,y=(e,r)=>{let t=l.get(e);t||(t=f(e),l.set(e,t));const m=e.render(),o=s(t.Provider,{value:e,children:m});e.__shouldHydrate?(e.shadowRoot?.querySelectorAll("style").forEach(d=>d.remove()),p(o,r),e.__shouldHydrate=!1):n(o,r)};export default y;
2
+ //# sourceMappingURL=JsxRenderer.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/renderer/JsxRenderer.ts"],
4
+ "sourcesContent": ["import { hydrate, render, createContext } from \"../thirdparty/preact/preact.module.js\";\nimport { jsx } from \"../thirdparty/preact/jsxRuntime.module.js\";\nimport type UI5Element from \"../UI5Element.js\";\nimport type { Renderer } from \"../UI5Element.js\";\n\nconst instanceToContextMap = new WeakMap<UI5Element, ReturnType<typeof createContext<UI5Element>>>();\n\nconst jsxRenderer: Renderer = (instance: UI5Element, container: HTMLElement | DocumentFragment) => {\n\tlet ctx = instanceToContextMap.get(instance);\n\tif (!ctx) {\n\t\t// create a context holding the element that is being rendered\n\t\t// this contect will be used when adding event listeners - they all will be bound to this element\n\t\tctx = createContext(instance);\n\t\tinstanceToContextMap.set(instance, ctx);\n\t}\n\n\tconst templateResult = instance.render();\n\tconst vnode = jsx(ctx.Provider, { value: instance, children: templateResult });\n\n\tif (instance.__shouldHydrate) {\n\t\t// Remove all server-generated style elements for component styles\n\t\t// to avoid conflicts or duplication with styles added through adopted style sheets.\n\t\tinstance.shadowRoot?.querySelectorAll(\"style\").forEach(style => style.remove());\n\t\thydrate(vnode, container);\n\t\tinstance.__shouldHydrate = false;\n\t} else {\n\t\trender(vnode, container);\n\t}\n};\n\nexport default jsxRenderer;\n"],
5
+ "mappings": "aAAA,OAAS,WAAAA,EAAS,UAAAC,EAAQ,iBAAAC,MAAqB,wCAC/C,OAAS,OAAAC,MAAW,4CAIpB,MAAMC,EAAuB,IAAI,QAE3BC,EAAwB,CAACC,EAAsBC,IAA8C,CAClG,IAAIC,EAAMJ,EAAqB,IAAIE,CAAQ,EACtCE,IAGJA,EAAMN,EAAcI,CAAQ,EAC5BF,EAAqB,IAAIE,EAAUE,CAAG,GAGvC,MAAMC,EAAiBH,EAAS,OAAO,EACjCI,EAAQP,EAAIK,EAAI,SAAU,CAAE,MAAOF,EAAU,SAAUG,CAAe,CAAC,EAEzEH,EAAS,iBAGZA,EAAS,YAAY,iBAAiB,OAAO,EAAE,QAAQK,GAASA,EAAM,OAAO,CAAC,EAC9EX,EAAQU,EAAOH,CAAS,EACxBD,EAAS,gBAAkB,IAE3BL,EAAOS,EAAOH,CAAS,CAEzB,EAEA,eAAeF",
6
+ "names": ["hydrate", "render", "createContext", "jsx", "instanceToContextMap", "jsxRenderer", "instance", "container", "ctx", "templateResult", "vnode", "style"]
7
+ }
@@ -1,2 +1,2 @@
1
- "use strict";import{render as i,html as p,svg as s}from"lit-html";import{getFeature as o}from"../FeaturesRegistry.js";const m=(t,...n)=>{const e=o("LitStatic");return(e?e.html:p)(t,...n)},a=(t,...n)=>{const e=o("LitStatic");return(e?e.svg:s)(t,...n)},l=(t,n,e)=>{const r=o("OpenUI5Enablement");r&&(t=r.wrapTemplateResultInBusyMarkup(m,e.host,t)),i(t,n,e)},f=(t,n,e)=>{const r=o("LitStatic");if(r)return r.unsafeStatic((n||[]).includes(t)?`${t}-${e}`:t)};export{m as html,a as svg};export{f as scopeTag};export{repeat}from"lit-html/directives/repeat.js";export{classMap}from"lit-html/directives/class-map.js";export{styleMap}from"./directives/style-map.js";export{ifDefined}from"lit-html/directives/if-defined.js";export{unsafeHTML}from"lit-html/directives/unsafe-html.js";export default l;
1
+ "use strict";import{render as p,html as a,svg as s}from"lit-html";import{getFeature as o}from"../FeaturesRegistry.js";const m=(t,...r)=>{const e=o("LitStatic");return(e?e.html:a)(t,...r)},i=(t,...r)=>{const e=o("LitStatic");return(e?e.svg:s)(t,...r)},l=(t,r)=>{let e=t.render();const n=o("OpenUI5Enablement");n&&(e=n.wrapTemplateResultInBusyMarkup(m,t,e)),p(e,r,{host:t})},f=(t,r,e)=>{const n=o("LitStatic");if(n)return n.unsafeStatic((r||[]).includes(t)?`${t}-${e}`:t)};export{m as html,i as svg};export{f as scopeTag};export{repeat}from"lit-html/directives/repeat.js";export{classMap}from"lit-html/directives/class-map.js";export{styleMap}from"./directives/style-map.js";export{ifDefined}from"lit-html/directives/if-defined.js";export{unsafeHTML}from"lit-html/directives/unsafe-html.js";export default l;
2
2
  //# sourceMappingURL=LitRenderer.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/renderer/LitRenderer.ts"],
4
- "sourcesContent": ["import {\n\trender,\n\thtml,\n\tsvg,\n} from \"lit-html\";\n\nimport type { TemplateResult } from \"lit-html\";\n\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport type { LitStatic } from \"../CustomElementsScope.js\";\nimport type OpenUI5Enablement from \"../features/OpenUI5Enablement.js\";\nimport type UI5Element from \"../UI5Element.js\";\nimport type { Renderer, RendererOptions } from \"../UI5Element.js\";\nimport type { TemplateFunctionResult } from \"./executeTemplate.js\";\n\nconst effectiveHtml = (strings: TemplateStringsArray, ...values: Array<unknown>) => {\n\tconst litStatic = getFeature<typeof LitStatic>(\"LitStatic\");\n\tconst fn = litStatic ? litStatic.html : html;\n\treturn fn(strings, ...values);\n};\n\nconst effectiveSvg = (strings: TemplateStringsArray, ...values: Array<unknown>) => {\n\tconst litStatic = getFeature<typeof LitStatic>(\"LitStatic\");\n\tconst fn = litStatic ? litStatic.svg : svg;\n\treturn fn(strings, ...values);\n};\n\nconst litRender: Renderer = (templateResult: TemplateFunctionResult, container: HTMLElement | DocumentFragment, options: RendererOptions) => {\n\tconst openUI5Enablement = getFeature<typeof OpenUI5Enablement>(\"OpenUI5Enablement\");\n\tif (openUI5Enablement) {\n\t\ttemplateResult = openUI5Enablement.wrapTemplateResultInBusyMarkup(effectiveHtml, options.host as UI5Element, templateResult as TemplateResult);\n\t}\n\n\trender(templateResult as TemplateResult, container, options);\n};\n\nconst scopeTag = (tag: string, tags: Array<string>, suffix: string) => {\n\tconst litStatic = getFeature<typeof LitStatic>(\"LitStatic\");\n\tif (litStatic) {\n\t\treturn litStatic.unsafeStatic((tags || []).includes(tag) ? `${tag}-${suffix}` : tag);\n\t}\n};\n\nexport {\n\teffectiveHtml as html,\n\teffectiveSvg as svg,\n};\nexport { scopeTag };\nexport { repeat } from \"lit-html/directives/repeat.js\";\nexport { classMap } from \"lit-html/directives/class-map.js\";\n// @ts-ignore style-map is a JS file\nexport { styleMap } from \"./directives/style-map.js\";\nexport { ifDefined } from \"lit-html/directives/if-defined.js\";\nexport { unsafeHTML } from \"lit-html/directives/unsafe-html.js\";\n\nexport default litRender;\n"],
5
- "mappings": "aAAA,OACC,UAAAA,EACA,QAAAC,EACA,OAAAC,MACM,WAIP,OAAS,cAAAC,MAAkB,yBAO3B,MAAMC,EAAgB,CAACC,KAAkCC,IAA2B,CACnF,MAAMC,EAAYJ,EAA6B,WAAW,EAE1D,OADWI,EAAYA,EAAU,KAAON,GAC9BI,EAAS,GAAGC,CAAM,CAC7B,EAEME,EAAe,CAACH,KAAkCC,IAA2B,CAClF,MAAMC,EAAYJ,EAA6B,WAAW,EAE1D,OADWI,EAAYA,EAAU,IAAML,GAC7BG,EAAS,GAAGC,CAAM,CAC7B,EAEMG,EAAsB,CAACC,EAAwCC,EAA2CC,IAA6B,CAC5I,MAAMC,EAAoBV,EAAqC,mBAAmB,EAC9EU,IACHH,EAAiBG,EAAkB,+BAA+BT,EAAeQ,EAAQ,KAAoBF,CAAgC,GAG9IV,EAAOU,EAAkCC,EAAWC,CAAO,CAC5D,EAEME,EAAW,CAACC,EAAaC,EAAqBC,IAAmB,CACtE,MAAMV,EAAYJ,EAA6B,WAAW,EAC1D,GAAII,EACH,OAAOA,EAAU,cAAcS,GAAQ,CAAC,GAAG,SAASD,CAAG,EAAI,GAAGA,CAAG,IAAIE,CAAM,GAAKF,CAAG,CAErF,EAEA,OACCX,KAAiB,KACjBI,KAAgB,KAEjB,OAASM,KAAA,UACT,OAAS,WAAc,gCACvB,OAAS,aAAgB,mCAEzB,OAAS,aAAgB,4BACzB,OAAS,cAAiB,oCAC1B,OAAS,eAAkB,qCAE3B,eAAeL",
6
- "names": ["render", "html", "svg", "getFeature", "effectiveHtml", "strings", "values", "litStatic", "effectiveSvg", "litRender", "templateResult", "container", "options", "openUI5Enablement", "scopeTag", "tag", "tags", "suffix"]
4
+ "sourcesContent": ["import {\n\trender,\n\thtml,\n\tsvg,\n} from \"lit-html\";\n\nimport type { TemplateResult } from \"lit-html\";\n\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport type { LitStatic } from \"../CustomElementsScope.js\";\nimport type OpenUI5Enablement from \"../features/OpenUI5Enablement.js\";\nimport type UI5Element from \"../UI5Element.js\";\nimport type { Renderer } from \"../UI5Element.js\";\n\nconst effectiveHtml = (strings: TemplateStringsArray, ...values: Array<unknown>) => {\n\tconst litStatic = getFeature<typeof LitStatic>(\"LitStatic\");\n\tconst fn = litStatic ? litStatic.html : html;\n\treturn fn(strings, ...values);\n};\n\nconst effectiveSvg = (strings: TemplateStringsArray, ...values: Array<unknown>) => {\n\tconst litStatic = getFeature<typeof LitStatic>(\"LitStatic\");\n\tconst fn = litStatic ? litStatic.svg : svg;\n\treturn fn(strings, ...values);\n};\n\nconst litRender: Renderer = (instance: UI5Element, container: HTMLElement | DocumentFragment) => {\n\tlet templateResult = instance.render();\n\tconst openUI5Enablement = getFeature<typeof OpenUI5Enablement>(\"OpenUI5Enablement\");\n\tif (openUI5Enablement) {\n\t\ttemplateResult = openUI5Enablement.wrapTemplateResultInBusyMarkup(effectiveHtml, instance, templateResult as TemplateResult);\n\t}\n\n\trender(templateResult as TemplateResult, container, { host: instance });\n};\n\nconst scopeTag = (tag: string, tags: Array<string>, suffix: string) => {\n\tconst litStatic = getFeature<typeof LitStatic>(\"LitStatic\");\n\tif (litStatic) {\n\t\treturn litStatic.unsafeStatic((tags || []).includes(tag) ? `${tag}-${suffix}` : tag);\n\t}\n};\n\nexport {\n\teffectiveHtml as html,\n\teffectiveSvg as svg,\n};\nexport { scopeTag };\nexport { repeat } from \"lit-html/directives/repeat.js\";\nexport { classMap } from \"lit-html/directives/class-map.js\";\n// @ts-ignore style-map is a JS file\nexport { styleMap } from \"./directives/style-map.js\";\nexport { ifDefined } from \"lit-html/directives/if-defined.js\";\nexport { unsafeHTML } from \"lit-html/directives/unsafe-html.js\";\n\nexport default litRender;\n"],
5
+ "mappings": "aAAA,OACC,UAAAA,EACA,QAAAC,EACA,OAAAC,MACM,WAIP,OAAS,cAAAC,MAAkB,yBAM3B,MAAMC,EAAgB,CAACC,KAAkCC,IAA2B,CACnF,MAAMC,EAAYJ,EAA6B,WAAW,EAE1D,OADWI,EAAYA,EAAU,KAAON,GAC9BI,EAAS,GAAGC,CAAM,CAC7B,EAEME,EAAe,CAACH,KAAkCC,IAA2B,CAClF,MAAMC,EAAYJ,EAA6B,WAAW,EAE1D,OADWI,EAAYA,EAAU,IAAML,GAC7BG,EAAS,GAAGC,CAAM,CAC7B,EAEMG,EAAsB,CAACC,EAAsBC,IAA8C,CAChG,IAAIC,EAAiBF,EAAS,OAAO,EACrC,MAAMG,EAAoBV,EAAqC,mBAAmB,EAC9EU,IACHD,EAAiBC,EAAkB,+BAA+BT,EAAeM,EAAUE,CAAgC,GAG5HZ,EAAOY,EAAkCD,EAAW,CAAE,KAAMD,CAAS,CAAC,CACvE,EAEMI,EAAW,CAACC,EAAaC,EAAqBC,IAAmB,CACtE,MAAMV,EAAYJ,EAA6B,WAAW,EAC1D,GAAII,EACH,OAAOA,EAAU,cAAcS,GAAQ,CAAC,GAAG,SAASD,CAAG,EAAI,GAAGA,CAAG,IAAIE,CAAM,GAAKF,CAAG,CAErF,EAEA,OACCX,KAAiB,KACjBI,KAAgB,KAEjB,OAASM,KAAA,UACT,OAAS,WAAc,gCACvB,OAAS,aAAgB,mCAEzB,OAAS,aAAgB,4BACzB,OAAS,cAAiB,oCAC1B,OAAS,eAAkB,qCAE3B,eAAeL",
6
+ "names": ["render", "html", "svg", "getFeature", "effectiveHtml", "strings", "values", "litStatic", "effectiveSvg", "litRender", "instance", "container", "templateResult", "openUI5Enablement", "scopeTag", "tag", "tags", "suffix"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";import{getCustomElementsScopingSuffix as a,shouldScopeCustomElement as p}from"../CustomElementsScopeUtils.js";const l=(n,e)=>{const t=c(e),o=a();return n.call(e,e,t,o)},c=n=>{const e=n.constructor,t=e.getMetadata().getPureTag(),o=e.getUniqueDependencies().map(s=>s.getMetadata().getPureTag()).filter(p);return p(t)&&o.push(t),o};export default l;export{c as getTagsToScope};
1
+ "use strict";const n=(e,t)=>e.call(t);export default n;
2
2
  //# sourceMappingURL=executeTemplate.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/renderer/executeTemplate.ts"],
4
- "sourcesContent": ["import { getCustomElementsScopingSuffix, shouldScopeCustomElement } from \"../CustomElementsScopeUtils.js\";\nimport type UI5Element from \"../UI5Element.js\";\n\ntype TemplateFunctionResult = object;\ntype TemplateFunction = (component: UI5Element, tagsToScope: Array<string>, scope: string | undefined) => TemplateFunctionResult;\n\n/**\n * Runs a component's template with the component's current state, while also scoping HTML\n *\n * @param template - the template to execute\n * @param component - the component\n * @public\n */\nconst executeTemplate = (template: TemplateFunction, component: UI5Element): TemplateFunctionResult => {\n\tconst tagsToScope = getTagsToScope(component);\n\tconst scope = getCustomElementsScopingSuffix();\n\treturn template.call(component, component, tagsToScope, scope);\n};\n\n/**\n * Returns all tags, used inside component's template subject to scoping.\n * @param component - the component\n * @returns {Array[]}\n * @private\n */\nconst getTagsToScope = (component: UI5Element) => {\n\tconst ctor = component.constructor as typeof UI5Element;\n\n\tconst componentTag = ctor.getMetadata().getPureTag();\n\tconst tagsToScope = ctor.getUniqueDependencies().map((dep: typeof UI5Element) => dep.getMetadata().getPureTag()).filter(shouldScopeCustomElement);\n\n\tif (shouldScopeCustomElement(componentTag)) {\n\t\ttagsToScope.push(componentTag);\n\t}\n\n\treturn tagsToScope;\n};\n\nexport default executeTemplate;\nexport { getTagsToScope };\nexport type { TemplateFunction, TemplateFunctionResult };\n"],
5
- "mappings": "aAAA,OAAS,kCAAAA,EAAgC,4BAAAC,MAAgC,iCAazE,MAAMC,EAAkB,CAACC,EAA4BC,IAAkD,CACtG,MAAMC,EAAcC,EAAeF,CAAS,EACtCG,EAAQP,EAA+B,EAC7C,OAAOG,EAAS,KAAKC,EAAWA,EAAWC,EAAaE,CAAK,CAC9D,EAQMD,EAAkBF,GAA0B,CACjD,MAAMI,EAAOJ,EAAU,YAEjBK,EAAeD,EAAK,YAAY,EAAE,WAAW,EAC7CH,EAAcG,EAAK,sBAAsB,EAAE,IAAKE,GAA2BA,EAAI,YAAY,EAAE,WAAW,CAAC,EAAE,OAAOT,CAAwB,EAEhJ,OAAIA,EAAyBQ,CAAY,GACxCJ,EAAY,KAAKI,CAAY,EAGvBJ,CACR,EAEA,eAAeH,EACf,OAASI,KAAA",
6
- "names": ["getCustomElementsScopingSuffix", "shouldScopeCustomElement", "executeTemplate", "template", "component", "tagsToScope", "getTagsToScope", "scope", "ctor", "componentTag", "dep"]
4
+ "sourcesContent": ["import type UI5Element from \"../UI5Element.js\";\n\ntype TemplateFunction = () => object;\n\n/**\n * Runs a component's template with the component's current state, while also scoping HTML\n *\n * @param template - the template to execute\n * @param component - the component\n * @public\n */\nconst executeTemplate = (template: TemplateFunction, component: UI5Element) => {\n\treturn template.call(component);\n};\n\nexport default executeTemplate;\nexport type { TemplateFunction };\n"],
5
+ "mappings": "aAWA,MAAMA,EAAkB,CAACC,EAA4BC,IAC7CD,EAAS,KAAKC,CAAS,EAG/B,eAAeF",
6
+ "names": ["executeTemplate", "template", "component"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";import{HTMLElement as l,Element as s,customElements as o}from"@lit-labs/ssr-dom-shim";globalThis.HTMLElement??=l,globalThis.Element??=s,globalThis.customElements??=o;class t{}globalThis.Node??=t;class i{}globalThis.FileList??=i;
1
+ "use strict";import{HTMLElement as o,Element as s,customElements as l,ElementInternals as i}from"@lit-labs/ssr-dom-shim";globalThis.HTMLElement??=o,globalThis.Element??=s,globalThis.customElements??=l;class n{}globalThis.Node??=n;class r{}globalThis.FileList??=r;const t=new WeakMap;globalThis.Document&&!("adoptedStyleSheets"in Document.prototype)&&Object.defineProperty(Document.prototype,"adoptedStyleSheets",{get(){return t.get(this)||[]},set(e){t.set(this,e)}}),globalThis.ShadowRoot&&!("adoptedStyleSheets"in ShadowRoot.prototype)&&Object.defineProperty(ShadowRoot.prototype,"adoptedStyleSheets",{get(){return t.get(this)||[]},set(e){t.set(this,e)}}),globalThis.CSSStyleSheet&&!("replaceSync"in CSSStyleSheet.prototype)&&Object.defineProperty(CSSStyleSheet.prototype,"replaceSync",{value(e){return this.cssText=e,e}}),globalThis.ResizeObserver=class{observe(){}unobserve(){}disconnect(){}},globalThis.HTMLElement.prototype.showPopover=function(){},globalThis.HTMLElement.prototype.hidePopover=function(){},globalThis.HTMLElement.prototype.attachInternals=function(){return new i};
2
2
  //# sourceMappingURL=ssr-dom-shim.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/ssr-dom-shim.ts"],
4
- "sourcesContent": ["/* eslint-disable max-classes-per-file */\nimport { HTMLElement, Element, customElements } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement ??= HTMLElement;\nglobalThis.Element ??= Element;\nglobalThis.customElements ??= customElements;\n\nclass NodeShim {}\nglobalThis.Node ??= NodeShim as object as typeof Node;\n\nclass FileListShim {}\nglobalThis.FileList ??= FileListShim as object as typeof FileList;\n"],
5
- "mappings": "aACA,OAAS,eAAAA,EAAa,WAAAC,EAAS,kBAAAC,MAAsB,yBAErD,WAAW,cAAgBF,EAC3B,WAAW,UAAYC,EACvB,WAAW,iBAAmBC,EAE9B,MAAMC,CAAS,CAAC,CAChB,WAAW,OAASA,EAEpB,MAAMC,CAAa,CAAC,CACpB,WAAW,WAAaA",
6
- "names": ["HTMLElement", "Element", "customElements", "NodeShim", "FileListShim"]
4
+ "sourcesContent": ["/* eslint-disable max-classes-per-file */\nimport { HTMLElement, Element, customElements, ElementInternals } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement ??= HTMLElement;\nglobalThis.Element ??= Element;\nglobalThis.customElements ??= customElements;\n\nclass NodeShim {}\nglobalThis.Node ??= NodeShim as object as typeof Node;\n\nclass FileListShim {}\nglobalThis.FileList ??= FileListShim as object as typeof FileList;\n\n// ------- JS DOM shims -------\n\n// Polyfill `adoptedStyleSheets` globally for both `Document` and `ShadowRoot`\nconst adoptedSheetsStore = new WeakMap();\n\nif (globalThis.Document && !(\"adoptedStyleSheets\" in Document.prototype)) {\n Object.defineProperty(Document.prototype, \"adoptedStyleSheets\", {\n get() {\n return adoptedSheetsStore.get(this) || [];\n },\n set(sheets: CSSStyleSheet[]) {\n adoptedSheetsStore.set(this, sheets);\n },\n });\n}\n\nif (globalThis.ShadowRoot && !(\"adoptedStyleSheets\" in ShadowRoot.prototype)) {\n Object.defineProperty(ShadowRoot.prototype, \"adoptedStyleSheets\", {\n get() {\n return adoptedSheetsStore.get(this) || [];\n },\n set(sheets: CSSStyleSheet[]) {\n adoptedSheetsStore.set(this, sheets);\n },\n });\n}\n\n// Polyfill CSSStyleSheet to provide `replaceSync`\nif (globalThis.CSSStyleSheet && !(\"replaceSync\" in CSSStyleSheet.prototype)) {\n Object.defineProperty(CSSStyleSheet.prototype, \"replaceSync\", {\n value(cssText: string) {\n this.cssText = cssText;\n return cssText;\n },\n });\n }\n\n// Empty resize observer\nglobalThis.ResizeObserver = class ResizeObserver {\n observe() {\n // do nothing\n }\n unobserve() {\n // do nothing\n }\n disconnect() {\n // do nothing\n }\n};\n\n// empty showPopover & hidePopover method\nglobalThis.HTMLElement.prototype.showPopover = function () {};\nglobalThis.HTMLElement.prototype.hidePopover = function () {};\n\n// ElementInternals\nglobalThis.HTMLElement.prototype.attachInternals = function() {\n return new ElementInternals();\n}"],
5
+ "mappings": "aACA,OAAS,eAAAA,EAAa,WAAAC,EAAS,kBAAAC,EAAgB,oBAAAC,MAAwB,yBAEvE,WAAW,cAAgBH,EAC3B,WAAW,UAAYC,EACvB,WAAW,iBAAmBC,EAE9B,MAAME,CAAS,CAAC,CAChB,WAAW,OAASA,EAEpB,MAAMC,CAAa,CAAC,CACpB,WAAW,WAAaA,EAKxB,MAAMC,EAAqB,IAAI,QAE3B,WAAW,UAAY,EAAE,uBAAwB,SAAS,YAC5D,OAAO,eAAe,SAAS,UAAW,qBAAsB,CAC9D,KAAM,CACJ,OAAOA,EAAmB,IAAI,IAAI,GAAK,CAAC,CAC1C,EACA,IAAIC,EAAyB,CAC3BD,EAAmB,IAAI,KAAMC,CAAM,CACrC,CACF,CAAC,EAGC,WAAW,YAAc,EAAE,uBAAwB,WAAW,YAChE,OAAO,eAAe,WAAW,UAAW,qBAAsB,CAChE,KAAM,CACJ,OAAOD,EAAmB,IAAI,IAAI,GAAK,CAAC,CAC1C,EACA,IAAIC,EAAyB,CAC3BD,EAAmB,IAAI,KAAMC,CAAM,CACrC,CACF,CAAC,EAIC,WAAW,eAAiB,EAAE,gBAAiB,cAAc,YAC7D,OAAO,eAAe,cAAc,UAAW,cAAe,CAC5D,MAAMC,EAAiB,CACrB,YAAK,QAAUA,EACRA,CACT,CACF,CAAC,EAIL,WAAW,eAAiB,KAAqB,CAC7C,SAAU,CAEV,CACA,WAAY,CAEZ,CACA,YAAa,CAEb,CACJ,EAGA,WAAW,YAAY,UAAU,YAAc,UAAY,CAAC,EAC5D,WAAW,YAAY,UAAU,YAAc,UAAY,CAAC,EAG5D,WAAW,YAAY,UAAU,gBAAkB,UAAW,CAC1D,OAAO,IAAIL,CACf",
6
+ "names": ["HTMLElement", "Element", "customElements", "ElementInternals", "NodeShim", "FileListShim", "adoptedSheetsStore", "sheets", "cssText"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";import{getThemeProperties as n,getRegisteredPackages as m,isThemeRegistered as d}from"../asset-registries/Themes.js";import{removeStyle as g,createOrUpdateStyle as p}from"../ManagedStyles.js";import c from"./getThemeDesignerTheme.js";import{fireThemeLoaded as f}from"./ThemeLoaded.js";import{getFeature as u}from"../FeaturesRegistry.js";import{attachCustomThemeStylesToHead as T,getThemeRoot as h}from"../config/ThemeRoot.js";import{DEFAULT_THEME as l}from"../generated/AssetParameters.js";import{getCurrentRuntimeIndex as y}from"../Runtimes.js";const s="@ui5/webcomponents-theming",S=()=>m().has(s),P=async e=>{if(!S())return;const t=await n(s,e);t&&p(t,"data-ui5-theme-properties",s,e)},E=()=>{g("data-ui5-theme-properties",s)},U=async(e,t)=>{const o=[...m()].map(async a=>{if(a===s)return;const i=await n(a,e,t);i&&p(i,`data-ui5-component-properties-${y()}`,a)});return Promise.all(o)},w=async e=>{const t=c();if(t)return t;const r=u("OpenUI5Support");if(r&&r.isOpenUI5Detected()){if(r.cssVariablesLoaded())return{themeName:r.getConfigurationSettingsObject()?.theme,baseThemeName:""}}else if(h())return await T(e),c()},I=async e=>{const t=await w(e);!t||e!==t.themeName?await P(e):E();const r=d(e)?e:t&&t.baseThemeName;await U(r||l,t&&t.themeName===e?e:void 0),f(e)};export default I;
1
+ "use strict";import{getThemeProperties as i,getRegisteredPackages as n,isThemeRegistered as g}from"../asset-registries/Themes.js";import{createOrUpdateStyle as c}from"../ManagedStyles.js";import p from"./getThemeDesignerTheme.js";import{fireThemeLoaded as T}from"./ThemeLoaded.js";import{attachCustomThemeStylesToHead as d,getThemeRoot as f}from"../config/ThemeRoot.js";import{DEFAULT_THEME as h}from"../generated/AssetParameters.js";import{getCurrentRuntimeIndex as l}from"../Runtimes.js";export let _lib="ui5",_package="webcomponents-theming";const a="@"+_lib+"/"+_package,u=()=>n().has(a),P=async e=>{if(!u())return;const t=await i(a,e);t&&c(t,"data-ui5-theme-properties",a,e)},y=async(e,t)=>{const s=[...n()].map(async r=>{if(r===a)return;const o=await i(r,e,t);o&&c(o,`data-ui5-component-properties-${l()}`,r)});return Promise.all(s)},k=async e=>{f()&&await d(e);const t=p();if(t)return t},E=async e=>{const t=await k(e),s=(g(e)?e:t&&t.baseThemeName)||h;await P(s),await y(s,t&&t.themeName===e?e:void 0),T(e)};export default E;
2
2
  //# sourceMappingURL=applyTheme.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/theming/applyTheme.ts"],
4
- "sourcesContent": ["import { getThemeProperties, getRegisteredPackages, isThemeRegistered } from \"../asset-registries/Themes.js\";\nimport { removeStyle, createOrUpdateStyle } from \"../ManagedStyles.js\";\nimport getThemeDesignerTheme from \"./getThemeDesignerTheme.js\";\nimport { fireThemeLoaded } from \"./ThemeLoaded.js\";\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport { attachCustomThemeStylesToHead, getThemeRoot } from \"../config/ThemeRoot.js\";\nimport type OpenUI5Support from \"../features/OpenUI5Support.js\";\nimport { DEFAULT_THEME } from \"../generated/AssetParameters.js\";\nimport { getCurrentRuntimeIndex } from \"../Runtimes.js\";\n\nconst BASE_THEME_PACKAGE = \"@ui5/webcomponents-theming\";\n\nconst isThemeBaseRegistered = () => {\n\tconst registeredPackages = getRegisteredPackages();\n\treturn registeredPackages.has(BASE_THEME_PACKAGE);\n};\n\nconst loadThemeBase = async (theme: string) => {\n\tif (!isThemeBaseRegistered()) {\n\t\treturn;\n\t}\n\n\tconst cssData = await getThemeProperties(BASE_THEME_PACKAGE, theme);\n\tif (cssData) {\n\t\tcreateOrUpdateStyle(cssData, \"data-ui5-theme-properties\", BASE_THEME_PACKAGE, theme);\n\t}\n};\n\nconst deleteThemeBase = () => {\n\tremoveStyle(\"data-ui5-theme-properties\", BASE_THEME_PACKAGE);\n};\n\nconst loadComponentPackages = async (theme: string, externalThemeName?: string) => {\n\tconst registeredPackages = getRegisteredPackages();\n\n\tconst packagesStylesPromises = [...registeredPackages].map(async packageName => {\n\t\tif (packageName === BASE_THEME_PACKAGE) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst cssData = await getThemeProperties(packageName, theme, externalThemeName);\n\t\tif (cssData) {\n\t\t\tcreateOrUpdateStyle(cssData, `data-ui5-component-properties-${getCurrentRuntimeIndex()}`, packageName);\n\t\t}\n\t});\n\n\treturn Promise.all(packagesStylesPromises);\n};\n\nconst detectExternalTheme = async (theme: string) => {\n\t// If theme designer theme is detected, use this\n\tconst extTheme = getThemeDesignerTheme();\n\tif (extTheme) {\n\t\treturn extTheme;\n\t}\n\n\t// If OpenUI5Support is enabled, try to find out if it loaded variables\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tif (openUI5Support && openUI5Support.isOpenUI5Detected()) {\n\t\tconst varsLoaded = openUI5Support.cssVariablesLoaded();\n\t\tif (varsLoaded) {\n\t\t\treturn {\n\t\t\t\tthemeName: openUI5Support.getConfigurationSettingsObject()?.theme, // just themeName\n\t\t\t\tbaseThemeName: \"\", // baseThemeName is only relevant for custom themes\n\t\t\t};\n\t\t}\n\t} else if (getThemeRoot()) {\n\t\tawait attachCustomThemeStylesToHead(theme);\n\n\t\treturn getThemeDesignerTheme();\n\t}\n};\n\nconst applyTheme = async (theme: string) => {\n\tconst extTheme = await detectExternalTheme(theme);\n\n\t// Only load theme_base properties if there is no externally loaded theme, or there is, but it is not being loaded\n\tif (!extTheme || theme !== extTheme.themeName) {\n\t\tawait loadThemeBase(theme);\n\t} else {\n\t\tdeleteThemeBase();\n\t}\n\n\t// Always load component packages properties. For non-registered themes, try with the base theme, if any\n\tconst packagesTheme = isThemeRegistered(theme) ? theme : extTheme && extTheme.baseThemeName;\n\tawait loadComponentPackages(packagesTheme || DEFAULT_THEME, extTheme && extTheme.themeName === theme ? theme : undefined);\n\n\tfireThemeLoaded(theme);\n};\n\nexport default applyTheme;\n"],
5
- "mappings": "aAAA,OAAS,sBAAAA,EAAoB,yBAAAC,EAAuB,qBAAAC,MAAyB,gCAC7E,OAAS,eAAAC,EAAa,uBAAAC,MAA2B,sBACjD,OAAOC,MAA2B,6BAClC,OAAS,mBAAAC,MAAuB,mBAChC,OAAS,cAAAC,MAAkB,yBAC3B,OAAS,iCAAAC,EAA+B,gBAAAC,MAAoB,yBAE5D,OAAS,iBAAAC,MAAqB,kCAC9B,OAAS,0BAAAC,MAA8B,iBAEvC,MAAMC,EAAqB,6BAErBC,EAAwB,IACFZ,EAAsB,EACvB,IAAIW,CAAkB,EAG3CE,EAAgB,MAAOC,GAAkB,CAC9C,GAAI,CAACF,EAAsB,EAC1B,OAGD,MAAMG,EAAU,MAAMhB,EAAmBY,EAAoBG,CAAK,EAC9DC,GACHZ,EAAoBY,EAAS,4BAA6BJ,EAAoBG,CAAK,CAErF,EAEME,EAAkB,IAAM,CAC7Bd,EAAY,4BAA6BS,CAAkB,CAC5D,EAEMM,EAAwB,MAAOH,EAAeI,IAA+B,CAGlF,MAAMC,EAAyB,CAAC,GAFLnB,EAAsB,CAEI,EAAE,IAAI,MAAMoB,GAAe,CAC/E,GAAIA,IAAgBT,EACnB,OAGD,MAAMI,EAAU,MAAMhB,EAAmBqB,EAAaN,EAAOI,CAAiB,EAC1EH,GACHZ,EAAoBY,EAAS,iCAAiCL,EAAuB,CAAC,GAAIU,CAAW,CAEvG,CAAC,EAED,OAAO,QAAQ,IAAID,CAAsB,CAC1C,EAEME,EAAsB,MAAOP,GAAkB,CAEpD,MAAMQ,EAAWlB,EAAsB,EACvC,GAAIkB,EACH,OAAOA,EAIR,MAAMC,EAAiBjB,EAAkC,gBAAgB,EACzE,GAAIiB,GAAkBA,EAAe,kBAAkB,GAEtD,GADmBA,EAAe,mBAAmB,EAEpD,MAAO,CACN,UAAWA,EAAe,+BAA+B,GAAG,MAC5D,cAAe,EAChB,UAESf,EAAa,EACvB,aAAMD,EAA8BO,CAAK,EAElCV,EAAsB,CAE/B,EAEMoB,EAAa,MAAOV,GAAkB,CAC3C,MAAMQ,EAAW,MAAMD,EAAoBP,CAAK,EAG5C,CAACQ,GAAYR,IAAUQ,EAAS,UACnC,MAAMT,EAAcC,CAAK,EAEzBE,EAAgB,EAIjB,MAAMS,EAAgBxB,EAAkBa,CAAK,EAAIA,EAAQQ,GAAYA,EAAS,cAC9E,MAAML,EAAsBQ,GAAiBhB,EAAea,GAAYA,EAAS,YAAcR,EAAQA,EAAQ,MAAS,EAExHT,EAAgBS,CAAK,CACtB,EAEA,eAAeU",
6
- "names": ["getThemeProperties", "getRegisteredPackages", "isThemeRegistered", "removeStyle", "createOrUpdateStyle", "getThemeDesignerTheme", "fireThemeLoaded", "getFeature", "attachCustomThemeStylesToHead", "getThemeRoot", "DEFAULT_THEME", "getCurrentRuntimeIndex", "BASE_THEME_PACKAGE", "isThemeBaseRegistered", "loadThemeBase", "theme", "cssData", "deleteThemeBase", "loadComponentPackages", "externalThemeName", "packagesStylesPromises", "packageName", "detectExternalTheme", "extTheme", "openUI5Support", "applyTheme", "packagesTheme"]
4
+ "sourcesContent": ["import { getThemeProperties, getRegisteredPackages, isThemeRegistered } from \"../asset-registries/Themes.js\";\nimport { createOrUpdateStyle } from \"../ManagedStyles.js\";\nimport getThemeDesignerTheme from \"./getThemeDesignerTheme.js\";\nimport { fireThemeLoaded } from \"./ThemeLoaded.js\";\nimport { attachCustomThemeStylesToHead, getThemeRoot } from \"../config/ThemeRoot.js\";\nimport { DEFAULT_THEME } from \"../generated/AssetParameters.js\";\nimport { getCurrentRuntimeIndex } from \"../Runtimes.js\";\n\n// eslint-disable-next-line\nexport let _lib = \"ui5\";\n// eslint-disable-next-line\nexport let _package = \"webcomponents-theming\";\n// eslint-disable-next-line\nconst BASE_THEME_PACKAGE = \"@\" + _lib + \"/\" + _package;\n\nconst isThemeBaseRegistered = () => {\n\tconst registeredPackages = getRegisteredPackages();\n\treturn registeredPackages.has(BASE_THEME_PACKAGE);\n};\n\nconst loadThemeBase = async (theme: string) => {\n\tif (!isThemeBaseRegistered()) {\n\t\treturn;\n\t}\n\n\tconst cssData = await getThemeProperties(BASE_THEME_PACKAGE, theme);\n\tif (cssData) {\n\t\tcreateOrUpdateStyle(cssData, \"data-ui5-theme-properties\", BASE_THEME_PACKAGE, theme);\n\t}\n};\n\nconst loadComponentPackages = async (theme: string, externalThemeName?: string) => {\n\tconst registeredPackages = getRegisteredPackages();\n\n\tconst packagesStylesPromises = [...registeredPackages].map(async packageName => {\n\t\tif (packageName === BASE_THEME_PACKAGE) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst cssData = await getThemeProperties(packageName, theme, externalThemeName);\n\t\tif (cssData) {\n\t\t\tcreateOrUpdateStyle(cssData, `data-ui5-component-properties-${getCurrentRuntimeIndex()}`, packageName);\n\t\t}\n\t});\n\n\treturn Promise.all(packagesStylesPromises);\n};\n\nconst detectExternalTheme = async (theme: string) => {\n\tif (getThemeRoot()) {\n\t\tawait attachCustomThemeStylesToHead(theme);\n\t}\n\n\t// If theme designer theme is detected, use this\n\tconst extTheme = getThemeDesignerTheme();\n\tif (extTheme) {\n\t\treturn extTheme;\n\t}\n};\n\nconst applyTheme = async (theme: string) => {\n\t// Detect external theme if available (e.g., from theme designer or custom theme root)\n\tconst extTheme = await detectExternalTheme(theme);\n\n\t// Determine which theme to use for component packages:\n\t// 1. If the requested theme is registered, use it directly\n\t// 2. If external theme exists, use its base theme (e.g., \"my_custom_theme\" extends \"sap_fiori_3\")\n\t// 3. Otherwise, fallback to the default theme\n\tconst packagesTheme = isThemeRegistered(theme) ? theme : extTheme && extTheme.baseThemeName;\n\tconst effectiveTheme = packagesTheme || DEFAULT_THEME;\n\n\t// Load base theme properties\n\tawait loadThemeBase(effectiveTheme);\n\n\t// Load component-specific theme properties\n\t// Pass external theme name only if it matches the requested theme to avoid conflicts\n\tawait loadComponentPackages(effectiveTheme, extTheme && extTheme.themeName === theme ? theme : undefined);\n\n\tfireThemeLoaded(theme);\n};\n\nexport default applyTheme;\n"],
5
+ "mappings": "aAAA,OAAS,sBAAAA,EAAoB,yBAAAC,EAAuB,qBAAAC,MAAyB,gCAC7E,OAAS,uBAAAC,MAA2B,sBACpC,OAAOC,MAA2B,6BAClC,OAAS,mBAAAC,MAAuB,mBAChC,OAAS,iCAAAC,EAA+B,gBAAAC,MAAoB,yBAC5D,OAAS,iBAAAC,MAAqB,kCAC9B,OAAS,0BAAAC,MAA8B,iBAGhC,WAAI,KAAO,MAEP,SAAW,wBAEtB,MAAMC,EAAqB,IAAM,KAAO,IAAM,SAExCC,EAAwB,IACFV,EAAsB,EACvB,IAAIS,CAAkB,EAG3CE,EAAgB,MAAOC,GAAkB,CAC9C,GAAI,CAACF,EAAsB,EAC1B,OAGD,MAAMG,EAAU,MAAMd,EAAmBU,EAAoBG,CAAK,EAC9DC,GACHX,EAAoBW,EAAS,4BAA6BJ,EAAoBG,CAAK,CAErF,EAEME,EAAwB,MAAOF,EAAeG,IAA+B,CAGlF,MAAMC,EAAyB,CAAC,GAFLhB,EAAsB,CAEI,EAAE,IAAI,MAAMiB,GAAe,CAC/E,GAAIA,IAAgBR,EACnB,OAGD,MAAMI,EAAU,MAAMd,EAAmBkB,EAAaL,EAAOG,CAAiB,EAC1EF,GACHX,EAAoBW,EAAS,iCAAiCL,EAAuB,CAAC,GAAIS,CAAW,CAEvG,CAAC,EAED,OAAO,QAAQ,IAAID,CAAsB,CAC1C,EAEME,EAAsB,MAAON,GAAkB,CAChDN,EAAa,GAChB,MAAMD,EAA8BO,CAAK,EAI1C,MAAMO,EAAWhB,EAAsB,EACvC,GAAIgB,EACH,OAAOA,CAET,EAEMC,EAAa,MAAOR,GAAkB,CAE3C,MAAMO,EAAW,MAAMD,EAAoBN,CAAK,EAO1CS,GADgBpB,EAAkBW,CAAK,EAAIA,EAAQO,GAAYA,EAAS,gBACtCZ,EAGxC,MAAMI,EAAcU,CAAc,EAIlC,MAAMP,EAAsBO,EAAgBF,GAAYA,EAAS,YAAcP,EAAQA,EAAQ,MAAS,EAExGR,EAAgBQ,CAAK,CACtB,EAEA,eAAeQ",
6
+ "names": ["getThemeProperties", "getRegisteredPackages", "isThemeRegistered", "createOrUpdateStyle", "getThemeDesignerTheme", "fireThemeLoaded", "attachCustomThemeStylesToHead", "getThemeRoot", "DEFAULT_THEME", "getCurrentRuntimeIndex", "BASE_THEME_PACKAGE", "isThemeBaseRegistered", "loadThemeBase", "theme", "cssData", "loadComponentPackages", "externalThemeName", "packagesStylesPromises", "packageName", "detectExternalTheme", "extTheme", "applyTheme", "effectiveTheme"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";const n=10,a=t=>Array.isArray(t)?t.filter(r=>!!r).flat(10).map(r=>typeof r=="string"?r:r.content).join(" "):typeof t=="string"?t:t.content;export default a;
1
+ "use strict";const n=10,e=t=>Array.isArray(t)?t.filter(r=>!!r).flat(10).join(" "):t;export default e;
2
2
  //# sourceMappingURL=getStylesString.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/theming/getStylesString.ts"],
4
- "sourcesContent": ["import type { ComponentStylesData, StyleData } from \"../types.js\";\n\nconst MAX_DEPTH_INHERITED_CLASSES = 10; // TypeScript complains about Infinity and big numbers\n\nconst getStylesString = (styles: ComponentStylesData) => {\n\tif (Array.isArray(styles)) {\n\t\treturn (styles.filter(style => !!style).flat(MAX_DEPTH_INHERITED_CLASSES) as Array<StyleData>).map((style: StyleData) => {\n\t\t\treturn typeof style === \"string\" ? style : style.content;\n\t\t}).join(\" \");\n\t}\n\n\treturn typeof styles === \"string\" ? styles : styles.content;\n};\n\nexport default getStylesString;\n"],
5
- "mappings": "aAEA,MAAMA,EAA8B,GAE9BC,EAAmBC,GACpB,MAAM,QAAQA,CAAM,EACfA,EAAO,OAAOC,GAAS,CAAC,CAACA,CAAK,EAAE,KAAK,EAA2B,EAAuB,IAAKA,GAC5F,OAAOA,GAAU,SAAWA,EAAQA,EAAM,OACjD,EAAE,KAAK,GAAG,EAGL,OAAOD,GAAW,SAAWA,EAASA,EAAO,QAGrD,eAAeD",
4
+ "sourcesContent": ["import type { ComponentStylesData } from \"../types.js\";\n\nconst MAX_DEPTH_INHERITED_CLASSES = 10; // TypeScript complains about Infinity and big numbers\n\nconst getStylesString = (styles: ComponentStylesData) => {\n\tif (Array.isArray(styles)) {\n\t\treturn (styles.filter(style => !!style).flat(MAX_DEPTH_INHERITED_CLASSES) as Array<string>).join(\" \");\n\t}\n\n\treturn styles;\n};\n\nexport default getStylesString;\n"],
5
+ "mappings": "aAEA,MAAMA,EAA8B,GAE9BC,EAAmBC,GACpB,MAAM,QAAQA,CAAM,EACfA,EAAO,OAAOC,GAAS,CAAC,CAACA,CAAK,EAAE,KAAK,EAA2B,EAAoB,KAAK,GAAG,EAG9FD,EAGR,eAAeD",
6
6
  "names": ["MAX_DEPTH_INHERITED_CLASSES", "getStylesString", "styles", "style"]
7
7
  }
@@ -1,2 +1,2 @@
1
- "use strict";const r=new Set,s=()=>{let e=document.querySelector(".sapThemeMetaData-Base-baseLib")||document.querySelector(".sapThemeMetaData-UI5-sap-ui-core");if(e)return getComputedStyle(e).backgroundImage;e=document.createElement("span"),e.style.display="none",e.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(e);let t=getComputedStyle(e).backgroundImage;return t==="none"&&(e.classList.add("sapThemeMetaData-UI5-sap-ui-core"),t=getComputedStyle(e).backgroundImage),document.body.removeChild(e),t},o=e=>{const t=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(e);if(t&&t.length>=2){let a=t[1];if(a=a.replace(/\\"/g,'"'),a.charAt(0)!=="{"&&a.charAt(a.length-1)!=="}")try{a=decodeURIComponent(a)}catch{r.has("decode")||(console.warn("Malformed theme metadata string, unable to decodeURIComponent"),r.add("decode"));return}try{return JSON.parse(a)}catch{r.has("parse")||(console.warn("Malformed theme metadata string, unable to parse JSON"),r.add("parse"))}}},d=e=>{let t,a;try{t=e.Path.match(/\.([^.]+)\.css_variables$/)[1],a=e.Extends[0]}catch{r.has("object")||(console.warn("Malformed theme metadata Object",e),r.add("object"));return}return{themeName:t,baseThemeName:a}},m=()=>{const e=s();if(!e||e==="none")return;const t=o(e);if(t)return d(t)};export default m;
1
+ "use strict";const r=new Set,s=()=>{let e=document.querySelector(".sapThemeMetaData-Base-baseLib")||document.querySelector(".sapThemeMetaData-UI5-sap-ui-core");if(e)return getComputedStyle(e).backgroundImage;e=document.createElement("span"),e.style.display="none",e.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(e);let t=getComputedStyle(e).backgroundImage;return t==="none"&&(e.classList.add("sapThemeMetaData-UI5-sap-ui-core"),t=getComputedStyle(e).backgroundImage),document.body.removeChild(e),t},o=e=>{const t=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(e);if(t&&t.length>=2){let a=t[1];if(a=a.replace(/\\"/g,'"'),a.charAt(0)!=="{"&&a.charAt(a.length-1)!=="}")try{a=decodeURIComponent(a)}catch{r.has("decode")||(console.warn("Malformed theme metadata string, unable to decodeURIComponent"),r.add("decode"));return}try{return JSON.parse(a)}catch{r.has("parse")||(console.warn("Malformed theme metadata string, unable to parse JSON"),r.add("parse"))}}},d=e=>{let t,a;try{const n=e.Path.split(".");t=n.length===4?n[2]:getComputedStyle(document.body).getPropertyValue("--sapSapThemeId"),a=e.Extends[0]}catch{r.has("object")||(console.warn("Malformed theme metadata Object",e),r.add("object"));return}return{themeName:t,baseThemeName:a}},m=()=>{const e=s();if(!e||e==="none")return;const t=o(e);if(t)return d(t)};export default m;
2
2
  //# sourceMappingURL=getThemeDesignerTheme.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/theming/getThemeDesignerTheme.ts"],
4
- "sourcesContent": ["type ThemeDescriptor = {\n\tthemeName: string,\n\tbaseThemeName?: string,\n};\n\ntype ThemeMetadata = {\n\tPath: string,\n\tExtends: Array<string>,\n};\n\nconst warnings = new Set<string>();\n\nconst getThemeMetadata = () => {\n\t// Check if the class was already applied, most commonly to the link/style tag with the CSS Variables\n\tlet el = document.querySelector(\".sapThemeMetaData-Base-baseLib\") || document.querySelector(\".sapThemeMetaData-UI5-sap-ui-core\");\n\tif (el) {\n\t\treturn getComputedStyle(el).backgroundImage;\n\t}\n\n\tel = document.createElement(\"span\");\n\t(el as HTMLSpanElement).style.display = \"none\";\n\n\t// Try with sapThemeMetaData-Base-baseLib first\n\tel.classList.add(\"sapThemeMetaData-Base-baseLib\");\n\tdocument.body.appendChild(el);\n\tlet metadata = getComputedStyle(el).backgroundImage;\n\n\t// Try with sapThemeMetaData-UI5-sap-ui-core only if the previous selector was not found\n\tif (metadata === \"none\") {\n\t\tel.classList.add(\"sapThemeMetaData-UI5-sap-ui-core\");\n\t\tmetadata = getComputedStyle(el).backgroundImage;\n\t}\n\n\tdocument.body.removeChild(el);\n\n\treturn metadata;\n};\n\nconst parseThemeMetadata = (metadataString: string) => {\n\tconst params = /\\([\"']?data:text\\/plain;utf-8,(.*?)['\"]?\\)$/i.exec(metadataString);\n\tif (params && params.length >= 2) {\n\t\tlet paramsString = params[1];\n\t\tparamsString = paramsString.replace(/\\\\\"/g, `\"`);\n\t\tif (paramsString.charAt(0) !== \"{\" && paramsString.charAt(paramsString.length - 1) !== \"}\") {\n\t\t\ttry {\n\t\t\t\tparamsString = decodeURIComponent(paramsString);\n\t\t\t} catch (ex) {\n\t\t\t\tif (!warnings.has(\"decode\")) {\n\t\t\t\t\tconsole.warn(\"Malformed theme metadata string, unable to decodeURIComponent\"); // eslint-disable-line\n\t\t\t\t\twarnings.add(\"decode\");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\treturn JSON.parse(paramsString) as ThemeMetadata;\n\t\t} catch (ex) {\n\t\t\tif (!warnings.has(\"parse\")) {\n\t\t\t\tconsole.warn(\"Malformed theme metadata string, unable to parse JSON\"); // eslint-disable-line\n\t\t\t\twarnings.add(\"parse\");\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst processThemeMetadata = (metadata: ThemeMetadata): ThemeDescriptor | undefined => {\n\tlet themeName;\n\tlet baseThemeName;\n\n\ttry {\n\t\tthemeName = metadata.Path.match(/\\.([^.]+)\\.css_variables$/)![1];\n\t\tbaseThemeName = metadata.Extends[0];\n\t} catch (ex) {\n\t\tif (!warnings.has(\"object\")) {\n\t\t\tconsole.warn(\"Malformed theme metadata Object\", metadata); // eslint-disable-line\n\t\t\twarnings.add(\"object\");\n\t\t}\n\t\treturn;\n\t}\n\n\treturn {\n\t\tthemeName,\n\t\tbaseThemeName,\n\t};\n};\n\nconst getThemeDesignerTheme = (): ThemeDescriptor | undefined => {\n\tconst metadataString = getThemeMetadata();\n\tif (!metadataString || metadataString === \"none\") {\n\t\treturn;\n\t}\n\n\tconst metadata = parseThemeMetadata(metadataString);\n\n\tif (metadata) {\n\t\treturn processThemeMetadata(metadata);\n\t}\n};\n\nexport default getThemeDesignerTheme;\nexport type { ThemeDescriptor };\n"],
5
- "mappings": "aAUA,MAAMA,EAAW,IAAI,IAEfC,EAAmB,IAAM,CAE9B,IAAIC,EAAK,SAAS,cAAc,gCAAgC,GAAK,SAAS,cAAc,mCAAmC,EAC/H,GAAIA,EACH,OAAO,iBAAiBA,CAAE,EAAE,gBAG7BA,EAAK,SAAS,cAAc,MAAM,EACjCA,EAAuB,MAAM,QAAU,OAGxCA,EAAG,UAAU,IAAI,+BAA+B,EAChD,SAAS,KAAK,YAAYA,CAAE,EAC5B,IAAIC,EAAW,iBAAiBD,CAAE,EAAE,gBAGpC,OAAIC,IAAa,SAChBD,EAAG,UAAU,IAAI,kCAAkC,EACnDC,EAAW,iBAAiBD,CAAE,EAAE,iBAGjC,SAAS,KAAK,YAAYA,CAAE,EAErBC,CACR,EAEMC,EAAsBC,GAA2B,CACtD,MAAMC,EAAS,+CAA+C,KAAKD,CAAc,EACjF,GAAIC,GAAUA,EAAO,QAAU,EAAG,CACjC,IAAIC,EAAeD,EAAO,CAAC,EAE3B,GADAC,EAAeA,EAAa,QAAQ,OAAQ,GAAG,EAC3CA,EAAa,OAAO,CAAC,IAAM,KAAOA,EAAa,OAAOA,EAAa,OAAS,CAAC,IAAM,IACtF,GAAI,CACHA,EAAe,mBAAmBA,CAAY,CAC/C,MAAa,CACPP,EAAS,IAAI,QAAQ,IACzB,QAAQ,KAAK,+DAA+D,EAC5EA,EAAS,IAAI,QAAQ,GAEtB,MACD,CAED,GAAI,CACH,OAAO,KAAK,MAAMO,CAAY,CAC/B,MAAa,CACPP,EAAS,IAAI,OAAO,IACxB,QAAQ,KAAK,uDAAuD,EACpEA,EAAS,IAAI,OAAO,EAEtB,CACD,CACD,EAEMQ,EAAwBL,GAAyD,CACtF,IAAIM,EACAC,EAEJ,GAAI,CACHD,EAAYN,EAAS,KAAK,MAAM,2BAA2B,EAAG,CAAC,EAC/DO,EAAgBP,EAAS,QAAQ,CAAC,CACnC,MAAa,CACPH,EAAS,IAAI,QAAQ,IACzB,QAAQ,KAAK,kCAAmCG,CAAQ,EACxDH,EAAS,IAAI,QAAQ,GAEtB,MACD,CAEA,MAAO,CACN,UAAAS,EACA,cAAAC,CACD,CACD,EAEMC,EAAwB,IAAmC,CAChE,MAAMN,EAAiBJ,EAAiB,EACxC,GAAI,CAACI,GAAkBA,IAAmB,OACzC,OAGD,MAAMF,EAAWC,EAAmBC,CAAc,EAElD,GAAIF,EACH,OAAOK,EAAqBL,CAAQ,CAEtC,EAEA,eAAeQ",
6
- "names": ["warnings", "getThemeMetadata", "el", "metadata", "parseThemeMetadata", "metadataString", "params", "paramsString", "processThemeMetadata", "themeName", "baseThemeName", "getThemeDesignerTheme"]
4
+ "sourcesContent": ["type ThemeDescriptor = {\n\tthemeName: string,\n\tbaseThemeName?: string,\n};\n\ntype ThemeMetadata = {\n\tPath: string,\n\tExtends: Array<string>,\n};\n\nconst warnings = new Set<string>();\n\nconst getThemeMetadata = () => {\n\t// Check if the class was already applied, most commonly to the link/style tag with the CSS Variables\n\tlet el = document.querySelector(\".sapThemeMetaData-Base-baseLib\") || document.querySelector(\".sapThemeMetaData-UI5-sap-ui-core\");\n\tif (el) {\n\t\treturn getComputedStyle(el).backgroundImage;\n\t}\n\n\tel = document.createElement(\"span\");\n\t(el as HTMLSpanElement).style.display = \"none\";\n\n\t// Try with sapThemeMetaData-Base-baseLib first\n\tel.classList.add(\"sapThemeMetaData-Base-baseLib\");\n\tdocument.body.appendChild(el);\n\tlet metadata = getComputedStyle(el).backgroundImage;\n\n\t// Try with sapThemeMetaData-UI5-sap-ui-core only if the previous selector was not found\n\tif (metadata === \"none\") {\n\t\tel.classList.add(\"sapThemeMetaData-UI5-sap-ui-core\");\n\t\tmetadata = getComputedStyle(el).backgroundImage;\n\t}\n\n\tdocument.body.removeChild(el);\n\n\treturn metadata;\n};\n\nconst parseThemeMetadata = (metadataString: string) => {\n\tconst params = /\\([\"']?data:text\\/plain;utf-8,(.*?)['\"]?\\)$/i.exec(metadataString);\n\tif (params && params.length >= 2) {\n\t\tlet paramsString = params[1];\n\t\tparamsString = paramsString.replace(/\\\\\"/g, `\"`);\n\t\tif (paramsString.charAt(0) !== \"{\" && paramsString.charAt(paramsString.length - 1) !== \"}\") {\n\t\t\ttry {\n\t\t\t\tparamsString = decodeURIComponent(paramsString);\n\t\t\t} catch (ex) {\n\t\t\t\tif (!warnings.has(\"decode\")) {\n\t\t\t\t\tconsole.warn(\"Malformed theme metadata string, unable to decodeURIComponent\"); // eslint-disable-line\n\t\t\t\t\twarnings.add(\"decode\");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\treturn JSON.parse(paramsString) as ThemeMetadata;\n\t\t} catch (ex) {\n\t\t\tif (!warnings.has(\"parse\")) {\n\t\t\t\tconsole.warn(\"Malformed theme metadata string, unable to parse JSON\"); // eslint-disable-line\n\t\t\t\twarnings.add(\"parse\");\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst processThemeMetadata = (metadata: ThemeMetadata): ThemeDescriptor | undefined => {\n\tlet themeName;\n\tlet baseThemeName;\n\n\ttry {\n\t\tconst pathParts = metadata.Path.split(\".\");\n\t\tthemeName = pathParts.length === 4 ? pathParts[2] : getComputedStyle(document.body).getPropertyValue(\"--sapSapThemeId\");\n\t\tbaseThemeName = metadata.Extends[0];\n\t} catch (ex) {\n\t\tif (!warnings.has(\"object\")) {\n\t\t\tconsole.warn(\"Malformed theme metadata Object\", metadata); // eslint-disable-line\n\t\t\twarnings.add(\"object\");\n\t\t}\n\t\treturn;\n\t}\n\n\treturn {\n\t\tthemeName,\n\t\tbaseThemeName,\n\t};\n};\n\nconst getThemeDesignerTheme = (): ThemeDescriptor | undefined => {\n\tconst metadataString = getThemeMetadata();\n\tif (!metadataString || metadataString === \"none\") {\n\t\treturn;\n\t}\n\n\tconst metadata = parseThemeMetadata(metadataString);\n\n\tif (metadata) {\n\t\treturn processThemeMetadata(metadata);\n\t}\n};\n\nexport default getThemeDesignerTheme;\nexport type { ThemeDescriptor };\n"],
5
+ "mappings": "aAUA,MAAMA,EAAW,IAAI,IAEfC,EAAmB,IAAM,CAE9B,IAAIC,EAAK,SAAS,cAAc,gCAAgC,GAAK,SAAS,cAAc,mCAAmC,EAC/H,GAAIA,EACH,OAAO,iBAAiBA,CAAE,EAAE,gBAG7BA,EAAK,SAAS,cAAc,MAAM,EACjCA,EAAuB,MAAM,QAAU,OAGxCA,EAAG,UAAU,IAAI,+BAA+B,EAChD,SAAS,KAAK,YAAYA,CAAE,EAC5B,IAAIC,EAAW,iBAAiBD,CAAE,EAAE,gBAGpC,OAAIC,IAAa,SAChBD,EAAG,UAAU,IAAI,kCAAkC,EACnDC,EAAW,iBAAiBD,CAAE,EAAE,iBAGjC,SAAS,KAAK,YAAYA,CAAE,EAErBC,CACR,EAEMC,EAAsBC,GAA2B,CACtD,MAAMC,EAAS,+CAA+C,KAAKD,CAAc,EACjF,GAAIC,GAAUA,EAAO,QAAU,EAAG,CACjC,IAAIC,EAAeD,EAAO,CAAC,EAE3B,GADAC,EAAeA,EAAa,QAAQ,OAAQ,GAAG,EAC3CA,EAAa,OAAO,CAAC,IAAM,KAAOA,EAAa,OAAOA,EAAa,OAAS,CAAC,IAAM,IACtF,GAAI,CACHA,EAAe,mBAAmBA,CAAY,CAC/C,MAAa,CACPP,EAAS,IAAI,QAAQ,IACzB,QAAQ,KAAK,+DAA+D,EAC5EA,EAAS,IAAI,QAAQ,GAEtB,MACD,CAED,GAAI,CACH,OAAO,KAAK,MAAMO,CAAY,CAC/B,MAAa,CACPP,EAAS,IAAI,OAAO,IACxB,QAAQ,KAAK,uDAAuD,EACpEA,EAAS,IAAI,OAAO,EAEtB,CACD,CACD,EAEMQ,EAAwBL,GAAyD,CACtF,IAAIM,EACAC,EAEJ,GAAI,CACH,MAAMC,EAAYR,EAAS,KAAK,MAAM,GAAG,EACzCM,EAAYE,EAAU,SAAW,EAAIA,EAAU,CAAC,EAAI,iBAAiB,SAAS,IAAI,EAAE,iBAAiB,iBAAiB,EACtHD,EAAgBP,EAAS,QAAQ,CAAC,CACnC,MAAa,CACPH,EAAS,IAAI,QAAQ,IACzB,QAAQ,KAAK,kCAAmCG,CAAQ,EACxDH,EAAS,IAAI,QAAQ,GAEtB,MACD,CAEA,MAAO,CACN,UAAAS,EACA,cAAAC,CACD,CACD,EAEME,EAAwB,IAAmC,CAChE,MAAMP,EAAiBJ,EAAiB,EACxC,GAAI,CAACI,GAAkBA,IAAmB,OACzC,OAGD,MAAMF,EAAWC,EAAmBC,CAAc,EAElD,GAAIF,EACH,OAAOK,EAAqBL,CAAQ,CAEtC,EAEA,eAAeS",
6
+ "names": ["warnings", "getThemeMetadata", "el", "metadata", "parseThemeMetadata", "metadataString", "params", "paramsString", "processThemeMetadata", "themeName", "baseThemeName", "pathParts", "getThemeDesignerTheme"]
7
7
  }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=jsx.d.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";export{Fragment}from"./preact.module.js";import{JSXInternal as n}from"./jsx.js";export{n as JSX};
2
+ //# sourceMappingURL=jsxRuntime.module.d.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/thirdparty/preact/jsxRuntime.module.d.ts"],
4
+ "sourcesContent": ["// Intentionally not using a relative path to take advantage of\n// the TS version resolution mechanism\nexport { Fragment } from './preact.module.js';\nimport {\n\tComponentType,\n\tComponentChild,\n\tComponentChildren,\n\tVNode,\n\tAttributes\n} from './preact.module.js';\nimport { JSXInternal } from './jsx.js';\n\nexport function jsx(\n\ttype: string,\n\tprops: JSXInternal.HTMLAttributes &\n\t\tJSXInternal.SVGAttributes &\n\t\tRecord<string, any> & { children?: ComponentChild },\n\tkey?: string\n): VNode<any>;\nexport function jsx<P>(\n\ttype: ComponentType<P>,\n\tprops: Attributes & P & { children?: ComponentChild },\n\tkey?: string\n): VNode<any>;\n\nexport function jsxs(\n\ttype: string,\n\tprops: JSXInternal.HTMLAttributes &\n\t\tJSXInternal.SVGAttributes &\n\t\tRecord<string, any> & { children?: ComponentChild[] },\n\tkey?: string\n): VNode<any>;\nexport function jsxs<P>(\n\ttype: ComponentType<P>,\n\tprops: Attributes & P & { children?: ComponentChild[] },\n\tkey?: string\n): VNode<any>;\n\nexport function jsxDEV(\n\ttype: string,\n\tprops: JSXInternal.HTMLAttributes &\n\t\tJSXInternal.SVGAttributes &\n\t\tRecord<string, any> & { children?: ComponentChildren },\n\tkey?: string\n): VNode<any>;\nexport function jsxDEV<P>(\n\ttype: ComponentType<P>,\n\tprops: Attributes & P & { children?: ComponentChildren },\n\tkey?: string\n): VNode<any>;\n\n// These are not expected to be used manually, but by a JSX transform\nexport function jsxTemplate(\n\ttemplate: string[],\n\t...expressions: any[]\n): VNode<any>;\nexport function jsxAttr(name: string, value: any): string | null;\nexport function jsxEscape<T>(\n\tvalue: T\n): string | null | VNode<any> | Array<string | null | VNode>;\n\nexport { JSXInternal as JSX };\n"],
5
+ "mappings": "aAEA,OAAS,aAAgB,qBAQzB,OAAS,eAAAA,MAAmB,WAmD5B,OAASA,KAAe",
6
+ "names": ["JSXInternal"]
7
+ }
@@ -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,2 @@
1
+ "use strict";import{JSXInternal as t}from"./jsx";export const JSX=t;export class Component{}export var createElement;(e=>e.JSX=t)(createElement||={});export var h;(e=>e.JSX=t)(h||={});export let Fragment,options;
2
+ //# sourceMappingURL=preact.module.d.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/thirdparty/preact/preact.module.d.ts"],
4
+ "sourcesContent": ["export as namespace preact;\n\nimport { JSXInternal } from './jsx';\n\nexport import JSX = JSXInternal;\n\n//\n// Preact Virtual DOM\n// -----------------------------------\n\nexport interface VNode<P = {}> {\n\ttype: ComponentType<P> | string;\n\tprops: P & { children: ComponentChildren };\n\tkey: Key;\n\t/**\n\t * ref is not guaranteed by React.ReactElement, for compatibility reasons\n\t * with popular react libs we define it as optional too\n\t */\n\tref?: Ref<any> | null;\n\t/**\n\t * The time this `vnode` started rendering. Will only be set when\n\t * the devtools are attached.\n\t * Default value: `0`\n\t */\n\tstartTime?: number;\n\t/**\n\t * The time that the rendering of this `vnode` was completed. Will only be\n\t * set when the devtools are attached.\n\t * Default value: `-1`\n\t */\n\tendTime?: number;\n}\n\n//\n// Preact Component interface\n// -----------------------------------\n\nexport type Key = string | number | any;\n\nexport type RefObject<T> = { current: T | null };\nexport type RefCallback<T> = (instance: T | null) => void;\nexport type Ref<T> = RefObject<T> | RefCallback<T> | null;\n\nexport type ComponentChild =\n\t| VNode<any>\n\t| object\n\t| string\n\t| number\n\t| bigint\n\t| boolean\n\t| null\n\t| undefined;\nexport type ComponentChildren = ComponentChild[] | ComponentChild;\n\nexport interface Attributes {\n\tkey?: Key | undefined;\n\tjsx?: boolean | undefined;\n}\n\nexport interface ClassAttributes<T> extends Attributes {\n\tref?: Ref<T>;\n}\n\nexport interface PreactDOMAttributes {\n\tchildren?: ComponentChildren;\n\tdangerouslySetInnerHTML?: {\n\t\t__html: string;\n\t};\n}\n\nexport interface ErrorInfo {\n\tcomponentStack?: string;\n}\n\nexport type RenderableProps<P, RefType = any> = P &\n\tReadonly<Attributes & { children?: ComponentChildren; ref?: Ref<RefType> }>;\n\nexport type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;\nexport type ComponentFactory<P = {}> = ComponentType<P>;\n\nexport type ComponentProps<\n\tC extends ComponentType<any> | keyof JSXInternal.IntrinsicElements\n> = C extends ComponentType<infer P>\n\t? P\n\t: C extends keyof JSXInternal.IntrinsicElements\n\t\t? JSXInternal.IntrinsicElements[C]\n\t\t: never;\n\nexport interface FunctionComponent<P = {}> {\n\t(props: RenderableProps<P>, context?: any): ComponentChildren;\n\tdisplayName?: string;\n\tdefaultProps?: Partial<P> | undefined;\n}\nexport interface FunctionalComponent<P = {}> extends FunctionComponent<P> {}\n\nexport interface ComponentClass<P = {}, S = {}> {\n\tnew (props: P, context?: any): Component<P, S>;\n\tdisplayName?: string;\n\tdefaultProps?: Partial<P>;\n\tcontextType?: Context<any>;\n\tgetDerivedStateFromProps?(\n\t\tprops: Readonly<P>,\n\t\tstate: Readonly<S>\n\t): Partial<S> | null;\n\tgetDerivedStateFromError?(error: any): Partial<S> | null;\n}\nexport interface ComponentConstructor<P = {}, S = {}>\n\textends ComponentClass<P, S> {}\n\n// Type alias for a component instance considered generally, whether stateless or stateful.\nexport type AnyComponent<P = {}, S = {}> =\n\t| FunctionComponent<P>\n\t| ComponentConstructor<P, S>;\n\nexport interface Component<P = {}, S = {}> {\n\tcomponentWillMount?(): void;\n\tcomponentDidMount?(): void;\n\tcomponentWillUnmount?(): void;\n\tgetChildContext?(): object;\n\tcomponentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;\n\tshouldComponentUpdate?(\n\t\tnextProps: Readonly<P>,\n\t\tnextState: Readonly<S>,\n\t\tnextContext: any\n\t): boolean;\n\tcomponentWillUpdate?(\n\t\tnextProps: Readonly<P>,\n\t\tnextState: Readonly<S>,\n\t\tnextContext: any\n\t): void;\n\tgetSnapshotBeforeUpdate?(oldProps: Readonly<P>, oldState: Readonly<S>): any;\n\tcomponentDidUpdate?(\n\t\tpreviousProps: Readonly<P>,\n\t\tpreviousState: Readonly<S>,\n\t\tsnapshot: any\n\t): void;\n\tcomponentDidCatch?(error: any, errorInfo: ErrorInfo): void;\n}\n\nexport abstract class Component<P, S> {\n\tconstructor(props?: P, context?: any);\n\n\tstatic displayName?: string;\n\tstatic defaultProps?: any;\n\tstatic contextType?: Context<any>;\n\n\t// Static members cannot reference class type parameters. This is not\n\t// supported in TypeScript. Reusing the same type arguments from `Component`\n\t// will lead to an impossible state where one cannot satisfy the type\n\t// constraint under no circumstances, see #1356.In general type arguments\n\t// seem to be a bit buggy and not supported well at the time of this\n\t// writing with TS 3.3.3333.\n\tstatic getDerivedStateFromProps?(\n\t\tprops: Readonly<object>,\n\t\tstate: Readonly<object>\n\t): object | null;\n\tstatic getDerivedStateFromError?(error: any): object | null;\n\n\tstate: Readonly<S>;\n\tprops: RenderableProps<P>;\n\tcontext: any;\n\tbase?: Element | Text;\n\n\t// From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/e836acc75a78cf0655b5dfdbe81d69fdd4d8a252/types/react/index.d.ts#L402\n\t// // We MUST keep setState() as a unified signature because it allows proper checking of the method return type.\n\t// // See: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18365#issuecomment-351013257\n\tsetState<K extends keyof S>(\n\t\tstate:\n\t\t\t| ((\n\t\t\t\t\tprevState: Readonly<S>,\n\t\t\t\t\tprops: Readonly<P>\n\t\t\t ) => Pick<S, K> | Partial<S> | null)\n\t\t\t| (Pick<S, K> | Partial<S> | null),\n\t\tcallback?: () => void\n\t): void;\n\n\tforceUpdate(callback?: () => void): void;\n\n\tabstract render(\n\t\tprops?: RenderableProps<P>,\n\t\tstate?: Readonly<S>,\n\t\tcontext?: any\n\t): ComponentChildren;\n}\n\n//\n// Preact createElement\n// -----------------------------------\n\nexport function createElement(\n\ttype: 'input',\n\tprops:\n\t\t| (JSXInternal.DOMAttributes<HTMLInputElement> &\n\t\t\t\tClassAttributes<HTMLInputElement>)\n\t\t| null,\n\t...children: ComponentChildren[]\n): VNode<\n\tJSXInternal.DOMAttributes<HTMLInputElement> &\n\t\tClassAttributes<HTMLInputElement>\n>;\nexport function createElement<\n\tP extends JSXInternal.HTMLAttributes<T>,\n\tT extends HTMLElement\n>(\n\ttype: keyof JSXInternal.IntrinsicElements,\n\tprops: (ClassAttributes<T> & P) | null,\n\t...children: ComponentChildren[]\n): VNode<ClassAttributes<T> & P>;\nexport function createElement<\n\tP extends JSXInternal.SVGAttributes<T>,\n\tT extends HTMLElement\n>(\n\ttype: keyof JSXInternal.IntrinsicSVGElements,\n\tprops: (ClassAttributes<T> & P) | null,\n\t...children: ComponentChildren[]\n): VNode<ClassAttributes<T> & P>;\nexport function createElement<T extends HTMLElement>(\n\ttype: string,\n\tprops:\n\t\t| (ClassAttributes<T> &\n\t\t\t\tJSXInternal.HTMLAttributes &\n\t\t\t\tJSXInternal.SVGAttributes)\n\t\t| null,\n\t...children: ComponentChildren[]\n): VNode<\n\tClassAttributes<T> & JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes\n>;\nexport function createElement<P>(\n\ttype: ComponentType<P> | string,\n\tprops: (Attributes & P) | null,\n\t...children: ComponentChildren[]\n): VNode<P>;\nexport namespace createElement {\n\texport import JSX = JSXInternal;\n}\n\nexport function h(\n\ttype: 'input',\n\tprops:\n\t\t| (JSXInternal.DOMAttributes<HTMLInputElement> &\n\t\t\t\tClassAttributes<HTMLInputElement>)\n\t\t| null,\n\t...children: ComponentChildren[]\n): VNode<\n\tJSXInternal.DOMAttributes<HTMLInputElement> &\n\t\tClassAttributes<HTMLInputElement>\n>;\nexport function h<\n\tP extends JSXInternal.HTMLAttributes<T>,\n\tT extends HTMLElement\n>(\n\ttype: keyof JSXInternal.IntrinsicElements,\n\tprops: (ClassAttributes<T> & P) | null,\n\t...children: ComponentChildren[]\n): VNode<ClassAttributes<T> & P>;\nexport function h<\n\tP extends JSXInternal.SVGAttributes<T>,\n\tT extends HTMLElement\n>(\n\ttype: keyof JSXInternal.IntrinsicSVGElements,\n\tprops: (ClassAttributes<T> & P) | null,\n\t...children: ComponentChildren[]\n): VNode<ClassAttributes<T> & P>;\nexport function h<T extends HTMLElement>(\n\ttype: string,\n\tprops:\n\t\t| (ClassAttributes<T> &\n\t\t\t\tJSXInternal.HTMLAttributes &\n\t\t\t\tJSXInternal.SVGAttributes)\n\t\t| null,\n\t...children: ComponentChildren[]\n): VNode<\n\t| (ClassAttributes<T> &\n\t\t\tJSXInternal.HTMLAttributes &\n\t\t\tJSXInternal.SVGAttributes)\n\t| null\n>;\nexport function h<P>(\n\ttype: ComponentType<P> | string,\n\tprops: (Attributes & P) | null,\n\t...children: ComponentChildren[]\n): VNode<Attributes & P>;\nexport namespace h {\n\texport import JSX = JSXInternal;\n}\n\n//\n// Preact render\n// -----------------------------------\ninterface ContainerNode {\n\treadonly nodeType: number;\n\treadonly parentNode: ContainerNode | null;\n\treadonly firstChild: ContainerNode | null;\n\treadonly childNodes: ArrayLike<ContainerNode>;\n\n\tcontains(other: ContainerNode | null): boolean;\n\tinsertBefore(node: ContainerNode, child: ContainerNode | null): ContainerNode;\n\tappendChild(node: ContainerNode): ContainerNode;\n\tremoveChild(child: ContainerNode): ContainerNode;\n}\n\nexport function render(vnode: ComponentChild, parent: ContainerNode): void;\n/**\n * @deprecated Will be removed in v11.\n *\n * Replacement Preact 10+ implementation can be found here: https://gist.github.com/developit/f4c67a2ede71dc2fab7f357f39cff28c\n */\nexport function render(\n\tvnode: ComponentChild,\n\tparent: ContainerNode,\n\treplaceNode?: Element | Text\n): void;\nexport function hydrate(vnode: ComponentChild, parent: ContainerNode): void;\nexport function cloneElement(\n\tvnode: VNode<any>,\n\tprops?: any,\n\t...children: ComponentChildren[]\n): VNode<any>;\nexport function cloneElement<P>(\n\tvnode: VNode<P>,\n\tprops?: any,\n\t...children: ComponentChildren[]\n): VNode<P>;\n\n//\n// Preact Built-in Components\n// -----------------------------------\n\n// TODO: Revisit what the public type of this is...\nexport let Fragment: FunctionComponent<{}>;\n\n//\n// Preact options\n// -----------------------------------\n\n/**\n * Global options for preact\n */\nexport interface Options {\n\t/** Attach a hook that is invoked whenever a VNode is created. */\n\tvnode?(vnode: VNode): void;\n\t/** Attach a hook that is invoked immediately before a vnode is unmounted. */\n\tunmount?(vnode: VNode): void;\n\t/** Attach a hook that is invoked after a vnode has rendered. */\n\tdiffed?(vnode: VNode): void;\n\tevent?(e: Event): any;\n\trequestAnimationFrame?(callback: () => void): void;\n\tdebounceRendering?(cb: () => void): void;\n\tuseDebugValue?(value: string | number): void;\n\t_addHookName?(name: string | number): void;\n\t__suspenseDidResolve?(vnode: VNode, cb: () => void): void;\n\t// __canSuspenseResolve?(vnode: VNode, cb: () => void): void;\n\n\t/**\n\t * Customize attribute serialization when a precompiled JSX transform\n\t * is used.\n\t */\n\tattr?(name: string, value: any): string | void;\n}\n\nexport let options: Options;\n\n//\n// Preact helpers\n// -----------------------------------\nexport function createRef<T = any>(): RefObject<T>;\nexport function toChildArray(\n\tchildren: ComponentChildren\n): Array<VNode | string | number>;\nexport function isValidElement(vnode: any): vnode is VNode;\n\n//\n// Context\n// -----------------------------------\nexport interface Consumer<T>\n\textends FunctionComponent<{\n\t\tchildren: (value: T) => ComponentChildren;\n\t}> {}\nexport interface PreactConsumer<T> extends Consumer<T> {}\n\nexport interface Provider<T>\n\textends FunctionComponent<{\n\t\tvalue: T;\n\t\tchildren?: ComponentChildren;\n\t}> {}\nexport interface PreactProvider<T> extends Provider<T> {}\nexport type ContextType<C extends Context<any>> = C extends Context<infer T>\n\t? T\n\t: never;\n\nexport interface Context<T> {\n\tConsumer: Consumer<T>;\n\tProvider: Provider<T>;\n\tdisplayName?: string;\n}\nexport interface PreactContext<T> extends Context<T> {}\n\nexport function createContext<T>(defaultValue: T): Context<T>;\n"],
5
+ "mappings": "aAEA,OAAS,eAAAA,MAAmB,QAErB,aAAO,IAAMA,EAuIb,aAAe,SAAgB,CA4CtC,CAiDO,WAAU,eAAAC,GACFA,EAAA,IAAMD,GADJ,oBAkDV,WAAU,GAAAE,GACFA,EAAA,IAAMF,GADJ,QA+CV,WAAI,SA+BA",
6
+ "names": ["JSXInternal", "createElement", "h"]
7
+ }
@@ -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,2 @@
1
+ "use strict";var e=(n=>(n.None="None",n.Ascending="Ascending",n.Descending="Descending",n))(e||{});export default e;
2
+ //# sourceMappingURL=SortOrder.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/SortOrder.ts"],
4
+ "sourcesContent": ["/**\n * Defines the sort order.\n *\n * @public\n * @since 2.8.0\n */\nenum SortOrder {\n\t/**\n\t * Sorting is not applied.\n\t * @public\n\t */\n\tNone = \"None\",\n\n\t/**\n\t * Sorting is applied in ascending order.\n\t * @public\n\t */\n\tAscending = \"Ascending\",\n\n\t/**\n\t * Sorting is applied in descending order.\n\t * @public\n\t */\n\tDescending = \"Descending\",\n}\n\nexport default SortOrder;\n"],
5
+ "mappings": "aAMA,IAAKA,OAKJA,EAAA,KAAO,OAMPA,EAAA,UAAY,YAMZA,EAAA,WAAa,aAjBTA,OAAA,IAoBL,eAAeA",
6
+ "names": ["SortOrder"]
7
+ }
@@ -1,2 +1,2 @@
1
- "use strict";import s from"./theming/getConstructableStyle.js";const n=o=>{const e=o.constructor,t=o.shadowRoot,r=o.render();if(!t){console.warn("There is no shadow root to update");return}t.adoptedStyleSheets=s(e),e.renderer(r,t,{host:o})};export default n;
1
+ "use strict";import r from"./theming/getConstructableStyle.js";const s=o=>{const e=o.constructor,t=o.shadowRoot;if(!t){console.warn("There is no shadow root to update");return}t.adoptedStyleSheets=r(e),e.renderer(o,t)};export default s;
2
2
  //# sourceMappingURL=updateShadowRoot.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/updateShadowRoot.ts"],
4
- "sourcesContent": ["import getConstructableStyle from \"./theming/getConstructableStyle.js\";\nimport type UI5Element from \"./UI5Element.js\";\n\n/**\n * Updates the shadow root of a UI5Element or its static area item\n * @param element\n */\nconst updateShadowRoot = (element: UI5Element) => {\n\tconst ctor = element.constructor as typeof UI5Element;\n\tconst shadowRoot = element.shadowRoot;\n\tconst renderResult = element.render(); // this is checked before calling updateShadowRoot\n\n\tif (!shadowRoot) {\n\t\tconsole.warn(`There is no shadow root to update`); // eslint-disable-line\n\t\treturn;\n\t}\n\n\tshadowRoot.adoptedStyleSheets = getConstructableStyle(ctor);\n\n\tctor.renderer(renderResult, shadowRoot, { host: element });\n};\n\nexport default updateShadowRoot;\n"],
5
- "mappings": "aAAA,OAAOA,MAA2B,qCAOlC,MAAMC,EAAoBC,GAAwB,CACjD,MAAMC,EAAOD,EAAQ,YACfE,EAAaF,EAAQ,WACrBG,EAAeH,EAAQ,OAAO,EAEpC,GAAI,CAACE,EAAY,CAChB,QAAQ,KAAK,mCAAmC,EAChD,MACD,CAEAA,EAAW,mBAAqBJ,EAAsBG,CAAI,EAE1DA,EAAK,SAASE,EAAcD,EAAY,CAAE,KAAMF,CAAQ,CAAC,CAC1D,EAEA,eAAeD",
6
- "names": ["getConstructableStyle", "updateShadowRoot", "element", "ctor", "shadowRoot", "renderResult"]
4
+ "sourcesContent": ["import getConstructableStyle from \"./theming/getConstructableStyle.js\";\nimport type UI5Element from \"./UI5Element.js\";\n\n/**\n * Updates the shadow root of a UI5Element or its static area item\n * @param element\n */\nconst updateShadowRoot = (element: UI5Element) => {\n\tconst ctor = element.constructor as typeof UI5Element;\n\tconst shadowRoot = element.shadowRoot;\n\n\tif (!shadowRoot) {\n\t\tconsole.warn(`There is no shadow root to update`); // eslint-disable-line\n\t\treturn;\n\t}\n\n\tshadowRoot.adoptedStyleSheets = getConstructableStyle(ctor);\n\tctor.renderer(element, shadowRoot);\n};\n\nexport default updateShadowRoot;\n"],
5
+ "mappings": "aAAA,OAAOA,MAA2B,qCAOlC,MAAMC,EAAoBC,GAAwB,CACjD,MAAMC,EAAOD,EAAQ,YACfE,EAAaF,EAAQ,WAE3B,GAAI,CAACE,EAAY,CAChB,QAAQ,KAAK,mCAAmC,EAChD,MACD,CAEAA,EAAW,mBAAqBJ,EAAsBG,CAAI,EAC1DA,EAAK,SAASD,EAASE,CAAU,CAClC,EAEA,eAAeH",
6
+ "names": ["getConstructableStyle", "updateShadowRoot", "element", "ctor", "shadowRoot"]
7
7
  }
@@ -0,0 +1,2 @@
1
+ "use strict";const b=new WeakMap,o=new WeakMap,v={attributes:!0,childList:!0,characterData:!0,subtree:!0},A=e=>{const t=e;return t.accessibleNameRef?E(e):t.accessibleName?t.accessibleName:void 0},E=e=>{const t=e.accessibleNameRef?.split(" ")??[];let s="";return t.forEach((n,c)=>{const l=m(e,n),a=`${l&&l.textContent?l.textContent:""}`;a&&(s+=a,c<t.length-1&&(s+=" "))}),s},f=e=>{const t=new Set;u(e).forEach(r=>{t.add(r)});const n=e.accessibleNameRef,c=e.accessibleDescriptionRef,l=[n,c].filter(Boolean).join(" ");return(l?l.split(" "):[]).forEach(r=>{const i=m(e,r);i&&t.add(i)}),Array.from(t)},u=e=>{const t=e.getRootNode().querySelectorAll(`[for="${e.id}"]`);return Array.from(t)},m=(e,t)=>e.getRootNode().querySelector(`[id='${t}']`)||document.getElementById(t),M=e=>{const t=[];if(u(e).forEach(n=>{const c=n.textContent;c&&t.push(c)}),t.length)return t.join(" ")},k=e=>s=>{const n=s&&s.type==="property"&&s.name==="accessibleNameRef",c=s&&s.type==="property"&&s.name==="accessibleDescriptionRef";if(!n&&!c)return;const l=o.get(e);if(!l)return;const a=l.observedElements,r=f(e);a.forEach(i=>{r.includes(i)||d(l,i)}),r.forEach(i=>{a.includes(i)||(g(l,i),l.observedElements.push(i))}),l?.callback()},y=(e,t)=>{if(o.has(e))return;const s=f(e),n=k(e),c={host:e,observedElements:s,callback:t,invalidationCallback:n};o.set(e,c),e.attachInvalidate(n),s.forEach(l=>{g(c,l)}),t()},g=(e,t)=>{let s=b.get(t);if(!s){s={observer:null,callbacks:[]};const n=new MutationObserver(()=>{s.callbacks.forEach(a=>{a()});const l=document.getElementById(t.id);e.host.id===t.getAttribute("for")||l||d(e,t)});s.observer=n,n.observe(t,v),b.set(t,s)}s.callbacks.includes(e.callback)||s.callbacks.push(e.callback)},d=(e,t)=>{const s=b.get(t);s&&(s.callbacks=s.callbacks.filter(n=>n!==e.callback),s.callbacks.length||(s.observer?.disconnect(),b.delete(t))),e.observedElements=e.observedElements.filter(n=>n!==t)},T=e=>{const t=o.get(e);if(!t)return;[...t.observedElements].forEach(n=>{d(t,n)}),e.detachInvalidate(t.invalidationCallback),o.delete(e)},L=e=>{const t=e;return t.accessibleDescriptionRef?p(e):t.accessibleDescription?t.accessibleDescription:void 0},p=e=>{const t=e.accessibleDescriptionRef?.split(" ")??[];let s="";return t.forEach((n,c)=>{const l=m(e,n),a=`${l&&l.textContent?l.textContent:""}`;a&&(s+=a,c<t.length-1&&(s+=" "))}),s};export{A as getEffectiveAriaLabelText,M as getAssociatedLabelForTexts,y as registerUI5Element,T as deregisterUI5Element,E as getAllAccessibleNameRefTexts,L as getEffectiveAriaDescriptionText,p as getAllAccessibleDescriptionRefTexts};
2
+ //# sourceMappingURL=AccessibilityTextsHelper.js.map