@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.
- package/CHANGELOG.md +831 -0
- package/LICENSE.txt +201 -0
- package/README.md +7 -7
- package/cypress.config.js +1 -1
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/Assets-fetch.d.ts +1 -0
- package/dist/Assets-fetch.js +3 -0
- package/dist/Assets-fetch.js.map +1 -0
- package/dist/Assets-node.d.ts +12 -0
- package/dist/Assets-node.js +14 -0
- package/dist/Assets-node.js.map +1 -0
- package/dist/Assets.d.ts +1 -0
- package/dist/Assets.js +3 -0
- package/dist/Assets.js.map +1 -0
- package/dist/Boot.js +2 -0
- package/dist/Boot.js.map +1 -1
- package/dist/CustomElementsRegistry.d.ts +2 -1
- package/dist/CustomElementsRegistry.js +5 -2
- package/dist/CustomElementsRegistry.js.map +1 -1
- package/dist/CustomElementsScopeUtils.d.ts +4 -2
- package/dist/CustomElementsScopeUtils.js +8 -1
- package/dist/CustomElementsScopeUtils.js.map +1 -1
- package/dist/DragAndDrop.d.ts +2 -0
- package/dist/DragAndDrop.js +5 -0
- package/dist/DragAndDrop.js.map +1 -0
- package/dist/FeaturesRegistry.d.ts +1 -13
- package/dist/FeaturesRegistry.js +1 -37
- package/dist/FeaturesRegistry.js.map +1 -1
- package/dist/FontFace.js +0 -8
- package/dist/FontFace.js.map +1 -1
- package/dist/InitialConfiguration.js +7 -0
- package/dist/InitialConfiguration.js.map +1 -1
- package/dist/Keys.d.ts +4 -1
- package/dist/Keys.js +4 -1
- package/dist/Keys.js.map +1 -1
- package/dist/ManagedStyles.d.ts +4 -6
- package/dist/ManagedStyles.js +6 -16
- package/dist/ManagedStyles.js.map +1 -1
- package/dist/ScrollbarStyles.d.ts +2 -0
- package/dist/ScrollbarStyles.js +9 -0
- package/dist/ScrollbarStyles.js.map +1 -0
- package/dist/UI5Element.d.ts +48 -17
- package/dist/UI5Element.js +65 -42
- package/dist/UI5Element.js.map +1 -1
- package/dist/UI5ElementMetadata.d.ts +4 -9
- package/dist/UI5ElementMetadata.js +0 -7
- package/dist/UI5ElementMetadata.js.map +1 -1
- package/dist/asset-registries/Icons.d.ts +42 -8
- package/dist/asset-registries/Icons.js +51 -8
- package/dist/asset-registries/Icons.js.map +1 -1
- package/dist/asset-registries/Illustrations.d.ts +133 -8
- package/dist/asset-registries/Illustrations.js +82 -1
- package/dist/asset-registries/Illustrations.js.map +1 -1
- package/dist/asset-registries/LocaleData.js +2 -1
- package/dist/asset-registries/LocaleData.js.map +1 -1
- package/dist/asset-registries/Themes.d.ts +3 -6
- package/dist/asset-registries/Themes.js +1 -2
- package/dist/asset-registries/Themes.js.map +1 -1
- package/dist/config/Language.d.ts +2 -1
- package/dist/config/Language.js +12 -1
- package/dist/config/Language.js.map +1 -1
- package/dist/config/Theme.js +1 -2
- package/dist/config/Theme.js.map +1 -1
- package/dist/config/ThemeRoot.d.ts +3 -1
- package/dist/config/ThemeRoot.js +3 -1
- package/dist/config/ThemeRoot.js.map +1 -1
- package/dist/css/MultipleDragGhost.css +17 -0
- package/dist/css/OpenUI5PopupStyles.css +5 -0
- package/dist/css/ScrollbarStyles.css +3 -0
- package/dist/custom-elements-internal.json +1797 -1736
- package/dist/custom-elements.json +1424 -1301
- package/dist/decorators/bound.d.ts +1 -0
- package/dist/decorators/bound.js +34 -0
- package/dist/decorators/bound.js.map +1 -0
- package/dist/decorators/customElement.d.ts +38 -0
- package/dist/decorators/customElement.js +1 -4
- package/dist/decorators/customElement.js.map +1 -1
- package/dist/decorators/event-strict.d.ts +15 -0
- package/dist/decorators/event-strict.js +26 -0
- package/dist/decorators/event-strict.js.map +1 -0
- package/dist/decorators/event.d.ts +1 -0
- package/dist/decorators/event.js +1 -0
- package/dist/decorators/event.js.map +1 -1
- package/dist/decorators/i18n.js +6 -0
- package/dist/decorators/i18n.js.map +1 -1
- package/dist/decorators.d.ts +4 -1
- package/dist/decorators.js +4 -1
- package/dist/decorators.js.map +1 -1
- package/dist/features/F6Navigation.d.ts +1 -0
- package/dist/features/F6Navigation.js +39 -12
- package/dist/features/F6Navigation.js.map +1 -1
- package/dist/features/OpenUI5Enablement.d.ts +1 -1
- package/dist/features/OpenUI5Support.d.ts +5 -0
- package/dist/features/OpenUI5Support.js +42 -29
- package/dist/features/OpenUI5Support.js.map +1 -1
- package/dist/features/insertOpenUI5PopupStyles.d.ts +2 -0
- package/dist/features/insertOpenUI5PopupStyles.js +9 -0
- package/dist/features/insertOpenUI5PopupStyles.js.map +1 -0
- package/dist/features/patchPopup.d.ts +17 -4
- package/dist/features/patchPopup.js +67 -8
- package/dist/features/patchPopup.js.map +1 -1
- package/dist/generated/AssetParameters.js +1 -1
- package/dist/generated/AssetParameters.js.map +1 -1
- package/dist/generated/VersionInfo.js +6 -6
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
- package/dist/generated/css/BusyIndicator.css.d.ts +2 -3
- package/dist/generated/css/BusyIndicator.css.js +1 -6
- package/dist/generated/css/BusyIndicator.css.js.map +1 -1
- package/dist/generated/css/FontFace.css.d.ts +2 -3
- package/dist/generated/css/FontFace.css.js +36 -6
- package/dist/generated/css/FontFace.css.js.map +1 -1
- package/dist/generated/css/MultipleDragGhost.css.d.ts +2 -0
- package/dist/generated/css/MultipleDragGhost.css.js +2 -0
- package/dist/generated/css/MultipleDragGhost.css.js.map +1 -0
- package/dist/generated/css/OpenUI5PopupStyles.css.d.ts +2 -0
- package/dist/generated/css/OpenUI5PopupStyles.css.js +2 -0
- package/dist/generated/css/OpenUI5PopupStyles.css.js.map +1 -0
- package/dist/generated/css/ScrollbarStyles.css.d.ts +2 -0
- package/dist/generated/css/ScrollbarStyles.css.js +2 -0
- package/dist/generated/css/ScrollbarStyles.css.js.map +1 -0
- package/dist/generated/css/SystemCSSVars.css.d.ts +2 -3
- package/dist/generated/css/SystemCSSVars.css.js +1 -6
- package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
- package/dist/generated/i18n/i18n-defaults.d.ts +3 -0
- package/dist/generated/i18n/i18n-defaults.js +3 -0
- package/dist/generated/i18n/i18n-defaults.js.map +1 -0
- package/dist/generated/json-imports/i18n-fetch.d.ts +1 -0
- package/dist/generated/json-imports/i18n-fetch.js +2 -0
- package/dist/generated/json-imports/i18n-fetch.js.map +1 -0
- package/dist/generated/json-imports/i18n-node.d.ts +1 -0
- package/dist/generated/json-imports/i18n-node.js +2 -0
- package/dist/generated/json-imports/i18n-node.js.map +1 -0
- package/dist/generated/json-imports/i18n.d.ts +1 -0
- package/dist/generated/json-imports/i18n.js +2 -0
- package/dist/generated/json-imports/i18n.js.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.js +91 -0
- package/dist/index.js.map +1 -0
- package/dist/jsx-dev-runtime.d.ts +4 -0
- package/dist/jsx-dev-runtime.js +43 -0
- package/dist/jsx-dev-runtime.js.map +1 -0
- package/dist/jsx-runtime.d.ts +51 -0
- package/dist/jsx-runtime.js +27 -0
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/jsx-utils.d.ts +3 -0
- package/dist/jsx-utils.js +48 -0
- package/dist/jsx-utils.js.map +1 -0
- package/dist/locale/nextFallbackLocale.js +6 -2
- package/dist/locale/nextFallbackLocale.js.map +1 -1
- package/dist/prod/Assets-fetch.js +2 -0
- package/dist/prod/Assets-fetch.js.map +7 -0
- package/dist/prod/Assets-node.js +2 -0
- package/dist/prod/Assets-node.js.map +7 -0
- package/dist/prod/Assets.js +2 -0
- package/dist/prod/Assets.js.map +7 -0
- package/dist/prod/Boot.js +1 -1
- package/dist/prod/Boot.js.map +3 -3
- package/dist/prod/CustomElementsRegistry.js +5 -5
- package/dist/prod/CustomElementsRegistry.js.map +3 -3
- package/dist/prod/CustomElementsScopeUtils.js +1 -1
- package/dist/prod/CustomElementsScopeUtils.js.map +3 -3
- package/dist/prod/DragAndDrop.js +2 -0
- package/dist/prod/DragAndDrop.js.map +7 -0
- package/dist/prod/FeaturesRegistry.js +1 -1
- package/dist/prod/FeaturesRegistry.js.map +3 -3
- package/dist/prod/FontFace.js +1 -1
- package/dist/prod/FontFace.js.map +3 -3
- package/dist/prod/InitialConfiguration.js +1 -1
- package/dist/prod/InitialConfiguration.js.map +2 -2
- package/dist/prod/Keys.js +1 -1
- package/dist/prod/Keys.js.map +3 -3
- package/dist/prod/ManagedStyles.js +1 -1
- package/dist/prod/ManagedStyles.js.map +3 -3
- package/dist/prod/ScrollbarStyles.js +2 -0
- package/dist/prod/ScrollbarStyles.js.map +7 -0
- package/dist/prod/UI5Element.js +1 -1
- package/dist/prod/UI5Element.js.map +3 -3
- package/dist/prod/UI5ElementMetadata.js +1 -1
- package/dist/prod/UI5ElementMetadata.js.map +2 -2
- package/dist/prod/asset-registries/Icons.js +1 -1
- package/dist/prod/asset-registries/Icons.js.map +3 -3
- package/dist/prod/asset-registries/Illustrations.js +1 -1
- package/dist/prod/asset-registries/Illustrations.js.map +3 -3
- package/dist/prod/asset-registries/LocaleData.js +1 -1
- package/dist/prod/asset-registries/LocaleData.js.map +2 -2
- package/dist/prod/asset-registries/Themes.js +1 -1
- package/dist/prod/asset-registries/Themes.js.map +2 -2
- package/dist/prod/config/Language.js +1 -1
- package/dist/prod/config/Language.js.map +3 -3
- package/dist/prod/config/Theme.js +1 -1
- package/dist/prod/config/Theme.js.map +3 -3
- package/dist/prod/config/ThemeRoot.js.map +2 -2
- package/dist/prod/decorators/bound.js +2 -0
- package/dist/prod/decorators/bound.js.map +7 -0
- package/dist/prod/decorators/customElement.js +1 -1
- package/dist/prod/decorators/customElement.js.map +3 -3
- package/dist/prod/decorators/event-strict.js +2 -0
- package/dist/prod/decorators/event-strict.js.map +7 -0
- package/dist/prod/decorators/event.js.map +2 -2
- package/dist/prod/decorators/i18n.js +1 -1
- package/dist/prod/decorators/i18n.js.map +2 -2
- package/dist/prod/decorators.js +1 -1
- package/dist/prod/decorators.js.map +3 -3
- package/dist/prod/features/F6Navigation.js +1 -1
- package/dist/prod/features/F6Navigation.js.map +3 -3
- package/dist/prod/features/OpenUI5Support.js +1 -1
- package/dist/prod/features/OpenUI5Support.js.map +3 -3
- package/dist/prod/features/insertOpenUI5PopupStyles.js +2 -0
- package/dist/prod/features/insertOpenUI5PopupStyles.js.map +7 -0
- package/dist/prod/features/patchPopup.js +1 -1
- package/dist/prod/features/patchPopup.js.map +3 -3
- package/dist/prod/generated/AssetParameters.js +1 -1
- package/dist/prod/generated/AssetParameters.js.map +2 -2
- package/dist/prod/generated/VersionInfo.js +1 -1
- package/dist/prod/generated/VersionInfo.js.map +2 -2
- package/dist/prod/generated/assets/i18n/messagebundle_en.json +1 -0
- package/dist/prod/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
- package/dist/prod/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
- package/dist/prod/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
- package/dist/prod/generated/css/BusyIndicator.css.js +1 -1
- package/dist/prod/generated/css/BusyIndicator.css.js.map +3 -3
- package/dist/prod/generated/css/FontFace.css.js +36 -1
- package/dist/prod/generated/css/FontFace.css.js.map +3 -3
- package/dist/prod/generated/css/MultipleDragGhost.css.js +2 -0
- package/dist/prod/generated/css/MultipleDragGhost.css.js.map +7 -0
- package/dist/prod/generated/css/OpenUI5PopupStyles.css.js +2 -0
- package/dist/prod/generated/css/OpenUI5PopupStyles.css.js.map +7 -0
- package/dist/prod/generated/css/ScrollbarStyles.css.js +2 -0
- package/dist/prod/generated/css/ScrollbarStyles.css.js.map +7 -0
- package/dist/prod/generated/css/SystemCSSVars.css.js +1 -1
- package/dist/prod/generated/css/SystemCSSVars.css.js.map +3 -3
- package/dist/prod/generated/i18n/i18n-defaults.js +2 -0
- package/dist/prod/generated/i18n/i18n-defaults.js.map +7 -0
- package/dist/prod/generated/json-imports/i18n-fetch.js +2 -0
- package/dist/prod/generated/json-imports/i18n-fetch.js.map +7 -0
- package/dist/prod/generated/json-imports/i18n-node.js +2 -0
- package/dist/prod/generated/json-imports/i18n-node.js.map +7 -0
- package/dist/prod/generated/json-imports/i18n.js +2 -0
- package/dist/prod/generated/json-imports/i18n.js.map +7 -0
- package/dist/prod/index.js +2 -0
- package/dist/prod/index.js.map +7 -0
- package/dist/prod/jsx-dev-runtime.js +2 -0
- package/dist/prod/jsx-dev-runtime.js.map +7 -0
- package/dist/prod/jsx-runtime.js +2 -0
- package/dist/prod/jsx-runtime.js.map +7 -0
- package/dist/prod/jsx-utils.js +2 -0
- package/dist/prod/jsx-utils.js.map +7 -0
- package/dist/prod/locale/nextFallbackLocale.js +1 -1
- package/dist/prod/locale/nextFallbackLocale.js.map +3 -3
- package/dist/prod/renderer/JsxRenderer.js +2 -0
- package/dist/prod/renderer/JsxRenderer.js.map +7 -0
- package/dist/prod/renderer/LitRenderer.js +1 -1
- package/dist/prod/renderer/LitRenderer.js.map +3 -3
- package/dist/prod/renderer/executeTemplate.js +1 -1
- package/dist/prod/renderer/executeTemplate.js.map +3 -3
- package/dist/prod/ssr-dom-shim.js +1 -1
- package/dist/prod/ssr-dom-shim.js.map +3 -3
- package/dist/prod/theming/applyTheme.js +1 -1
- package/dist/prod/theming/applyTheme.js.map +3 -3
- package/dist/prod/theming/getStylesString.js +1 -1
- package/dist/prod/theming/getStylesString.js.map +2 -2
- package/dist/prod/theming/getThemeDesignerTheme.js +1 -1
- package/dist/prod/theming/getThemeDesignerTheme.js.map +3 -3
- package/dist/prod/thirdparty/preact/jsx.d.js +2 -0
- package/dist/prod/thirdparty/preact/jsx.d.js.map +7 -0
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +2 -0
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +7 -0
- package/dist/prod/thirdparty/preact/jsxRuntime.module.js +1 -0
- package/dist/prod/thirdparty/preact/preact.module.d.js +2 -0
- package/dist/prod/thirdparty/preact/preact.module.d.js.map +7 -0
- package/dist/prod/thirdparty/preact/preact.module.js +1 -0
- package/dist/prod/types/SortOrder.js +2 -0
- package/dist/prod/types/SortOrder.js.map +7 -0
- package/dist/prod/updateShadowRoot.js +1 -1
- package/dist/prod/updateShadowRoot.js.map +3 -3
- package/dist/prod/util/AccessibilityTextsHelper.js +2 -0
- package/dist/prod/util/AccessibilityTextsHelper.js.map +7 -0
- package/dist/prod/util/ColorConversion.js +1 -1
- package/dist/prod/util/ColorConversion.js.map +3 -3
- package/dist/prod/util/FocusableElements.js +1 -1
- package/dist/prod/util/FocusableElements.js.map +3 -3
- package/dist/prod/util/HTMLSanitizer.js.map +1 -1
- package/dist/prod/util/SelectionAssistant.js +1 -1
- package/dist/prod/util/SelectionAssistant.js.map +3 -3
- package/dist/prod/util/StringHelper.js +1 -1
- package/dist/prod/util/StringHelper.js.map +3 -3
- package/dist/prod/util/TabbableElements.js +1 -1
- package/dist/prod/util/TabbableElements.js.map +2 -2
- package/dist/prod/util/dragAndDrop/DragRegistry.js +1 -1
- package/dist/prod/util/dragAndDrop/DragRegistry.js.map +3 -3
- package/dist/prod/util/dragAndDrop/findClosestPosition.js +1 -1
- package/dist/prod/util/dragAndDrop/findClosestPosition.js.map +3 -3
- package/dist/prod/util/dragAndDrop/handleDragOver.js +2 -0
- package/dist/prod/util/dragAndDrop/handleDragOver.js.map +7 -0
- package/dist/prod/util/dragAndDrop/handleDrop.js +2 -0
- package/dist/prod/util/dragAndDrop/handleDrop.js.map +7 -0
- package/dist/prod/util/getFastNavigationGroups.js +1 -1
- package/dist/prod/util/getFastNavigationGroups.js.map +2 -2
- package/dist/prod/util/getParentElement.js +1 -1
- package/dist/prod/util/getParentElement.js.map +3 -3
- package/dist/prod/util/hash2str.js +2 -0
- package/dist/prod/util/hash2str.js.map +7 -0
- package/dist/prod/util/isElementHidden.js +1 -1
- package/dist/prod/util/isElementHidden.js.map +3 -3
- package/dist/prod/util/isEventMarked.js +2 -0
- package/dist/prod/util/isEventMarked.js.map +7 -0
- package/dist/prod/util/throttle.js +2 -0
- package/dist/prod/util/throttle.js.map +7 -0
- package/dist/prod/util/toLowercaseEnumValue.js +2 -0
- package/dist/prod/util/toLowercaseEnumValue.js.map +7 -0
- package/dist/prod/util/valueStateNavigation.js +2 -0
- package/dist/prod/util/valueStateNavigation.js.map +7 -0
- package/dist/prod/validateThemeRoot.js +1 -1
- package/dist/prod/validateThemeRoot.js.map +2 -2
- package/dist/renderer/JsxRenderer.d.ts +3 -0
- package/dist/renderer/JsxRenderer.js +26 -0
- package/dist/renderer/JsxRenderer.js.map +1 -0
- package/dist/renderer/LitRenderer.js +4 -3
- package/dist/renderer/LitRenderer.js.map +1 -1
- package/dist/renderer/executeTemplate.d.ts +3 -12
- package/dist/renderer/executeTemplate.js +1 -20
- package/dist/renderer/executeTemplate.js.map +1 -1
- package/dist/ssr-dom-shim.js +52 -1
- package/dist/ssr-dom-shim.js.map +1 -1
- package/dist/theming/applyTheme.d.ts +2 -0
- package/dist/theming/applyTheme.js +21 -30
- package/dist/theming/applyTheme.js.map +1 -1
- package/dist/theming/getStylesString.js +2 -4
- package/dist/theming/getStylesString.js.map +1 -1
- package/dist/theming/getThemeDesignerTheme.js +2 -1
- package/dist/theming/getThemeDesignerTheme.js.map +1 -1
- package/dist/thirdparty/preact/jsx.d.ts +2616 -0
- package/dist/thirdparty/preact/jsxRuntime.module.d.ts +62 -0
- package/dist/thirdparty/preact/jsxRuntime.module.js +1 -0
- package/dist/thirdparty/preact/preact.module.d.ts +398 -0
- package/dist/thirdparty/preact/preact.module.js +1 -0
- package/dist/types/SortOrder.d.ts +24 -0
- package/dist/types/SortOrder.js +26 -0
- package/dist/types/SortOrder.js.map +1 -0
- package/dist/types.d.ts +30 -27
- package/dist/types.js.map +1 -1
- package/dist/updateShadowRoot.js +1 -2
- package/dist/updateShadowRoot.js.map +1 -1
- package/dist/util/{AriaLabelHelper.d.ts → AccessibilityTextsHelper.d.ts} +3 -1
- package/dist/util/{AriaLabelHelper.js → AccessibilityTextsHelper.js} +36 -8
- package/dist/util/AccessibilityTextsHelper.js.map +1 -0
- package/dist/util/ColorConversion.d.ts +2 -1
- package/dist/util/ColorConversion.js +35 -23
- package/dist/util/ColorConversion.js.map +1 -1
- package/dist/util/FocusableElements.js +43 -15
- package/dist/util/FocusableElements.js.map +1 -1
- package/dist/util/HTMLSanitizer.d.ts +2 -0
- package/dist/util/HTMLSanitizer.js +2 -2
- package/dist/util/HTMLSanitizer.js.map +1 -1
- package/dist/util/SelectionAssistant.js +0 -8
- package/dist/util/SelectionAssistant.js.map +1 -1
- package/dist/util/StringHelper.d.ts +2 -1
- package/dist/util/StringHelper.js +4 -1
- package/dist/util/StringHelper.js.map +1 -1
- package/dist/util/TabbableElements.js +2 -2
- package/dist/util/TabbableElements.js.map +1 -1
- package/dist/util/dragAndDrop/DragRegistry.d.ts +35 -8
- package/dist/util/dragAndDrop/DragRegistry.js +42 -50
- package/dist/util/dragAndDrop/DragRegistry.js.map +1 -1
- package/dist/util/dragAndDrop/findClosestPosition.d.ts +2 -1
- package/dist/util/dragAndDrop/findClosestPosition.js +45 -41
- package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -1
- package/dist/util/dragAndDrop/handleDragOver.d.ts +16 -0
- package/dist/util/dragAndDrop/handleDragOver.js +42 -0
- package/dist/util/dragAndDrop/handleDragOver.js.map +1 -0
- package/dist/util/dragAndDrop/handleDrop.d.ts +5 -0
- package/dist/util/dragAndDrop/handleDrop.js +22 -0
- package/dist/util/dragAndDrop/handleDrop.js.map +1 -0
- package/dist/util/getClassCopy.d.ts +16 -5
- package/dist/util/getFastNavigationGroups.js +6 -1
- package/dist/util/getFastNavigationGroups.js.map +1 -1
- package/dist/util/getParentElement.d.ts +1 -1
- package/dist/util/getParentElement.js +2 -2
- package/dist/util/getParentElement.js.map +1 -1
- package/dist/util/hash2str.d.ts +1 -0
- package/dist/util/hash2str.js +14 -0
- package/dist/util/hash2str.js.map +1 -0
- package/dist/util/isElementHidden.js +2 -1
- package/dist/util/isElementHidden.js.map +1 -1
- package/dist/util/isEventMarked.d.ts +2 -0
- package/dist/util/isEventMarked.js +6 -0
- package/dist/util/isEventMarked.js.map +1 -0
- package/dist/util/throttle.d.ts +2 -0
- package/dist/util/throttle.js +20 -0
- package/dist/util/throttle.js.map +1 -0
- package/dist/util/toLowercaseEnumValue.d.ts +3 -0
- package/dist/util/toLowercaseEnumValue.js +4 -0
- package/dist/util/toLowercaseEnumValue.js.map +1 -0
- package/dist/util/valueStateNavigation.d.ts +8 -0
- package/dist/util/valueStateNavigation.js +40 -0
- package/dist/util/valueStateNavigation.js.map +1 -0
- package/dist/validateThemeRoot.js +6 -2
- package/dist/validateThemeRoot.js.map +1 -1
- package/dist/vscode.html-custom-data.json +1 -1
- package/package-scripts.cjs +65 -34
- package/package.json +38 -25
- package/src/css/MultipleDragGhost.css +17 -0
- package/src/css/OpenUI5PopupStyles.css +5 -0
- package/src/css/ScrollbarStyles.css +3 -0
- package/src/i18n/messagebundle.properties +5 -0
- package/src/i18n/messagebundle_en.properties +2 -0
- package/src/i18n/messagebundle_en_US_sappsd.properties +2 -0
- package/src/i18n/messagebundle_en_US_saprigi.properties +2 -0
- package/src/i18n/messagebundle_en_US_saptrc.properties +2 -0
- package/src/thirdparty/preact/jsxRuntime.module.js +1 -0
- package/src/thirdparty/preact/preact.module.js +1 -0
- package/src/thirdparty/preact/version.txt +1 -0
- package/tsconfig.json +0 -1
- package/cypress/specs/Accessor.cy.ts +0 -79
- package/cypress/specs/Boot.cy.ts +0 -23
- package/cypress/specs/ConfigurationChange.cy.ts +0 -41
- package/cypress/specs/ConfigurationScript.cy.ts +0 -116
- package/cypress/specs/ConfigurationURL.cy.ts +0 -182
- package/cypress/specs/CustomMount.cy.ts +0 -34
- package/cypress/specs/CustomTheme.cy.ts +0 -36
- package/cypress/specs/EventProvider.cy.ts +0 -59
- package/cypress/specs/SystemDOMElements.cy.ts +0 -8
- package/cypress/specs/Theming.cy.ts +0 -74
- package/cypress/specs/UI5ElementInvalidation.cy.ts +0 -207
- package/cypress/specs/UI5ElementLifecycle.cy.ts +0 -82
- package/cypress/specs/UI5ElementListenForChildPropChanges.cy.ts +0 -62
- package/cypress/specs/UI5ElementMetadataExt.cy.ts +0 -42
- package/cypress/specs/UI5ElementPropertyValidation.cy.ts +0 -16
- package/cypress/specs/UI5ElementPropsAndAttrs.cy.ts +0 -113
- package/cypress/specs/UI5ElementShadowDOM.cy.ts +0 -30
- package/cypress/specs/UI5ElementSlots.cy.ts +0 -116
- package/cypress/specs/WithComplexTemplate.cy.ts +0 -32
- package/cypress/tsconfig.json +0 -20
- package/dist/MarkedEvents.d.ts +0 -9
- package/dist/MarkedEvents.js +0 -15
- package/dist/MarkedEvents.js.map +0 -1
- package/dist/css/FontFace.css +0 -96
- package/dist/css/OverrideFontFace.css +0 -32
- package/dist/generated/css/OverrideFontFace.css.d.ts +0 -3
- package/dist/generated/css/OverrideFontFace.css.js +0 -7
- package/dist/generated/css/OverrideFontFace.css.js.map +0 -1
- package/dist/prod/MarkedEvents.js +0 -2
- package/dist/prod/MarkedEvents.js.map +0 -7
- package/dist/prod/generated/css/OverrideFontFace.css.js +0 -2
- package/dist/prod/generated/css/OverrideFontFace.css.js.map +0 -7
- package/dist/prod/types/AriaHasPopup.js +0 -2
- package/dist/prod/types/AriaHasPopup.js.map +0 -7
- package/dist/prod/types/AriaLandmarkRole.js +0 -2
- package/dist/prod/types/AriaLandmarkRole.js.map +0 -7
- package/dist/prod/types/AriaRole.js +0 -2
- package/dist/prod/types/AriaRole.js.map +0 -7
- package/dist/prod/util/AriaLabelHelper.js +0 -2
- package/dist/prod/util/AriaLabelHelper.js.map +0 -7
- package/dist/prod/util/getEffectiveScrollbarStyle.js +0 -26
- package/dist/prod/util/getEffectiveScrollbarStyle.js.map +0 -7
- package/dist/prod/util/isElementContainingBlock.js +0 -2
- package/dist/prod/util/isElementContainingBlock.js.map +0 -7
- package/dist/types/AriaHasPopup.d.ts +0 -32
- package/dist/types/AriaHasPopup.js +0 -34
- package/dist/types/AriaHasPopup.js.map +0 -1
- package/dist/types/AriaLandmarkRole.d.ts +0 -79
- package/dist/types/AriaLandmarkRole.js +0 -81
- package/dist/types/AriaLandmarkRole.js.map +0 -1
- package/dist/types/AriaRole.d.ts +0 -27
- package/dist/types/AriaRole.js +0 -29
- package/dist/types/AriaRole.js.map +0 -1
- package/dist/util/AriaLabelHelper.js.map +0 -1
- package/dist/util/getEffectiveScrollbarStyle.d.ts +0 -2
- package/dist/util/getEffectiveScrollbarStyle.js +0 -34
- package/dist/util/getEffectiveScrollbarStyle.js.map +0 -1
- package/dist/util/isElementContainingBlock.d.ts +0 -2
- package/dist/util/isElementContainingBlock.js +0 -11
- package/dist/util/isElementContainingBlock.js.map +0 -1
- package/index.js +0 -214
- package/src/css/FontFace.css +0 -96
- package/src/css/OverrideFontFace.css +0 -32
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import "../../test/test-elements/Accessor.js";
|
|
2
|
-
|
|
3
|
-
describe("Framework boot", () => {
|
|
4
|
-
it("Setting property updates attribute, state and DOM", () => {
|
|
5
|
-
cy.mount(`<ui5-test-accessor></ui5-test-accessor>`);
|
|
6
|
-
|
|
7
|
-
cy.get("[ui5-test-accessor]")
|
|
8
|
-
.as("testAccessor")
|
|
9
|
-
.invoke("prop", "myProp", true);
|
|
10
|
-
|
|
11
|
-
cy.get("@testAccessor")
|
|
12
|
-
.should("have.attr", "my-prop");
|
|
13
|
-
|
|
14
|
-
cy.get("@testAccessor")
|
|
15
|
-
.shadow()
|
|
16
|
-
.find("div")
|
|
17
|
-
.should("have.text", "true");
|
|
18
|
-
|
|
19
|
-
cy.get("@testAccessor")
|
|
20
|
-
.should("have.prop", "storage", true);
|
|
21
|
-
|
|
22
|
-
cy.get("[ui5-test-accessor]")
|
|
23
|
-
.as("testAccessor")
|
|
24
|
-
.invoke("prop", "myProp", false);
|
|
25
|
-
|
|
26
|
-
cy.get("@testAccessor")
|
|
27
|
-
.should("not.have.attr", "my-prop");
|
|
28
|
-
|
|
29
|
-
cy.get("@testAccessor")
|
|
30
|
-
.shadow()
|
|
31
|
-
.find("div")
|
|
32
|
-
.should("have.text", "false");
|
|
33
|
-
|
|
34
|
-
cy.get("@testAccessor")
|
|
35
|
-
.should("have.prop", "storage", false);
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it("Setting attribute updates property, state and DOM", () => {
|
|
39
|
-
cy.mount(`<ui5-test-accessor></ui5-test-accessor>`);
|
|
40
|
-
|
|
41
|
-
cy.get("[ui5-test-accessor]")
|
|
42
|
-
.as("testAccessor")
|
|
43
|
-
.invoke("attr", "my-prop", "");
|
|
44
|
-
|
|
45
|
-
cy.get("@testAccessor")
|
|
46
|
-
.should("have.attr", "my-prop");
|
|
47
|
-
|
|
48
|
-
cy.get("@testAccessor")
|
|
49
|
-
.shadow()
|
|
50
|
-
.find("div")
|
|
51
|
-
.should("have.text", "true");
|
|
52
|
-
|
|
53
|
-
cy.get("@testAccessor")
|
|
54
|
-
.should("have.prop", "storage", true);
|
|
55
|
-
|
|
56
|
-
cy.get("[ui5-test-accessor]")
|
|
57
|
-
.as("testAccessor")
|
|
58
|
-
.invoke("removeAttr", "my-prop");
|
|
59
|
-
|
|
60
|
-
cy.get("@testAccessor")
|
|
61
|
-
.should("not.have.attr", "my-prop");
|
|
62
|
-
|
|
63
|
-
cy.get("@testAccessor")
|
|
64
|
-
.shadow()
|
|
65
|
-
.find("div")
|
|
66
|
-
.should("have.text", "false");
|
|
67
|
-
|
|
68
|
-
cy.get("@testAccessor")
|
|
69
|
-
.should("have.prop", "storage", false);
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
it("should stop searching for accessors when HTMLElement is reached", () => {
|
|
73
|
-
cy.mount(`<ui5-test-accessor></ui5-test-accessor>`);
|
|
74
|
-
|
|
75
|
-
cy.get("[ui5-test-accessor]")
|
|
76
|
-
.invoke("prop", "title")
|
|
77
|
-
.should("be.undefined");
|
|
78
|
-
});
|
|
79
|
-
});
|
package/cypress/specs/Boot.cy.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { registerThemePropertiesLoader } from "../../src/AssetRegistry.js";
|
|
2
|
-
import { boot } from "../../src/Boot.js";
|
|
3
|
-
import { hasStyle } from "../../src/ManagedStyles.js";
|
|
4
|
-
|
|
5
|
-
describe("Framework boot", () => {
|
|
6
|
-
it("Tests theme loading, when registered after 'attachBoot' and 'boot'", () => {
|
|
7
|
-
cy.wrap({ boot })
|
|
8
|
-
.invoke("boot");
|
|
9
|
-
|
|
10
|
-
cy.wrap({ registerThemePropertiesLoader })
|
|
11
|
-
.invoke("registerThemePropertiesLoader", "@ui5/webcomponents-theming", "sap_horizon", () => {
|
|
12
|
-
return Promise.resolve({
|
|
13
|
-
content: `:root{ --customCol: #fff; --customBg: #000; }`,
|
|
14
|
-
packageName: "",
|
|
15
|
-
fileName: "",
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
cy.wrap({ hasStyle })
|
|
20
|
-
.invoke("hasStyle", "data-ui5-theme-properties", "@ui5/webcomponents-theming")
|
|
21
|
-
.should("be.true");
|
|
22
|
-
});
|
|
23
|
-
});
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import "../../test/test-elements/Accessor.js";
|
|
2
|
-
import { setTheme, getTheme } from "../../src/config/Theme.js";
|
|
3
|
-
import { setThemeRoot, getThemeRoot } from "../../src/config/ThemeRoot.js";
|
|
4
|
-
import { setNoConflict, getNoConflict } from "../../src/config/NoConflict.js";
|
|
5
|
-
|
|
6
|
-
describe("Some configuration options can be changed at runtime", () => {
|
|
7
|
-
it("Tests that theme can be changed", () => {
|
|
8
|
-
const newTheme = "sap_horizon_hcb";
|
|
9
|
-
|
|
10
|
-
cy.wrap({ setTheme })
|
|
11
|
-
.invoke("setTheme", newTheme);
|
|
12
|
-
|
|
13
|
-
cy.wrap({ getTheme })
|
|
14
|
-
.invoke("getTheme")
|
|
15
|
-
.should("equal", newTheme);
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it("Tests that noConflict can be changed", () => {
|
|
19
|
-
const noConflictObject = { events: ["selection-change"] };
|
|
20
|
-
|
|
21
|
-
cy.wrap({ setNoConflict })
|
|
22
|
-
.invoke("setNoConflict", noConflictObject);
|
|
23
|
-
|
|
24
|
-
cy.wrap({ getNoConflict })
|
|
25
|
-
.invoke("getNoConflict")
|
|
26
|
-
.should("deep.equal", noConflictObject)
|
|
27
|
-
.its("events")
|
|
28
|
-
.should("deep.equal", noConflictObject.events);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it("Tests that theme root is applied", () => {
|
|
32
|
-
const newThemeRoot = "https://example.com/";
|
|
33
|
-
|
|
34
|
-
cy.wrap({ setThemeRoot })
|
|
35
|
-
.invoke("setThemeRoot", newThemeRoot);
|
|
36
|
-
|
|
37
|
-
cy.wrap({ getThemeRoot })
|
|
38
|
-
.invoke("getThemeRoot")
|
|
39
|
-
.should("deep.equal", newThemeRoot);
|
|
40
|
-
});
|
|
41
|
-
});
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { getAnimationMode } from "../../src/config/AnimationMode.js";
|
|
2
|
-
import { getCalendarType } from "../../src/config/CalendarType.js";
|
|
3
|
-
import { getDefaultFontLoading } from "../../src/config/Fonts.js";
|
|
4
|
-
import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "../../src/config/FormatSettings.js";
|
|
5
|
-
import { getLanguage } from "../../src/config/Language.js";
|
|
6
|
-
import { getNoConflict } from "../../src/config/NoConflict.js";
|
|
7
|
-
import { getTheme } from "../../src/config/Theme.js";
|
|
8
|
-
import { getEnableDefaultTooltips } from "../../src/config/Tooltips.js";
|
|
9
|
-
import { resetConfiguration } from "../../src/InitialConfiguration.js";
|
|
10
|
-
|
|
11
|
-
describe("Configuration script", () => {
|
|
12
|
-
const configurationObject = {
|
|
13
|
-
"theme": "sap_horizon_hcb",
|
|
14
|
-
"animationMode": "basic",
|
|
15
|
-
"rtl": true,
|
|
16
|
-
"language": "ja",
|
|
17
|
-
"calendarType": "Japanese",
|
|
18
|
-
"formatSettings": {
|
|
19
|
-
"firstDayOfWeek": 0,
|
|
20
|
-
"legacyDateCalendarCustomizing": [
|
|
21
|
-
{
|
|
22
|
-
"dateFormat": "A",
|
|
23
|
-
"islamicMonthStart": "14351201",
|
|
24
|
-
"gregDate": "20140925",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"dateFormat": "A",
|
|
28
|
-
"islamicMonthStart": "14360101",
|
|
29
|
-
"gregDate": "20141024",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"dateFormat": "A",
|
|
33
|
-
"islamicMonthStart": "14360201",
|
|
34
|
-
"gregDate": "20141123",
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
"noConflict": {
|
|
39
|
-
"events": ["selection-change", "header-click"],
|
|
40
|
-
},
|
|
41
|
-
"defaultFontLoading": false,
|
|
42
|
-
"enableDefaultTooltips": false,
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
before(() => {
|
|
46
|
-
cy.mount(`<ui5-test-generic></ui5-test-generic>`, {
|
|
47
|
-
ui5Configuration: configurationObject,
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
cy.wrap({ resetConfiguration })
|
|
51
|
-
.invoke("resetConfiguration", true);
|
|
52
|
-
|
|
53
|
-
cy.get("script[data-ui5-config]")
|
|
54
|
-
.should("exist")
|
|
55
|
-
.then($el => {
|
|
56
|
-
return $el.get(0).innerHTML;
|
|
57
|
-
})
|
|
58
|
-
.should("equal", JSON.stringify(configurationObject));
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
it("getLanguage", () => {
|
|
62
|
-
cy.wrap({ getLanguage })
|
|
63
|
-
.invoke("getLanguage")
|
|
64
|
-
.should("equal", configurationObject.language);
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
it("getCalendarType", () => {
|
|
68
|
-
cy.wrap({ getCalendarType })
|
|
69
|
-
.invoke("getCalendarType")
|
|
70
|
-
.should("equal", configurationObject.calendarType);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
it("getFirstDayOfWeek", () => {
|
|
74
|
-
cy.wrap({ getFirstDayOfWeek })
|
|
75
|
-
.invoke("getFirstDayOfWeek")
|
|
76
|
-
.should("equal", configurationObject.formatSettings.firstDayOfWeek);
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
it("getLegacyDateCalendarCustomizing", () => {
|
|
80
|
-
cy.wrap({ getLegacyDateCalendarCustomizing })
|
|
81
|
-
.invoke("getLegacyDateCalendarCustomizing")
|
|
82
|
-
.should("deep.equal", configurationObject.formatSettings.legacyDateCalendarCustomizing);
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
it("getAnimationMode", () => {
|
|
86
|
-
cy.wrap({ getAnimationMode })
|
|
87
|
-
.invoke("getAnimationMode")
|
|
88
|
-
.should("equal", configurationObject.animationMode);
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
it("getEnableDefaultTooltips", () => {
|
|
92
|
-
cy.wrap({ getTheme })
|
|
93
|
-
.invoke("getTheme")
|
|
94
|
-
.should("equal", configurationObject.theme);
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
it("getNoConflict", () => {
|
|
98
|
-
cy.wrap({ getNoConflict })
|
|
99
|
-
.invoke("getNoConflict")
|
|
100
|
-
.should("deep.equal", configurationObject.noConflict)
|
|
101
|
-
.its("events")
|
|
102
|
-
.should("deep.equal", configurationObject.noConflict.events);
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
it("getDefaultFontLoading", () => {
|
|
106
|
-
cy.wrap({ getDefaultFontLoading })
|
|
107
|
-
.invoke("getDefaultFontLoading")
|
|
108
|
-
.should("equal", false);
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
it("getEnableDefaultTooltips", () => {
|
|
112
|
-
cy.wrap({ getEnableDefaultTooltips })
|
|
113
|
-
.invoke("getEnableDefaultTooltips")
|
|
114
|
-
.should("equal", false);
|
|
115
|
-
});
|
|
116
|
-
});
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { internals } from "../../src/Location.js";
|
|
2
|
-
import "../../test/test-elements/Generic.js";
|
|
3
|
-
import { resetConfiguration } from "../../src/InitialConfiguration.js";
|
|
4
|
-
import { getLanguage } from "../../src/config/Language.js";
|
|
5
|
-
import { getCalendarType } from "../../src/config/CalendarType.js";
|
|
6
|
-
import { getTheme } from "../../src/config/Theme.js";
|
|
7
|
-
import { getAnimationMode } from "../../src/config/AnimationMode.js";
|
|
8
|
-
import { getThemeRoot } from "../../src/config/ThemeRoot.js";
|
|
9
|
-
|
|
10
|
-
describe("Some settings can be set via SAP UI URL params", () => {
|
|
11
|
-
before(() => {
|
|
12
|
-
const searchParams = "sap-ui-rtl=true&sap-ui-language=ja&sap-ui-calendarType=Japanese&sap-ui-theme=sap_horizon_hcb&sap-ui-animationMode=basic";
|
|
13
|
-
|
|
14
|
-
cy.stub(internals, "search", () => {
|
|
15
|
-
return searchParams;
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
cy.then(() => {
|
|
19
|
-
return resetConfiguration(true);
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
cy.wrap(internals)
|
|
23
|
-
.invoke("search")
|
|
24
|
-
.should("be.equal", searchParams);
|
|
25
|
-
|
|
26
|
-
cy.mount(`<ui5-test-generic></ui5-test-generic>`);
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
it("Tests that language is applied", () => {
|
|
30
|
-
cy.wrap({ getLanguage })
|
|
31
|
-
.invoke("getLanguage")
|
|
32
|
-
.should("equal", "ja");
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
it("Tests that calendarType is applied", () => {
|
|
36
|
-
cy.wrap({ getCalendarType })
|
|
37
|
-
.invoke("getCalendarType")
|
|
38
|
-
.should("equal", "Japanese");
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it("Tests that theme is applied", () => {
|
|
42
|
-
cy.wrap({ getTheme })
|
|
43
|
-
.invoke("getTheme")
|
|
44
|
-
.should("equal", "sap_horizon_hcb");
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it("Tests that animationMode is applied", () => {
|
|
48
|
-
cy.wrap({ getAnimationMode })
|
|
49
|
-
.invoke("getAnimationMode")
|
|
50
|
-
.should("equal", "basic");
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
describe("Different themeRoot configurations", () => {
|
|
55
|
-
it("Allowed theme root", () => {
|
|
56
|
-
const searchParams = "sap-ui-theme=sap_horizon_hcb@https://example.com";
|
|
57
|
-
|
|
58
|
-
cy.stub(internals, "search", () => {
|
|
59
|
-
return searchParams;
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
cy.wrap({ resetConfiguration })
|
|
63
|
-
.invoke("resetConfiguration", true);
|
|
64
|
-
|
|
65
|
-
cy.wrap(internals)
|
|
66
|
-
.invoke("search")
|
|
67
|
-
.should("be.equal", searchParams);
|
|
68
|
-
|
|
69
|
-
cy.mount(`<ui5-test-generic></ui5-test-generic>`);
|
|
70
|
-
|
|
71
|
-
cy.wrap({ getThemeRoot })
|
|
72
|
-
.invoke("getThemeRoot")
|
|
73
|
-
.should("equal", "https://example.com/UI5/");
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
it("Unallowed theme root", () => {
|
|
77
|
-
const searchParams = "sap-ui-theme=sap_horizon_hcb@https://another-example.com";
|
|
78
|
-
|
|
79
|
-
cy.stub(internals, "search", () => {
|
|
80
|
-
return searchParams;
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
cy.wrap({ resetConfiguration })
|
|
84
|
-
.invoke("resetConfiguration", true);
|
|
85
|
-
|
|
86
|
-
cy.wrap(internals)
|
|
87
|
-
.invoke("search")
|
|
88
|
-
.should("be.equal", searchParams);
|
|
89
|
-
|
|
90
|
-
cy.mount(`<ui5-test-generic></ui5-test-generic>`);
|
|
91
|
-
|
|
92
|
-
cy.wrap({ getThemeRoot })
|
|
93
|
-
.invoke("getThemeRoot")
|
|
94
|
-
.should("equal", `${window.location.origin}/UI5/`);
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
it("Relative theme root", () => {
|
|
98
|
-
const searchParams = "sap-ui-theme=sap_horizon_hcb@./test";
|
|
99
|
-
|
|
100
|
-
cy.stub(internals, "search", () => {
|
|
101
|
-
return searchParams;
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
cy.wrap({ resetConfiguration })
|
|
105
|
-
.invoke("resetConfiguration", true);
|
|
106
|
-
|
|
107
|
-
cy.wrap(internals)
|
|
108
|
-
.invoke("search")
|
|
109
|
-
.should("be.equal", searchParams);
|
|
110
|
-
|
|
111
|
-
cy.mount(`<ui5-test-generic></ui5-test-generic>`);
|
|
112
|
-
|
|
113
|
-
cy.wrap({ getThemeRoot })
|
|
114
|
-
.invoke("getThemeRoot")
|
|
115
|
-
.then(themeRoot => {
|
|
116
|
-
return themeRoot?.endsWith("/test/UI5/");
|
|
117
|
-
})
|
|
118
|
-
.should("be.true");
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
describe("Some settings can be set via SAP URL params", () => {
|
|
123
|
-
before(() => {
|
|
124
|
-
const searchParams = "sap-language=bg&sap-theme=sap_fiori_3_dark";
|
|
125
|
-
|
|
126
|
-
cy.stub(internals, "search", () => {
|
|
127
|
-
return searchParams;
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
cy.wrap({ resetConfiguration })
|
|
131
|
-
.invoke("resetConfiguration", true);
|
|
132
|
-
|
|
133
|
-
cy.wrap(internals)
|
|
134
|
-
.invoke("search")
|
|
135
|
-
.should("be.equal", searchParams);
|
|
136
|
-
|
|
137
|
-
cy.mount(`<ui5-test-generic></ui5-test-generic>`);
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
it("Tests that language is applied via sap-ui-language", () => {
|
|
141
|
-
cy.wrap({ getLanguage })
|
|
142
|
-
.invoke("getLanguage")
|
|
143
|
-
.should("equal", "bg");
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
it("Tests that theme is applied via sap-ui-theme", () => {
|
|
147
|
-
cy.wrap({ getTheme })
|
|
148
|
-
.invoke("getTheme")
|
|
149
|
-
.should("equal", "sap_fiori_3_dark");
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
|
|
153
|
-
describe("Some settings can be set via SAP UI URL params", () => {
|
|
154
|
-
before(() => {
|
|
155
|
-
const searchParams = "sap-language=bg&sap-ui-language=de&sap-theme=sap_fiori_3_dark&sap-theme=sap_fiori_3_hcb";
|
|
156
|
-
|
|
157
|
-
cy.stub(internals, "search", () => {
|
|
158
|
-
return searchParams;
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
cy.wrap({ resetConfiguration })
|
|
162
|
-
.invoke("resetConfiguration", true);
|
|
163
|
-
|
|
164
|
-
cy.wrap(internals)
|
|
165
|
-
.invoke("search")
|
|
166
|
-
.should("be.equal", searchParams);
|
|
167
|
-
|
|
168
|
-
cy.mount(`<ui5-test-generic></ui5-test-generic>`);
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
it("Tests that language is applied via sap-ui-language", () => {
|
|
172
|
-
cy.wrap({ getLanguage })
|
|
173
|
-
.invoke("getLanguage")
|
|
174
|
-
.should("equal", "de");
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
it("Tests that theme is applied via sap-ui-theme", () => {
|
|
178
|
-
cy.wrap({ getTheme })
|
|
179
|
-
.invoke("getTheme")
|
|
180
|
-
.should("equal", "sap_fiori_3_hcb");
|
|
181
|
-
});
|
|
182
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { getAnimationMode } from "../../src/config/AnimationMode.js";
|
|
2
|
-
|
|
3
|
-
describe("Custom mount", () => {
|
|
4
|
-
it("mount", () => {
|
|
5
|
-
cy.mount(`<button>Test</button>`);
|
|
6
|
-
|
|
7
|
-
cy.get("button")
|
|
8
|
-
.should("exist")
|
|
9
|
-
.and("have.text", "Test");
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
it("mount with configuration", () => {
|
|
13
|
-
const configurationObject = { "animationMode": "basic" };
|
|
14
|
-
|
|
15
|
-
cy.mount(`<button>Test with configuration</button>`, {
|
|
16
|
-
ui5Configuration: configurationObject,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
cy.get("button")
|
|
20
|
-
.should("exist")
|
|
21
|
-
.and("have.text", "Test with configuration");
|
|
22
|
-
|
|
23
|
-
cy.get("script[data-ui5-config]")
|
|
24
|
-
.should("exist")
|
|
25
|
-
.then($el => {
|
|
26
|
-
return $el.get(0).innerHTML;
|
|
27
|
-
})
|
|
28
|
-
.should("equal", JSON.stringify(configurationObject));
|
|
29
|
-
|
|
30
|
-
cy.wrap({ getAnimationMode })
|
|
31
|
-
.invoke("getAnimationMode")
|
|
32
|
-
.should("equal", configurationObject.animationMode);
|
|
33
|
-
});
|
|
34
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { registerThemePropertiesLoader } from "../../src/AssetRegistry.js";
|
|
2
|
-
import { setTheme } from "../../src/config/Theme.js";
|
|
3
|
-
import { getCurrentRuntimeIndex } from "../../src/Runtimes.js";
|
|
4
|
-
import "../../test/test-elements/Generic.js";
|
|
5
|
-
|
|
6
|
-
describe("Custom themes can be registered", () => {
|
|
7
|
-
it("Tests that theme parameters are changed on theme change", () => {
|
|
8
|
-
const newTheme = "my_custom_theme";
|
|
9
|
-
const var1 = "--var1: #555555";
|
|
10
|
-
const currentRuntime = 0;
|
|
11
|
-
const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
|
|
12
|
-
|
|
13
|
-
cy.mount(`<ui5-test-generic></ui5-test-generic>`);
|
|
14
|
-
|
|
15
|
-
cy.wrap({ getCurrentRuntimeIndex })
|
|
16
|
-
.invoke("getCurrentRuntimeIndex")
|
|
17
|
-
.should("equal", currentRuntime);
|
|
18
|
-
|
|
19
|
-
cy.wrap({ registerThemePropertiesLoader })
|
|
20
|
-
.invoke("registerThemePropertiesLoader", "@ui5/webcomponents-base-test", newTheme, () => Promise.resolve(`:root{ ${var1}; }`));
|
|
21
|
-
|
|
22
|
-
cy.wrap({ setTheme })
|
|
23
|
-
.invoke("setTheme", newTheme);
|
|
24
|
-
|
|
25
|
-
cy.document()
|
|
26
|
-
.its("adoptedStyleSheets")
|
|
27
|
-
.then(adoptedStyleSheets => {
|
|
28
|
-
// eslint-disable-next-line
|
|
29
|
-
return adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === `${dataPropAttr}|@ui5/webcomponents-base-test`);
|
|
30
|
-
})
|
|
31
|
-
.its("cssRules")
|
|
32
|
-
.its(0)
|
|
33
|
-
.its("cssText")
|
|
34
|
-
.should("include", var1);
|
|
35
|
-
});
|
|
36
|
-
});
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import EventProvider from "../../src/EventProvider.js";
|
|
2
|
-
|
|
3
|
-
describe("Event provider attaches and detaches listeners properly", () => {
|
|
4
|
-
it("Tests that listeners can be removed (1 listener)", () => {
|
|
5
|
-
let timesCalled = 0;
|
|
6
|
-
|
|
7
|
-
cy.then(() => {
|
|
8
|
-
const ep = new EventProvider();
|
|
9
|
-
const callback = () => {
|
|
10
|
-
timesCalled++;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// Setup
|
|
14
|
-
ep.attachEvent("test", callback);
|
|
15
|
-
|
|
16
|
-
// Act
|
|
17
|
-
ep.fireEvent("test", undefined); // should execute the callback and increase the counter
|
|
18
|
-
|
|
19
|
-
// Setup
|
|
20
|
-
ep.detachEvent("test", callback);
|
|
21
|
-
|
|
22
|
-
// Act
|
|
23
|
-
ep.fireEvent("test", undefined); // should not execute the callback and increase the counter
|
|
24
|
-
})
|
|
25
|
-
.then(() => {
|
|
26
|
-
return timesCalled;
|
|
27
|
-
})
|
|
28
|
-
.should("equal", 1);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
it("Tests that listeners can be removed (more than 1 listener)", () => {
|
|
32
|
-
let timesCalled = 0;
|
|
33
|
-
|
|
34
|
-
cy.then(() => {
|
|
35
|
-
const ep = new EventProvider();
|
|
36
|
-
const callback = () => {
|
|
37
|
-
timesCalled++;
|
|
38
|
-
};
|
|
39
|
-
const somePreviousCallback = () => { };
|
|
40
|
-
|
|
41
|
-
// Setup
|
|
42
|
-
ep.attachEvent("test", somePreviousCallback); // Attach something so that after detachEvent the listeners array is not empty!
|
|
43
|
-
ep.attachEvent("test", callback);
|
|
44
|
-
|
|
45
|
-
// Act
|
|
46
|
-
ep.fireEvent("test", undefined); // should execute the callback and increase the counter
|
|
47
|
-
|
|
48
|
-
// Setup
|
|
49
|
-
ep.detachEvent("test", callback);
|
|
50
|
-
|
|
51
|
-
// Act
|
|
52
|
-
ep.fireEvent("test", undefined); // should not execute the callback and increase the counter
|
|
53
|
-
})
|
|
54
|
-
.then(() => {
|
|
55
|
-
return timesCalled;
|
|
56
|
-
})
|
|
57
|
-
.should("equal", 1);
|
|
58
|
-
});
|
|
59
|
-
});
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { setTheme } from "../../src/config/Theme.js";
|
|
2
|
-
import { getCurrentRuntimeIndex } from "../../src/Runtimes.js";
|
|
3
|
-
import "../../test/test-elements/Accessor.js";
|
|
4
|
-
import "../../test/assets/Themes.js";
|
|
5
|
-
|
|
6
|
-
describe("Theming works", () => {
|
|
7
|
-
it("Tests that the parameters for the default theme are embedded on boot", () => {
|
|
8
|
-
const currentRuntime = 0;
|
|
9
|
-
const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
|
|
10
|
-
|
|
11
|
-
cy.wrap({ getCurrentRuntimeIndex })
|
|
12
|
-
.invoke("getCurrentRuntimeIndex")
|
|
13
|
-
.should("equal", currentRuntime);
|
|
14
|
-
|
|
15
|
-
cy.document()
|
|
16
|
-
.its("adoptedStyleSheets")
|
|
17
|
-
.then(adoptedStyleSheets => {
|
|
18
|
-
// eslint-disable-next-line
|
|
19
|
-
return adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === `${dataPropAttr}|@ui5/webcomponents-base-test`);
|
|
20
|
-
})
|
|
21
|
-
.its("cssRules")
|
|
22
|
-
.its(0)
|
|
23
|
-
.its("cssText")
|
|
24
|
-
.should("include", "--var1: grey");
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
it("Tests that the parameters for the default theme are embedded on boot", () => {
|
|
28
|
-
const newTheme = "sap_fiori_3_hcb";
|
|
29
|
-
const currentRuntime = 0;
|
|
30
|
-
const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
|
|
31
|
-
|
|
32
|
-
cy.wrap({ getCurrentRuntimeIndex })
|
|
33
|
-
.invoke("getCurrentRuntimeIndex")
|
|
34
|
-
.should("equal", currentRuntime);
|
|
35
|
-
|
|
36
|
-
cy.wrap({ setTheme })
|
|
37
|
-
.invoke("setTheme", newTheme);
|
|
38
|
-
|
|
39
|
-
cy.document()
|
|
40
|
-
.its("adoptedStyleSheets")
|
|
41
|
-
.then(adoptedStyleSheets => {
|
|
42
|
-
// eslint-disable-next-line
|
|
43
|
-
return adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === `${dataPropAttr}|@ui5/webcomponents-base-test`);
|
|
44
|
-
})
|
|
45
|
-
.its("cssRules")
|
|
46
|
-
.its(0)
|
|
47
|
-
.its("cssText")
|
|
48
|
-
.should("include", "--var1: yellow");
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
it("Tests that the parameters for the default theme are embedded on boot", () => {
|
|
52
|
-
const unknownTheme = "sap_unknown_theme";
|
|
53
|
-
const currentRuntime = 0;
|
|
54
|
-
const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
|
|
55
|
-
|
|
56
|
-
cy.wrap({ getCurrentRuntimeIndex })
|
|
57
|
-
.invoke("getCurrentRuntimeIndex")
|
|
58
|
-
.should("equal", currentRuntime);
|
|
59
|
-
|
|
60
|
-
cy.wrap({ setTheme })
|
|
61
|
-
.invoke("setTheme", unknownTheme);
|
|
62
|
-
|
|
63
|
-
cy.document()
|
|
64
|
-
.its("adoptedStyleSheets")
|
|
65
|
-
.then(adoptedStyleSheets => {
|
|
66
|
-
// eslint-disable-next-line
|
|
67
|
-
return adoptedStyleSheets.find(sh => (sh as Record<string, any>)._ui5StyleId === `${dataPropAttr}|@ui5/webcomponents-base-test`);
|
|
68
|
-
})
|
|
69
|
-
.its("cssRules")
|
|
70
|
-
.its(0)
|
|
71
|
-
.its("cssText")
|
|
72
|
-
.should("include", "--var1: grey");
|
|
73
|
-
});
|
|
74
|
-
});
|