@ui5/webcomponents-base 1.9.2 → 1.10.0

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 (608) hide show
  1. package/.eslintignore +1 -0
  2. package/bundle.esm.js +4 -1
  3. package/dist/AssetRegistry.d.ts +5 -0
  4. package/dist/AssetRegistry.js +2 -7
  5. package/dist/AssetRegistry.js.map +1 -0
  6. package/dist/Boot.d.ts +8 -0
  7. package/dist/Boot.js +29 -48
  8. package/dist/Boot.js.map +1 -0
  9. package/dist/CSP.d.ts +30 -0
  10. package/dist/CSP.js +16 -24
  11. package/dist/CSP.js.map +1 -0
  12. package/dist/CustomElementsRegistry.d.ts +5 -0
  13. package/dist/CustomElementsRegistry.js +66 -83
  14. package/dist/CustomElementsRegistry.js.map +1 -0
  15. package/dist/CustomElementsScope.d.ts +7 -0
  16. package/dist/CustomElementsScope.js +10 -29
  17. package/dist/CustomElementsScope.js.map +1 -0
  18. package/dist/CustomElementsScopeUtils.d.ts +55 -0
  19. package/dist/CustomElementsScopeUtils.js +34 -52
  20. package/dist/CustomElementsScopeUtils.js.map +1 -0
  21. package/dist/DOMObserver.d.ts +11 -0
  22. package/dist/DOMObserver.js +12 -54
  23. package/dist/DOMObserver.js.map +1 -0
  24. package/dist/Device.d.ts +12 -0
  25. package/dist/Device.js +53 -83
  26. package/dist/Device.js.map +1 -0
  27. package/dist/EventProvider.d.ts +25 -0
  28. package/dist/EventProvider.js +67 -82
  29. package/dist/EventProvider.js.map +1 -0
  30. package/dist/FeaturesRegistry.d.ts +3 -0
  31. package/dist/FeaturesRegistry.js +5 -10
  32. package/dist/FeaturesRegistry.js.map +1 -0
  33. package/dist/FontFace.d.ts +2 -0
  34. package/dist/FontFace.js +14 -19
  35. package/dist/FontFace.js.map +1 -0
  36. package/dist/InitialConfiguration.d.ts +22 -0
  37. package/dist/InitialConfiguration.js +107 -146
  38. package/dist/InitialConfiguration.js.map +1 -0
  39. package/dist/Keys.d.ts +57 -0
  40. package/dist/Keys.js +174 -291
  41. package/dist/Keys.js.map +1 -0
  42. package/dist/ManagedStyles.d.ts +8 -0
  43. package/dist/ManagedStyles.js +62 -68
  44. package/dist/ManagedStyles.js.map +1 -0
  45. package/dist/MarkedEvents.d.ts +9 -0
  46. package/dist/MarkedEvents.js +15 -0
  47. package/dist/MarkedEvents.js.map +1 -0
  48. package/dist/MediaRange.d.ts +37 -0
  49. package/dist/MediaRange.js +54 -65
  50. package/dist/MediaRange.js.map +1 -0
  51. package/dist/PropertiesFileFormat.d.ts +8 -0
  52. package/dist/PropertiesFileFormat.js +72 -82
  53. package/dist/PropertiesFileFormat.js.map +1 -0
  54. package/dist/Render.d.ts +47 -0
  55. package/dist/Render.js +81 -113
  56. package/dist/Render.js.map +1 -0
  57. package/dist/RenderQueue.d.ts +19 -0
  58. package/dist/RenderQueue.js +52 -62
  59. package/dist/RenderQueue.js.map +1 -0
  60. package/dist/Runtimes.d.ts +27 -0
  61. package/dist/Runtimes.js +49 -70
  62. package/dist/Runtimes.js.map +1 -0
  63. package/dist/StaticArea.d.ts +0 -0
  64. package/dist/StaticArea.js +4 -1
  65. package/dist/StaticArea.js.map +1 -0
  66. package/dist/StaticAreaItem.d.ts +36 -0
  67. package/dist/StaticAreaItem.js +84 -94
  68. package/dist/StaticAreaItem.js.map +1 -0
  69. package/dist/SystemCSSVars.d.ts +2 -0
  70. package/dist/SystemCSSVars.js +4 -5
  71. package/dist/SystemCSSVars.js.map +1 -0
  72. package/dist/Theming.d.ts +3 -0
  73. package/dist/Theming.js +1 -1
  74. package/dist/Theming.js.map +1 -0
  75. package/dist/UI5Element.d.ts +373 -0
  76. package/dist/UI5Element.js +928 -1006
  77. package/dist/UI5Element.js.map +1 -0
  78. package/dist/UI5ElementMetadata.d.ts +150 -0
  79. package/dist/UI5ElementMetadata.js +277 -313
  80. package/dist/UI5ElementMetadata.js.map +1 -0
  81. package/dist/animations/AnimationQueue.d.ts +8 -0
  82. package/dist/animations/AnimationQueue.js +31 -38
  83. package/dist/animations/AnimationQueue.js.map +1 -0
  84. package/dist/animations/animate.d.ts +14 -0
  85. package/dist/animations/animate.js +46 -51
  86. package/dist/animations/animate.js.map +1 -0
  87. package/dist/animations/scroll.d.ts +5 -0
  88. package/dist/animations/scroll.js +18 -27
  89. package/dist/animations/scroll.js.map +1 -0
  90. package/dist/animations/slideDown.d.ts +5 -0
  91. package/dist/animations/slideDown.js +53 -78
  92. package/dist/animations/slideDown.js.map +1 -0
  93. package/dist/animations/slideUp.d.ts +5 -0
  94. package/dist/animations/slideUp.js +49 -70
  95. package/dist/animations/slideUp.js.map +1 -0
  96. package/dist/api.json +1 -1
  97. package/dist/asset-registries/Icons.d.ts +30 -0
  98. package/dist/asset-registries/Icons.js +85 -118
  99. package/dist/asset-registries/Icons.js.map +1 -0
  100. package/dist/asset-registries/Illustrations.d.ts +17 -0
  101. package/dist/asset-registries/Illustrations.js +37 -50
  102. package/dist/asset-registries/Illustrations.js.map +1 -0
  103. package/dist/asset-registries/LocaleData.d.ts +7 -0
  104. package/dist/asset-registries/LocaleData.js +104 -126
  105. package/dist/asset-registries/LocaleData.js.map +1 -0
  106. package/dist/asset-registries/Themes.d.ts +10 -0
  107. package/dist/asset-registries/Themes.js +36 -68
  108. package/dist/asset-registries/Themes.js.map +1 -0
  109. package/dist/asset-registries/i18n.d.ts +23 -0
  110. package/dist/asset-registries/i18n.js +52 -80
  111. package/dist/asset-registries/i18n.js.map +1 -0
  112. package/dist/assets/bundle.esm.3d967c4e.js +56 -0
  113. package/dist/assets-meta/IconCollectionsAlias.d.ts +17 -0
  114. package/dist/assets-meta/IconCollectionsAlias.js +4 -4
  115. package/dist/assets-meta/IconCollectionsAlias.js.map +1 -0
  116. package/dist/config/AnimationMode.d.ts +14 -0
  117. package/dist/config/AnimationMode.js +21 -18
  118. package/dist/config/AnimationMode.js.map +1 -0
  119. package/dist/config/CalendarType.d.ts +8 -0
  120. package/dist/config/CalendarType.js +13 -12
  121. package/dist/config/CalendarType.js.map +1 -0
  122. package/dist/config/FormatSettings.d.ts +11 -0
  123. package/dist/config/FormatSettings.js +10 -8
  124. package/dist/config/FormatSettings.js.map +1 -0
  125. package/dist/config/Icons.d.ts +30 -0
  126. package/dist/config/Icons.js +28 -32
  127. package/dist/config/Icons.js.map +1 -0
  128. package/dist/config/Language.d.ts +31 -0
  129. package/dist/config/Language.js +31 -43
  130. package/dist/config/Language.js.map +1 -0
  131. package/dist/config/NoConflict.d.ts +20 -0
  132. package/dist/config/NoConflict.js +40 -41
  133. package/dist/config/NoConflict.js.map +1 -0
  134. package/dist/config/RTL.d.ts +7 -0
  135. package/dist/config/RTL.js +23 -20
  136. package/dist/config/RTL.js.map +1 -0
  137. package/dist/config/Theme.d.ts +28 -0
  138. package/dist/config/Theme.js +34 -36
  139. package/dist/config/Theme.js.map +1 -0
  140. package/dist/config/ThemeRoots.d.ts +4 -0
  141. package/dist/config/ThemeRoots.js +18 -29
  142. package/dist/config/ThemeRoots.js.map +1 -0
  143. package/dist/decorators/customElement.d.ts +8 -0
  144. package/dist/decorators/customElement.js +16 -0
  145. package/dist/decorators/customElement.js.map +1 -0
  146. package/dist/decorators/event.d.ts +10 -0
  147. package/dist/decorators/event.js +24 -0
  148. package/dist/decorators/event.js.map +1 -0
  149. package/dist/decorators/fastNavigation.d.ts +7 -0
  150. package/dist/decorators/fastNavigation.js +13 -0
  151. package/dist/decorators/fastNavigation.js.map +1 -0
  152. package/dist/decorators/languageAware.d.ts +7 -0
  153. package/dist/decorators/languageAware.js +13 -0
  154. package/dist/decorators/languageAware.js.map +1 -0
  155. package/dist/decorators/property.d.ts +9 -0
  156. package/dist/decorators/property.js +24 -0
  157. package/dist/decorators/property.js.map +1 -0
  158. package/dist/decorators/slot.d.ts +9 -0
  159. package/dist/decorators/slot.js +37 -0
  160. package/dist/decorators/slot.js.map +1 -0
  161. package/dist/decorators/themeAware.d.ts +7 -0
  162. package/dist/decorators/themeAware.js +13 -0
  163. package/dist/decorators/themeAware.js.map +1 -0
  164. package/dist/delegate/ItemNavigation.d.ts +113 -0
  165. package/dist/delegate/ItemNavigation.js +277 -317
  166. package/dist/delegate/ItemNavigation.js.map +1 -0
  167. package/dist/delegate/ResizeHandler.d.ts +24 -0
  168. package/dist/delegate/ResizeHandler.js +68 -91
  169. package/dist/delegate/ResizeHandler.js.map +1 -0
  170. package/dist/delegate/ScrollEnablement.d.ts +48 -0
  171. package/dist/delegate/ScrollEnablement.js +157 -180
  172. package/dist/delegate/ScrollEnablement.js.map +1 -0
  173. package/dist/features/F6Navigation.d.ts +16 -0
  174. package/dist/features/F6Navigation.js +105 -109
  175. package/dist/features/F6Navigation.js.map +1 -0
  176. package/dist/features/OpenUI5Element.d.ts +9 -0
  177. package/dist/features/OpenUI5Element.js +5 -0
  178. package/dist/features/OpenUI5Element.js.map +1 -0
  179. package/dist/features/OpenUI5Enablement.d.ts +11 -0
  180. package/dist/features/OpenUI5Enablement.js +89 -112
  181. package/dist/features/OpenUI5Enablement.js.map +1 -0
  182. package/dist/features/OpenUI5Support.d.ts +23 -0
  183. package/dist/features/OpenUI5Support.js +91 -120
  184. package/dist/features/OpenUI5Support.js.map +1 -0
  185. package/dist/generated/VersionInfo.js +4 -4
  186. package/dist/getSharedResource.d.ts +11 -0
  187. package/dist/getSharedResource.js +12 -16
  188. package/dist/getSharedResource.js.map +1 -0
  189. package/dist/i18nBundle.d.ts +43 -0
  190. package/dist/i18nBundle.js +56 -64
  191. package/dist/i18nBundle.js.map +1 -0
  192. package/dist/locale/Locale.d.ts +22 -0
  193. package/dist/locale/Locale.js +75 -87
  194. package/dist/locale/Locale.js.map +1 -0
  195. package/dist/locale/RTLAwareRegistry.d.ts +4 -0
  196. package/dist/locale/RTLAwareRegistry.js +6 -11
  197. package/dist/locale/RTLAwareRegistry.js.map +1 -0
  198. package/dist/locale/applyDirection.d.ts +10 -0
  199. package/dist/locale/applyDirection.js +7 -7
  200. package/dist/locale/applyDirection.js.map +1 -0
  201. package/dist/locale/directionChange.d.ts +15 -0
  202. package/dist/locale/directionChange.js +7 -15
  203. package/dist/locale/directionChange.js.map +1 -0
  204. package/dist/locale/getEffectiveDir.d.ts +2 -0
  205. package/dist/locale/getEffectiveDir.js +20 -24
  206. package/dist/locale/getEffectiveDir.js.map +1 -0
  207. package/dist/locale/getLocale.d.ts +7 -0
  208. package/dist/locale/getLocale.js +26 -29
  209. package/dist/locale/getLocale.js.map +1 -0
  210. package/dist/locale/languageChange.d.ts +5 -0
  211. package/dist/locale/languageChange.js +8 -16
  212. package/dist/locale/languageChange.js.map +1 -0
  213. package/dist/locale/nextFallbackLocale.d.ts +8 -0
  214. package/dist/locale/nextFallbackLocale.js +15 -19
  215. package/dist/locale/nextFallbackLocale.js.map +1 -0
  216. package/dist/locale/normalizeLocale.d.ts +7 -0
  217. package/dist/locale/normalizeLocale.js +34 -41
  218. package/dist/locale/normalizeLocale.js.map +1 -0
  219. package/dist/renderer/LitRenderer.d.ts +14 -0
  220. package/dist/renderer/LitRenderer.js +28 -39
  221. package/dist/renderer/LitRenderer.js.map +1 -0
  222. package/dist/renderer/executeTemplate.d.ts +13 -0
  223. package/dist/renderer/executeTemplate.js +12 -16
  224. package/dist/renderer/executeTemplate.js.map +1 -0
  225. package/dist/sap/base/Log.js +28 -29
  226. package/dist/sap/base/assert.js +5 -6
  227. package/dist/sap/base/security/URLListValidator.js +13 -2
  228. package/dist/theming/CustomStyle.d.ts +6 -0
  229. package/dist/theming/CustomStyle.js +29 -43
  230. package/dist/theming/CustomStyle.js.map +1 -0
  231. package/dist/theming/ThemeLoaded.d.ts +5 -0
  232. package/dist/theming/ThemeLoaded.js +8 -16
  233. package/dist/theming/ThemeLoaded.js.map +1 -0
  234. package/dist/theming/applyTheme.d.ts +2 -0
  235. package/dist/theming/applyTheme.js +59 -68
  236. package/dist/theming/applyTheme.js.map +1 -0
  237. package/dist/theming/getConstructableStyle.d.ts +9 -0
  238. package/dist/theming/getConstructableStyle.js +12 -17
  239. package/dist/theming/getConstructableStyle.js.map +1 -0
  240. package/dist/theming/getEffectiveLinksHrefs.d.ts +3 -0
  241. package/dist/theming/getEffectiveLinksHrefs.js +12 -22
  242. package/dist/theming/getEffectiveLinksHrefs.js.map +1 -0
  243. package/dist/theming/getEffectiveStyle.d.ts +3 -0
  244. package/dist/theming/getEffectiveStyle.js +24 -31
  245. package/dist/theming/getEffectiveStyle.js.map +1 -0
  246. package/dist/theming/getStylesString.d.ts +3 -0
  247. package/dist/theming/getStylesString.js +9 -13
  248. package/dist/theming/getStylesString.js.map +1 -0
  249. package/dist/theming/getThemeDesignerTheme.d.ts +7 -0
  250. package/dist/theming/getThemeDesignerTheme.js +72 -79
  251. package/dist/theming/getThemeDesignerTheme.js.map +1 -0
  252. package/dist/theming/preloadLinks.d.ts +3 -0
  253. package/dist/theming/preloadLinks.js +13 -17
  254. package/dist/theming/preloadLinks.js.map +1 -0
  255. package/dist/thirdparty/_merge.d.ts +2 -0
  256. package/dist/thirdparty/_merge.js +7 -4
  257. package/dist/thirdparty/_merge.js.map +1 -0
  258. package/dist/thirdparty/isPlainObject.d.ts +2 -0
  259. package/dist/thirdparty/isPlainObject.js +11 -10
  260. package/dist/thirdparty/isPlainObject.js.map +1 -0
  261. package/dist/thirdparty/merge.d.ts +2 -0
  262. package/dist/thirdparty/merge.js +4 -8
  263. package/dist/thirdparty/merge.js.map +1 -0
  264. package/dist/types/AnimationMode.d.ts +32 -0
  265. package/dist/types/AnimationMode.js +33 -6
  266. package/dist/types/AnimationMode.js.map +1 -0
  267. package/dist/types/CSSColor.d.ts +16 -0
  268. package/dist/types/CSSColor.js +6 -7
  269. package/dist/types/CSSColor.js.map +1 -0
  270. package/dist/types/CalendarType.d.ts +37 -0
  271. package/dist/types/CalendarType.js +33 -53
  272. package/dist/types/CalendarType.js.map +1 -0
  273. package/dist/types/DOMReference.d.ts +17 -0
  274. package/dist/types/DOMReference.js +12 -15
  275. package/dist/types/DOMReference.js.map +1 -0
  276. package/dist/types/DataType.d.ts +25 -0
  277. package/dist/types/DataType.js +33 -32
  278. package/dist/types/DataType.js.map +1 -0
  279. package/dist/types/Float.d.ts +18 -0
  280. package/dist/types/Float.js +9 -12
  281. package/dist/types/Float.js.map +1 -0
  282. package/dist/types/Integer.d.ts +18 -0
  283. package/dist/types/Integer.js +9 -11
  284. package/dist/types/Integer.js.map +1 -0
  285. package/dist/types/InvisibleMessageMode.d.ts +25 -0
  286. package/dist/types/InvisibleMessageMode.js +19 -38
  287. package/dist/types/InvisibleMessageMode.js.map +1 -0
  288. package/dist/types/ItemNavigationBehavior.d.ts +24 -0
  289. package/dist/types/ItemNavigationBehavior.js +22 -12
  290. package/dist/types/ItemNavigationBehavior.js.map +1 -0
  291. package/dist/types/NavigationMode.d.ts +32 -0
  292. package/dist/types/NavigationMode.js +33 -6
  293. package/dist/types/NavigationMode.js.map +1 -0
  294. package/dist/types/ValueState.d.ts +42 -0
  295. package/dist/types/ValueState.js +38 -58
  296. package/dist/types/ValueState.js.map +1 -0
  297. package/dist/types.d.ts +18 -0
  298. package/dist/types.js +2 -0
  299. package/dist/types.js.map +1 -0
  300. package/dist/updateShadowRoot.d.ts +8 -0
  301. package/dist/updateShadowRoot.js +21 -16
  302. package/dist/updateShadowRoot.js.map +1 -0
  303. package/dist/util/AriaLabelHelper.d.ts +6 -0
  304. package/dist/util/AriaLabelHelper.js +34 -46
  305. package/dist/util/AriaLabelHelper.js.map +1 -0
  306. package/dist/util/Caret.d.ts +7 -0
  307. package/dist/util/Caret.js +16 -25
  308. package/dist/util/Caret.js.map +1 -0
  309. package/dist/util/ColorConversion.d.ts +30 -0
  310. package/dist/util/ColorConversion.js +311 -372
  311. package/dist/util/ColorConversion.js.map +1 -0
  312. package/dist/util/FetchHelper.d.ts +3 -0
  313. package/dist/util/FetchHelper.js +19 -25
  314. package/dist/util/FetchHelper.js.map +1 -0
  315. package/dist/util/FocusableElements.d.ts +4 -0
  316. package/dist/util/FocusableElements.js +54 -71
  317. package/dist/util/FocusableElements.js.map +1 -0
  318. package/dist/util/HTMLSanitizer.d.ts +3 -0
  319. package/dist/util/HTMLSanitizer.js +4 -5
  320. package/dist/util/HTMLSanitizer.js.map +1 -0
  321. package/dist/util/InvisibleMessage.d.ts +10 -0
  322. package/dist/util/InvisibleMessage.js +40 -53
  323. package/dist/util/InvisibleMessage.js.map +1 -0
  324. package/dist/util/PopupUtils.d.ts +7 -0
  325. package/dist/util/PopupUtils.js +58 -77
  326. package/dist/util/PopupUtils.js.map +1 -0
  327. package/dist/util/SlotsHelper.d.ts +9 -0
  328. package/dist/util/SlotsHelper.js +22 -35
  329. package/dist/util/SlotsHelper.js.map +1 -0
  330. package/dist/util/StringHelper.d.ts +3 -0
  331. package/dist/util/StringHelper.js +17 -20
  332. package/dist/util/StringHelper.js.map +1 -0
  333. package/dist/util/TabbableElements.d.ts +17 -0
  334. package/dist/util/TabbableElements.js +53 -47
  335. package/dist/util/TabbableElements.js.map +1 -0
  336. package/dist/util/arraysAreEqual.d.ts +2 -0
  337. package/dist/util/arraysAreEqual.js +10 -12
  338. package/dist/util/arraysAreEqual.js.map +1 -0
  339. package/dist/util/clamp.d.ts +9 -0
  340. package/dist/util/clamp.js +2 -2
  341. package/dist/util/clamp.js.map +1 -0
  342. package/dist/util/createLinkInHead.d.ts +7 -0
  343. package/dist/util/createLinkInHead.js +14 -17
  344. package/dist/util/createLinkInHead.js.map +1 -0
  345. package/dist/util/createStyleInHead.d.ts +8 -0
  346. package/dist/util/createStyleInHead.js +10 -10
  347. package/dist/util/createStyleInHead.js.map +1 -0
  348. package/dist/util/debounce.d.ts +2 -0
  349. package/dist/util/debounce.js +6 -8
  350. package/dist/util/debounce.js.map +1 -0
  351. package/dist/util/detectNavigatorLanguage.d.ts +2 -0
  352. package/dist/util/detectNavigatorLanguage.js +7 -10
  353. package/dist/util/detectNavigatorLanguage.js.map +1 -0
  354. package/dist/util/escapeRegex.d.ts +8 -0
  355. package/dist/util/escapeRegex.js +8 -7
  356. package/dist/util/escapeRegex.js.map +1 -0
  357. package/dist/util/formatMessage.d.ts +2 -0
  358. package/dist/util/formatMessage.js +15 -19
  359. package/dist/util/formatMessage.js.map +1 -0
  360. package/dist/util/generateHighlightedMarkup.d.ts +9 -0
  361. package/dist/util/generateHighlightedMarkup.js +26 -27
  362. package/dist/util/generateHighlightedMarkup.js.map +1 -0
  363. package/dist/util/getActiveElement.d.ts +2 -0
  364. package/dist/util/getActiveElement.js +6 -8
  365. package/dist/util/getActiveElement.js.map +1 -0
  366. package/dist/util/getClassCopy.d.ts +400 -0
  367. package/dist/util/getClassCopy.js +7 -7
  368. package/dist/util/getClassCopy.js.map +1 -0
  369. package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -0
  370. package/dist/util/getDesigntimePropertyAsArray.js +4 -3
  371. package/dist/util/getDesigntimePropertyAsArray.js.map +1 -0
  372. package/dist/util/getEffectiveContentDensity.d.ts +2 -0
  373. package/dist/util/getEffectiveContentDensity.js +2 -3
  374. package/dist/util/getEffectiveContentDensity.js.map +1 -0
  375. package/dist/util/getEffectiveScrollbarStyle.d.ts +2 -0
  376. package/dist/util/getEffectiveScrollbarStyle.js +1 -2
  377. package/dist/util/getEffectiveScrollbarStyle.js.map +1 -0
  378. package/dist/util/getFastNavigationGroups.d.ts +2 -0
  379. package/dist/util/getFastNavigationGroups.js +44 -56
  380. package/dist/util/getFastNavigationGroups.js.map +1 -0
  381. package/dist/util/getFileExtension.d.ts +12 -0
  382. package/dist/util/getFileExtension.js +9 -11
  383. package/dist/util/getFileExtension.js.map +1 -0
  384. package/dist/util/getNormalizedTarget.d.ts +7 -0
  385. package/dist/util/getNormalizedTarget.js +7 -9
  386. package/dist/util/getNormalizedTarget.js.map +1 -0
  387. package/dist/util/getSingletonElementInstance.d.ts +2 -0
  388. package/dist/util/getSingletonElementInstance.js +7 -10
  389. package/dist/util/getSingletonElementInstance.js.map +1 -0
  390. package/dist/util/isElementClickable.d.ts +2 -0
  391. package/dist/util/isElementClickable.js +16 -0
  392. package/dist/util/isElementClickable.js.map +1 -0
  393. package/dist/util/isElementHidden.d.ts +2 -0
  394. package/dist/util/isElementHidden.js +8 -0
  395. package/dist/util/isElementHidden.js.map +1 -0
  396. package/dist/util/isElementInView.d.ts +6 -0
  397. package/dist/util/isElementInView.js +6 -9
  398. package/dist/util/isElementInView.js.map +1 -0
  399. package/dist/util/isElementTabbable.d.ts +9 -0
  400. package/dist/util/isElementTabbable.js +30 -0
  401. package/dist/util/isElementTabbable.js.map +1 -0
  402. package/dist/util/isValidPropertyName.d.ts +8 -0
  403. package/dist/util/isValidPropertyName.js +16 -17
  404. package/dist/util/isValidPropertyName.js.map +1 -0
  405. package/dist/util/whenDOMReady.d.ts +2 -0
  406. package/dist/util/whenDOMReady.js +11 -10
  407. package/dist/util/whenDOMReady.js.map +1 -0
  408. package/dist/util/willShowContent.d.ts +2 -0
  409. package/dist/util/willShowContent.js +7 -0
  410. package/dist/util/willShowContent.js.map +1 -0
  411. package/dist/validateThemeRoot.d.ts +2 -0
  412. package/dist/validateThemeRoot.js +41 -52
  413. package/dist/validateThemeRoot.js.map +1 -0
  414. package/global.d.ts +44 -0
  415. package/package-scripts.js +14 -5
  416. package/package.json +4 -4
  417. package/src/{AssetRegistry.js → AssetRegistry.ts} +0 -0
  418. package/src/Boot.ts +61 -0
  419. package/src/{CSP.js → CSP.ts} +14 -7
  420. package/src/{CustomElementsRegistry.js → CustomElementsRegistry.ts} +19 -16
  421. package/src/{CustomElementsScope.js → CustomElementsScope.ts} +8 -5
  422. package/src/{CustomElementsScopeUtils.js → CustomElementsScopeUtils.ts} +14 -7
  423. package/src/DOMObserver.ts +28 -0
  424. package/src/{Device.js → Device.ts} +17 -14
  425. package/src/{EventProvider.js → EventProvider.ts} +9 -7
  426. package/src/FeaturesRegistry.ts +14 -0
  427. package/src/{FontFace.js → FontFace.ts} +3 -2
  428. package/src/{InitialConfiguration.js → InitialConfiguration.ts} +33 -12
  429. package/src/Keys.ts +295 -0
  430. package/src/ManagedStyles.ts +92 -0
  431. package/src/MarkedEvents.ts +20 -0
  432. package/src/{MediaRange.js → MediaRange.ts} +54 -53
  433. package/src/{PropertiesFileFormat.js → PropertiesFileFormat.ts} +8 -8
  434. package/src/{Render.js → Render.ts} +25 -20
  435. package/src/{RenderQueue.js → RenderQueue.ts} +10 -5
  436. package/src/{Runtimes.js → Runtimes.ts} +15 -8
  437. package/src/{StaticArea.js → StaticArea.ts} +0 -0
  438. package/src/{StaticAreaItem.js → StaticAreaItem.ts} +26 -22
  439. package/src/{SystemCSSVars.js → SystemCSSVars.ts} +0 -0
  440. package/src/{Theming.js → Theming.ts} +0 -0
  441. package/src/{UI5Element.js → UI5Element.ts} +263 -153
  442. package/src/{UI5ElementMetadata.js → UI5ElementMetadata.ts} +120 -58
  443. package/src/animations/{AnimationQueue.js → AnimationQueue.ts} +8 -7
  444. package/src/animations/animate.ts +64 -0
  445. package/src/animations/scroll.ts +21 -0
  446. package/src/animations/{slideDown.js → slideDown.ts} +27 -34
  447. package/src/animations/{slideUp.js → slideUp.ts} +28 -32
  448. package/src/asset-registries/{Icons.js → Icons.ts} +63 -38
  449. package/src/asset-registries/Illustrations.ts +75 -0
  450. package/src/asset-registries/{LocaleData.js → LocaleData.ts} +35 -21
  451. package/src/asset-registries/{Themes.js → Themes.ts} +14 -29
  452. package/src/asset-registries/{i18n.js → i18n.ts} +18 -23
  453. package/src/assets-meta/{IconCollectionsAlias.js → IconCollectionsAlias.ts} +0 -0
  454. package/src/config/AnimationMode.ts +33 -0
  455. package/src/config/{CalendarType.js → CalendarType.ts} +8 -3
  456. package/src/config/FormatSettings.ts +21 -0
  457. package/src/config/{Icons.js → Icons.ts} +19 -12
  458. package/src/config/{Language.js → Language.ts} +22 -18
  459. package/src/config/NoConflict.ts +67 -0
  460. package/src/config/{RTL.js → RTL.ts} +14 -4
  461. package/src/config/Theme.ts +64 -0
  462. package/src/config/{ThemeRoots.js → ThemeRoots.ts} +9 -7
  463. package/src/decorators/customElement.ts +17 -0
  464. package/src/decorators/event.ts +28 -0
  465. package/src/decorators/fastNavigation.ts +14 -0
  466. package/src/decorators/languageAware.ts +14 -0
  467. package/src/decorators/property.ts +30 -0
  468. package/src/decorators/slot.ts +49 -0
  469. package/src/decorators/themeAware.ts +14 -0
  470. package/src/delegate/{ItemNavigation.js → ItemNavigation.ts} +56 -19
  471. package/src/delegate/{ResizeHandler.js → ResizeHandler.ts} +25 -36
  472. package/src/delegate/ScrollEnablement.ts +221 -0
  473. package/src/features/{F6Navigation.js → F6Navigation.ts} +50 -25
  474. package/src/features/OpenUI5Element.ts +11 -0
  475. package/src/features/OpenUI5Enablement.ts +117 -0
  476. package/src/features/OpenUI5Support.ts +148 -0
  477. package/src/{getSharedResource.js → getSharedResource.ts} +3 -3
  478. package/src/{i18nBundle.js → i18nBundle.ts} +45 -23
  479. package/src/locale/{Locale.js → Locale.ts} +15 -5
  480. package/src/locale/RTLAwareRegistry.ts +16 -0
  481. package/src/locale/{applyDirection.js → applyDirection.ts} +4 -3
  482. package/src/locale/{directionChange.js → directionChange.ts} +6 -4
  483. package/src/locale/{getEffectiveDir.js → getEffectiveDir.ts} +1 -1
  484. package/src/locale/{getLocale.js → getLocale.ts} +12 -7
  485. package/src/locale/languageChange.ts +24 -0
  486. package/src/locale/{nextFallbackLocale.js → nextFallbackLocale.ts} +1 -1
  487. package/src/locale/{normalizeLocale.js → normalizeLocale.ts} +5 -3
  488. package/src/renderer/LitRenderer.ts +60 -0
  489. package/src/renderer/{executeTemplate.js → executeTemplate.ts} +11 -5
  490. package/src/theming/{CustomStyle.js → CustomStyle.ts} +11 -9
  491. package/src/theming/{ThemeLoaded.js → ThemeLoaded.ts} +6 -4
  492. package/src/theming/{applyTheme.js → applyTheme.ts} +16 -10
  493. package/src/theming/{getConstructableStyle.js → getConstructableStyle.ts} +5 -4
  494. package/src/theming/getEffectiveLinksHrefs.ts +26 -0
  495. package/src/theming/{getEffectiveStyle.js → getEffectiveStyle.ts} +9 -7
  496. package/src/theming/getStylesString.ts +15 -0
  497. package/src/theming/{getThemeDesignerTheme.js → getThemeDesignerTheme.ts} +22 -8
  498. package/src/theming/{preloadLinks.js → preloadLinks.ts} +3 -2
  499. package/src/thirdparty/{_merge.js → _merge.ts} +2 -2
  500. package/src/thirdparty/{isPlainObject.js → isPlainObject.ts} +1 -1
  501. package/src/thirdparty/merge.ts +5 -0
  502. package/src/types/AnimationMode.ts +33 -0
  503. package/src/types/{CSSColor.js → CSSColor.ts} +3 -3
  504. package/src/types/CalendarType.ts +38 -0
  505. package/src/types/{DOMReference.js → DOMReference.ts} +4 -4
  506. package/src/types/DataType.ts +51 -0
  507. package/src/types/{Float.js → Float.ts} +5 -5
  508. package/src/types/{Integer.js → Integer.ts} +5 -4
  509. package/src/types/InvisibleMessageMode.ts +27 -0
  510. package/src/types/ItemNavigationBehavior.ts +26 -0
  511. package/src/types/NavigationMode.ts +33 -0
  512. package/src/types/ValueState.ts +47 -0
  513. package/src/types.ts +30 -0
  514. package/src/updateShadowRoot.ts +37 -0
  515. package/src/util/AriaLabelHelper.ts +63 -0
  516. package/src/util/{Caret.js → Caret.ts} +5 -9
  517. package/src/util/{ColorConversion.js → ColorConversion.ts} +183 -182
  518. package/src/util/{FetchHelper.js → FetchHelper.ts} +7 -7
  519. package/src/util/FocusableElements.ts +82 -0
  520. package/src/util/{HTMLSanitizer.js → HTMLSanitizer.ts} +2 -0
  521. package/src/util/{InvisibleMessage.js → InvisibleMessage.ts} +6 -6
  522. package/src/util/PopupUtils.ts +112 -0
  523. package/src/util/{SlotsHelper.js → SlotsHelper.ts} +9 -13
  524. package/src/util/{StringHelper.js → StringHelper.ts} +7 -7
  525. package/src/util/TabbableElements.ts +70 -0
  526. package/src/util/{arraysAreEqual.js → arraysAreEqual.ts} +1 -1
  527. package/src/util/{clamp.js → clamp.ts} +1 -1
  528. package/src/util/{createLinkInHead.js → createLinkInHead.ts} +6 -5
  529. package/src/util/{createStyleInHead.js → createStyleInHead.ts} +4 -2
  530. package/src/util/{debounce.js → debounce.ts} +5 -4
  531. package/src/util/{detectNavigatorLanguage.js → detectNavigatorLanguage.ts} +1 -1
  532. package/src/util/escapeRegex.ts +11 -0
  533. package/src/util/{formatMessage.js → formatMessage.ts} +4 -3
  534. package/src/util/{generateHighlightedMarkup.js → generateHighlightedMarkup.ts} +7 -6
  535. package/src/util/{getActiveElement.js → getActiveElement.ts} +0 -0
  536. package/src/util/{getClassCopy.js → getClassCopy.ts} +3 -1
  537. package/src/util/{getDesigntimePropertyAsArray.js → getDesigntimePropertyAsArray.ts} +1 -1
  538. package/src/util/getEffectiveContentDensity.ts +5 -0
  539. package/src/util/{getEffectiveScrollbarStyle.js → getEffectiveScrollbarStyle.ts} +0 -0
  540. package/src/util/{getFastNavigationGroups.js → getFastNavigationGroups.ts} +10 -10
  541. package/src/util/{getFileExtension.js → getFileExtension.ts} +3 -3
  542. package/src/util/{getNormalizedTarget.js → getNormalizedTarget.ts} +2 -2
  543. package/src/util/{getSingletonElementInstance.js → getSingletonElementInstance.ts} +1 -1
  544. package/src/util/isElementClickable.ts +19 -0
  545. package/src/util/isElementHidden.ts +9 -0
  546. package/src/util/{isElementInView.js → isElementInView.ts} +1 -1
  547. package/src/util/isElementTabbable.ts +37 -0
  548. package/src/util/{isValidPropertyName.js → isValidPropertyName.ts} +1 -1
  549. package/src/util/{whenDOMReady.js → whenDOMReady.ts} +1 -1
  550. package/src/util/willShowContent.ts +7 -0
  551. package/src/{validateThemeRoot.js → validateThemeRoot.ts} +4 -4
  552. package/tsconfig.json +13 -0
  553. package/dist/RenderScheduler.js +0 -44
  554. package/dist/animations/config.js +0 -5
  555. package/dist/assets/bundle.esm.383d9c8a.js +0 -55
  556. package/dist/types/CSSSize.js +0 -20
  557. package/dist/types/PopupState.js +0 -57
  558. package/dist/util/isDefaultSlotProvided.js +0 -11
  559. package/dist/util/isDescendantOf.js +0 -15
  560. package/dist/util/isNodeClickable.js +0 -19
  561. package/dist/util/isNodeHidden.js +0 -9
  562. package/dist/util/isNodeTabbable.js +0 -28
  563. package/dist/util/setToArray.js +0 -10
  564. package/src/Boot.js +0 -63
  565. package/src/DOMObserver.js +0 -65
  566. package/src/FeaturesRegistry.js +0 -14
  567. package/src/Keys.js +0 -295
  568. package/src/ManagedStyles.js +0 -83
  569. package/src/RenderScheduler.js +0 -44
  570. package/src/animations/animate.js +0 -53
  571. package/src/animations/config.js +0 -5
  572. package/src/animations/scroll.js +0 -28
  573. package/src/asset-registries/Illustrations.js +0 -59
  574. package/src/config/AnimationMode.js +0 -23
  575. package/src/config/FormatSettings.js +0 -13
  576. package/src/config/NoConflict.js +0 -51
  577. package/src/config/Theme.js +0 -53
  578. package/src/delegate/ScrollEnablement.js +0 -188
  579. package/src/features/OpenUI5Enablement.js +0 -119
  580. package/src/features/OpenUI5Support.js +0 -126
  581. package/src/locale/RTLAwareRegistry.js +0 -14
  582. package/src/locale/languageChange.js +0 -22
  583. package/src/renderer/LitRenderer.js +0 -52
  584. package/src/theming/getEffectiveLinksHrefs.js +0 -27
  585. package/src/theming/getStylesString.js +0 -15
  586. package/src/thirdparty/merge.js +0 -10
  587. package/src/types/AnimationMode.js +0 -7
  588. package/src/types/CSSSize.js +0 -20
  589. package/src/types/CalendarType.js +0 -59
  590. package/src/types/DataType.js +0 -43
  591. package/src/types/InvisibleMessageMode.js +0 -46
  592. package/src/types/ItemNavigationBehavior.js +0 -16
  593. package/src/types/NavigationMode.js +0 -7
  594. package/src/types/PopupState.js +0 -57
  595. package/src/types/ValueState.js +0 -64
  596. package/src/updateShadowRoot.js +0 -29
  597. package/src/util/AriaLabelHelper.js +0 -56
  598. package/src/util/FocusableElements.js +0 -79
  599. package/src/util/PopupUtils.js +0 -93
  600. package/src/util/TabbableElements.js +0 -51
  601. package/src/util/escapeRegex.js +0 -10
  602. package/src/util/getEffectiveContentDensity.js +0 -5
  603. package/src/util/isDefaultSlotProvided.js +0 -11
  604. package/src/util/isDescendantOf.js +0 -15
  605. package/src/util/isNodeClickable.js +0 -19
  606. package/src/util/isNodeHidden.js +0 -9
  607. package/src/util/isNodeTabbable.js +0 -28
  608. package/src/util/setToArray.js +0 -10
package/dist/api.json CHANGED
@@ -1 +1 @@
1
- {"$schema-ref":"http://schemas.sap.com/sapui5/designtime/api.json/1.0","version":"1.62","symbols":[{"kind":"class","name":"I18nBundle","basename":"I18nBundle","resource":"i18nBundle.js","module":"i18nBundle","visibility":"public","constructor":{"visibility":"public"},"methods":[{"name":"getText","visibility":"public","returnValue":{"type":"*"},"parameters":[{"name":"textObj","type":"Object|String","optional":false,"description":"key/defaultText pair or just the key"},{"name":"params","type":"undefined","optional":false,"description":"Values for the placeholders"}],"description":"Returns a text in the currently loaded language"}]},{"kind":"class","name":"ItemNavigation","basename":"ItemNavigation","resource":"delegate/ItemNavigation.js","module":"delegate/ItemNavigation","visibility":"public","description":"The ItemNavigation class manages the calculations to determine the correct \"tabindex\" for a group of related items inside a root component. Important: ItemNavigation only does the calculations and does not change \"tabindex\" directly, this is a responsibility of the developer.\n\nThe keys that trigger ItemNavigation are: - Up/down - Left/right - Home/End\n\nUsage: 1) Use the \"getItemsCallback\" constructor property to pass a callback to ItemNavigation, which, whenever called, will return the list of items to navigate among.\n\nEach item passed to ItemNavigation via \"getItemsCallback\" must be: - A) either a UI5Element with a \"_tabIndex\" property - B) or an Object with \"id\" and \"_tabIndex\" properties which represents a part of the root component's shadow DOM. The \"id\" must be a valid ID within the shadow root of the component ItemNavigation operates on. This object must not be a DOM object because, as said, ItemNavigation will not set \"tabindex\" on it. It must be a representation of a DOM object only and the developer has the responsibility to update the \"tabindex\" in the component's DOM. - C) a combination of the above\n\nWhenever the user navigates with the keyboard, ItemNavigation will modify the \"_tabIndex\" properties of the items. It is the items' responsibilities to re-render themselves and apply the correct value of \"tabindex\" (i.e. to map the \"_tabIndex\" ItemNavigation set to them to the \"tabindex\" property). If the items of the ItemNavigation are UI5Elements themselves, this can happen naturally since they will be invalidated by their \"_tabIndex\" property. If the items are Objects with \"id\" and \"_tabIndex\" however, it is the developer's responsibility to apply these and the easiest way is to have the root component invalidated by ItemNavigation. To do so, set the \"affectedPropertiesNames\" constructor property to point to one or more of the root component's properties that need refreshing when \"_tabIndex\" is changed deeply.\n\n2) Call the \"setCurrentItem\" method of ItemNavigation whenever you want to change the current item. This is most commonly required if the user for example clicks on an item and thus selects it directly. Pass as the only argument to \"setCurrentItem\" the item that becomes current (must be one of the items, returned by \"getItemsCallback\").","constructor":{"visibility":"public","parameters":[{"name":"rootWebComponent","type":"undefined","optional":false,"description":"the component to operate on (component that slots or contains within its shadow root the items the user navigates among)"},{"name":"options","type":"undefined","optional":false,"description":"Object with configuration options: - currentIndex: the index of the item that will be initially selected (from which navigation will begin) - navigationMode (Auto|Horizontal|Vertical): whether the items are displayed horizontally (Horizontal), vertically (Vertical) or as a matrix (Auto) meaning the user can navigate in both directions (up/down and left/right) - rowSize: tells how many items per row there are when the items are not rendered as a flat list but rather as a matrix. Relevant for navigationMode=Auto - skipItemsSize: tells how many items upon PAGE_UP and PAGE_DOWN should be skipped to applying the focus on the next item - behavior (Static|Cycling): tells what to do when trying to navigate beyond the first and last items Static means that nothing happens if the user tries to navigate beyond the first/last item. Cycling means that when the user navigates beyond the last item they go to the first and vice versa. - getItemsCallback: function that, when called, returns an array with all items the user can navigate among - affectedPropertiesNames: a list of metadata properties on the root component which, upon user navigation, will be reassigned by address thus causing the root component to invalidate"}]},"methods":[{"name":"setCurrentItem","visibility":"public","parameters":[{"name":"current","type":"undefined","optional":false,"description":"the new selected item"}],"description":"Call this method to set a new \"current\" (selected) item in the item navigation Note: the item passed to this function must be one of the items, returned by the getItemsCallback function"},{"name":"setRowSize","visibility":"public","parameters":[{"name":"newRowSize","type":"undefined","optional":false}],"description":"Call this method to dynamically change the row size"}]},{"kind":"namespace","name":"MediaRange.RANGESETS","basename":"RANGESETS","resource":"MediaRange.js","module":"MediaRange","export":"RANGESETS","static":true,"visibility":"public","description":"Enumeration containing the names and settings of predefined screen width media query range sets.","properties":[{"name":"RANGE_4STEPS","visibility":"public","static":true,"type":"undefined","description":"A 4-step range set (S-M-L-XL).\n\nThe ranges of this set are: <ul> <li><code>\"S\"</code>: For screens smaller than 600 pixels.</li> <li><code>\"M\"</code>: For screens greater than or equal to 600 pixels and smaller than 1024 pixels.</li> <li><code>\"L\"</code>: For screens greater than or equal to 1024 pixels and smaller than 1440 pixels.</li> <li><code>\"XL\"</code>: For screens greater than or equal to 1440 pixels.</li> </ul>"}],"slots":[]},{"kind":"class","name":"ResizeHandler","basename":"ResizeHandler","resource":"delegate/ResizeHandler.js","module":"delegate/ResizeHandler","visibility":"public","description":"Allows to register/deregister resize observers for a DOM element","constructor":{"visibility":"public"},"methods":[{"name":"deregister","visibility":"public","static":true,"parameters":[{"name":"element","type":"*","optional":false,"description":"UI5 Web Component or DOM Element to be unobserved"},{"name":"callback","type":"*","optional":false,"description":"Callback to be removed"}]},{"name":"register","visibility":"public","static":true,"parameters":[{"name":"element","type":"*","optional":false,"description":"UI5 Web Component or DOM Element to be observed"},{"name":"callback","type":"*","optional":false,"description":"Callback to be executed"}]}]},{"kind":"class","name":"sap.ui.webcomponents.base.types.CalendarType","basename":"CalendarType","resource":"types/CalendarType.js","module":"types/CalendarType","static":true,"visibility":"public","extends":"sap.ui.webcomponents.base.types.DataType","description":"Different calendar types.","constructor":{"visibility":"public"},"properties":[{"name":"Buddhist","visibility":"public","type":"Buddhist"},{"name":"Gregorian","visibility":"public","type":"Gregorian"},{"name":"Islamic","visibility":"public","type":"Islamic"},{"name":"Japanese","visibility":"public","type":"Japanese"},{"name":"Persian","visibility":"public","type":"Persian"}],"slots":[]},{"kind":"class","name":"sap.ui.webcomponents.base.types.CSSColor","basename":"CSSColor","resource":"types/CSSColor.js","module":"types/CSSColor","static":true,"visibility":"public","extends":"sap.ui.webcomponents.base.types.DataType","description":"CSSColor data type.","constructor":{"visibility":"public"}},{"kind":"class","name":"sap.ui.webcomponents.base.types.CSSSize","basename":"CSSSize","resource":"types/CSSSize.js","module":"types/CSSSize","static":true,"visibility":"public","extends":"sap.ui.webcomponents.base.types.DataType","description":"CSSSize data type.","constructor":{"visibility":"public"}},{"kind":"class","name":"sap.ui.webcomponents.base.types.DataType","basename":"DataType","resource":"types/DataType.js","module":"types/DataType","static":true,"visibility":"public","constructor":{"visibility":"public"},"methods":[{"name":"isValid","visibility":"public","static":true,"returnValue":{"type":"Boolean"},"description":"Checks if the value is valid for its data type."}]},{"kind":"class","name":"sap.ui.webcomponents.base.types.DOMReference","basename":"DOMReference","resource":"types/DOMReference.js","module":"types/DOMReference","static":true,"visibility":"public","extends":"sap.ui.webcomponents.base.types.DataType","description":"DOM Element reference or ID. <b>Note:</b> If an ID is passed, it is expected to be part of the same <code>document</code> element as the consuming component.","constructor":{"visibility":"public"}},{"kind":"class","name":"sap.ui.webcomponents.base.types.Float","basename":"Float","resource":"types/Float.js","module":"types/Float","static":true,"visibility":"public","extends":"sap.ui.webcomponents.base.types.DataType","description":"Float data type.","constructor":{"visibility":"public"}},{"kind":"class","name":"sap.ui.webcomponents.base.types.Integer","basename":"Integer","resource":"types/Integer.js","module":"types/Integer","static":true,"visibility":"public","extends":"sap.ui.webcomponents.base.types.DataType","description":"Integer data type.","constructor":{"visibility":"public"}},{"kind":"class","name":"sap.ui.webcomponents.base.types.InvisibleMessageMode","basename":"InvisibleMessageMode","resource":"types/InvisibleMessageMode.js","module":"types/InvisibleMessageMode","static":true,"visibility":"public","extends":"sap.ui.webcomponents.base.types.DataType","description":"Different types of InvisibleMessageMode.","constructor":{"visibility":"public"},"properties":[{"name":"Assertive","visibility":"public","type":"Assertive","description":"Indicates that updates to the region have the highest priority and should be presented to the user immediately."},{"name":"Polite","visibility":"public","type":"Polite","description":"Indicates that updates to the region should be presented at the next graceful opportunity, such as at the end of reading the current sentence, or when the user pauses typing."}],"slots":[]},{"kind":"class","name":"sap.ui.webcomponents.base.types.PopupState","basename":"PopupState","resource":"types/PopupState.js","module":"types/PopupState","static":true,"visibility":"public","extends":"sap.ui.webcomponents.base.types.DataType","description":"Different types of PopupState.","constructor":{"visibility":"public"},"properties":[{"name":"CLOSED","visibility":"public","type":"CLOSED","description":"Closed and currently not changing states."},{"name":"CLOSING","visibility":"public","type":"CLOSING","description":"Still open, but in the process of going to the CLOSED state."},{"name":"OPEN","visibility":"public","type":"OPEN","description":"Open and currently not changing states."},{"name":"OPENING","visibility":"public","type":"OPENING","description":"Already left the CLOSED state, is not OPEN yet, but in the process of getting OPEN."}],"slots":[]},{"kind":"class","name":"sap.ui.webcomponents.base.types.ValueState","basename":"ValueState","resource":"types/ValueState.js","module":"types/ValueState","static":true,"visibility":"public","extends":"sap.ui.webcomponents.base.types.DataType","description":"Different types of ValueState.","constructor":{"visibility":"public"},"properties":[{"name":"Error","visibility":"public","type":"Error"},{"name":"Information","visibility":"public","type":"Information"},{"name":"None","visibility":"public","type":"None"},{"name":"Success","visibility":"public","type":"Success"},{"name":"Warning","visibility":"public","type":"Warning"}],"slots":[]},{"kind":"class","name":"sap.ui.webcomponents.base.UI5Element","basename":"UI5Element","resource":"UI5Element.js","module":"UI5Element","static":true,"visibility":"public","extends":"HTMLElement","constructor":{"visibility":"public"},"properties":[{"name":"_id","visibility":"protected","type":"undefined","description":"Returns a unique ID for this UI5 Element","deprecated":{"text":"- This property is not guaranteed in future releases"}},{"name":"dependencies","visibility":"protected","static":true,"type":"undefined","description":"Returns an array with the dependencies for this UI5 Web Component, which could be: - composed components (used in its shadow root or static area item) - slotted components that the component may need to communicate with"},{"name":"effectiveDir","visibility":"public","type":"undefined","description":"Determines whether the component should be rendered in RTL mode or not. Returns: \"rtl\", \"ltr\" or undefined"},{"name":"isUI5Element","visibility":"public","type":"undefined","description":"Used to duck-type UI5 elements without using instanceof"},{"name":"metadata","visibility":"protected","static":true,"type":"undefined","description":"Sets a new metadata object for this UI5 Web Component Class"},{"name":"staticAreaStyles","visibility":"protected","static":true,"type":"undefined","description":"Returns the Static Area CSS for this UI5 Web Component Class"},{"name":"styles","visibility":"protected","static":true,"type":"undefined","description":"Returns the CSS for this UI5 Web Component Class"}],"slots":[],"methods":[{"name":"_render","visibility":"protected","description":"Do not call this method directly, only intended to be called by js"},{"name":"attachInvalidate","visibility":"public","parameters":[{"name":"callback","type":"undefined","optional":false}],"description":"Attach a callback that will be executed whenever the component is invalidated"},{"name":"define","visibility":"public","static":true,"returnValue":{"type":"Promise.<UI5Element>"},"description":"Registers a UI5 Web Component in the browser window object"},{"name":"detachInvalidate","visibility":"public","parameters":[{"name":"callback","type":"undefined","optional":false}],"description":"Detach the callback that is executed whenever the component is invalidated"},{"name":"fireEvent","visibility":"public","returnValue":{"type":"boolean","description":"false, if the event was cancelled (preventDefault called), true otherwise"},"parameters":[{"name":"name","type":"undefined","optional":false,"description":"name of the event"},{"name":"data","type":"undefined","optional":false,"description":"additional data for the event"},{"name":"cancelable","type":"undefined","optional":false,"defaultValue":false,"description":"true, if the user can call preventDefault on the event object"},{"name":"bubbles","type":"undefined","optional":false,"defaultValue":true,"description":"true, if the event bubbles"}]},{"name":"focus","visibility":"public","description":"Set the focus to the element, returned by \"getFocusDomRef()\" (marked by \"data-sap-focus-ref\")"},{"name":"getDomRef","visibility":"public","description":"Returns the DOM Element inside the Shadow Root that corresponds to the opening tag in the UI5 Web Component's template *Note:* For logical (abstract) elements (items, options, etc...), returns the part of the parent's DOM that represents this option Use this method instead of \"this.shadowRoot\" to read the Shadow DOM, if ever necessary"},{"name":"getFocusDomRef","visibility":"public","description":"Returns the DOM Element marked with \"data-sap-focus-ref\" inside the template. This is the element that will receive the focus by default."},{"name":"getFocusDomRefAsync","visibility":"public","description":"Waits for dom ref and then returns the DOM Element marked with \"data-sap-focus-ref\" inside the template. This is the element that will receive the focus by default."},{"name":"getMetadata","visibility":"public","static":true,"returnValue":{"type":"UI5ElementMetadata"},"description":"Returns an instance of UI5ElementMetadata.js representing this UI5 Web Component's full metadata (its and its parents') Note: not to be confused with the \"get metadata()\" method, which returns an object for this class's metadata only"},{"name":"getSlottedNodes","visibility":"public","description":"Returns the actual children, associated with a slot. Useful when there are transitive slots in nested component scenarios and you don't want to get a list of the slots, but rather of their content."},{"name":"getStaticAreaItemDomRef","visibility":"public"},{"name":"getUniqueDependencies","visibility":"public","static":true,"description":"Returns a list of the unique dependencies for this UI5 Web Component"},{"name":"onDefine","visibility":"protected","static":true,"returnValue":{"type":"Promise.<void>"},"description":"Hook that will be called upon custom element definition"},{"name":"onInvalidation","visibility":"public","parameters":[{"name":"changeInfo","type":"undefined","optional":false,"description":"An object with information about the change that caused invalidation. The object can have the following properties: - type: (property|slot) tells what caused the invalidation 1) property: a property value was changed either directly or as a result of changing the corresponding attribute 2) slot: a slotted node(nodes) changed in one of several ways (see \"reason\")\n\n- name: the name of the property or slot that caused the invalidation\n\n- reason: (children|textcontent|childchange|slotchange) relevant only for type=\"slot\" only and tells exactly what changed in the slot 1) children: immediate children (HTML elements or text nodes) were added, removed or reordered in the slot 2) textcontent: text nodes in the slot changed value (or nested text nodes were added or changed value). Can only trigger for slots of \"type: Node\" 3) slotchange: a slot element, slotted inside that slot had its \"slotchange\" event listener called. This practically means that transitively slotted children changed. Can only trigger if the child of a slot is a slot element itself. 4) childchange: indicates that a UI5Element child in that slot was invalidated and in turn invalidated the component. Can only trigger for slots with \"invalidateOnChildChange\" metadata descriptor\n\n- newValue: the new value of the property (for type=\"property\" only)\n\n- oldValue: the old value of the property (for type=\"property\" only)\n\n- child the child that was changed (for type=\"slot\" and reason=\"childchange\" only)"}],"description":"A callback that is executed each time an already rendered component is invalidated (scheduled for re-rendering)"}]},{"kind":"class","name":"UI5ElementMetadata","basename":"UI5ElementMetadata","resource":"UI5ElementMetadata.js","module":"UI5ElementMetadata","export":"","visibility":"public","constructor":{"visibility":"public"},"methods":[{"name":"getAltTag","visibility":"public","description":"Used to get the tag we need to register for backwards compatibility"},{"name":"getAttributesList","visibility":"public","returnValue":{"type":"string[]"},"description":"Returns an array with the attributes of the UI5 Element (in kebab-case)"},{"name":"getEvents","visibility":"public","description":"Returns an object with key-value pairs of events and their metadata definitions"},{"name":"getProperties","visibility":"public","description":"Returns an object with key-value pairs of properties and their metadata definitions"},{"name":"getPropertiesList","visibility":"public","returnValue":{"type":"string[]"},"description":"Returns an array with the properties of the UI5 Element (in camelCase)"},{"name":"getPureTag","visibility":"public","description":"Returns the tag of the UI5 Element without the scope"},{"name":"getSlots","visibility":"public","description":"Returns an object with key-value pairs of slots and their metadata definitions"},{"name":"getTag","visibility":"public","description":"Returns the tag of the UI5 Element"},{"name":"hasAttribute","visibility":"public","returnValue":{"type":"boolean"},"parameters":[{"name":"propName","type":"undefined","optional":false}],"description":"Determines whether a property should have an attribute counterpart"},{"name":"hasIndividualSlots","visibility":"public","description":"Determines whether this UI5 Element supports any slots with \"individualSlots: true\""},{"name":"hasSlots","visibility":"public","description":"Determines whether this UI5 Element supports any slots"},{"name":"slotsAreManaged","visibility":"public","description":"Determines whether this UI5 Element needs to invalidate if children are added/removed/changed"},{"name":"supportsF6FastNavigation","visibility":"public","description":"Determines whether this control supports F6 fast navigation"},{"name":"validatePropertyValue","visibility":"protected","static":true,"description":"Only intended for use by UI5Element.js"},{"name":"validateSlotValue","visibility":"protected","static":true,"description":"Only intended for use by UI5Element.js"}]}]}
1
+ {"$schema-ref":"http://schemas.sap.com/sapui5/designtime/api.json/1.0","version":"1.62","symbols":[{"kind":"class","name":"I18nBundle","basename":"I18nBundle","resource":"i18nBundle.js","module":"i18nBundle","visibility":"public","constructor":{"visibility":"public"},"methods":[{"name":"getText","visibility":"public","returnValue":{"type":"string"},"parameters":[{"name":"textObj","type":"Object|String","optional":false,"description":"key/defaultText pair or just the key"},{"name":"params","type":"undefined","optional":false,"description":"Values for the placeholders"}],"description":"Returns a text in the currently loaded language"}]},{"kind":"class","name":"ItemNavigation","basename":"ItemNavigation","resource":"delegate/ItemNavigation.js","module":"delegate/ItemNavigation","visibility":"public","description":"The ItemNavigation class manages the calculations to determine the correct \"tabindex\" for a group of related items inside a root component. Important: ItemNavigation only does the calculations and does not change \"tabindex\" directly, this is a responsibility of the developer.\n\nThe keys that trigger ItemNavigation are: - Up/down - Left/right - Home/End\n\nUsage: 1) Use the \"getItemsCallback\" constructor property to pass a callback to ItemNavigation, which, whenever called, will return the list of items to navigate among.\n\nEach item passed to ItemNavigation via \"getItemsCallback\" must be: - A) either a UI5Element with a \"_tabIndex\" property - B) or an Object with \"id\" and \"_tabIndex\" properties which represents a part of the root component's shadow DOM. The \"id\" must be a valid ID within the shadow root of the component ItemNavigation operates on. This object must not be a DOM object because, as said, ItemNavigation will not set \"tabindex\" on it. It must be a representation of a DOM object only and the developer has the responsibility to update the \"tabindex\" in the component's DOM. - C) a combination of the above\n\nWhenever the user navigates with the keyboard, ItemNavigation will modify the \"_tabIndex\" properties of the items. It is the items' responsibilities to re-render themselves and apply the correct value of \"tabindex\" (i.e. to map the \"_tabIndex\" ItemNavigation set to them to the \"tabindex\" property). If the items of the ItemNavigation are UI5Elements themselves, this can happen naturally since they will be invalidated by their \"_tabIndex\" property. If the items are Objects with \"id\" and \"_tabIndex\" however, it is the developer's responsibility to apply these and the easiest way is to have the root component invalidated by ItemNavigation. To do so, set the \"affectedPropertiesNames\" constructor property to point to one or more of the root component's properties that need refreshing when \"_tabIndex\" is changed deeply.\n\n2) Call the \"setCurrentItem\" method of ItemNavigation whenever you want to change the current item. This is most commonly required if the user for example clicks on an item and thus selects it directly. Pass as the only argument to \"setCurrentItem\" the item that becomes current (must be one of the items, returned by \"getItemsCallback\").","constructor":{"visibility":"public","parameters":[{"name":"rootWebComponent","type":"undefined","optional":false,"description":"the component to operate on (component that slots or contains within its shadow root the items the user navigates among)"},{"name":"options","type":"ItemNavigationOptions","optional":false,"description":"Object with configuration options: - currentIndex: the index of the item that will be initially selected (from which navigation will begin) - navigationMode (Auto|Horizontal|Vertical): whether the items are displayed horizontally (Horizontal), vertically (Vertical) or as a matrix (Auto) meaning the user can navigate in both directions (up/down and left/right) - rowSize: tells how many items per row there are when the items are not rendered as a flat list but rather as a matrix. Relevant for navigationMode=Auto - skipItemsSize: tells how many items upon PAGE_UP and PAGE_DOWN should be skipped to applying the focus on the next item - behavior (Static|Cycling): tells what to do when trying to navigate beyond the first and last items Static means that nothing happens if the user tries to navigate beyond the first/last item. Cycling means that when the user navigates beyond the last item they go to the first and vice versa. - getItemsCallback: function that, when called, returns an array with all items the user can navigate among - affectedPropertiesNames: a list of metadata properties on the root component which, upon user navigation, will be reassigned by address thus causing the root component to invalidate"}]},"methods":[{"name":"setCurrentItem","visibility":"public","parameters":[{"name":"current","type":"undefined","optional":false,"description":"the new selected item"}],"description":"Call this method to set a new \"current\" (selected) item in the item navigation Note: the item passed to this function must be one of the items, returned by the getItemsCallback function"},{"name":"setRowSize","visibility":"public","parameters":[{"name":"newRowSize","type":"undefined","optional":false}],"description":"Call this method to dynamically change the row size"}]},{"kind":"namespace","name":"MediaRange.RANGESETS","basename":"RANGESETS","resource":"MediaRange.js","module":"MediaRange","export":"RANGESETS","static":true,"visibility":"public","description":"Enumeration containing the names and settings of predefined screen width media query range sets.","properties":[{"name":"RANGE_4STEPS","visibility":"public","static":true,"type":"undefined","description":"A 4-step range set (S-M-L-XL).\n\nThe ranges of this set are: <ul> <li><code>\"S\"</code>: For screens smaller than 600 pixels.</li> <li><code>\"M\"</code>: For screens greater than or equal to 600 pixels and smaller than 1024 pixels.</li> <li><code>\"L\"</code>: For screens greater than or equal to 1024 pixels and smaller than 1440 pixels.</li> <li><code>\"XL\"</code>: For screens greater than or equal to 1440 pixels.</li> </ul>"}],"slots":[]},{"kind":"class","name":"ResizeHandler","basename":"ResizeHandler","resource":"delegate/ResizeHandler.js","module":"delegate/ResizeHandler","visibility":"public","description":"Allows to register/deregister resize observers for a DOM element","constructor":{"visibility":"public"},"methods":[{"name":"deregister","visibility":"public","static":true,"parameters":[{"name":"element","type":"*","optional":false,"description":"UI5 Web Component or DOM Element to be unobserved"},{"name":"callback","type":"*","optional":false,"description":"Callback to be removed"}]},{"name":"register","visibility":"public","static":true,"parameters":[{"name":"element","type":"*","optional":false,"description":"UI5 Web Component or DOM Element to be observed"},{"name":"callback","type":"*","optional":false,"description":"Callback to be executed"}]}]},{"kind":"class","name":"sap.ui.webc.base.types.AnimationMode","basename":"AnimationMode","resource":"types/AnimationMode.js","module":"types/AnimationMode","static":true,"visibility":"public","description":"Different types of AnimationMode.","constructor":{"visibility":"public"},"properties":[{"name":"Basic","visibility":"public","type":"Basic"},{"name":"Full","visibility":"public","type":"Full"},{"name":"Minimal","visibility":"public","type":"Minimal"},{"name":"None","visibility":"public","type":"None"}],"slots":[]},{"kind":"class","name":"sap.ui.webc.base.types.CalendarType","basename":"CalendarType","resource":"types/CalendarType.js","module":"types/CalendarType","static":true,"visibility":"public","description":"Different calendar types.","constructor":{"visibility":"public"},"properties":[{"name":"Buddhist","visibility":"public","type":"Buddhist"},{"name":"Gregorian","visibility":"public","type":"Gregorian"},{"name":"Islamic","visibility":"public","type":"Islamic"},{"name":"Japanese","visibility":"public","type":"Japanese"},{"name":"Persian","visibility":"public","type":"Persian"}],"slots":[]},{"kind":"class","name":"sap.ui.webc.base.types.CSSColor","basename":"CSSColor","resource":"types/CSSColor.js","module":"types/CSSColor","static":true,"visibility":"public","extends":"sap.ui.webc.base.types.DataType","description":"CSSColor data type.","constructor":{"visibility":"public"}},{"kind":"class","name":"sap.ui.webc.base.types.DataType","basename":"DataType","resource":"types/DataType.js","module":"types/DataType","static":true,"visibility":"public","constructor":{"visibility":"public"},"methods":[{"name":"isValid","visibility":"public","static":true,"returnValue":{"type":"Boolean"},"description":"Checks if the value is valid for its data type."}]},{"kind":"class","name":"sap.ui.webc.base.types.DOMReference","basename":"DOMReference","resource":"types/DOMReference.js","module":"types/DOMReference","static":true,"visibility":"public","extends":"sap.ui.webc.base.types.DataType","description":"DOM Element reference or ID. <b>Note:</b> If an ID is passed, it is expected to be part of the same <code>document</code> element as the consuming component.","constructor":{"visibility":"public"}},{"kind":"class","name":"sap.ui.webc.base.types.Float","basename":"Float","resource":"types/Float.js","module":"types/Float","static":true,"visibility":"public","extends":"sap.ui.webc.base.types.DataType","description":"Float data type.","constructor":{"visibility":"public"}},{"kind":"class","name":"sap.ui.webc.base.types.Integer","basename":"Integer","resource":"types/Integer.js","module":"types/Integer","static":true,"visibility":"public","extends":"sap.ui.webc.base.types.DataType","description":"Integer data type.","constructor":{"visibility":"public"}},{"kind":"class","name":"sap.ui.webc.base.types.InvisibleMessageMode","basename":"InvisibleMessageMode","resource":"types/InvisibleMessageMode.js","module":"types/InvisibleMessageMode","static":true,"visibility":"public","description":"Enumeration for different mode behaviors of the InvisibleMessage.","constructor":{"visibility":"public"},"properties":[{"name":"Assertive","visibility":"public","type":"Assertive","description":"Indicates that updates to the region have the highest priority and should be presented to the user immediately."},{"name":"Polite","visibility":"public","type":"Polite","description":"Indicates that updates to the region should be presented at the next graceful opportunity, such as at the end of reading the current sentence, or when the user pauses typing."}],"slots":[]},{"kind":"class","name":"sap.ui.webc.base.types.ItemNavigationBehavior","basename":"ItemNavigationBehavior","resource":"types/ItemNavigationBehavior.js","module":"types/ItemNavigationBehavior","static":true,"visibility":"public","description":"Different behavior for ItemNavigation.","constructor":{"visibility":"public"},"properties":[{"name":"Cyclic","visibility":"public","type":"Cyclic","description":"Cycling behavior: navigating past the last item continues with the first and vice versa."},{"name":"Static","visibility":"public","type":"Static","description":"Static behavior: navigations stops at the first or last item."}],"slots":[]},{"kind":"class","name":"sap.ui.webc.base.types.NavigationMode","basename":"NavigationMode","resource":"types/NavigationMode.js","module":"types/NavigationMode","static":true,"visibility":"public","description":"Different navigation modes for ItemNavigation.","constructor":{"visibility":"public"},"properties":[{"name":"Auto","visibility":"public","type":"Auto"},{"name":"Horizontal","visibility":"public","type":"Horizontal"},{"name":"Paging","visibility":"public","type":"Paging"},{"name":"Vertical","visibility":"public","type":"Vertical"}],"slots":[]},{"kind":"class","name":"sap.ui.webc.base.types.ValueState","basename":"ValueState","resource":"types/ValueState.js","module":"types/ValueState","static":true,"visibility":"public","description":"Different types of ValueStates.","constructor":{"visibility":"public"},"properties":[{"name":"Error","visibility":"public","type":"Error"},{"name":"Information","visibility":"public","type":"Information"},{"name":"None","visibility":"public","type":"None"},{"name":"Success","visibility":"public","type":"Success"},{"name":"Warning","visibility":"public","type":"Warning"}],"slots":[]},{"kind":"class","name":"sap.ui.webc.base.UI5Element","basename":"UI5Element","resource":"UI5Element.js","module":"UI5Element","static":true,"visibility":"public","extends":"HTMLElement","constructor":{"visibility":"public"},"properties":[{"name":"_id","visibility":"protected","type":"undefined","description":"Returns a unique ID for this UI5 Element","deprecated":{"text":"- This property is not guaranteed in future releases"}},{"name":"dependencies","visibility":"protected","static":true,"type":"undefined","description":"Returns an array with the dependencies for this UI5 Web Component, which could be: - composed components (used in its shadow root or static area item) - slotted components that the component may need to communicate with"},{"name":"effectiveDir","visibility":"public","type":"undefined","description":"Determines whether the component should be rendered in RTL mode or not. Returns: \"rtl\", \"ltr\" or undefined"},{"name":"isUI5Element","visibility":"public","type":"undefined","description":"Used to duck-type UI5 elements without using instanceof"},{"name":"metadata","visibility":"protected","static":true,"type":"undefined","description":"Sets a new metadata object for this UI5 Web Component Class"},{"name":"staticAreaStyles","visibility":"protected","static":true,"type":"undefined","description":"Returns the Static Area CSS for this UI5 Web Component Class"},{"name":"styles","visibility":"protected","static":true,"type":"undefined","description":"Returns the CSS for this UI5 Web Component Class"}],"slots":[],"methods":[{"name":"_render","visibility":"protected","description":"Do not call this method directly, only intended to be called by js"},{"name":"attachInvalidate","visibility":"public","parameters":[{"name":"callback","type":"InvalidationInfo","optional":false}],"description":"Attach a callback that will be executed whenever the component is invalidated"},{"name":"define","visibility":"public","static":true,"returnValue":{"type":"Promise.<UI5Element>"},"description":"Registers a UI5 Web Component in the browser window object"},{"name":"detachInvalidate","visibility":"public","parameters":[{"name":"callback","type":"InvalidationInfo","optional":false}],"description":"Detach the callback that is executed whenever the component is invalidated"},{"name":"fireEvent","visibility":"public","returnValue":{"type":"boolean","description":"false, if the event was cancelled (preventDefault called), true otherwise"},"parameters":[{"name":"name","type":"undefined","optional":false,"description":"name of the event"},{"name":"data","type":"undefined","optional":false,"description":"additional data for the event"},{"name":"cancelable","type":"undefined","optional":false,"defaultValue":false,"description":"true, if the user can call preventDefault on the event object"},{"name":"bubbles","type":"undefined","optional":false,"defaultValue":true,"description":"true, if the event bubbles"}]},{"name":"focus","visibility":"public","description":"Set the focus to the element, returned by \"getFocusDomRef()\" (marked by \"data-sap-focus-ref\")"},{"name":"getDomRef","visibility":"public","description":"Returns the DOM Element inside the Shadow Root that corresponds to the opening tag in the UI5 Web Component's template *Note:* For logical (abstract) elements (items, options, etc...), returns the part of the parent's DOM that represents this option Use this method instead of \"this.shadowRoot\" to read the Shadow DOM, if ever necessary"},{"name":"getFocusDomRef","visibility":"public","description":"Returns the DOM Element marked with \"data-sap-focus-ref\" inside the template. This is the element that will receive the focus by default."},{"name":"getFocusDomRefAsync","visibility":"public","description":"Waits for dom ref and then returns the DOM Element marked with \"data-sap-focus-ref\" inside the template. This is the element that will receive the focus by default."},{"name":"getMetadata","visibility":"public","static":true,"returnValue":{"type":"UI5ElementMetadata"},"description":"Returns an instance of UI5ElementMetadata.js representing this UI5 Web Component's full metadata (its and its parents') Note: not to be confused with the \"get metadata()\" method, which returns an object for this class's metadata only"},{"name":"getSlottedNodes","visibility":"public","description":"Returns the actual children, associated with a slot. Useful when there are transitive slots in nested component scenarios and you don't want to get a list of the slots, but rather of their content."},{"name":"getStaticAreaItemDomRef","visibility":"public"},{"name":"getUniqueDependencies","visibility":"public","static":true,"description":"Returns a list of the unique dependencies for this UI5 Web Component"},{"name":"onAfterRendering","visibility":"public","description":"Called every time after the component renders."},{"name":"onBeforeRendering","visibility":"public","description":"Called every time before the component renders."},{"name":"onDefine","visibility":"protected","static":true,"returnValue":{"type":"Promise.<void>"},"description":"Hook that will be called upon custom element definition"},{"name":"onEnterDOM","visibility":"public","description":"Called on connectedCallback - added to the DOM."},{"name":"onExitDOM","visibility":"public","description":"Called on disconnectedCallback - removed from the DOM."},{"name":"onInvalidation","visibility":"public","parameters":[{"name":"changeInfo","type":"undefined","optional":false,"description":"An object with information about the change that caused invalidation. The object can have the following properties: - type: (property|slot) tells what caused the invalidation 1) property: a property value was changed either directly or as a result of changing the corresponding attribute 2) slot: a slotted node(nodes) changed in one of several ways (see \"reason\")\n\n- name: the name of the property or slot that caused the invalidation\n\n- reason: (children|textcontent|childchange|slotchange) relevant only for type=\"slot\" only and tells exactly what changed in the slot 1) children: immediate children (HTML elements or text nodes) were added, removed or reordered in the slot 2) textcontent: text nodes in the slot changed value (or nested text nodes were added or changed value). Can only trigger for slots of \"type: Node\" 3) slotchange: a slot element, slotted inside that slot had its \"slotchange\" event listener called. This practically means that transitively slotted children changed. Can only trigger if the child of a slot is a slot element itself. 4) childchange: indicates that a UI5Element child in that slot was invalidated and in turn invalidated the component. Can only trigger for slots with \"invalidateOnChildChange\" metadata descriptor\n\n- newValue: the new value of the property (for type=\"property\" only)\n\n- oldValue: the old value of the property (for type=\"property\" only)\n\n- child the child that was changed (for type=\"slot\" and reason=\"childchange\" only)"}],"description":"A callback that is executed each time an already rendered component is invalidated (scheduled for re-rendering)"}]},{"kind":"class","name":"UI5ElementMetadata","basename":"UI5ElementMetadata","resource":"UI5ElementMetadata.js","module":"UI5ElementMetadata","export":"","visibility":"public","constructor":{"visibility":"public"},"methods":[{"name":"getAttributesList","visibility":"public","returnValue":{"type":"string[]"},"description":"Returns an array with the attributes of the UI5 Element (in kebab-case)"},{"name":"getEvents","visibility":"public","description":"Returns an object with key-value pairs of events and their metadata definitions"},{"name":"getProperties","visibility":"public","description":"Returns an object with key-value pairs of properties and their metadata definitions"},{"name":"getPropertiesList","visibility":"public","returnValue":{"type":"string[]"},"description":"Returns an array with the properties of the UI5 Element (in camelCase)"},{"name":"getPureTag","visibility":"public","description":"Returns the tag of the UI5 Element without the scope"},{"name":"getSlots","visibility":"public","description":"Returns an object with key-value pairs of slots and their metadata definitions"},{"name":"getTag","visibility":"public","description":"Returns the tag of the UI5 Element"},{"name":"hasAttribute","visibility":"public","returnValue":{"type":"boolean"},"parameters":[{"name":"propName","type":"undefined","optional":false}],"description":"Determines whether a property should have an attribute counterpart"},{"name":"hasIndividualSlots","visibility":"public","description":"Determines whether this UI5 Element supports any slots with \"individualSlots: true\""},{"name":"hasSlots","visibility":"public","description":"Determines whether this UI5 Element supports any slots"},{"name":"slotsAreManaged","visibility":"public","description":"Determines whether this UI5 Element needs to invalidate if children are added/removed/changed"},{"name":"supportsF6FastNavigation","visibility":"public","description":"Determines whether this control supports F6 fast navigation"},{"name":"validatePropertyValue","visibility":"public","static":true,"description":"Validates the property's value and returns it if correct or returns the default value if not. <b>Note:</b> Only intended for use by UI5Element.js"}]}]}
@@ -0,0 +1,30 @@
1
+ import { I18nText } from "../i18nBundle.js";
2
+ import { TemplateFunction } from "../renderer/executeTemplate.js";
3
+ type IconLoader = (collectionName: string) => Promise<CollectionData>;
4
+ type CollectionData = {
5
+ collection: string;
6
+ packageName: string;
7
+ version?: string;
8
+ data: Record<string, {
9
+ path: string;
10
+ paths: Array<string>;
11
+ ltr: boolean;
12
+ acc: I18nText;
13
+ }>;
14
+ };
15
+ type IconData = {
16
+ collection?: string;
17
+ packageName: string;
18
+ pathData: string | Array<string>;
19
+ ltr: boolean;
20
+ accData: I18nText;
21
+ customTemplate?: TemplateFunction;
22
+ viewBox?: string;
23
+ };
24
+ declare const registerIconLoader: (collectionName: string, loader: IconLoader) => void;
25
+ declare const registerIcon: (name: string, iconData: IconData) => void;
26
+ declare const getIconDataSync: (name: string) => IconData | undefined;
27
+ declare const getIconData: (name: string) => Promise<IconData | "ICON_NOT_FOUND" | undefined>;
28
+ declare const _getRegisteredNames: () => Promise<string[]>;
29
+ export { registerIconLoader, getIconData, getIconDataSync, registerIcon, _getRegisteredNames, };
30
+ export type { IconData, CollectionData, };
@@ -1,137 +1,104 @@
1
1
  import getSharedResource from "../getSharedResource.js";
2
2
  import IconCollectionsAlias from "../assets-meta/IconCollectionsAlias.js";
3
3
  import { getEffectiveDefaultIconCollection } from "../config/Icons.js";
4
-
5
4
  const loaders = new Map();
6
5
  const registry = getSharedResource("SVGIcons.registry", new Map());
7
6
  const iconCollectionPromises = getSharedResource("SVGIcons.promises", new Map());
8
-
9
7
  const ICON_NOT_FOUND = "ICON_NOT_FOUND";
10
-
11
- /**
12
- * @deprecated
13
- */
14
- const registerIconBundle = async (collectionName, bundleData) => {
15
- throw new Error("This method has been removed. Use `registerIconLoader` instead.");
8
+ const registerIconLoader = (collectionName, loader) => {
9
+ loaders.set(collectionName, loader);
16
10
  };
17
-
18
- const registerIconLoader = async (collectionName, loader) => {
19
- loaders.set(collectionName, loader);
11
+ const _loadIconCollectionOnce = async (collectionName) => {
12
+ if (!iconCollectionPromises.has(collectionName)) {
13
+ if (!loaders.has(collectionName)) {
14
+ throw new Error(`No loader registered for the ${collectionName} icons collection. Probably you forgot to import the "AllIcons.js" module for the respective package.`);
15
+ }
16
+ const loadIcons = loaders.get(collectionName);
17
+ iconCollectionPromises.set(collectionName, loadIcons(collectionName));
18
+ }
19
+ return iconCollectionPromises.get(collectionName);
20
20
  };
21
-
22
- const _loadIconCollectionOnce = async collectionName => {
23
- if (!iconCollectionPromises.has(collectionName)) {
24
- if (!loaders.has(collectionName)) {
25
- throw new Error(`No loader registered for the ${collectionName} icons collection. Probably you forgot to import the "AllIcons.js" module for the respective package.`);
26
- }
27
- const loadIcons = loaders.get(collectionName);
28
- iconCollectionPromises.set(collectionName, loadIcons(collectionName));
29
- }
30
-
31
- return iconCollectionPromises.get(collectionName);
21
+ const _fillRegistry = (bundleData) => {
22
+ Object.keys(bundleData.data).forEach(iconName => {
23
+ const iconData = bundleData.data[iconName];
24
+ registerIcon(iconName, {
25
+ pathData: iconData.path || iconData.paths,
26
+ ltr: iconData.ltr,
27
+ accData: iconData.acc,
28
+ collection: bundleData.collection,
29
+ packageName: bundleData.packageName,
30
+ });
31
+ });
32
32
  };
33
-
34
- const _fillRegistry = bundleData => {
35
- Object.keys(bundleData.data).forEach(iconName => {
36
- const iconData = bundleData.data[iconName];
37
-
38
- registerIcon(iconName, {
39
- pathData: iconData.path || iconData.paths,
40
- ltr: iconData.ltr,
41
- accData: iconData.acc,
42
- collection: bundleData.collection,
43
- packageName: bundleData.packageName,
44
- });
45
- });
46
- };
47
-
48
33
  // set
49
- const registerIcon = (name, { pathData, ltr, accData, collection, packageName, customTemplate, viewBox } = {}) => { // eslint-disable-line
50
- if (!collection) {
51
- collection = getEffectiveDefaultIconCollection();
52
- }
53
-
54
- const key = `${collection}/${name}`;
55
- registry.set(key, {
56
- pathData,
57
- ltr,
58
- accData,
59
- packageName,
60
- customTemplate,
61
- viewBox,
62
- });
34
+ const registerIcon = (name, iconData) => {
35
+ if (!iconData.collection) {
36
+ iconData.collection = getEffectiveDefaultIconCollection();
37
+ }
38
+ const key = `${iconData.collection}/${name}`;
39
+ registry.set(key, {
40
+ pathData: iconData.pathData,
41
+ ltr: iconData.ltr,
42
+ accData: iconData.accData,
43
+ packageName: iconData.packageName,
44
+ customTemplate: iconData.customTemplate,
45
+ viewBox: iconData.viewBox,
46
+ });
63
47
  };
64
-
65
- const _parseName = name => {
66
- // silently support ui5-compatible URIs
67
- if (name.startsWith("sap-icon://")) {
68
- name = name.replace("sap-icon://", "");
69
- }
70
-
71
- let collection;
72
- [name, collection] = name.split("/").reverse();
73
- collection = collection || getEffectiveDefaultIconCollection();
74
-
75
- // Normalize collection name.
76
- // - resolve `SAP-icons-TNT` to `tnt`.
77
- // - resolve `BusinessSuiteInAppSymbols` to `business-suite`.
78
- // - resolve `horizon` to `SAP-icons-v5`,
79
- // Note: aliases can be made as a feature, if more collections need it or more aliases are needed.
80
- collection = _normalizeCollection(collection);
81
- name = name.replace("icon-", "");
82
-
83
- const registryKey = `${collection}/${name}`;
84
- return { name, collection, registryKey };
48
+ const _parseName = (name) => {
49
+ // silently support ui5-compatible URIs
50
+ if (name.startsWith("sap-icon://")) {
51
+ name = name.replace("sap-icon://", "");
52
+ }
53
+ let collection;
54
+ [name, collection] = name.split("/").reverse();
55
+ collection = collection || getEffectiveDefaultIconCollection();
56
+ // Normalize collection name.
57
+ // - resolve `SAP-icons-TNT` to `tnt`.
58
+ // - resolve `BusinessSuiteInAppSymbols` to `business-suite`.
59
+ // - resolve `horizon` to `SAP-icons-v5`,
60
+ // Note: aliases can be made as a feature, if more collections need it or more aliases are needed.
61
+ collection = _normalizeCollection(collection);
62
+ name = name.replace("icon-", "");
63
+ const registryKey = `${collection}/${name}`;
64
+ return { name, collection, registryKey };
85
65
  };
86
-
87
- const getIconDataSync = nameProp => {
88
- const { registryKey } = _parseName(nameProp);
89
- return registry.get(registryKey);
66
+ const getIconDataSync = (name) => {
67
+ const { registryKey } = _parseName(name);
68
+ return registry.get(registryKey);
90
69
  };
91
-
92
- const getIconData = async nameProp => {
93
- const { collection, registryKey } = _parseName(nameProp);
94
-
95
- let iconData = ICON_NOT_FOUND;
96
- try {
97
- iconData = await _loadIconCollectionOnce(collection);
98
- } catch (e) {
99
- console.error(e.message); /* eslint-disable-line */
100
- }
101
-
102
- if (iconData === ICON_NOT_FOUND) {
103
- return iconData;
104
- }
105
-
106
- if (!registry.has(registryKey)) {
107
- // not filled by another await. many getters will await on the same loader, but fill only once
108
- _fillRegistry(iconData);
109
- }
110
- return registry.get(registryKey);
70
+ const getIconData = async (name) => {
71
+ const { collection, registryKey } = _parseName(name);
72
+ let iconData = ICON_NOT_FOUND;
73
+ try {
74
+ iconData = (await _loadIconCollectionOnce(collection));
75
+ }
76
+ catch (error) {
77
+ const e = error;
78
+ console.error(e.message); /* eslint-disable-line */
79
+ }
80
+ if (iconData === ICON_NOT_FOUND) {
81
+ return iconData;
82
+ }
83
+ if (!registry.has(registryKey)) {
84
+ // not filled by another await. many getters will await on the same loader, but fill only once
85
+ _fillRegistry(iconData);
86
+ }
87
+ return registry.get(registryKey);
111
88
  };
112
-
113
89
  // test page usage only
114
90
  const _getRegisteredNames = async () => {
115
- // fetch one icon of each collection to trigger the bundle load
116
- await getIconData("edit");
117
- await getIconData("tnt/arrow");
118
- await getIconData("business-suite/3d");
119
- return Array.from(registry.keys());
120
- };
121
-
122
- const _normalizeCollection = collectionName => {
123
- if (IconCollectionsAlias[collectionName]) {
124
- return IconCollectionsAlias[collectionName];
125
- }
126
-
127
- return collectionName;
91
+ // fetch one icon of each collection to trigger the bundle load
92
+ await getIconData("edit");
93
+ await getIconData("tnt/arrow");
94
+ await getIconData("business-suite/3d");
95
+ return Array.from(registry.keys());
128
96
  };
129
-
130
- export {
131
- registerIconBundle,
132
- registerIconLoader,
133
- getIconData,
134
- getIconDataSync,
135
- registerIcon,
136
- _getRegisteredNames,
97
+ const _normalizeCollection = (collectionName) => {
98
+ if (IconCollectionsAlias[collectionName]) {
99
+ return IconCollectionsAlias[collectionName];
100
+ }
101
+ return collectionName;
137
102
  };
103
+ export { registerIconLoader, getIconData, getIconDataSync, registerIcon, _getRegisteredNames, };
104
+ //# sourceMappingURL=Icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../src/asset-registries/Icons.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,oBAAoB,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAC;AA4BvE,MAAM,OAAO,GAAG,IAAI,GAAG,EAAsB,CAAC;AAC9C,MAAM,QAAQ,GAAG,iBAAiB,CAAwB,mBAAmB,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AAC1F,MAAM,sBAAsB,GAAG,iBAAiB,CAAuC,mBAAmB,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AAEvH,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAExC,MAAM,kBAAkB,GAAG,CAAC,cAAsB,EAAE,MAAkB,EAAE,EAAE;IACzE,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AACrC,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG,KAAK,EAAE,cAAsB,EAAE,EAAE;IAChE,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE;QAChD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE;YACjC,MAAM,IAAI,KAAK,CAAC,gCAAgC,cAAc,uGAAuG,CAAC,CAAC;SACvK;QAED,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAE,CAAC;QAC/C,sBAAsB,CAAC,GAAG,CAAC,cAAc,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;KACtE;IAED,OAAO,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,CAAC,UAA0B,EAAE,EAAE;IACpD,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;QAC/C,MAAM,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAE3C,YAAY,CAAC,QAAQ,EAAE;YACtB,QAAQ,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,KAAK;YACzC,GAAG,EAAE,QAAQ,CAAC,GAAG;YACjB,OAAO,EAAE,QAAQ,CAAC,GAAG;YACrB,UAAU,EAAE,UAAU,CAAC,UAAU;YACjC,WAAW,EAAE,UAAU,CAAC,WAAW;SACnC,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM;AACN,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,QAAkB,EAAE,EAAE;IACzD,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;QACzB,QAAQ,CAAC,UAAU,GAAG,iCAAiC,EAAE,CAAC;KAC1D;IAED,MAAM,GAAG,GAAG,GAAG,QAAQ,CAAC,UAAU,IAAI,IAAI,EAAE,CAAC;IAC7C,QAAQ,CAAC,GAAG,CAAC,GAAG,EAAE;QACjB,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,GAAG,EAAE,QAAQ,CAAC,GAAG;QACjB,OAAO,EAAE,QAAQ,CAAC,OAAO;QACzB,WAAW,EAAE,QAAQ,CAAC,WAAW;QACjC,cAAc,EAAE,QAAQ,CAAC,cAAc;QACvC,OAAO,EAAE,QAAQ,CAAC,OAAO;KACzB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,EAAE;IACnC,uCAAuC;IACvC,IAAI,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;QACnC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;KACvC;IAED,IAAI,UAAU,CAAC;IACf,CAAC,IAAI,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;IAC/C,UAAU,GAAG,UAAU,IAAI,iCAAiC,EAAE,CAAC;IAE/D,6BAA6B;IAC7B,sCAAsC;IACtC,6DAA6D;IAC7D,yCAAyC;IACzC,kGAAkG;IAClG,UAAU,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC9C,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IAEjC,MAAM,WAAW,GAAG,GAAG,UAAU,IAAI,IAAI,EAAE,CAAC;IAC5C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;AAC1C,CAAC,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,IAAY,EAAE,EAAE;IACxC,MAAM,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IACzC,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAClC,CAAC,CAAC;AAEF,MAAM,WAAW,GAAG,KAAK,EAAE,IAAY,EAAE,EAAE;IAC1C,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IAErD,IAAI,QAAQ,GAA4B,cAAc,CAAC;IACvD,IAAI;QACH,QAAQ,GAAG,CAAC,MAAM,uBAAuB,CAAC,UAAU,CAAC,CAAE,CAAC;KACxD;IAAC,OAAO,KAAc,EAAE;QACxB,MAAM,CAAC,GAAG,KAAc,CAAC;QACzB,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,yBAAyB;KACnD;IAED,IAAI,QAAQ,KAAK,cAAc,EAAE;QAChC,OAAO,QAAQ,CAAC;KAChB;IAED,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;QAC/B,8FAA8F;QAC9F,aAAa,CAAC,QAA0B,CAAC,CAAC;KAC1C;IACD,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAClC,CAAC,CAAC;AAEF,uBAAuB;AACvB,MAAM,mBAAmB,GAAG,KAAK,IAAI,EAAE;IACtC,+DAA+D;IAC/D,MAAM,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,MAAM,WAAW,CAAC,WAAW,CAAC,CAAC;IAC/B,MAAM,WAAW,CAAC,mBAAmB,CAAC,CAAC;IACvC,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,cAAsB,EAAE,EAAE;IACvD,IAAI,oBAAoB,CAAC,cAAmD,CAAC,EAAE;QAC9E,OAAO,oBAAoB,CAAC,cAAmD,CAAC,CAAC;KACjF;IAED,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC;AAEF,OAAO,EACN,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,mBAAmB,GACnB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { I18nText } from "../i18nBundle.js";
2
+ type IllustrationLoader = (illustrationName: string) => Promise<IllustrationData>;
3
+ type IllustrationProperties = {
4
+ dialogSvg: string;
5
+ sceneSvg: string;
6
+ spotSvg: string;
7
+ title: I18nText;
8
+ subtitle: I18nText;
9
+ };
10
+ type IllustrationData = IllustrationProperties & {
11
+ set: string;
12
+ };
13
+ declare const registerIllustration: (name: string, data: IllustrationData) => void;
14
+ declare const registerIllustrationLoader: (illustrationName: string, loader: IllustrationLoader) => void;
15
+ declare const getIllustrationDataSync: (illustrationName: string) => IllustrationProperties | undefined;
16
+ declare const getIllustrationData: (illustrationName: string) => Promise<IllustrationProperties | undefined>;
17
+ export { getIllustrationDataSync, registerIllustration, registerIllustrationLoader, getIllustrationData, };
@@ -1,59 +1,46 @@
1
1
  import getSharedResource from "../getSharedResource.js";
2
-
3
2
  const loaders = new Map();
4
3
  const registry = getSharedResource("SVGIllustration.registry", new Map());
5
4
  const illustrationPromises = getSharedResource("SVGIllustration.promises", new Map());
6
- const ILLUSTRATION_NOT_FOUND = "ILLUSTRATION_NOT_FOUND";
7
-
8
- const registerIllustration = (name, { dialogSvg, sceneSvg, spotSvg, set, title, subtitle } = {}) => { // eslint-disable-line
9
- registry.set(`${set}/${name}`, {
10
- dialogSvg,
11
- sceneSvg,
12
- spotSvg,
13
- title,
14
- subtitle,
15
- });
5
+ const registerIllustration = (name, data) => {
6
+ registry.set(`${data.set}/${name}`, {
7
+ dialogSvg: data.dialogSvg,
8
+ sceneSvg: data.sceneSvg,
9
+ spotSvg: data.spotSvg,
10
+ title: data.title,
11
+ subtitle: data.subtitle,
12
+ });
16
13
  };
17
-
18
- const registerIllustrationLoader = async (illustrationName, loader) => {
19
- loaders.set(illustrationName, loader);
14
+ const registerIllustrationLoader = (illustrationName, loader) => {
15
+ loaders.set(illustrationName, loader);
20
16
  };
21
-
22
- const _loadIllustrationOnce = async illustrationName => {
23
- if (!illustrationPromises.has(illustrationName)) {
24
- if (!loaders.has(illustrationName)) {
25
- throw new Error(`No loader registered for the ${illustrationName} illustration. Probably you forgot to import the "@ui5/webcomponents-fiori/dist/illustrations/AllIllustrations.js" module.`);
26
- }
27
- const loadIllustrations = loaders.get(illustrationName);
28
- illustrationPromises.set(illustrationName, loadIllustrations(illustrationName));
29
- }
30
- return illustrationPromises.get(illustrationName);
17
+ const _loadIllustrationOnce = async (illustrationName) => {
18
+ if (!illustrationPromises.has(illustrationName)) {
19
+ if (!loaders.has(illustrationName)) {
20
+ const illustrationPath = illustrationName.startsWith("Tnt") ? `tnt/${illustrationName.replace(/^Tnt/, "")}` : illustrationName;
21
+ throw new Error(`No loader registered for the ${illustrationName} illustration. Probably you forgot to import the "@ui5/webcomponents-fiori/dist/illustrations/${illustrationPath}.js" module. Or you can import the "@ui5/webcomponents-fiori/dist/illustrations/AllIllustrations.js" module that will make all illustrations available, but fetch only the ones used.`);
22
+ }
23
+ const loadIllustrations = loaders.get(illustrationName);
24
+ illustrationPromises.set(illustrationName, loadIllustrations(illustrationName));
25
+ }
26
+ return illustrationPromises.get(illustrationName);
31
27
  };
32
-
33
- const getIllustrationDataSync = nameProp => {
34
- let set = "fiori";
35
-
36
- if (nameProp.startsWith("Tnt")) {
37
- set = "tnt";
38
- nameProp = nameProp.replace(/^Tnt/, "");
39
- }
40
- return registry.get(`${set}/${nameProp}`);
28
+ const getIllustrationDataSync = (illustrationName) => {
29
+ let set = "fiori";
30
+ if (illustrationName.startsWith("Tnt")) {
31
+ set = "tnt";
32
+ illustrationName = illustrationName.replace(/^Tnt/, "");
33
+ }
34
+ return registry.get(`${set}/${illustrationName}`);
41
35
  };
42
-
43
- const getIllustrationData = async illustrationName => {
44
- let set = "fiori";
45
-
46
- await _loadIllustrationOnce(illustrationName);
47
- if (illustrationName.startsWith("Tnt")) {
48
- set = "tnt";
49
- illustrationName = illustrationName.replace(/^Tnt/, "");
50
- }
51
- return registry.get(`${set}/${illustrationName}`) || ILLUSTRATION_NOT_FOUND;
52
- };
53
-
54
- export {
55
- getIllustrationDataSync,
56
- registerIllustration,
57
- registerIllustrationLoader,
58
- getIllustrationData,
36
+ const getIllustrationData = async (illustrationName) => {
37
+ let set = "fiori";
38
+ await _loadIllustrationOnce(illustrationName);
39
+ if (illustrationName.startsWith("Tnt")) {
40
+ set = "tnt";
41
+ illustrationName = illustrationName.replace(/^Tnt/, "");
42
+ }
43
+ return registry.get(`${set}/${illustrationName}`);
59
44
  };
45
+ export { getIllustrationDataSync, registerIllustration, registerIllustrationLoader, getIllustrationData, };
46
+ //# sourceMappingURL=Illustrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Illustrations.js","sourceRoot":"","sources":["../../src/asset-registries/Illustrations.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AAiBxD,MAAM,OAAO,GAAG,IAAI,GAAG,EAA8B,CAAC;AACtD,MAAM,QAAQ,GAAG,iBAAiB,CAAsC,0BAA0B,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AAC/G,MAAM,oBAAoB,GAAG,iBAAiB,CAAyC,0BAA0B,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AAE9H,MAAM,oBAAoB,GAAG,CAAC,IAAY,EAAE,IAAsB,EAAE,EAAE;IACrE,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,IAAI,EAAE,EAAE;QACnC,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;QACvB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,KAAK,EAAE,IAAI,CAAC,KAAK;QACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;KACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,0BAA0B,GAAG,CAAC,gBAAwB,EAAE,MAA0B,EAAE,EAAE;IAC3F,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,KAAK,EAAE,gBAAwB,EAAE,EAAE;IAChE,IAAI,CAAC,oBAAoB,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE;QAChD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE;YACnC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,CAAC;YAC/H,MAAM,IAAI,KAAK,CAAC,gCAAgC,gBAAgB,iGAAiG,gBAAgB,uLAAuL,CAAC,CAAC;SAC1W;QAED,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAE,CAAC;QACzD,oBAAoB,CAAC,GAAG,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,CAAC;KAChF;IACD,OAAO,oBAAoB,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,uBAAuB,GAAG,CAAC,gBAAwB,EAAE,EAAE;IAC5D,IAAI,GAAG,GAAG,OAAO,CAAC;IAElB,IAAI,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QACvC,GAAG,GAAG,KAAK,CAAC;QACZ,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACxD;IACD,OAAO,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,IAAI,gBAAgB,EAAE,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,mBAAmB,GAAG,KAAK,EAAE,gBAAwB,EAAE,EAAE;IAC9D,IAAI,GAAG,GAAG,OAAO,CAAC;IAElB,MAAM,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;IAC9C,IAAI,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE;QACvC,GAAG,GAAG,KAAK,CAAC;QACZ,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;KACxD;IACD,OAAO,QAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,IAAI,gBAAgB,EAAE,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,OAAO,EACN,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,GACnB,CAAC"}
@@ -0,0 +1,7 @@
1
+ type LocaleDataLoader = (locale: string) => Promise<CLDRData>;
2
+ type CLDRData = Record<string, object | boolean | string>;
3
+ declare const getLocaleData: (localeId: string) => CLDRData;
4
+ declare const fetchCldr: (language: string, region: string, script: string) => Promise<void>;
5
+ declare const registerLocaleDataLoader: (localeId: string, loader: LocaleDataLoader) => void;
6
+ export { registerLocaleDataLoader, fetchCldr, getLocaleData, };
7
+ export type { CLDRData, };