@ui5/webcomponents-base 0.0.0-4e88b8243 → 0.0.0-50f1454ef

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 (462) hide show
  1. package/CHANGELOG.md +256 -0
  2. package/cypress/specs/{Accessor.cy.ts → Accessor.cy.tsx} +4 -4
  3. package/cypress/specs/{ConfigurationScript.cy.ts → ConfigurationScript.cy.tsx} +21 -4
  4. package/cypress/specs/{ConfigurationURL.cy.ts → ConfigurationURL.cy.tsx} +27 -8
  5. package/cypress/specs/CustomMount.cy.tsx +9 -0
  6. package/cypress/specs/{CustomTheme.cy.ts → CustomTheme.cy.tsx} +2 -2
  7. package/cypress/specs/Events.cy.tsx +28 -0
  8. package/cypress/specs/{UI5ElementInvalidation.cy.ts → UI5ElementInvalidation.cy.tsx} +55 -10
  9. package/cypress/specs/{UI5ElementLifecycle.cy.ts → UI5ElementLifecycle.cy.tsx} +4 -4
  10. package/cypress/specs/{UI5ElementListenForChildPropChanges.cy.ts → UI5ElementListenForChildPropChanges.cy.tsx} +32 -11
  11. package/cypress/specs/{UI5ElementMetadataExt.cy.ts → UI5ElementMetadataExt.cy.tsx} +3 -3
  12. package/cypress/specs/{UI5ElementPropertyValidation.cy.ts → UI5ElementPropertyValidation.cy.tsx} +2 -2
  13. package/cypress/specs/{UI5ElementPropsAndAttrs.cy.ts → UI5ElementPropsAndAttrs.cy.tsx} +8 -8
  14. package/cypress/specs/{UI5ElementShadowDOM.cy.ts → UI5ElementShadowDOM.cy.tsx} +4 -4
  15. package/cypress/specs/{UI5ElementSlots.cy.ts → UI5ElementSlots.cy.tsx} +47 -27
  16. package/cypress/specs/{WithComplexTemplate.cy.ts → WithComplexTemplate.cy.tsx} +2 -2
  17. package/cypress/specs/i18n_texts.cy.tsx +129 -0
  18. package/cypress/specs/util/FocusableElements.cy.tsx +48 -0
  19. package/cypress/support/commands.ts +39 -0
  20. package/cypress/support/component-index.html +12 -0
  21. package/cypress/support/component.ts +17 -0
  22. package/cypress/tsconfig.json +2 -1
  23. package/cypress.config.js +1 -1
  24. package/dist/.tsbuildinfobuild +1 -1
  25. package/dist/CustomElementsRegistry.d.ts +2 -1
  26. package/dist/CustomElementsRegistry.js +4 -1
  27. package/dist/CustomElementsRegistry.js.map +1 -1
  28. package/dist/CustomElementsScopeUtils.d.ts +3 -1
  29. package/dist/CustomElementsScopeUtils.js +8 -1
  30. package/dist/CustomElementsScopeUtils.js.map +1 -1
  31. package/dist/FeaturesRegistry.d.ts +1 -16
  32. package/dist/FeaturesRegistry.js +1 -37
  33. package/dist/FeaturesRegistry.js.map +1 -1
  34. package/dist/UI5Element.d.ts +15 -4
  35. package/dist/UI5Element.js +25 -15
  36. package/dist/UI5Element.js.map +1 -1
  37. package/dist/UI5ElementMetadata.d.ts +0 -5
  38. package/dist/UI5ElementMetadata.js +0 -7
  39. package/dist/UI5ElementMetadata.js.map +1 -1
  40. package/dist/config/Theme.js +1 -2
  41. package/dist/config/Theme.js.map +1 -1
  42. package/dist/custom-elements-internal.json +2803 -0
  43. package/dist/custom-elements.json +2500 -0
  44. package/dist/decorators/customElement.d.ts +1 -0
  45. package/dist/decorators/customElement.js +1 -4
  46. package/dist/decorators/customElement.js.map +1 -1
  47. package/dist/decorators/i18n.js +6 -0
  48. package/dist/decorators/i18n.js.map +1 -1
  49. package/dist/features/F6Navigation.d.ts +1 -0
  50. package/dist/features/F6Navigation.js +21 -2
  51. package/dist/features/F6Navigation.js.map +1 -1
  52. package/dist/features/patchPopup.js +10 -1
  53. package/dist/features/patchPopup.js.map +1 -1
  54. package/dist/generated/AssetParameters.js +1 -1
  55. package/dist/generated/AssetParameters.js.map +1 -1
  56. package/dist/generated/VersionInfo.js +4 -4
  57. package/dist/generated/VersionInfo.js.map +1 -1
  58. package/dist/index.d.ts +43 -3
  59. package/dist/index.js +88 -0
  60. package/dist/index.js.map +1 -0
  61. package/dist/jsx-utils.js +11 -2
  62. package/dist/jsx-utils.js.map +1 -1
  63. package/dist/locale/nextFallbackLocale.js +6 -2
  64. package/dist/locale/nextFallbackLocale.js.map +1 -1
  65. package/dist/prod/AssetRegistry.js +2 -0
  66. package/dist/prod/AssetRegistry.js.map +7 -0
  67. package/dist/prod/Boot.js +2 -0
  68. package/dist/prod/Boot.js.map +7 -0
  69. package/dist/prod/CustomElementsRegistry.js +10 -0
  70. package/dist/prod/CustomElementsRegistry.js.map +7 -0
  71. package/dist/prod/CustomElementsScope.js +2 -0
  72. package/dist/prod/CustomElementsScope.js.map +7 -0
  73. package/dist/prod/CustomElementsScopeUtils.js +2 -0
  74. package/dist/prod/CustomElementsScopeUtils.js.map +7 -0
  75. package/dist/prod/DOMObserver.js +2 -0
  76. package/dist/prod/DOMObserver.js.map +7 -0
  77. package/dist/prod/Device.js +2 -0
  78. package/dist/prod/Device.js.map +7 -0
  79. package/dist/prod/EventProvider.js +2 -0
  80. package/dist/prod/EventProvider.js.map +7 -0
  81. package/dist/prod/FeaturesRegistry.js +2 -0
  82. package/dist/prod/FeaturesRegistry.js.map +7 -0
  83. package/dist/prod/FontFace.js +2 -0
  84. package/dist/prod/FontFace.js.map +7 -0
  85. package/dist/prod/IgnoreCustomElements.js +2 -0
  86. package/dist/prod/IgnoreCustomElements.js.map +7 -0
  87. package/dist/prod/InitialConfiguration.js +2 -0
  88. package/dist/prod/InitialConfiguration.js.map +7 -0
  89. package/dist/prod/Keys.js +2 -0
  90. package/dist/prod/Keys.js.map +7 -0
  91. package/dist/prod/Location.js +2 -0
  92. package/dist/prod/Location.js.map +7 -0
  93. package/dist/prod/ManagedStyles.js +2 -0
  94. package/dist/prod/ManagedStyles.js.map +7 -0
  95. package/dist/prod/MediaRange.js +2 -0
  96. package/dist/prod/MediaRange.js.map +7 -0
  97. package/dist/prod/PropertiesFileFormat.js +3 -0
  98. package/dist/prod/PropertiesFileFormat.js.map +7 -0
  99. package/dist/prod/Render.js +2 -0
  100. package/dist/prod/Render.js.map +7 -0
  101. package/dist/prod/RenderQueue.js +2 -0
  102. package/dist/prod/RenderQueue.js.map +7 -0
  103. package/dist/prod/Runtimes.js +2 -0
  104. package/dist/prod/Runtimes.js.map +7 -0
  105. package/dist/prod/SystemCSSVars.js +2 -0
  106. package/dist/prod/SystemCSSVars.js.map +7 -0
  107. package/dist/prod/Theming.js +2 -0
  108. package/dist/prod/Theming.js.map +7 -0
  109. package/dist/prod/UI5Element.js +2 -0
  110. package/dist/prod/UI5Element.js.map +7 -0
  111. package/dist/prod/UI5ElementMetadata.js +2 -0
  112. package/dist/prod/UI5ElementMetadata.js.map +7 -0
  113. package/dist/prod/animations/AnimationQueue.js +2 -0
  114. package/dist/prod/animations/AnimationQueue.js.map +7 -0
  115. package/dist/prod/animations/animate.js +2 -0
  116. package/dist/prod/animations/animate.js.map +7 -0
  117. package/dist/prod/animations/scroll.js +2 -0
  118. package/dist/prod/animations/scroll.js.map +7 -0
  119. package/dist/prod/animations/slideDown.js +2 -0
  120. package/dist/prod/animations/slideDown.js.map +7 -0
  121. package/dist/prod/animations/slideUp.js +2 -0
  122. package/dist/prod/animations/slideUp.js.map +7 -0
  123. package/dist/prod/asset-registries/Icons.js +2 -0
  124. package/dist/prod/asset-registries/Icons.js.map +7 -0
  125. package/dist/prod/asset-registries/Illustrations.js +2 -0
  126. package/dist/prod/asset-registries/Illustrations.js.map +7 -0
  127. package/dist/prod/asset-registries/LocaleData.js +2 -0
  128. package/dist/prod/asset-registries/LocaleData.js.map +7 -0
  129. package/dist/prod/asset-registries/Themes.js +2 -0
  130. package/dist/prod/asset-registries/Themes.js.map +7 -0
  131. package/dist/prod/asset-registries/i18n.js +2 -0
  132. package/dist/prod/asset-registries/i18n.js.map +7 -0
  133. package/dist/prod/asset-registries/util/IconCollectionsAlias.js +2 -0
  134. package/dist/prod/asset-registries/util/IconCollectionsAlias.js.map +7 -0
  135. package/dist/prod/asset-registries/util/IconCollectionsByTheme.js +2 -0
  136. package/dist/prod/asset-registries/util/IconCollectionsByTheme.js.map +7 -0
  137. package/dist/prod/asset-registries/util/getIconCollectionByTheme.js +2 -0
  138. package/dist/prod/asset-registries/util/getIconCollectionByTheme.js.map +7 -0
  139. package/dist/prod/config/AnimationMode.js +2 -0
  140. package/dist/prod/config/AnimationMode.js.map +7 -0
  141. package/dist/prod/config/CalendarType.js +2 -0
  142. package/dist/prod/config/CalendarType.js.map +7 -0
  143. package/dist/prod/config/ConfigurationReset.js +2 -0
  144. package/dist/prod/config/ConfigurationReset.js.map +7 -0
  145. package/dist/prod/config/Fonts.js +2 -0
  146. package/dist/prod/config/Fonts.js.map +7 -0
  147. package/dist/prod/config/FormatSettings.js +2 -0
  148. package/dist/prod/config/FormatSettings.js.map +7 -0
  149. package/dist/prod/config/Icons.js +2 -0
  150. package/dist/prod/config/Icons.js.map +7 -0
  151. package/dist/prod/config/Language.js +2 -0
  152. package/dist/prod/config/Language.js.map +7 -0
  153. package/dist/prod/config/NoConflict.js +2 -0
  154. package/dist/prod/config/NoConflict.js.map +7 -0
  155. package/dist/prod/config/Theme.js +2 -0
  156. package/dist/prod/config/Theme.js.map +7 -0
  157. package/dist/prod/config/ThemeRoot.js +2 -0
  158. package/dist/prod/config/ThemeRoot.js.map +7 -0
  159. package/dist/prod/config/Timezone.js +2 -0
  160. package/dist/prod/config/Timezone.js.map +7 -0
  161. package/dist/prod/config/Tooltips.js +2 -0
  162. package/dist/prod/config/Tooltips.js.map +7 -0
  163. package/dist/prod/connectToComponent.js +2 -0
  164. package/dist/prod/connectToComponent.js.map +7 -0
  165. package/dist/prod/converters/DOMReference.js +2 -0
  166. package/dist/prod/converters/DOMReference.js.map +7 -0
  167. package/dist/prod/decorators/bound.js +2 -0
  168. package/dist/prod/decorators/bound.js.map +7 -0
  169. package/dist/prod/decorators/customElement.js +2 -0
  170. package/dist/prod/decorators/customElement.js.map +7 -0
  171. package/dist/prod/decorators/event-strict.js +2 -0
  172. package/dist/prod/decorators/event-strict.js.map +7 -0
  173. package/dist/prod/decorators/event.js +2 -0
  174. package/dist/prod/decorators/event.js.map +7 -0
  175. package/dist/prod/decorators/i18n.js +2 -0
  176. package/dist/prod/decorators/i18n.js.map +7 -0
  177. package/dist/prod/decorators/property.js +2 -0
  178. package/dist/prod/decorators/property.js.map +7 -0
  179. package/dist/prod/decorators/query.js +2 -0
  180. package/dist/prod/decorators/query.js.map +7 -0
  181. package/dist/prod/decorators/queryAll.js +2 -0
  182. package/dist/prod/decorators/queryAll.js.map +7 -0
  183. package/dist/prod/decorators/slot.js +2 -0
  184. package/dist/prod/decorators/slot.js.map +7 -0
  185. package/dist/prod/decorators.js +2 -0
  186. package/dist/prod/decorators.js.map +7 -0
  187. package/dist/prod/delegate/ItemNavigation.js +2 -0
  188. package/dist/prod/delegate/ItemNavigation.js.map +7 -0
  189. package/dist/prod/delegate/ResizeHandler.js +2 -0
  190. package/dist/prod/delegate/ResizeHandler.js.map +7 -0
  191. package/dist/prod/delegate/ScrollEnablement.js +2 -0
  192. package/dist/prod/delegate/ScrollEnablement.js.map +7 -0
  193. package/dist/prod/features/F6Navigation.js +2 -0
  194. package/dist/prod/features/F6Navigation.js.map +7 -0
  195. package/dist/prod/features/InputElementsFormSupport.js +2 -0
  196. package/dist/prod/features/InputElementsFormSupport.js.map +7 -0
  197. package/dist/prod/features/LegacyDateFormats.js +2 -0
  198. package/dist/prod/features/LegacyDateFormats.js.map +7 -0
  199. package/dist/prod/features/OpenUI5Element.js +2 -0
  200. package/dist/prod/features/OpenUI5Element.js.map +7 -0
  201. package/dist/prod/features/OpenUI5Enablement.js +21 -0
  202. package/dist/prod/features/OpenUI5Enablement.js.map +7 -0
  203. package/dist/prod/features/OpenUI5Support.js +2 -0
  204. package/dist/prod/features/OpenUI5Support.js.map +7 -0
  205. package/dist/prod/features/patchPatcher.js +2 -0
  206. package/dist/prod/features/patchPatcher.js.map +7 -0
  207. package/dist/prod/features/patchPopup.js +2 -0
  208. package/dist/prod/features/patchPopup.js.map +7 -0
  209. package/dist/prod/generated/AssetParameters.js +2 -0
  210. package/dist/prod/generated/AssetParameters.js.map +7 -0
  211. package/dist/prod/generated/VersionInfo.js +2 -0
  212. package/dist/prod/generated/VersionInfo.js.map +7 -0
  213. package/dist/prod/generated/css/BusyIndicator.css.js +2 -0
  214. package/dist/prod/generated/css/BusyIndicator.css.js.map +7 -0
  215. package/dist/prod/generated/css/FontFace.css.js +2 -0
  216. package/dist/prod/generated/css/FontFace.css.js.map +7 -0
  217. package/dist/prod/generated/css/OverrideFontFace.css.js +2 -0
  218. package/dist/prod/generated/css/OverrideFontFace.css.js.map +7 -0
  219. package/dist/prod/generated/css/SystemCSSVars.css.js +2 -0
  220. package/dist/prod/generated/css/SystemCSSVars.css.js.map +7 -0
  221. package/dist/prod/getSharedResource.js +2 -0
  222. package/dist/prod/getSharedResource.js.map +7 -0
  223. package/dist/prod/global.d.js +2 -0
  224. package/dist/prod/global.d.js.map +7 -0
  225. package/dist/prod/i18nBundle.js +2 -0
  226. package/dist/prod/i18nBundle.js.map +7 -0
  227. package/dist/prod/index.js +2 -0
  228. package/dist/prod/index.js.map +7 -0
  229. package/dist/prod/jsx-dev-runtime.js +2 -0
  230. package/dist/prod/jsx-dev-runtime.js.map +7 -0
  231. package/dist/prod/jsx-runtime.js +2 -0
  232. package/dist/prod/jsx-runtime.js.map +7 -0
  233. package/dist/prod/jsx-utils.js +2 -0
  234. package/dist/prod/jsx-utils.js.map +7 -0
  235. package/dist/prod/locale/Locale.js +2 -0
  236. package/dist/prod/locale/Locale.js.map +7 -0
  237. package/dist/prod/locale/RTLAwareRegistry.js +2 -0
  238. package/dist/prod/locale/RTLAwareRegistry.js.map +7 -0
  239. package/dist/prod/locale/applyDirection.js +2 -0
  240. package/dist/prod/locale/applyDirection.js.map +7 -0
  241. package/dist/prod/locale/directionChange.js +2 -0
  242. package/dist/prod/locale/directionChange.js.map +7 -0
  243. package/dist/prod/locale/getEffectiveDir.js +2 -0
  244. package/dist/prod/locale/getEffectiveDir.js.map +7 -0
  245. package/dist/prod/locale/getLocale.js +2 -0
  246. package/dist/prod/locale/getLocale.js.map +7 -0
  247. package/dist/prod/locale/languageChange.js +2 -0
  248. package/dist/prod/locale/languageChange.js.map +7 -0
  249. package/dist/prod/locale/nextFallbackLocale.js +2 -0
  250. package/dist/prod/locale/nextFallbackLocale.js.map +7 -0
  251. package/dist/prod/locale/normalizeLocale.js +2 -0
  252. package/dist/prod/locale/normalizeLocale.js.map +7 -0
  253. package/dist/prod/renderer/JsxRenderer.js +2 -0
  254. package/dist/prod/renderer/JsxRenderer.js.map +7 -0
  255. package/dist/prod/renderer/LitRenderer.js +2 -0
  256. package/dist/prod/renderer/LitRenderer.js.map +7 -0
  257. package/dist/prod/renderer/directives/style-map.js +6 -0
  258. package/dist/prod/renderer/directives/style-map.js.map +7 -0
  259. package/dist/prod/renderer/executeTemplate.js +2 -0
  260. package/dist/prod/renderer/executeTemplate.js.map +7 -0
  261. package/dist/prod/sap/base/Log.js +750 -0
  262. package/dist/prod/sap/base/assert.js +34 -0
  263. package/dist/prod/sap/base/config/MemoryConfigurationProvider.js +20 -0
  264. package/dist/prod/sap/base/security/URLListValidator.js +406 -0
  265. package/dist/prod/sap/base/security/encodeCSS.js +40 -0
  266. package/dist/prod/sap/base/security/encodeXML.js +53 -0
  267. package/dist/prod/sap/base/security/sanitizeHTML.js +38 -0
  268. package/dist/prod/sap/base/strings/toHex.js +33 -0
  269. package/dist/prod/sap/base/util/now.js +28 -0
  270. package/dist/prod/sap/base/util/uid.js +27 -0
  271. package/dist/prod/sap/ui/thirdparty/caja-html-sanitizer.js +3600 -0
  272. package/dist/prod/ssr-dom-shim.js +2 -0
  273. package/dist/prod/ssr-dom-shim.js.map +7 -0
  274. package/dist/prod/ssr-dom.js +2 -0
  275. package/dist/prod/ssr-dom.js.map +7 -0
  276. package/dist/prod/theming/CustomStyle.js +2 -0
  277. package/dist/prod/theming/CustomStyle.js.map +7 -0
  278. package/dist/prod/theming/ThemeLoaded.js +2 -0
  279. package/dist/prod/theming/ThemeLoaded.js.map +7 -0
  280. package/dist/prod/theming/ThemeRegistered.js +2 -0
  281. package/dist/prod/theming/ThemeRegistered.js.map +7 -0
  282. package/dist/prod/theming/applyTheme.js +2 -0
  283. package/dist/prod/theming/applyTheme.js.map +7 -0
  284. package/dist/prod/theming/getConstructableStyle.js +2 -0
  285. package/dist/prod/theming/getConstructableStyle.js.map +7 -0
  286. package/dist/prod/theming/getEffectiveStyle.js +2 -0
  287. package/dist/prod/theming/getEffectiveStyle.js.map +7 -0
  288. package/dist/prod/theming/getStylesString.js +2 -0
  289. package/dist/prod/theming/getStylesString.js.map +7 -0
  290. package/dist/prod/theming/getThemeDesignerTheme.js +2 -0
  291. package/dist/prod/theming/getThemeDesignerTheme.js.map +7 -0
  292. package/dist/prod/thirdparty/_merge.js +2 -0
  293. package/dist/prod/thirdparty/_merge.js.map +7 -0
  294. package/dist/prod/thirdparty/isPlainObject.js +2 -0
  295. package/dist/prod/thirdparty/isPlainObject.js.map +7 -0
  296. package/dist/prod/thirdparty/merge.js +2 -0
  297. package/dist/prod/thirdparty/merge.js.map +7 -0
  298. package/dist/prod/thirdparty/preact/jsx.d.js +2 -0
  299. package/dist/prod/thirdparty/preact/jsx.d.js.map +7 -0
  300. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +2 -0
  301. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +7 -0
  302. package/dist/prod/thirdparty/preact/jsxRuntime.module.js +1 -0
  303. package/dist/prod/thirdparty/preact/preact.module.d.js +2 -0
  304. package/dist/prod/thirdparty/preact/preact.module.d.js.map +7 -0
  305. package/dist/prod/thirdparty/preact/preact.module.js +1 -0
  306. package/dist/prod/types/AnimationMode.js +2 -0
  307. package/dist/prod/types/AnimationMode.js.map +7 -0
  308. package/dist/prod/types/CalendarType.js +2 -0
  309. package/dist/prod/types/CalendarType.js.map +7 -0
  310. package/dist/prod/types/InvisibleMessageMode.js +2 -0
  311. package/dist/prod/types/InvisibleMessageMode.js.map +7 -0
  312. package/dist/prod/types/ItemNavigationBehavior.js +2 -0
  313. package/dist/prod/types/ItemNavigationBehavior.js.map +7 -0
  314. package/dist/prod/types/MovePlacement.js +2 -0
  315. package/dist/prod/types/MovePlacement.js.map +7 -0
  316. package/dist/prod/types/NavigationMode.js +2 -0
  317. package/dist/prod/types/NavigationMode.js.map +7 -0
  318. package/dist/prod/types/Orientation.js +2 -0
  319. package/dist/prod/types/Orientation.js.map +7 -0
  320. package/dist/prod/types/SortOrder.js +2 -0
  321. package/dist/prod/types/SortOrder.js.map +7 -0
  322. package/dist/prod/types/ValueState.js +2 -0
  323. package/dist/prod/types/ValueState.js.map +7 -0
  324. package/dist/prod/types.js +2 -0
  325. package/dist/prod/types.js.map +7 -0
  326. package/dist/prod/updateShadowRoot.js +2 -0
  327. package/dist/prod/updateShadowRoot.js.map +7 -0
  328. package/dist/prod/util/AccessibilityTextsHelper.js +2 -0
  329. package/dist/prod/util/AccessibilityTextsHelper.js.map +7 -0
  330. package/dist/prod/util/Caret.js +2 -0
  331. package/dist/prod/util/Caret.js.map +7 -0
  332. package/dist/prod/util/ColorConversion.js +2 -0
  333. package/dist/prod/util/ColorConversion.js.map +7 -0
  334. package/dist/prod/util/FetchHelper.js +2 -0
  335. package/dist/prod/util/FetchHelper.js.map +7 -0
  336. package/dist/prod/util/FocusableElements.js +2 -0
  337. package/dist/prod/util/FocusableElements.js.map +7 -0
  338. package/dist/prod/util/HTMLSanitizer.js +2 -0
  339. package/dist/prod/util/HTMLSanitizer.js.map +7 -0
  340. package/dist/prod/util/InvisibleMessage.js +2 -0
  341. package/dist/prod/util/InvisibleMessage.js.map +7 -0
  342. package/dist/prod/util/PopupUtils.js +2 -0
  343. package/dist/prod/util/PopupUtils.js.map +7 -0
  344. package/dist/prod/util/SelectionAssistant.js +2 -0
  345. package/dist/prod/util/SelectionAssistant.js.map +7 -0
  346. package/dist/prod/util/SlotsHelper.js +2 -0
  347. package/dist/prod/util/SlotsHelper.js.map +7 -0
  348. package/dist/prod/util/StringHelper.js +2 -0
  349. package/dist/prod/util/StringHelper.js.map +7 -0
  350. package/dist/prod/util/TabbableElements.js +2 -0
  351. package/dist/prod/util/TabbableElements.js.map +7 -0
  352. package/dist/prod/util/arraysAreEqual.js +2 -0
  353. package/dist/prod/util/arraysAreEqual.js.map +7 -0
  354. package/dist/prod/util/clamp.js +2 -0
  355. package/dist/prod/util/clamp.js.map +7 -0
  356. package/dist/prod/util/createLinkInHead.js +2 -0
  357. package/dist/prod/util/createLinkInHead.js.map +7 -0
  358. package/dist/prod/util/debounce.js +2 -0
  359. package/dist/prod/util/debounce.js.map +7 -0
  360. package/dist/prod/util/detectNavigatorLanguage.js +2 -0
  361. package/dist/prod/util/detectNavigatorLanguage.js.map +7 -0
  362. package/dist/prod/util/dragAndDrop/DragRegistry.js +2 -0
  363. package/dist/prod/util/dragAndDrop/DragRegistry.js.map +7 -0
  364. package/dist/prod/util/dragAndDrop/findClosestPosition.js +2 -0
  365. package/dist/prod/util/dragAndDrop/findClosestPosition.js.map +7 -0
  366. package/dist/prod/util/dragAndDrop/handleDragOver.js +2 -0
  367. package/dist/prod/util/dragAndDrop/handleDragOver.js.map +7 -0
  368. package/dist/prod/util/dragAndDrop/handleDrop.js +2 -0
  369. package/dist/prod/util/dragAndDrop/handleDrop.js.map +7 -0
  370. package/dist/prod/util/dragAndDrop/longDragOverHandler.js +2 -0
  371. package/dist/prod/util/dragAndDrop/longDragOverHandler.js.map +7 -0
  372. package/dist/prod/util/escapeRegex.js +2 -0
  373. package/dist/prod/util/escapeRegex.js.map +7 -0
  374. package/dist/prod/util/fixSafariActiveState.js +2 -0
  375. package/dist/prod/util/fixSafariActiveState.js.map +7 -0
  376. package/dist/prod/util/formatMessage.js +2 -0
  377. package/dist/prod/util/formatMessage.js.map +7 -0
  378. package/dist/prod/util/generateHighlightedMarkup.js +2 -0
  379. package/dist/prod/util/generateHighlightedMarkup.js.map +7 -0
  380. package/dist/prod/util/getActiveElement.js +2 -0
  381. package/dist/prod/util/getActiveElement.js.map +7 -0
  382. package/dist/prod/util/getClassCopy.js +2 -0
  383. package/dist/prod/util/getClassCopy.js.map +7 -0
  384. package/dist/prod/util/getDesigntimePropertyAsArray.js +2 -0
  385. package/dist/prod/util/getDesigntimePropertyAsArray.js.map +7 -0
  386. package/dist/prod/util/getEffectiveContentDensity.js +2 -0
  387. package/dist/prod/util/getEffectiveContentDensity.js.map +7 -0
  388. package/dist/prod/util/getEffectiveScrollbarStyle.js +28 -0
  389. package/dist/prod/util/getEffectiveScrollbarStyle.js.map +7 -0
  390. package/dist/prod/util/getFastNavigationGroups.js +2 -0
  391. package/dist/prod/util/getFastNavigationGroups.js.map +7 -0
  392. package/dist/prod/util/getFileExtension.js +2 -0
  393. package/dist/prod/util/getFileExtension.js.map +7 -0
  394. package/dist/prod/util/getNormalizedTarget.js +2 -0
  395. package/dist/prod/util/getNormalizedTarget.js.map +7 -0
  396. package/dist/prod/util/getSingletonElementInstance.js +2 -0
  397. package/dist/prod/util/getSingletonElementInstance.js.map +7 -0
  398. package/dist/prod/util/hash2str.js +2 -0
  399. package/dist/prod/util/hash2str.js.map +7 -0
  400. package/dist/prod/util/isElementClickable.js +2 -0
  401. package/dist/prod/util/isElementClickable.js.map +7 -0
  402. package/dist/prod/util/isElementHidden.js +2 -0
  403. package/dist/prod/util/isElementHidden.js.map +7 -0
  404. package/dist/prod/util/isElementInView.js +2 -0
  405. package/dist/prod/util/isElementInView.js.map +7 -0
  406. package/dist/prod/util/isElementTabbable.js +2 -0
  407. package/dist/prod/util/isElementTabbable.js.map +7 -0
  408. package/dist/prod/util/isValidPropertyName.js +2 -0
  409. package/dist/prod/util/isValidPropertyName.js.map +7 -0
  410. package/dist/prod/util/throttle.js +2 -0
  411. package/dist/prod/util/throttle.js.map +7 -0
  412. package/dist/prod/util/toLowercaseEnumValue.js +2 -0
  413. package/dist/prod/util/toLowercaseEnumValue.js.map +7 -0
  414. package/dist/prod/util/whenDOMReady.js +2 -0
  415. package/dist/prod/util/whenDOMReady.js.map +7 -0
  416. package/dist/prod/util/willShowContent.js +2 -0
  417. package/dist/prod/util/willShowContent.js.map +7 -0
  418. package/dist/prod/validateThemeRoot.js +2 -0
  419. package/dist/prod/validateThemeRoot.js.map +7 -0
  420. package/dist/renderer/JsxRenderer.js +12 -2
  421. package/dist/renderer/JsxRenderer.js.map +1 -1
  422. package/dist/ssr-dom-shim.js +51 -1
  423. package/dist/ssr-dom-shim.js.map +1 -1
  424. package/dist/thirdparty/preact/jsx.d.ts +1 -1
  425. package/dist/thirdparty/preact/jsxRuntime.module.d.ts +3 -3
  426. package/dist/thirdparty/preact/jsxRuntime.module.js +0 -1
  427. package/dist/thirdparty/preact/preact.module.js +1 -2
  428. package/dist/types/SortOrder.d.ts +24 -0
  429. package/dist/types/SortOrder.js +26 -0
  430. package/dist/types/SortOrder.js.map +1 -0
  431. package/dist/util/ColorConversion.js +24 -22
  432. package/dist/util/ColorConversion.js.map +1 -1
  433. package/dist/util/FocusableElements.js +28 -2
  434. package/dist/util/FocusableElements.js.map +1 -1
  435. package/dist/util/HTMLSanitizer.d.ts +2 -0
  436. package/dist/util/HTMLSanitizer.js +2 -2
  437. package/dist/util/HTMLSanitizer.js.map +1 -1
  438. package/dist/util/dragAndDrop/findClosestPosition.d.ts +2 -1
  439. package/dist/util/dragAndDrop/findClosestPosition.js +45 -41
  440. package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -1
  441. package/dist/util/getClassCopy.d.ts +4 -0
  442. package/dist/util/getEffectiveScrollbarStyle.d.ts +1 -1
  443. package/dist/util/getEffectiveScrollbarStyle.js +3 -1
  444. package/dist/util/getEffectiveScrollbarStyle.js.map +1 -1
  445. package/dist/util/getFastNavigationGroups.js +6 -1
  446. package/dist/util/getFastNavigationGroups.js.map +1 -1
  447. package/dist/util/throttle.d.ts +2 -0
  448. package/dist/util/throttle.js +20 -0
  449. package/dist/util/throttle.js.map +1 -0
  450. package/dist/vscode.html-custom-data.json +22 -0
  451. package/package-scripts.cjs +4 -4
  452. package/package.json +12 -7
  453. package/src/thirdparty/preact/jsxRuntime.module.js +0 -1
  454. package/src/thirdparty/preact/preact.module.js +1 -2
  455. package/tsconfig.json +0 -1
  456. package/cypress/specs/CustomMount.cy.ts +0 -34
  457. package/index.js +0 -208
  458. /package/cypress/specs/{Boot.cy.ts → Boot.cy.tsx} +0 -0
  459. /package/cypress/specs/{ConfigurationChange.cy.ts → ConfigurationChange.cy.tsx} +0 -0
  460. /package/cypress/specs/{EventProvider.cy.ts → EventProvider.cy.tsx} +0 -0
  461. /package/cypress/specs/{SystemDOMElements.cy.ts → SystemDOMElements.cy.tsx} +0 -0
  462. /package/cypress/specs/{Theming.cy.ts → Theming.cy.tsx} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,262 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.11.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.11.0-rc.0...v2.11.0-rc.1) (2025-05-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **f6navigation:** delegate fast navigation to openui5 ([#11505](https://github.com/SAP/ui5-webcomponents/issues/11505)) ([b23ee41](https://github.com/SAP/ui5-webcomponents/commit/b23ee41258835e0561e175150a099e0d9669a977)), closes [#10462](https://github.com/SAP/ui5-webcomponents/issues/10462)
12
+
13
+
14
+ ### Features
15
+
16
+ * **f6navigation:** add option to bypass groups ([#11494](https://github.com/SAP/ui5-webcomponents/issues/11494)) ([7039c24](https://github.com/SAP/ui5-webcomponents/commit/7039c24d260406d8b69883fe843de1b5c3cdc819))
17
+
18
+
19
+
20
+
21
+
22
+ # [2.11.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0...v2.11.0-rc.0) (2025-05-08)
23
+
24
+ **Note:** Version bump only for package @ui5/webcomponents-base
25
+
26
+
27
+
28
+
29
+
30
+ # [2.10.0](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.3...v2.10.0) (2025-05-07)
31
+
32
+ **Note:** Version bump only for package @ui5/webcomponents-base
33
+
34
+
35
+
36
+
37
+
38
+ # [2.10.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.2...v2.10.0-rc.3) (2025-05-01)
39
+
40
+ **Note:** Version bump only for package @ui5/webcomponents-base
41
+
42
+
43
+
44
+
45
+
46
+ # [2.10.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.1...v2.10.0-rc.2) (2025-04-24)
47
+
48
+ **Note:** Version bump only for package @ui5/webcomponents-base
49
+
50
+
51
+
52
+
53
+
54
+ # [2.10.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.0...v2.10.0-rc.1) (2025-04-17)
55
+
56
+ **Note:** Version bump only for package @ui5/webcomponents-base
57
+
58
+
59
+
60
+
61
+
62
+ # [2.10.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.9.1-rc.0...v2.10.0-rc.0) (2025-04-14)
63
+
64
+ **Note:** Version bump only for package @ui5/webcomponents-base
65
+
66
+
67
+
68
+
69
+
70
+ ## [2.9.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0...v2.9.1-rc.0) (2025-04-10)
71
+
72
+ **Note:** Version bump only for package @ui5/webcomponents-base
73
+
74
+
75
+
76
+
77
+
78
+ # [2.9.0](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.3...v2.9.0) (2025-04-04)
79
+
80
+ **Note:** Version bump only for package @ui5/webcomponents-base
81
+
82
+
83
+
84
+
85
+
86
+ # [2.9.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.2...v2.9.0-rc.3) (2025-04-03)
87
+
88
+
89
+ ### Bug Fixes
90
+
91
+ * **framework:** fix fetching "id" (indonesian) language ([#11251](https://github.com/SAP/ui5-webcomponents/issues/11251)) ([9a36df5](https://github.com/SAP/ui5-webcomponents/commit/9a36df5dc2191758abd665d6fb1014d645e322f7)), closes [#11233](https://github.com/SAP/ui5-webcomponents/issues/11233)
92
+
93
+
94
+
95
+
96
+
97
+ # [2.9.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.1...v2.9.0-rc.2) (2025-03-27)
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * **framework:** .d.ts errors that require skipLibCheck ([#11189](https://github.com/SAP/ui5-webcomponents/issues/11189)) ([92f0e68](https://github.com/SAP/ui5-webcomponents/commit/92f0e68c3b3b71ff27f707621b8b3da2248a2719))
103
+ * **framework:** fix find first focusable element ([#10984](https://github.com/SAP/ui5-webcomponents/issues/10984)) ([40303d5](https://github.com/SAP/ui5-webcomponents/commit/40303d54ce3fcc06ad980e12224be9f13ce8a983))
104
+
105
+
106
+
107
+
108
+
109
+ # [2.9.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.0...v2.9.0-rc.1) (2025-03-20)
110
+
111
+
112
+ ### Bug Fixes
113
+
114
+ * keep export paths in base in sync ([#11082](https://github.com/SAP/ui5-webcomponents/issues/11082)) ([8620ac8](https://github.com/SAP/ui5-webcomponents/commit/8620ac8823256ecf34ba70b4c06210253a3e5d14))
115
+
116
+
117
+
118
+
119
+
120
+ # [2.9.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.8.1-rc.0...v2.9.0-rc.0) (2025-03-13)
121
+
122
+
123
+ ### Bug Fixes
124
+
125
+ * **ui5-tabcontainer:** allow browser refresh shortcut to work ([#11035](https://github.com/SAP/ui5-webcomponents/issues/11035)) ([a4a0f02](https://github.com/SAP/ui5-webcomponents/commit/a4a0f028f44a60fd6caea0f4ecdac49b0289270d))
126
+
127
+
128
+
129
+
130
+
131
+ ## [2.8.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0...v2.8.1-rc.0) (2025-03-06)
132
+
133
+ **Note:** Version bump only for package @ui5/webcomponents-base
134
+
135
+
136
+
137
+
138
+
139
+ # [2.8.0](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.3...v2.8.0) (2025-03-04)
140
+
141
+
142
+ ### Features
143
+
144
+ * **framework:** add `.currentTarget` to the type of event handler in TSX and UI5CustomEvent ([#10957](https://github.com/SAP/ui5-webcomponents/issues/10957)) ([f56753c](https://github.com/SAP/ui5-webcomponents/commit/f56753c5142d6e817b05d7e33bd160f09c2d5205))
145
+
146
+
147
+
148
+
149
+
150
+ # [2.8.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.2...v2.8.0-rc.3) (2025-02-27)
151
+
152
+
153
+ ### Bug Fixes
154
+
155
+ * i18n bundle storage ([#10924](https://github.com/SAP/ui5-webcomponents/issues/10924)) ([e5456fb](https://github.com/SAP/ui5-webcomponents/commit/e5456fba557ab339ddcf6d933284a2b51155fa33)), closes [#10521](https://github.com/SAP/ui5-webcomponents/issues/10521)
156
+ * **ui5-popover, ui5-dialog:** fix finding keyboard focusable scroll containers ([#10891](https://github.com/SAP/ui5-webcomponents/issues/10891)) ([ed26b90](https://github.com/SAP/ui5-webcomponents/commit/ed26b9051ef02772d748de463b9b3084de12ebe8))
157
+ * **ui5-popover, ui5-dialog:** fix preventDefault for before-open and before-close events ([#10883](https://github.com/SAP/ui5-webcomponents/issues/10883)) ([e32e7ba](https://github.com/SAP/ui5-webcomponents/commit/e32e7ba83e4a950a7ad4745c302cc34b57c4cb8e))
158
+
159
+
160
+
161
+
162
+
163
+ # [2.8.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.1...v2.8.0-rc.2) (2025-02-20)
164
+
165
+
166
+ ### Bug Fixes
167
+
168
+ * **framework:** allow usage of events with any name not only kebab-case ([#10896](https://github.com/SAP/ui5-webcomponents/issues/10896)) ([d49f0de](https://github.com/SAP/ui5-webcomponents/commit/d49f0ded677a3d000e22811504a93f7ab11b145c))
169
+
170
+
171
+
172
+
173
+
174
+ # [2.8.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.0...v2.8.0-rc.1) (2025-02-13)
175
+
176
+
177
+ ### Bug Fixes
178
+
179
+ * **ui5-table:** update select all checkbox ([#10833](https://github.com/SAP/ui5-webcomponents/issues/10833)) ([819edcd](https://github.com/SAP/ui5-webcomponents/commit/819edcd51b04d60634fa8faa8f5c6b256eac99f5)), closes [#10658](https://github.com/SAP/ui5-webcomponents/issues/10658) [#10574](https://github.com/SAP/ui5-webcomponents/issues/10574) [#10804](https://github.com/SAP/ui5-webcomponents/issues/10804)
180
+
181
+
182
+
183
+
184
+
185
+ # [2.8.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0...v2.8.0-rc.0) (2025-02-06)
186
+
187
+ **Note:** Version bump only for package @ui5/webcomponents-base
188
+
189
+
190
+
191
+
192
+
193
+ # [2.7.0](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0-rc.2...v2.7.0) (2025-02-03)
194
+
195
+
196
+ ### Bug Fixes
197
+
198
+ * **framework:** improve check for native popovers ([#10745](https://github.com/SAP/ui5-webcomponents/issues/10745)) ([f21f9b8](https://github.com/SAP/ui5-webcomponents/commit/f21f9b8835c7081235acc79d067b6e0a77feccbd))
199
+
200
+
201
+
202
+
203
+
204
+ # [2.7.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0-rc.1...v2.7.0-rc.2) (2025-01-30)
205
+
206
+
207
+ ### Bug Fixes
208
+
209
+ * **f6navigation:** fast navigation in certain container only ([#10485](https://github.com/SAP/ui5-webcomponents/issues/10485)) ([4b2ab63](https://github.com/SAP/ui5-webcomponents/commit/4b2ab63cae9b175f07d266e4150a587756cd7f6c))
210
+
211
+
212
+
213
+
214
+
215
+ # [2.7.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0-rc.0...v2.7.0-rc.1) (2025-01-23)
216
+
217
+
218
+ ### Features
219
+
220
+ * **ui5-color-picker:** add HSL color selection ([#10157](https://github.com/SAP/ui5-webcomponents/issues/10157)) ([8d0e5a4](https://github.com/SAP/ui5-webcomponents/commit/8d0e5a492c9705499571ef223524f051454e766c)), closes [#10275](https://github.com/SAP/ui5-webcomponents/issues/10275)
221
+
222
+
223
+
224
+
225
+
226
+ # [2.7.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.2...v2.7.0-rc.0) (2025-01-16)
227
+
228
+
229
+ ### Bug Fixes
230
+
231
+ * i18n decorator property definition ([#10521](https://github.com/SAP/ui5-webcomponents/issues/10521)) ([d19f4e9](https://github.com/SAP/ui5-webcomponents/commit/d19f4e99bad74432bff21587da43a5844f17f8cf))
232
+ * **ui5-popover:** fix opener reference ([#10507](https://github.com/SAP/ui5-webcomponents/issues/10507)) ([a38a28e](https://github.com/SAP/ui5-webcomponents/commit/a38a28e11245e0121bd0a2d6b9d1f5b294952a42))
233
+
234
+
235
+
236
+
237
+
238
+ ## [2.6.2](https://github.com/SAP/ui5-webcomponents/compare/v2.6.2-rc.0...v2.6.2) (2025-01-09)
239
+
240
+ **Note:** Version bump only for package @ui5/webcomponents-base
241
+
242
+
243
+
244
+
245
+
246
+ ## [2.6.2-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.1...v2.6.2-rc.0) (2025-01-09)
247
+
248
+ **Note:** Version bump only for package @ui5/webcomponents-base
249
+
250
+
251
+
252
+
253
+
254
+ ## [2.6.1](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0...v2.6.1) (2025-01-08)
255
+
256
+ **Note:** Version bump only for package @ui5/webcomponents-base
257
+
258
+
259
+
260
+
261
+
6
262
  # [2.6.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.5...v2.6.0) (2025-01-07)
7
263
 
8
264
  **Note:** Version bump only for package @ui5/webcomponents-base
@@ -1,8 +1,8 @@
1
- import "../../test/test-elements/Accessor.js";
1
+ import Accessor from "../../test/test-elements/Accessor.js";
2
2
 
3
3
  describe("Framework boot", () => {
4
4
  it("Setting property updates attribute, state and DOM", () => {
5
- cy.mount(`<ui5-test-accessor></ui5-test-accessor>`);
5
+ cy.mount(<Accessor></Accessor>);
6
6
 
7
7
  cy.get("[ui5-test-accessor]")
8
8
  .as("testAccessor")
@@ -36,7 +36,7 @@ describe("Framework boot", () => {
36
36
  });
37
37
 
38
38
  it("Setting attribute updates property, state and DOM", () => {
39
- cy.mount(`<ui5-test-accessor></ui5-test-accessor>`);
39
+ cy.mount(<Accessor></Accessor>);
40
40
 
41
41
  cy.get("[ui5-test-accessor]")
42
42
  .as("testAccessor")
@@ -70,7 +70,7 @@ describe("Framework boot", () => {
70
70
  });
71
71
 
72
72
  it("should stop searching for accessors when HTMLElement is reached", () => {
73
- cy.mount(`<ui5-test-accessor></ui5-test-accessor>`);
73
+ cy.mount(<Accessor></Accessor>);
74
74
 
75
75
  cy.get("[ui5-test-accessor]")
76
76
  .invoke("prop", "title")
@@ -1,6 +1,7 @@
1
1
  import { getAnimationMode } from "../../src/config/AnimationMode.js";
2
2
  import { getCalendarType } from "../../src/config/CalendarType.js";
3
3
  import { getDefaultFontLoading } from "../../src/config/Fonts.js";
4
+ import TestGeneric from "../../test/test-elements/Generic.js";
4
5
  import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "../../src/config/FormatSettings.js";
5
6
  import { getLanguage } from "../../src/config/Language.js";
6
7
  import { getNoConflict } from "../../src/config/NoConflict.js";
@@ -43,21 +44,37 @@ describe("Configuration script", () => {
43
44
  };
44
45
 
45
46
  before(() => {
46
- cy.mount(`<ui5-test-generic></ui5-test-generic>`, {
47
- ui5Configuration: configurationObject,
48
- });
47
+ cy.window()
48
+ .then($el => {
49
+ const scriptElement = document.createElement("script");
50
+ scriptElement.type = "application/json";
51
+ scriptElement.setAttribute("data-ui5-config", "true");
52
+ scriptElement.innerHTML = JSON.stringify(configurationObject);
53
+ return $el.document.head.append(scriptElement);
54
+ })
55
+
49
56
 
50
57
  cy.wrap({ resetConfiguration })
51
58
  .invoke("resetConfiguration", true);
52
59
 
60
+ cy.mount(<TestGeneric />);
53
61
  cy.get("script[data-ui5-config]")
54
62
  .should("exist")
55
63
  .then($el => {
56
- return $el.get(0).innerHTML;
64
+ return $el.get(0)?.innerHTML;
57
65
  })
58
66
  .should("equal", JSON.stringify(configurationObject));
59
67
  });
60
68
 
69
+ after(() => {
70
+ cy.window()
71
+ .then($el => {
72
+ const scriptElement = $el.document.head.querySelector("script[data-ui5-config]");
73
+
74
+ scriptElement?.remove();
75
+ })
76
+ })
77
+
61
78
  it("getLanguage", () => {
62
79
  cy.wrap({ getLanguage })
63
80
  .invoke("getLanguage")
@@ -1,10 +1,11 @@
1
1
  import { internals } from "../../src/Location.js";
2
- import "../../test/test-elements/Generic.js";
2
+ import TestGeneric from "../../test/test-elements/Generic.js";
3
3
  import { resetConfiguration } from "../../src/InitialConfiguration.js";
4
4
  import { getLanguage } from "../../src/config/Language.js";
5
5
  import { getCalendarType } from "../../src/config/CalendarType.js";
6
6
  import { getTheme } from "../../src/config/Theme.js";
7
7
  import { getAnimationMode } from "../../src/config/AnimationMode.js";
8
+ import AnimationMode from "../../src/types/AnimationMode.js";
8
9
  import { getThemeRoot } from "../../src/config/ThemeRoot.js";
9
10
 
10
11
  describe("Some settings can be set via SAP UI URL params", () => {
@@ -23,7 +24,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
23
24
  .invoke("search")
24
25
  .should("be.equal", searchParams);
25
26
 
26
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
27
+ cy.mount(<TestGeneric />);
27
28
  });
28
29
 
29
30
  it("Tests that language is applied", () => {
@@ -47,7 +48,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
47
48
  it("Tests that animationMode is applied", () => {
48
49
  cy.wrap({ getAnimationMode })
49
50
  .invoke("getAnimationMode")
50
- .should("equal", "basic");
51
+ .should("equal", AnimationMode.Basic);
51
52
  });
52
53
  });
53
54
 
@@ -55,6 +56,16 @@ describe("Different themeRoot configurations", () => {
55
56
  it("Allowed theme root", () => {
56
57
  const searchParams = "sap-ui-theme=sap_horizon_hcb@https://example.com";
57
58
 
59
+ // All allowed theme roots need to be described inside the meta tag.
60
+ cy.window()
61
+ .then($el => {
62
+ const metaTag = document.createElement("meta");
63
+ metaTag.name = "sap-allowedThemeOrigins";
64
+ metaTag.content = "https://example.com";
65
+
66
+ $el.document.head.append(metaTag);
67
+ })
68
+
58
69
  cy.stub(internals, "search", () => {
59
70
  return searchParams;
60
71
  });
@@ -66,11 +77,19 @@ describe("Different themeRoot configurations", () => {
66
77
  .invoke("search")
67
78
  .should("be.equal", searchParams);
68
79
 
69
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
80
+ cy.mount(<TestGeneric />);
70
81
 
71
82
  cy.wrap({ getThemeRoot })
72
83
  .invoke("getThemeRoot")
73
84
  .should("equal", "https://example.com/UI5/");
85
+
86
+ // All allowed theme roots need to be described inside the meta tag.
87
+ cy.window()
88
+ .then($el => {
89
+ const metaTag = $el.document.head.querySelector("[name='sap-allowedThemeOrigins']");
90
+
91
+ metaTag?.remove();
92
+ })
74
93
  });
75
94
 
76
95
  it("Unallowed theme root", () => {
@@ -87,7 +106,7 @@ describe("Different themeRoot configurations", () => {
87
106
  .invoke("search")
88
107
  .should("be.equal", searchParams);
89
108
 
90
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
109
+ cy.mount(<TestGeneric />);
91
110
 
92
111
  cy.wrap({ getThemeRoot })
93
112
  .invoke("getThemeRoot")
@@ -108,7 +127,7 @@ describe("Different themeRoot configurations", () => {
108
127
  .invoke("search")
109
128
  .should("be.equal", searchParams);
110
129
 
111
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
130
+ cy.mount(<TestGeneric />);
112
131
 
113
132
  cy.wrap({ getThemeRoot })
114
133
  .invoke("getThemeRoot")
@@ -134,7 +153,7 @@ describe("Some settings can be set via SAP URL params", () => {
134
153
  .invoke("search")
135
154
  .should("be.equal", searchParams);
136
155
 
137
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
156
+ cy.mount(<TestGeneric />);
138
157
  });
139
158
 
140
159
  it("Tests that language is applied via sap-ui-language", () => {
@@ -165,7 +184,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
165
184
  .invoke("search")
166
185
  .should("be.equal", searchParams);
167
186
 
168
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
187
+ cy.mount(<TestGeneric />);
169
188
  });
170
189
 
171
190
  it("Tests that language is applied via sap-ui-language", () => {
@@ -0,0 +1,9 @@
1
+ describe("Custom mount", () => {
2
+ it("mount", () => {
3
+ cy.mount(<button>Test</button>);
4
+
5
+ cy.get("button")
6
+ .should("exist")
7
+ .and("have.text", "Test");
8
+ });
9
+ });
@@ -1,7 +1,7 @@
1
1
  import { registerThemePropertiesLoader } from "../../src/AssetRegistry.js";
2
2
  import { setTheme } from "../../src/config/Theme.js";
3
3
  import { getCurrentRuntimeIndex } from "../../src/Runtimes.js";
4
- import "../../test/test-elements/Generic.js";
4
+ import TestGeneric from "../../test/test-elements/Generic.js";
5
5
 
6
6
  describe("Custom themes can be registered", () => {
7
7
  it("Tests that theme parameters are changed on theme change", () => {
@@ -10,7 +10,7 @@ describe("Custom themes can be registered", () => {
10
10
  const currentRuntime = 0;
11
11
  const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
12
12
 
13
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
13
+ cy.mount(<TestGeneric />);
14
14
 
15
15
  cy.wrap({ getCurrentRuntimeIndex })
16
16
  .invoke("getCurrentRuntimeIndex")
@@ -0,0 +1,28 @@
1
+ import EventsConsumer from "../../test/test-elements/Events.js";
2
+ import type { Events } from "../../test/test-elements/Events.js";
3
+
4
+ describe("Event provider attaches and detaches listeners properly", () => {
5
+ it("Tests that attaching camelCase and kebab-case events in templates works", () => {
6
+ cy.mount(<EventsConsumer></EventsConsumer>);
7
+ cy.get<EventsConsumer>("[ui5-test-events-consumer]")
8
+ .as("eventsConsumer");
9
+
10
+ cy.get("@eventsConsumer")
11
+ .shadow()
12
+ .find("[ui5-test-events]")
13
+ .then(elements => {
14
+ (elements[0] as Events).fireKebaCaseEvent();
15
+ });
16
+ cy.get("@eventsConsumer")
17
+ .should("have.prop", "kebabCaseFired", true);
18
+
19
+ cy.get("@eventsConsumer")
20
+ .shadow()
21
+ .find("[ui5-test-events]")
22
+ .then(elements => {
23
+ (elements[0] as Events).fireCamelCaseEvent();
24
+ });
25
+ cy.get("@eventsConsumer")
26
+ .should("have.prop", "camelCaseFired", true);
27
+ });
28
+ });
@@ -1,9 +1,14 @@
1
1
  import type UI5Element from "../../src/UI5Element.js";
2
- import "../../test/test-elements/Generic.js";
2
+ import Generic from "../../test/test-elements/Generic.js";
3
3
 
4
4
  describe("Invalidation works", () => {
5
5
  it("Tests that changing a property invalidates", () => {
6
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
6
+ cy.mount(<Generic></Generic>);
7
+
8
+ cy.get<Generic>("[ui5-test-generic]")
9
+ .should($el => {
10
+ expect($el[0].getDomRef()).to.exist;
11
+ });
7
12
 
8
13
  cy.get("[ui5-test-generic]")
9
14
  .as("testGeneric")
@@ -22,10 +27,15 @@ describe("Invalidation works", () => {
22
27
  });
23
28
 
24
29
  it("Tests that setting a property to the same value does not invalidate", () => {
25
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
30
+ cy.mount(<Generic></Generic>);
26
31
 
27
32
  const text = "new value";
28
33
 
34
+ cy.get<Generic>("[ui5-test-generic]")
35
+ .should($el => {
36
+ expect($el[0].getDomRef()).to.exist;
37
+ });
38
+
29
39
  cy.get("[ui5-test-generic]")
30
40
  .as("testGeneric")
31
41
  .invoke("prop", "strProp", text)
@@ -41,11 +51,16 @@ describe("Invalidation works", () => {
41
51
  });
42
52
 
43
53
  it("Tests that setting a property of type Object always invalidates", () => {
44
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
54
+ cy.mount(<Generic></Generic>);
45
55
 
46
56
  const obj = {};
47
57
  const otherObj = {};
48
58
 
59
+ cy.get<Generic>("[ui5-test-generic]")
60
+ .should($el => {
61
+ expect($el[0].getDomRef()).to.exist;
62
+ });
63
+
49
64
  cy.get("[ui5-test-generic]")
50
65
  .as("testGeneric")
51
66
  .invoke("prop", "objectProp", obj)
@@ -61,11 +76,16 @@ describe("Invalidation works", () => {
61
76
  });
62
77
 
63
78
  it("Tests that setting an array property always invalidates", () => {
64
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
79
+ cy.mount(<Generic></Generic>);
65
80
 
66
81
  const arr: Array<string> = [];
67
82
  const otherArr: Array<string> = [];
68
83
 
84
+ cy.get<Generic>("[ui5-test-generic]")
85
+ .should($el => {
86
+ expect($el[0].getDomRef()).to.exist;
87
+ });
88
+
69
89
  cy.get("[ui5-test-generic]")
70
90
  .as("testGeneric")
71
91
  .invoke("prop", "multiProp", arr)
@@ -81,7 +101,12 @@ describe("Invalidation works", () => {
81
101
  });
82
102
 
83
103
  it("Tests that adding a child invalidates", () => {
84
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
104
+ cy.mount(<Generic></Generic>);
105
+
106
+ cy.get<Generic>("[ui5-test-generic]")
107
+ .should($el => {
108
+ expect($el[0].getDomRef()).to.exist;
109
+ });
85
110
 
86
111
  cy.get("[ui5-test-generic]")
87
112
  .as("testGeneric")
@@ -100,10 +125,15 @@ describe("Invalidation works", () => {
100
125
  });
101
126
 
102
127
  it("Tests that removing a child invalidates", () => {
103
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
128
+ cy.mount(<Generic></Generic>);
104
129
 
105
130
  const div = document.createElement("div");
106
131
 
132
+ cy.get<Generic>("[ui5-test-generic]")
133
+ .should($el => {
134
+ expect($el[0].getDomRef()).to.exist;
135
+ });
136
+
107
137
  cy.get("[ui5-test-generic]")
108
138
  .as("testGeneric")
109
139
  .then($testGeneric => {
@@ -128,7 +158,12 @@ describe("Invalidation works", () => {
128
158
  });
129
159
 
130
160
  it("Tests that modifying textContent invalidates", () => {
131
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
161
+ cy.mount(<Generic></Generic>);
162
+
163
+ cy.get<Generic>("[ui5-test-generic]")
164
+ .should($el => {
165
+ expect($el[0].getDomRef()).to.exist;
166
+ });
132
167
 
133
168
  cy.get("[ui5-test-generic]")
134
169
  .as("testGeneric")
@@ -154,7 +189,12 @@ describe("Invalidation works", () => {
154
189
  });
155
190
 
156
191
  it("Tests that modifying nodeValue invalidates", () => {
157
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
192
+ cy.mount(<Generic></Generic>);
193
+
194
+ cy.get<Generic>("[ui5-test-generic]")
195
+ .should($el => {
196
+ expect($el[0].getDomRef()).to.exist;
197
+ });
158
198
 
159
199
  cy.get("[ui5-test-generic]")
160
200
  .as("testGeneric")
@@ -180,7 +220,12 @@ describe("Invalidation works", () => {
180
220
  });
181
221
 
182
222
  it("Tests that multiple invalidations result in a single rendering", () => {
183
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
223
+ cy.mount(<Generic></Generic>);
224
+
225
+ cy.get<Generic>("[ui5-test-generic]")
226
+ .should($el => {
227
+ expect($el[0].getDomRef()).to.exist;
228
+ });
184
229
 
185
230
  cy.get("[ui5-test-generic]")
186
231
  .as("testGeneric");
@@ -1,11 +1,11 @@
1
1
  import type UI5Element from "../../src/UI5Element.js";
2
- import "../../test/test-elements/Generic.js";
2
+ import Generic from "../../test/test-elements/Generic.js";
3
3
 
4
4
  describe("Lifecycle works", () => {
5
5
  it("Tests that changing a property invalidates", () => {
6
6
  const el = document.createElement("ui5-test-generic");
7
7
 
8
- cy.mount(`<div id="container"></div>`);
8
+ cy.mount(<div id="container"></div>);
9
9
 
10
10
  cy.spy<UI5Element>((el as UI5Element), "onBeforeRendering").as("onBeforeRendering");
11
11
 
@@ -32,7 +32,7 @@ describe("Lifecycle works", () => {
32
32
  });
33
33
 
34
34
  it("Tests element invalidation callbacks", () => {
35
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
35
+ cy.mount(<Generic></Generic>);
36
36
 
37
37
  cy.get("[ui5-test-generic]")
38
38
  .as("testGeneric")
@@ -56,7 +56,7 @@ describe("Lifecycle works", () => {
56
56
  it("Tests element destruction callback", () => {
57
57
  const el = document.createElement("ui5-test-generic");
58
58
 
59
- cy.mount(`<div id="container"></div>`);
59
+ cy.mount(<div id="container"></div>);
60
60
 
61
61
  cy.spy<UI5Element>((el as UI5Element), "onExitDOM").as("onExitDOM");
62
62
  cy.spy<UI5Element>((el as UI5Element), "onEnterDOM").as("onEnterDOM");