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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/CHANGELOG.md +256 -0
  2. package/cypress/specs/{Accessor.cy.ts → Accessor.cy.tsx} +4 -4
  3. package/cypress/specs/{ConfigurationScript.cy.ts → ConfigurationScript.cy.tsx} +21 -4
  4. package/cypress/specs/{ConfigurationURL.cy.ts → ConfigurationURL.cy.tsx} +27 -8
  5. package/cypress/specs/CustomMount.cy.tsx +9 -0
  6. package/cypress/specs/{CustomTheme.cy.ts → CustomTheme.cy.tsx} +2 -2
  7. package/cypress/specs/Events.cy.tsx +28 -0
  8. package/cypress/specs/{UI5ElementInvalidation.cy.ts → UI5ElementInvalidation.cy.tsx} +55 -10
  9. package/cypress/specs/{UI5ElementLifecycle.cy.ts → UI5ElementLifecycle.cy.tsx} +4 -4
  10. package/cypress/specs/{UI5ElementListenForChildPropChanges.cy.ts → UI5ElementListenForChildPropChanges.cy.tsx} +32 -11
  11. package/cypress/specs/{UI5ElementMetadataExt.cy.ts → UI5ElementMetadataExt.cy.tsx} +3 -3
  12. package/cypress/specs/{UI5ElementPropertyValidation.cy.ts → UI5ElementPropertyValidation.cy.tsx} +2 -2
  13. package/cypress/specs/{UI5ElementPropsAndAttrs.cy.ts → UI5ElementPropsAndAttrs.cy.tsx} +8 -8
  14. package/cypress/specs/{UI5ElementShadowDOM.cy.ts → UI5ElementShadowDOM.cy.tsx} +4 -4
  15. package/cypress/specs/{UI5ElementSlots.cy.ts → UI5ElementSlots.cy.tsx} +47 -27
  16. package/cypress/specs/{WithComplexTemplate.cy.ts → WithComplexTemplate.cy.tsx} +2 -2
  17. package/cypress/specs/i18n_texts.cy.tsx +129 -0
  18. package/cypress/specs/util/FocusableElements.cy.tsx +48 -0
  19. package/cypress/support/commands.ts +39 -0
  20. package/cypress/support/component-index.html +12 -0
  21. package/cypress/support/component.ts +17 -0
  22. package/cypress/tsconfig.json +2 -1
  23. package/cypress.config.js +1 -1
  24. package/dist/.tsbuildinfobuild +1 -1
  25. package/dist/CustomElementsRegistry.d.ts +2 -1
  26. package/dist/CustomElementsRegistry.js +4 -1
  27. package/dist/CustomElementsRegistry.js.map +1 -1
  28. package/dist/CustomElementsScopeUtils.d.ts +3 -1
  29. package/dist/CustomElementsScopeUtils.js +8 -1
  30. package/dist/CustomElementsScopeUtils.js.map +1 -1
  31. package/dist/FeaturesRegistry.d.ts +1 -16
  32. package/dist/FeaturesRegistry.js +1 -37
  33. package/dist/FeaturesRegistry.js.map +1 -1
  34. package/dist/UI5Element.d.ts +15 -4
  35. package/dist/UI5Element.js +25 -15
  36. package/dist/UI5Element.js.map +1 -1
  37. package/dist/UI5ElementMetadata.d.ts +0 -5
  38. package/dist/UI5ElementMetadata.js +0 -7
  39. package/dist/UI5ElementMetadata.js.map +1 -1
  40. package/dist/config/Theme.js +1 -2
  41. package/dist/config/Theme.js.map +1 -1
  42. package/dist/custom-elements-internal.json +2803 -0
  43. package/dist/custom-elements.json +2500 -0
  44. package/dist/decorators/customElement.d.ts +1 -0
  45. package/dist/decorators/customElement.js +1 -4
  46. package/dist/decorators/customElement.js.map +1 -1
  47. package/dist/decorators/i18n.js +6 -0
  48. package/dist/decorators/i18n.js.map +1 -1
  49. package/dist/features/F6Navigation.d.ts +1 -0
  50. package/dist/features/F6Navigation.js +21 -2
  51. package/dist/features/F6Navigation.js.map +1 -1
  52. package/dist/features/patchPopup.js +10 -1
  53. package/dist/features/patchPopup.js.map +1 -1
  54. package/dist/generated/AssetParameters.js +1 -1
  55. package/dist/generated/AssetParameters.js.map +1 -1
  56. package/dist/generated/VersionInfo.js +4 -4
  57. package/dist/generated/VersionInfo.js.map +1 -1
  58. package/dist/index.d.ts +43 -3
  59. package/dist/index.js +88 -0
  60. package/dist/index.js.map +1 -0
  61. package/dist/jsx-utils.js +11 -2
  62. package/dist/jsx-utils.js.map +1 -1
  63. package/dist/locale/nextFallbackLocale.js +6 -2
  64. package/dist/locale/nextFallbackLocale.js.map +1 -1
  65. package/dist/prod/AssetRegistry.js +2 -0
  66. package/dist/prod/AssetRegistry.js.map +7 -0
  67. package/dist/prod/Boot.js +2 -0
  68. package/dist/prod/Boot.js.map +7 -0
  69. package/dist/prod/CustomElementsRegistry.js +10 -0
  70. package/dist/prod/CustomElementsRegistry.js.map +7 -0
  71. package/dist/prod/CustomElementsScope.js +2 -0
  72. package/dist/prod/CustomElementsScope.js.map +7 -0
  73. package/dist/prod/CustomElementsScopeUtils.js +2 -0
  74. package/dist/prod/CustomElementsScopeUtils.js.map +7 -0
  75. package/dist/prod/DOMObserver.js +2 -0
  76. package/dist/prod/DOMObserver.js.map +7 -0
  77. package/dist/prod/Device.js +2 -0
  78. package/dist/prod/Device.js.map +7 -0
  79. package/dist/prod/EventProvider.js +2 -0
  80. package/dist/prod/EventProvider.js.map +7 -0
  81. package/dist/prod/FeaturesRegistry.js +2 -0
  82. package/dist/prod/FeaturesRegistry.js.map +7 -0
  83. package/dist/prod/FontFace.js +2 -0
  84. package/dist/prod/FontFace.js.map +7 -0
  85. package/dist/prod/IgnoreCustomElements.js +2 -0
  86. package/dist/prod/IgnoreCustomElements.js.map +7 -0
  87. package/dist/prod/InitialConfiguration.js +2 -0
  88. package/dist/prod/InitialConfiguration.js.map +7 -0
  89. package/dist/prod/Keys.js +2 -0
  90. package/dist/prod/Keys.js.map +7 -0
  91. package/dist/prod/Location.js +2 -0
  92. package/dist/prod/Location.js.map +7 -0
  93. package/dist/prod/ManagedStyles.js +2 -0
  94. package/dist/prod/ManagedStyles.js.map +7 -0
  95. package/dist/prod/MediaRange.js +2 -0
  96. package/dist/prod/MediaRange.js.map +7 -0
  97. package/dist/prod/PropertiesFileFormat.js +3 -0
  98. package/dist/prod/PropertiesFileFormat.js.map +7 -0
  99. package/dist/prod/Render.js +2 -0
  100. package/dist/prod/Render.js.map +7 -0
  101. package/dist/prod/RenderQueue.js +2 -0
  102. package/dist/prod/RenderQueue.js.map +7 -0
  103. package/dist/prod/Runtimes.js +2 -0
  104. package/dist/prod/Runtimes.js.map +7 -0
  105. package/dist/prod/SystemCSSVars.js +2 -0
  106. package/dist/prod/SystemCSSVars.js.map +7 -0
  107. package/dist/prod/Theming.js +2 -0
  108. package/dist/prod/Theming.js.map +7 -0
  109. package/dist/prod/UI5Element.js +2 -0
  110. package/dist/prod/UI5Element.js.map +7 -0
  111. package/dist/prod/UI5ElementMetadata.js +2 -0
  112. package/dist/prod/UI5ElementMetadata.js.map +7 -0
  113. package/dist/prod/animations/AnimationQueue.js +2 -0
  114. package/dist/prod/animations/AnimationQueue.js.map +7 -0
  115. package/dist/prod/animations/animate.js +2 -0
  116. package/dist/prod/animations/animate.js.map +7 -0
  117. package/dist/prod/animations/scroll.js +2 -0
  118. package/dist/prod/animations/scroll.js.map +7 -0
  119. package/dist/prod/animations/slideDown.js +2 -0
  120. package/dist/prod/animations/slideDown.js.map +7 -0
  121. package/dist/prod/animations/slideUp.js +2 -0
  122. package/dist/prod/animations/slideUp.js.map +7 -0
  123. package/dist/prod/asset-registries/Icons.js +2 -0
  124. package/dist/prod/asset-registries/Icons.js.map +7 -0
  125. package/dist/prod/asset-registries/Illustrations.js +2 -0
  126. package/dist/prod/asset-registries/Illustrations.js.map +7 -0
  127. package/dist/prod/asset-registries/LocaleData.js +2 -0
  128. package/dist/prod/asset-registries/LocaleData.js.map +7 -0
  129. package/dist/prod/asset-registries/Themes.js +2 -0
  130. package/dist/prod/asset-registries/Themes.js.map +7 -0
  131. package/dist/prod/asset-registries/i18n.js +2 -0
  132. package/dist/prod/asset-registries/i18n.js.map +7 -0
  133. package/dist/prod/asset-registries/util/IconCollectionsAlias.js +2 -0
  134. package/dist/prod/asset-registries/util/IconCollectionsAlias.js.map +7 -0
  135. package/dist/prod/asset-registries/util/IconCollectionsByTheme.js +2 -0
  136. package/dist/prod/asset-registries/util/IconCollectionsByTheme.js.map +7 -0
  137. package/dist/prod/asset-registries/util/getIconCollectionByTheme.js +2 -0
  138. package/dist/prod/asset-registries/util/getIconCollectionByTheme.js.map +7 -0
  139. package/dist/prod/config/AnimationMode.js +2 -0
  140. package/dist/prod/config/AnimationMode.js.map +7 -0
  141. package/dist/prod/config/CalendarType.js +2 -0
  142. package/dist/prod/config/CalendarType.js.map +7 -0
  143. package/dist/prod/config/ConfigurationReset.js +2 -0
  144. package/dist/prod/config/ConfigurationReset.js.map +7 -0
  145. package/dist/prod/config/Fonts.js +2 -0
  146. package/dist/prod/config/Fonts.js.map +7 -0
  147. package/dist/prod/config/FormatSettings.js +2 -0
  148. package/dist/prod/config/FormatSettings.js.map +7 -0
  149. package/dist/prod/config/Icons.js +2 -0
  150. package/dist/prod/config/Icons.js.map +7 -0
  151. package/dist/prod/config/Language.js +2 -0
  152. package/dist/prod/config/Language.js.map +7 -0
  153. package/dist/prod/config/NoConflict.js +2 -0
  154. package/dist/prod/config/NoConflict.js.map +7 -0
  155. package/dist/prod/config/Theme.js +2 -0
  156. package/dist/prod/config/Theme.js.map +7 -0
  157. package/dist/prod/config/ThemeRoot.js +2 -0
  158. package/dist/prod/config/ThemeRoot.js.map +7 -0
  159. package/dist/prod/config/Timezone.js +2 -0
  160. package/dist/prod/config/Timezone.js.map +7 -0
  161. package/dist/prod/config/Tooltips.js +2 -0
  162. package/dist/prod/config/Tooltips.js.map +7 -0
  163. package/dist/prod/connectToComponent.js +2 -0
  164. package/dist/prod/connectToComponent.js.map +7 -0
  165. package/dist/prod/converters/DOMReference.js +2 -0
  166. package/dist/prod/converters/DOMReference.js.map +7 -0
  167. package/dist/prod/decorators/bound.js +2 -0
  168. package/dist/prod/decorators/bound.js.map +7 -0
  169. package/dist/prod/decorators/customElement.js +2 -0
  170. package/dist/prod/decorators/customElement.js.map +7 -0
  171. package/dist/prod/decorators/event-strict.js +2 -0
  172. package/dist/prod/decorators/event-strict.js.map +7 -0
  173. package/dist/prod/decorators/event.js +2 -0
  174. package/dist/prod/decorators/event.js.map +7 -0
  175. package/dist/prod/decorators/i18n.js +2 -0
  176. package/dist/prod/decorators/i18n.js.map +7 -0
  177. package/dist/prod/decorators/property.js +2 -0
  178. package/dist/prod/decorators/property.js.map +7 -0
  179. package/dist/prod/decorators/query.js +2 -0
  180. package/dist/prod/decorators/query.js.map +7 -0
  181. package/dist/prod/decorators/queryAll.js +2 -0
  182. package/dist/prod/decorators/queryAll.js.map +7 -0
  183. package/dist/prod/decorators/slot.js +2 -0
  184. package/dist/prod/decorators/slot.js.map +7 -0
  185. package/dist/prod/decorators.js +2 -0
  186. package/dist/prod/decorators.js.map +7 -0
  187. package/dist/prod/delegate/ItemNavigation.js +2 -0
  188. package/dist/prod/delegate/ItemNavigation.js.map +7 -0
  189. package/dist/prod/delegate/ResizeHandler.js +2 -0
  190. package/dist/prod/delegate/ResizeHandler.js.map +7 -0
  191. package/dist/prod/delegate/ScrollEnablement.js +2 -0
  192. package/dist/prod/delegate/ScrollEnablement.js.map +7 -0
  193. package/dist/prod/features/F6Navigation.js +2 -0
  194. package/dist/prod/features/F6Navigation.js.map +7 -0
  195. package/dist/prod/features/InputElementsFormSupport.js +2 -0
  196. package/dist/prod/features/InputElementsFormSupport.js.map +7 -0
  197. package/dist/prod/features/LegacyDateFormats.js +2 -0
  198. package/dist/prod/features/LegacyDateFormats.js.map +7 -0
  199. package/dist/prod/features/OpenUI5Element.js +2 -0
  200. package/dist/prod/features/OpenUI5Element.js.map +7 -0
  201. package/dist/prod/features/OpenUI5Enablement.js +21 -0
  202. package/dist/prod/features/OpenUI5Enablement.js.map +7 -0
  203. package/dist/prod/features/OpenUI5Support.js +2 -0
  204. package/dist/prod/features/OpenUI5Support.js.map +7 -0
  205. package/dist/prod/features/patchPatcher.js +2 -0
  206. package/dist/prod/features/patchPatcher.js.map +7 -0
  207. package/dist/prod/features/patchPopup.js +2 -0
  208. package/dist/prod/features/patchPopup.js.map +7 -0
  209. package/dist/prod/generated/AssetParameters.js +2 -0
  210. package/dist/prod/generated/AssetParameters.js.map +7 -0
  211. package/dist/prod/generated/VersionInfo.js +2 -0
  212. package/dist/prod/generated/VersionInfo.js.map +7 -0
  213. package/dist/prod/generated/css/BusyIndicator.css.js +2 -0
  214. package/dist/prod/generated/css/BusyIndicator.css.js.map +7 -0
  215. package/dist/prod/generated/css/FontFace.css.js +2 -0
  216. package/dist/prod/generated/css/FontFace.css.js.map +7 -0
  217. package/dist/prod/generated/css/OverrideFontFace.css.js +2 -0
  218. package/dist/prod/generated/css/OverrideFontFace.css.js.map +7 -0
  219. package/dist/prod/generated/css/SystemCSSVars.css.js +2 -0
  220. package/dist/prod/generated/css/SystemCSSVars.css.js.map +7 -0
  221. package/dist/prod/getSharedResource.js +2 -0
  222. package/dist/prod/getSharedResource.js.map +7 -0
  223. package/dist/prod/global.d.js +2 -0
  224. package/dist/prod/global.d.js.map +7 -0
  225. package/dist/prod/i18nBundle.js +2 -0
  226. package/dist/prod/i18nBundle.js.map +7 -0
  227. package/dist/prod/index.js +2 -0
  228. package/dist/prod/index.js.map +7 -0
  229. package/dist/prod/jsx-dev-runtime.js +2 -0
  230. package/dist/prod/jsx-dev-runtime.js.map +7 -0
  231. package/dist/prod/jsx-runtime.js +2 -0
  232. package/dist/prod/jsx-runtime.js.map +7 -0
  233. package/dist/prod/jsx-utils.js +2 -0
  234. package/dist/prod/jsx-utils.js.map +7 -0
  235. package/dist/prod/locale/Locale.js +2 -0
  236. package/dist/prod/locale/Locale.js.map +7 -0
  237. package/dist/prod/locale/RTLAwareRegistry.js +2 -0
  238. package/dist/prod/locale/RTLAwareRegistry.js.map +7 -0
  239. package/dist/prod/locale/applyDirection.js +2 -0
  240. package/dist/prod/locale/applyDirection.js.map +7 -0
  241. package/dist/prod/locale/directionChange.js +2 -0
  242. package/dist/prod/locale/directionChange.js.map +7 -0
  243. package/dist/prod/locale/getEffectiveDir.js +2 -0
  244. package/dist/prod/locale/getEffectiveDir.js.map +7 -0
  245. package/dist/prod/locale/getLocale.js +2 -0
  246. package/dist/prod/locale/getLocale.js.map +7 -0
  247. package/dist/prod/locale/languageChange.js +2 -0
  248. package/dist/prod/locale/languageChange.js.map +7 -0
  249. package/dist/prod/locale/nextFallbackLocale.js +2 -0
  250. package/dist/prod/locale/nextFallbackLocale.js.map +7 -0
  251. package/dist/prod/locale/normalizeLocale.js +2 -0
  252. package/dist/prod/locale/normalizeLocale.js.map +7 -0
  253. package/dist/prod/renderer/JsxRenderer.js +2 -0
  254. package/dist/prod/renderer/JsxRenderer.js.map +7 -0
  255. package/dist/prod/renderer/LitRenderer.js +2 -0
  256. package/dist/prod/renderer/LitRenderer.js.map +7 -0
  257. package/dist/prod/renderer/directives/style-map.js +6 -0
  258. package/dist/prod/renderer/directives/style-map.js.map +7 -0
  259. package/dist/prod/renderer/executeTemplate.js +2 -0
  260. package/dist/prod/renderer/executeTemplate.js.map +7 -0
  261. package/dist/prod/sap/base/Log.js +750 -0
  262. package/dist/prod/sap/base/assert.js +34 -0
  263. package/dist/prod/sap/base/config/MemoryConfigurationProvider.js +20 -0
  264. package/dist/prod/sap/base/security/URLListValidator.js +406 -0
  265. package/dist/prod/sap/base/security/encodeCSS.js +40 -0
  266. package/dist/prod/sap/base/security/encodeXML.js +53 -0
  267. package/dist/prod/sap/base/security/sanitizeHTML.js +38 -0
  268. package/dist/prod/sap/base/strings/toHex.js +33 -0
  269. package/dist/prod/sap/base/util/now.js +28 -0
  270. package/dist/prod/sap/base/util/uid.js +27 -0
  271. package/dist/prod/sap/ui/thirdparty/caja-html-sanitizer.js +3600 -0
  272. package/dist/prod/ssr-dom-shim.js +2 -0
  273. package/dist/prod/ssr-dom-shim.js.map +7 -0
  274. package/dist/prod/ssr-dom.js +2 -0
  275. package/dist/prod/ssr-dom.js.map +7 -0
  276. package/dist/prod/theming/CustomStyle.js +2 -0
  277. package/dist/prod/theming/CustomStyle.js.map +7 -0
  278. package/dist/prod/theming/ThemeLoaded.js +2 -0
  279. package/dist/prod/theming/ThemeLoaded.js.map +7 -0
  280. package/dist/prod/theming/ThemeRegistered.js +2 -0
  281. package/dist/prod/theming/ThemeRegistered.js.map +7 -0
  282. package/dist/prod/theming/applyTheme.js +2 -0
  283. package/dist/prod/theming/applyTheme.js.map +7 -0
  284. package/dist/prod/theming/getConstructableStyle.js +2 -0
  285. package/dist/prod/theming/getConstructableStyle.js.map +7 -0
  286. package/dist/prod/theming/getEffectiveStyle.js +2 -0
  287. package/dist/prod/theming/getEffectiveStyle.js.map +7 -0
  288. package/dist/prod/theming/getStylesString.js +2 -0
  289. package/dist/prod/theming/getStylesString.js.map +7 -0
  290. package/dist/prod/theming/getThemeDesignerTheme.js +2 -0
  291. package/dist/prod/theming/getThemeDesignerTheme.js.map +7 -0
  292. package/dist/prod/thirdparty/_merge.js +2 -0
  293. package/dist/prod/thirdparty/_merge.js.map +7 -0
  294. package/dist/prod/thirdparty/isPlainObject.js +2 -0
  295. package/dist/prod/thirdparty/isPlainObject.js.map +7 -0
  296. package/dist/prod/thirdparty/merge.js +2 -0
  297. package/dist/prod/thirdparty/merge.js.map +7 -0
  298. package/dist/prod/thirdparty/preact/jsx.d.js +2 -0
  299. package/dist/prod/thirdparty/preact/jsx.d.js.map +7 -0
  300. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +2 -0
  301. package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +7 -0
  302. package/dist/prod/thirdparty/preact/jsxRuntime.module.js +1 -0
  303. package/dist/prod/thirdparty/preact/preact.module.d.js +2 -0
  304. package/dist/prod/thirdparty/preact/preact.module.d.js.map +7 -0
  305. package/dist/prod/thirdparty/preact/preact.module.js +1 -0
  306. package/dist/prod/types/AnimationMode.js +2 -0
  307. package/dist/prod/types/AnimationMode.js.map +7 -0
  308. package/dist/prod/types/CalendarType.js +2 -0
  309. package/dist/prod/types/CalendarType.js.map +7 -0
  310. package/dist/prod/types/InvisibleMessageMode.js +2 -0
  311. package/dist/prod/types/InvisibleMessageMode.js.map +7 -0
  312. package/dist/prod/types/ItemNavigationBehavior.js +2 -0
  313. package/dist/prod/types/ItemNavigationBehavior.js.map +7 -0
  314. package/dist/prod/types/MovePlacement.js +2 -0
  315. package/dist/prod/types/MovePlacement.js.map +7 -0
  316. package/dist/prod/types/NavigationMode.js +2 -0
  317. package/dist/prod/types/NavigationMode.js.map +7 -0
  318. package/dist/prod/types/Orientation.js +2 -0
  319. package/dist/prod/types/Orientation.js.map +7 -0
  320. package/dist/prod/types/SortOrder.js +2 -0
  321. package/dist/prod/types/SortOrder.js.map +7 -0
  322. package/dist/prod/types/ValueState.js +2 -0
  323. package/dist/prod/types/ValueState.js.map +7 -0
  324. package/dist/prod/types.js +2 -0
  325. package/dist/prod/types.js.map +7 -0
  326. package/dist/prod/updateShadowRoot.js +2 -0
  327. package/dist/prod/updateShadowRoot.js.map +7 -0
  328. package/dist/prod/util/AccessibilityTextsHelper.js +2 -0
  329. package/dist/prod/util/AccessibilityTextsHelper.js.map +7 -0
  330. package/dist/prod/util/Caret.js +2 -0
  331. package/dist/prod/util/Caret.js.map +7 -0
  332. package/dist/prod/util/ColorConversion.js +2 -0
  333. package/dist/prod/util/ColorConversion.js.map +7 -0
  334. package/dist/prod/util/FetchHelper.js +2 -0
  335. package/dist/prod/util/FetchHelper.js.map +7 -0
  336. package/dist/prod/util/FocusableElements.js +2 -0
  337. package/dist/prod/util/FocusableElements.js.map +7 -0
  338. package/dist/prod/util/HTMLSanitizer.js +2 -0
  339. package/dist/prod/util/HTMLSanitizer.js.map +7 -0
  340. package/dist/prod/util/InvisibleMessage.js +2 -0
  341. package/dist/prod/util/InvisibleMessage.js.map +7 -0
  342. package/dist/prod/util/PopupUtils.js +2 -0
  343. package/dist/prod/util/PopupUtils.js.map +7 -0
  344. package/dist/prod/util/SelectionAssistant.js +2 -0
  345. package/dist/prod/util/SelectionAssistant.js.map +7 -0
  346. package/dist/prod/util/SlotsHelper.js +2 -0
  347. package/dist/prod/util/SlotsHelper.js.map +7 -0
  348. package/dist/prod/util/StringHelper.js +2 -0
  349. package/dist/prod/util/StringHelper.js.map +7 -0
  350. package/dist/prod/util/TabbableElements.js +2 -0
  351. package/dist/prod/util/TabbableElements.js.map +7 -0
  352. package/dist/prod/util/arraysAreEqual.js +2 -0
  353. package/dist/prod/util/arraysAreEqual.js.map +7 -0
  354. package/dist/prod/util/clamp.js +2 -0
  355. package/dist/prod/util/clamp.js.map +7 -0
  356. package/dist/prod/util/createLinkInHead.js +2 -0
  357. package/dist/prod/util/createLinkInHead.js.map +7 -0
  358. package/dist/prod/util/debounce.js +2 -0
  359. package/dist/prod/util/debounce.js.map +7 -0
  360. package/dist/prod/util/detectNavigatorLanguage.js +2 -0
  361. package/dist/prod/util/detectNavigatorLanguage.js.map +7 -0
  362. package/dist/prod/util/dragAndDrop/DragRegistry.js +2 -0
  363. package/dist/prod/util/dragAndDrop/DragRegistry.js.map +7 -0
  364. package/dist/prod/util/dragAndDrop/findClosestPosition.js +2 -0
  365. package/dist/prod/util/dragAndDrop/findClosestPosition.js.map +7 -0
  366. package/dist/prod/util/dragAndDrop/handleDragOver.js +2 -0
  367. package/dist/prod/util/dragAndDrop/handleDragOver.js.map +7 -0
  368. package/dist/prod/util/dragAndDrop/handleDrop.js +2 -0
  369. package/dist/prod/util/dragAndDrop/handleDrop.js.map +7 -0
  370. package/dist/prod/util/dragAndDrop/longDragOverHandler.js +2 -0
  371. package/dist/prod/util/dragAndDrop/longDragOverHandler.js.map +7 -0
  372. package/dist/prod/util/escapeRegex.js +2 -0
  373. package/dist/prod/util/escapeRegex.js.map +7 -0
  374. package/dist/prod/util/fixSafariActiveState.js +2 -0
  375. package/dist/prod/util/fixSafariActiveState.js.map +7 -0
  376. package/dist/prod/util/formatMessage.js +2 -0
  377. package/dist/prod/util/formatMessage.js.map +7 -0
  378. package/dist/prod/util/generateHighlightedMarkup.js +2 -0
  379. package/dist/prod/util/generateHighlightedMarkup.js.map +7 -0
  380. package/dist/prod/util/getActiveElement.js +2 -0
  381. package/dist/prod/util/getActiveElement.js.map +7 -0
  382. package/dist/prod/util/getClassCopy.js +2 -0
  383. package/dist/prod/util/getClassCopy.js.map +7 -0
  384. package/dist/prod/util/getDesigntimePropertyAsArray.js +2 -0
  385. package/dist/prod/util/getDesigntimePropertyAsArray.js.map +7 -0
  386. package/dist/prod/util/getEffectiveContentDensity.js +2 -0
  387. package/dist/prod/util/getEffectiveContentDensity.js.map +7 -0
  388. package/dist/prod/util/getEffectiveScrollbarStyle.js +28 -0
  389. package/dist/prod/util/getEffectiveScrollbarStyle.js.map +7 -0
  390. package/dist/prod/util/getFastNavigationGroups.js +2 -0
  391. package/dist/prod/util/getFastNavigationGroups.js.map +7 -0
  392. package/dist/prod/util/getFileExtension.js +2 -0
  393. package/dist/prod/util/getFileExtension.js.map +7 -0
  394. package/dist/prod/util/getNormalizedTarget.js +2 -0
  395. package/dist/prod/util/getNormalizedTarget.js.map +7 -0
  396. package/dist/prod/util/getSingletonElementInstance.js +2 -0
  397. package/dist/prod/util/getSingletonElementInstance.js.map +7 -0
  398. package/dist/prod/util/hash2str.js +2 -0
  399. package/dist/prod/util/hash2str.js.map +7 -0
  400. package/dist/prod/util/isElementClickable.js +2 -0
  401. package/dist/prod/util/isElementClickable.js.map +7 -0
  402. package/dist/prod/util/isElementHidden.js +2 -0
  403. package/dist/prod/util/isElementHidden.js.map +7 -0
  404. package/dist/prod/util/isElementInView.js +2 -0
  405. package/dist/prod/util/isElementInView.js.map +7 -0
  406. package/dist/prod/util/isElementTabbable.js +2 -0
  407. package/dist/prod/util/isElementTabbable.js.map +7 -0
  408. package/dist/prod/util/isValidPropertyName.js +2 -0
  409. package/dist/prod/util/isValidPropertyName.js.map +7 -0
  410. package/dist/prod/util/throttle.js +2 -0
  411. package/dist/prod/util/throttle.js.map +7 -0
  412. package/dist/prod/util/toLowercaseEnumValue.js +2 -0
  413. package/dist/prod/util/toLowercaseEnumValue.js.map +7 -0
  414. package/dist/prod/util/whenDOMReady.js +2 -0
  415. package/dist/prod/util/whenDOMReady.js.map +7 -0
  416. package/dist/prod/util/willShowContent.js +2 -0
  417. package/dist/prod/util/willShowContent.js.map +7 -0
  418. package/dist/prod/validateThemeRoot.js +2 -0
  419. package/dist/prod/validateThemeRoot.js.map +7 -0
  420. package/dist/renderer/JsxRenderer.js +12 -2
  421. package/dist/renderer/JsxRenderer.js.map +1 -1
  422. package/dist/ssr-dom-shim.js +51 -1
  423. package/dist/ssr-dom-shim.js.map +1 -1
  424. package/dist/thirdparty/preact/jsx.d.ts +1 -1
  425. package/dist/thirdparty/preact/jsxRuntime.module.d.ts +3 -3
  426. package/dist/thirdparty/preact/jsxRuntime.module.js +0 -1
  427. package/dist/thirdparty/preact/preact.module.js +1 -2
  428. package/dist/types/SortOrder.d.ts +24 -0
  429. package/dist/types/SortOrder.js +26 -0
  430. package/dist/types/SortOrder.js.map +1 -0
  431. package/dist/util/ColorConversion.js +24 -22
  432. package/dist/util/ColorConversion.js.map +1 -1
  433. package/dist/util/FocusableElements.js +28 -2
  434. package/dist/util/FocusableElements.js.map +1 -1
  435. package/dist/util/HTMLSanitizer.d.ts +2 -0
  436. package/dist/util/HTMLSanitizer.js +2 -2
  437. package/dist/util/HTMLSanitizer.js.map +1 -1
  438. package/dist/util/dragAndDrop/findClosestPosition.d.ts +2 -1
  439. package/dist/util/dragAndDrop/findClosestPosition.js +45 -41
  440. package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -1
  441. package/dist/util/getClassCopy.d.ts +4 -0
  442. package/dist/util/getEffectiveScrollbarStyle.d.ts +1 -1
  443. package/dist/util/getEffectiveScrollbarStyle.js +3 -1
  444. package/dist/util/getEffectiveScrollbarStyle.js.map +1 -1
  445. package/dist/util/getFastNavigationGroups.js +6 -1
  446. package/dist/util/getFastNavigationGroups.js.map +1 -1
  447. package/dist/util/throttle.d.ts +2 -0
  448. package/dist/util/throttle.js +20 -0
  449. package/dist/util/throttle.js.map +1 -0
  450. package/dist/vscode.html-custom-data.json +22 -0
  451. package/package-scripts.cjs +4 -4
  452. package/package.json +12 -7
  453. package/src/thirdparty/preact/jsxRuntime.module.js +0 -1
  454. package/src/thirdparty/preact/preact.module.js +1 -2
  455. package/tsconfig.json +0 -1
  456. package/cypress/specs/CustomMount.cy.ts +0 -34
  457. package/index.js +0 -208
  458. /package/cypress/specs/{Boot.cy.ts → Boot.cy.tsx} +0 -0
  459. /package/cypress/specs/{ConfigurationChange.cy.ts → ConfigurationChange.cy.tsx} +0 -0
  460. /package/cypress/specs/{EventProvider.cy.ts → EventProvider.cy.tsx} +0 -0
  461. /package/cypress/specs/{SystemDOMElements.cy.ts → SystemDOMElements.cy.tsx} +0 -0
  462. /package/cypress/specs/{Theming.cy.ts → Theming.cy.tsx} +0 -0
@@ -0,0 +1,22 @@
1
+ {
2
+ "version": 1.1,
3
+ "tags": [
4
+ {
5
+ "name": "ui5element",
6
+ "description": "Base class for all UI5 Web Components\n\n\n---\n\n\n\n\n### **Methods:**\n - **onBeforeRendering(): _void_** - Called every time before the component renders.\n- **onAfterRendering(): _void_** - Called every time after the component renders.\n- **onEnterDOM(): _void_** - Called on connectedCallback - added to the DOM.\n- **onExitDOM(): _void_** - Called on disconnectedCallback - removed from the DOM.\n- **attachInvalidate(callback: _(param: InvalidationInfo) => void_): _void_** - Attach a callback that will be executed whenever the component is invalidated\n- **detachInvalidate(callback: _(param: InvalidationInfo) => void_): _void_** - Detach the callback that is executed whenever the component is invalidated\n- **onInvalidation(changeInfo: _ChangeInfo_): _void_** - A callback that is executed each time an already rendered component is invalidated (scheduled for re-rendering)\n- **getDomRef(): _HTMLElement | undefined_** - Returns the DOM Element inside the Shadow Root that corresponds to the opening tag in the UI5 Web Component's template\n*Note:* For logical (abstract) elements (items, options, etc...), returns the part of the parent's DOM that represents this option\nUse this method instead of \"this.shadowRoot\" to read the Shadow DOM, if ever necessary\n- **getFocusDomRef(): _HTMLElement | undefined_** - Returns the DOM Element marked with \"data-sap-focus-ref\" inside the template.\nThis is the element that will receive the focus by default.\n- **getFocusDomRefAsync(): _Promise<HTMLElement | undefined>_** - Waits for dom ref and then returns the DOM Element marked with \"data-sap-focus-ref\" inside the template.\nThis is the element that will receive the focus by default.\n- **focus(focusOptions: _FocusOptions_): _Promise<void>_** - Set the focus to the element, returned by \"getFocusDomRef()\" (marked by \"data-sap-focus-ref\")\n- **fireDecoratorEvent(name: _N_, data: _this[\"eventDetails\"][N] | undefined_): _boolean_** - Fires a custom event, configured via the \"event\" decorator.\n- **getSlottedNodes(): _Array<T>_** - Returns the actual children, associated with a slot.\nUseful when there are transitive slots in nested component scenarios and you don't want to get a list of the slots, but rather of their content.\n- **attachComponentStateFinalized(callback: _() => void_): _void_** - Attach a callback that will be executed whenever the component's state is finalized\n- **detachComponentStateFinalized(callback: _() => void_): _void_** - Detach the callback that is executed whenever the component's state is finalized\n- **getUniqueDependencies(): _Array<typeof UI5Element>_** - Returns a list of the unique dependencies for this UI5 Web Component\n- **define(): _typeof UI5Element_** - Registers a UI5 Web Component in the browser window object\n- **getMetadata(): _UI5ElementMetadata_** - Returns an instance of UI5ElementMetadata.js representing this UI5 Web Component's full metadata (its and its parents')\nNote: not to be confused with the \"get metadata()\" method, which returns an object for this class's metadata only",
7
+ "attributes": [
8
+ {
9
+ "name": "effective-dir",
10
+ "description": "Determines whether the component should be rendered in RTL mode or not.\nReturns: \"rtl\", \"ltr\" or undefined",
11
+ "values": [{ "name": "any" }]
12
+ },
13
+ {
14
+ "name": "is-ui5-element",
15
+ "description": "Used to duck-type UI5 elements without using instanceof",
16
+ "values": [{ "name": "any" }]
17
+ }
18
+ ],
19
+ "references": []
20
+ }
21
+ ]
22
+ }
@@ -49,8 +49,8 @@ const scripts = {
49
49
  },
50
50
  generateAPI: {
51
51
  default: "nps generateAPI.generateCEM generateAPI.validateCEM",
52
- generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs" --dev`,
53
- validateCEM: `node "${LIB}/cem/validate.js" --dev`,
52
+ generateCEM: `cross-env UI5_CEM_MODE='dev' cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs"`,
53
+ validateCEM: `cross-env UI5_CEM_MODE='dev' node "${LIB}/cem/validate.js"`,
54
54
  },
55
55
  watch: {
56
56
  default: 'concurrently "nps watch.src" "nps watch.styles"',
@@ -63,8 +63,8 @@ const scripts = {
63
63
  default: 'concurrently "nps test.ssr" "nps test.ssr2" "nps test.test-cy-ci"',
64
64
  ssr: `mocha test/ssr`,
65
65
  ssr2: "node -e \"import('./dist/Device.js')\"",
66
- "test-cy-ci": `nps generate && nps generateTestTemplates && cross-env UI5_BASE=true yarn cypress run --component --browser chrome`,
67
- "test-cy-open": `nps generate && nps generateTestTemplates && cross-env UI5_BASE=true yarn cypress open --component --browser chrome`,
66
+ "test-cy-ci": `nps generateTestTemplates && cross-env UI5_BASE=true yarn cypress run --component --browser chrome`,
67
+ "test-cy-open": `nps generateTestTemplates && cross-env UI5_BASE=true yarn cypress open --component --browser chrome`,
68
68
  },
69
69
  };
70
70
 
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@ui5/webcomponents-base",
3
- "version": "0.0.0-4e88b8243",
3
+ "version": "0.0.0-50f1454ef",
4
4
  "description": "UI5 Web Components: webcomponents.base",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
7
7
  "type": "module",
8
- "module": "index.js",
8
+ "module": "./dist/index.js",
9
9
  "keywords": [
10
10
  "openui5",
11
11
  "sapui5",
@@ -25,8 +25,8 @@
25
25
  "default": "./dist/ssr-dom.js"
26
26
  },
27
27
  ".": {
28
- "types": "./src/index.d.ts",
29
- "default": "./index.js"
28
+ "types": "./dist/index.d.ts",
29
+ "default": "./dist/index.js"
30
30
  },
31
31
  "./dist/*": {
32
32
  "production": "./dist/prod/*",
@@ -35,7 +35,11 @@
35
35
  },
36
36
  "./package.json": "./package.json",
37
37
  "./bundle.esm.js": "./bundle.esm.js",
38
- "./*": "./dist/*"
38
+ "./*": {
39
+ "production": "./dist/prod/*",
40
+ "development": "./dist/*",
41
+ "default": "./dist/*"
42
+ }
39
43
  },
40
44
  "types": "./dist",
41
45
  "scripts": {
@@ -57,8 +61,9 @@
57
61
  },
58
62
  "devDependencies": {
59
63
  "@openui5/sap.ui.core": "1.120.17",
60
- "@ui5/webcomponents-tools": "0.0.0-4e88b8243",
61
- "chromedriver": "^131.0.0",
64
+ "@ui5/cypress-internal": "0.0.0",
65
+ "@ui5/webcomponents-tools": "0.0.0-50f1454ef",
66
+ "chromedriver": "^135.0.0",
62
67
  "clean-css": "^5.2.2",
63
68
  "copy-and-watch": "^0.1.5",
64
69
  "cross-env": "^7.0.3",
@@ -1,2 +1 @@
1
1
  import{options as r,Fragment as e}from"./preact.module.js";export{Fragment}from"./preact.module.js";var t=/["&<]/;function n(r){if(0===r.length||!1===t.test(r))return r;for(var e=0,n=0,o="",f="";n<r.length;n++){switch(r.charCodeAt(n)){case 34:f="&quot;";break;case 38:f="&amp;";break;case 60:f="&lt;";break;default:continue}n!==e&&(o+=r.slice(e,n)),o+=f,e=n+1}return n!==e&&(o+=r.slice(e,n)),o}var o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,f=0,i=Array.isArray;function u(e,t,n,o,i,u){t||(t={});var a,c,l=t;"ref"in t&&(a=t.ref,delete t.ref);var p={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--f,__i:-1,__u:0,__source:i,__self:u};if("function"==typeof e&&(a=e.defaultProps))for(c in a)void 0===l[c]&&(l[c]=a[c]);return r.vnode&&r.vnode(p),p}function a(r){var t=u(e,{tpl:r,exprs:[].slice.call(arguments,1)});return t.key=t.__v,t}var c={},l=/[A-Z]/g;function p(e,t){if(r.attr){var f=r.attr(e,t);if("string"==typeof f)return f}if("ref"===e||"key"===e)return"";if("style"===e&&"object"==typeof t){var i="";for(var u in t){var a=t[u];if(null!=a&&""!==a){var p="-"==u[0]?u:c[u]||(c[u]=u.replace(l,"-$&").toLowerCase()),s=";";"number"!=typeof a||p.startsWith("--")||o.test(p)||(s="px;"),i=i+p+":"+a+s}}return e+'="'+i+'"'}return null==t||!1===t||"function"==typeof t||"object"==typeof t?"":!0===t?e:e+'="'+n(t)+'"'}function s(r){if(null==r||"boolean"==typeof r||"function"==typeof r)return null;if("object"==typeof r){if(void 0===r.constructor)return r;if(i(r)){for(var e=0;e<r.length;e++)r[e]=s(r[e]);return r}}return n(""+r)}export{u as jsx,p as jsxAttr,u as jsxDEV,s as jsxEscape,a as jsxTemplate,u as jsxs};
2
- //# sourceMappingURL=jsxRuntime.module.js.map
@@ -1,2 +1 @@
1
- var n,l,u,t,i,o,r,e,f,c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var u in l)n[u]=l[u];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function g(l,u,t){var i,o,r,e={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=u[r];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===e[r]&&(e[r]=l.defaultProps[r]);return m(l,e,i,o,null)}function m(n,t,i,o,r){var e={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?C(n):null}function S(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return S(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!P.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(P)}function P(){var n,u,t,o,r,f,c,s;for(i.sort(e);n=i.shift();)n.__d&&(u=i.length,o=void 0,f=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),F(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[f]:null,c,null==f?C(r):f,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,z(c,o,s),o.__e!=f&&S(o)),i.length>u&&i.sort(e));P.__r=0}function $(n,l,u,t,i,o,r,e,f,c,s){var a,h,y,d,w,_,g=t&&t.__k||v,m=l.length;for(f=I(u,l,g,f),a=0;a<m;a++)null!=(y=u.__k[a])&&(h=-1===y.__i?p:g[y.__i]||p,y.__i=a,_=F(n,y,h,i,o,r,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),4&y.__u||h.__k===y.__k?f=H(y,f,n):"function"==typeof y.type&&void 0!==_?f=_:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function I(n,l,u,t){var i,o,r,e,f,c=l.length,s=u.length,a=s,h=0;for(n.__k=[],i=0;i<c;i++)null!=(o=l[i])&&"boolean"!=typeof o&&"function"!=typeof o?(e=i+h,(o=n.__k[i]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,r=null,-1!==(f=o.__i=O(o,u,e,a))&&(a--,(r=u[f])&&(r.__u|=2)),null==r||null===r.__v?(-1==f&&h--,"function"!=typeof o.type&&(o.__u|=4)):f!==e&&(f==e-1?h--:f==e+1?h++:(f>e?h--:h++,o.__u|=4))):o=n.__k[i]=null;if(a)for(i=0;i<s;i++)null!=(r=u[i])&&0==(2&r.__u)&&(r.__e==t&&(t=C(r)),q(r,r));return t}function H(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=H(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=C(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function L(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){L(n,l)}):l.push(n)),l}function O(n,l,u,t){var i=n.key,o=n.type,r=u-1,e=u+1,f=l[u];if(null===f||f&&i==f.key&&o===f.type&&0==(2&f.__u))return u;if(("function"!=typeof o||o===k||i)&&t>(null!=f&&0==(2&f.__u)?1:0))for(;r>=0||e<l.length;){if(r>=0){if((f=l[r])&&0==(2&f.__u)&&i==f.key&&o===f.type)return r;r--}if(e<l.length){if((f=l[e])&&0==(2&f.__u)&&i==f.key&&o===f.type)return e;e++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y.test(l)?u:u+"px"}function j(n,l,u,t,i){var o,r;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=c,n.addEventListener(l,o?a:s,o)):n.removeEventListener(l,o?a:s,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{r=n.tagName&&n.tagName.includes("-"),u!==t&&(n[l]=null!=u||r?u:"");break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function A(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function F(n,u,t,i,o,r,e,f,c,s){var a,h,p,v,y,g,m,b,C,S,M,P,I,H,L,O,T,j=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[f=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof j)try{if(b=u.props,C="prototype"in j&&j.prototype.render,S=(a=j.contextType)&&i[a.__c],M=a?S?S.props.value:a.__:i,t.__c?m=(h=u.__c=t.__c).__=h.__E:(C?u.__c=h=new j(b,M):(u.__c=h=new x(b,M),h.constructor=j,h.render=B),S&&S.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=u,p)C&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(C&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=b,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,g)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,I=l.__r,H=0,C){for(h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),L=0;L<h._sb.length;L++)h.__h.push(h._sb[L]);h._sb=[]}else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++H<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(v,y)),f=$(n,d(O=null!=a&&a.type===k&&null==a.key?a.props.children:a)?O:[O],u,t,i,o,r,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r)if(n.then){for(u.__u|=c?160:128;f&&8===f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,u.__e=f}else for(T=r.length;T--;)_(r[T]);else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=N(t.__e,u,t,i,o,r,e,c,s);return(a=l.diffed)&&a(u),128&u.__u?void 0:f}function z(n,u,t){for(var i=0;i<t.length;i++)V(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function N(u,t,i,o,r,e,f,c,s){var a,h,v,y,w,g,m,b,k=i.props,x=t.props,S=t.type;if("svg"===S?r="http://www.w3.org/2000/svg":"math"===S?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!S&&(S?w.localName===S:3===w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null===S)return document.createTextNode(x);u=document.createElementNS(r,S,x.is&&x),c&&(l.__m&&l.__m(t,e),c=!1),e=null}if(null===S)k===x||c&&u.data===x||(u.data=x);else{if(e=e&&n.call(u.childNodes),k=i.props||p,!c&&null!=e)for(k={},a=0;a<u.attributes.length;a++)k[(w=u.attributes[a]).name]=w.value;for(a in k)if(w=k[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in x)){if("value"==a&&"defaultValue"in x||"checked"==a&&"defaultChecked"in x)continue;j(u,a,null,w,r)}for(a in x)w=x[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?g=w:"checked"==a?m=w:c&&"function"!=typeof w||k[a]===w||(a.startsWith("on")&&(b=o[Object.keys(o)[0]].props.value,w=w.bind(b)),j(u,a,w,k[a],r));if(h)c||v&&(h.__html===v.__html||h.__html===u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),$(u,d(y)?y:[y],t,i,o,"foreignObject"===S?"http://www.w3.org/1999/xhtml":r,e,f,e?e[0]:i.__k&&C(i,0),c,s),null!=e)for(a=e.length;a--;)_(e[a]);c||(a="value","progress"===S&&null==g?u.removeAttribute("value"):void 0!==g&&(g!==u[a]||"progress"===S&&!g||"option"===S&&g!==k[a])&&j(u,a,g,k[a],r),a="checked",void 0!==m&&m!==u[a]&&j(u,a,m,k[a],r))}return u}function V(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function q(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&q(i[o],u,t||"function"!=typeof n.type);t||_(n.__e),n.__c=n.__=n.__e=void 0}function B(n,l,u){return this.constructor(n,u)}function D(u,t,i){var o,r,e,f;t===document&&(t=document.documentElement),l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,e=[],f=[],F(t,u=(!o&&i||t).__k=g(k,null,[u]),r||p,p,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?n.call(t.childNodes):null,e,!o&&i?i:r?r.__e:t.firstChild,o,f),z(e,u,f)}function E(n,l){D(n,l,E)}function G(l,u,t){var i,o,r,e,f=w({},l.props);for(r in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=void 0===u[r]&&void 0!==e?e[r]:u[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),m(l.type,f,i||l.key,o||l.ref,null)}function J(n,l){var u={__c:l="__cC"+h++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n=v.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=A(!1),a=A(!0),h=0;export{x as Component,k as Fragment,G as cloneElement,J as createContext,g as createElement,b as createRef,g as h,E as hydrate,t as isValidElement,l as options,D as render,L as toChildArray};
2
- //# sourceMappingURL=preact.module.js.map
1
+ var n,l,t,u,i,o,r,e,f,c,s,a,h,p={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function w(n,l){for(var t in l)n[t]=l[t];return n}function _(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function g(l,t,u){var i,o,r,e={};for(r in t)"key"==r?i=t[r]:"ref"==r?o=t[r]:e[r]=t[r];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):u),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===e[r]&&(e[r]=l.defaultProps[r]);return m(l,e,i,o,null)}function m(n,u,i,o,r){var e={type:n,props:u,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++t:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function x(n,l){this.props=n,this.context=l}function C(n,l){if(null==l)return n.__?C(n.__,n.__i+1):null;for(var t;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e)return t.__e;return"function"==typeof n.type?C(n):null}function S(n){var l,t;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e){n.__e=n.__c.base=t.__e;break}return S(n)}}function M(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!P.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||r)(P)}function P(){var n,t,u,o,r,f,c,s;for(i.sort(e);n=i.shift();)n.__d&&(t=i.length,o=void 0,f=(r=(u=n).__v).__e,c=[],s=[],u.__P&&((o=w({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),F(u.__P,o,r,u.__n,u.__P.namespaceURI,32&r.__u?[f]:null,c,null==f?C(r):f,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,z(c,o,s),o.__e!=f&&S(o)),i.length>t&&i.sort(e));P.__r=0}function $(n,l,t,u,i,o,r,e,f,c,s){var a,h,y,d,w,_,g=u&&u.__k||v,m=l.length;for(f=I(t,l,g,f),a=0;a<m;a++)null!=(y=t.__k[a])&&(h=-1===y.__i?p:g[y.__i]||p,y.__i=a,_=F(n,y,h,i,o,r,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&V(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),4&y.__u||h.__k===y.__k?f=H(y,f,n):"function"==typeof y.type&&void 0!==_?f=_:d&&(f=d.nextSibling),y.__u&=-7);return t.__e=w,f}function I(n,l,t,u){var i,o,r,e,f,c=l.length,s=t.length,a=s,h=0;for(n.__k=[],i=0;i<c;i++)null!=(o=l[i])&&"boolean"!=typeof o&&"function"!=typeof o?(e=i+h,(o=n.__k[i]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?m(null,o,null,null,null):d(o)?m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=n,o.__b=n.__b+1,r=null,-1!==(f=o.__i=O(o,t,e,a))&&(a--,(r=t[f])&&(r.__u|=2)),null==r||null===r.__v?(-1==f&&h--,"function"!=typeof o.type&&(o.__u|=4)):f!==e&&(f==e-1?h--:f==e+1?h++:(f>e?h--:h++,o.__u|=4))):o=n.__k[i]=null;if(a)for(i=0;i<s;i++)null!=(r=t[i])&&0==(2&r.__u)&&(r.__e==u&&(u=C(r)),q(r,r));return u}function H(n,l,t){var u,i;if("function"==typeof n.type){for(u=n.__k,i=0;u&&i<u.length;i++)u[i]&&(u[i].__=n,l=H(u[i],l,t));return l}n.__e!=l&&(l&&n.type&&!t.contains(l)&&(l=C(n)),t.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function L(n,l){return l=l||[],null==n||"boolean"==typeof n||(d(n)?n.some(function(n){L(n,l)}):l.push(n)),l}function O(n,l,t,u){var i=n.key,o=n.type,r=t-1,e=t+1,f=l[t];if(null===f||f&&i==f.key&&o===f.type&&0==(2&f.__u))return t;if(("function"!=typeof o||o===k||i)&&u>(null!=f&&0==(2&f.__u)?1:0))for(;r>=0||e<l.length;){if(r>=0){if((f=l[r])&&0==(2&f.__u)&&i==f.key&&o===f.type)return r;r--}if(e<l.length){if((f=l[e])&&0==(2&f.__u)&&i==f.key&&o===f.type)return e;e++}}return-1}function T(n,l,t){"-"===l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||y.test(l)?t:t+"px"}function j(n,l,t,u,i){var o,r;n:if("style"===l)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof u&&(n.style.cssText=u=""),u)for(l in u)t&&l in t||T(n.style,l,"");if(t)for(l in t)u&&t[l]===u[l]||T(n.style,l,t[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(f,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=t,t?u?t.t=u.t:(t.t=c,n.addEventListener(l,o?a:s,o)):n.removeEventListener(l,o?a:s,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{r=n.tagName&&n.tagName.includes("-"),t!==u&&(n[l]=null!=t||r?t:"");break n}catch(n){}"function"==typeof t||(null==t||!1===t&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==t?"":t))}}function A(n){return function(t){if(this.l){var u=this.l[t.type+n];if(null==t.u)t.u=c++;else if(t.u<u.t)return;return u(l.event?l.event(t):t)}}}function F(n,t,u,i,o,r,e,f,c,s){var a,h,p,v,y,g,m,b,C,S,M,P,I,H,L,O,T,j=t.type;if(void 0!==t.constructor)return null;128&u.__u&&(c=!!(32&u.__u),r=[f=t.__e=u.__e]),(a=l.__b)&&a(t);n:if("function"==typeof j)try{if(b=t.props,C="prototype"in j&&j.prototype.render,S=(a=j.contextType)&&i[a.__c],M=a?S?S.props.value:a.__:i,u.__c?m=(h=t.__c=u.__c).__=h.__E:(C?t.__c=h=new j(b,M):(t.__c=h=new x(b,M),h.constructor=j,h.render=B),S&&S.sub(h),h.props=b,h.state||(h.state={}),h.context=M,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=j.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w({},h.__s)),w(h.__s,j.getDerivedStateFromProps(b,h.__s))),v=h.props,y=h.state,h.__v=t,p)C&&null==j.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(C&&null==j.getDerivedStateFromProps&&b!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(b,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(b,h.__s,M)||t.__v===u.__v)){for(t.__v!==u.__v&&(h.props=b,h.state=h.__s,h.__d=!1),t.__e=u.__e,t.__k=u.__k,t.__k.some(function(n){n&&(n.__=t)}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(b,h.__s,M),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,g)})}if(h.context=M,h.props=b,h.__P=n,h.__e=!1,I=l.__r,H=0,C){for(h.state=h.__s,h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),L=0;L<h._sb.length;L++)h.__h.push(h._sb[L]);h._sb=[]}else do{h.__d=!1,I&&I(t),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++H<25);h.state=h.__s,null!=h.getChildContext&&(i=w(w({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(g=h.getSnapshotBeforeUpdate(v,y)),f=$(n,d(O=null!=a&&a.type===k&&null==a.key?a.props.children:a)?O:[O],t,u,i,o,r,e,f,c,s),h.base=t.__e,t.__u&=-161,h.__h.length&&e.push(h),m&&(h.__E=h.__=null)}catch(n){if(t.__v=null,c||null!=r)if(n.then){for(t.__u|=c?160:128;f&&8===f.nodeType&&f.nextSibling;)f=f.nextSibling;r[r.indexOf(f)]=null,t.__e=f}else for(T=r.length;T--;)_(r[T]);else t.__e=u.__e,t.__k=u.__k;l.__e(n,t,u)}else null==r&&t.__v===u.__v?(t.__k=u.__k,t.__e=u.__e):f=t.__e=N(u.__e,t,u,i,o,r,e,c,s);return(a=l.diffed)&&a(t),128&t.__u?void 0:f}function z(n,t,u){for(var i=0;i<u.length;i++)V(u[i],u[++i],u[++i]);l.__c&&l.__c(t,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(n){n.call(t)})}catch(n){l.__e(n,t.__v)}})}function N(t,u,i,o,r,e,f,c,s){var a,h,v,y,w,g,m,b,k=i.props,x=u.props,S=u.type;if("svg"===S?r="http://www.w3.org/2000/svg":"math"===S?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!S&&(S?w.localName===S:3===w.nodeType)){t=w,e[a]=null;break}if(null==t){if(null===S)return document.createTextNode(x);t=document.createElementNS(r,S,x.is&&x),c&&(l.__m&&l.__m(u,e),c=!1),e=null}if(null===S)k===x||c&&t.data===x||(t.data=x);else{if(e=e&&n.call(t.childNodes),k=i.props||p,!c&&null!=e)for(k={},a=0;a<t.attributes.length;a++)k[(w=t.attributes[a]).name]=w.value;for(a in k)if(w=k[a],"children"==a);else if("dangerouslySetInnerHTML"==a)v=w;else if(!(a in x)){if("value"==a&&"defaultValue"in x||"checked"==a&&"defaultChecked"in x)continue;j(t,a,null,w,r)}for(a in x)w=x[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?g=w:"checked"==a?m=w:c&&"function"!=typeof w||k[a]===w||((a.startsWith("on")||"ref"===a&&"function"==typeof w)&&(b=o[Object.keys(o)[0]])&&(w=w.bind(b.props.value)),j(t,a,w,k[a],r));if(h)c||v&&(h.__html===v.__html||h.__html===t.innerHTML)||(t.innerHTML=h.__html),u.__k=[];else if(v&&(t.innerHTML=""),$(t,d(y)?y:[y],u,i,o,"foreignObject"===S?"http://www.w3.org/1999/xhtml":r,e,f,e?e[0]:i.__k&&C(i,0),c,s),null!=e)for(a=e.length;a--;)_(e[a]);c||(a="value","progress"===S&&null==g?t.removeAttribute("value"):void 0!==g&&(g!==t[a]||"progress"===S&&!g||"option"===S&&g!==k[a])&&j(t,a,g,k[a],r),a="checked",void 0!==m&&m!==t[a]&&j(t,a,m,k[a],r))}return t}function V(n,t,u){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==t||(n.__u=n(t))}else n.current=t}catch(n){l.__e(n,u)}}function q(n,t,u){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||V(i,null,t)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,t)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&q(i[o],t,u||"function"!=typeof n.type);u||_(n.__e),n.__c=n.__=n.__e=void 0}function B(n,l,t){return this.constructor(n,t)}function D(t,u,i){var o,r,e,f;u===document&&(u=document.documentElement),l.__&&l.__(t,u),r=(o="function"==typeof i)?null:i&&i.__k||u.__k,e=[],f=[],F(u,t=(!o&&i||u).__k=g(k,null,[t]),r||p,p,u.namespaceURI,!o&&i?[i]:r?null:u.firstChild?n.call(u.childNodes):null,e,!o&&i?i:r?r.__e:u.firstChild,o,f),z(e,t,f)}function E(n,l){D(n,l,E)}function G(l,t,u){var i,o,r,e,f=w({},l.props);for(r in l.type&&l.type.defaultProps&&(e=l.type.defaultProps),t)"key"==r?i=t[r]:"ref"==r?o=t[r]:f[r]=void 0===t[r]&&void 0!==e?e[r]:t[r];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):u),m(l.type,f,i||l.key,o||l.ref,null)}function J(n,l){var t={__c:l="__cC"+h++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var t,u;return this.getChildContext||(t=new Set,(u={})[l]=this,this.getChildContext=function(){return u},this.componentWillUnmount=function(){t=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&t.forEach(function(n){n.__e=!0,M(n)})},this.sub=function(n){t.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){t&&t.delete(n),l&&l.call(n)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}n=v.slice,l={__e:function(n,l,t,u){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,u||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},t=0,u=function(n){return null!=n&&null==n.constructor},x.prototype.setState=function(n,l){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},t),this.props)),n&&w(t,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},x.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},x.prototype.render=k,i=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,f=/(PointerCapture)$|Capture$/i,c=0,s=A(!1),a=A(!0),h=0;export{x as Component,k as Fragment,G as cloneElement,J as createContext,g as createElement,b as createRef,g as h,E as hydrate,u as isValidElement,l as options,D as render,L as toChildArray};
package/tsconfig.json CHANGED
@@ -5,7 +5,6 @@
5
5
  "src/global.d.ts",
6
6
  ],
7
7
  "compilerOptions": {
8
- "types": ["@ui5/webcomponents-tools"],
9
8
  "outDir": "dist",
10
9
  "composite": true,
11
10
  "rootDir": "src",
@@ -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
- });
package/index.js DELETED
@@ -1,208 +0,0 @@
1
- // animations/
2
- import scroll from "./dist/animations/scroll.js";
3
- import slideDown from "./dist/animations/slideDown.js";
4
- import slideUp from "./dist/animations/slideUp.js";
5
-
6
- // config/
7
- import { getAnimationMode, setAnimationMode } from "./dist/config/AnimationMode.js";
8
- import { getCalendarType } from "./dist/config/CalendarType.js";
9
- import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "./dist/config/FormatSettings.js";
10
- import {
11
- setDefaultIconCollection,
12
- getDefaultIconCollection,
13
- } from "./dist/config/Icons.js";
14
- import { RegisteredIconCollection } from "./dist/asset-registries/util/IconCollectionsByTheme.js";
15
- import getEffectiveIconCollection from "./dist/asset-registries/util/getIconCollectionByTheme.js";
16
- import {
17
- getLanguage,
18
- setLanguage,
19
- getDefaultLanguage,
20
- setFetchDefaultLanguage,
21
- getFetchDefaultLanguage,
22
- } from "./dist/config/Language.js";
23
- import { getNoConflict, setNoConflict } from "./dist/config/NoConflict.js";
24
- import {
25
- getTheme,
26
- setTheme,
27
- getDefaultTheme,
28
- } from "./dist/config/Theme.js";
29
-
30
- // decorators/
31
- import customElement from "./dist/decorators/customElement.js";
32
- import event from "./dist/decorators/event.js";
33
- import property from "./dist/decorators/property.js";
34
- import slot from "./dist/decorators/slot.js";
35
-
36
- // delegate/
37
- import ItemNavigation from "./dist/delegate/ItemNavigation.js";
38
- import ResizeHandler from "./dist/delegate/ResizeHandler.js";
39
- import ScrollEnablement from "./dist/delegate/ScrollEnablement.js";
40
-
41
- // locale/
42
- import applyDirection from "./dist/locale/applyDirection.js";
43
- import { attachDirectionChange, detachDirectionChange } from "./dist/locale/directionChange.js";
44
- import getEffectiveDir from "./dist/locale/getEffectiveDir.js";
45
- import { attachLanguageChange, detachLanguageChange } from "./dist/locale/languageChange.js";
46
-
47
- // util/
48
- import { URLListValidator, sanitizeHTML } from "./dist/util/HTMLSanitizer.js";
49
-
50
- // Assets.ts
51
- import { registerI18nLoader } from "./dist/asset-registries/i18n.js";
52
- import { registerLocaleDataLoader } from "./dist/asset-registries/LocaleData.js";
53
- import { registerThemePropertiesLoader } from "./dist/asset-registries/Themes.js";
54
- import { registerIconLoader } from "./dist/asset-registries/Icons.js";
55
-
56
- // Boot.ts
57
- import { attachBoot } from "./dist/Boot.js";
58
-
59
- // CustomElementsScope.ts
60
- import {
61
- setCustomElementsScopingSuffix,
62
- getCustomElementsScopingSuffix,
63
- setCustomElementsScopingRules,
64
- getCustomElementsScopingRules,
65
- getEffectiveScopingSuffixForTag,
66
- } from "./dist/CustomElementsScope.js";
67
-
68
- // Device.ts
69
- import {
70
- supportsTouch,
71
- isSafari,
72
- isChrome,
73
- isFirefox,
74
- isPhone,
75
- isTablet,
76
- isDesktop,
77
- isCombi,
78
- isIOS,
79
- isAndroid,
80
- } from "./dist/Device.js";
81
-
82
- // EventProvider.ts
83
- import EventProvider from "./dist/EventProvider.js";
84
-
85
- // i18nBundle.ts
86
- import I18nBundle, { getI18nBundle, registerCustomI18nBundleGetter } from "./dist/i18nBundle.js";
87
-
88
- // MediaRange.ts
89
- import MediaRange from "./dist/MediaRange.js";
90
-
91
- // Render.ts
92
- import {
93
- renderDeferred,
94
- renderImmediately,
95
- cancelRender,
96
- renderFinished,
97
- } from "./dist/Render.js";
98
-
99
- // Theming.ts
100
- import { addCustomCSS, attachThemeLoaded, detachThemeLoaded } from "./dist/Theming.js";
101
-
102
- // UI5Element.ts
103
- import UI5Element from "./dist/UI5Element.js";
104
-
105
- export default UI5Element;
106
- export {
107
- // animations/
108
- scroll,
109
- slideDown,
110
- slideUp,
111
-
112
- // config/
113
- getAnimationMode,
114
- setAnimationMode,
115
- getCalendarType,
116
- getFirstDayOfWeek,
117
- getLegacyDateCalendarCustomizing,
118
- setDefaultIconCollection,
119
- getDefaultIconCollection,
120
- getEffectiveIconCollection,
121
- RegisteredIconCollection,
122
- getLanguage,
123
- setLanguage,
124
- getDefaultLanguage,
125
- setFetchDefaultLanguage,
126
- getFetchDefaultLanguage,
127
- getNoConflict,
128
- setNoConflict,
129
- getTheme,
130
- setTheme,
131
- getDefaultTheme,
132
-
133
- // decorators/
134
- customElement,
135
- event,
136
- property,
137
- slot,
138
-
139
- // delegate/
140
- ItemNavigation,
141
- ResizeHandler,
142
- ScrollEnablement,
143
-
144
- // locale/
145
- applyDirection,
146
- attachDirectionChange,
147
- detachDirectionChange,
148
- getEffectiveDir,
149
- attachLanguageChange,
150
- detachLanguageChange,
151
-
152
- // util/
153
- URLListValidator,
154
- sanitizeHTML,
155
-
156
- // Assets.ts
157
- registerI18nLoader,
158
- registerLocaleDataLoader,
159
- registerThemePropertiesLoader,
160
- registerIconLoader,
161
-
162
- // Boot.ts
163
- attachBoot,
164
-
165
- // CustomElementsScope.ts
166
- setCustomElementsScopingSuffix,
167
- getCustomElementsScopingSuffix,
168
- setCustomElementsScopingRules,
169
- getCustomElementsScopingRules,
170
- getEffectiveScopingSuffixForTag,
171
-
172
- // Device.ts
173
- supportsTouch,
174
- isSafari,
175
- isChrome,
176
- isFirefox,
177
- isPhone,
178
- isTablet,
179
- isDesktop,
180
- isCombi,
181
- isIOS,
182
- isAndroid,
183
-
184
- // EventProvider.ts
185
- EventProvider,
186
-
187
- // i18nBundle.ts
188
- I18nBundle,
189
- getI18nBundle,
190
- registerCustomI18nBundleGetter,
191
-
192
- // MediaRange.ts
193
- MediaRange,
194
-
195
- // Render.ts
196
- renderDeferred,
197
- renderImmediately,
198
- cancelRender,
199
- renderFinished,
200
-
201
- // Theming.ts
202
- addCustomCSS,
203
- attachThemeLoaded,
204
- detachThemeLoaded,
205
-
206
- // UI5Element.ts
207
- UI5Element,
208
- };
File without changes
File without changes