@ui5/webcomponents-base 0.0.0-e55c2cec6 → 0.0.0-e5b03d3e8
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/.npsrc.json +3 -0
- package/CHANGELOG.md +1965 -0
- package/README.md +6 -12
- package/cypress/specs/Accessor.cy.tsx +79 -0
- package/cypress/specs/Boot.cy.tsx +19 -0
- package/cypress/specs/ConfigurationChange.cy.tsx +41 -0
- package/cypress/specs/ConfigurationScript.cy.tsx +133 -0
- package/cypress/specs/ConfigurationURL.cy.tsx +201 -0
- package/cypress/specs/CustomMount.cy.tsx +9 -0
- package/cypress/specs/CustomTheme.cy.tsx +36 -0
- package/cypress/specs/EventProvider.cy.tsx +59 -0
- package/cypress/specs/Events.cy.tsx +28 -0
- package/cypress/specs/SystemDOMElements.cy.tsx +8 -0
- package/cypress/specs/Theming.cy.tsx +74 -0
- package/cypress/specs/UI5ElementInvalidation.cy.tsx +252 -0
- package/cypress/specs/UI5ElementLifecycle.cy.tsx +82 -0
- package/cypress/specs/UI5ElementListenForChildPropChanges.cy.tsx +83 -0
- package/cypress/specs/UI5ElementMetadataExt.cy.tsx +42 -0
- package/cypress/specs/UI5ElementPropertyValidation.cy.tsx +16 -0
- package/cypress/specs/UI5ElementPropsAndAttrs.cy.tsx +113 -0
- package/cypress/specs/UI5ElementShadowDOM.cy.tsx +30 -0
- package/cypress/specs/UI5ElementSlots.cy.tsx +136 -0
- package/cypress/specs/WithComplexTemplate.cy.tsx +32 -0
- package/cypress/specs/i18n_texts.cy.tsx +129 -0
- package/cypress/specs/util/FocusableElements.cy.tsx +48 -0
- package/cypress/support/commands.ts +39 -0
- package/cypress/support/component-index.html +12 -0
- package/cypress/support/component.ts +36 -0
- package/cypress/tsconfig.json +21 -0
- package/cypress.config.js +3 -0
- package/dist/.tsbuildinfobuild +1 -0
- package/dist/AssetRegistry.d.ts +2 -2
- package/dist/AssetRegistry.js +2 -2
- package/dist/AssetRegistry.js.map +1 -1
- package/dist/Boot.d.ts +6 -4
- package/dist/Boot.js +37 -6
- 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/CustomElementsScope.d.ts +4 -4
- package/dist/CustomElementsScope.js +2 -2
- package/dist/CustomElementsScope.js.map +1 -1
- package/dist/CustomElementsScopeUtils.d.ts +11 -2
- package/dist/CustomElementsScopeUtils.js +21 -2
- package/dist/CustomElementsScopeUtils.js.map +1 -1
- package/dist/DOMObserver.js.map +1 -1
- package/dist/Device.d.ts +17 -2
- package/dist/Device.js +116 -36
- package/dist/Device.js.map +1 -1
- package/dist/EventProvider.js +1 -1
- package/dist/EventProvider.js.map +1 -1
- package/dist/FeaturesRegistry.js.map +1 -1
- package/dist/FontFace.js +6 -1
- package/dist/FontFace.js.map +1 -1
- package/dist/IgnoreCustomElements.d.ts +25 -0
- package/dist/IgnoreCustomElements.js +37 -0
- package/dist/IgnoreCustomElements.js.map +1 -0
- package/dist/InitialConfiguration.d.ts +15 -3
- package/dist/InitialConfiguration.js +42 -10
- package/dist/InitialConfiguration.js.map +1 -1
- package/dist/Keys.d.ts +8 -1
- package/dist/Keys.js +114 -106
- package/dist/Keys.js.map +1 -1
- package/dist/Location.d.ts +11 -0
- package/dist/Location.js +49 -0
- package/dist/Location.js.map +1 -0
- package/dist/ManagedStyles.d.ts +5 -6
- package/dist/ManagedStyles.js +45 -53
- package/dist/ManagedStyles.js.map +1 -1
- package/dist/MediaRange.d.ts +6 -12
- package/dist/MediaRange.js +21 -31
- package/dist/MediaRange.js.map +1 -1
- package/dist/PropertiesFileFormat.js.map +1 -1
- package/dist/Render.js.map +1 -1
- package/dist/RenderQueue.js.map +1 -1
- package/dist/Runtimes.js +11 -0
- package/dist/Runtimes.js.map +1 -1
- package/dist/SystemCSSVars.js.map +1 -1
- package/dist/Theming.js.map +1 -1
- package/dist/UI5Element.d.ts +124 -73
- package/dist/UI5Element.js +406 -251
- package/dist/UI5Element.js.map +1 -1
- package/dist/UI5ElementMetadata.d.ts +36 -27
- package/dist/UI5ElementMetadata.js +27 -72
- package/dist/UI5ElementMetadata.js.map +1 -1
- package/dist/animations/AnimationQueue.js.map +1 -1
- package/dist/animations/animate.js.map +1 -1
- package/dist/animations/scroll.js.map +1 -1
- package/dist/animations/slideDown.js.map +1 -1
- package/dist/animations/slideUp.js.map +1 -1
- package/dist/asset-registries/Icons.d.ts +22 -13
- package/dist/asset-registries/Icons.js +63 -31
- package/dist/asset-registries/Icons.js.map +1 -1
- package/dist/asset-registries/Illustrations.d.ts +3 -1
- package/dist/asset-registries/Illustrations.js +51 -20
- package/dist/asset-registries/Illustrations.js.map +1 -1
- package/dist/asset-registries/LocaleData.js +1 -1
- package/dist/asset-registries/LocaleData.js.map +1 -1
- package/dist/asset-registries/Themes.d.ts +6 -7
- package/dist/asset-registries/Themes.js +29 -12
- package/dist/asset-registries/Themes.js.map +1 -1
- package/dist/asset-registries/i18n.d.ts +2 -2
- package/dist/asset-registries/i18n.js +12 -5
- package/dist/asset-registries/i18n.js.map +1 -1
- package/dist/asset-registries/util/IconCollectionsAlias.d.ts +30 -0
- package/dist/asset-registries/util/IconCollectionsAlias.js +37 -0
- package/dist/asset-registries/util/IconCollectionsAlias.js.map +1 -0
- package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +20 -0
- package/dist/asset-registries/util/IconCollectionsByTheme.js +42 -0
- package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -0
- package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +13 -0
- package/dist/asset-registries/util/getIconCollectionByTheme.js +29 -0
- package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -0
- package/dist/config/AnimationMode.d.ts +2 -2
- package/dist/config/AnimationMode.js +6 -1
- package/dist/config/AnimationMode.js.map +1 -1
- package/dist/config/CalendarType.d.ts +8 -1
- package/dist/config/CalendarType.js +23 -2
- package/dist/config/CalendarType.js.map +1 -1
- package/dist/config/ConfigurationReset.d.ts +4 -0
- package/dist/config/ConfigurationReset.js +11 -0
- package/dist/config/ConfigurationReset.js.map +1 -0
- package/dist/config/Fonts.d.ts +16 -0
- package/dist/config/Fonts.js +30 -0
- package/dist/config/Fonts.js.map +1 -0
- package/dist/config/FormatSettings.d.ts +5 -1
- package/dist/config/FormatSettings.js +9 -1
- package/dist/config/FormatSettings.js.map +1 -1
- package/dist/config/Icons.d.ts +31 -21
- package/dist/config/Icons.js +28 -32
- package/dist/config/Icons.js.map +1 -1
- package/dist/config/Language.d.ts +11 -2
- package/dist/config/Language.js +24 -4
- package/dist/config/Language.js.map +1 -1
- package/dist/config/NoConflict.js +5 -0
- package/dist/config/NoConflict.js.map +1 -1
- package/dist/config/Theme.d.ts +16 -5
- package/dist/config/Theme.js +40 -11
- package/dist/config/Theme.js.map +1 -1
- package/dist/config/ThemeRoot.d.ts +27 -0
- package/dist/config/ThemeRoot.js +61 -0
- package/dist/config/ThemeRoot.js.map +1 -0
- package/dist/config/Timezone.d.ts +17 -0
- package/dist/config/Timezone.js +34 -0
- package/dist/config/Timezone.js.map +1 -0
- package/dist/config/Tooltips.d.ts +19 -0
- package/dist/config/Tooltips.js +29 -0
- package/dist/config/Tooltips.js.map +1 -0
- package/dist/connectToComponent.d.ts +9 -0
- package/dist/connectToComponent.js +59 -0
- package/dist/connectToComponent.js.map +1 -0
- package/dist/converters/DOMReference.d.ts +5 -0
- package/dist/converters/DOMReference.js +13 -0
- package/dist/converters/DOMReference.js.map +1 -0
- package/dist/css/FontFace.css +47 -17
- package/dist/css/SystemCSSVars.css +0 -8
- package/dist/custom-elements-internal.json +2788 -0
- package/dist/custom-elements.json +2485 -0
- 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 +57 -2
- package/dist/decorators/customElement.js +34 -5
- 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 +8 -2
- package/dist/decorators/event.js +9 -6
- package/dist/decorators/event.js.map +1 -1
- package/dist/decorators/i18n.d.ts +17 -0
- package/dist/decorators/i18n.js +32 -0
- package/dist/decorators/i18n.js.map +1 -0
- package/dist/decorators/property.d.ts +1 -1
- package/dist/decorators/property.js +7 -7
- package/dist/decorators/property.js.map +1 -1
- package/dist/decorators/query.d.ts +25 -0
- package/dist/decorators/query.js +32 -0
- package/dist/decorators/query.js.map +1 -0
- package/dist/decorators/queryAll.d.ts +27 -0
- package/dist/decorators/queryAll.js +34 -0
- package/dist/decorators/queryAll.js.map +1 -0
- package/dist/decorators/slot.d.ts +1 -1
- package/dist/decorators/slot.js +9 -9
- package/dist/decorators/slot.js.map +1 -1
- package/dist/decorators.d.ts +8 -0
- package/dist/decorators.js +9 -0
- package/dist/decorators.js.map +1 -0
- package/dist/delegate/ItemNavigation.d.ts +9 -8
- package/dist/delegate/ItemNavigation.js +13 -14
- package/dist/delegate/ItemNavigation.js.map +1 -1
- package/dist/delegate/ResizeHandler.d.ts +6 -7
- package/dist/delegate/ResizeHandler.js +11 -9
- package/dist/delegate/ResizeHandler.js.map +1 -1
- package/dist/delegate/ScrollEnablement.d.ts +4 -3
- package/dist/delegate/ScrollEnablement.js +2 -2
- package/dist/delegate/ScrollEnablement.js.map +1 -1
- package/dist/features/F6Navigation.d.ts +7 -3
- package/dist/features/F6Navigation.js +116 -45
- package/dist/features/F6Navigation.js.map +1 -1
- package/dist/features/InputElementsFormSupport.d.ts +15 -0
- package/dist/features/InputElementsFormSupport.js +39 -0
- package/dist/features/InputElementsFormSupport.js.map +1 -0
- package/dist/features/LegacyDateFormats.d.ts +18 -0
- package/dist/features/LegacyDateFormats.js +20 -0
- package/dist/features/LegacyDateFormats.js.map +1 -0
- package/dist/features/OpenUI5Element.js.map +1 -1
- package/dist/features/OpenUI5Enablement.d.ts +3 -3
- package/dist/features/OpenUI5Enablement.js.map +1 -1
- package/dist/features/OpenUI5Support.d.ts +17 -6
- package/dist/features/OpenUI5Support.js +92 -46
- package/dist/features/OpenUI5Support.js.map +1 -1
- package/dist/features/patchPatcher.d.ts +11 -0
- package/dist/features/patchPatcher.js +11 -0
- package/dist/features/patchPatcher.js.map +1 -0
- package/dist/features/patchPopup.d.ts +15 -0
- package/dist/features/patchPopup.js +70 -0
- package/dist/features/patchPopup.js.map +1 -0
- package/dist/generated/AssetParameters.d.ts +6 -0
- package/dist/generated/AssetParameters.js +4 -9
- package/dist/generated/AssetParameters.js.map +1 -0
- package/dist/generated/VersionInfo.d.ts +10 -0
- package/dist/generated/VersionInfo.js +9 -8
- package/dist/generated/VersionInfo.js.map +1 -0
- package/dist/generated/css/BusyIndicator.css.d.ts +2 -0
- package/dist/generated/css/BusyIndicator.css.js +2 -5
- package/dist/generated/css/BusyIndicator.css.js.map +1 -0
- package/dist/generated/css/FontFace.css.d.ts +2 -0
- package/dist/generated/css/FontFace.css.js +2 -5
- package/dist/generated/css/FontFace.css.js.map +1 -0
- package/dist/generated/css/OverrideFontFace.css.d.ts +2 -0
- package/dist/generated/css/OverrideFontFace.css.js +2 -5
- package/dist/generated/css/OverrideFontFace.css.js.map +1 -0
- package/dist/generated/css/SystemCSSVars.css.d.ts +2 -0
- package/dist/generated/css/SystemCSSVars.css.js +2 -5
- package/dist/generated/css/SystemCSSVars.css.js.map +1 -0
- package/dist/getSharedResource.d.ts +1 -1
- package/dist/getSharedResource.js +16 -2
- package/dist/getSharedResource.js.map +1 -1
- package/{global.d.ts → dist/global.d.ts} +2 -6
- package/dist/i18nBundle.d.ts +2 -4
- package/dist/i18nBundle.js +3 -5
- package/dist/i18nBundle.js.map +1 -1
- package/dist/index.d.ts +12 -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 +50 -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/Locale.js.map +1 -1
- package/dist/locale/RTLAwareRegistry.d.ts +1 -1
- package/dist/locale/RTLAwareRegistry.js.map +1 -1
- package/dist/locale/applyDirection.d.ts +3 -2
- package/dist/locale/applyDirection.js +3 -2
- package/dist/locale/applyDirection.js.map +1 -1
- package/dist/locale/directionChange.js.map +1 -1
- package/dist/locale/getEffectiveDir.d.ts +1 -1
- package/dist/locale/getEffectiveDir.js +3 -19
- package/dist/locale/getEffectiveDir.js.map +1 -1
- package/dist/locale/getLocale.js.map +1 -1
- package/dist/locale/languageChange.js.map +1 -1
- package/dist/locale/nextFallbackLocale.js.map +1 -1
- package/dist/locale/normalizeLocale.js.map +1 -1
- package/dist/prod/AssetRegistry.js +2 -0
- package/dist/prod/AssetRegistry.js.map +7 -0
- package/dist/prod/Boot.js +2 -0
- package/dist/prod/Boot.js.map +7 -0
- package/dist/prod/CustomElementsRegistry.js +10 -0
- package/dist/prod/CustomElementsRegistry.js.map +7 -0
- package/dist/prod/CustomElementsScope.js +2 -0
- package/dist/prod/CustomElementsScope.js.map +7 -0
- package/dist/prod/CustomElementsScopeUtils.js +2 -0
- package/dist/prod/CustomElementsScopeUtils.js.map +7 -0
- package/dist/prod/DOMObserver.js +2 -0
- package/dist/prod/DOMObserver.js.map +7 -0
- package/dist/prod/Device.js +2 -0
- package/dist/prod/Device.js.map +7 -0
- package/dist/prod/EventProvider.js +2 -0
- package/dist/prod/EventProvider.js.map +7 -0
- package/dist/prod/FeaturesRegistry.js +2 -0
- package/dist/prod/FeaturesRegistry.js.map +7 -0
- package/dist/prod/FontFace.js +2 -0
- package/dist/prod/FontFace.js.map +7 -0
- package/dist/prod/IgnoreCustomElements.js +2 -0
- package/dist/prod/IgnoreCustomElements.js.map +7 -0
- package/dist/prod/InitialConfiguration.js +2 -0
- package/dist/prod/InitialConfiguration.js.map +7 -0
- package/dist/prod/Keys.js +2 -0
- package/dist/prod/Keys.js.map +7 -0
- package/dist/prod/Location.js +2 -0
- package/dist/prod/Location.js.map +7 -0
- package/dist/prod/ManagedStyles.js +2 -0
- package/dist/prod/ManagedStyles.js.map +7 -0
- package/dist/prod/MediaRange.js +2 -0
- package/dist/prod/MediaRange.js.map +7 -0
- package/dist/prod/PropertiesFileFormat.js +3 -0
- package/dist/prod/PropertiesFileFormat.js.map +7 -0
- package/dist/prod/Render.js +2 -0
- package/dist/prod/Render.js.map +7 -0
- package/dist/prod/RenderQueue.js +2 -0
- package/dist/prod/RenderQueue.js.map +7 -0
- package/dist/prod/Runtimes.js +2 -0
- package/dist/prod/Runtimes.js.map +7 -0
- package/dist/prod/SystemCSSVars.js +2 -0
- package/dist/prod/SystemCSSVars.js.map +7 -0
- package/dist/prod/Theming.js +2 -0
- package/dist/prod/Theming.js.map +7 -0
- package/dist/prod/UI5Element.js +2 -0
- package/dist/prod/UI5Element.js.map +7 -0
- package/dist/prod/UI5ElementMetadata.js +2 -0
- package/dist/prod/UI5ElementMetadata.js.map +7 -0
- package/dist/prod/animations/AnimationQueue.js +2 -0
- package/dist/prod/animations/AnimationQueue.js.map +7 -0
- package/dist/prod/animations/animate.js +2 -0
- package/dist/prod/animations/animate.js.map +7 -0
- package/dist/prod/animations/scroll.js +2 -0
- package/dist/prod/animations/scroll.js.map +7 -0
- package/dist/prod/animations/slideDown.js +2 -0
- package/dist/prod/animations/slideDown.js.map +7 -0
- package/dist/prod/animations/slideUp.js +2 -0
- package/dist/prod/animations/slideUp.js.map +7 -0
- package/dist/prod/asset-registries/Icons.js +2 -0
- package/dist/prod/asset-registries/Icons.js.map +7 -0
- package/dist/prod/asset-registries/Illustrations.js +2 -0
- package/dist/prod/asset-registries/Illustrations.js.map +7 -0
- package/dist/prod/asset-registries/LocaleData.js +2 -0
- package/dist/prod/asset-registries/LocaleData.js.map +7 -0
- package/dist/prod/asset-registries/Themes.js +2 -0
- package/dist/prod/asset-registries/Themes.js.map +7 -0
- package/dist/prod/asset-registries/i18n.js +2 -0
- package/dist/prod/asset-registries/i18n.js.map +7 -0
- package/dist/prod/asset-registries/util/IconCollectionsAlias.js +2 -0
- package/dist/prod/asset-registries/util/IconCollectionsAlias.js.map +7 -0
- package/dist/prod/asset-registries/util/IconCollectionsByTheme.js +2 -0
- package/dist/prod/asset-registries/util/IconCollectionsByTheme.js.map +7 -0
- package/dist/prod/asset-registries/util/getIconCollectionByTheme.js +2 -0
- package/dist/prod/asset-registries/util/getIconCollectionByTheme.js.map +7 -0
- package/dist/prod/config/AnimationMode.js +2 -0
- package/dist/prod/config/AnimationMode.js.map +7 -0
- package/dist/prod/config/CalendarType.js +2 -0
- package/dist/prod/config/CalendarType.js.map +7 -0
- package/dist/prod/config/ConfigurationReset.js +2 -0
- package/dist/prod/config/ConfigurationReset.js.map +7 -0
- package/dist/prod/config/Fonts.js +2 -0
- package/dist/prod/config/Fonts.js.map +7 -0
- package/dist/prod/config/FormatSettings.js +2 -0
- package/dist/prod/config/FormatSettings.js.map +7 -0
- package/dist/prod/config/Icons.js +2 -0
- package/dist/prod/config/Icons.js.map +7 -0
- package/dist/prod/config/Language.js +2 -0
- package/dist/prod/config/Language.js.map +7 -0
- package/dist/prod/config/NoConflict.js +2 -0
- package/dist/prod/config/NoConflict.js.map +7 -0
- package/dist/prod/config/Theme.js +2 -0
- package/dist/prod/config/Theme.js.map +7 -0
- package/dist/prod/config/ThemeRoot.js +2 -0
- package/dist/prod/config/ThemeRoot.js.map +7 -0
- package/dist/prod/config/Timezone.js +2 -0
- package/dist/prod/config/Timezone.js.map +7 -0
- package/dist/prod/config/Tooltips.js +2 -0
- package/dist/prod/config/Tooltips.js.map +7 -0
- package/dist/prod/connectToComponent.js +2 -0
- package/dist/prod/connectToComponent.js.map +7 -0
- package/dist/prod/converters/DOMReference.js +2 -0
- package/dist/prod/converters/DOMReference.js.map +7 -0
- package/dist/prod/decorators/bound.js +2 -0
- package/dist/prod/decorators/bound.js.map +7 -0
- package/dist/prod/decorators/customElement.js +2 -0
- package/dist/prod/decorators/customElement.js.map +7 -0
- 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 +2 -0
- package/dist/prod/decorators/event.js.map +7 -0
- package/dist/prod/decorators/i18n.js +2 -0
- package/dist/prod/decorators/i18n.js.map +7 -0
- package/dist/prod/decorators/property.js +2 -0
- package/dist/prod/decorators/property.js.map +7 -0
- package/dist/prod/decorators/query.js +2 -0
- package/dist/prod/decorators/query.js.map +7 -0
- package/dist/prod/decorators/queryAll.js +2 -0
- package/dist/prod/decorators/queryAll.js.map +7 -0
- package/dist/prod/decorators/slot.js +2 -0
- package/dist/prod/decorators/slot.js.map +7 -0
- package/dist/prod/decorators.js +2 -0
- package/dist/prod/decorators.js.map +7 -0
- package/dist/prod/delegate/ItemNavigation.js +2 -0
- package/dist/prod/delegate/ItemNavigation.js.map +7 -0
- package/dist/prod/delegate/ResizeHandler.js +2 -0
- package/dist/prod/delegate/ResizeHandler.js.map +7 -0
- package/dist/prod/delegate/ScrollEnablement.js +2 -0
- package/dist/prod/delegate/ScrollEnablement.js.map +7 -0
- package/dist/prod/features/F6Navigation.js +2 -0
- package/dist/prod/features/F6Navigation.js.map +7 -0
- package/dist/prod/features/InputElementsFormSupport.js +2 -0
- package/dist/prod/features/InputElementsFormSupport.js.map +7 -0
- package/dist/prod/features/LegacyDateFormats.js +2 -0
- package/dist/prod/features/LegacyDateFormats.js.map +7 -0
- package/dist/prod/features/OpenUI5Element.js +2 -0
- package/dist/prod/features/OpenUI5Element.js.map +7 -0
- package/dist/prod/features/OpenUI5Enablement.js +21 -0
- package/dist/prod/features/OpenUI5Enablement.js.map +7 -0
- package/dist/prod/features/OpenUI5Support.js +2 -0
- package/dist/prod/features/OpenUI5Support.js.map +7 -0
- package/dist/prod/features/patchPatcher.js +2 -0
- package/dist/prod/features/patchPatcher.js.map +7 -0
- package/dist/prod/features/patchPopup.js +2 -0
- package/dist/prod/features/patchPopup.js.map +7 -0
- package/dist/prod/generated/AssetParameters.js +2 -0
- package/dist/prod/generated/AssetParameters.js.map +7 -0
- package/dist/prod/generated/VersionInfo.js +2 -0
- package/dist/prod/generated/VersionInfo.js.map +7 -0
- package/dist/prod/generated/css/BusyIndicator.css.js +2 -0
- package/dist/prod/generated/css/BusyIndicator.css.js.map +7 -0
- package/dist/prod/generated/css/FontFace.css.js +2 -0
- package/dist/prod/generated/css/FontFace.css.js.map +7 -0
- package/dist/prod/generated/css/OverrideFontFace.css.js +2 -0
- package/dist/prod/generated/css/OverrideFontFace.css.js.map +7 -0
- package/dist/prod/generated/css/SystemCSSVars.css.js +2 -0
- package/dist/prod/generated/css/SystemCSSVars.css.js.map +7 -0
- package/dist/prod/getSharedResource.js +2 -0
- package/dist/prod/getSharedResource.js.map +7 -0
- package/dist/prod/global.d.js +2 -0
- package/dist/prod/global.d.js.map +7 -0
- package/dist/prod/i18nBundle.js +2 -0
- package/dist/prod/i18nBundle.js.map +7 -0
- package/dist/prod/index.d.js +2 -0
- package/dist/prod/index.d.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/Locale.js +2 -0
- package/dist/prod/locale/Locale.js.map +7 -0
- package/dist/prod/locale/RTLAwareRegistry.js +2 -0
- package/dist/prod/locale/RTLAwareRegistry.js.map +7 -0
- package/dist/prod/locale/applyDirection.js +2 -0
- package/dist/prod/locale/applyDirection.js.map +7 -0
- package/dist/prod/locale/directionChange.js +2 -0
- package/dist/prod/locale/directionChange.js.map +7 -0
- package/dist/prod/locale/getEffectiveDir.js +2 -0
- package/dist/prod/locale/getEffectiveDir.js.map +7 -0
- package/dist/prod/locale/getLocale.js +2 -0
- package/dist/prod/locale/getLocale.js.map +7 -0
- package/dist/prod/locale/languageChange.js +2 -0
- package/dist/prod/locale/languageChange.js.map +7 -0
- package/dist/prod/locale/nextFallbackLocale.js +2 -0
- package/dist/prod/locale/nextFallbackLocale.js.map +7 -0
- package/dist/prod/locale/normalizeLocale.js +2 -0
- package/dist/prod/locale/normalizeLocale.js.map +7 -0
- package/dist/prod/renderer/JsxRenderer.js +2 -0
- package/dist/prod/renderer/JsxRenderer.js.map +7 -0
- package/dist/prod/renderer/LitRenderer.js +2 -0
- package/dist/prod/renderer/LitRenderer.js.map +7 -0
- package/dist/prod/renderer/directives/style-map.js +6 -0
- package/dist/prod/renderer/directives/style-map.js.map +7 -0
- package/dist/prod/renderer/executeTemplate.js +2 -0
- package/dist/prod/renderer/executeTemplate.js.map +7 -0
- package/dist/prod/sap/base/Log.js +750 -0
- package/dist/prod/sap/base/assert.js +34 -0
- package/dist/prod/sap/base/config/MemoryConfigurationProvider.js +20 -0
- package/dist/prod/sap/base/security/URLListValidator.js +406 -0
- package/dist/prod/sap/base/security/encodeCSS.js +40 -0
- package/dist/prod/sap/base/security/encodeXML.js +53 -0
- package/dist/prod/sap/base/security/sanitizeHTML.js +38 -0
- package/dist/prod/sap/base/strings/toHex.js +33 -0
- package/dist/prod/sap/base/util/now.js +28 -0
- package/dist/prod/sap/base/util/uid.js +27 -0
- package/dist/prod/sap/ui/thirdparty/caja-html-sanitizer.js +3600 -0
- package/dist/prod/ssr-dom-shim.js +2 -0
- package/dist/prod/ssr-dom-shim.js.map +7 -0
- package/dist/prod/ssr-dom.js +2 -0
- package/dist/prod/ssr-dom.js.map +7 -0
- package/dist/prod/theming/CustomStyle.js +2 -0
- package/dist/prod/theming/CustomStyle.js.map +7 -0
- package/dist/prod/theming/ThemeLoaded.js +2 -0
- package/dist/prod/theming/ThemeLoaded.js.map +7 -0
- package/dist/prod/theming/ThemeRegistered.js +2 -0
- package/dist/prod/theming/ThemeRegistered.js.map +7 -0
- package/dist/prod/theming/applyTheme.js +2 -0
- package/dist/prod/theming/applyTheme.js.map +7 -0
- package/dist/prod/theming/getConstructableStyle.js +2 -0
- package/dist/prod/theming/getConstructableStyle.js.map +7 -0
- package/dist/prod/theming/getEffectiveStyle.js +2 -0
- package/dist/prod/theming/getEffectiveStyle.js.map +7 -0
- package/dist/prod/theming/getStylesString.js +2 -0
- package/dist/prod/theming/getStylesString.js.map +7 -0
- package/dist/prod/theming/getThemeDesignerTheme.js +2 -0
- package/dist/prod/theming/getThemeDesignerTheme.js.map +7 -0
- package/dist/prod/thirdparty/_merge.js +2 -0
- package/dist/prod/thirdparty/_merge.js.map +7 -0
- package/dist/prod/thirdparty/isPlainObject.js +2 -0
- package/dist/prod/thirdparty/isPlainObject.js.map +7 -0
- package/dist/prod/thirdparty/merge.js +2 -0
- package/dist/prod/thirdparty/merge.js.map +7 -0
- 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/AnimationMode.js +2 -0
- package/dist/prod/types/AnimationMode.js.map +7 -0
- package/dist/prod/types/CalendarType.js +2 -0
- package/dist/prod/types/CalendarType.js.map +7 -0
- package/dist/prod/types/InvisibleMessageMode.js +2 -0
- package/dist/prod/types/InvisibleMessageMode.js.map +7 -0
- package/dist/prod/types/ItemNavigationBehavior.js +2 -0
- package/dist/prod/types/ItemNavigationBehavior.js.map +7 -0
- package/dist/prod/types/MovePlacement.js +2 -0
- package/dist/prod/types/MovePlacement.js.map +7 -0
- package/dist/prod/types/NavigationMode.js +2 -0
- package/dist/prod/types/NavigationMode.js.map +7 -0
- package/dist/prod/types/Orientation.js +2 -0
- package/dist/prod/types/Orientation.js.map +7 -0
- package/dist/prod/types/SortOrder.js +2 -0
- package/dist/prod/types/SortOrder.js.map +7 -0
- package/dist/prod/types/ValueState.js +2 -0
- package/dist/prod/types/ValueState.js.map +7 -0
- package/dist/prod/types.js +2 -0
- package/dist/prod/types.js.map +7 -0
- package/dist/prod/updateShadowRoot.js +2 -0
- package/dist/prod/updateShadowRoot.js.map +7 -0
- package/dist/prod/util/AccessibilityTextsHelper.js +2 -0
- package/dist/prod/util/AccessibilityTextsHelper.js.map +7 -0
- package/dist/prod/util/Caret.js +2 -0
- package/dist/prod/util/Caret.js.map +7 -0
- package/dist/prod/util/ColorConversion.js +2 -0
- package/dist/prod/util/ColorConversion.js.map +7 -0
- package/dist/prod/util/FetchHelper.js +2 -0
- package/dist/prod/util/FetchHelper.js.map +7 -0
- package/dist/prod/util/FocusableElements.js +2 -0
- package/dist/prod/util/FocusableElements.js.map +7 -0
- package/dist/prod/util/HTMLSanitizer.js +2 -0
- package/dist/prod/util/HTMLSanitizer.js.map +7 -0
- package/dist/prod/util/InvisibleMessage.js +2 -0
- package/dist/prod/util/InvisibleMessage.js.map +7 -0
- package/dist/prod/util/PopupUtils.js +2 -0
- package/dist/prod/util/PopupUtils.js.map +7 -0
- package/dist/prod/util/SelectionAssistant.js +2 -0
- package/dist/prod/util/SelectionAssistant.js.map +7 -0
- package/dist/prod/util/SlotsHelper.js +2 -0
- package/dist/prod/util/SlotsHelper.js.map +7 -0
- package/dist/prod/util/StringHelper.js +2 -0
- package/dist/prod/util/StringHelper.js.map +7 -0
- package/dist/prod/util/TabbableElements.js +2 -0
- package/dist/prod/util/TabbableElements.js.map +7 -0
- package/dist/prod/util/arraysAreEqual.js +2 -0
- package/dist/prod/util/arraysAreEqual.js.map +7 -0
- package/dist/prod/util/clamp.js +2 -0
- package/dist/prod/util/clamp.js.map +7 -0
- package/dist/prod/util/createLinkInHead.js +2 -0
- package/dist/prod/util/createLinkInHead.js.map +7 -0
- package/dist/prod/util/debounce.js +2 -0
- package/dist/prod/util/debounce.js.map +7 -0
- package/dist/prod/util/detectNavigatorLanguage.js +2 -0
- package/dist/prod/util/detectNavigatorLanguage.js.map +7 -0
- package/dist/prod/util/dragAndDrop/DragRegistry.js +2 -0
- package/dist/prod/util/dragAndDrop/DragRegistry.js.map +7 -0
- package/dist/prod/util/dragAndDrop/findClosestPosition.js +2 -0
- package/dist/prod/util/dragAndDrop/findClosestPosition.js.map +7 -0
- 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/dragAndDrop/longDragOverHandler.js +2 -0
- package/dist/prod/util/dragAndDrop/longDragOverHandler.js.map +7 -0
- package/dist/prod/util/escapeRegex.js +2 -0
- package/dist/prod/util/escapeRegex.js.map +7 -0
- package/dist/prod/util/fixSafariActiveState.js +2 -0
- package/dist/prod/util/fixSafariActiveState.js.map +7 -0
- package/dist/prod/util/formatMessage.js +2 -0
- package/dist/prod/util/formatMessage.js.map +7 -0
- package/dist/prod/util/generateHighlightedMarkup.js +2 -0
- package/dist/prod/util/generateHighlightedMarkup.js.map +7 -0
- package/dist/prod/util/getActiveElement.js +2 -0
- package/dist/prod/util/getActiveElement.js.map +7 -0
- package/dist/prod/util/getClassCopy.js +2 -0
- package/dist/prod/util/getClassCopy.js.map +7 -0
- package/dist/prod/util/getDesigntimePropertyAsArray.js +2 -0
- package/dist/prod/util/getDesigntimePropertyAsArray.js.map +7 -0
- package/dist/prod/util/getEffectiveContentDensity.js +2 -0
- package/dist/prod/util/getEffectiveContentDensity.js.map +7 -0
- package/dist/prod/util/getEffectiveScrollbarStyle.js +26 -0
- package/dist/prod/util/getEffectiveScrollbarStyle.js.map +7 -0
- package/dist/prod/util/getFastNavigationGroups.js +2 -0
- package/dist/prod/util/getFastNavigationGroups.js.map +7 -0
- package/dist/prod/util/getFileExtension.js +2 -0
- package/dist/prod/util/getFileExtension.js.map +7 -0
- package/dist/prod/util/getNormalizedTarget.js +2 -0
- package/dist/prod/util/getNormalizedTarget.js.map +7 -0
- package/dist/prod/util/getSingletonElementInstance.js +2 -0
- package/dist/prod/util/getSingletonElementInstance.js.map +7 -0
- package/dist/prod/util/hash2str.js +2 -0
- package/dist/prod/util/hash2str.js.map +7 -0
- package/dist/prod/util/isElementClickable.js +2 -0
- package/dist/prod/util/isElementClickable.js.map +7 -0
- package/dist/prod/util/isElementHidden.js +2 -0
- package/dist/prod/util/isElementHidden.js.map +7 -0
- package/dist/prod/util/isElementInView.js +2 -0
- package/dist/prod/util/isElementInView.js.map +7 -0
- package/dist/prod/util/isElementTabbable.js +2 -0
- package/dist/prod/util/isElementTabbable.js.map +7 -0
- package/dist/prod/util/isValidPropertyName.js +2 -0
- package/dist/prod/util/isValidPropertyName.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/whenDOMReady.js +2 -0
- package/dist/prod/util/whenDOMReady.js.map +7 -0
- package/dist/prod/util/willShowContent.js +2 -0
- package/dist/prod/util/willShowContent.js.map +7 -0
- package/dist/prod/validateThemeRoot.js +2 -0
- package/dist/prod/validateThemeRoot.js.map +7 -0
- package/dist/renderer/JsxRenderer.d.ts +3 -0
- package/dist/renderer/JsxRenderer.js +16 -0
- package/dist/renderer/JsxRenderer.js.map +1 -0
- package/dist/renderer/LitRenderer.d.ts +5 -5
- package/dist/renderer/LitRenderer.js +5 -10
- package/dist/renderer/LitRenderer.js.map +1 -1
- package/dist/renderer/directives/style-map.d.ts +13 -0
- package/dist/renderer/directives/style-map.js +59 -59
- package/dist/renderer/directives/style-map.js.map +1 -0
- package/dist/renderer/executeTemplate.d.ts +3 -4
- package/dist/renderer/executeTemplate.js +1 -19
- package/dist/renderer/executeTemplate.js.map +1 -1
- package/dist/sap/base/Log.js +698 -188
- package/dist/sap/base/assert.js +28 -1
- package/dist/sap/base/config/MemoryConfigurationProvider.js +20 -0
- package/dist/sap/base/security/URLListValidator.js +253 -6
- package/dist/sap/base/security/encodeCSS.js +34 -8
- package/dist/sap/base/security/encodeXML.js +47 -17
- package/dist/sap/base/security/sanitizeHTML.js +35 -13
- package/dist/sap/base/strings/toHex.js +27 -2
- package/dist/sap/base/util/now.js +24 -3
- package/dist/sap/base/util/uid.js +27 -0
- package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +113 -98
- package/dist/ssr-dom-shim.d.ts +1 -0
- package/dist/ssr-dom-shim.js +62 -0
- package/dist/ssr-dom-shim.js.map +1 -0
- package/dist/ssr-dom.d.ts +1 -0
- package/dist/ssr-dom.js +3 -0
- package/dist/ssr-dom.js.map +1 -0
- package/dist/theming/CustomStyle.js +7 -5
- package/dist/theming/CustomStyle.js.map +1 -1
- package/dist/theming/ThemeLoaded.js.map +1 -1
- package/dist/theming/ThemeRegistered.d.ts +4 -0
- package/dist/theming/ThemeRegistered.js +11 -0
- package/dist/theming/ThemeRegistered.js.map +1 -0
- package/dist/theming/applyTheme.js +9 -8
- package/dist/theming/applyTheme.js.map +1 -1
- package/dist/theming/getConstructableStyle.d.ts +2 -2
- package/dist/theming/getConstructableStyle.js +3 -3
- package/dist/theming/getConstructableStyle.js.map +1 -1
- package/dist/theming/getEffectiveStyle.d.ts +1 -1
- package/dist/theming/getEffectiveStyle.js +5 -12
- package/dist/theming/getEffectiveStyle.js.map +1 -1
- package/dist/theming/getStylesString.d.ts +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/_merge.js.map +1 -1
- package/dist/thirdparty/isPlainObject.js.map +1 -1
- package/dist/thirdparty/merge.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/AnimationMode.d.ts +0 -8
- package/dist/types/AnimationMode.js +0 -8
- package/dist/types/AnimationMode.js.map +1 -1
- package/dist/types/CalendarType.d.ts +0 -9
- package/dist/types/CalendarType.js +0 -9
- package/dist/types/CalendarType.js.map +1 -1
- package/dist/types/InvisibleMessageMode.d.ts +5 -10
- package/dist/types/InvisibleMessageMode.js +4 -11
- package/dist/types/InvisibleMessageMode.js.map +1 -1
- package/dist/types/ItemNavigationBehavior.d.ts +0 -6
- package/dist/types/ItemNavigationBehavior.js +0 -6
- package/dist/types/ItemNavigationBehavior.js.map +1 -1
- package/dist/types/MovePlacement.d.ts +20 -0
- package/dist/types/MovePlacement.js +22 -0
- package/dist/types/MovePlacement.js.map +1 -0
- package/dist/types/NavigationMode.d.ts +0 -8
- package/dist/types/NavigationMode.js +0 -8
- package/dist/types/NavigationMode.js.map +1 -1
- package/dist/types/Orientation.d.ts +16 -0
- package/dist/types/Orientation.js +18 -0
- package/dist/types/Orientation.js.map +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/ValueState.d.ts +3 -17
- package/dist/types/ValueState.js +3 -17
- package/dist/types/ValueState.js.map +1 -1
- package/dist/types.d.ts +37 -14
- package/dist/types.js.map +1 -1
- package/dist/updateShadowRoot.d.ts +1 -2
- package/dist/updateShadowRoot.js +4 -21
- package/dist/updateShadowRoot.js.map +1 -1
- package/dist/util/AccessibilityTextsHelper.d.ts +17 -0
- package/dist/util/AccessibilityTextsHelper.js +199 -0
- package/dist/util/AccessibilityTextsHelper.js.map +1 -0
- package/dist/util/Caret.js.map +1 -1
- package/dist/util/ColorConversion.d.ts +2 -1
- package/dist/util/ColorConversion.js +233 -216
- package/dist/util/ColorConversion.js.map +1 -1
- package/dist/util/FetchHelper.js.map +1 -1
- package/dist/util/FocusableElements.js +52 -14
- package/dist/util/FocusableElements.js.map +1 -1
- package/dist/util/HTMLSanitizer.js.map +1 -1
- package/dist/util/InvisibleMessage.js +2 -2
- package/dist/util/InvisibleMessage.js.map +1 -1
- package/dist/util/PopupUtils.d.ts +2 -4
- package/dist/util/PopupUtils.js +7 -21
- package/dist/util/PopupUtils.js.map +1 -1
- package/dist/util/SelectionAssistant.d.ts +12 -0
- package/dist/util/SelectionAssistant.js +79 -0
- package/dist/util/SelectionAssistant.js.map +1 -0
- package/dist/util/SlotsHelper.js.map +1 -1
- package/dist/util/StringHelper.d.ts +3 -1
- package/dist/util/StringHelper.js +15 -1
- package/dist/util/StringHelper.js.map +1 -1
- package/dist/util/TabbableElements.js +3 -10
- package/dist/util/TabbableElements.js.map +1 -1
- package/dist/util/arraysAreEqual.js.map +1 -1
- package/dist/util/clamp.js +2 -1
- package/dist/util/clamp.js.map +1 -1
- package/dist/util/createLinkInHead.d.ts +1 -1
- package/dist/util/createLinkInHead.js +1 -1
- package/dist/util/createLinkInHead.js.map +1 -1
- package/dist/util/debounce.js.map +1 -1
- package/dist/util/detectNavigatorLanguage.d.ts +2 -2
- package/dist/util/detectNavigatorLanguage.js +6 -1
- package/dist/util/detectNavigatorLanguage.js.map +1 -1
- package/dist/util/dragAndDrop/DragRegistry.d.ts +33 -0
- package/dist/util/dragAndDrop/DragRegistry.js +66 -0
- package/dist/util/dragAndDrop/DragRegistry.js.map +1 -0
- package/dist/util/dragAndDrop/findClosestPosition.d.ts +12 -0
- package/dist/util/dragAndDrop/findClosestPosition.js +106 -0
- package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -0
- 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/dragAndDrop/longDragOverHandler.d.ts +2 -0
- package/dist/util/dragAndDrop/longDragOverHandler.js +25 -0
- package/dist/util/dragAndDrop/longDragOverHandler.js.map +1 -0
- package/dist/util/escapeRegex.js.map +1 -1
- package/dist/util/fixSafariActiveState.d.ts +2 -0
- package/dist/util/fixSafariActiveState.js +11 -0
- package/dist/util/fixSafariActiveState.js.map +1 -0
- package/dist/util/formatMessage.js.map +1 -1
- package/dist/util/generateHighlightedMarkup.js.map +1 -1
- package/dist/util/getActiveElement.js.map +1 -1
- package/dist/util/getClassCopy.d.ts +145 -104
- package/dist/util/getClassCopy.js.map +1 -1
- package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
- package/dist/util/getDesigntimePropertyAsArray.js +2 -1
- package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
- package/dist/util/getEffectiveContentDensity.js.map +1 -1
- package/dist/util/getEffectiveScrollbarStyle.d.ts +1 -1
- package/dist/util/getEffectiveScrollbarStyle.js +31 -1
- package/dist/util/getEffectiveScrollbarStyle.js.map +1 -1
- package/dist/util/getFastNavigationGroups.js +6 -1
- package/dist/util/getFastNavigationGroups.js.map +1 -1
- package/dist/util/getFileExtension.js.map +1 -1
- package/dist/util/getNormalizedTarget.js.map +1 -1
- package/dist/util/getSingletonElementInstance.d.ts +10 -1
- package/dist/util/getSingletonElementInstance.js +11 -2
- package/dist/util/getSingletonElementInstance.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/isElementClickable.js.map +1 -1
- package/dist/util/isElementHidden.js.map +1 -1
- package/dist/util/isElementInView.js.map +1 -1
- package/dist/util/isElementTabbable.js +2 -2
- package/dist/util/isElementTabbable.js.map +1 -1
- package/dist/util/isValidPropertyName.js.map +1 -1
- 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/whenDOMReady.js.map +1 -1
- package/dist/util/willShowContent.js.map +1 -1
- package/dist/validateThemeRoot.js +15 -13
- package/dist/validateThemeRoot.js.map +1 -1
- package/dist/vscode.html-custom-data.json +22 -0
- package/index.js +205 -1
- package/package-scripts.cjs +74 -0
- package/package.json +37 -10
- package/src/css/FontFace.css +47 -17
- package/src/css/SystemCSSVars.css +0 -8
- 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 +18 -12
- package/.eslintignore +0 -15
- package/bundle.esm.js +0 -60
- package/config/wdio.conf.js +0 -1
- package/dist/CSP.d.ts +0 -30
- package/dist/CSP.js +0 -51
- package/dist/CSP.js.map +0 -1
- package/dist/MarkedEvents.d.ts +0 -9
- package/dist/MarkedEvents.js +0 -15
- package/dist/MarkedEvents.js.map +0 -1
- package/dist/StaticArea.d.ts +0 -0
- package/dist/StaticArea.js +0 -6
- package/dist/StaticArea.js.map +0 -1
- package/dist/StaticAreaItem.d.ts +0 -36
- package/dist/StaticAreaItem.js +0 -99
- package/dist/StaticAreaItem.js.map +0 -1
- package/dist/api.json +0 -1
- package/dist/assets/bundle.esm.ffad994a.js +0 -56
- package/dist/assets-meta/IconCollectionsAlias.d.ts +0 -17
- package/dist/assets-meta/IconCollectionsAlias.js +0 -18
- package/dist/assets-meta/IconCollectionsAlias.js.map +0 -1
- package/dist/config/RTL.d.ts +0 -7
- package/dist/config/RTL.js +0 -34
- package/dist/config/RTL.js.map +0 -1
- package/dist/config/ThemeRoots.d.ts +0 -4
- package/dist/config/ThemeRoots.js +0 -28
- package/dist/config/ThemeRoots.js.map +0 -1
- package/dist/decorators/fastNavigation.d.ts +0 -7
- package/dist/decorators/fastNavigation.js +0 -13
- package/dist/decorators/fastNavigation.js.map +0 -1
- package/dist/decorators/languageAware.d.ts +0 -7
- package/dist/decorators/languageAware.js +0 -13
- package/dist/decorators/languageAware.js.map +0 -1
- package/dist/decorators/themeAware.d.ts +0 -7
- package/dist/decorators/themeAware.js +0 -13
- package/dist/decorators/themeAware.js.map +0 -1
- package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.js +0 -11
- package/dist/theming/getEffectiveLinksHrefs.d.ts +0 -3
- package/dist/theming/getEffectiveLinksHrefs.js +0 -17
- package/dist/theming/getEffectiveLinksHrefs.js.map +0 -1
- package/dist/theming/preloadLinks.d.ts +0 -3
- package/dist/theming/preloadLinks.js +0 -19
- package/dist/theming/preloadLinks.js.map +0 -1
- package/dist/types/CSSColor.d.ts +0 -16
- package/dist/types/CSSColor.js +0 -19
- package/dist/types/CSSColor.js.map +0 -1
- package/dist/types/DOMReference.d.ts +0 -17
- package/dist/types/DOMReference.js +0 -25
- package/dist/types/DOMReference.js.map +0 -1
- package/dist/types/DataType.d.ts +0 -25
- package/dist/types/DataType.js +0 -44
- package/dist/types/DataType.js.map +0 -1
- package/dist/types/Float.d.ts +0 -18
- package/dist/types/Float.js +0 -22
- package/dist/types/Float.js.map +0 -1
- package/dist/types/Integer.d.ts +0 -18
- package/dist/types/Integer.js +0 -22
- package/dist/types/Integer.js.map +0 -1
- package/dist/util/AriaLabelHelper.d.ts +0 -6
- package/dist/util/AriaLabelHelper.js +0 -44
- package/dist/util/AriaLabelHelper.js.map +0 -1
- package/dist/util/createStyleInHead.d.ts +0 -8
- package/dist/util/createStyleInHead.js +0 -18
- package/dist/util/createStyleInHead.js.map +0 -1
- package/lib/generate-asset-parameters/index.js +0 -25
- package/lib/generate-styles/index.js +0 -26
- package/lib/generate-version-info/index.js +0 -32
- package/package-scripts.js +0 -67
- package/src/AssetRegistry.ts +0 -11
- package/src/Boot.ts +0 -61
- package/src/CSP.ts +0 -66
- package/src/CustomElementsRegistry.ts +0 -98
- package/src/CustomElementsScope.ts +0 -33
- package/src/CustomElementsScopeUtils.ts +0 -115
- package/src/DOMObserver.ts +0 -28
- package/src/Device.ts +0 -124
- package/src/EventProvider.ts +0 -87
- package/src/FeaturesRegistry.ts +0 -14
- package/src/FontFace.ts +0 -31
- package/src/InitialConfiguration.ts +0 -207
- package/src/Keys.ts +0 -295
- package/src/ManagedStyles.ts +0 -92
- package/src/MarkedEvents.ts +0 -20
- package/src/MediaRange.ts +0 -110
- package/src/PropertiesFileFormat.ts +0 -95
- package/src/Render.ts +0 -180
- package/src/RenderQueue.ts +0 -71
- package/src/Runtimes.ts +0 -114
- package/src/StaticArea.ts +0 -3
- package/src/StaticAreaItem.ts +0 -113
- package/src/SystemCSSVars.ts +0 -10
- package/src/Theming.ts +0 -4
- package/src/UI5Element.ts +0 -1155
- package/src/UI5ElementMetadata.ts +0 -389
- package/src/animations/AnimationQueue.ts +0 -43
- package/src/animations/animate.ts +0 -64
- package/src/animations/scroll.ts +0 -21
- package/src/animations/slideDown.ts +0 -72
- package/src/animations/slideUp.ts +0 -67
- package/src/asset-registries/Icons.ts +0 -162
- package/src/asset-registries/Illustrations.ts +0 -75
- package/src/asset-registries/LocaleData.ts +0 -172
- package/src/asset-registries/Themes.ts +0 -67
- package/src/asset-registries/i18n.ts +0 -118
- package/src/assets-meta/IconCollectionsAlias.ts +0 -18
- package/src/config/AnimationMode.ts +0 -33
- package/src/config/CalendarType.ts +0 -23
- package/src/config/FormatSettings.ts +0 -21
- package/src/config/Icons.ts +0 -59
- package/src/config/Language.ts +0 -72
- package/src/config/NoConflict.ts +0 -67
- package/src/config/RTL.ts +0 -41
- package/src/config/Theme.ts +0 -64
- package/src/config/ThemeRoots.ts +0 -41
- package/src/decorators/customElement.ts +0 -17
- package/src/decorators/event.ts +0 -28
- package/src/decorators/fastNavigation.ts +0 -14
- package/src/decorators/languageAware.ts +0 -14
- package/src/decorators/property.ts +0 -30
- package/src/decorators/slot.ts +0 -49
- package/src/decorators/themeAware.ts +0 -14
- package/src/delegate/ItemNavigation.ts +0 -393
- package/src/delegate/ResizeHandler.ts +0 -95
- package/src/delegate/ScrollEnablement.ts +0 -221
- package/src/features/F6Navigation.ts +0 -141
- package/src/features/OpenUI5Element.ts +0 -11
- package/src/features/OpenUI5Enablement.ts +0 -117
- package/src/features/OpenUI5Support.ts +0 -148
- package/src/getSharedResource.ts +0 -30
- package/src/i18nBundle.ts +0 -108
- package/src/locale/Locale.ts +0 -101
- package/src/locale/RTLAwareRegistry.ts +0 -16
- package/src/locale/applyDirection.ts +0 -18
- package/src/locale/directionChange.ts +0 -34
- package/src/locale/getEffectiveDir.ts +0 -28
- package/src/locale/getLocale.ts +0 -46
- package/src/locale/languageChange.ts +0 -24
- package/src/locale/nextFallbackLocale.ts +0 -28
- package/src/locale/normalizeLocale.ts +0 -56
- package/src/renderer/LitRenderer.ts +0 -60
- package/src/renderer/directives/style-map.js +0 -72
- package/src/renderer/executeTemplate.ts +0 -40
- package/src/theming/CustomStyle.ts +0 -62
- package/src/theming/ThemeLoaded.ts +0 -24
- package/src/theming/applyTheme.ts +0 -90
- package/src/theming/getConstructableStyle.ts +0 -31
- package/src/theming/getEffectiveLinksHrefs.ts +0 -26
- package/src/theming/getEffectiveStyle.ts +0 -41
- package/src/theming/getStylesString.ts +0 -15
- package/src/theming/getThemeDesignerTheme.ts +0 -101
- package/src/theming/preloadLinks.ts +0 -24
- package/src/thirdparty/_merge.ts +0 -32
- package/src/thirdparty/isPlainObject.ts +0 -18
- package/src/thirdparty/merge.ts +0 -5
- package/src/types/AnimationMode.ts +0 -33
- package/src/types/CSSColor.ts +0 -20
- package/src/types/CalendarType.ts +0 -38
- package/src/types/DOMReference.ts +0 -28
- package/src/types/DataType.ts +0 -51
- package/src/types/Float.ts +0 -25
- package/src/types/Integer.ts +0 -25
- package/src/types/InvisibleMessageMode.ts +0 -27
- package/src/types/ItemNavigationBehavior.ts +0 -26
- package/src/types/NavigationMode.ts +0 -33
- package/src/types/ValueState.ts +0 -47
- package/src/types.ts +0 -30
- package/src/updateShadowRoot.ts +0 -37
- package/src/util/AriaLabelHelper.ts +0 -63
- package/src/util/Caret.ts +0 -28
- package/src/util/ColorConversion.ts +0 -399
- package/src/util/FetchHelper.ts +0 -31
- package/src/util/FocusableElements.ts +0 -82
- package/src/util/HTMLSanitizer.ts +0 -9
- package/src/util/InvisibleMessage.ts +0 -69
- package/src/util/PopupUtils.ts +0 -114
- package/src/util/SlotsHelper.ts +0 -39
- package/src/util/StringHelper.ts +0 -26
- package/src/util/TabbableElements.ts +0 -70
- package/src/util/arraysAreEqual.ts +0 -15
- package/src/util/clamp.ts +0 -12
- package/src/util/createLinkInHead.ts +0 -25
- package/src/util/createStyleInHead.ts +0 -20
- package/src/util/debounce.ts +0 -18
- package/src/util/detectNavigatorLanguage.ts +0 -13
- package/src/util/escapeRegex.ts +0 -11
- package/src/util/formatMessage.ts +0 -24
- package/src/util/generateHighlightedMarkup.ts +0 -43
- package/src/util/getActiveElement.ts +0 -11
- package/src/util/getClassCopy.ts +0 -12
- package/src/util/getDesigntimePropertyAsArray.ts +0 -4
- package/src/util/getEffectiveContentDensity.ts +0 -5
- package/src/util/getEffectiveScrollbarStyle.ts +0 -5
- package/src/util/getFastNavigationGroups.ts +0 -63
- package/src/util/getFileExtension.ts +0 -21
- package/src/util/getNormalizedTarget.ts +0 -16
- package/src/util/getSingletonElementInstance.ts +0 -13
- package/src/util/isElementClickable.ts +0 -19
- package/src/util/isElementHidden.ts +0 -9
- package/src/util/isElementInView.ts +0 -15
- package/src/util/isElementTabbable.ts +0 -37
- package/src/util/isValidPropertyName.ts +0 -29
- package/src/util/whenDOMReady.ts +0 -13
- package/src/util/willShowContent.ts +0 -7
- package/src/validateThemeRoot.ts +0 -58
- package/used-modules.txt +0 -10
package/README.md
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
UI5 Web Components - Base
|
|
4
2
|
|
|
5
3
|
[](https://www.npmjs.com/package/@ui5/webcomponents)
|
|
6
4
|
|
|
@@ -19,9 +17,6 @@ Contains the base files for all Web Components, most notably `@ui5/webcomponents
|
|
|
19
17
|
Components | `import applyDirection from "@ui5/webcomponents-base/dist/locale/applyDirection.js"`| Applies direction ("ltr"/"rtl") - re-renders all RTL-aware components |
|
|
20
18
|
Components | `import { setCustomElementsScopingSuffix } from "@ui5/webcomponents-base/dist/CustomElementsScope.js"`| Adds suffix to the tag names of all components |
|
|
21
19
|
Components | `@ui5/webcomponents-base/dist/util/InvisibleMessage.js` | Provides a way to expose dynamic content changes that can be announced by screen readers |
|
|
22
|
-
CSP compliance| `import { setPackageCSSRoot } from "@ui5/webcomponents-base/dist/CSP.js"`| Sets directory path where the CSS resources for given package will be served from |
|
|
23
|
-
CSP compliance| `import { setUseLinks } from "@ui5/webcomponents-base/dist/CSP.js"` | Enables or disables the usage of `<link>` tags instead of `<style>` tags |
|
|
24
|
-
CSP compliance| `import { setPreloadLinks } from "@ui5/webcomponents-base/dist/CSP.js"` | Enables or disables the preloading of `<link>` tags |
|
|
25
20
|
|
|
26
21
|
### `applyDirection.js`
|
|
27
22
|
- `applyDirection`
|
|
@@ -37,10 +32,9 @@ Contains the base files for all Web Components, most notably `@ui5/webcomponents
|
|
|
37
32
|
- `setCustomElementsScopingRules`
|
|
38
33
|
- `getCustomElementsScopingRules`
|
|
39
34
|
|
|
40
|
-
###
|
|
41
|
-
|
|
42
|
-
- `
|
|
43
|
-
- `setPreloadLinks`
|
|
35
|
+
### `IgnoreCustomElements.js`
|
|
36
|
+
|
|
37
|
+
- `ignoreCustomElements`
|
|
44
38
|
|
|
45
39
|
### `i18nBundle.js`
|
|
46
40
|
|
|
@@ -58,10 +52,10 @@ Contains the base files for all Web Components, most notably `@ui5/webcomponents
|
|
|
58
52
|
## Resources
|
|
59
53
|
- [UI5 Web Components - README.md](https://github.com/SAP/ui5-webcomponents/blob/main/README.md)
|
|
60
54
|
- [UI5 Web Components - Home Page](https://sap.github.io/ui5-webcomponents)
|
|
61
|
-
- [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/
|
|
55
|
+
- [UI5 Web Components - Playground and API Reference](https://sap.github.io/ui5-webcomponents/play/)
|
|
62
56
|
|
|
63
57
|
## Support
|
|
64
|
-
We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://
|
|
58
|
+
We welcome all comments, suggestions, questions, and bug reports. Please follow our [Support Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/SUPPORT.md#-content) on how to report an issue, or chat with us in the `#webcomponents` channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/).
|
|
65
59
|
|
|
66
60
|
## Contribute
|
|
67
61
|
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-webcomponents/blob/main/docs/6-contributing/02-conventions-and-guidelines.md).
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import Accessor from "../../test/test-elements/Accessor.js";
|
|
2
|
+
|
|
3
|
+
describe("Framework boot", () => {
|
|
4
|
+
it("Setting property updates attribute, state and DOM", () => {
|
|
5
|
+
cy.mount(<Accessor></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(<Accessor></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(<Accessor></Accessor>);
|
|
74
|
+
|
|
75
|
+
cy.get("[ui5-test-accessor]")
|
|
76
|
+
.invoke("prop", "title")
|
|
77
|
+
.should("be.undefined");
|
|
78
|
+
});
|
|
79
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
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(`:root{ --customCol: #fff; --customBg: #000; }`);
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
cy.wrap({ hasStyle })
|
|
16
|
+
.invoke("hasStyle", "data-ui5-theme-properties", "@ui5/webcomponents-theming")
|
|
17
|
+
.should("be.true");
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,133 @@
|
|
|
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 TestGeneric from "../../test/test-elements/Generic.js";
|
|
5
|
+
import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "../../src/config/FormatSettings.js";
|
|
6
|
+
import { getLanguage } from "../../src/config/Language.js";
|
|
7
|
+
import { getNoConflict } from "../../src/config/NoConflict.js";
|
|
8
|
+
import { getTheme } from "../../src/config/Theme.js";
|
|
9
|
+
import { getEnableDefaultTooltips } from "../../src/config/Tooltips.js";
|
|
10
|
+
import { resetConfiguration } from "../../src/InitialConfiguration.js";
|
|
11
|
+
|
|
12
|
+
describe("Configuration script", () => {
|
|
13
|
+
const configurationObject = {
|
|
14
|
+
"theme": "sap_horizon_hcb",
|
|
15
|
+
"animationMode": "basic",
|
|
16
|
+
"rtl": true,
|
|
17
|
+
"language": "ja",
|
|
18
|
+
"calendarType": "Japanese",
|
|
19
|
+
"formatSettings": {
|
|
20
|
+
"firstDayOfWeek": 0,
|
|
21
|
+
"legacyDateCalendarCustomizing": [
|
|
22
|
+
{
|
|
23
|
+
"dateFormat": "A",
|
|
24
|
+
"islamicMonthStart": "14351201",
|
|
25
|
+
"gregDate": "20140925",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"dateFormat": "A",
|
|
29
|
+
"islamicMonthStart": "14360101",
|
|
30
|
+
"gregDate": "20141024",
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"dateFormat": "A",
|
|
34
|
+
"islamicMonthStart": "14360201",
|
|
35
|
+
"gregDate": "20141123",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
"noConflict": {
|
|
40
|
+
"events": ["selection-change", "header-click"],
|
|
41
|
+
},
|
|
42
|
+
"defaultFontLoading": false,
|
|
43
|
+
"enableDefaultTooltips": false,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
before(() => {
|
|
47
|
+
cy.window()
|
|
48
|
+
.then($el => {
|
|
49
|
+
const scriptElement = document.createElement("script");
|
|
50
|
+
scriptElement.type = "application/json";
|
|
51
|
+
scriptElement.setAttribute("data-ui5-config", "true");
|
|
52
|
+
scriptElement.innerHTML = JSON.stringify(configurationObject);
|
|
53
|
+
return $el.document.head.append(scriptElement);
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
cy.wrap({ resetConfiguration })
|
|
58
|
+
.invoke("resetConfiguration", true);
|
|
59
|
+
|
|
60
|
+
cy.mount(<TestGeneric />);
|
|
61
|
+
cy.get("script[data-ui5-config]")
|
|
62
|
+
.should("exist")
|
|
63
|
+
.then($el => {
|
|
64
|
+
return $el.get(0)?.innerHTML;
|
|
65
|
+
})
|
|
66
|
+
.should("equal", JSON.stringify(configurationObject));
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
after(() => {
|
|
70
|
+
cy.window()
|
|
71
|
+
.then($el => {
|
|
72
|
+
const scriptElement = $el.document.head.querySelector("script[data-ui5-config]");
|
|
73
|
+
|
|
74
|
+
scriptElement?.remove();
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
it("getLanguage", () => {
|
|
79
|
+
cy.wrap({ getLanguage })
|
|
80
|
+
.invoke("getLanguage")
|
|
81
|
+
.should("equal", configurationObject.language);
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
it("getCalendarType", () => {
|
|
85
|
+
cy.wrap({ getCalendarType })
|
|
86
|
+
.invoke("getCalendarType")
|
|
87
|
+
.should("equal", configurationObject.calendarType);
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
it("getFirstDayOfWeek", () => {
|
|
91
|
+
cy.wrap({ getFirstDayOfWeek })
|
|
92
|
+
.invoke("getFirstDayOfWeek")
|
|
93
|
+
.should("equal", configurationObject.formatSettings.firstDayOfWeek);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it("getLegacyDateCalendarCustomizing", () => {
|
|
97
|
+
cy.wrap({ getLegacyDateCalendarCustomizing })
|
|
98
|
+
.invoke("getLegacyDateCalendarCustomizing")
|
|
99
|
+
.should("deep.equal", configurationObject.formatSettings.legacyDateCalendarCustomizing);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
it("getAnimationMode", () => {
|
|
103
|
+
cy.wrap({ getAnimationMode })
|
|
104
|
+
.invoke("getAnimationMode")
|
|
105
|
+
.should("equal", configurationObject.animationMode);
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
it("getEnableDefaultTooltips", () => {
|
|
109
|
+
cy.wrap({ getTheme })
|
|
110
|
+
.invoke("getTheme")
|
|
111
|
+
.should("equal", configurationObject.theme);
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
it("getNoConflict", () => {
|
|
115
|
+
cy.wrap({ getNoConflict })
|
|
116
|
+
.invoke("getNoConflict")
|
|
117
|
+
.should("deep.equal", configurationObject.noConflict)
|
|
118
|
+
.its("events")
|
|
119
|
+
.should("deep.equal", configurationObject.noConflict.events);
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
it("getDefaultFontLoading", () => {
|
|
123
|
+
cy.wrap({ getDefaultFontLoading })
|
|
124
|
+
.invoke("getDefaultFontLoading")
|
|
125
|
+
.should("equal", false);
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
it("getEnableDefaultTooltips", () => {
|
|
129
|
+
cy.wrap({ getEnableDefaultTooltips })
|
|
130
|
+
.invoke("getEnableDefaultTooltips")
|
|
131
|
+
.should("equal", false);
|
|
132
|
+
});
|
|
133
|
+
});
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { internals } from "../../src/Location.js";
|
|
2
|
+
import TestGeneric from "../../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 AnimationMode from "../../src/types/AnimationMode.js";
|
|
9
|
+
import { getThemeRoot } from "../../src/config/ThemeRoot.js";
|
|
10
|
+
|
|
11
|
+
describe("Some settings can be set via SAP UI URL params", () => {
|
|
12
|
+
before(() => {
|
|
13
|
+
const searchParams = "sap-ui-rtl=true&sap-ui-language=ja&sap-ui-calendarType=Japanese&sap-ui-theme=sap_horizon_hcb&sap-ui-animationMode=basic";
|
|
14
|
+
|
|
15
|
+
cy.stub(internals, "search", () => {
|
|
16
|
+
return searchParams;
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
cy.then(() => {
|
|
20
|
+
return resetConfiguration(true);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
cy.wrap(internals)
|
|
24
|
+
.invoke("search")
|
|
25
|
+
.should("be.equal", searchParams);
|
|
26
|
+
|
|
27
|
+
cy.mount(<TestGeneric />);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it("Tests that language is applied", () => {
|
|
31
|
+
cy.wrap({ getLanguage })
|
|
32
|
+
.invoke("getLanguage")
|
|
33
|
+
.should("equal", "ja");
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it("Tests that calendarType is applied", () => {
|
|
37
|
+
cy.wrap({ getCalendarType })
|
|
38
|
+
.invoke("getCalendarType")
|
|
39
|
+
.should("equal", "Japanese");
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it("Tests that theme is applied", () => {
|
|
43
|
+
cy.wrap({ getTheme })
|
|
44
|
+
.invoke("getTheme")
|
|
45
|
+
.should("equal", "sap_horizon_hcb");
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
it("Tests that animationMode is applied", () => {
|
|
49
|
+
cy.wrap({ getAnimationMode })
|
|
50
|
+
.invoke("getAnimationMode")
|
|
51
|
+
.should("equal", AnimationMode.Basic);
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
describe("Different themeRoot configurations", () => {
|
|
56
|
+
it("Allowed theme root", () => {
|
|
57
|
+
const searchParams = "sap-ui-theme=sap_horizon_hcb@https://example.com";
|
|
58
|
+
|
|
59
|
+
// All allowed theme roots need to be described inside the meta tag.
|
|
60
|
+
cy.window()
|
|
61
|
+
.then($el => {
|
|
62
|
+
const metaTag = document.createElement("meta");
|
|
63
|
+
metaTag.name = "sap-allowedThemeOrigins";
|
|
64
|
+
metaTag.content = "https://example.com";
|
|
65
|
+
|
|
66
|
+
$el.document.head.append(metaTag);
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
cy.stub(internals, "search", () => {
|
|
70
|
+
return searchParams;
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
cy.wrap({ resetConfiguration })
|
|
74
|
+
.invoke("resetConfiguration", true);
|
|
75
|
+
|
|
76
|
+
cy.wrap(internals)
|
|
77
|
+
.invoke("search")
|
|
78
|
+
.should("be.equal", searchParams);
|
|
79
|
+
|
|
80
|
+
cy.mount(<TestGeneric />);
|
|
81
|
+
|
|
82
|
+
cy.wrap({ getThemeRoot })
|
|
83
|
+
.invoke("getThemeRoot")
|
|
84
|
+
.should("equal", "https://example.com/UI5/");
|
|
85
|
+
|
|
86
|
+
// All allowed theme roots need to be described inside the meta tag.
|
|
87
|
+
cy.window()
|
|
88
|
+
.then($el => {
|
|
89
|
+
const metaTag = $el.document.head.querySelector("[name='sap-allowedThemeOrigins']");
|
|
90
|
+
|
|
91
|
+
metaTag?.remove();
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it("Unallowed theme root", () => {
|
|
96
|
+
const searchParams = "sap-ui-theme=sap_horizon_hcb@https://another-example.com";
|
|
97
|
+
|
|
98
|
+
cy.stub(internals, "search", () => {
|
|
99
|
+
return searchParams;
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
cy.wrap({ resetConfiguration })
|
|
103
|
+
.invoke("resetConfiguration", true);
|
|
104
|
+
|
|
105
|
+
cy.wrap(internals)
|
|
106
|
+
.invoke("search")
|
|
107
|
+
.should("be.equal", searchParams);
|
|
108
|
+
|
|
109
|
+
cy.mount(<TestGeneric />);
|
|
110
|
+
|
|
111
|
+
cy.wrap({ getThemeRoot })
|
|
112
|
+
.invoke("getThemeRoot")
|
|
113
|
+
.should("equal", `${window.location.origin}/UI5/`);
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
it("Relative theme root", () => {
|
|
117
|
+
const searchParams = "sap-ui-theme=sap_horizon_hcb@./test";
|
|
118
|
+
|
|
119
|
+
cy.stub(internals, "search", () => {
|
|
120
|
+
return searchParams;
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
cy.wrap({ resetConfiguration })
|
|
124
|
+
.invoke("resetConfiguration", true);
|
|
125
|
+
|
|
126
|
+
cy.wrap(internals)
|
|
127
|
+
.invoke("search")
|
|
128
|
+
.should("be.equal", searchParams);
|
|
129
|
+
|
|
130
|
+
cy.mount(<TestGeneric />);
|
|
131
|
+
|
|
132
|
+
cy.wrap({ getThemeRoot })
|
|
133
|
+
.invoke("getThemeRoot")
|
|
134
|
+
.then(themeRoot => {
|
|
135
|
+
return themeRoot?.endsWith("/test/UI5/");
|
|
136
|
+
})
|
|
137
|
+
.should("be.true");
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
describe("Some settings can be set via SAP URL params", () => {
|
|
142
|
+
before(() => {
|
|
143
|
+
const searchParams = "sap-language=bg&sap-theme=sap_fiori_3_dark";
|
|
144
|
+
|
|
145
|
+
cy.stub(internals, "search", () => {
|
|
146
|
+
return searchParams;
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
cy.wrap({ resetConfiguration })
|
|
150
|
+
.invoke("resetConfiguration", true);
|
|
151
|
+
|
|
152
|
+
cy.wrap(internals)
|
|
153
|
+
.invoke("search")
|
|
154
|
+
.should("be.equal", searchParams);
|
|
155
|
+
|
|
156
|
+
cy.mount(<TestGeneric />);
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
it("Tests that language is applied via sap-ui-language", () => {
|
|
160
|
+
cy.wrap({ getLanguage })
|
|
161
|
+
.invoke("getLanguage")
|
|
162
|
+
.should("equal", "bg");
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
it("Tests that theme is applied via sap-ui-theme", () => {
|
|
166
|
+
cy.wrap({ getTheme })
|
|
167
|
+
.invoke("getTheme")
|
|
168
|
+
.should("equal", "sap_fiori_3_dark");
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
describe("Some settings can be set via SAP UI URL params", () => {
|
|
173
|
+
before(() => {
|
|
174
|
+
const searchParams = "sap-language=bg&sap-ui-language=de&sap-theme=sap_fiori_3_dark&sap-theme=sap_fiori_3_hcb";
|
|
175
|
+
|
|
176
|
+
cy.stub(internals, "search", () => {
|
|
177
|
+
return searchParams;
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
cy.wrap({ resetConfiguration })
|
|
181
|
+
.invoke("resetConfiguration", true);
|
|
182
|
+
|
|
183
|
+
cy.wrap(internals)
|
|
184
|
+
.invoke("search")
|
|
185
|
+
.should("be.equal", searchParams);
|
|
186
|
+
|
|
187
|
+
cy.mount(<TestGeneric />);
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
it("Tests that language is applied via sap-ui-language", () => {
|
|
191
|
+
cy.wrap({ getLanguage })
|
|
192
|
+
.invoke("getLanguage")
|
|
193
|
+
.should("equal", "de");
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
it("Tests that theme is applied via sap-ui-theme", () => {
|
|
197
|
+
cy.wrap({ getTheme })
|
|
198
|
+
.invoke("getTheme")
|
|
199
|
+
.should("equal", "sap_fiori_3_hcb");
|
|
200
|
+
});
|
|
201
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { registerThemePropertiesLoader } from "../../src/AssetRegistry.js";
|
|
2
|
+
import { setTheme } from "../../src/config/Theme.js";
|
|
3
|
+
import { getCurrentRuntimeIndex } from "../../src/Runtimes.js";
|
|
4
|
+
import TestGeneric from "../../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(<TestGeneric />);
|
|
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
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import EventsConsumer from "../../test/test-elements/Events.js";
|
|
2
|
+
import type { Events } from "../../test/test-elements/Events.js";
|
|
3
|
+
|
|
4
|
+
describe("Event provider attaches and detaches listeners properly", () => {
|
|
5
|
+
it("Tests that attaching camelCase and kebab-case events in templates works", () => {
|
|
6
|
+
cy.mount(<EventsConsumer></EventsConsumer>);
|
|
7
|
+
cy.get<EventsConsumer>("[ui5-test-events-consumer]")
|
|
8
|
+
.as("eventsConsumer");
|
|
9
|
+
|
|
10
|
+
cy.get("@eventsConsumer")
|
|
11
|
+
.shadow()
|
|
12
|
+
.find("[ui5-test-events]")
|
|
13
|
+
.then(elements => {
|
|
14
|
+
(elements[0] as Events).fireKebaCaseEvent();
|
|
15
|
+
});
|
|
16
|
+
cy.get("@eventsConsumer")
|
|
17
|
+
.should("have.prop", "kebabCaseFired", true);
|
|
18
|
+
|
|
19
|
+
cy.get("@eventsConsumer")
|
|
20
|
+
.shadow()
|
|
21
|
+
.find("[ui5-test-events]")
|
|
22
|
+
.then(elements => {
|
|
23
|
+
(elements[0] as Events).fireCamelCaseEvent();
|
|
24
|
+
});
|
|
25
|
+
cy.get("@eventsConsumer")
|
|
26
|
+
.should("have.prop", "camelCaseFired", true);
|
|
27
|
+
});
|
|
28
|
+
});
|