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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (480) hide show
  1. package/CHANGELOG.md +831 -0
  2. package/LICENSE.txt +201 -0
  3. package/README.md +7 -7
  4. package/cypress.config.js +1 -1
  5. package/dist/.tsbuildinfobuild +1 -1
  6. package/dist/Assets-fetch.d.ts +1 -0
  7. package/dist/Assets-fetch.js +3 -0
  8. package/dist/Assets-fetch.js.map +1 -0
  9. package/dist/Assets-node.d.ts +12 -0
  10. package/dist/Assets-node.js +14 -0
  11. package/dist/Assets-node.js.map +1 -0
  12. package/dist/Assets.d.ts +1 -0
  13. package/dist/Assets.js +3 -0
  14. package/dist/Assets.js.map +1 -0
  15. package/dist/Boot.js +2 -0
  16. package/dist/Boot.js.map +1 -1
  17. package/dist/CustomElementsRegistry.d.ts +2 -1
  18. package/dist/CustomElementsRegistry.js +5 -2
  19. package/dist/CustomElementsRegistry.js.map +1 -1
  20. package/dist/CustomElementsScopeUtils.d.ts +4 -2
  21. package/dist/CustomElementsScopeUtils.js +8 -1
  22. package/dist/CustomElementsScopeUtils.js.map +1 -1
  23. package/dist/DragAndDrop.d.ts +2 -0
  24. package/dist/DragAndDrop.js +5 -0
  25. package/dist/DragAndDrop.js.map +1 -0
  26. package/dist/FeaturesRegistry.d.ts +1 -13
  27. package/dist/FeaturesRegistry.js +1 -37
  28. package/dist/FeaturesRegistry.js.map +1 -1
  29. package/dist/FontFace.js +0 -8
  30. package/dist/FontFace.js.map +1 -1
  31. package/dist/InitialConfiguration.js +7 -0
  32. package/dist/InitialConfiguration.js.map +1 -1
  33. package/dist/Keys.d.ts +4 -1
  34. package/dist/Keys.js +4 -1
  35. package/dist/Keys.js.map +1 -1
  36. package/dist/ManagedStyles.d.ts +4 -6
  37. package/dist/ManagedStyles.js +6 -16
  38. package/dist/ManagedStyles.js.map +1 -1
  39. package/dist/ScrollbarStyles.d.ts +2 -0
  40. package/dist/ScrollbarStyles.js +9 -0
  41. package/dist/ScrollbarStyles.js.map +1 -0
  42. package/dist/UI5Element.d.ts +48 -17
  43. package/dist/UI5Element.js +65 -42
  44. package/dist/UI5Element.js.map +1 -1
  45. package/dist/UI5ElementMetadata.d.ts +4 -9
  46. package/dist/UI5ElementMetadata.js +0 -7
  47. package/dist/UI5ElementMetadata.js.map +1 -1
  48. package/dist/asset-registries/Icons.d.ts +42 -8
  49. package/dist/asset-registries/Icons.js +51 -8
  50. package/dist/asset-registries/Icons.js.map +1 -1
  51. package/dist/asset-registries/Illustrations.d.ts +133 -8
  52. package/dist/asset-registries/Illustrations.js +82 -1
  53. package/dist/asset-registries/Illustrations.js.map +1 -1
  54. package/dist/asset-registries/LocaleData.js +2 -1
  55. package/dist/asset-registries/LocaleData.js.map +1 -1
  56. package/dist/asset-registries/Themes.d.ts +3 -6
  57. package/dist/asset-registries/Themes.js +1 -2
  58. package/dist/asset-registries/Themes.js.map +1 -1
  59. package/dist/config/Language.d.ts +2 -1
  60. package/dist/config/Language.js +12 -1
  61. package/dist/config/Language.js.map +1 -1
  62. package/dist/config/Theme.js +1 -2
  63. package/dist/config/Theme.js.map +1 -1
  64. package/dist/config/ThemeRoot.d.ts +3 -1
  65. package/dist/config/ThemeRoot.js +3 -1
  66. package/dist/config/ThemeRoot.js.map +1 -1
  67. package/dist/css/MultipleDragGhost.css +17 -0
  68. package/dist/css/OpenUI5PopupStyles.css +5 -0
  69. package/dist/css/ScrollbarStyles.css +3 -0
  70. package/dist/custom-elements-internal.json +1797 -1736
  71. package/dist/custom-elements.json +1424 -1301
  72. package/dist/decorators/bound.d.ts +1 -0
  73. package/dist/decorators/bound.js +34 -0
  74. package/dist/decorators/bound.js.map +1 -0
  75. package/dist/decorators/customElement.d.ts +38 -0
  76. package/dist/decorators/customElement.js +1 -4
  77. package/dist/decorators/customElement.js.map +1 -1
  78. package/dist/decorators/event-strict.d.ts +15 -0
  79. package/dist/decorators/event-strict.js +26 -0
  80. package/dist/decorators/event-strict.js.map +1 -0
  81. package/dist/decorators/event.d.ts +1 -0
  82. package/dist/decorators/event.js +1 -0
  83. package/dist/decorators/event.js.map +1 -1
  84. package/dist/decorators/i18n.js +6 -0
  85. package/dist/decorators/i18n.js.map +1 -1
  86. package/dist/decorators.d.ts +4 -1
  87. package/dist/decorators.js +4 -1
  88. package/dist/decorators.js.map +1 -1
  89. package/dist/features/F6Navigation.d.ts +1 -0
  90. package/dist/features/F6Navigation.js +39 -12
  91. package/dist/features/F6Navigation.js.map +1 -1
  92. package/dist/features/OpenUI5Enablement.d.ts +1 -1
  93. package/dist/features/OpenUI5Support.d.ts +5 -0
  94. package/dist/features/OpenUI5Support.js +42 -29
  95. package/dist/features/OpenUI5Support.js.map +1 -1
  96. package/dist/features/insertOpenUI5PopupStyles.d.ts +2 -0
  97. package/dist/features/insertOpenUI5PopupStyles.js +9 -0
  98. package/dist/features/insertOpenUI5PopupStyles.js.map +1 -0
  99. package/dist/features/patchPopup.d.ts +17 -4
  100. package/dist/features/patchPopup.js +67 -8
  101. package/dist/features/patchPopup.js.map +1 -1
  102. package/dist/generated/AssetParameters.js +1 -1
  103. package/dist/generated/AssetParameters.js.map +1 -1
  104. package/dist/generated/VersionInfo.js +6 -6
  105. package/dist/generated/VersionInfo.js.map +1 -1
  106. package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
  107. package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
  108. package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
  109. package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
  110. package/dist/generated/css/BusyIndicator.css.d.ts +2 -3
  111. package/dist/generated/css/BusyIndicator.css.js +1 -6
  112. package/dist/generated/css/BusyIndicator.css.js.map +1 -1
  113. package/dist/generated/css/FontFace.css.d.ts +2 -3
  114. package/dist/generated/css/FontFace.css.js +36 -6
  115. package/dist/generated/css/FontFace.css.js.map +1 -1
  116. package/dist/generated/css/MultipleDragGhost.css.d.ts +2 -0
  117. package/dist/generated/css/MultipleDragGhost.css.js +2 -0
  118. package/dist/generated/css/MultipleDragGhost.css.js.map +1 -0
  119. package/dist/generated/css/OpenUI5PopupStyles.css.d.ts +2 -0
  120. package/dist/generated/css/OpenUI5PopupStyles.css.js +2 -0
  121. package/dist/generated/css/OpenUI5PopupStyles.css.js.map +1 -0
  122. package/dist/generated/css/ScrollbarStyles.css.d.ts +2 -0
  123. package/dist/generated/css/ScrollbarStyles.css.js +2 -0
  124. package/dist/generated/css/ScrollbarStyles.css.js.map +1 -0
  125. package/dist/generated/css/SystemCSSVars.css.d.ts +2 -3
  126. package/dist/generated/css/SystemCSSVars.css.js +1 -6
  127. package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
  128. package/dist/generated/i18n/i18n-defaults.d.ts +3 -0
  129. package/dist/generated/i18n/i18n-defaults.js +3 -0
  130. package/dist/generated/i18n/i18n-defaults.js.map +1 -0
  131. package/dist/generated/json-imports/i18n-fetch.d.ts +1 -0
  132. package/dist/generated/json-imports/i18n-fetch.js +2 -0
  133. package/dist/generated/json-imports/i18n-fetch.js.map +1 -0
  134. package/dist/generated/json-imports/i18n-node.d.ts +1 -0
  135. package/dist/generated/json-imports/i18n-node.js +2 -0
  136. package/dist/generated/json-imports/i18n-node.js.map +1 -0
  137. package/dist/generated/json-imports/i18n.d.ts +1 -0
  138. package/dist/generated/json-imports/i18n.js +2 -0
  139. package/dist/generated/json-imports/i18n.js.map +1 -0
  140. package/dist/index.d.ts +49 -0
  141. package/dist/index.js +91 -0
  142. package/dist/index.js.map +1 -0
  143. package/dist/jsx-dev-runtime.d.ts +4 -0
  144. package/dist/jsx-dev-runtime.js +43 -0
  145. package/dist/jsx-dev-runtime.js.map +1 -0
  146. package/dist/jsx-runtime.d.ts +51 -0
  147. package/dist/jsx-runtime.js +27 -0
  148. package/dist/jsx-runtime.js.map +1 -0
  149. package/dist/jsx-utils.d.ts +3 -0
  150. package/dist/jsx-utils.js +48 -0
  151. package/dist/jsx-utils.js.map +1 -0
  152. package/dist/locale/nextFallbackLocale.js +6 -2
  153. package/dist/locale/nextFallbackLocale.js.map +1 -1
  154. package/dist/prod/Assets-fetch.js +2 -0
  155. package/dist/prod/Assets-fetch.js.map +7 -0
  156. package/dist/prod/Assets-node.js +2 -0
  157. package/dist/prod/Assets-node.js.map +7 -0
  158. package/dist/prod/Assets.js +2 -0
  159. package/dist/prod/Assets.js.map +7 -0
  160. package/dist/prod/Boot.js +1 -1
  161. package/dist/prod/Boot.js.map +3 -3
  162. package/dist/prod/CustomElementsRegistry.js +5 -5
  163. package/dist/prod/CustomElementsRegistry.js.map +3 -3
  164. package/dist/prod/CustomElementsScopeUtils.js +1 -1
  165. package/dist/prod/CustomElementsScopeUtils.js.map +3 -3
  166. package/dist/prod/DragAndDrop.js +2 -0
  167. package/dist/prod/DragAndDrop.js.map +7 -0
  168. package/dist/prod/FeaturesRegistry.js +1 -1
  169. package/dist/prod/FeaturesRegistry.js.map +3 -3
  170. package/dist/prod/FontFace.js +1 -1
  171. package/dist/prod/FontFace.js.map +3 -3
  172. package/dist/prod/InitialConfiguration.js +1 -1
  173. package/dist/prod/InitialConfiguration.js.map +2 -2
  174. package/dist/prod/Keys.js +1 -1
  175. package/dist/prod/Keys.js.map +3 -3
  176. package/dist/prod/ManagedStyles.js +1 -1
  177. package/dist/prod/ManagedStyles.js.map +3 -3
  178. package/dist/prod/ScrollbarStyles.js +2 -0
  179. package/dist/prod/ScrollbarStyles.js.map +7 -0
  180. package/dist/prod/UI5Element.js +1 -1
  181. package/dist/prod/UI5Element.js.map +3 -3
  182. package/dist/prod/UI5ElementMetadata.js +1 -1
  183. package/dist/prod/UI5ElementMetadata.js.map +2 -2
  184. package/dist/prod/asset-registries/Icons.js +1 -1
  185. package/dist/prod/asset-registries/Icons.js.map +3 -3
  186. package/dist/prod/asset-registries/Illustrations.js +1 -1
  187. package/dist/prod/asset-registries/Illustrations.js.map +3 -3
  188. package/dist/prod/asset-registries/LocaleData.js +1 -1
  189. package/dist/prod/asset-registries/LocaleData.js.map +2 -2
  190. package/dist/prod/asset-registries/Themes.js +1 -1
  191. package/dist/prod/asset-registries/Themes.js.map +2 -2
  192. package/dist/prod/config/Language.js +1 -1
  193. package/dist/prod/config/Language.js.map +3 -3
  194. package/dist/prod/config/Theme.js +1 -1
  195. package/dist/prod/config/Theme.js.map +3 -3
  196. package/dist/prod/config/ThemeRoot.js.map +2 -2
  197. package/dist/prod/decorators/bound.js +2 -0
  198. package/dist/prod/decorators/bound.js.map +7 -0
  199. package/dist/prod/decorators/customElement.js +1 -1
  200. package/dist/prod/decorators/customElement.js.map +3 -3
  201. package/dist/prod/decorators/event-strict.js +2 -0
  202. package/dist/prod/decorators/event-strict.js.map +7 -0
  203. package/dist/prod/decorators/event.js.map +2 -2
  204. package/dist/prod/decorators/i18n.js +1 -1
  205. package/dist/prod/decorators/i18n.js.map +2 -2
  206. package/dist/prod/decorators.js +1 -1
  207. package/dist/prod/decorators.js.map +3 -3
  208. package/dist/prod/features/F6Navigation.js +1 -1
  209. package/dist/prod/features/F6Navigation.js.map +3 -3
  210. package/dist/prod/features/OpenUI5Support.js +1 -1
  211. package/dist/prod/features/OpenUI5Support.js.map +3 -3
  212. package/dist/prod/features/insertOpenUI5PopupStyles.js +2 -0
  213. package/dist/prod/features/insertOpenUI5PopupStyles.js.map +7 -0
  214. package/dist/prod/features/patchPopup.js +1 -1
  215. package/dist/prod/features/patchPopup.js.map +3 -3
  216. package/dist/prod/generated/AssetParameters.js +1 -1
  217. package/dist/prod/generated/AssetParameters.js.map +2 -2
  218. package/dist/prod/generated/VersionInfo.js +1 -1
  219. package/dist/prod/generated/VersionInfo.js.map +2 -2
  220. package/dist/prod/generated/assets/i18n/messagebundle_en.json +1 -0
  221. package/dist/prod/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
  222. package/dist/prod/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
  223. package/dist/prod/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
  224. package/dist/prod/generated/css/BusyIndicator.css.js +1 -1
  225. package/dist/prod/generated/css/BusyIndicator.css.js.map +3 -3
  226. package/dist/prod/generated/css/FontFace.css.js +36 -1
  227. package/dist/prod/generated/css/FontFace.css.js.map +3 -3
  228. package/dist/prod/generated/css/MultipleDragGhost.css.js +2 -0
  229. package/dist/prod/generated/css/MultipleDragGhost.css.js.map +7 -0
  230. package/dist/prod/generated/css/OpenUI5PopupStyles.css.js +2 -0
  231. package/dist/prod/generated/css/OpenUI5PopupStyles.css.js.map +7 -0
  232. package/dist/prod/generated/css/ScrollbarStyles.css.js +2 -0
  233. package/dist/prod/generated/css/ScrollbarStyles.css.js.map +7 -0
  234. package/dist/prod/generated/css/SystemCSSVars.css.js +1 -1
  235. package/dist/prod/generated/css/SystemCSSVars.css.js.map +3 -3
  236. package/dist/prod/generated/i18n/i18n-defaults.js +2 -0
  237. package/dist/prod/generated/i18n/i18n-defaults.js.map +7 -0
  238. package/dist/prod/generated/json-imports/i18n-fetch.js +2 -0
  239. package/dist/prod/generated/json-imports/i18n-fetch.js.map +7 -0
  240. package/dist/prod/generated/json-imports/i18n-node.js +2 -0
  241. package/dist/prod/generated/json-imports/i18n-node.js.map +7 -0
  242. package/dist/prod/generated/json-imports/i18n.js +2 -0
  243. package/dist/prod/generated/json-imports/i18n.js.map +7 -0
  244. package/dist/prod/index.js +2 -0
  245. package/dist/prod/index.js.map +7 -0
  246. package/dist/prod/jsx-dev-runtime.js +2 -0
  247. package/dist/prod/jsx-dev-runtime.js.map +7 -0
  248. package/dist/prod/jsx-runtime.js +2 -0
  249. package/dist/prod/jsx-runtime.js.map +7 -0
  250. package/dist/prod/jsx-utils.js +2 -0
  251. package/dist/prod/jsx-utils.js.map +7 -0
  252. package/dist/prod/locale/nextFallbackLocale.js +1 -1
  253. package/dist/prod/locale/nextFallbackLocale.js.map +3 -3
  254. package/dist/prod/renderer/JsxRenderer.js +2 -0
  255. package/dist/prod/renderer/JsxRenderer.js.map +7 -0
  256. package/dist/prod/renderer/LitRenderer.js +1 -1
  257. package/dist/prod/renderer/LitRenderer.js.map +3 -3
  258. package/dist/prod/renderer/executeTemplate.js +1 -1
  259. package/dist/prod/renderer/executeTemplate.js.map +3 -3
  260. package/dist/prod/ssr-dom-shim.js +1 -1
  261. package/dist/prod/ssr-dom-shim.js.map +3 -3
  262. package/dist/prod/theming/applyTheme.js +1 -1
  263. package/dist/prod/theming/applyTheme.js.map +3 -3
  264. package/dist/prod/theming/getStylesString.js +1 -1
  265. package/dist/prod/theming/getStylesString.js.map +2 -2
  266. package/dist/prod/theming/getThemeDesignerTheme.js +1 -1
  267. package/dist/prod/theming/getThemeDesignerTheme.js.map +3 -3
  268. package/dist/prod/thirdparty/preact/jsx.d.js +2 -0
  269. package/dist/prod/thirdparty/preact/jsx.d.js.map +7 -0
  270. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +2 -0
  271. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +7 -0
  272. package/dist/prod/thirdparty/preact/jsxRuntime.module.js +1 -0
  273. package/dist/prod/thirdparty/preact/preact.module.d.js +2 -0
  274. package/dist/prod/thirdparty/preact/preact.module.d.js.map +7 -0
  275. package/dist/prod/thirdparty/preact/preact.module.js +1 -0
  276. package/dist/prod/types/SortOrder.js +2 -0
  277. package/dist/prod/types/SortOrder.js.map +7 -0
  278. package/dist/prod/updateShadowRoot.js +1 -1
  279. package/dist/prod/updateShadowRoot.js.map +3 -3
  280. package/dist/prod/util/AccessibilityTextsHelper.js +2 -0
  281. package/dist/prod/util/AccessibilityTextsHelper.js.map +7 -0
  282. package/dist/prod/util/ColorConversion.js +1 -1
  283. package/dist/prod/util/ColorConversion.js.map +3 -3
  284. package/dist/prod/util/FocusableElements.js +1 -1
  285. package/dist/prod/util/FocusableElements.js.map +3 -3
  286. package/dist/prod/util/HTMLSanitizer.js.map +1 -1
  287. package/dist/prod/util/SelectionAssistant.js +1 -1
  288. package/dist/prod/util/SelectionAssistant.js.map +3 -3
  289. package/dist/prod/util/StringHelper.js +1 -1
  290. package/dist/prod/util/StringHelper.js.map +3 -3
  291. package/dist/prod/util/TabbableElements.js +1 -1
  292. package/dist/prod/util/TabbableElements.js.map +2 -2
  293. package/dist/prod/util/dragAndDrop/DragRegistry.js +1 -1
  294. package/dist/prod/util/dragAndDrop/DragRegistry.js.map +3 -3
  295. package/dist/prod/util/dragAndDrop/findClosestPosition.js +1 -1
  296. package/dist/prod/util/dragAndDrop/findClosestPosition.js.map +3 -3
  297. package/dist/prod/util/dragAndDrop/handleDragOver.js +2 -0
  298. package/dist/prod/util/dragAndDrop/handleDragOver.js.map +7 -0
  299. package/dist/prod/util/dragAndDrop/handleDrop.js +2 -0
  300. package/dist/prod/util/dragAndDrop/handleDrop.js.map +7 -0
  301. package/dist/prod/util/getFastNavigationGroups.js +1 -1
  302. package/dist/prod/util/getFastNavigationGroups.js.map +2 -2
  303. package/dist/prod/util/getParentElement.js +1 -1
  304. package/dist/prod/util/getParentElement.js.map +3 -3
  305. package/dist/prod/util/hash2str.js +2 -0
  306. package/dist/prod/util/hash2str.js.map +7 -0
  307. package/dist/prod/util/isElementHidden.js +1 -1
  308. package/dist/prod/util/isElementHidden.js.map +3 -3
  309. package/dist/prod/util/isEventMarked.js +2 -0
  310. package/dist/prod/util/isEventMarked.js.map +7 -0
  311. package/dist/prod/util/throttle.js +2 -0
  312. package/dist/prod/util/throttle.js.map +7 -0
  313. package/dist/prod/util/toLowercaseEnumValue.js +2 -0
  314. package/dist/prod/util/toLowercaseEnumValue.js.map +7 -0
  315. package/dist/prod/util/valueStateNavigation.js +2 -0
  316. package/dist/prod/util/valueStateNavigation.js.map +7 -0
  317. package/dist/prod/validateThemeRoot.js +1 -1
  318. package/dist/prod/validateThemeRoot.js.map +2 -2
  319. package/dist/renderer/JsxRenderer.d.ts +3 -0
  320. package/dist/renderer/JsxRenderer.js +26 -0
  321. package/dist/renderer/JsxRenderer.js.map +1 -0
  322. package/dist/renderer/LitRenderer.js +4 -3
  323. package/dist/renderer/LitRenderer.js.map +1 -1
  324. package/dist/renderer/executeTemplate.d.ts +3 -12
  325. package/dist/renderer/executeTemplate.js +1 -20
  326. package/dist/renderer/executeTemplate.js.map +1 -1
  327. package/dist/ssr-dom-shim.js +52 -1
  328. package/dist/ssr-dom-shim.js.map +1 -1
  329. package/dist/theming/applyTheme.d.ts +2 -0
  330. package/dist/theming/applyTheme.js +21 -30
  331. package/dist/theming/applyTheme.js.map +1 -1
  332. package/dist/theming/getStylesString.js +2 -4
  333. package/dist/theming/getStylesString.js.map +1 -1
  334. package/dist/theming/getThemeDesignerTheme.js +2 -1
  335. package/dist/theming/getThemeDesignerTheme.js.map +1 -1
  336. package/dist/thirdparty/preact/jsx.d.ts +2616 -0
  337. package/dist/thirdparty/preact/jsxRuntime.module.d.ts +62 -0
  338. package/dist/thirdparty/preact/jsxRuntime.module.js +1 -0
  339. package/dist/thirdparty/preact/preact.module.d.ts +398 -0
  340. package/dist/thirdparty/preact/preact.module.js +1 -0
  341. package/dist/types/SortOrder.d.ts +24 -0
  342. package/dist/types/SortOrder.js +26 -0
  343. package/dist/types/SortOrder.js.map +1 -0
  344. package/dist/types.d.ts +30 -27
  345. package/dist/types.js.map +1 -1
  346. package/dist/updateShadowRoot.js +1 -2
  347. package/dist/updateShadowRoot.js.map +1 -1
  348. package/dist/util/{AriaLabelHelper.d.ts → AccessibilityTextsHelper.d.ts} +3 -1
  349. package/dist/util/{AriaLabelHelper.js → AccessibilityTextsHelper.js} +36 -8
  350. package/dist/util/AccessibilityTextsHelper.js.map +1 -0
  351. package/dist/util/ColorConversion.d.ts +2 -1
  352. package/dist/util/ColorConversion.js +35 -23
  353. package/dist/util/ColorConversion.js.map +1 -1
  354. package/dist/util/FocusableElements.js +43 -15
  355. package/dist/util/FocusableElements.js.map +1 -1
  356. package/dist/util/HTMLSanitizer.d.ts +2 -0
  357. package/dist/util/HTMLSanitizer.js +2 -2
  358. package/dist/util/HTMLSanitizer.js.map +1 -1
  359. package/dist/util/SelectionAssistant.js +0 -8
  360. package/dist/util/SelectionAssistant.js.map +1 -1
  361. package/dist/util/StringHelper.d.ts +2 -1
  362. package/dist/util/StringHelper.js +4 -1
  363. package/dist/util/StringHelper.js.map +1 -1
  364. package/dist/util/TabbableElements.js +2 -2
  365. package/dist/util/TabbableElements.js.map +1 -1
  366. package/dist/util/dragAndDrop/DragRegistry.d.ts +35 -8
  367. package/dist/util/dragAndDrop/DragRegistry.js +42 -50
  368. package/dist/util/dragAndDrop/DragRegistry.js.map +1 -1
  369. package/dist/util/dragAndDrop/findClosestPosition.d.ts +2 -1
  370. package/dist/util/dragAndDrop/findClosestPosition.js +45 -41
  371. package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -1
  372. package/dist/util/dragAndDrop/handleDragOver.d.ts +16 -0
  373. package/dist/util/dragAndDrop/handleDragOver.js +42 -0
  374. package/dist/util/dragAndDrop/handleDragOver.js.map +1 -0
  375. package/dist/util/dragAndDrop/handleDrop.d.ts +5 -0
  376. package/dist/util/dragAndDrop/handleDrop.js +22 -0
  377. package/dist/util/dragAndDrop/handleDrop.js.map +1 -0
  378. package/dist/util/getClassCopy.d.ts +16 -5
  379. package/dist/util/getFastNavigationGroups.js +6 -1
  380. package/dist/util/getFastNavigationGroups.js.map +1 -1
  381. package/dist/util/getParentElement.d.ts +1 -1
  382. package/dist/util/getParentElement.js +2 -2
  383. package/dist/util/getParentElement.js.map +1 -1
  384. package/dist/util/hash2str.d.ts +1 -0
  385. package/dist/util/hash2str.js +14 -0
  386. package/dist/util/hash2str.js.map +1 -0
  387. package/dist/util/isElementHidden.js +2 -1
  388. package/dist/util/isElementHidden.js.map +1 -1
  389. package/dist/util/isEventMarked.d.ts +2 -0
  390. package/dist/util/isEventMarked.js +6 -0
  391. package/dist/util/isEventMarked.js.map +1 -0
  392. package/dist/util/throttle.d.ts +2 -0
  393. package/dist/util/throttle.js +20 -0
  394. package/dist/util/throttle.js.map +1 -0
  395. package/dist/util/toLowercaseEnumValue.d.ts +3 -0
  396. package/dist/util/toLowercaseEnumValue.js +4 -0
  397. package/dist/util/toLowercaseEnumValue.js.map +1 -0
  398. package/dist/util/valueStateNavigation.d.ts +8 -0
  399. package/dist/util/valueStateNavigation.js +40 -0
  400. package/dist/util/valueStateNavigation.js.map +1 -0
  401. package/dist/validateThemeRoot.js +6 -2
  402. package/dist/validateThemeRoot.js.map +1 -1
  403. package/dist/vscode.html-custom-data.json +1 -1
  404. package/package-scripts.cjs +65 -34
  405. package/package.json +38 -25
  406. package/src/css/MultipleDragGhost.css +17 -0
  407. package/src/css/OpenUI5PopupStyles.css +5 -0
  408. package/src/css/ScrollbarStyles.css +3 -0
  409. package/src/i18n/messagebundle.properties +5 -0
  410. package/src/i18n/messagebundle_en.properties +2 -0
  411. package/src/i18n/messagebundle_en_US_sappsd.properties +2 -0
  412. package/src/i18n/messagebundle_en_US_saprigi.properties +2 -0
  413. package/src/i18n/messagebundle_en_US_saptrc.properties +2 -0
  414. package/src/thirdparty/preact/jsxRuntime.module.js +1 -0
  415. package/src/thirdparty/preact/preact.module.js +1 -0
  416. package/src/thirdparty/preact/version.txt +1 -0
  417. package/tsconfig.json +0 -1
  418. package/cypress/specs/Accessor.cy.ts +0 -79
  419. package/cypress/specs/Boot.cy.ts +0 -23
  420. package/cypress/specs/ConfigurationChange.cy.ts +0 -41
  421. package/cypress/specs/ConfigurationScript.cy.ts +0 -116
  422. package/cypress/specs/ConfigurationURL.cy.ts +0 -182
  423. package/cypress/specs/CustomMount.cy.ts +0 -34
  424. package/cypress/specs/CustomTheme.cy.ts +0 -36
  425. package/cypress/specs/EventProvider.cy.ts +0 -59
  426. package/cypress/specs/SystemDOMElements.cy.ts +0 -8
  427. package/cypress/specs/Theming.cy.ts +0 -74
  428. package/cypress/specs/UI5ElementInvalidation.cy.ts +0 -207
  429. package/cypress/specs/UI5ElementLifecycle.cy.ts +0 -82
  430. package/cypress/specs/UI5ElementListenForChildPropChanges.cy.ts +0 -62
  431. package/cypress/specs/UI5ElementMetadataExt.cy.ts +0 -42
  432. package/cypress/specs/UI5ElementPropertyValidation.cy.ts +0 -16
  433. package/cypress/specs/UI5ElementPropsAndAttrs.cy.ts +0 -113
  434. package/cypress/specs/UI5ElementShadowDOM.cy.ts +0 -30
  435. package/cypress/specs/UI5ElementSlots.cy.ts +0 -116
  436. package/cypress/specs/WithComplexTemplate.cy.ts +0 -32
  437. package/cypress/tsconfig.json +0 -20
  438. package/dist/MarkedEvents.d.ts +0 -9
  439. package/dist/MarkedEvents.js +0 -15
  440. package/dist/MarkedEvents.js.map +0 -1
  441. package/dist/css/FontFace.css +0 -96
  442. package/dist/css/OverrideFontFace.css +0 -32
  443. package/dist/generated/css/OverrideFontFace.css.d.ts +0 -3
  444. package/dist/generated/css/OverrideFontFace.css.js +0 -7
  445. package/dist/generated/css/OverrideFontFace.css.js.map +0 -1
  446. package/dist/prod/MarkedEvents.js +0 -2
  447. package/dist/prod/MarkedEvents.js.map +0 -7
  448. package/dist/prod/generated/css/OverrideFontFace.css.js +0 -2
  449. package/dist/prod/generated/css/OverrideFontFace.css.js.map +0 -7
  450. package/dist/prod/types/AriaHasPopup.js +0 -2
  451. package/dist/prod/types/AriaHasPopup.js.map +0 -7
  452. package/dist/prod/types/AriaLandmarkRole.js +0 -2
  453. package/dist/prod/types/AriaLandmarkRole.js.map +0 -7
  454. package/dist/prod/types/AriaRole.js +0 -2
  455. package/dist/prod/types/AriaRole.js.map +0 -7
  456. package/dist/prod/util/AriaLabelHelper.js +0 -2
  457. package/dist/prod/util/AriaLabelHelper.js.map +0 -7
  458. package/dist/prod/util/getEffectiveScrollbarStyle.js +0 -26
  459. package/dist/prod/util/getEffectiveScrollbarStyle.js.map +0 -7
  460. package/dist/prod/util/isElementContainingBlock.js +0 -2
  461. package/dist/prod/util/isElementContainingBlock.js.map +0 -7
  462. package/dist/types/AriaHasPopup.d.ts +0 -32
  463. package/dist/types/AriaHasPopup.js +0 -34
  464. package/dist/types/AriaHasPopup.js.map +0 -1
  465. package/dist/types/AriaLandmarkRole.d.ts +0 -79
  466. package/dist/types/AriaLandmarkRole.js +0 -81
  467. package/dist/types/AriaLandmarkRole.js.map +0 -1
  468. package/dist/types/AriaRole.d.ts +0 -27
  469. package/dist/types/AriaRole.js +0 -29
  470. package/dist/types/AriaRole.js.map +0 -1
  471. package/dist/util/AriaLabelHelper.js.map +0 -1
  472. package/dist/util/getEffectiveScrollbarStyle.d.ts +0 -2
  473. package/dist/util/getEffectiveScrollbarStyle.js +0 -34
  474. package/dist/util/getEffectiveScrollbarStyle.js.map +0 -1
  475. package/dist/util/isElementContainingBlock.d.ts +0 -2
  476. package/dist/util/isElementContainingBlock.js +0 -11
  477. package/dist/util/isElementContainingBlock.js.map +0 -1
  478. package/index.js +0 -214
  479. package/src/css/FontFace.css +0 -96
  480. package/src/css/OverrideFontFace.css +0 -32
@@ -1,79 +0,0 @@
1
- import "../../test/test-elements/Accessor.js";
2
-
3
- describe("Framework boot", () => {
4
- it("Setting property updates attribute, state and DOM", () => {
5
- cy.mount(`<ui5-test-accessor></ui5-test-accessor>`);
6
-
7
- cy.get("[ui5-test-accessor]")
8
- .as("testAccessor")
9
- .invoke("prop", "myProp", true);
10
-
11
- cy.get("@testAccessor")
12
- .should("have.attr", "my-prop");
13
-
14
- cy.get("@testAccessor")
15
- .shadow()
16
- .find("div")
17
- .should("have.text", "true");
18
-
19
- cy.get("@testAccessor")
20
- .should("have.prop", "storage", true);
21
-
22
- cy.get("[ui5-test-accessor]")
23
- .as("testAccessor")
24
- .invoke("prop", "myProp", false);
25
-
26
- cy.get("@testAccessor")
27
- .should("not.have.attr", "my-prop");
28
-
29
- cy.get("@testAccessor")
30
- .shadow()
31
- .find("div")
32
- .should("have.text", "false");
33
-
34
- cy.get("@testAccessor")
35
- .should("have.prop", "storage", false);
36
- });
37
-
38
- it("Setting attribute updates property, state and DOM", () => {
39
- cy.mount(`<ui5-test-accessor></ui5-test-accessor>`);
40
-
41
- cy.get("[ui5-test-accessor]")
42
- .as("testAccessor")
43
- .invoke("attr", "my-prop", "");
44
-
45
- cy.get("@testAccessor")
46
- .should("have.attr", "my-prop");
47
-
48
- cy.get("@testAccessor")
49
- .shadow()
50
- .find("div")
51
- .should("have.text", "true");
52
-
53
- cy.get("@testAccessor")
54
- .should("have.prop", "storage", true);
55
-
56
- cy.get("[ui5-test-accessor]")
57
- .as("testAccessor")
58
- .invoke("removeAttr", "my-prop");
59
-
60
- cy.get("@testAccessor")
61
- .should("not.have.attr", "my-prop");
62
-
63
- cy.get("@testAccessor")
64
- .shadow()
65
- .find("div")
66
- .should("have.text", "false");
67
-
68
- cy.get("@testAccessor")
69
- .should("have.prop", "storage", false);
70
- });
71
-
72
- it("should stop searching for accessors when HTMLElement is reached", () => {
73
- cy.mount(`<ui5-test-accessor></ui5-test-accessor>`);
74
-
75
- cy.get("[ui5-test-accessor]")
76
- .invoke("prop", "title")
77
- .should("be.undefined");
78
- });
79
- });
@@ -1,23 +0,0 @@
1
- import { registerThemePropertiesLoader } from "../../src/AssetRegistry.js";
2
- import { boot } from "../../src/Boot.js";
3
- import { hasStyle } from "../../src/ManagedStyles.js";
4
-
5
- describe("Framework boot", () => {
6
- it("Tests theme loading, when registered after 'attachBoot' and 'boot'", () => {
7
- cy.wrap({ boot })
8
- .invoke("boot");
9
-
10
- cy.wrap({ registerThemePropertiesLoader })
11
- .invoke("registerThemePropertiesLoader", "@ui5/webcomponents-theming", "sap_horizon", () => {
12
- return Promise.resolve({
13
- content: `:root{ --customCol: #fff; --customBg: #000; }`,
14
- packageName: "",
15
- fileName: "",
16
- });
17
- });
18
-
19
- cy.wrap({ hasStyle })
20
- .invoke("hasStyle", "data-ui5-theme-properties", "@ui5/webcomponents-theming")
21
- .should("be.true");
22
- });
23
- });
@@ -1,41 +0,0 @@
1
- import "../../test/test-elements/Accessor.js";
2
- import { setTheme, getTheme } from "../../src/config/Theme.js";
3
- import { setThemeRoot, getThemeRoot } from "../../src/config/ThemeRoot.js";
4
- import { setNoConflict, getNoConflict } from "../../src/config/NoConflict.js";
5
-
6
- describe("Some configuration options can be changed at runtime", () => {
7
- it("Tests that theme can be changed", () => {
8
- const newTheme = "sap_horizon_hcb";
9
-
10
- cy.wrap({ setTheme })
11
- .invoke("setTheme", newTheme);
12
-
13
- cy.wrap({ getTheme })
14
- .invoke("getTheme")
15
- .should("equal", newTheme);
16
- });
17
-
18
- it("Tests that noConflict can be changed", () => {
19
- const noConflictObject = { events: ["selection-change"] };
20
-
21
- cy.wrap({ setNoConflict })
22
- .invoke("setNoConflict", noConflictObject);
23
-
24
- cy.wrap({ getNoConflict })
25
- .invoke("getNoConflict")
26
- .should("deep.equal", noConflictObject)
27
- .its("events")
28
- .should("deep.equal", noConflictObject.events);
29
- });
30
-
31
- it("Tests that theme root is applied", () => {
32
- const newThemeRoot = "https://example.com/";
33
-
34
- cy.wrap({ setThemeRoot })
35
- .invoke("setThemeRoot", newThemeRoot);
36
-
37
- cy.wrap({ getThemeRoot })
38
- .invoke("getThemeRoot")
39
- .should("deep.equal", newThemeRoot);
40
- });
41
- });
@@ -1,116 +0,0 @@
1
- import { getAnimationMode } from "../../src/config/AnimationMode.js";
2
- import { getCalendarType } from "../../src/config/CalendarType.js";
3
- import { getDefaultFontLoading } from "../../src/config/Fonts.js";
4
- import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "../../src/config/FormatSettings.js";
5
- import { getLanguage } from "../../src/config/Language.js";
6
- import { getNoConflict } from "../../src/config/NoConflict.js";
7
- import { getTheme } from "../../src/config/Theme.js";
8
- import { getEnableDefaultTooltips } from "../../src/config/Tooltips.js";
9
- import { resetConfiguration } from "../../src/InitialConfiguration.js";
10
-
11
- describe("Configuration script", () => {
12
- const configurationObject = {
13
- "theme": "sap_horizon_hcb",
14
- "animationMode": "basic",
15
- "rtl": true,
16
- "language": "ja",
17
- "calendarType": "Japanese",
18
- "formatSettings": {
19
- "firstDayOfWeek": 0,
20
- "legacyDateCalendarCustomizing": [
21
- {
22
- "dateFormat": "A",
23
- "islamicMonthStart": "14351201",
24
- "gregDate": "20140925",
25
- },
26
- {
27
- "dateFormat": "A",
28
- "islamicMonthStart": "14360101",
29
- "gregDate": "20141024",
30
- },
31
- {
32
- "dateFormat": "A",
33
- "islamicMonthStart": "14360201",
34
- "gregDate": "20141123",
35
- },
36
- ],
37
- },
38
- "noConflict": {
39
- "events": ["selection-change", "header-click"],
40
- },
41
- "defaultFontLoading": false,
42
- "enableDefaultTooltips": false,
43
- };
44
-
45
- before(() => {
46
- cy.mount(`<ui5-test-generic></ui5-test-generic>`, {
47
- ui5Configuration: configurationObject,
48
- });
49
-
50
- cy.wrap({ resetConfiguration })
51
- .invoke("resetConfiguration", true);
52
-
53
- cy.get("script[data-ui5-config]")
54
- .should("exist")
55
- .then($el => {
56
- return $el.get(0).innerHTML;
57
- })
58
- .should("equal", JSON.stringify(configurationObject));
59
- });
60
-
61
- it("getLanguage", () => {
62
- cy.wrap({ getLanguage })
63
- .invoke("getLanguage")
64
- .should("equal", configurationObject.language);
65
- });
66
-
67
- it("getCalendarType", () => {
68
- cy.wrap({ getCalendarType })
69
- .invoke("getCalendarType")
70
- .should("equal", configurationObject.calendarType);
71
- });
72
-
73
- it("getFirstDayOfWeek", () => {
74
- cy.wrap({ getFirstDayOfWeek })
75
- .invoke("getFirstDayOfWeek")
76
- .should("equal", configurationObject.formatSettings.firstDayOfWeek);
77
- });
78
-
79
- it("getLegacyDateCalendarCustomizing", () => {
80
- cy.wrap({ getLegacyDateCalendarCustomizing })
81
- .invoke("getLegacyDateCalendarCustomizing")
82
- .should("deep.equal", configurationObject.formatSettings.legacyDateCalendarCustomizing);
83
- });
84
-
85
- it("getAnimationMode", () => {
86
- cy.wrap({ getAnimationMode })
87
- .invoke("getAnimationMode")
88
- .should("equal", configurationObject.animationMode);
89
- });
90
-
91
- it("getEnableDefaultTooltips", () => {
92
- cy.wrap({ getTheme })
93
- .invoke("getTheme")
94
- .should("equal", configurationObject.theme);
95
- });
96
-
97
- it("getNoConflict", () => {
98
- cy.wrap({ getNoConflict })
99
- .invoke("getNoConflict")
100
- .should("deep.equal", configurationObject.noConflict)
101
- .its("events")
102
- .should("deep.equal", configurationObject.noConflict.events);
103
- });
104
-
105
- it("getDefaultFontLoading", () => {
106
- cy.wrap({ getDefaultFontLoading })
107
- .invoke("getDefaultFontLoading")
108
- .should("equal", false);
109
- });
110
-
111
- it("getEnableDefaultTooltips", () => {
112
- cy.wrap({ getEnableDefaultTooltips })
113
- .invoke("getEnableDefaultTooltips")
114
- .should("equal", false);
115
- });
116
- });
@@ -1,182 +0,0 @@
1
- import { internals } from "../../src/Location.js";
2
- import "../../test/test-elements/Generic.js";
3
- import { resetConfiguration } from "../../src/InitialConfiguration.js";
4
- import { getLanguage } from "../../src/config/Language.js";
5
- import { getCalendarType } from "../../src/config/CalendarType.js";
6
- import { getTheme } from "../../src/config/Theme.js";
7
- import { getAnimationMode } from "../../src/config/AnimationMode.js";
8
- import { getThemeRoot } from "../../src/config/ThemeRoot.js";
9
-
10
- describe("Some settings can be set via SAP UI URL params", () => {
11
- before(() => {
12
- const searchParams = "sap-ui-rtl=true&sap-ui-language=ja&sap-ui-calendarType=Japanese&sap-ui-theme=sap_horizon_hcb&sap-ui-animationMode=basic";
13
-
14
- cy.stub(internals, "search", () => {
15
- return searchParams;
16
- });
17
-
18
- cy.then(() => {
19
- return resetConfiguration(true);
20
- });
21
-
22
- cy.wrap(internals)
23
- .invoke("search")
24
- .should("be.equal", searchParams);
25
-
26
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
27
- });
28
-
29
- it("Tests that language is applied", () => {
30
- cy.wrap({ getLanguage })
31
- .invoke("getLanguage")
32
- .should("equal", "ja");
33
- });
34
-
35
- it("Tests that calendarType is applied", () => {
36
- cy.wrap({ getCalendarType })
37
- .invoke("getCalendarType")
38
- .should("equal", "Japanese");
39
- });
40
-
41
- it("Tests that theme is applied", () => {
42
- cy.wrap({ getTheme })
43
- .invoke("getTheme")
44
- .should("equal", "sap_horizon_hcb");
45
- });
46
-
47
- it("Tests that animationMode is applied", () => {
48
- cy.wrap({ getAnimationMode })
49
- .invoke("getAnimationMode")
50
- .should("equal", "basic");
51
- });
52
- });
53
-
54
- describe("Different themeRoot configurations", () => {
55
- it("Allowed theme root", () => {
56
- const searchParams = "sap-ui-theme=sap_horizon_hcb@https://example.com";
57
-
58
- cy.stub(internals, "search", () => {
59
- return searchParams;
60
- });
61
-
62
- cy.wrap({ resetConfiguration })
63
- .invoke("resetConfiguration", true);
64
-
65
- cy.wrap(internals)
66
- .invoke("search")
67
- .should("be.equal", searchParams);
68
-
69
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
70
-
71
- cy.wrap({ getThemeRoot })
72
- .invoke("getThemeRoot")
73
- .should("equal", "https://example.com/UI5/");
74
- });
75
-
76
- it("Unallowed theme root", () => {
77
- const searchParams = "sap-ui-theme=sap_horizon_hcb@https://another-example.com";
78
-
79
- cy.stub(internals, "search", () => {
80
- return searchParams;
81
- });
82
-
83
- cy.wrap({ resetConfiguration })
84
- .invoke("resetConfiguration", true);
85
-
86
- cy.wrap(internals)
87
- .invoke("search")
88
- .should("be.equal", searchParams);
89
-
90
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
91
-
92
- cy.wrap({ getThemeRoot })
93
- .invoke("getThemeRoot")
94
- .should("equal", `${window.location.origin}/UI5/`);
95
- });
96
-
97
- it("Relative theme root", () => {
98
- const searchParams = "sap-ui-theme=sap_horizon_hcb@./test";
99
-
100
- cy.stub(internals, "search", () => {
101
- return searchParams;
102
- });
103
-
104
- cy.wrap({ resetConfiguration })
105
- .invoke("resetConfiguration", true);
106
-
107
- cy.wrap(internals)
108
- .invoke("search")
109
- .should("be.equal", searchParams);
110
-
111
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
112
-
113
- cy.wrap({ getThemeRoot })
114
- .invoke("getThemeRoot")
115
- .then(themeRoot => {
116
- return themeRoot?.endsWith("/test/UI5/");
117
- })
118
- .should("be.true");
119
- });
120
- });
121
-
122
- describe("Some settings can be set via SAP URL params", () => {
123
- before(() => {
124
- const searchParams = "sap-language=bg&sap-theme=sap_fiori_3_dark";
125
-
126
- cy.stub(internals, "search", () => {
127
- return searchParams;
128
- });
129
-
130
- cy.wrap({ resetConfiguration })
131
- .invoke("resetConfiguration", true);
132
-
133
- cy.wrap(internals)
134
- .invoke("search")
135
- .should("be.equal", searchParams);
136
-
137
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
138
- });
139
-
140
- it("Tests that language is applied via sap-ui-language", () => {
141
- cy.wrap({ getLanguage })
142
- .invoke("getLanguage")
143
- .should("equal", "bg");
144
- });
145
-
146
- it("Tests that theme is applied via sap-ui-theme", () => {
147
- cy.wrap({ getTheme })
148
- .invoke("getTheme")
149
- .should("equal", "sap_fiori_3_dark");
150
- });
151
- });
152
-
153
- describe("Some settings can be set via SAP UI URL params", () => {
154
- before(() => {
155
- const searchParams = "sap-language=bg&sap-ui-language=de&sap-theme=sap_fiori_3_dark&sap-theme=sap_fiori_3_hcb";
156
-
157
- cy.stub(internals, "search", () => {
158
- return searchParams;
159
- });
160
-
161
- cy.wrap({ resetConfiguration })
162
- .invoke("resetConfiguration", true);
163
-
164
- cy.wrap(internals)
165
- .invoke("search")
166
- .should("be.equal", searchParams);
167
-
168
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
169
- });
170
-
171
- it("Tests that language is applied via sap-ui-language", () => {
172
- cy.wrap({ getLanguage })
173
- .invoke("getLanguage")
174
- .should("equal", "de");
175
- });
176
-
177
- it("Tests that theme is applied via sap-ui-theme", () => {
178
- cy.wrap({ getTheme })
179
- .invoke("getTheme")
180
- .should("equal", "sap_fiori_3_hcb");
181
- });
182
- });
@@ -1,34 +0,0 @@
1
- import { getAnimationMode } from "../../src/config/AnimationMode.js";
2
-
3
- describe("Custom mount", () => {
4
- it("mount", () => {
5
- cy.mount(`<button>Test</button>`);
6
-
7
- cy.get("button")
8
- .should("exist")
9
- .and("have.text", "Test");
10
- });
11
-
12
- it("mount with configuration", () => {
13
- const configurationObject = { "animationMode": "basic" };
14
-
15
- cy.mount(`<button>Test with configuration</button>`, {
16
- ui5Configuration: configurationObject,
17
- });
18
-
19
- cy.get("button")
20
- .should("exist")
21
- .and("have.text", "Test with configuration");
22
-
23
- cy.get("script[data-ui5-config]")
24
- .should("exist")
25
- .then($el => {
26
- return $el.get(0).innerHTML;
27
- })
28
- .should("equal", JSON.stringify(configurationObject));
29
-
30
- cy.wrap({ getAnimationMode })
31
- .invoke("getAnimationMode")
32
- .should("equal", configurationObject.animationMode);
33
- });
34
- });
@@ -1,36 +0,0 @@
1
- import { registerThemePropertiesLoader } from "../../src/AssetRegistry.js";
2
- import { setTheme } from "../../src/config/Theme.js";
3
- import { getCurrentRuntimeIndex } from "../../src/Runtimes.js";
4
- import "../../test/test-elements/Generic.js";
5
-
6
- describe("Custom themes can be registered", () => {
7
- it("Tests that theme parameters are changed on theme change", () => {
8
- const newTheme = "my_custom_theme";
9
- const var1 = "--var1: #555555";
10
- const currentRuntime = 0;
11
- const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
12
-
13
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
14
-
15
- cy.wrap({ getCurrentRuntimeIndex })
16
- .invoke("getCurrentRuntimeIndex")
17
- .should("equal", currentRuntime);
18
-
19
- cy.wrap({ registerThemePropertiesLoader })
20
- .invoke("registerThemePropertiesLoader", "@ui5/webcomponents-base-test", newTheme, () => Promise.resolve(`:root{ ${var1}; }`));
21
-
22
- cy.wrap({ setTheme })
23
- .invoke("setTheme", newTheme);
24
-
25
- cy.document()
26
- .its("adoptedStyleSheets")
27
- .then(adoptedStyleSheets => {
28
- // eslint-disable-next-line
29
- return adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === `${dataPropAttr}|@ui5/webcomponents-base-test`);
30
- })
31
- .its("cssRules")
32
- .its(0)
33
- .its("cssText")
34
- .should("include", var1);
35
- });
36
- });
@@ -1,59 +0,0 @@
1
- import EventProvider from "../../src/EventProvider.js";
2
-
3
- describe("Event provider attaches and detaches listeners properly", () => {
4
- it("Tests that listeners can be removed (1 listener)", () => {
5
- let timesCalled = 0;
6
-
7
- cy.then(() => {
8
- const ep = new EventProvider();
9
- const callback = () => {
10
- timesCalled++;
11
- };
12
-
13
- // Setup
14
- ep.attachEvent("test", callback);
15
-
16
- // Act
17
- ep.fireEvent("test", undefined); // should execute the callback and increase the counter
18
-
19
- // Setup
20
- ep.detachEvent("test", callback);
21
-
22
- // Act
23
- ep.fireEvent("test", undefined); // should not execute the callback and increase the counter
24
- })
25
- .then(() => {
26
- return timesCalled;
27
- })
28
- .should("equal", 1);
29
- });
30
-
31
- it("Tests that listeners can be removed (more than 1 listener)", () => {
32
- let timesCalled = 0;
33
-
34
- cy.then(() => {
35
- const ep = new EventProvider();
36
- const callback = () => {
37
- timesCalled++;
38
- };
39
- const somePreviousCallback = () => { };
40
-
41
- // Setup
42
- ep.attachEvent("test", somePreviousCallback); // Attach something so that after detachEvent the listeners array is not empty!
43
- ep.attachEvent("test", callback);
44
-
45
- // Act
46
- ep.fireEvent("test", undefined); // should execute the callback and increase the counter
47
-
48
- // Setup
49
- ep.detachEvent("test", callback);
50
-
51
- // Act
52
- ep.fireEvent("test", undefined); // should not execute the callback and increase the counter
53
- })
54
- .then(() => {
55
- return timesCalled;
56
- })
57
- .should("equal", 1);
58
- });
59
- });
@@ -1,8 +0,0 @@
1
- import "../../test/test-elements/Accessor.js";
2
-
3
- describe("Shared Resources", () => {
4
- it("Tests the presense of the shared resources 'meta' element", () => {
5
- cy.get(`meta[name="ui5-shared-resources"]`)
6
- .should("exist");
7
- });
8
- });
@@ -1,74 +0,0 @@
1
- import { setTheme } from "../../src/config/Theme.js";
2
- import { getCurrentRuntimeIndex } from "../../src/Runtimes.js";
3
- import "../../test/test-elements/Accessor.js";
4
- import "../../test/assets/Themes.js";
5
-
6
- describe("Theming works", () => {
7
- it("Tests that the parameters for the default theme are embedded on boot", () => {
8
- const currentRuntime = 0;
9
- const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
10
-
11
- cy.wrap({ getCurrentRuntimeIndex })
12
- .invoke("getCurrentRuntimeIndex")
13
- .should("equal", currentRuntime);
14
-
15
- cy.document()
16
- .its("adoptedStyleSheets")
17
- .then(adoptedStyleSheets => {
18
- // eslint-disable-next-line
19
- return adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === `${dataPropAttr}|@ui5/webcomponents-base-test`);
20
- })
21
- .its("cssRules")
22
- .its(0)
23
- .its("cssText")
24
- .should("include", "--var1: grey");
25
- });
26
-
27
- it("Tests that the parameters for the default theme are embedded on boot", () => {
28
- const newTheme = "sap_fiori_3_hcb";
29
- const currentRuntime = 0;
30
- const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
31
-
32
- cy.wrap({ getCurrentRuntimeIndex })
33
- .invoke("getCurrentRuntimeIndex")
34
- .should("equal", currentRuntime);
35
-
36
- cy.wrap({ setTheme })
37
- .invoke("setTheme", newTheme);
38
-
39
- cy.document()
40
- .its("adoptedStyleSheets")
41
- .then(adoptedStyleSheets => {
42
- // eslint-disable-next-line
43
- return adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === `${dataPropAttr}|@ui5/webcomponents-base-test`);
44
- })
45
- .its("cssRules")
46
- .its(0)
47
- .its("cssText")
48
- .should("include", "--var1: yellow");
49
- });
50
-
51
- it("Tests that the parameters for the default theme are embedded on boot", () => {
52
- const unknownTheme = "sap_unknown_theme";
53
- const currentRuntime = 0;
54
- const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
55
-
56
- cy.wrap({ getCurrentRuntimeIndex })
57
- .invoke("getCurrentRuntimeIndex")
58
- .should("equal", currentRuntime);
59
-
60
- cy.wrap({ setTheme })
61
- .invoke("setTheme", unknownTheme);
62
-
63
- cy.document()
64
- .its("adoptedStyleSheets")
65
- .then(adoptedStyleSheets => {
66
- // eslint-disable-next-line
67
- return adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === `${dataPropAttr}|@ui5/webcomponents-base-test`);
68
- })
69
- .its("cssRules")
70
- .its(0)
71
- .its("cssText")
72
- .should("include", "--var1: grey");
73
- });
74
- });