@ui5/webcomponents-base 0.0.0-4e88b8243 → 0.0.0-50f1454ef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +256 -0
- package/cypress/specs/{Accessor.cy.ts → Accessor.cy.tsx} +4 -4
- package/cypress/specs/{ConfigurationScript.cy.ts → ConfigurationScript.cy.tsx} +21 -4
- package/cypress/specs/{ConfigurationURL.cy.ts → ConfigurationURL.cy.tsx} +27 -8
- package/cypress/specs/CustomMount.cy.tsx +9 -0
- package/cypress/specs/{CustomTheme.cy.ts → CustomTheme.cy.tsx} +2 -2
- package/cypress/specs/Events.cy.tsx +28 -0
- package/cypress/specs/{UI5ElementInvalidation.cy.ts → UI5ElementInvalidation.cy.tsx} +55 -10
- package/cypress/specs/{UI5ElementLifecycle.cy.ts → UI5ElementLifecycle.cy.tsx} +4 -4
- package/cypress/specs/{UI5ElementListenForChildPropChanges.cy.ts → UI5ElementListenForChildPropChanges.cy.tsx} +32 -11
- package/cypress/specs/{UI5ElementMetadataExt.cy.ts → UI5ElementMetadataExt.cy.tsx} +3 -3
- package/cypress/specs/{UI5ElementPropertyValidation.cy.ts → UI5ElementPropertyValidation.cy.tsx} +2 -2
- package/cypress/specs/{UI5ElementPropsAndAttrs.cy.ts → UI5ElementPropsAndAttrs.cy.tsx} +8 -8
- package/cypress/specs/{UI5ElementShadowDOM.cy.ts → UI5ElementShadowDOM.cy.tsx} +4 -4
- package/cypress/specs/{UI5ElementSlots.cy.ts → UI5ElementSlots.cy.tsx} +47 -27
- package/cypress/specs/{WithComplexTemplate.cy.ts → WithComplexTemplate.cy.tsx} +2 -2
- 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 +17 -0
- package/cypress/tsconfig.json +2 -1
- package/cypress.config.js +1 -1
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/CustomElementsRegistry.d.ts +2 -1
- package/dist/CustomElementsRegistry.js +4 -1
- package/dist/CustomElementsRegistry.js.map +1 -1
- package/dist/CustomElementsScopeUtils.d.ts +3 -1
- package/dist/CustomElementsScopeUtils.js +8 -1
- package/dist/CustomElementsScopeUtils.js.map +1 -1
- package/dist/FeaturesRegistry.d.ts +1 -16
- package/dist/FeaturesRegistry.js +1 -37
- package/dist/FeaturesRegistry.js.map +1 -1
- package/dist/UI5Element.d.ts +15 -4
- package/dist/UI5Element.js +25 -15
- package/dist/UI5Element.js.map +1 -1
- package/dist/UI5ElementMetadata.d.ts +0 -5
- package/dist/UI5ElementMetadata.js +0 -7
- package/dist/UI5ElementMetadata.js.map +1 -1
- package/dist/config/Theme.js +1 -2
- package/dist/config/Theme.js.map +1 -1
- package/dist/custom-elements-internal.json +2803 -0
- package/dist/custom-elements.json +2500 -0
- package/dist/decorators/customElement.d.ts +1 -0
- package/dist/decorators/customElement.js +1 -4
- package/dist/decorators/customElement.js.map +1 -1
- package/dist/decorators/i18n.js +6 -0
- package/dist/decorators/i18n.js.map +1 -1
- package/dist/features/F6Navigation.d.ts +1 -0
- package/dist/features/F6Navigation.js +21 -2
- package/dist/features/F6Navigation.js.map +1 -1
- package/dist/features/patchPopup.js +10 -1
- 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 +4 -4
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/index.d.ts +43 -3
- package/dist/index.js +88 -0
- package/dist/index.js.map +1 -0
- package/dist/jsx-utils.js +11 -2
- package/dist/jsx-utils.js.map +1 -1
- package/dist/locale/nextFallbackLocale.js +6 -2
- package/dist/locale/nextFallbackLocale.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.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/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 +28 -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.js +12 -2
- package/dist/renderer/JsxRenderer.js.map +1 -1
- package/dist/ssr-dom-shim.js +51 -1
- package/dist/ssr-dom-shim.js.map +1 -1
- package/dist/thirdparty/preact/jsx.d.ts +1 -1
- package/dist/thirdparty/preact/jsxRuntime.module.d.ts +3 -3
- package/dist/thirdparty/preact/jsxRuntime.module.js +0 -1
- package/dist/thirdparty/preact/preact.module.js +1 -2
- 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/util/ColorConversion.js +24 -22
- package/dist/util/ColorConversion.js.map +1 -1
- package/dist/util/FocusableElements.js +28 -2
- 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/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/getClassCopy.d.ts +4 -0
- package/dist/util/getEffectiveScrollbarStyle.d.ts +1 -1
- package/dist/util/getEffectiveScrollbarStyle.js +3 -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/throttle.d.ts +2 -0
- package/dist/util/throttle.js +20 -0
- package/dist/util/throttle.js.map +1 -0
- package/dist/vscode.html-custom-data.json +22 -0
- package/package-scripts.cjs +4 -4
- package/package.json +12 -7
- package/src/thirdparty/preact/jsxRuntime.module.js +0 -1
- package/src/thirdparty/preact/preact.module.js +1 -2
- package/tsconfig.json +0 -1
- package/cypress/specs/CustomMount.cy.ts +0 -34
- package/index.js +0 -208
- /package/cypress/specs/{Boot.cy.ts → Boot.cy.tsx} +0 -0
- /package/cypress/specs/{ConfigurationChange.cy.ts → ConfigurationChange.cy.tsx} +0 -0
- /package/cypress/specs/{EventProvider.cy.ts → EventProvider.cy.tsx} +0 -0
- /package/cypress/specs/{SystemDOMElements.cy.ts → SystemDOMElements.cy.tsx} +0 -0
- /package/cypress/specs/{Theming.cy.ts → Theming.cy.tsx} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,262 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.11.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.11.0-rc.0...v2.11.0-rc.1) (2025-05-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **f6navigation:** delegate fast navigation to openui5 ([#11505](https://github.com/SAP/ui5-webcomponents/issues/11505)) ([b23ee41](https://github.com/SAP/ui5-webcomponents/commit/b23ee41258835e0561e175150a099e0d9669a977)), closes [#10462](https://github.com/SAP/ui5-webcomponents/issues/10462)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **f6navigation:** add option to bypass groups ([#11494](https://github.com/SAP/ui5-webcomponents/issues/11494)) ([7039c24](https://github.com/SAP/ui5-webcomponents/commit/7039c24d260406d8b69883fe843de1b5c3cdc819))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [2.11.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0...v2.11.0-rc.0) (2025-05-08)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [2.10.0](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.3...v2.10.0) (2025-05-07)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# [2.10.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.2...v2.10.0-rc.3) (2025-05-01)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# [2.10.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.1...v2.10.0-rc.2) (2025-04-24)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# [2.10.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.10.0-rc.0...v2.10.0-rc.1) (2025-04-17)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# [2.10.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.9.1-rc.0...v2.10.0-rc.0) (2025-04-14)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [2.9.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0...v2.9.1-rc.0) (2025-04-10)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
# [2.9.0](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.3...v2.9.0) (2025-04-04)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
# [2.9.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.2...v2.9.0-rc.3) (2025-04-03)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Bug Fixes
|
|
90
|
+
|
|
91
|
+
* **framework:** fix fetching "id" (indonesian) language ([#11251](https://github.com/SAP/ui5-webcomponents/issues/11251)) ([9a36df5](https://github.com/SAP/ui5-webcomponents/commit/9a36df5dc2191758abd665d6fb1014d645e322f7)), closes [#11233](https://github.com/SAP/ui5-webcomponents/issues/11233)
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
# [2.9.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.1...v2.9.0-rc.2) (2025-03-27)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### Bug Fixes
|
|
101
|
+
|
|
102
|
+
* **framework:** .d.ts errors that require skipLibCheck ([#11189](https://github.com/SAP/ui5-webcomponents/issues/11189)) ([92f0e68](https://github.com/SAP/ui5-webcomponents/commit/92f0e68c3b3b71ff27f707621b8b3da2248a2719))
|
|
103
|
+
* **framework:** fix find first focusable element ([#10984](https://github.com/SAP/ui5-webcomponents/issues/10984)) ([40303d5](https://github.com/SAP/ui5-webcomponents/commit/40303d54ce3fcc06ad980e12224be9f13ce8a983))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# [2.9.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.0...v2.9.0-rc.1) (2025-03-20)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* keep export paths in base in sync ([#11082](https://github.com/SAP/ui5-webcomponents/issues/11082)) ([8620ac8](https://github.com/SAP/ui5-webcomponents/commit/8620ac8823256ecf34ba70b4c06210253a3e5d14))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
# [2.9.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.8.1-rc.0...v2.9.0-rc.0) (2025-03-13)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Bug Fixes
|
|
124
|
+
|
|
125
|
+
* **ui5-tabcontainer:** allow browser refresh shortcut to work ([#11035](https://github.com/SAP/ui5-webcomponents/issues/11035)) ([a4a0f02](https://github.com/SAP/ui5-webcomponents/commit/a4a0f028f44a60fd6caea0f4ecdac49b0289270d))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
## [2.8.1-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0...v2.8.1-rc.0) (2025-03-06)
|
|
132
|
+
|
|
133
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
# [2.8.0](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.3...v2.8.0) (2025-03-04)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
### Features
|
|
143
|
+
|
|
144
|
+
* **framework:** add `.currentTarget` to the type of event handler in TSX and UI5CustomEvent ([#10957](https://github.com/SAP/ui5-webcomponents/issues/10957)) ([f56753c](https://github.com/SAP/ui5-webcomponents/commit/f56753c5142d6e817b05d7e33bd160f09c2d5205))
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
# [2.8.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.2...v2.8.0-rc.3) (2025-02-27)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Bug Fixes
|
|
154
|
+
|
|
155
|
+
* i18n bundle storage ([#10924](https://github.com/SAP/ui5-webcomponents/issues/10924)) ([e5456fb](https://github.com/SAP/ui5-webcomponents/commit/e5456fba557ab339ddcf6d933284a2b51155fa33)), closes [#10521](https://github.com/SAP/ui5-webcomponents/issues/10521)
|
|
156
|
+
* **ui5-popover, ui5-dialog:** fix finding keyboard focusable scroll containers ([#10891](https://github.com/SAP/ui5-webcomponents/issues/10891)) ([ed26b90](https://github.com/SAP/ui5-webcomponents/commit/ed26b9051ef02772d748de463b9b3084de12ebe8))
|
|
157
|
+
* **ui5-popover, ui5-dialog:** fix preventDefault for before-open and before-close events ([#10883](https://github.com/SAP/ui5-webcomponents/issues/10883)) ([e32e7ba](https://github.com/SAP/ui5-webcomponents/commit/e32e7ba83e4a950a7ad4745c302cc34b57c4cb8e))
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
# [2.8.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.1...v2.8.0-rc.2) (2025-02-20)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Bug Fixes
|
|
167
|
+
|
|
168
|
+
* **framework:** allow usage of events with any name not only kebab-case ([#10896](https://github.com/SAP/ui5-webcomponents/issues/10896)) ([d49f0de](https://github.com/SAP/ui5-webcomponents/commit/d49f0ded677a3d000e22811504a93f7ab11b145c))
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
# [2.8.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.0...v2.8.0-rc.1) (2025-02-13)
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
### Bug Fixes
|
|
178
|
+
|
|
179
|
+
* **ui5-table:** update select all checkbox ([#10833](https://github.com/SAP/ui5-webcomponents/issues/10833)) ([819edcd](https://github.com/SAP/ui5-webcomponents/commit/819edcd51b04d60634fa8faa8f5c6b256eac99f5)), closes [#10658](https://github.com/SAP/ui5-webcomponents/issues/10658) [#10574](https://github.com/SAP/ui5-webcomponents/issues/10574) [#10804](https://github.com/SAP/ui5-webcomponents/issues/10804)
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
# [2.8.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0...v2.8.0-rc.0) (2025-02-06)
|
|
186
|
+
|
|
187
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
# [2.7.0](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0-rc.2...v2.7.0) (2025-02-03)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
### Bug Fixes
|
|
197
|
+
|
|
198
|
+
* **framework:** improve check for native popovers ([#10745](https://github.com/SAP/ui5-webcomponents/issues/10745)) ([f21f9b8](https://github.com/SAP/ui5-webcomponents/commit/f21f9b8835c7081235acc79d067b6e0a77feccbd))
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
# [2.7.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0-rc.1...v2.7.0-rc.2) (2025-01-30)
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
### Bug Fixes
|
|
208
|
+
|
|
209
|
+
* **f6navigation:** fast navigation in certain container only ([#10485](https://github.com/SAP/ui5-webcomponents/issues/10485)) ([4b2ab63](https://github.com/SAP/ui5-webcomponents/commit/4b2ab63cae9b175f07d266e4150a587756cd7f6c))
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
# [2.7.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0-rc.0...v2.7.0-rc.1) (2025-01-23)
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
### Features
|
|
219
|
+
|
|
220
|
+
* **ui5-color-picker:** add HSL color selection ([#10157](https://github.com/SAP/ui5-webcomponents/issues/10157)) ([8d0e5a4](https://github.com/SAP/ui5-webcomponents/commit/8d0e5a492c9705499571ef223524f051454e766c)), closes [#10275](https://github.com/SAP/ui5-webcomponents/issues/10275)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
# [2.7.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.2...v2.7.0-rc.0) (2025-01-16)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### Bug Fixes
|
|
230
|
+
|
|
231
|
+
* i18n decorator property definition ([#10521](https://github.com/SAP/ui5-webcomponents/issues/10521)) ([d19f4e9](https://github.com/SAP/ui5-webcomponents/commit/d19f4e99bad74432bff21587da43a5844f17f8cf))
|
|
232
|
+
* **ui5-popover:** fix opener reference ([#10507](https://github.com/SAP/ui5-webcomponents/issues/10507)) ([a38a28e](https://github.com/SAP/ui5-webcomponents/commit/a38a28e11245e0121bd0a2d6b9d1f5b294952a42))
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
## [2.6.2](https://github.com/SAP/ui5-webcomponents/compare/v2.6.2-rc.0...v2.6.2) (2025-01-09)
|
|
239
|
+
|
|
240
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
## [2.6.2-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.1...v2.6.2-rc.0) (2025-01-09)
|
|
247
|
+
|
|
248
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
## [2.6.1](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0...v2.6.1) (2025-01-08)
|
|
255
|
+
|
|
256
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
6
262
|
# [2.6.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.5...v2.6.0) (2025-01-07)
|
|
7
263
|
|
|
8
264
|
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../test/test-elements/Accessor.js";
|
|
1
|
+
import Accessor from "../../test/test-elements/Accessor.js";
|
|
2
2
|
|
|
3
3
|
describe("Framework boot", () => {
|
|
4
4
|
it("Setting property updates attribute, state and DOM", () => {
|
|
5
|
-
cy.mount(
|
|
5
|
+
cy.mount(<Accessor></Accessor>);
|
|
6
6
|
|
|
7
7
|
cy.get("[ui5-test-accessor]")
|
|
8
8
|
.as("testAccessor")
|
|
@@ -36,7 +36,7 @@ describe("Framework boot", () => {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
it("Setting attribute updates property, state and DOM", () => {
|
|
39
|
-
cy.mount(
|
|
39
|
+
cy.mount(<Accessor></Accessor>);
|
|
40
40
|
|
|
41
41
|
cy.get("[ui5-test-accessor]")
|
|
42
42
|
.as("testAccessor")
|
|
@@ -70,7 +70,7 @@ describe("Framework boot", () => {
|
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
it("should stop searching for accessors when HTMLElement is reached", () => {
|
|
73
|
-
cy.mount(
|
|
73
|
+
cy.mount(<Accessor></Accessor>);
|
|
74
74
|
|
|
75
75
|
cy.get("[ui5-test-accessor]")
|
|
76
76
|
.invoke("prop", "title")
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getAnimationMode } from "../../src/config/AnimationMode.js";
|
|
2
2
|
import { getCalendarType } from "../../src/config/CalendarType.js";
|
|
3
3
|
import { getDefaultFontLoading } from "../../src/config/Fonts.js";
|
|
4
|
+
import TestGeneric from "../../test/test-elements/Generic.js";
|
|
4
5
|
import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "../../src/config/FormatSettings.js";
|
|
5
6
|
import { getLanguage } from "../../src/config/Language.js";
|
|
6
7
|
import { getNoConflict } from "../../src/config/NoConflict.js";
|
|
@@ -43,21 +44,37 @@ describe("Configuration script", () => {
|
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
before(() => {
|
|
46
|
-
cy.
|
|
47
|
-
|
|
48
|
-
|
|
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
|
+
|
|
49
56
|
|
|
50
57
|
cy.wrap({ resetConfiguration })
|
|
51
58
|
.invoke("resetConfiguration", true);
|
|
52
59
|
|
|
60
|
+
cy.mount(<TestGeneric />);
|
|
53
61
|
cy.get("script[data-ui5-config]")
|
|
54
62
|
.should("exist")
|
|
55
63
|
.then($el => {
|
|
56
|
-
return $el.get(0)
|
|
64
|
+
return $el.get(0)?.innerHTML;
|
|
57
65
|
})
|
|
58
66
|
.should("equal", JSON.stringify(configurationObject));
|
|
59
67
|
});
|
|
60
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
|
+
|
|
61
78
|
it("getLanguage", () => {
|
|
62
79
|
cy.wrap({ getLanguage })
|
|
63
80
|
.invoke("getLanguage")
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { internals } from "../../src/Location.js";
|
|
2
|
-
import "../../test/test-elements/Generic.js";
|
|
2
|
+
import TestGeneric from "../../test/test-elements/Generic.js";
|
|
3
3
|
import { resetConfiguration } from "../../src/InitialConfiguration.js";
|
|
4
4
|
import { getLanguage } from "../../src/config/Language.js";
|
|
5
5
|
import { getCalendarType } from "../../src/config/CalendarType.js";
|
|
6
6
|
import { getTheme } from "../../src/config/Theme.js";
|
|
7
7
|
import { getAnimationMode } from "../../src/config/AnimationMode.js";
|
|
8
|
+
import AnimationMode from "../../src/types/AnimationMode.js";
|
|
8
9
|
import { getThemeRoot } from "../../src/config/ThemeRoot.js";
|
|
9
10
|
|
|
10
11
|
describe("Some settings can be set via SAP UI URL params", () => {
|
|
@@ -23,7 +24,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
|
|
|
23
24
|
.invoke("search")
|
|
24
25
|
.should("be.equal", searchParams);
|
|
25
26
|
|
|
26
|
-
cy.mount(
|
|
27
|
+
cy.mount(<TestGeneric />);
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
it("Tests that language is applied", () => {
|
|
@@ -47,7 +48,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
|
|
|
47
48
|
it("Tests that animationMode is applied", () => {
|
|
48
49
|
cy.wrap({ getAnimationMode })
|
|
49
50
|
.invoke("getAnimationMode")
|
|
50
|
-
.should("equal",
|
|
51
|
+
.should("equal", AnimationMode.Basic);
|
|
51
52
|
});
|
|
52
53
|
});
|
|
53
54
|
|
|
@@ -55,6 +56,16 @@ describe("Different themeRoot configurations", () => {
|
|
|
55
56
|
it("Allowed theme root", () => {
|
|
56
57
|
const searchParams = "sap-ui-theme=sap_horizon_hcb@https://example.com";
|
|
57
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
|
+
|
|
58
69
|
cy.stub(internals, "search", () => {
|
|
59
70
|
return searchParams;
|
|
60
71
|
});
|
|
@@ -66,11 +77,19 @@ describe("Different themeRoot configurations", () => {
|
|
|
66
77
|
.invoke("search")
|
|
67
78
|
.should("be.equal", searchParams);
|
|
68
79
|
|
|
69
|
-
cy.mount(
|
|
80
|
+
cy.mount(<TestGeneric />);
|
|
70
81
|
|
|
71
82
|
cy.wrap({ getThemeRoot })
|
|
72
83
|
.invoke("getThemeRoot")
|
|
73
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
|
+
})
|
|
74
93
|
});
|
|
75
94
|
|
|
76
95
|
it("Unallowed theme root", () => {
|
|
@@ -87,7 +106,7 @@ describe("Different themeRoot configurations", () => {
|
|
|
87
106
|
.invoke("search")
|
|
88
107
|
.should("be.equal", searchParams);
|
|
89
108
|
|
|
90
|
-
cy.mount(
|
|
109
|
+
cy.mount(<TestGeneric />);
|
|
91
110
|
|
|
92
111
|
cy.wrap({ getThemeRoot })
|
|
93
112
|
.invoke("getThemeRoot")
|
|
@@ -108,7 +127,7 @@ describe("Different themeRoot configurations", () => {
|
|
|
108
127
|
.invoke("search")
|
|
109
128
|
.should("be.equal", searchParams);
|
|
110
129
|
|
|
111
|
-
cy.mount(
|
|
130
|
+
cy.mount(<TestGeneric />);
|
|
112
131
|
|
|
113
132
|
cy.wrap({ getThemeRoot })
|
|
114
133
|
.invoke("getThemeRoot")
|
|
@@ -134,7 +153,7 @@ describe("Some settings can be set via SAP URL params", () => {
|
|
|
134
153
|
.invoke("search")
|
|
135
154
|
.should("be.equal", searchParams);
|
|
136
155
|
|
|
137
|
-
cy.mount(
|
|
156
|
+
cy.mount(<TestGeneric />);
|
|
138
157
|
});
|
|
139
158
|
|
|
140
159
|
it("Tests that language is applied via sap-ui-language", () => {
|
|
@@ -165,7 +184,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
|
|
|
165
184
|
.invoke("search")
|
|
166
185
|
.should("be.equal", searchParams);
|
|
167
186
|
|
|
168
|
-
cy.mount(
|
|
187
|
+
cy.mount(<TestGeneric />);
|
|
169
188
|
});
|
|
170
189
|
|
|
171
190
|
it("Tests that language is applied via sap-ui-language", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { registerThemePropertiesLoader } from "../../src/AssetRegistry.js";
|
|
2
2
|
import { setTheme } from "../../src/config/Theme.js";
|
|
3
3
|
import { getCurrentRuntimeIndex } from "../../src/Runtimes.js";
|
|
4
|
-
import "../../test/test-elements/Generic.js";
|
|
4
|
+
import TestGeneric from "../../test/test-elements/Generic.js";
|
|
5
5
|
|
|
6
6
|
describe("Custom themes can be registered", () => {
|
|
7
7
|
it("Tests that theme parameters are changed on theme change", () => {
|
|
@@ -10,7 +10,7 @@ describe("Custom themes can be registered", () => {
|
|
|
10
10
|
const currentRuntime = 0;
|
|
11
11
|
const dataPropAttr = `data-ui5-component-properties-${currentRuntime}`;
|
|
12
12
|
|
|
13
|
-
cy.mount(
|
|
13
|
+
cy.mount(<TestGeneric />);
|
|
14
14
|
|
|
15
15
|
cy.wrap({ getCurrentRuntimeIndex })
|
|
16
16
|
.invoke("getCurrentRuntimeIndex")
|
|
@@ -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
|
+
});
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type UI5Element from "../../src/UI5Element.js";
|
|
2
|
-
import "../../test/test-elements/Generic.js";
|
|
2
|
+
import Generic from "../../test/test-elements/Generic.js";
|
|
3
3
|
|
|
4
4
|
describe("Invalidation works", () => {
|
|
5
5
|
it("Tests that changing a property invalidates", () => {
|
|
6
|
-
cy.mount(
|
|
6
|
+
cy.mount(<Generic></Generic>);
|
|
7
|
+
|
|
8
|
+
cy.get<Generic>("[ui5-test-generic]")
|
|
9
|
+
.should($el => {
|
|
10
|
+
expect($el[0].getDomRef()).to.exist;
|
|
11
|
+
});
|
|
7
12
|
|
|
8
13
|
cy.get("[ui5-test-generic]")
|
|
9
14
|
.as("testGeneric")
|
|
@@ -22,10 +27,15 @@ describe("Invalidation works", () => {
|
|
|
22
27
|
});
|
|
23
28
|
|
|
24
29
|
it("Tests that setting a property to the same value does not invalidate", () => {
|
|
25
|
-
cy.mount(
|
|
30
|
+
cy.mount(<Generic></Generic>);
|
|
26
31
|
|
|
27
32
|
const text = "new value";
|
|
28
33
|
|
|
34
|
+
cy.get<Generic>("[ui5-test-generic]")
|
|
35
|
+
.should($el => {
|
|
36
|
+
expect($el[0].getDomRef()).to.exist;
|
|
37
|
+
});
|
|
38
|
+
|
|
29
39
|
cy.get("[ui5-test-generic]")
|
|
30
40
|
.as("testGeneric")
|
|
31
41
|
.invoke("prop", "strProp", text)
|
|
@@ -41,11 +51,16 @@ describe("Invalidation works", () => {
|
|
|
41
51
|
});
|
|
42
52
|
|
|
43
53
|
it("Tests that setting a property of type Object always invalidates", () => {
|
|
44
|
-
cy.mount(
|
|
54
|
+
cy.mount(<Generic></Generic>);
|
|
45
55
|
|
|
46
56
|
const obj = {};
|
|
47
57
|
const otherObj = {};
|
|
48
58
|
|
|
59
|
+
cy.get<Generic>("[ui5-test-generic]")
|
|
60
|
+
.should($el => {
|
|
61
|
+
expect($el[0].getDomRef()).to.exist;
|
|
62
|
+
});
|
|
63
|
+
|
|
49
64
|
cy.get("[ui5-test-generic]")
|
|
50
65
|
.as("testGeneric")
|
|
51
66
|
.invoke("prop", "objectProp", obj)
|
|
@@ -61,11 +76,16 @@ describe("Invalidation works", () => {
|
|
|
61
76
|
});
|
|
62
77
|
|
|
63
78
|
it("Tests that setting an array property always invalidates", () => {
|
|
64
|
-
cy.mount(
|
|
79
|
+
cy.mount(<Generic></Generic>);
|
|
65
80
|
|
|
66
81
|
const arr: Array<string> = [];
|
|
67
82
|
const otherArr: Array<string> = [];
|
|
68
83
|
|
|
84
|
+
cy.get<Generic>("[ui5-test-generic]")
|
|
85
|
+
.should($el => {
|
|
86
|
+
expect($el[0].getDomRef()).to.exist;
|
|
87
|
+
});
|
|
88
|
+
|
|
69
89
|
cy.get("[ui5-test-generic]")
|
|
70
90
|
.as("testGeneric")
|
|
71
91
|
.invoke("prop", "multiProp", arr)
|
|
@@ -81,7 +101,12 @@ describe("Invalidation works", () => {
|
|
|
81
101
|
});
|
|
82
102
|
|
|
83
103
|
it("Tests that adding a child invalidates", () => {
|
|
84
|
-
cy.mount(
|
|
104
|
+
cy.mount(<Generic></Generic>);
|
|
105
|
+
|
|
106
|
+
cy.get<Generic>("[ui5-test-generic]")
|
|
107
|
+
.should($el => {
|
|
108
|
+
expect($el[0].getDomRef()).to.exist;
|
|
109
|
+
});
|
|
85
110
|
|
|
86
111
|
cy.get("[ui5-test-generic]")
|
|
87
112
|
.as("testGeneric")
|
|
@@ -100,10 +125,15 @@ describe("Invalidation works", () => {
|
|
|
100
125
|
});
|
|
101
126
|
|
|
102
127
|
it("Tests that removing a child invalidates", () => {
|
|
103
|
-
cy.mount(
|
|
128
|
+
cy.mount(<Generic></Generic>);
|
|
104
129
|
|
|
105
130
|
const div = document.createElement("div");
|
|
106
131
|
|
|
132
|
+
cy.get<Generic>("[ui5-test-generic]")
|
|
133
|
+
.should($el => {
|
|
134
|
+
expect($el[0].getDomRef()).to.exist;
|
|
135
|
+
});
|
|
136
|
+
|
|
107
137
|
cy.get("[ui5-test-generic]")
|
|
108
138
|
.as("testGeneric")
|
|
109
139
|
.then($testGeneric => {
|
|
@@ -128,7 +158,12 @@ describe("Invalidation works", () => {
|
|
|
128
158
|
});
|
|
129
159
|
|
|
130
160
|
it("Tests that modifying textContent invalidates", () => {
|
|
131
|
-
cy.mount(
|
|
161
|
+
cy.mount(<Generic></Generic>);
|
|
162
|
+
|
|
163
|
+
cy.get<Generic>("[ui5-test-generic]")
|
|
164
|
+
.should($el => {
|
|
165
|
+
expect($el[0].getDomRef()).to.exist;
|
|
166
|
+
});
|
|
132
167
|
|
|
133
168
|
cy.get("[ui5-test-generic]")
|
|
134
169
|
.as("testGeneric")
|
|
@@ -154,7 +189,12 @@ describe("Invalidation works", () => {
|
|
|
154
189
|
});
|
|
155
190
|
|
|
156
191
|
it("Tests that modifying nodeValue invalidates", () => {
|
|
157
|
-
cy.mount(
|
|
192
|
+
cy.mount(<Generic></Generic>);
|
|
193
|
+
|
|
194
|
+
cy.get<Generic>("[ui5-test-generic]")
|
|
195
|
+
.should($el => {
|
|
196
|
+
expect($el[0].getDomRef()).to.exist;
|
|
197
|
+
});
|
|
158
198
|
|
|
159
199
|
cy.get("[ui5-test-generic]")
|
|
160
200
|
.as("testGeneric")
|
|
@@ -180,7 +220,12 @@ describe("Invalidation works", () => {
|
|
|
180
220
|
});
|
|
181
221
|
|
|
182
222
|
it("Tests that multiple invalidations result in a single rendering", () => {
|
|
183
|
-
cy.mount(
|
|
223
|
+
cy.mount(<Generic></Generic>);
|
|
224
|
+
|
|
225
|
+
cy.get<Generic>("[ui5-test-generic]")
|
|
226
|
+
.should($el => {
|
|
227
|
+
expect($el[0].getDomRef()).to.exist;
|
|
228
|
+
});
|
|
184
229
|
|
|
185
230
|
cy.get("[ui5-test-generic]")
|
|
186
231
|
.as("testGeneric");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type UI5Element from "../../src/UI5Element.js";
|
|
2
|
-
import "../../test/test-elements/Generic.js";
|
|
2
|
+
import Generic from "../../test/test-elements/Generic.js";
|
|
3
3
|
|
|
4
4
|
describe("Lifecycle works", () => {
|
|
5
5
|
it("Tests that changing a property invalidates", () => {
|
|
6
6
|
const el = document.createElement("ui5-test-generic");
|
|
7
7
|
|
|
8
|
-
cy.mount(
|
|
8
|
+
cy.mount(<div id="container"></div>);
|
|
9
9
|
|
|
10
10
|
cy.spy<UI5Element>((el as UI5Element), "onBeforeRendering").as("onBeforeRendering");
|
|
11
11
|
|
|
@@ -32,7 +32,7 @@ describe("Lifecycle works", () => {
|
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
it("Tests element invalidation callbacks", () => {
|
|
35
|
-
cy.mount(
|
|
35
|
+
cy.mount(<Generic></Generic>);
|
|
36
36
|
|
|
37
37
|
cy.get("[ui5-test-generic]")
|
|
38
38
|
.as("testGeneric")
|
|
@@ -56,7 +56,7 @@ describe("Lifecycle works", () => {
|
|
|
56
56
|
it("Tests element destruction callback", () => {
|
|
57
57
|
const el = document.createElement("ui5-test-generic");
|
|
58
58
|
|
|
59
|
-
cy.mount(
|
|
59
|
+
cy.mount(<div id="container"></div>);
|
|
60
60
|
|
|
61
61
|
cy.spy<UI5Element>((el as UI5Element), "onExitDOM").as("onExitDOM");
|
|
62
62
|
cy.spy<UI5Element>((el as UI5Element), "onEnterDOM").as("onEnterDOM");
|