@ui5/webcomponents-base 0.0.0-a289c53b5 → 0.0.0-a3b95fa49

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 (848) hide show
  1. package/CHANGELOG.md +1723 -0
  2. package/README.md +6 -12
  3. package/cypress/specs/Accessor.cy.tsx +79 -0
  4. package/cypress/specs/Boot.cy.tsx +19 -0
  5. package/cypress/specs/ConfigurationChange.cy.tsx +41 -0
  6. package/cypress/specs/ConfigurationScript.cy.tsx +133 -0
  7. package/cypress/specs/ConfigurationURL.cy.tsx +201 -0
  8. package/cypress/specs/CustomMount.cy.tsx +9 -0
  9. package/cypress/specs/CustomTheme.cy.tsx +36 -0
  10. package/cypress/specs/EventProvider.cy.tsx +59 -0
  11. package/cypress/specs/Events.cy.tsx +28 -0
  12. package/cypress/specs/SystemDOMElements.cy.tsx +8 -0
  13. package/cypress/specs/Theming.cy.tsx +74 -0
  14. package/cypress/specs/UI5ElementInvalidation.cy.tsx +252 -0
  15. package/cypress/specs/UI5ElementLifecycle.cy.tsx +82 -0
  16. package/cypress/specs/UI5ElementListenForChildPropChanges.cy.tsx +83 -0
  17. package/cypress/specs/UI5ElementMetadataExt.cy.tsx +42 -0
  18. package/cypress/specs/UI5ElementPropertyValidation.cy.tsx +16 -0
  19. package/cypress/specs/UI5ElementPropsAndAttrs.cy.tsx +113 -0
  20. package/cypress/specs/UI5ElementShadowDOM.cy.tsx +30 -0
  21. package/cypress/specs/UI5ElementSlots.cy.tsx +136 -0
  22. package/cypress/specs/WithComplexTemplate.cy.tsx +32 -0
  23. package/cypress/specs/i18n_texts.cy.tsx +129 -0
  24. package/cypress/specs/util/FocusableElements.cy.tsx +48 -0
  25. package/cypress/support/commands.ts +39 -0
  26. package/cypress/support/component-index.html +12 -0
  27. package/cypress/support/component.ts +36 -0
  28. package/cypress/tsconfig.json +21 -0
  29. package/cypress.config.js +3 -0
  30. package/dist/.tsbuildinfobuild +1 -0
  31. package/dist/AssetRegistry.d.ts +2 -2
  32. package/dist/AssetRegistry.js +2 -2
  33. package/dist/AssetRegistry.js.map +1 -1
  34. package/dist/Boot.d.ts +3 -2
  35. package/dist/Boot.js +12 -8
  36. package/dist/Boot.js.map +1 -1
  37. package/dist/CustomElementsRegistry.d.ts +2 -1
  38. package/dist/CustomElementsRegistry.js +5 -2
  39. package/dist/CustomElementsRegistry.js.map +1 -1
  40. package/dist/CustomElementsScope.d.ts +4 -4
  41. package/dist/CustomElementsScope.js +2 -2
  42. package/dist/CustomElementsScope.js.map +1 -1
  43. package/dist/CustomElementsScopeUtils.d.ts +11 -2
  44. package/dist/CustomElementsScopeUtils.js +21 -2
  45. package/dist/CustomElementsScopeUtils.js.map +1 -1
  46. package/dist/DOMObserver.js.map +1 -1
  47. package/dist/Device.d.ts +17 -2
  48. package/dist/Device.js +19 -14
  49. package/dist/Device.js.map +1 -1
  50. package/dist/EventProvider.js +1 -1
  51. package/dist/EventProvider.js.map +1 -1
  52. package/dist/FontFace.js +6 -1
  53. package/dist/FontFace.js.map +1 -1
  54. package/dist/IgnoreCustomElements.d.ts +25 -0
  55. package/dist/IgnoreCustomElements.js +37 -0
  56. package/dist/IgnoreCustomElements.js.map +1 -0
  57. package/dist/InitialConfiguration.d.ts +10 -3
  58. package/dist/InitialConfiguration.js +32 -9
  59. package/dist/InitialConfiguration.js.map +1 -1
  60. package/dist/Keys.d.ts +8 -1
  61. package/dist/Keys.js +114 -106
  62. package/dist/Keys.js.map +1 -1
  63. package/dist/Location.d.ts +11 -0
  64. package/dist/Location.js +49 -0
  65. package/dist/Location.js.map +1 -0
  66. package/dist/ManagedStyles.d.ts +5 -6
  67. package/dist/ManagedStyles.js +45 -53
  68. package/dist/ManagedStyles.js.map +1 -1
  69. package/dist/MediaRange.d.ts +6 -12
  70. package/dist/MediaRange.js +21 -31
  71. package/dist/MediaRange.js.map +1 -1
  72. package/dist/PropertiesFileFormat.js.map +1 -1
  73. package/dist/Render.js.map +1 -1
  74. package/dist/RenderQueue.js.map +1 -1
  75. package/dist/Runtimes.js +11 -0
  76. package/dist/Runtimes.js.map +1 -1
  77. package/dist/SystemCSSVars.js.map +1 -1
  78. package/dist/UI5Element.d.ts +121 -75
  79. package/dist/UI5Element.js +396 -229
  80. package/dist/UI5Element.js.map +1 -1
  81. package/dist/UI5ElementMetadata.d.ts +36 -27
  82. package/dist/UI5ElementMetadata.js +27 -72
  83. package/dist/UI5ElementMetadata.js.map +1 -1
  84. package/dist/animations/AnimationQueue.js.map +1 -1
  85. package/dist/animations/animate.js.map +1 -1
  86. package/dist/animations/slideUp.js.map +1 -1
  87. package/dist/asset-registries/Icons.d.ts +5 -4
  88. package/dist/asset-registries/Icons.js +28 -17
  89. package/dist/asset-registries/Icons.js.map +1 -1
  90. package/dist/asset-registries/Illustrations.d.ts +2 -0
  91. package/dist/asset-registries/Illustrations.js +51 -20
  92. package/dist/asset-registries/Illustrations.js.map +1 -1
  93. package/dist/asset-registries/LocaleData.js +1 -1
  94. package/dist/asset-registries/LocaleData.js.map +1 -1
  95. package/dist/asset-registries/Themes.d.ts +5 -7
  96. package/dist/asset-registries/Themes.js +27 -12
  97. package/dist/asset-registries/Themes.js.map +1 -1
  98. package/dist/asset-registries/i18n.d.ts +2 -2
  99. package/dist/asset-registries/i18n.js +4 -3
  100. package/dist/asset-registries/i18n.js.map +1 -1
  101. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.d.ts +1 -2
  102. package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.js +1 -2
  103. package/dist/asset-registries/util/IconCollectionsAlias.js.map +1 -0
  104. package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +20 -0
  105. package/dist/asset-registries/util/IconCollectionsByTheme.js +42 -0
  106. package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -0
  107. package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +13 -0
  108. package/dist/asset-registries/util/getIconCollectionByTheme.js +29 -0
  109. package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -0
  110. package/dist/config/AnimationMode.d.ts +2 -2
  111. package/dist/config/AnimationMode.js +6 -1
  112. package/dist/config/AnimationMode.js.map +1 -1
  113. package/dist/config/CalendarType.d.ts +8 -1
  114. package/dist/config/CalendarType.js +23 -2
  115. package/dist/config/CalendarType.js.map +1 -1
  116. package/dist/config/ConfigurationReset.d.ts +4 -0
  117. package/dist/config/ConfigurationReset.js +11 -0
  118. package/dist/config/ConfigurationReset.js.map +1 -0
  119. package/dist/config/Fonts.d.ts +16 -0
  120. package/dist/config/Fonts.js +30 -0
  121. package/dist/config/Fonts.js.map +1 -0
  122. package/dist/config/FormatSettings.js +4 -0
  123. package/dist/config/FormatSettings.js.map +1 -1
  124. package/dist/config/Icons.d.ts +9 -24
  125. package/dist/config/Icons.js +8 -67
  126. package/dist/config/Icons.js.map +1 -1
  127. package/dist/config/Language.d.ts +1 -1
  128. package/dist/config/Language.js +11 -3
  129. package/dist/config/Language.js.map +1 -1
  130. package/dist/config/NoConflict.js +4 -0
  131. package/dist/config/NoConflict.js.map +1 -1
  132. package/dist/config/Theme.d.ts +4 -3
  133. package/dist/config/Theme.js +18 -8
  134. package/dist/config/Theme.js.map +1 -1
  135. package/dist/config/ThemeRoot.d.ts +27 -0
  136. package/dist/config/ThemeRoot.js +61 -0
  137. package/dist/config/ThemeRoot.js.map +1 -0
  138. package/dist/config/Timezone.d.ts +1 -1
  139. package/dist/config/Timezone.js +5 -1
  140. package/dist/config/Timezone.js.map +1 -1
  141. package/dist/config/Tooltips.d.ts +19 -0
  142. package/dist/config/Tooltips.js +29 -0
  143. package/dist/config/Tooltips.js.map +1 -0
  144. package/dist/connectToComponent.d.ts +9 -0
  145. package/dist/connectToComponent.js +59 -0
  146. package/dist/connectToComponent.js.map +1 -0
  147. package/dist/converters/DOMReference.d.ts +5 -0
  148. package/dist/converters/DOMReference.js +13 -0
  149. package/dist/converters/DOMReference.js.map +1 -0
  150. package/dist/css/FontFace.css +47 -17
  151. package/dist/css/SystemCSSVars.css +0 -8
  152. package/dist/custom-elements-internal.json +2803 -0
  153. package/dist/custom-elements.json +2500 -0
  154. package/dist/decorators/bound.d.ts +1 -0
  155. package/dist/decorators/bound.js +34 -0
  156. package/dist/decorators/bound.js.map +1 -0
  157. package/dist/decorators/customElement.d.ts +43 -3
  158. package/dist/decorators/customElement.js +14 -6
  159. package/dist/decorators/customElement.js.map +1 -1
  160. package/dist/decorators/event-strict.d.ts +15 -0
  161. package/dist/decorators/event-strict.js +26 -0
  162. package/dist/decorators/event-strict.js.map +1 -0
  163. package/dist/decorators/event.d.ts +8 -2
  164. package/dist/decorators/event.js +3 -0
  165. package/dist/decorators/event.js.map +1 -1
  166. package/dist/decorators/i18n.d.ts +17 -0
  167. package/dist/decorators/i18n.js +32 -0
  168. package/dist/decorators/i18n.js.map +1 -0
  169. package/dist/decorators/property.d.ts +1 -1
  170. package/dist/decorators/property.js +1 -1
  171. package/dist/decorators/property.js.map +1 -1
  172. package/dist/decorators/query.d.ts +25 -0
  173. package/dist/decorators/query.js +32 -0
  174. package/dist/decorators/query.js.map +1 -0
  175. package/dist/decorators/queryAll.d.ts +27 -0
  176. package/dist/decorators/queryAll.js +34 -0
  177. package/dist/decorators/queryAll.js.map +1 -0
  178. package/dist/decorators/slot.d.ts +1 -1
  179. package/dist/decorators/slot.js.map +1 -1
  180. package/dist/decorators.d.ts +8 -0
  181. package/dist/decorators.js +9 -0
  182. package/dist/decorators.js.map +1 -0
  183. package/dist/delegate/ItemNavigation.d.ts +9 -8
  184. package/dist/delegate/ItemNavigation.js +13 -14
  185. package/dist/delegate/ItemNavigation.js.map +1 -1
  186. package/dist/delegate/ResizeHandler.d.ts +4 -6
  187. package/dist/delegate/ResizeHandler.js +4 -6
  188. package/dist/delegate/ResizeHandler.js.map +1 -1
  189. package/dist/delegate/ScrollEnablement.js +2 -2
  190. package/dist/delegate/ScrollEnablement.js.map +1 -1
  191. package/dist/features/F6Navigation.d.ts +4 -3
  192. package/dist/features/F6Navigation.js +41 -9
  193. package/dist/features/F6Navigation.js.map +1 -1
  194. package/dist/features/InputElementsFormSupport.d.ts +15 -0
  195. package/dist/features/InputElementsFormSupport.js +39 -0
  196. package/dist/features/InputElementsFormSupport.js.map +1 -0
  197. package/dist/features/LegacyDateFormats.js.map +1 -1
  198. package/dist/features/OpenUI5Enablement.d.ts +3 -3
  199. package/dist/features/OpenUI5Enablement.js.map +1 -1
  200. package/dist/features/OpenUI5Support.d.ts +14 -6
  201. package/dist/features/OpenUI5Support.js +90 -46
  202. package/dist/features/OpenUI5Support.js.map +1 -1
  203. package/dist/features/patchPatcher.d.ts +11 -0
  204. package/dist/features/patchPatcher.js +11 -0
  205. package/dist/features/patchPatcher.js.map +1 -0
  206. package/dist/features/patchPopup.d.ts +15 -0
  207. package/dist/features/patchPopup.js +70 -0
  208. package/dist/features/patchPopup.js.map +1 -0
  209. package/dist/generated/AssetParameters.d.ts +6 -0
  210. package/dist/generated/AssetParameters.js +3 -10
  211. package/dist/generated/AssetParameters.js.map +1 -0
  212. package/dist/generated/VersionInfo.d.ts +10 -0
  213. package/dist/generated/VersionInfo.js +9 -8
  214. package/dist/generated/VersionInfo.js.map +1 -0
  215. package/dist/generated/css/BusyIndicator.css.d.ts +2 -3
  216. package/dist/generated/css/BusyIndicator.css.js +1 -6
  217. package/dist/generated/css/BusyIndicator.css.js.map +1 -1
  218. package/dist/generated/css/FontFace.css.d.ts +2 -3
  219. package/dist/generated/css/FontFace.css.js +1 -6
  220. package/dist/generated/css/FontFace.css.js.map +1 -1
  221. package/dist/generated/css/OverrideFontFace.css.d.ts +2 -3
  222. package/dist/generated/css/OverrideFontFace.css.js +1 -6
  223. package/dist/generated/css/OverrideFontFace.css.js.map +1 -1
  224. package/dist/generated/css/SystemCSSVars.css.d.ts +2 -3
  225. package/dist/generated/css/SystemCSSVars.css.js +1 -6
  226. package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
  227. package/dist/getSharedResource.js +7 -1
  228. package/dist/getSharedResource.js.map +1 -1
  229. package/dist/i18nBundle.d.ts +2 -4
  230. package/dist/i18nBundle.js +3 -5
  231. package/dist/i18nBundle.js.map +1 -1
  232. package/dist/index.d.ts +48 -0
  233. package/dist/index.js +88 -0
  234. package/dist/index.js.map +1 -0
  235. package/dist/jsx-dev-runtime.d.ts +4 -0
  236. package/dist/jsx-dev-runtime.js +43 -0
  237. package/dist/jsx-dev-runtime.js.map +1 -0
  238. package/dist/jsx-runtime.d.ts +50 -0
  239. package/dist/jsx-runtime.js +27 -0
  240. package/dist/jsx-runtime.js.map +1 -0
  241. package/dist/jsx-utils.d.ts +3 -0
  242. package/dist/jsx-utils.js +48 -0
  243. package/dist/jsx-utils.js.map +1 -0
  244. package/dist/locale/Locale.js.map +1 -1
  245. package/dist/locale/RTLAwareRegistry.d.ts +1 -1
  246. package/dist/locale/RTLAwareRegistry.js.map +1 -1
  247. package/dist/locale/applyDirection.d.ts +3 -2
  248. package/dist/locale/applyDirection.js +3 -2
  249. package/dist/locale/applyDirection.js.map +1 -1
  250. package/dist/locale/getEffectiveDir.d.ts +1 -1
  251. package/dist/locale/getEffectiveDir.js +3 -19
  252. package/dist/locale/getEffectiveDir.js.map +1 -1
  253. package/dist/locale/getLocale.js.map +1 -1
  254. package/dist/locale/nextFallbackLocale.js.map +1 -1
  255. package/dist/locale/normalizeLocale.js.map +1 -1
  256. package/dist/prod/AssetRegistry.js +2 -0
  257. package/dist/prod/AssetRegistry.js.map +7 -0
  258. package/dist/prod/Boot.js +2 -0
  259. package/dist/prod/Boot.js.map +7 -0
  260. package/dist/prod/CustomElementsRegistry.js +10 -0
  261. package/dist/prod/CustomElementsRegistry.js.map +7 -0
  262. package/dist/prod/CustomElementsScope.js +2 -0
  263. package/dist/prod/CustomElementsScope.js.map +7 -0
  264. package/dist/prod/CustomElementsScopeUtils.js +2 -0
  265. package/dist/prod/CustomElementsScopeUtils.js.map +7 -0
  266. package/dist/prod/DOMObserver.js +2 -0
  267. package/dist/prod/DOMObserver.js.map +7 -0
  268. package/dist/prod/Device.js +2 -0
  269. package/dist/prod/Device.js.map +7 -0
  270. package/dist/prod/EventProvider.js +2 -0
  271. package/dist/prod/EventProvider.js.map +7 -0
  272. package/dist/prod/FeaturesRegistry.js +2 -0
  273. package/dist/prod/FeaturesRegistry.js.map +7 -0
  274. package/dist/prod/FontFace.js +2 -0
  275. package/dist/prod/FontFace.js.map +7 -0
  276. package/dist/prod/IgnoreCustomElements.js +2 -0
  277. package/dist/prod/IgnoreCustomElements.js.map +7 -0
  278. package/dist/prod/InitialConfiguration.js +2 -0
  279. package/dist/prod/InitialConfiguration.js.map +7 -0
  280. package/dist/prod/Keys.js +2 -0
  281. package/dist/prod/Keys.js.map +7 -0
  282. package/dist/prod/Location.js +2 -0
  283. package/dist/prod/Location.js.map +7 -0
  284. package/dist/prod/ManagedStyles.js +2 -0
  285. package/dist/prod/ManagedStyles.js.map +7 -0
  286. package/dist/prod/MediaRange.js +2 -0
  287. package/dist/prod/MediaRange.js.map +7 -0
  288. package/dist/prod/PropertiesFileFormat.js +3 -0
  289. package/dist/prod/PropertiesFileFormat.js.map +7 -0
  290. package/dist/prod/Render.js +2 -0
  291. package/dist/prod/Render.js.map +7 -0
  292. package/dist/prod/RenderQueue.js +2 -0
  293. package/dist/prod/RenderQueue.js.map +7 -0
  294. package/dist/prod/Runtimes.js +2 -0
  295. package/dist/prod/Runtimes.js.map +7 -0
  296. package/dist/prod/SystemCSSVars.js +2 -0
  297. package/dist/prod/SystemCSSVars.js.map +7 -0
  298. package/dist/prod/Theming.js +2 -0
  299. package/dist/prod/Theming.js.map +7 -0
  300. package/dist/prod/UI5Element.js +2 -0
  301. package/dist/prod/UI5Element.js.map +7 -0
  302. package/dist/prod/UI5ElementMetadata.js +2 -0
  303. package/dist/prod/UI5ElementMetadata.js.map +7 -0
  304. package/dist/prod/animations/AnimationQueue.js +2 -0
  305. package/dist/prod/animations/AnimationQueue.js.map +7 -0
  306. package/dist/prod/animations/animate.js +2 -0
  307. package/dist/prod/animations/animate.js.map +7 -0
  308. package/dist/prod/animations/scroll.js +2 -0
  309. package/dist/prod/animations/scroll.js.map +7 -0
  310. package/dist/prod/animations/slideDown.js +2 -0
  311. package/dist/prod/animations/slideDown.js.map +7 -0
  312. package/dist/prod/animations/slideUp.js +2 -0
  313. package/dist/prod/animations/slideUp.js.map +7 -0
  314. package/dist/prod/asset-registries/Icons.js +2 -0
  315. package/dist/prod/asset-registries/Icons.js.map +7 -0
  316. package/dist/prod/asset-registries/Illustrations.js +2 -0
  317. package/dist/prod/asset-registries/Illustrations.js.map +7 -0
  318. package/dist/prod/asset-registries/LocaleData.js +2 -0
  319. package/dist/prod/asset-registries/LocaleData.js.map +7 -0
  320. package/dist/prod/asset-registries/Themes.js +2 -0
  321. package/dist/prod/asset-registries/Themes.js.map +7 -0
  322. package/dist/prod/asset-registries/i18n.js +2 -0
  323. package/dist/prod/asset-registries/i18n.js.map +7 -0
  324. package/dist/prod/asset-registries/util/IconCollectionsAlias.js +2 -0
  325. package/dist/prod/asset-registries/util/IconCollectionsAlias.js.map +7 -0
  326. package/dist/prod/asset-registries/util/IconCollectionsByTheme.js +2 -0
  327. package/dist/prod/asset-registries/util/IconCollectionsByTheme.js.map +7 -0
  328. package/dist/prod/asset-registries/util/getIconCollectionByTheme.js +2 -0
  329. package/dist/prod/asset-registries/util/getIconCollectionByTheme.js.map +7 -0
  330. package/dist/prod/config/AnimationMode.js +2 -0
  331. package/dist/prod/config/AnimationMode.js.map +7 -0
  332. package/dist/prod/config/CalendarType.js +2 -0
  333. package/dist/prod/config/CalendarType.js.map +7 -0
  334. package/dist/prod/config/ConfigurationReset.js +2 -0
  335. package/dist/prod/config/ConfigurationReset.js.map +7 -0
  336. package/dist/prod/config/Fonts.js +2 -0
  337. package/dist/prod/config/Fonts.js.map +7 -0
  338. package/dist/prod/config/FormatSettings.js +2 -0
  339. package/dist/prod/config/FormatSettings.js.map +7 -0
  340. package/dist/prod/config/Icons.js +2 -0
  341. package/dist/prod/config/Icons.js.map +7 -0
  342. package/dist/prod/config/Language.js +2 -0
  343. package/dist/prod/config/Language.js.map +7 -0
  344. package/dist/prod/config/NoConflict.js +2 -0
  345. package/dist/prod/config/NoConflict.js.map +7 -0
  346. package/dist/prod/config/Theme.js +2 -0
  347. package/dist/prod/config/Theme.js.map +7 -0
  348. package/dist/prod/config/ThemeRoot.js +2 -0
  349. package/dist/prod/config/ThemeRoot.js.map +7 -0
  350. package/dist/prod/config/Timezone.js +2 -0
  351. package/dist/prod/config/Timezone.js.map +7 -0
  352. package/dist/prod/config/Tooltips.js +2 -0
  353. package/dist/prod/config/Tooltips.js.map +7 -0
  354. package/dist/prod/connectToComponent.js +2 -0
  355. package/dist/prod/connectToComponent.js.map +7 -0
  356. package/dist/prod/converters/DOMReference.js +2 -0
  357. package/dist/prod/converters/DOMReference.js.map +7 -0
  358. package/dist/prod/decorators/bound.js +2 -0
  359. package/dist/prod/decorators/bound.js.map +7 -0
  360. package/dist/prod/decorators/customElement.js +2 -0
  361. package/dist/prod/decorators/customElement.js.map +7 -0
  362. package/dist/prod/decorators/event-strict.js +2 -0
  363. package/dist/prod/decorators/event-strict.js.map +7 -0
  364. package/dist/prod/decorators/event.js +2 -0
  365. package/dist/prod/decorators/event.js.map +7 -0
  366. package/dist/prod/decorators/i18n.js +2 -0
  367. package/dist/prod/decorators/i18n.js.map +7 -0
  368. package/dist/prod/decorators/property.js +2 -0
  369. package/dist/prod/decorators/property.js.map +7 -0
  370. package/dist/prod/decorators/query.js +2 -0
  371. package/dist/prod/decorators/query.js.map +7 -0
  372. package/dist/prod/decorators/queryAll.js +2 -0
  373. package/dist/prod/decorators/queryAll.js.map +7 -0
  374. package/dist/prod/decorators/slot.js +2 -0
  375. package/dist/prod/decorators/slot.js.map +7 -0
  376. package/dist/prod/decorators.js +2 -0
  377. package/dist/prod/decorators.js.map +7 -0
  378. package/dist/prod/delegate/ItemNavigation.js +2 -0
  379. package/dist/prod/delegate/ItemNavigation.js.map +7 -0
  380. package/dist/prod/delegate/ResizeHandler.js +2 -0
  381. package/dist/prod/delegate/ResizeHandler.js.map +7 -0
  382. package/dist/prod/delegate/ScrollEnablement.js +2 -0
  383. package/dist/prod/delegate/ScrollEnablement.js.map +7 -0
  384. package/dist/prod/features/F6Navigation.js +2 -0
  385. package/dist/prod/features/F6Navigation.js.map +7 -0
  386. package/dist/prod/features/InputElementsFormSupport.js +2 -0
  387. package/dist/prod/features/InputElementsFormSupport.js.map +7 -0
  388. package/dist/prod/features/LegacyDateFormats.js +2 -0
  389. package/dist/prod/features/LegacyDateFormats.js.map +7 -0
  390. package/dist/prod/features/OpenUI5Element.js +2 -0
  391. package/dist/prod/features/OpenUI5Element.js.map +7 -0
  392. package/dist/prod/features/OpenUI5Enablement.js +21 -0
  393. package/dist/prod/features/OpenUI5Enablement.js.map +7 -0
  394. package/dist/prod/features/OpenUI5Support.js +2 -0
  395. package/dist/prod/features/OpenUI5Support.js.map +7 -0
  396. package/dist/prod/features/patchPatcher.js +2 -0
  397. package/dist/prod/features/patchPatcher.js.map +7 -0
  398. package/dist/prod/features/patchPopup.js +2 -0
  399. package/dist/prod/features/patchPopup.js.map +7 -0
  400. package/dist/prod/generated/AssetParameters.js +2 -0
  401. package/dist/prod/generated/AssetParameters.js.map +7 -0
  402. package/dist/prod/generated/VersionInfo.js +2 -0
  403. package/dist/prod/generated/VersionInfo.js.map +7 -0
  404. package/dist/prod/generated/css/BusyIndicator.css.js +2 -0
  405. package/dist/prod/generated/css/BusyIndicator.css.js.map +7 -0
  406. package/dist/prod/generated/css/FontFace.css.js +2 -0
  407. package/dist/prod/generated/css/FontFace.css.js.map +7 -0
  408. package/dist/prod/generated/css/OverrideFontFace.css.js +2 -0
  409. package/dist/prod/generated/css/OverrideFontFace.css.js.map +7 -0
  410. package/dist/prod/generated/css/SystemCSSVars.css.js +2 -0
  411. package/dist/prod/generated/css/SystemCSSVars.css.js.map +7 -0
  412. package/dist/prod/getSharedResource.js +2 -0
  413. package/dist/prod/getSharedResource.js.map +7 -0
  414. package/dist/prod/global.d.js +2 -0
  415. package/dist/prod/global.d.js.map +7 -0
  416. package/dist/prod/i18nBundle.js +2 -0
  417. package/dist/prod/i18nBundle.js.map +7 -0
  418. package/dist/prod/index.js +2 -0
  419. package/dist/prod/index.js.map +7 -0
  420. package/dist/prod/jsx-dev-runtime.js +2 -0
  421. package/dist/prod/jsx-dev-runtime.js.map +7 -0
  422. package/dist/prod/jsx-runtime.js +2 -0
  423. package/dist/prod/jsx-runtime.js.map +7 -0
  424. package/dist/prod/jsx-utils.js +2 -0
  425. package/dist/prod/jsx-utils.js.map +7 -0
  426. package/dist/prod/locale/Locale.js +2 -0
  427. package/dist/prod/locale/Locale.js.map +7 -0
  428. package/dist/prod/locale/RTLAwareRegistry.js +2 -0
  429. package/dist/prod/locale/RTLAwareRegistry.js.map +7 -0
  430. package/dist/prod/locale/applyDirection.js +2 -0
  431. package/dist/prod/locale/applyDirection.js.map +7 -0
  432. package/dist/prod/locale/directionChange.js +2 -0
  433. package/dist/prod/locale/directionChange.js.map +7 -0
  434. package/dist/prod/locale/getEffectiveDir.js +2 -0
  435. package/dist/prod/locale/getEffectiveDir.js.map +7 -0
  436. package/dist/prod/locale/getLocale.js +2 -0
  437. package/dist/prod/locale/getLocale.js.map +7 -0
  438. package/dist/prod/locale/languageChange.js +2 -0
  439. package/dist/prod/locale/languageChange.js.map +7 -0
  440. package/dist/prod/locale/nextFallbackLocale.js +2 -0
  441. package/dist/prod/locale/nextFallbackLocale.js.map +7 -0
  442. package/dist/prod/locale/normalizeLocale.js +2 -0
  443. package/dist/prod/locale/normalizeLocale.js.map +7 -0
  444. package/dist/prod/renderer/JsxRenderer.js +2 -0
  445. package/dist/prod/renderer/JsxRenderer.js.map +7 -0
  446. package/dist/prod/renderer/LitRenderer.js +2 -0
  447. package/dist/prod/renderer/LitRenderer.js.map +7 -0
  448. package/dist/prod/renderer/directives/style-map.js +6 -0
  449. package/dist/prod/renderer/directives/style-map.js.map +7 -0
  450. package/dist/prod/renderer/executeTemplate.js +2 -0
  451. package/dist/prod/renderer/executeTemplate.js.map +7 -0
  452. package/dist/prod/sap/base/Log.js +750 -0
  453. package/dist/prod/sap/base/assert.js +34 -0
  454. package/dist/prod/sap/base/config/MemoryConfigurationProvider.js +20 -0
  455. package/dist/prod/sap/base/security/URLListValidator.js +406 -0
  456. package/dist/prod/sap/base/security/encodeCSS.js +40 -0
  457. package/dist/prod/sap/base/security/encodeXML.js +53 -0
  458. package/dist/prod/sap/base/security/sanitizeHTML.js +38 -0
  459. package/dist/prod/sap/base/strings/toHex.js +33 -0
  460. package/dist/prod/sap/base/util/now.js +28 -0
  461. package/dist/prod/sap/base/util/uid.js +27 -0
  462. package/dist/prod/sap/ui/thirdparty/caja-html-sanitizer.js +3600 -0
  463. package/dist/prod/ssr-dom-shim.js +2 -0
  464. package/dist/prod/ssr-dom-shim.js.map +7 -0
  465. package/dist/prod/ssr-dom.js +2 -0
  466. package/dist/prod/ssr-dom.js.map +7 -0
  467. package/dist/prod/theming/CustomStyle.js +2 -0
  468. package/dist/prod/theming/CustomStyle.js.map +7 -0
  469. package/dist/prod/theming/ThemeLoaded.js +2 -0
  470. package/dist/prod/theming/ThemeLoaded.js.map +7 -0
  471. package/dist/prod/theming/ThemeRegistered.js +2 -0
  472. package/dist/prod/theming/ThemeRegistered.js.map +7 -0
  473. package/dist/prod/theming/applyTheme.js +2 -0
  474. package/dist/prod/theming/applyTheme.js.map +7 -0
  475. package/dist/prod/theming/getConstructableStyle.js +2 -0
  476. package/dist/prod/theming/getConstructableStyle.js.map +7 -0
  477. package/dist/prod/theming/getEffectiveStyle.js +2 -0
  478. package/dist/prod/theming/getEffectiveStyle.js.map +7 -0
  479. package/dist/prod/theming/getStylesString.js +2 -0
  480. package/dist/prod/theming/getStylesString.js.map +7 -0
  481. package/dist/prod/theming/getThemeDesignerTheme.js +2 -0
  482. package/dist/prod/theming/getThemeDesignerTheme.js.map +7 -0
  483. package/dist/prod/thirdparty/_merge.js +2 -0
  484. package/dist/prod/thirdparty/_merge.js.map +7 -0
  485. package/dist/prod/thirdparty/isPlainObject.js +2 -0
  486. package/dist/prod/thirdparty/isPlainObject.js.map +7 -0
  487. package/dist/prod/thirdparty/merge.js +2 -0
  488. package/dist/prod/thirdparty/merge.js.map +7 -0
  489. package/dist/prod/thirdparty/preact/jsx.d.js +2 -0
  490. package/dist/prod/thirdparty/preact/jsx.d.js.map +7 -0
  491. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +2 -0
  492. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +7 -0
  493. package/dist/prod/thirdparty/preact/jsxRuntime.module.js +1 -0
  494. package/dist/prod/thirdparty/preact/preact.module.d.js +2 -0
  495. package/dist/prod/thirdparty/preact/preact.module.d.js.map +7 -0
  496. package/dist/prod/thirdparty/preact/preact.module.js +1 -0
  497. package/dist/prod/types/AnimationMode.js +2 -0
  498. package/dist/prod/types/AnimationMode.js.map +7 -0
  499. package/dist/prod/types/CalendarType.js +2 -0
  500. package/dist/prod/types/CalendarType.js.map +7 -0
  501. package/dist/prod/types/InvisibleMessageMode.js +2 -0
  502. package/dist/prod/types/InvisibleMessageMode.js.map +7 -0
  503. package/dist/prod/types/ItemNavigationBehavior.js +2 -0
  504. package/dist/prod/types/ItemNavigationBehavior.js.map +7 -0
  505. package/dist/prod/types/MovePlacement.js +2 -0
  506. package/dist/prod/types/MovePlacement.js.map +7 -0
  507. package/dist/prod/types/NavigationMode.js +2 -0
  508. package/dist/prod/types/NavigationMode.js.map +7 -0
  509. package/dist/prod/types/Orientation.js +2 -0
  510. package/dist/prod/types/Orientation.js.map +7 -0
  511. package/dist/prod/types/SortOrder.js +2 -0
  512. package/dist/prod/types/SortOrder.js.map +7 -0
  513. package/dist/prod/types/ValueState.js +2 -0
  514. package/dist/prod/types/ValueState.js.map +7 -0
  515. package/dist/prod/types.js +2 -0
  516. package/dist/prod/types.js.map +7 -0
  517. package/dist/prod/updateShadowRoot.js +2 -0
  518. package/dist/prod/updateShadowRoot.js.map +7 -0
  519. package/dist/prod/util/AccessibilityTextsHelper.js +2 -0
  520. package/dist/prod/util/AccessibilityTextsHelper.js.map +7 -0
  521. package/dist/prod/util/Caret.js +2 -0
  522. package/dist/prod/util/Caret.js.map +7 -0
  523. package/dist/prod/util/ColorConversion.js +2 -0
  524. package/dist/prod/util/ColorConversion.js.map +7 -0
  525. package/dist/prod/util/FetchHelper.js +2 -0
  526. package/dist/prod/util/FetchHelper.js.map +7 -0
  527. package/dist/prod/util/FocusableElements.js +2 -0
  528. package/dist/prod/util/FocusableElements.js.map +7 -0
  529. package/dist/prod/util/HTMLSanitizer.js +2 -0
  530. package/dist/prod/util/HTMLSanitizer.js.map +7 -0
  531. package/dist/prod/util/InvisibleMessage.js +2 -0
  532. package/dist/prod/util/InvisibleMessage.js.map +7 -0
  533. package/dist/prod/util/PopupUtils.js +2 -0
  534. package/dist/prod/util/PopupUtils.js.map +7 -0
  535. package/dist/prod/util/SelectionAssistant.js +2 -0
  536. package/dist/prod/util/SelectionAssistant.js.map +7 -0
  537. package/dist/prod/util/SlotsHelper.js +2 -0
  538. package/dist/prod/util/SlotsHelper.js.map +7 -0
  539. package/dist/prod/util/StringHelper.js +2 -0
  540. package/dist/prod/util/StringHelper.js.map +7 -0
  541. package/dist/prod/util/TabbableElements.js +2 -0
  542. package/dist/prod/util/TabbableElements.js.map +7 -0
  543. package/dist/prod/util/arraysAreEqual.js +2 -0
  544. package/dist/prod/util/arraysAreEqual.js.map +7 -0
  545. package/dist/prod/util/clamp.js +2 -0
  546. package/dist/prod/util/clamp.js.map +7 -0
  547. package/dist/prod/util/createLinkInHead.js +2 -0
  548. package/dist/prod/util/createLinkInHead.js.map +7 -0
  549. package/dist/prod/util/debounce.js +2 -0
  550. package/dist/prod/util/debounce.js.map +7 -0
  551. package/dist/prod/util/detectNavigatorLanguage.js +2 -0
  552. package/dist/prod/util/detectNavigatorLanguage.js.map +7 -0
  553. package/dist/prod/util/dragAndDrop/DragRegistry.js +2 -0
  554. package/dist/prod/util/dragAndDrop/DragRegistry.js.map +7 -0
  555. package/dist/prod/util/dragAndDrop/findClosestPosition.js +2 -0
  556. package/dist/prod/util/dragAndDrop/findClosestPosition.js.map +7 -0
  557. package/dist/prod/util/dragAndDrop/handleDragOver.js +2 -0
  558. package/dist/prod/util/dragAndDrop/handleDragOver.js.map +7 -0
  559. package/dist/prod/util/dragAndDrop/handleDrop.js +2 -0
  560. package/dist/prod/util/dragAndDrop/handleDrop.js.map +7 -0
  561. package/dist/prod/util/dragAndDrop/longDragOverHandler.js +2 -0
  562. package/dist/prod/util/dragAndDrop/longDragOverHandler.js.map +7 -0
  563. package/dist/prod/util/escapeRegex.js +2 -0
  564. package/dist/prod/util/escapeRegex.js.map +7 -0
  565. package/dist/prod/util/fixSafariActiveState.js +2 -0
  566. package/dist/prod/util/fixSafariActiveState.js.map +7 -0
  567. package/dist/prod/util/formatMessage.js +2 -0
  568. package/dist/prod/util/formatMessage.js.map +7 -0
  569. package/dist/prod/util/generateHighlightedMarkup.js +2 -0
  570. package/dist/prod/util/generateHighlightedMarkup.js.map +7 -0
  571. package/dist/prod/util/getActiveElement.js +2 -0
  572. package/dist/prod/util/getActiveElement.js.map +7 -0
  573. package/dist/prod/util/getClassCopy.js +2 -0
  574. package/dist/prod/util/getClassCopy.js.map +7 -0
  575. package/dist/prod/util/getDesigntimePropertyAsArray.js +2 -0
  576. package/dist/prod/util/getDesigntimePropertyAsArray.js.map +7 -0
  577. package/dist/prod/util/getEffectiveContentDensity.js +2 -0
  578. package/dist/prod/util/getEffectiveContentDensity.js.map +7 -0
  579. package/dist/prod/util/getEffectiveScrollbarStyle.js +26 -0
  580. package/dist/prod/util/getEffectiveScrollbarStyle.js.map +7 -0
  581. package/dist/prod/util/getFastNavigationGroups.js +2 -0
  582. package/dist/prod/util/getFastNavigationGroups.js.map +7 -0
  583. package/dist/prod/util/getFileExtension.js +2 -0
  584. package/dist/prod/util/getFileExtension.js.map +7 -0
  585. package/dist/prod/util/getNormalizedTarget.js +2 -0
  586. package/dist/prod/util/getNormalizedTarget.js.map +7 -0
  587. package/dist/prod/util/getSingletonElementInstance.js +2 -0
  588. package/dist/prod/util/getSingletonElementInstance.js.map +7 -0
  589. package/dist/prod/util/hash2str.js +2 -0
  590. package/dist/prod/util/hash2str.js.map +7 -0
  591. package/dist/prod/util/isElementClickable.js +2 -0
  592. package/dist/prod/util/isElementClickable.js.map +7 -0
  593. package/dist/prod/util/isElementHidden.js +2 -0
  594. package/dist/prod/util/isElementHidden.js.map +7 -0
  595. package/dist/prod/util/isElementInView.js +2 -0
  596. package/dist/prod/util/isElementInView.js.map +7 -0
  597. package/dist/prod/util/isElementTabbable.js +2 -0
  598. package/dist/prod/util/isElementTabbable.js.map +7 -0
  599. package/dist/prod/util/isValidPropertyName.js +2 -0
  600. package/dist/prod/util/isValidPropertyName.js.map +7 -0
  601. package/dist/prod/util/throttle.js +2 -0
  602. package/dist/prod/util/throttle.js.map +7 -0
  603. package/dist/prod/util/toLowercaseEnumValue.js +2 -0
  604. package/dist/prod/util/toLowercaseEnumValue.js.map +7 -0
  605. package/dist/prod/util/whenDOMReady.js +2 -0
  606. package/dist/prod/util/whenDOMReady.js.map +7 -0
  607. package/dist/prod/util/willShowContent.js +2 -0
  608. package/dist/prod/util/willShowContent.js.map +7 -0
  609. package/dist/prod/validateThemeRoot.js +2 -0
  610. package/dist/prod/validateThemeRoot.js.map +7 -0
  611. package/dist/renderer/JsxRenderer.d.ts +3 -0
  612. package/dist/renderer/JsxRenderer.js +16 -0
  613. package/dist/renderer/JsxRenderer.js.map +1 -0
  614. package/dist/renderer/LitRenderer.d.ts +3 -3
  615. package/dist/renderer/LitRenderer.js +5 -10
  616. package/dist/renderer/LitRenderer.js.map +1 -1
  617. package/dist/renderer/directives/style-map.d.ts +13 -0
  618. package/dist/renderer/directives/style-map.js +59 -59
  619. package/dist/renderer/directives/style-map.js.map +1 -0
  620. package/dist/renderer/executeTemplate.d.ts +3 -4
  621. package/dist/renderer/executeTemplate.js +1 -19
  622. package/dist/renderer/executeTemplate.js.map +1 -1
  623. package/dist/sap/base/Log.js +698 -188
  624. package/dist/sap/base/assert.js +28 -1
  625. package/dist/sap/base/config/MemoryConfigurationProvider.js +20 -0
  626. package/dist/sap/base/security/URLListValidator.js +253 -6
  627. package/dist/sap/base/security/encodeCSS.js +34 -8
  628. package/dist/sap/base/security/encodeXML.js +47 -17
  629. package/dist/sap/base/security/sanitizeHTML.js +35 -13
  630. package/dist/sap/base/strings/toHex.js +27 -2
  631. package/dist/sap/base/util/now.js +24 -3
  632. package/dist/sap/base/util/uid.js +27 -0
  633. package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +113 -98
  634. package/dist/ssr-dom-shim.d.ts +1 -0
  635. package/dist/ssr-dom-shim.js +62 -0
  636. package/dist/ssr-dom-shim.js.map +1 -0
  637. package/dist/ssr-dom.d.ts +1 -0
  638. package/dist/ssr-dom.js +3 -0
  639. package/dist/ssr-dom.js.map +1 -0
  640. package/dist/theming/CustomStyle.js.map +1 -1
  641. package/dist/theming/applyTheme.js +9 -8
  642. package/dist/theming/applyTheme.js.map +1 -1
  643. package/dist/theming/getConstructableStyle.d.ts +2 -2
  644. package/dist/theming/getConstructableStyle.js +3 -3
  645. package/dist/theming/getConstructableStyle.js.map +1 -1
  646. package/dist/theming/getEffectiveStyle.d.ts +1 -1
  647. package/dist/theming/getEffectiveStyle.js +5 -12
  648. package/dist/theming/getEffectiveStyle.js.map +1 -1
  649. package/dist/theming/getStylesString.js +2 -4
  650. package/dist/theming/getStylesString.js.map +1 -1
  651. package/dist/theming/getThemeDesignerTheme.js +2 -1
  652. package/dist/theming/getThemeDesignerTheme.js.map +1 -1
  653. package/dist/thirdparty/_merge.js.map +1 -1
  654. package/dist/thirdparty/isPlainObject.js.map +1 -1
  655. package/dist/thirdparty/preact/jsx.d.ts +2616 -0
  656. package/dist/thirdparty/preact/jsxRuntime.module.d.ts +62 -0
  657. package/dist/thirdparty/preact/jsxRuntime.module.js +1 -0
  658. package/dist/thirdparty/preact/preact.module.d.ts +398 -0
  659. package/dist/thirdparty/preact/preact.module.js +1 -0
  660. package/dist/types/AnimationMode.d.ts +0 -8
  661. package/dist/types/AnimationMode.js +0 -8
  662. package/dist/types/AnimationMode.js.map +1 -1
  663. package/dist/types/CalendarType.d.ts +0 -9
  664. package/dist/types/CalendarType.js +0 -9
  665. package/dist/types/CalendarType.js.map +1 -1
  666. package/dist/types/InvisibleMessageMode.d.ts +5 -10
  667. package/dist/types/InvisibleMessageMode.js +4 -11
  668. package/dist/types/InvisibleMessageMode.js.map +1 -1
  669. package/dist/types/ItemNavigationBehavior.d.ts +0 -6
  670. package/dist/types/ItemNavigationBehavior.js +0 -6
  671. package/dist/types/ItemNavigationBehavior.js.map +1 -1
  672. package/dist/types/MovePlacement.d.ts +20 -0
  673. package/dist/types/MovePlacement.js +22 -0
  674. package/dist/types/MovePlacement.js.map +1 -0
  675. package/dist/types/NavigationMode.d.ts +0 -8
  676. package/dist/types/NavigationMode.js +0 -8
  677. package/dist/types/NavigationMode.js.map +1 -1
  678. package/dist/types/Orientation.d.ts +16 -0
  679. package/dist/types/Orientation.js +18 -0
  680. package/dist/types/Orientation.js.map +1 -0
  681. package/dist/types/SortOrder.d.ts +24 -0
  682. package/dist/types/SortOrder.js +26 -0
  683. package/dist/types/SortOrder.js.map +1 -0
  684. package/dist/types/ValueState.d.ts +3 -17
  685. package/dist/types/ValueState.js +3 -17
  686. package/dist/types/ValueState.js.map +1 -1
  687. package/dist/types.d.ts +37 -14
  688. package/dist/types.js.map +1 -1
  689. package/dist/updateShadowRoot.d.ts +1 -2
  690. package/dist/updateShadowRoot.js +4 -25
  691. package/dist/updateShadowRoot.js.map +1 -1
  692. package/dist/util/{AriaLabelHelper.d.ts → AccessibilityTextsHelper.d.ts} +4 -2
  693. package/dist/util/{AriaLabelHelper.js → AccessibilityTextsHelper.js} +36 -8
  694. package/dist/util/AccessibilityTextsHelper.js.map +1 -0
  695. package/dist/util/Caret.js.map +1 -1
  696. package/dist/util/ColorConversion.d.ts +2 -1
  697. package/dist/util/ColorConversion.js +233 -216
  698. package/dist/util/ColorConversion.js.map +1 -1
  699. package/dist/util/FetchHelper.js.map +1 -1
  700. package/dist/util/FocusableElements.js +40 -12
  701. package/dist/util/FocusableElements.js.map +1 -1
  702. package/dist/util/HTMLSanitizer.d.ts +2 -0
  703. package/dist/util/HTMLSanitizer.js +2 -2
  704. package/dist/util/HTMLSanitizer.js.map +1 -1
  705. package/dist/util/InvisibleMessage.js +2 -2
  706. package/dist/util/InvisibleMessage.js.map +1 -1
  707. package/dist/util/PopupUtils.d.ts +1 -3
  708. package/dist/util/PopupUtils.js +1 -15
  709. package/dist/util/PopupUtils.js.map +1 -1
  710. package/dist/util/SelectionAssistant.d.ts +12 -0
  711. package/dist/util/SelectionAssistant.js +79 -0
  712. package/dist/util/SelectionAssistant.js.map +1 -0
  713. package/dist/util/SlotsHelper.js.map +1 -1
  714. package/dist/util/StringHelper.d.ts +3 -1
  715. package/dist/util/StringHelper.js +15 -1
  716. package/dist/util/StringHelper.js.map +1 -1
  717. package/dist/util/TabbableElements.js +3 -10
  718. package/dist/util/TabbableElements.js.map +1 -1
  719. package/dist/util/arraysAreEqual.js.map +1 -1
  720. package/dist/util/clamp.js +2 -1
  721. package/dist/util/clamp.js.map +1 -1
  722. package/dist/util/createLinkInHead.d.ts +1 -1
  723. package/dist/util/createLinkInHead.js +1 -1
  724. package/dist/util/createLinkInHead.js.map +1 -1
  725. package/dist/util/debounce.js.map +1 -1
  726. package/dist/util/detectNavigatorLanguage.d.ts +2 -2
  727. package/dist/util/detectNavigatorLanguage.js +6 -1
  728. package/dist/util/detectNavigatorLanguage.js.map +1 -1
  729. package/dist/util/dragAndDrop/DragRegistry.d.ts +33 -0
  730. package/dist/util/dragAndDrop/DragRegistry.js +66 -0
  731. package/dist/util/dragAndDrop/DragRegistry.js.map +1 -0
  732. package/dist/util/dragAndDrop/findClosestPosition.d.ts +12 -0
  733. package/dist/util/dragAndDrop/findClosestPosition.js +106 -0
  734. package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -0
  735. package/dist/util/dragAndDrop/handleDragOver.d.ts +16 -0
  736. package/dist/util/dragAndDrop/handleDragOver.js +42 -0
  737. package/dist/util/dragAndDrop/handleDragOver.js.map +1 -0
  738. package/dist/util/dragAndDrop/handleDrop.d.ts +5 -0
  739. package/dist/util/dragAndDrop/handleDrop.js +22 -0
  740. package/dist/util/dragAndDrop/handleDrop.js.map +1 -0
  741. package/dist/util/dragAndDrop/longDragOverHandler.d.ts +2 -0
  742. package/dist/util/dragAndDrop/longDragOverHandler.js +25 -0
  743. package/dist/util/dragAndDrop/longDragOverHandler.js.map +1 -0
  744. package/dist/util/fixSafariActiveState.d.ts +2 -0
  745. package/dist/util/fixSafariActiveState.js +11 -0
  746. package/dist/util/fixSafariActiveState.js.map +1 -0
  747. package/dist/util/formatMessage.js.map +1 -1
  748. package/dist/util/generateHighlightedMarkup.js.map +1 -1
  749. package/dist/util/getActiveElement.js.map +1 -1
  750. package/dist/util/getClassCopy.d.ts +145 -102
  751. package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
  752. package/dist/util/getDesigntimePropertyAsArray.js +2 -1
  753. package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
  754. package/dist/util/getEffectiveScrollbarStyle.d.ts +1 -1
  755. package/dist/util/getEffectiveScrollbarStyle.js +31 -1
  756. package/dist/util/getEffectiveScrollbarStyle.js.map +1 -1
  757. package/dist/util/getFastNavigationGroups.js +6 -1
  758. package/dist/util/getFastNavigationGroups.js.map +1 -1
  759. package/dist/util/getFileExtension.js.map +1 -1
  760. package/dist/util/getNormalizedTarget.js.map +1 -1
  761. package/dist/util/getSingletonElementInstance.d.ts +10 -1
  762. package/dist/util/getSingletonElementInstance.js +11 -2
  763. package/dist/util/getSingletonElementInstance.js.map +1 -1
  764. package/dist/util/hash2str.d.ts +1 -0
  765. package/dist/util/hash2str.js +14 -0
  766. package/dist/util/hash2str.js.map +1 -0
  767. package/dist/util/isElementClickable.js.map +1 -1
  768. package/dist/util/isElementHidden.js.map +1 -1
  769. package/dist/util/isElementTabbable.js +2 -2
  770. package/dist/util/isElementTabbable.js.map +1 -1
  771. package/dist/util/isValidPropertyName.js.map +1 -1
  772. package/dist/util/throttle.d.ts +2 -0
  773. package/dist/util/throttle.js +20 -0
  774. package/dist/util/throttle.js.map +1 -0
  775. package/dist/util/toLowercaseEnumValue.d.ts +3 -0
  776. package/dist/util/toLowercaseEnumValue.js +4 -0
  777. package/dist/util/toLowercaseEnumValue.js.map +1 -0
  778. package/dist/util/whenDOMReady.js.map +1 -1
  779. package/dist/validateThemeRoot.js +3 -2
  780. package/dist/validateThemeRoot.js.map +1 -1
  781. package/dist/vscode.html-custom-data.json +22 -0
  782. package/package-scripts.cjs +26 -23
  783. package/package.json +37 -11
  784. package/src/css/FontFace.css +47 -17
  785. package/src/css/SystemCSSVars.css +0 -8
  786. package/src/thirdparty/preact/jsxRuntime.module.js +1 -0
  787. package/src/thirdparty/preact/preact.module.js +1 -0
  788. package/src/thirdparty/preact/version.txt +1 -0
  789. package/tsconfig.json +18 -13
  790. package/.eslintignore +0 -16
  791. package/.eslintrc.cjs +0 -3
  792. package/bundle.esm.js +0 -64
  793. package/config/wdio.conf.cjs +0 -400
  794. package/dist/CSP.d.ts +0 -30
  795. package/dist/CSP.js +0 -51
  796. package/dist/CSP.js.map +0 -1
  797. package/dist/MarkedEvents.d.ts +0 -9
  798. package/dist/MarkedEvents.js +0 -15
  799. package/dist/MarkedEvents.js.map +0 -1
  800. package/dist/StaticArea.d.ts +0 -3
  801. package/dist/StaticArea.js +0 -7
  802. package/dist/StaticArea.js.map +0 -1
  803. package/dist/StaticAreaItem.d.ts +0 -36
  804. package/dist/StaticAreaItem.js +0 -99
  805. package/dist/StaticAreaItem.js.map +0 -1
  806. package/dist/api.json +0 -1
  807. package/dist/assets/Boot.34b7cea0.css +0 -1
  808. package/dist/assets/Boot.650535e2.js +0 -9
  809. package/dist/assets/bundle.esm.ceb1b6b8.js +0 -50
  810. package/dist/assets-meta/IconCollectionsAlias.js.map +0 -1
  811. package/dist/config/RTL.d.ts +0 -7
  812. package/dist/config/RTL.js +0 -37
  813. package/dist/config/RTL.js.map +0 -1
  814. package/dist/config/ThemeRoots.d.ts +0 -4
  815. package/dist/config/ThemeRoots.js +0 -28
  816. package/dist/config/ThemeRoots.js.map +0 -1
  817. package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.js +0 -11
  818. package/dist/theming/getEffectiveLinksHrefs.d.ts +0 -3
  819. package/dist/theming/getEffectiveLinksHrefs.js +0 -17
  820. package/dist/theming/getEffectiveLinksHrefs.js.map +0 -1
  821. package/dist/theming/preloadLinks.d.ts +0 -3
  822. package/dist/theming/preloadLinks.js +0 -19
  823. package/dist/theming/preloadLinks.js.map +0 -1
  824. package/dist/types/CSSColor.d.ts +0 -15
  825. package/dist/types/CSSColor.js +0 -18
  826. package/dist/types/CSSColor.js.map +0 -1
  827. package/dist/types/DOMReference.d.ts +0 -17
  828. package/dist/types/DOMReference.js +0 -25
  829. package/dist/types/DOMReference.js.map +0 -1
  830. package/dist/types/DataType.d.ts +0 -25
  831. package/dist/types/DataType.js +0 -44
  832. package/dist/types/DataType.js.map +0 -1
  833. package/dist/types/Float.d.ts +0 -17
  834. package/dist/types/Float.js +0 -21
  835. package/dist/types/Float.js.map +0 -1
  836. package/dist/types/Integer.d.ts +0 -17
  837. package/dist/types/Integer.js +0 -21
  838. package/dist/types/Integer.js.map +0 -1
  839. package/dist/util/AriaLabelHelper.js.map +0 -1
  840. package/dist/util/createStyleInHead.d.ts +0 -8
  841. package/dist/util/createStyleInHead.js +0 -18
  842. package/dist/util/createStyleInHead.js.map +0 -1
  843. package/index.js +0 -230
  844. package/lib/generate-asset-parameters/index.js +0 -27
  845. package/lib/generate-styles/index.js +0 -31
  846. package/lib/generate-version-info/index.js +0 -32
  847. package/src/renderer/directives/style-map.js +0 -72
  848. package/used-modules.txt +0 -10
@@ -1,7 +1,2 @@
1
- const styleData = {
2
- packageName: "@ui5/webcomponents-base",
3
- fileName: "FontFace.css",
4
- content: `@font-face{font-family:"72";font-style:normal;font-weight:400;src:local("72"),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:"72full";font-style:normal;font-weight:400;src:local('72-full'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:"72";font-style:normal;font-weight:700;src:local('72-Bold'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:"72full";font-style:normal;font-weight:700;src:local('72-Bold-full'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Bold';font-style:normal;src:local('72-Bold'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Boldfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Light';font-style:normal;src:local('72-Light'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Light.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Lightfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Light-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:"72Black";font-style:bold;font-weight:900;src:local('72Black'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format("woff2")}`,
5
- };
6
- export default styleData;
1
+ export default `@font-face{font-family:"72";font-style:normal;font-weight:400;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2"),local("72");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:"72full";font-style:normal;font-weight:400;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2"),local('72-full')}@font-face{font-family:"72";font-style:normal;font-weight:700;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"),local('72-Bold');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:"72full";font-style:normal;font-weight:700;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Bold';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"),local('72-Bold');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72-Boldfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72-Light';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Light.woff2?ui5-webcomponents) format("woff2"),local('72-Light');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72-Lightfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Light-full.woff2?ui5-webcomponents) format("woff2")}@font-face{font-family:'72Mono';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular.woff2?ui5-webcomponents) format('woff2'),local('72Mono');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72Monofull';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular-full.woff2?ui5-webcomponents) format('woff2')}@font-face{font-family:'72Mono-Bold';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold.woff2?ui5-webcomponents) format('woff2'),local('72Mono-Bold');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72Mono-Boldfull';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold-full.woff2?ui5-webcomponents) format('woff2')}@font-face{font-family:"72Black";font-style:bold;font-weight:900;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format("woff2"),local('72Black');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72Blackfull';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black-full.woff2?ui5-webcomponents) format('woff2')}@font-face{font-family:"72-SemiboldDuplex";src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-SemiboldDuplex.woff2?ui5-webcomponents) format("woff2"),local('72-SemiboldDuplex');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}`;
7
2
  //# sourceMappingURL=FontFace.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FontFace.css.js","sourceRoot":"","sources":["../../../src/generated/css/FontFace.css.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc;IAC5B,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,8yDAA8yD;CACvzD,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"../../types.js\";\n\nconst styleData: StyleData = {\n\tpackageName: \"@ui5/webcomponents-base\",\n\tfileName: \"FontFace.css\",\n\tcontent: `@font-face{font-family:\"72\";font-style:normal;font-weight:400;src:local(\"72\"),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:\"72full\";font-style:normal;font-weight:400;src:local('72-full'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:\"72\";font-style:normal;font-weight:700;src:local('72-Bold'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:\"72full\";font-style:normal;font-weight:700;src:local('72-Bold-full'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:'72-Bold';font-style:normal;src:local('72-Bold'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:'72-Boldfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:'72-Light';font-style:normal;src:local('72-Light'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Light.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:'72-Lightfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Light-full.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:\"72Black\";font-style:bold;font-weight:900;src:local('72Black'),url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format(\"woff2\")}`,\n};\n\nexport default styleData;\n"]}
1
+ {"version":3,"file":"FontFace.css.js","sourceRoot":"","sources":["../../../src/generated/css/FontFace.css.ts"],"names":[],"mappings":"AAAA,eAAe,0/IAA0/I,CAAC","sourcesContent":["export default `@font-face{font-family:\"72\";font-style:normal;font-weight:400;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Regular.woff2?ui5-webcomponents) format(\"woff2\"),local(\"72\");unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:\"72full\";font-style:normal;font-weight:400;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Regular-full.woff2?ui5-webcomponents) format(\"woff2\"),local('72-full')}@font-face{font-family:\"72\";font-style:normal;font-weight:700;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2?ui5-webcomponents) format(\"woff2\"),local('72-Bold');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:\"72full\";font-style:normal;font-weight:700;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold-full.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:'72-Bold';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2?ui5-webcomponents) format(\"woff2\"),local('72-Bold');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72-Boldfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold-full.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:'72-Light';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Light.woff2?ui5-webcomponents) format(\"woff2\"),local('72-Light');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72-Lightfull';font-style:normal;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Light-full.woff2?ui5-webcomponents) format(\"woff2\")}@font-face{font-family:'72Mono';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular.woff2?ui5-webcomponents) format('woff2'),local('72Mono');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72Monofull';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular-full.woff2?ui5-webcomponents) format('woff2')}@font-face{font-family:'72Mono-Bold';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold.woff2?ui5-webcomponents) format('woff2'),local('72Mono-Bold');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72Mono-Boldfull';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold-full.woff2?ui5-webcomponents) format('woff2')}@font-face{font-family:\"72Black\";font-style:bold;font-weight:900;src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format(\"woff2\"),local('72Black');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}@font-face{font-family:'72Blackfull';src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black-full.woff2?ui5-webcomponents) format('woff2')}@font-face{font-family:\"72-SemiboldDuplex\";src:url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-SemiboldDuplex.woff2?ui5-webcomponents) format(\"woff2\"),local('72-SemiboldDuplex');unicode-range:U+00,U+0D,U+20-7E,U+A0-FF,U+131,U+152-153,U+161,U+178,U+17D-17E,U+192,U+237,U+2C6,U+2DC,U+3BC,U+1E9E,U+2013-2014,U+2018-201A,U+201C-201E,U+2020-2022,U+2026,U+2030,U+2039-203A,U+2044,U+20AC,U+2122}`;"]}
@@ -1,3 +1,2 @@
1
- import type { StyleData } from "../../types.js";
2
- declare const styleData: StyleData;
3
- export default styleData;
1
+ declare const _default: "@font-face{font-family:'72override';unicode-range:U+0102-0103,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EB7,U+1EB8-1EC7,U+1EC8-1ECB,U+1ECC-1EE3,U+1EE4-1EF1,U+1EF4-1EF7;src:local('Arial'),local('Helvetica'),local('sans-serif')}";
2
+ export default _default;
@@ -1,7 +1,2 @@
1
- const styleData = {
2
- packageName: "@ui5/webcomponents-base",
3
- fileName: "OverrideFontFace.css",
4
- content: `@font-face{font-family:'72override';unicode-range:U+0102-0103,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EB7,U+1EB8-1EC7,U+1EC8-1ECB,U+1ECC-1EE3,U+1EE4-1EF1,U+1EF4-1EF7;src:local('Arial'),local('Helvetica'),local('sans-serif')}`,
5
- };
6
- export default styleData;
1
+ export default `@font-face{font-family:'72override';unicode-range:U+0102-0103,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EB7,U+1EB8-1EC7,U+1EC8-1ECB,U+1ECC-1EE3,U+1EE4-1EF1,U+1EF4-1EF7;src:local('Arial'),local('Helvetica'),local('sans-serif')}`;
7
2
  //# sourceMappingURL=OverrideFontFace.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OverrideFontFace.css.js","sourceRoot":"","sources":["../../../src/generated/css/OverrideFontFace.css.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc;IAC5B,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE,sBAAsB;IAChC,OAAO,EAAE,0NAA0N;CACnO,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"../../types.js\";\n\nconst styleData: StyleData = {\n\tpackageName: \"@ui5/webcomponents-base\",\n\tfileName: \"OverrideFontFace.css\",\n\tcontent: `@font-face{font-family:'72override';unicode-range:U+0102-0103,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EB7,U+1EB8-1EC7,U+1EC8-1ECB,U+1ECC-1EE3,U+1EE4-1EF1,U+1EF4-1EF7;src:local('Arial'),local('Helvetica'),local('sans-serif')}`,\n};\n\nexport default styleData;\n"]}
1
+ {"version":3,"file":"OverrideFontFace.css.js","sourceRoot":"","sources":["../../../src/generated/css/OverrideFontFace.css.ts"],"names":[],"mappings":"AAAA,eAAe,0NAA0N,CAAC","sourcesContent":["export default `@font-face{font-family:'72override';unicode-range:U+0102-0103,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EB7,U+1EB8-1EC7,U+1EC8-1ECB,U+1ECC-1EE3,U+1EE4-1EF1,U+1EF4-1EF7;src:local('Arial'),local('Helvetica'),local('sans-serif')}`;"]}
@@ -1,3 +1,2 @@
1
- import type { StyleData } from "../../types.js";
2
- declare const styleData: StyleData;
3
- export default styleData;
1
+ declare const _default: ":root{--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5_content_density:compact}";
2
+ export default _default;
@@ -1,7 +1,2 @@
1
- const styleData = {
2
- packageName: "@ui5/webcomponents-base",
3
- fileName: "SystemCSSVars.css",
4
- content: `:root{--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5_content_density:compact}[dir=rtl]{--_ui5_dir:rtl}[dir=ltr]{--_ui5_dir:ltr}`,
5
- };
6
- export default styleData;
1
+ export default `:root{--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5_content_density:compact}`;
7
2
  //# sourceMappingURL=SystemCSSVars.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SystemCSSVars.css.js","sourceRoot":"","sources":["../../../src/generated/css/SystemCSSVars.css.ts"],"names":[],"mappings":"AAEA,MAAM,SAAS,GAAc;IAC5B,WAAW,EAAE,yBAAyB;IACtC,QAAQ,EAAE,mBAAmB;IAC7B,OAAO,EAAE,4LAA4L;CACrM,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["import type { StyleData } from \"../../types.js\";\n\nconst styleData: StyleData = {\n\tpackageName: \"@ui5/webcomponents-base\",\n\tfileName: \"SystemCSSVars.css\",\n\tcontent: `:root{--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5_content_density:compact}[dir=rtl]{--_ui5_dir:rtl}[dir=ltr]{--_ui5_dir:ltr}`,\n};\n\nexport default styleData;\n"]}
1
+ {"version":3,"file":"SystemCSSVars.css.js","sourceRoot":"","sources":["../../../src/generated/css/SystemCSSVars.css.ts"],"names":[],"mappings":"AAAA,eAAe,0IAA0I,CAAC","sourcesContent":["export default `:root{--_ui5_content_density:cozy}.sapUiSizeCompact,.ui5-content-density-compact,[data-ui5-compact-size]{--_ui5_content_density:compact}`;"]}
@@ -1,9 +1,15 @@
1
1
  import getSingletonElementInstance from "./util/getSingletonElementInstance.js";
2
+ const getMetaDomEl = () => {
3
+ const el = document.createElement("meta");
4
+ el.setAttribute("name", "ui5-shared-resources");
5
+ el.setAttribute("content", ""); // attribute "content" should be present when "name" is set.
6
+ return el;
7
+ };
2
8
  const getSharedResourcesInstance = () => {
3
9
  if (typeof document === "undefined") {
4
10
  return null;
5
11
  }
6
- return getSingletonElementInstance("ui5-shared-resources");
12
+ return getSingletonElementInstance(`meta[name="ui5-shared-resources"]`, document.head, getMetaDomEl);
7
13
  };
8
14
  /**
9
15
  * Use this method to initialize/get resources that you would like to be shared among UI5 Web Components runtime instances.
@@ -1 +1 @@
1
- {"version":3,"file":"getSharedResource.js","sourceRoot":"","sources":["../src/getSharedResource.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,MAAM,uCAAuC,CAAC;AAEhF,MAAM,0BAA0B,GAAG,GAAmC,EAAE;IACvE,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACpC,OAAO,IAAI,CAAC;KACZ;IACD,OAAO,2BAA2B,CAAC,sBAAsB,CAAuC,CAAC;AAClG,CAAC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,iBAAiB,GAAG,CAAI,SAAiB,EAAE,YAAe,EAAK,EAAE;IACtE,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,OAAO,GAAG,0BAA0B,EAAyB,CAAC;IAElE,IAAI,CAAC,OAAO,EAAE;QACb,OAAO,YAAY,CAAC;KACpB;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,MAAM,QAAQ,GAAG,CAAC,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QACxC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE;YACzD,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;SAC7C;QACD,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;KACxB;IAED,OAAO,OAAY,CAAC;AACrB,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import getSingletonElementInstance from \"./util/getSingletonElementInstance.js\";\n\nconst getSharedResourcesInstance = (): Record<string, unknown> | null => {\n\tif (typeof document === \"undefined\") {\n\t\treturn null;\n\t}\n\treturn getSingletonElementInstance(\"ui5-shared-resources\") as unknown as Record<string, unknown>;\n};\n\n/**\n * Use this method to initialize/get resources that you would like to be shared among UI5 Web Components runtime instances.\n * The data will be accessed via a singleton \"ui5-shared-resources\" HTML element in the \"body\" element of the page.\n *\n * @public\n * @param namespace Unique ID of the resource, may contain \".\" to denote hierarchy\n * @param initialValue Object or primitive that will be used as an initial value if the resource does not exist\n * @returns {*}\n */\nconst getSharedResource = <T>(namespace: string, initialValue: T): T => {\n\tconst parts = namespace.split(\".\");\n\tlet current = getSharedResourcesInstance() as Record<string, any>;\n\n\tif (!current) {\n\t\treturn initialValue;\n\t}\n\n\tfor (let i = 0; i < parts.length; i++) {\n\t\tconst part = parts[i];\n\t\tconst lastPart = i === parts.length - 1;\n\t\tif (!Object.prototype.hasOwnProperty.call(current, part)) {\n\t\t\tcurrent[part] = lastPart ? initialValue : {};\n\t\t}\n\t\tcurrent = current[part];\n\t}\n\n\treturn current as T;\n};\n\nexport default getSharedResource;\n"]}
1
+ {"version":3,"file":"getSharedResource.js","sourceRoot":"","sources":["../src/getSharedResource.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,MAAM,uCAAuC,CAAC;AAEhF,MAAM,YAAY,GAAG,GAAG,EAAE;IACzB,MAAM,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC1C,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAChD,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,4DAA4D;IAC5F,OAAO,EAAE,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,GAAmB,EAAE;IACvD,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC;IACb,CAAC;IACD,OAAO,2BAA2B,CAAC,mCAAmC,EAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;AACtG,CAAC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,iBAAiB,GAAG,CAAI,SAAiB,EAAE,YAAe,EAAK,EAAE;IACtE,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,OAAO,GAAG,0BAA0B,EAAyB,CAAC;IAElE,IAAI,CAAC,OAAO,EAAE,CAAC;QACd,OAAO,YAAY,CAAC;IACrB,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,MAAM,QAAQ,GAAG,CAAC,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;QACxC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;YAC1D,OAAO,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9C,CAAC;QACD,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IAED,OAAO,OAAY,CAAC;AACrB,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","sourcesContent":["import getSingletonElementInstance from \"./util/getSingletonElementInstance.js\";\n\nconst getMetaDomEl = () => {\n\tconst el = document.createElement(\"meta\");\n\tel.setAttribute(\"name\", \"ui5-shared-resources\");\n\tel.setAttribute(\"content\", \"\"); // attribute \"content\" should be present when \"name\" is set.\n\treturn el;\n};\n\nconst getSharedResourcesInstance = (): Element | null => {\n\tif (typeof document === \"undefined\") {\n\t\treturn null;\n\t}\n\treturn getSingletonElementInstance(`meta[name=\"ui5-shared-resources\"]`, document.head, getMetaDomEl);\n};\n\n/**\n * Use this method to initialize/get resources that you would like to be shared among UI5 Web Components runtime instances.\n * The data will be accessed via a singleton \"ui5-shared-resources\" HTML element in the \"body\" element of the page.\n *\n * @public\n * @param namespace Unique ID of the resource, may contain \".\" to denote hierarchy\n * @param initialValue Object or primitive that will be used as an initial value if the resource does not exist\n * @returns {*}\n */\nconst getSharedResource = <T>(namespace: string, initialValue: T): T => {\n\tconst parts = namespace.split(\".\");\n\tlet current = getSharedResourcesInstance() as Record<string, any>;\n\n\tif (!current) {\n\t\treturn initialValue;\n\t}\n\n\tfor (let i = 0; i < parts.length; i++) {\n\t\tconst part = parts[i];\n\t\tconst lastPart = i === parts.length - 1;\n\t\tif (!Object.prototype.hasOwnProperty.call(current, part)) {\n\t\t\tcurrent[part] = lastPart ? initialValue : {};\n\t\t}\n\t\tcurrent = current[part];\n\t}\n\n\treturn current as T;\n};\n\nexport default getSharedResource;\n"]}
@@ -15,18 +15,16 @@ declare class I18nBundle {
15
15
  * Returns a text in the currently loaded language
16
16
  *
17
17
  * @public
18
- * @param {Object|String} textObj key/defaultText pair or just the key
18
+ * @param textObj key/defaultText pair or just the key
19
19
  * @param params Values for the placeholders
20
- * @returns {string}
21
20
  */
22
- getText(textObj: I18nText, ...params: Array<number | string>): string;
21
+ getText(textObj: I18nText | string, ...params: Array<number | string>): string;
23
22
  }
24
23
  /**
25
24
  * Fetches and returns the I18nBundle instance for the given package.
26
25
  *
27
26
  * @public
28
27
  * @param packageName
29
- * @returns { Promise<I18nBundle> }
30
28
  */
31
29
  declare const getI18nBundle: (packageName: string) => Promise<I18nBundle>;
32
30
  /**
@@ -14,9 +14,8 @@ class I18nBundle {
14
14
  * Returns a text in the currently loaded language
15
15
  *
16
16
  * @public
17
- * @param {Object|String} textObj key/defaultText pair or just the key
17
+ * @param textObj key/defaultText pair or just the key
18
18
  * @param params Values for the placeholders
19
- * @returns {string}
20
19
  */
21
20
  getText(textObj, ...params) {
22
21
  if (typeof textObj === "string") {
@@ -27,7 +26,8 @@ class I18nBundle {
27
26
  }
28
27
  const bundle = getI18nBundleData(this.packageName);
29
28
  if (bundle && !bundle[textObj.key]) {
30
- console.warn(`Key ${textObj.key} not found in the i18n bundle, the default text will be used`); // eslint-disable-line
29
+ // eslint-disable-next-line no-console
30
+ console.warn(`Key ${textObj.key} not found in the i18n bundle, the default text will be used`);
31
31
  }
32
32
  const messageText = bundle && bundle[textObj.key] ? bundle[textObj.key] : (textObj.defaultText || textObj.key);
33
33
  return formatMessage(messageText, params);
@@ -38,7 +38,6 @@ class I18nBundle {
38
38
  *
39
39
  * @public
40
40
  * @param packageName
41
- * @returns { I18nBundle }
42
41
  */
43
42
  const getI18nBundleSync = (packageName) => {
44
43
  if (I18nBundleInstances.has(packageName)) {
@@ -53,7 +52,6 @@ const getI18nBundleSync = (packageName) => {
53
52
  *
54
53
  * @public
55
54
  * @param packageName
56
- * @returns { Promise<I18nBundle> }
57
55
  */
58
56
  const getI18nBundle = async (packageName) => {
59
57
  if (customGetI18nBundle) {
@@ -1 +1 @@
1
- {"version":3,"file":"i18nBundle.js","sourceRoot":"","sources":["../src/i18nBundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpG,OAAO,aAAa,MAAM,yBAAyB,CAAC;AAEpD,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAsB,CAAC;AAE1D,IAAI,mBAAqC,CAAC;AAS1C;;;GAGG;AACH,MAAM,UAAU;IAGf,YAAY,WAAmB;QAC9B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IAChC,CAAC;IAED;;;;;;;OAOG;IACH,OAAO,CAAC,OAAiB,EAAE,GAAG,MAA8B;QAC3D,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;YAChC,OAAO,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;SACjD;QAED,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YAC7B,OAAO,EAAE,CAAC;SACV;QAED,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACnD,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACnC,OAAO,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,GAAG,8DAA8D,CAAC,CAAC,CAAC,sBAAsB;SACtH;QACD,MAAM,WAAW,GAAG,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;QAE/G,OAAO,aAAa,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;CACD;AAED;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,CAAC,WAAmB,EAAc,EAAE;IAC7D,IAAI,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;QACzC,OAAO,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAE,CAAC;KAC7C;IAED,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC;IAC/C,mBAAmB,CAAC,GAAG,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACjD,OAAO,UAAU,CAAC;AACnB,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,aAAa,GAAG,KAAK,EAAE,WAAmB,EAAuB,EAAE;IACxE,IAAI,mBAAmB,EAAE;QACxB,OAAO,mBAAmB,CAAC,WAAW,CAAC,CAAC;KACxC;IAED,MAAM,eAAe,CAAC,WAAW,CAAC,CAAC;IACnC,OAAO,iBAAiB,CAAC,WAAW,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,8BAA8B,GAAG,CAAC,SAA2B,EAAE,EAAE;IACtE,mBAAmB,GAAG,SAAS,CAAC;AACjC,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC;AAE1B,OAAO,EACN,kBAAkB,EAClB,aAAa,EACb,8BAA8B,GAC9B,CAAC","sourcesContent":["import { registerI18nLoader, fetchI18nBundle, getI18nBundleData } from \"./asset-registries/i18n.js\";\nimport formatMessage from \"./util/formatMessage.js\";\n\nconst I18nBundleInstances = new Map<string, I18nBundle>();\n\nlet customGetI18nBundle: I18nBundleGetter;\n\ntype I18nText = {\n\tkey: string,\n\tdefaultText: string,\n};\n\ntype I18nBundleGetter = (packageName: string) => Promise<I18nBundle>;\n\n/**\n * @class\n * @public\n */\nclass I18nBundle {\n\tpackageName: string;\n\n\tconstructor(packageName: string) {\n\t\tthis.packageName = packageName;\n\t}\n\n\t/**\n\t * Returns a text in the currently loaded language\n\t *\n\t * @public\n\t * @param {Object|String} textObj key/defaultText pair or just the key\n\t * @param params Values for the placeholders\n\t * @returns {string}\n\t */\n\tgetText(textObj: I18nText, ...params: Array<number | string>): string {\n\t\tif (typeof textObj === \"string\") {\n\t\t\ttextObj = { key: textObj, defaultText: textObj };\n\t\t}\n\n\t\tif (!textObj || !textObj.key) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tconst bundle = getI18nBundleData(this.packageName);\n\t\tif (bundle && !bundle[textObj.key]) {\n\t\t\tconsole.warn(`Key ${textObj.key} not found in the i18n bundle, the default text will be used`); // eslint-disable-line\n\t\t}\n\t\tconst messageText = bundle && bundle[textObj.key] ? bundle[textObj.key] : (textObj.defaultText || textObj.key);\n\n\t\treturn formatMessage(messageText, params);\n\t}\n}\n\n/**\n * Returns the I18nBundle instance for the given package synchronously.\n *\n * @public\n * @param packageName\n * @returns { I18nBundle }\n */\nconst getI18nBundleSync = (packageName: string): I18nBundle => {\n\tif (I18nBundleInstances.has(packageName)) {\n\t\treturn I18nBundleInstances.get(packageName)!;\n\t}\n\n\tconst i18nBundle = new I18nBundle(packageName);\n\tI18nBundleInstances.set(packageName, i18nBundle);\n\treturn i18nBundle;\n};\n\n/**\n * Fetches and returns the I18nBundle instance for the given package.\n *\n * @public\n * @param packageName\n * @returns { Promise<I18nBundle> }\n */\nconst getI18nBundle = async (packageName: string): Promise<I18nBundle> => {\n\tif (customGetI18nBundle) {\n\t\treturn customGetI18nBundle(packageName);\n\t}\n\n\tawait fetchI18nBundle(packageName);\n\treturn getI18nBundleSync(packageName);\n};\n\n/**\n * Allows developers to provide a custom getI18nBundle implementation\n * If this function is called, the custom implementation will be used for all components and will completely\n * replace the default implementation.\n *\n * @public\n * @param customGet the function to use instead of the standard getI18nBundle implementation\n */\nconst registerCustomI18nBundleGetter = (customGet: I18nBundleGetter) => {\n\tcustomGetI18nBundle = customGet;\n};\n\nexport default I18nBundle;\n\nexport {\n\tregisterI18nLoader,\n\tgetI18nBundle,\n\tregisterCustomI18nBundleGetter,\n};\n\nexport type {\n\tI18nText,\n};\n"]}
1
+ {"version":3,"file":"i18nBundle.js","sourceRoot":"","sources":["../src/i18nBundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpG,OAAO,aAAa,MAAM,yBAAyB,CAAC;AAEpD,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAsB,CAAC;AAE1D,IAAI,mBAAqC,CAAC;AAS1C;;;GAGG;AACH,MAAM,UAAU;IAGf,YAAY,WAAmB;QAC9B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IAChC,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,OAA0B,EAAE,GAAG,MAA8B;QACpE,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YACjC,OAAO,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;QAClD,CAAC;QAED,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YAC9B,OAAO,EAAE,CAAC;QACX,CAAC;QAED,MAAM,MAAM,GAAG,iBAAiB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACnD,IAAI,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;YACpC,sCAAsC;YACtC,OAAO,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,GAAG,8DAA8D,CAAC,CAAC;QAChG,CAAC;QACD,MAAM,WAAW,GAAG,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;QAE/G,OAAO,aAAa,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;CACD;AAED;;;;;GAKG;AACH,MAAM,iBAAiB,GAAG,CAAC,WAAmB,EAAc,EAAE;IAC7D,IAAI,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;QAC1C,OAAO,mBAAmB,CAAC,GAAG,CAAC,WAAW,CAAE,CAAC;IAC9C,CAAC;IAED,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC;IAC/C,mBAAmB,CAAC,GAAG,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;IACjD,OAAO,UAAU,CAAC;AACnB,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,aAAa,GAAG,KAAK,EAAE,WAAmB,EAAuB,EAAE;IACxE,IAAI,mBAAmB,EAAE,CAAC;QACzB,OAAO,mBAAmB,CAAC,WAAW,CAAC,CAAC;IACzC,CAAC;IAED,MAAM,eAAe,CAAC,WAAW,CAAC,CAAC;IACnC,OAAO,iBAAiB,CAAC,WAAW,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,8BAA8B,GAAG,CAAC,SAA2B,EAAQ,EAAE;IAC5E,mBAAmB,GAAG,SAAS,CAAC;AACjC,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC;AAE1B,OAAO,EACN,kBAAkB,EAClB,aAAa,EACb,8BAA8B,GAC9B,CAAC","sourcesContent":["import { registerI18nLoader, fetchI18nBundle, getI18nBundleData } from \"./asset-registries/i18n.js\";\nimport formatMessage from \"./util/formatMessage.js\";\n\nconst I18nBundleInstances = new Map<string, I18nBundle>();\n\nlet customGetI18nBundle: I18nBundleGetter;\n\ntype I18nText = {\n\tkey: string,\n\tdefaultText: string,\n};\n\ntype I18nBundleGetter = (packageName: string) => Promise<I18nBundle>;\n\n/**\n * @class\n * @public\n */\nclass I18nBundle {\n\tpackageName: string;\n\n\tconstructor(packageName: string) {\n\t\tthis.packageName = packageName;\n\t}\n\n\t/**\n\t * Returns a text in the currently loaded language\n\t *\n\t * @public\n\t * @param textObj key/defaultText pair or just the key\n\t * @param params Values for the placeholders\n\t */\n\tgetText(textObj: I18nText | string, ...params: Array<number | string>): string {\n\t\tif (typeof textObj === \"string\") {\n\t\t\ttextObj = { key: textObj, defaultText: textObj };\n\t\t}\n\n\t\tif (!textObj || !textObj.key) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tconst bundle = getI18nBundleData(this.packageName);\n\t\tif (bundle && !bundle[textObj.key]) {\n\t\t\t// eslint-disable-next-line no-console\n\t\t\tconsole.warn(`Key ${textObj.key} not found in the i18n bundle, the default text will be used`);\n\t\t}\n\t\tconst messageText = bundle && bundle[textObj.key] ? bundle[textObj.key] : (textObj.defaultText || textObj.key);\n\n\t\treturn formatMessage(messageText, params);\n\t}\n}\n\n/**\n * Returns the I18nBundle instance for the given package synchronously.\n *\n * @public\n * @param packageName\n */\nconst getI18nBundleSync = (packageName: string): I18nBundle => {\n\tif (I18nBundleInstances.has(packageName)) {\n\t\treturn I18nBundleInstances.get(packageName)!;\n\t}\n\n\tconst i18nBundle = new I18nBundle(packageName);\n\tI18nBundleInstances.set(packageName, i18nBundle);\n\treturn i18nBundle;\n};\n\n/**\n * Fetches and returns the I18nBundle instance for the given package.\n *\n * @public\n * @param packageName\n */\nconst getI18nBundle = async (packageName: string): Promise<I18nBundle> => {\n\tif (customGetI18nBundle) {\n\t\treturn customGetI18nBundle(packageName);\n\t}\n\n\tawait fetchI18nBundle(packageName);\n\treturn getI18nBundleSync(packageName);\n};\n\n/**\n * Allows developers to provide a custom getI18nBundle implementation\n * If this function is called, the custom implementation will be used for all components and will completely\n * replace the default implementation.\n *\n * @public\n * @param customGet the function to use instead of the standard getI18nBundle implementation\n */\nconst registerCustomI18nBundleGetter = (customGet: I18nBundleGetter): void => {\n\tcustomGetI18nBundle = customGet;\n};\n\nexport default I18nBundle;\n\nexport {\n\tregisterI18nLoader,\n\tgetI18nBundle,\n\tregisterCustomI18nBundleGetter,\n};\n\nexport type {\n\tI18nText,\n};\n"]}
@@ -0,0 +1,48 @@
1
+ import type { JSX } from "./jsx-runtime.d.ts";
2
+ import scroll from "./animations/scroll.js";
3
+ import slideDown from "./animations/slideDown.js";
4
+ import slideUp from "./animations/slideUp.js";
5
+ import { getAnimationMode, setAnimationMode } from "./config/AnimationMode.js";
6
+ import { getCalendarType } from "./config/CalendarType.js";
7
+ import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "./config/FormatSettings.js";
8
+ import { setDefaultIconCollection, getDefaultIconCollection } from "./config/Icons.js";
9
+ import { RegisteredIconCollection } from "./asset-registries/util/IconCollectionsByTheme.js";
10
+ import getEffectiveIconCollection from "./asset-registries/util/getIconCollectionByTheme.js";
11
+ import { getLanguage, setLanguage, getDefaultLanguage, setFetchDefaultLanguage, getFetchDefaultLanguage } from "./config/Language.js";
12
+ import { getNoConflict, setNoConflict } from "./config/NoConflict.js";
13
+ import { getTheme, setTheme, getDefaultTheme } from "./config/Theme.js";
14
+ import customElement from "./decorators/customElement.js";
15
+ import event from "./decorators/event.js";
16
+ import property from "./decorators/property.js";
17
+ import slot from "./decorators/slot.js";
18
+ import ItemNavigation from "./delegate/ItemNavigation.js";
19
+ import ResizeHandler from "./delegate/ResizeHandler.js";
20
+ import ScrollEnablement from "./delegate/ScrollEnablement.js";
21
+ import applyDirection from "./locale/applyDirection.js";
22
+ import { attachDirectionChange, detachDirectionChange } from "./locale/directionChange.js";
23
+ import getEffectiveDir from "./locale/getEffectiveDir.js";
24
+ import { attachLanguageChange, detachLanguageChange } from "./locale/languageChange.js";
25
+ import { URLListValidator, sanitizeHTML } from "./util/HTMLSanitizer.js";
26
+ import { registerI18nLoader } from "./asset-registries/i18n.js";
27
+ import { registerLocaleDataLoader } from "./asset-registries/LocaleData.js";
28
+ import { registerThemePropertiesLoader } from "./asset-registries/Themes.js";
29
+ import { registerIconLoader } from "./asset-registries/Icons.js";
30
+ import { attachBoot } from "./Boot.js";
31
+ import { setCustomElementsScopingSuffix, getCustomElementsScopingSuffix, setCustomElementsScopingRules, getCustomElementsScopingRules, getEffectiveScopingSuffixForTag } from "./CustomElementsScope.js";
32
+ import { supportsTouch, isSafari, isChrome, isFirefox, isPhone, isTablet, isDesktop, isCombi, isIOS, isAndroid } from "./Device.js";
33
+ import EventProvider from "./EventProvider.js";
34
+ import I18nBundle, { getI18nBundle, registerCustomI18nBundleGetter } from "./i18nBundle.js";
35
+ import MediaRange from "./MediaRange.js";
36
+ import { renderDeferred, renderImmediately, cancelRender, renderFinished } from "./Render.js";
37
+ import { addCustomCSS, attachThemeLoaded, detachThemeLoaded } from "./Theming.js";
38
+ import UI5Element from "./UI5Element.js";
39
+ export default UI5Element;
40
+ export { scroll, slideDown, slideUp, getAnimationMode, setAnimationMode, getCalendarType, getFirstDayOfWeek, getLegacyDateCalendarCustomizing, setDefaultIconCollection, getDefaultIconCollection, getEffectiveIconCollection, RegisteredIconCollection, 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, };
41
+ type TargetedCustomEvent<D, T> = Omit<CustomEvent<D>, "currentTarget"> & {
42
+ currentTarget: T;
43
+ };
44
+ export type UI5CustomEvent<T extends UI5Element, N extends keyof T["eventDetails"]> = TargetedCustomEvent<T["eventDetails"][N], T>;
45
+ export type JsxTemplateResult = JSX.Element | void;
46
+ export type JsxTemplate = () => JsxTemplateResult;
47
+ export type * from "./types.d.ts";
48
+ export type * from "./jsx-runtime.d.ts";
package/dist/index.js ADDED
@@ -0,0 +1,88 @@
1
+ // animations/
2
+ import scroll from "./animations/scroll.js";
3
+ import slideDown from "./animations/slideDown.js";
4
+ import slideUp from "./animations/slideUp.js";
5
+ // config/
6
+ import { getAnimationMode, setAnimationMode } from "./config/AnimationMode.js";
7
+ import { getCalendarType } from "./config/CalendarType.js";
8
+ import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "./config/FormatSettings.js";
9
+ import { setDefaultIconCollection, getDefaultIconCollection, } from "./config/Icons.js";
10
+ import { RegisteredIconCollection } from "./asset-registries/util/IconCollectionsByTheme.js";
11
+ import getEffectiveIconCollection from "./asset-registries/util/getIconCollectionByTheme.js";
12
+ import { getLanguage, setLanguage, getDefaultLanguage, setFetchDefaultLanguage, getFetchDefaultLanguage, } from "./config/Language.js";
13
+ import { getNoConflict, setNoConflict } from "./config/NoConflict.js";
14
+ import { getTheme, setTheme, getDefaultTheme, } from "./config/Theme.js";
15
+ // decorators/
16
+ import customElement from "./decorators/customElement.js";
17
+ import event from "./decorators/event.js";
18
+ import property from "./decorators/property.js";
19
+ import slot from "./decorators/slot.js";
20
+ // delegate/
21
+ import ItemNavigation from "./delegate/ItemNavigation.js";
22
+ import ResizeHandler from "./delegate/ResizeHandler.js";
23
+ import ScrollEnablement from "./delegate/ScrollEnablement.js";
24
+ // locale/
25
+ import applyDirection from "./locale/applyDirection.js";
26
+ import { attachDirectionChange, detachDirectionChange } from "./locale/directionChange.js";
27
+ import getEffectiveDir from "./locale/getEffectiveDir.js";
28
+ import { attachLanguageChange, detachLanguageChange } from "./locale/languageChange.js";
29
+ // util/
30
+ import { URLListValidator, sanitizeHTML } from "./util/HTMLSanitizer.js";
31
+ // Assets.ts
32
+ import { registerI18nLoader } from "./asset-registries/i18n.js";
33
+ import { registerLocaleDataLoader } from "./asset-registries/LocaleData.js";
34
+ import { registerThemePropertiesLoader } from "./asset-registries/Themes.js";
35
+ import { registerIconLoader } from "./asset-registries/Icons.js";
36
+ // Boot.ts
37
+ import { attachBoot } from "./Boot.js";
38
+ // CustomElementsScope.ts
39
+ import { setCustomElementsScopingSuffix, getCustomElementsScopingSuffix, setCustomElementsScopingRules, getCustomElementsScopingRules, getEffectiveScopingSuffixForTag, } from "./CustomElementsScope.js";
40
+ // Device.ts
41
+ import { supportsTouch, isSafari, isChrome, isFirefox, isPhone, isTablet, isDesktop, isCombi, isIOS, isAndroid, } from "./Device.js";
42
+ // EventProvider.ts
43
+ import EventProvider from "./EventProvider.js";
44
+ // i18nBundle.ts
45
+ import I18nBundle, { getI18nBundle, registerCustomI18nBundleGetter } from "./i18nBundle.js";
46
+ // MediaRange.ts
47
+ import MediaRange from "./MediaRange.js";
48
+ // Render.ts
49
+ import { renderDeferred, renderImmediately, cancelRender, renderFinished, } from "./Render.js";
50
+ // Theming.ts
51
+ import { addCustomCSS, attachThemeLoaded, detachThemeLoaded } from "./Theming.js";
52
+ // UI5Element.ts
53
+ import UI5Element from "./UI5Element.js";
54
+ export default UI5Element;
55
+ export {
56
+ // animations/
57
+ scroll, slideDown, slideUp,
58
+ // config/
59
+ getAnimationMode, setAnimationMode, getCalendarType, getFirstDayOfWeek, getLegacyDateCalendarCustomizing, setDefaultIconCollection, getDefaultIconCollection, getEffectiveIconCollection, RegisteredIconCollection, getLanguage, setLanguage, getDefaultLanguage, setFetchDefaultLanguage, getFetchDefaultLanguage, getNoConflict, setNoConflict, getTheme, setTheme, getDefaultTheme,
60
+ // decorators/
61
+ customElement, event, property, slot,
62
+ // delegate/
63
+ ItemNavigation, ResizeHandler, ScrollEnablement,
64
+ // locale/
65
+ applyDirection, attachDirectionChange, detachDirectionChange, getEffectiveDir, attachLanguageChange, detachLanguageChange,
66
+ // util/
67
+ URLListValidator, sanitizeHTML,
68
+ // Assets.ts
69
+ registerI18nLoader, registerLocaleDataLoader, registerThemePropertiesLoader, registerIconLoader,
70
+ // Boot.ts
71
+ attachBoot,
72
+ // CustomElementsScope.ts
73
+ setCustomElementsScopingSuffix, getCustomElementsScopingSuffix, setCustomElementsScopingRules, getCustomElementsScopingRules, getEffectiveScopingSuffixForTag,
74
+ // Device.ts
75
+ supportsTouch, isSafari, isChrome, isFirefox, isPhone, isTablet, isDesktop, isCombi, isIOS, isAndroid,
76
+ // EventProvider.ts
77
+ EventProvider,
78
+ // i18nBundle.ts
79
+ I18nBundle, getI18nBundle, registerCustomI18nBundleGetter,
80
+ // MediaRange.ts
81
+ MediaRange,
82
+ // Render.ts
83
+ renderDeferred, renderImmediately, cancelRender, renderFinished,
84
+ // Theming.ts
85
+ addCustomCSS, attachThemeLoaded, detachThemeLoaded,
86
+ // UI5Element.ts
87
+ UI5Element, };
88
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,cAAc;AACd,OAAO,MAAM,MAAM,wBAAwB,CAAC;AAC5C,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,OAAO,MAAM,yBAAyB,CAAC;AAE9C,UAAU;AACV,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC;AACjG,OAAO,EACN,wBAAwB,EACxB,wBAAwB,GACxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,wBAAwB,EAAE,MAAM,mDAAmD,CAAC;AAC7F,OAAO,0BAA0B,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EACN,QAAQ,EACR,QAAQ,EACR,eAAe,GACf,MAAM,mBAAmB,CAAC;AAE3B,cAAc;AACd,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,KAAK,MAAM,uBAAuB,CAAC;AAC1C,OAAO,QAAQ,MAAM,0BAA0B,CAAC;AAChD,OAAO,IAAI,MAAM,sBAAsB,CAAC;AAExC,YAAY;AACZ,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAC1D,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAE9D,UAAU;AACV,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAExF,QAAQ;AACR,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEzE,YAAY;AACZ,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,UAAU;AACV,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,yBAAyB;AACzB,OAAO,EACN,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B,GAC/B,MAAM,0BAA0B,CAAC;AAElC,YAAY;AACZ,OAAO,EACN,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,KAAK,EACL,SAAS,GACT,MAAM,aAAa,CAAC;AAErB,mBAAmB;AACnB,OAAO,aAAa,MAAM,oBAAoB,CAAC;AAE/C,gBAAgB;AAChB,OAAO,UAAU,EAAE,EAAE,aAAa,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAC;AAE5F,gBAAgB;AAChB,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,YAAY;AACZ,OAAO,EACN,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,cAAc,GACd,MAAM,aAAa,CAAC;AAErB,aAAa;AACb,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAElF,gBAAgB;AAChB,OAAO,UAAU,MAAM,iBAAiB,CAAC;AAEzC,eAAe,UAAU,CAAC;AAC1B,OAAO;AACN,cAAc;AACd,MAAM,EACN,SAAS,EACT,OAAO;AAEP,UAAU;AACV,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gCAAgC,EAChC,wBAAwB,EACxB,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,aAAa,EACb,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,eAAe;AAEf,cAAc;AACd,aAAa,EACb,KAAK,EACL,QAAQ,EACR,IAAI;AAEJ,YAAY;AACZ,cAAc,EACd,aAAa,EACb,gBAAgB;AAEhB,UAAU;AACV,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,oBAAoB;AAEpB,QAAQ;AACR,gBAAgB,EAChB,YAAY;AAEZ,YAAY;AACZ,kBAAkB,EAClB,wBAAwB,EACxB,6BAA6B,EAC7B,kBAAkB;AAElB,UAAU;AACV,UAAU;AAEV,yBAAyB;AACzB,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,6BAA6B,EAC7B,+BAA+B;AAE/B,YAAY;AACZ,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,KAAK,EACL,SAAS;AAET,mBAAmB;AACnB,aAAa;AAEb,gBAAgB;AAChB,UAAU,EACV,aAAa,EACb,8BAA8B;AAE9B,gBAAgB;AAChB,UAAU;AAEV,YAAY;AACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,cAAc;AAEd,aAAa;AACb,YAAY,EACZ,iBAAiB,EACjB,iBAAiB;AAEjB,gBAAgB;AAChB,UAAU,GACV,CAAC","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 {\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// 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"]}
@@ -0,0 +1,4 @@
1
+ import { type VNode } from "./jsx-runtime.js";
2
+ import type UI5Element from "./UI5Element.js";
3
+ export declare function Fragment(props: Record<string, any>, context?: any): import("./thirdparty/preact/preact.module.js").ComponentChildren;
4
+ export declare function jsxDEV(type: string | typeof UI5Element, props: Record<string, any>, key: string): VNode<any>;
@@ -0,0 +1,43 @@
1
+ // eslint-disable-next-line import/extensions
2
+ import { jsxDEV as _jsxDEV, Fragment as _Fragment } from "./thirdparty/preact/jsxRuntime.module.js";
3
+ import { options } from "./thirdparty/preact/preact.module.js";
4
+ import { isUI5ElementClass, preprocess } from "./jsx-utils.js";
5
+ import { kebabToCamelCase } from "./util/StringHelper.js";
6
+ // eslint-disable-next-line @typescript-eslint/unbound-method
7
+ const old = options.vnode;
8
+ options.vnode = vnode => {
9
+ const props = vnode.props;
10
+ if (props !== null && typeof props === "object") {
11
+ if (props.class && typeof props.class === "object") {
12
+ // props.class = classObjToStr(props.class as Record<string, boolean>);
13
+ }
14
+ }
15
+ old && old(vnode);
16
+ };
17
+ // eslint-disable-next-line @typescript-eslint/ban-types
18
+ function isBoundOrArrow(func) {
19
+ // TODO improve => detection after func params
20
+ return func.name.startsWith("bound ") || func.toString().includes("=>");
21
+ }
22
+ function checkAttributeUsage(type, props) {
23
+ if (!isUI5ElementClass(type)) {
24
+ return;
25
+ }
26
+ const tag = type.getMetadata().getTag();
27
+ const componentAttributes = type.getMetadata().getAttributesList();
28
+ Object.keys(props).forEach(prop => {
29
+ if (prop.includes("-") && componentAttributes.includes(prop)) {
30
+ // eslint-disable-next-line no-console
31
+ console.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.`);
32
+ }
33
+ });
34
+ }
35
+ export function Fragment(props, context) {
36
+ return _Fragment(props, context);
37
+ }
38
+ export function jsxDEV(type, props, key) {
39
+ const tag = preprocess(type, props, key);
40
+ checkAttributeUsage(type, props);
41
+ return _jsxDEV(tag, props, key);
42
+ }
43
+ //# sourceMappingURL=jsx-dev-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-dev-runtime.js","sourceRoot":"","sources":["../src/jsx-dev-runtime.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,0CAA0C,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAG/D,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,6DAA6D;AAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC;AAE1B,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,EAAE;IACvB,MAAM,KAAK,GAAwB,KAAK,CAAC,KAAK,CAAC;IAC/C,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACjD,IAAI,KAAK,CAAC,KAAK,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACpD,uEAAuE;QACxE,CAAC;IACF,CAAC;IACD,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;AACnB,CAAC,CAAC;AAEF,wDAAwD;AACxD,SAAS,cAAc,CAAC,IAAc;IACrC,8CAA8C;IAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACzE,CAAC;AAED,SAAS,mBAAmB,CAAC,IAAgC,EAAE,KAA0B;IACxF,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,OAAO;IACR,CAAC;IAED,MAAM,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC;IACxC,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC;IACnE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACjC,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,mBAAmB,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YAC9D,sCAAsC;YACtC,OAAO,CAAC,IAAI,CAAC,mDAAmD,IAAI,UAAU,gBAAgB,CAAC,IAAI,CAAC,eAAe,GAAG,gJAAgJ,CAAC,CAAC;QACzQ,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,KAA0B,EAAE,OAAa;IACjE,OAAO,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,IAAgC,EAAE,KAA0B,EAAE,GAAW;IAC/F,MAAM,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAEzC,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEjC,OAAO,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAe,CAAC;AAC/C,CAAC","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"]}
@@ -0,0 +1,50 @@
1
+ import type { JSX as _JSX } from "./thirdparty/preact/jsxRuntime.module.d.ts";
2
+ import { type VNode as _VNode } from "./thirdparty/preact/preact.module.js";
3
+ import type UI5Element from "./UI5Element.js";
4
+ import { jsxDEV } from "./jsx-dev-runtime.js";
5
+ declare namespace JSX {
6
+ type JSXWithClassObj = {
7
+ [K in keyof _JSX.IntrinsicElements]: Omit<_JSX.IntrinsicElements[K], "class"> & {
8
+ class?: object | string | undefined;
9
+ };
10
+ };
11
+ type AllHTMLAttributesWithClassObj<T extends EventTarget> = Omit<_JSX.AllHTMLAttributes<T>, "class"> & {
12
+ class?: object | string | undefined;
13
+ };
14
+ type HTMLAttributesWithClassObj<T extends EventTarget> = Omit<_JSX.HTMLAttributes<T>, "class"> & {
15
+ class?: object | string | undefined;
16
+ };
17
+ interface IntrinsicElements extends JSXWithClassObj {
18
+ }
19
+ type ElementClass = UI5Element;
20
+ interface Element extends VNode<any> {
21
+ }
22
+ interface ElementAttributesProperty<T extends EventTarget> {
23
+ _jsxProps: HTMLAttributes<T>;
24
+ }
25
+ interface AllHTMLAttributes<T extends EventTarget> extends AllHTMLAttributesWithClassObj<T> {
26
+ }
27
+ interface HTMLAttributes<T extends EventTarget> extends HTMLAttributesWithClassObj<T> {
28
+ }
29
+ interface DOMAttributes<T extends EventTarget> extends _JSX.DOMAttributes<T> {
30
+ }
31
+ interface SVGAttributes extends _JSX.SVGAttributes {
32
+ }
33
+ type AriaRole = _JSX.AriaRole;
34
+ type MouseEventHandler<T extends EventTarget> = _JSX.MouseEventHandler<T>;
35
+ type TargetedMouseEvent<Target extends EventTarget> = _JSX.TargetedMouseEvent<Target>;
36
+ type TargetedInputEvent<Target extends EventTarget> = _JSX.TargetedInputEvent<Target>;
37
+ }
38
+ export declare function Fragment(props: Record<string, any>, context?: any): import("./thirdparty/preact/preact.module.js").ComponentChildren;
39
+ export declare function jsx(type: string | typeof UI5Element, props: Record<string, any>, key: string): VNode<any>;
40
+ export declare function jsxs(type: string | typeof UI5Element, props: Record<string, any>, key: string): VNode<any>;
41
+ export { type jsxDEV };
42
+ export type ComponentChild = VNode<any> | object | string | number | bigint | boolean | null | undefined;
43
+ export type ComponentChildren = ComponentChild[] | ComponentChild;
44
+ export type VNode<T = {}> = Omit<_VNode<T>, "type" | "props"> & {
45
+ type: string | typeof UI5Element;
46
+ props: T & {
47
+ children: ComponentChildren;
48
+ };
49
+ };
50
+ export { JSX };
@@ -0,0 +1,27 @@
1
+ // eslint-disable-next-line import/extensions
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "./thirdparty/preact/jsxRuntime.module.js";
3
+ import { options } from "./thirdparty/preact/preact.module.js";
4
+ import { preprocess } from "./jsx-utils.js";
5
+ // eslint-disable-next-line @typescript-eslint/unbound-method
6
+ const old = options.vnode;
7
+ options.vnode = vnode => {
8
+ const props = vnode.props;
9
+ if (props !== null && typeof props === "object") {
10
+ if (props.class && typeof props.class === "object") {
11
+ // props.class = classObjToStr(props.class as Record<string, boolean>);
12
+ }
13
+ }
14
+ old && old(vnode);
15
+ };
16
+ export function Fragment(props, context) {
17
+ return _Fragment(props, context);
18
+ }
19
+ export function jsx(type, props, key) {
20
+ const tag = preprocess(type, props, key);
21
+ return _jsx(tag, props, key);
22
+ }
23
+ export function jsxs(type, props, key) {
24
+ const tag = preprocess(type, props, key);
25
+ return _jsxs(tag, props, key);
26
+ }
27
+ //# sourceMappingURL=jsx-runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-runtime.js","sourceRoot":"","sources":["../src/jsx-runtime.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,OAAO,EAAE,GAAG,IAAI,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAE7G,OAAO,EAAE,OAAO,EAAwB,MAAM,sCAAsC,CAAC;AAErF,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAwB5C,6DAA6D;AAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC;AAE1B,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,EAAE;IACvB,MAAM,KAAK,GAAwB,KAAK,CAAC,KAAK,CAAC;IAC/C,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACjD,IAAI,KAAK,CAAC,KAAK,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACpD,uEAAuE;QACxE,CAAC;IACF,CAAC;IACD,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,UAAU,QAAQ,CAAC,KAA0B,EAAE,OAAa;IACjE,OAAO,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC;AACD,MAAM,UAAU,GAAG,CAAC,IAAgC,EAAE,KAA0B,EAAE,GAAW;IAC5F,MAAM,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAEzC,OAAO,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAe,CAAC;AAC5C,CAAC;AACD,MAAM,UAAU,IAAI,CAAC,IAAgC,EAAE,KAA0B,EAAE,GAAW;IAC7F,MAAM,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAEzC,OAAO,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAe,CAAC;AAC7C,CAAC","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 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"]}
@@ -0,0 +1,3 @@
1
+ import type UI5Element from "./UI5Element.js";
2
+ export declare function isUI5ElementClass(type: string | typeof UI5Element): type is typeof UI5Element;
3
+ export declare function preprocess(type: string | typeof UI5Element, props: Record<string, any>, key: string): string;
@@ -0,0 +1,48 @@
1
+ import hash2str from "./util/hash2str.js";
2
+ import { pascalToKebabCase } from "./util/StringHelper.js";
3
+ function convertEventScoping(type, props, key) {
4
+ const events = type.getMetadata().getEvents();
5
+ Object.keys(props).forEach(prop => {
6
+ if (prop.startsWith("on")) {
7
+ // Exteract the kebab-case event: onChange - change, onSelectionChange - selection-change, etc.
8
+ const pascalEvent = prop.slice("on".length);
9
+ const kebabCaseEvent = pascalToKebabCase(pascalEvent);
10
+ // Also support camelCase events
11
+ const camelCaseEvent = pascalEvent.charAt(0).toLowerCase() + pascalEvent.slice(1);
12
+ let origEvent;
13
+ if (kebabCaseEvent in events) {
14
+ origEvent = kebabCaseEvent;
15
+ }
16
+ else if (camelCaseEvent in events) {
17
+ origEvent = camelCaseEvent;
18
+ }
19
+ // Attach for the "ui5-" preffixed event
20
+ if (origEvent) {
21
+ if ((prop !== "onClick")) {
22
+ props[`onui5-${origEvent}`] = props[prop];
23
+ // TODO keep native events for now, find a way to mark them for runtime
24
+ delete props[prop];
25
+ }
26
+ }
27
+ }
28
+ });
29
+ }
30
+ export function isUI5ElementClass(type) {
31
+ return typeof type === "function" && "getMetadata" in type;
32
+ }
33
+ export function preprocess(type, props, key) {
34
+ let tag;
35
+ if (isUI5ElementClass(type)) {
36
+ tag = type.getMetadata().getTag();
37
+ convertEventScoping(type, props, key);
38
+ }
39
+ else {
40
+ tag = type;
41
+ }
42
+ // convert class object to string
43
+ if (typeof props.class === "object") {
44
+ props.class = hash2str(props.class);
45
+ }
46
+ return tag;
47
+ }
48
+ //# sourceMappingURL=jsx-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsx-utils.js","sourceRoot":"","sources":["../src/jsx-utils.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,SAAS,mBAAmB,CAAC,IAAuB,EAAE,KAA0B,EAAE,GAAW;IAC5F,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,SAAS,EAAE,CAAC;IAE9C,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACjC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3B,+FAA+F;YAC/F,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC5C,MAAM,cAAc,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;YACtD,gCAAgC;YAChC,MAAM,cAAc,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAElF,IAAI,SAA6B,CAAC;YAClC,IAAI,cAAc,IAAI,MAAM,EAAE,CAAC;gBAC9B,SAAS,GAAG,cAAc,CAAC;YAC5B,CAAC;iBAAM,IAAI,cAAc,IAAI,MAAM,EAAE,CAAC;gBACrC,SAAS,GAAG,cAAc,CAAC;YAC5B,CAAC;YACD,wCAAwC;YACxC,IAAI,SAAS,EAAE,CAAC;gBACf,IAAI,CAAC,IAAI,KAAK,SAAS,CAAC,EAAE,CAAC;oBAC1B,KAAK,CAAC,SAAS,SAAS,EAAE,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC;oBAC1C,uEAAuE;oBACvE,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;gBACpB,CAAC;YACF,CAAC;QACF,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAgC;IACjE,OAAO,OAAO,IAAI,KAAK,UAAU,IAAI,aAAa,IAAI,IAAI,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAgC,EAAE,KAA0B,EAAE,GAAW;IACnG,IAAI,GAAW,CAAC;IAChB,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC;QAC7B,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC;QAClC,mBAAmB,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IACvC,CAAC;SAAM,CAAC;QACP,GAAG,GAAG,IAAI,CAAC;IACZ,CAAC;IAED,iCAAiC;IACjC,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;QACrC,KAAK,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,GAAG,CAAC;AACZ,CAAC","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"]}