@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,207 +0,0 @@
1
- import type UI5Element from "../../src/UI5Element.js";
2
- import "../../test/test-elements/Generic.js";
3
-
4
- describe("Invalidation works", () => {
5
- it("Tests that changing a property invalidates", () => {
6
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
7
-
8
- cy.get("[ui5-test-generic]")
9
- .as("testGeneric")
10
- .then(el => {
11
- cy.spy<UI5Element>((el.get(0) as UI5Element), "onInvalidation").as("invalidations");
12
- });
13
-
14
- cy.get("@testGeneric")
15
- .invoke("prop", "strProp", "new value");
16
-
17
- cy.get("@testGeneric")
18
- .invoke("prop", "boolProp", true);
19
-
20
- cy.get("@invalidations")
21
- .should("have.been.calledTwice");
22
- });
23
-
24
- it("Tests that setting a property to the same value does not invalidate", () => {
25
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
26
-
27
- const text = "new value";
28
-
29
- cy.get("[ui5-test-generic]")
30
- .as("testGeneric")
31
- .invoke("prop", "strProp", text)
32
- .then(el => {
33
- cy.spy<UI5Element>((el.get(0) as UI5Element), "onInvalidation").as("invalidations");
34
- });
35
-
36
- cy.get("@testGeneric")
37
- .invoke("prop", "strProp", text);
38
-
39
- cy.get("@invalidations")
40
- .should("have.not.been.called");
41
- });
42
-
43
- it("Tests that setting a property of type Object always invalidates", () => {
44
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
45
-
46
- const obj = {};
47
- const otherObj = {};
48
-
49
- cy.get("[ui5-test-generic]")
50
- .as("testGeneric")
51
- .invoke("prop", "objectProp", obj)
52
- .then(el => {
53
- cy.spy<UI5Element>((el.get(0) as UI5Element), "onInvalidation").as("invalidations");
54
- });
55
-
56
- cy.get("@testGeneric")
57
- .invoke("prop", "objectProp", otherObj);
58
-
59
- cy.get("@invalidations")
60
- .should("have.been.calledOnce");
61
- });
62
-
63
- it("Tests that setting an array property always invalidates", () => {
64
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
65
-
66
- const arr: Array<string> = [];
67
- const otherArr: Array<string> = [];
68
-
69
- cy.get("[ui5-test-generic]")
70
- .as("testGeneric")
71
- .invoke("prop", "multiProp", arr)
72
- .then(el => {
73
- cy.spy<UI5Element>((el.get(0) as UI5Element), "onInvalidation").as("invalidations");
74
- });
75
-
76
- cy.get("@testGeneric")
77
- .invoke("prop", "multiProp", otherArr);
78
-
79
- cy.get("@invalidations")
80
- .should("have.been.calledOnce");
81
- });
82
-
83
- it("Tests that adding a child invalidates", () => {
84
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
85
-
86
- cy.get("[ui5-test-generic]")
87
- .as("testGeneric")
88
- .then(el => {
89
- cy.spy<UI5Element>((el.get(0) as UI5Element), "onInvalidation").as("invalidations");
90
- });
91
-
92
- cy.get("@testGeneric")
93
- .then($testGeneric => {
94
- const div = document.createElement("div");
95
- $testGeneric.append(div);
96
- });
97
-
98
- cy.get("@invalidations")
99
- .should("have.been.called");
100
- });
101
-
102
- it("Tests that removing a child invalidates", () => {
103
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
104
-
105
- const div = document.createElement("div");
106
-
107
- cy.get("[ui5-test-generic]")
108
- .as("testGeneric")
109
- .then($testGeneric => {
110
- $testGeneric.append(div);
111
-
112
- return $testGeneric;
113
- })
114
- .then($testGeneric => {
115
- cy.spy<UI5Element>(($testGeneric.get(0) as UI5Element), "onInvalidation").as("invalidations");
116
- });
117
-
118
- cy.get("@invalidations")
119
- .should("have.not.been.called");
120
-
121
- cy.wrap(div)
122
- .then($div => {
123
- $div.remove();
124
- });
125
-
126
- cy.get("@invalidations")
127
- .should("have.been.called");
128
- });
129
-
130
- it("Tests that modifying textContent invalidates", () => {
131
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
132
-
133
- cy.get("[ui5-test-generic]")
134
- .as("testGeneric")
135
- .then($testGeneric => {
136
- $testGeneric.text("test");
137
-
138
- return $testGeneric;
139
- })
140
- .then($testGeneric => {
141
- cy.spy<UI5Element>(($testGeneric.get(0) as UI5Element), "onInvalidation").as("invalidations");
142
- });
143
-
144
- cy.get("@invalidations")
145
- .should("have.not.been.called");
146
-
147
- cy.get("@testGeneric")
148
- .then($testGeneric => {
149
- $testGeneric.text("test2");
150
- });
151
-
152
- cy.get("@invalidations")
153
- .should("have.been.called");
154
- });
155
-
156
- it("Tests that modifying nodeValue invalidates", () => {
157
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
158
-
159
- cy.get("[ui5-test-generic]")
160
- .as("testGeneric")
161
- .then($testGeneric => {
162
- $testGeneric.text("test");
163
-
164
- return $testGeneric;
165
- })
166
- .then($testGeneric => {
167
- cy.spy<UI5Element>(($testGeneric.get(0) as UI5Element), "onInvalidation").as("invalidations");
168
- });
169
-
170
- cy.get("@invalidations")
171
- .should("have.not.been.called");
172
-
173
- cy.get("@testGeneric")
174
- .then($testGeneric => {
175
- $testGeneric.get(0).childNodes[0].nodeValue = "test2";
176
- });
177
-
178
- cy.get("@invalidations")
179
- .should("have.been.called");
180
- });
181
-
182
- it("Tests that multiple invalidations result in a single rendering", () => {
183
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
184
-
185
- cy.get("[ui5-test-generic]")
186
- .as("testGeneric");
187
-
188
- cy.get("@testGeneric")
189
- .then($testGeneric => {
190
- cy.spy<UI5Element>(($testGeneric.get(0) as UI5Element), "onInvalidation").as("invalidations");
191
-
192
- cy.spy<UI5Element>(($testGeneric.get(0) as UI5Element), "_render").as("rendering");
193
- });
194
-
195
- cy.get("@testGeneric")
196
- .invoke("prop", "strProp", "new");
197
-
198
- cy.get("@testGeneric")
199
- .invoke("prop", "strProp", "new2");
200
-
201
- cy.get("@invalidations")
202
- .should("have.been.calledTwice");
203
-
204
- cy.get("@rendering")
205
- .should("have.been.calledOnce");
206
- });
207
- });
@@ -1,82 +0,0 @@
1
- import type UI5Element from "../../src/UI5Element.js";
2
- import "../../test/test-elements/Generic.js";
3
-
4
- describe("Lifecycle works", () => {
5
- it("Tests that changing a property invalidates", () => {
6
- const el = document.createElement("ui5-test-generic");
7
-
8
- cy.mount(`<div id="container"></div>`);
9
-
10
- cy.spy<UI5Element>((el as UI5Element), "onBeforeRendering").as("onBeforeRendering");
11
-
12
- cy.spy<UI5Element>((el as UI5Element), "onAfterRendering").as("onAfterRendering");
13
-
14
- cy.spy<UI5Element>((el as UI5Element), "onEnterDOM").as("onEnterDOM");
15
-
16
- cy.get("#container")
17
- .then($container => {
18
- $container.append(el);
19
- });
20
-
21
- cy.get("@onBeforeRendering")
22
- .should("have.been.called")
23
- .and("have.been.calledBefore", "@onAfterRendering")
24
- .and("have.been.calledBefore", "@onEnterDOM");
25
-
26
- cy.get("@onAfterRendering")
27
- .should("have.been.called")
28
- .and("have.been.calledBefore", "@onEnterDOM");
29
-
30
- cy.get("@onEnterDOM")
31
- .should("have.been.called");
32
- });
33
-
34
- it("Tests element invalidation callbacks", () => {
35
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
36
-
37
- cy.get("[ui5-test-generic]")
38
- .as("testGeneric")
39
- .then($testGeneric => {
40
- cy.spy<UI5Element>(($testGeneric.get(0) as UI5Element), "onBeforeRendering").as("onBeforeRendering");
41
-
42
- cy.spy<UI5Element>(($testGeneric.get(0) as UI5Element), "onAfterRendering").as("onAfterRendering");
43
- });
44
-
45
- cy.get("@testGeneric")
46
- .invoke("prop", "strProp", "some string");
47
-
48
- cy.get("@onBeforeRendering")
49
- .should("have.been.called")
50
- .and("have.been.calledBefore", "@onAfterRendering");
51
-
52
- cy.get("@onAfterRendering")
53
- .should("have.been.called");
54
- });
55
-
56
- it("Tests element destruction callback", () => {
57
- const el = document.createElement("ui5-test-generic");
58
-
59
- cy.mount(`<div id="container"></div>`);
60
-
61
- cy.spy<UI5Element>((el as UI5Element), "onExitDOM").as("onExitDOM");
62
- cy.spy<UI5Element>((el as UI5Element), "onEnterDOM").as("onEnterDOM");
63
-
64
- cy.get("#container")
65
- .then($container => {
66
- $container.append(el);
67
-
68
- return $container;
69
- });
70
-
71
- cy.get("@onEnterDOM")
72
- .should("have.been.called");
73
-
74
- cy.wrap(el)
75
- .then($el => {
76
- $el.remove();
77
- });
78
-
79
- cy.get("@onExitDOM")
80
- .should("have.been.called");
81
- });
82
- });
@@ -1,62 +0,0 @@
1
- import type UI5Element from "../../src/UI5Element.js";
2
-
3
- import "../../test/test-elements/Parent.js";
4
- import "../../test/test-elements/Child.js";
5
-
6
- describe("Invalidation works", () => {
7
- it("Tests that changing a monitored property of a child invalidates the parent", () => {
8
- cy.mount(`<ui5-test-parent>
9
- <ui5-test-child></ui5-test-child>
10
- </ui5-test-parent>`);
11
-
12
- cy.get("[ui5-test-parent]")
13
- .as("testParent")
14
- .then(el => {
15
- cy.spy<UI5Element>((el.get(0) as UI5Element), "onInvalidation").as("invalidations");
16
- });
17
-
18
- cy.get("[ui5-test-child]")
19
- .invoke("prop", "prop1", "a");
20
-
21
- cy.get("@invalidations")
22
- .should("have.been.called");
23
- });
24
-
25
- it("Tests that changing a non-monitored property of a child does not invalidate the parent", () => {
26
- cy.mount(`<ui5-test-parent>
27
- <ui5-test-child></ui5-test-child>
28
- </ui5-test-parent>`);
29
-
30
- cy.get("[ui5-test-parent]")
31
- .as("testParent")
32
- .then(el => {
33
- cy.spy<UI5Element>((el.get(0) as UI5Element), "onInvalidation").as("invalidations");
34
- });
35
-
36
- cy.get("[ui5-test-child]")
37
- .invoke("prop", "prop2", "b");
38
-
39
- cy.get("@invalidations")
40
- .should("have.not.been.called");
41
- });
42
-
43
- it("Tests that changing a non-monitored property of a child does not invalidate the parent", () => {
44
- cy.mount(`<ui5-test-parent>
45
- <ui5-test-child slot="items"></ui5-test-child>
46
- </ui5-test-parent>`);
47
-
48
- cy.get("[ui5-test-parent]")
49
- .as("testParent")
50
- .then(el => {
51
- cy.spy<UI5Element>((el.get(0) as UI5Element), "onInvalidation").as("invalidations");
52
- });
53
-
54
- cy.get("[ui5-test-child]")
55
- .invoke("prop", "prop1", "a")
56
- .invoke("prop", "prop2", "b")
57
- .invoke("prop", "prop3", "c");
58
-
59
- cy.get("@invalidations")
60
- .should("have.been.calledThrice");
61
- });
62
- });
@@ -1,42 +0,0 @@
1
- import type UI5Element from "../../src/UI5Element.js";
2
- import "../../test/test-elements/GenericExt.js";
3
-
4
- describe("Invalidation works", () => {
5
- it("Tests that changing a monitored property of a child invalidates the parent", () => {
6
- cy.mount(`<ui5-test-generic-ext></ui5-test-generic-ext>`);
7
-
8
- cy.get("[ui5-test-generic-ext]")
9
- .then($el => {
10
- return ($el.get(0).constructor as typeof UI5Element).getMetadata();
11
- })
12
- .as("metadata");
13
-
14
- cy.get("@metadata")
15
- .invoke("getProperties")
16
- .its("strProp")
17
- .should("exist");
18
-
19
- cy.get("@metadata")
20
- .invoke("getProperties")
21
- .its("extProp")
22
- .should("exist");
23
-
24
- cy.get("@metadata")
25
- .invoke("getSlots")
26
- .its("default")
27
- .should("exist");
28
-
29
- cy.get("@metadata")
30
- .invoke("getSlots")
31
- .its("extSlot")
32
- .should("exist");
33
- });
34
-
35
- it("When extending metadata, property defaultValue can be modified", () => {
36
- cy.mount(`<ui5-test-generic-ext></ui5-test-generic-ext>`);
37
-
38
- cy.get("[ui5-test-generic-ext]")
39
- .invoke("attr", "str-prop")
40
- .should("equal", "Ext");
41
- });
42
- });
@@ -1,16 +0,0 @@
1
- import "../../test/test-elements/Generic.js";
2
-
3
- describe("Properties can only have values, restricted to their types", () => {
4
- it("String property enforced to string", () => {
5
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
6
-
7
- cy.get("[ui5-test-generic]")
8
- .as("testGeneric");
9
-
10
- cy.get("@testGeneric")
11
- .invoke("prop", "strProp", 5);
12
-
13
- cy.get("@testGeneric")
14
- .should("have.prop", "strProp", 5);
15
- });
16
- });
@@ -1,113 +0,0 @@
1
- import "../../test/test-elements/Generic.js";
2
-
3
- describe("Properties and attributes convert to each other", () => {
4
- it("Tests that properties with default values are initialized with the default value", () => {
5
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
6
-
7
- cy.get("[ui5-test-generic]")
8
- .as("testGeneric");
9
-
10
- cy.get("@testGeneric")
11
- .invoke("prop", "defaultValueProp")
12
- .should("equal", "Hello");
13
- });
14
-
15
- it("Tests that prop-attr conversion works for string properties", () => {
16
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
17
-
18
- cy.get("[ui5-test-generic]")
19
- .as("testGeneric");
20
-
21
- cy.get("@testGeneric")
22
- .invoke("prop", "strProp", "test1");
23
-
24
- cy.get("@testGeneric")
25
- .should("have.attr", "str-prop", "test1");
26
-
27
- cy.get("@testGeneric")
28
- .invoke("attr", "str-prop", "test2");
29
-
30
- cy.get("@testGeneric")
31
- .invoke("prop", "strProp")
32
- .should("equal", "test2");
33
- });
34
-
35
- it("Tests that prop-attr conversion works for boolean properties", () => {
36
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
37
-
38
- cy.get("[ui5-test-generic]")
39
- .as("testGeneric");
40
-
41
- cy.get("@testGeneric")
42
- .invoke("prop", "boolProp", true);
43
-
44
- cy.get("@testGeneric")
45
- .should("have.attr", "bool-prop");
46
-
47
- cy.get("@testGeneric")
48
- .invoke("prop", "boolProp", false);
49
-
50
- cy.get("@testGeneric")
51
- .should("not.have.attr", "bool-prop");
52
-
53
- cy.get("@testGeneric")
54
- .invoke("attr", "bool-prop", true);
55
-
56
- cy.get("@testGeneric")
57
- .invoke("prop", "boolProp")
58
- .should("be.true");
59
-
60
- cy.get("@testGeneric")
61
- .invoke("removeAttr", "bool-prop");
62
-
63
- cy.get("@testGeneric")
64
- .invoke("prop", "boolProp")
65
- .should("be.false");
66
- });
67
-
68
- it("Tests that object properties have no attributes", () => {
69
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
70
-
71
- cy.get("[ui5-test-generic]")
72
- .as("testGeneric");
73
-
74
- cy.get("@testGeneric")
75
- .invoke("prop", "objectProp", {});
76
-
77
- cy.get("@testGeneric")
78
- .should("not.have.attr", "object-prop");
79
- });
80
-
81
- it("Tests that array properties have no attributes", () => {
82
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
83
-
84
- cy.get("[ui5-test-generic]")
85
- .as("testGeneric");
86
-
87
- cy.get("@testGeneric")
88
- .invoke("prop", "multiProp", ["a", "b"]);
89
-
90
- cy.get("@testGeneric")
91
- .should("not.have.attr", "multi-prop");
92
- });
93
-
94
- it("Tests that noAttribute properties have no attributes", () => {
95
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
96
-
97
- cy.get("[ui5-test-generic]")
98
- .as("testGeneric");
99
-
100
- cy.get("@testGeneric")
101
- .invoke("prop", "noAttributeProp", "some value");
102
-
103
- cy.get("@testGeneric")
104
- .should("not.have.attr", "no-attribute-prop");
105
- });
106
-
107
- it("Tests that properties with default values do automatically set attributes", () => {
108
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
109
-
110
- cy.get("[ui5-test-generic]")
111
- .should("have.attr", "default-value-prop", "Hello");
112
- });
113
- });
@@ -1,30 +0,0 @@
1
- import "../../test/test-elements/Generic.js";
2
- import "../../test/test-elements/NoShadowDOM.js";
3
-
4
- describe("The framework can define web components", () => {
5
- it("Tests that element's Shadow DOM is rendered if it has a template", () => {
6
- cy.mount(`<ui5-test-generic></ui5-test-generic>`);
7
-
8
- cy.get("[ui5-test-generic]")
9
- .as("testGeneric")
10
- .then($element => {
11
- return !!$element.get(0).shadowRoot;
12
- })
13
- .should("be.true");
14
-
15
- cy.get("@testGeneric")
16
- .shadow()
17
- .find("div > p")
18
- .should("exist");
19
- });
20
-
21
- it("Tests that element's Shadow DOM is not rendered if it has no template", () => {
22
- cy.mount(`<ui5-test-no-shadow></ui5-test-no-shadow>`);
23
-
24
- cy.get("[ui5-test-no-shadow]")
25
- .then($element => {
26
- return !!$element.get(0).shadowRoot;
27
- })
28
- .should("be.false");
29
- });
30
- });
@@ -1,116 +0,0 @@
1
- import "../../test/test-elements/Generic.js";
2
-
3
- describe("Slots work properly", () => {
4
- it("Tests that properties exist on the element for each slot", () => {
5
- cy.mount(`<ui5-test-generic>
6
- Default slot text
7
- <span>Default slot content</span>
8
- <span slot="other">Other slot content 1</span>
9
- <span slot="other">Other slot content 2</span>
10
- <span slot="individual">Individual slot content 1</span>
11
- <span slot="individual">Individual slot content 2</span>
12
- <span slot="named">Item in slot with propertyName</span>
13
- <span slot="named">Item in slot with propertyName</span>
14
- <span slot="row-header">Item in slot row-header</span>
15
- <span slot="row-header">Item in slot row-header</span>
16
- </ui5-test-generic>
17
- `);
18
-
19
- cy.get("[ui5-test-generic]")
20
- .as("testGeneric");
21
-
22
- cy.get("@testGeneric")
23
- .invoke("prop", "content")
24
- .then(value => {
25
- return (value as Array<unknown>).length;
26
- })
27
- .should("be.greaterThan", 0);
28
-
29
- cy.get("@testGeneric")
30
- .invoke("prop", "other")
31
- .should("have.length", 2);
32
-
33
- cy.get("@testGeneric")
34
- .invoke("prop", "individual")
35
- .should("have.length", 2);
36
-
37
- cy.get("@testGeneric")
38
- .invoke("prop", "row-header")
39
- .should("have.length", 2);
40
-
41
- cy.get("@testGeneric")
42
- .invoke("prop", "named")
43
- .should("be.undefined");
44
- });
45
-
46
- it("Tests that properties exist on the element for each slot", () => {
47
- cy.mount(`<ui5-test-generic>
48
- <span slot="individual">Individual slot content 1</span>
49
- <span slot="individual">Individual slot content 2</span>
50
- </ui5-test-generic>
51
- `);
52
-
53
- cy.get("[slot=individual]")
54
- .should("not.exist");
55
-
56
- cy.get("[slot=individual-1]")
57
- .should("exist");
58
-
59
- cy.get("[slot=individual-2]")
60
- .should("exist");
61
- });
62
-
63
- it("Tests that changing the slot attribute of children redistributes them across slot accessors", () => {
64
- let defaultSlotLength = 0;
65
-
66
- cy.mount(`<ui5-test-generic>
67
- <span>Default slot content</span>
68
- <span slot="other" id="o1">Other slot content 1</span>
69
- <span slot="other" id="o2">Other slot content 2</span>
70
- <span slot="named">Item in slot with propertyName</span>
71
- <span slot="named">Item in slot with propertyName</span>
72
- </ui5-test-generic>
73
- `);
74
-
75
- cy.get("[ui5-test-generic]")
76
- .as("testGeneric");
77
-
78
- cy.get("@testGeneric")
79
- .invoke("prop", "content")
80
- .then(value => {
81
- defaultSlotLength = value.length;
82
-
83
- return defaultSlotLength;
84
- })
85
- .should("be.greaterThan", 0);
86
-
87
- cy.get("@testGeneric")
88
- .invoke("prop", "other")
89
- .should("have.length", 2);
90
-
91
- cy.get("@testGeneric")
92
- .invoke("prop", "items")
93
- .should("have.length", 2);
94
-
95
- cy.get("#o1")
96
- .invoke("removeAttr", "slot");
97
-
98
- cy.get("#o2")
99
- .invoke("attr", "slot", "named");
100
-
101
- cy.get("@testGeneric")
102
- .then($testGeneric => {
103
- cy.wrap($testGeneric)
104
- .invoke("prop", "content")
105
- .should("have.length", defaultSlotLength + 1);
106
- });
107
-
108
- cy.get("@testGeneric")
109
- .invoke("prop", "other")
110
- .should("have.length", 0);
111
-
112
- cy.get("@testGeneric")
113
- .invoke("prop", "items")
114
- .should("have.length", 3);
115
- });
116
- });