@ui5/webcomponents-base 0.0.0-f42e7c18c → 0.0.0-f6676abdd
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 +159 -0
- package/cypress/specs/{Accessor.cy.ts → Accessor.cy.tsx} +4 -4
- package/cypress/specs/{Boot.cy.ts → Boot.cy.tsx} +1 -5
- package/cypress/specs/{ConfigurationScript.cy.ts → ConfigurationScript.cy.tsx} +2 -1
- package/cypress/specs/{ConfigurationURL.cy.ts → ConfigurationURL.cy.tsx} +7 -7
- package/cypress/specs/{CustomMount.cy.ts → CustomMount.cy.tsx} +2 -2
- package/cypress/specs/{CustomTheme.cy.ts → CustomTheme.cy.tsx} +2 -2
- 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/tsconfig.json +2 -0
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/CustomElementsRegistry.d.ts +2 -1
- package/dist/CustomElementsRegistry.js +5 -2
- package/dist/CustomElementsRegistry.js.map +1 -1
- package/dist/CustomElementsScopeUtils.d.ts +3 -1
- package/dist/CustomElementsScopeUtils.js +8 -1
- package/dist/CustomElementsScopeUtils.js.map +1 -1
- package/dist/FeaturesRegistry.d.ts +1 -13
- package/dist/FeaturesRegistry.js +1 -37
- package/dist/FeaturesRegistry.js.map +1 -1
- package/dist/ManagedStyles.d.ts +4 -6
- package/dist/ManagedStyles.js +6 -16
- package/dist/ManagedStyles.js.map +1 -1
- package/dist/UI5Element.d.ts +8 -3
- package/dist/UI5Element.js +11 -24
- 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/asset-registries/Themes.d.ts +3 -6
- package/dist/asset-registries/Themes.js +1 -2
- package/dist/asset-registries/Themes.js.map +1 -1
- package/dist/config/Theme.js +1 -2
- package/dist/config/Theme.js.map +1 -1
- package/dist/decorators/customElement.d.ts +38 -0
- package/dist/decorators/customElement.js +1 -4
- package/dist/decorators/customElement.js.map +1 -1
- package/dist/decorators/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 +14 -1
- package/dist/features/F6Navigation.js.map +1 -1
- package/dist/features/OpenUI5Enablement.d.ts +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/generated/css/BusyIndicator.css.d.ts +2 -3
- package/dist/generated/css/BusyIndicator.css.js +1 -6
- package/dist/generated/css/BusyIndicator.css.js.map +1 -1
- package/dist/generated/css/FontFace.css.d.ts +2 -3
- package/dist/generated/css/FontFace.css.js +1 -6
- package/dist/generated/css/FontFace.css.js.map +1 -1
- package/dist/generated/css/OverrideFontFace.css.d.ts +2 -3
- package/dist/generated/css/OverrideFontFace.css.js +1 -6
- package/dist/generated/css/OverrideFontFace.css.js.map +1 -1
- package/dist/generated/css/SystemCSSVars.css.d.ts +2 -3
- package/dist/generated/css/SystemCSSVars.css.js +1 -6
- package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
- package/dist/jsx-utils.js +0 -1
- package/dist/jsx-utils.js.map +1 -1
- package/dist/ssr-dom-shim.js +51 -1
- package/dist/ssr-dom-shim.js.map +1 -1
- package/dist/theming/getStylesString.js +2 -4
- package/dist/theming/getStylesString.js.map +1 -1
- package/dist/theming/getThemeDesignerTheme.js +2 -1
- package/dist/theming/getThemeDesignerTheme.js.map +1 -1
- package/dist/thirdparty/preact/jsxRuntime.module.js +0 -1
- package/dist/thirdparty/preact/preact.module.js +0 -1
- package/dist/types/SortOrder.d.ts +24 -0
- package/dist/types/SortOrder.js +26 -0
- package/dist/types/SortOrder.js.map +1 -0
- package/dist/types.d.ts +2 -7
- package/dist/types.js.map +1 -1
- package/dist/util/ColorConversion.d.ts +2 -1
- package/dist/util/ColorConversion.js +35 -23
- package/dist/util/ColorConversion.js.map +1 -1
- package/dist/util/FocusableElements.js +14 -12
- package/dist/util/FocusableElements.js.map +1 -1
- package/dist/util/getClassCopy.d.ts +5 -2
- 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/package-scripts.cjs +1 -1
- package/package.json +3 -3
- package/src/thirdparty/preact/jsxRuntime.module.js +0 -1
- package/src/thirdparty/preact/preact.module.js +0 -1
- package/dist/custom-elements-internal.json +0 -2721
- package/dist/custom-elements.json +0 -2455
- package/dist/prod/AssetRegistry.js +0 -2
- package/dist/prod/AssetRegistry.js.map +0 -7
- package/dist/prod/Boot.js +0 -2
- package/dist/prod/Boot.js.map +0 -7
- package/dist/prod/CustomElementsRegistry.js +0 -10
- package/dist/prod/CustomElementsRegistry.js.map +0 -7
- package/dist/prod/CustomElementsScope.js +0 -2
- package/dist/prod/CustomElementsScope.js.map +0 -7
- package/dist/prod/CustomElementsScopeUtils.js +0 -2
- package/dist/prod/CustomElementsScopeUtils.js.map +0 -7
- package/dist/prod/DOMObserver.js +0 -2
- package/dist/prod/DOMObserver.js.map +0 -7
- package/dist/prod/Device.js +0 -2
- package/dist/prod/Device.js.map +0 -7
- package/dist/prod/EventProvider.js +0 -2
- package/dist/prod/EventProvider.js.map +0 -7
- package/dist/prod/FeaturesRegistry.js +0 -2
- package/dist/prod/FeaturesRegistry.js.map +0 -7
- package/dist/prod/FontFace.js +0 -2
- package/dist/prod/FontFace.js.map +0 -7
- package/dist/prod/IgnoreCustomElements.js +0 -2
- package/dist/prod/IgnoreCustomElements.js.map +0 -7
- package/dist/prod/InitialConfiguration.js +0 -2
- package/dist/prod/InitialConfiguration.js.map +0 -7
- package/dist/prod/Keys.js +0 -2
- package/dist/prod/Keys.js.map +0 -7
- package/dist/prod/Location.js +0 -2
- package/dist/prod/Location.js.map +0 -7
- package/dist/prod/ManagedStyles.js +0 -2
- package/dist/prod/ManagedStyles.js.map +0 -7
- package/dist/prod/MediaRange.js +0 -2
- package/dist/prod/MediaRange.js.map +0 -7
- package/dist/prod/PropertiesFileFormat.js +0 -3
- package/dist/prod/PropertiesFileFormat.js.map +0 -7
- package/dist/prod/Render.js +0 -2
- package/dist/prod/Render.js.map +0 -7
- package/dist/prod/RenderQueue.js +0 -2
- package/dist/prod/RenderQueue.js.map +0 -7
- package/dist/prod/Runtimes.js +0 -2
- package/dist/prod/Runtimes.js.map +0 -7
- package/dist/prod/SystemCSSVars.js +0 -2
- package/dist/prod/SystemCSSVars.js.map +0 -7
- package/dist/prod/Theming.js +0 -2
- package/dist/prod/Theming.js.map +0 -7
- package/dist/prod/UI5Element.js +0 -2
- package/dist/prod/UI5Element.js.map +0 -7
- package/dist/prod/UI5ElementMetadata.js +0 -2
- package/dist/prod/UI5ElementMetadata.js.map +0 -7
- package/dist/prod/animations/AnimationQueue.js +0 -2
- package/dist/prod/animations/AnimationQueue.js.map +0 -7
- package/dist/prod/animations/animate.js +0 -2
- package/dist/prod/animations/animate.js.map +0 -7
- package/dist/prod/animations/scroll.js +0 -2
- package/dist/prod/animations/scroll.js.map +0 -7
- package/dist/prod/animations/slideDown.js +0 -2
- package/dist/prod/animations/slideDown.js.map +0 -7
- package/dist/prod/animations/slideUp.js +0 -2
- package/dist/prod/animations/slideUp.js.map +0 -7
- package/dist/prod/asset-registries/Icons.js +0 -2
- package/dist/prod/asset-registries/Icons.js.map +0 -7
- package/dist/prod/asset-registries/Illustrations.js +0 -2
- package/dist/prod/asset-registries/Illustrations.js.map +0 -7
- package/dist/prod/asset-registries/LocaleData.js +0 -2
- package/dist/prod/asset-registries/LocaleData.js.map +0 -7
- package/dist/prod/asset-registries/Themes.js +0 -2
- package/dist/prod/asset-registries/Themes.js.map +0 -7
- package/dist/prod/asset-registries/i18n.js +0 -2
- package/dist/prod/asset-registries/i18n.js.map +0 -7
- package/dist/prod/asset-registries/util/IconCollectionsAlias.js +0 -2
- package/dist/prod/asset-registries/util/IconCollectionsAlias.js.map +0 -7
- package/dist/prod/asset-registries/util/IconCollectionsByTheme.js +0 -2
- package/dist/prod/asset-registries/util/IconCollectionsByTheme.js.map +0 -7
- package/dist/prod/asset-registries/util/getIconCollectionByTheme.js +0 -2
- package/dist/prod/asset-registries/util/getIconCollectionByTheme.js.map +0 -7
- package/dist/prod/config/AnimationMode.js +0 -2
- package/dist/prod/config/AnimationMode.js.map +0 -7
- package/dist/prod/config/CalendarType.js +0 -2
- package/dist/prod/config/CalendarType.js.map +0 -7
- package/dist/prod/config/ConfigurationReset.js +0 -2
- package/dist/prod/config/ConfigurationReset.js.map +0 -7
- package/dist/prod/config/Fonts.js +0 -2
- package/dist/prod/config/Fonts.js.map +0 -7
- package/dist/prod/config/FormatSettings.js +0 -2
- package/dist/prod/config/FormatSettings.js.map +0 -7
- package/dist/prod/config/Icons.js +0 -2
- package/dist/prod/config/Icons.js.map +0 -7
- package/dist/prod/config/Language.js +0 -2
- package/dist/prod/config/Language.js.map +0 -7
- package/dist/prod/config/NoConflict.js +0 -2
- package/dist/prod/config/NoConflict.js.map +0 -7
- package/dist/prod/config/Theme.js +0 -2
- package/dist/prod/config/Theme.js.map +0 -7
- package/dist/prod/config/ThemeRoot.js +0 -2
- package/dist/prod/config/ThemeRoot.js.map +0 -7
- package/dist/prod/config/Timezone.js +0 -2
- package/dist/prod/config/Timezone.js.map +0 -7
- package/dist/prod/config/Tooltips.js +0 -2
- package/dist/prod/config/Tooltips.js.map +0 -7
- package/dist/prod/connectToComponent.js +0 -2
- package/dist/prod/connectToComponent.js.map +0 -7
- package/dist/prod/converters/DOMReference.js +0 -2
- package/dist/prod/converters/DOMReference.js.map +0 -7
- package/dist/prod/decorators/bound.js +0 -2
- package/dist/prod/decorators/bound.js.map +0 -7
- package/dist/prod/decorators/customElement.js +0 -2
- package/dist/prod/decorators/customElement.js.map +0 -7
- package/dist/prod/decorators/event-strict.js +0 -2
- package/dist/prod/decorators/event-strict.js.map +0 -7
- package/dist/prod/decorators/event.js +0 -2
- package/dist/prod/decorators/event.js.map +0 -7
- package/dist/prod/decorators/i18n.js +0 -2
- package/dist/prod/decorators/i18n.js.map +0 -7
- package/dist/prod/decorators/property.js +0 -2
- package/dist/prod/decorators/property.js.map +0 -7
- package/dist/prod/decorators/query.js +0 -2
- package/dist/prod/decorators/query.js.map +0 -7
- package/dist/prod/decorators/queryAll.js +0 -2
- package/dist/prod/decorators/queryAll.js.map +0 -7
- package/dist/prod/decorators/slot.js +0 -2
- package/dist/prod/decorators/slot.js.map +0 -7
- package/dist/prod/decorators.js +0 -2
- package/dist/prod/decorators.js.map +0 -7
- package/dist/prod/delegate/ItemNavigation.js +0 -2
- package/dist/prod/delegate/ItemNavigation.js.map +0 -7
- package/dist/prod/delegate/ResizeHandler.js +0 -2
- package/dist/prod/delegate/ResizeHandler.js.map +0 -7
- package/dist/prod/delegate/ScrollEnablement.js +0 -2
- package/dist/prod/delegate/ScrollEnablement.js.map +0 -7
- package/dist/prod/features/F6Navigation.js +0 -2
- package/dist/prod/features/F6Navigation.js.map +0 -7
- package/dist/prod/features/InputElementsFormSupport.js +0 -2
- package/dist/prod/features/InputElementsFormSupport.js.map +0 -7
- package/dist/prod/features/LegacyDateFormats.js +0 -2
- package/dist/prod/features/LegacyDateFormats.js.map +0 -7
- package/dist/prod/features/OpenUI5Element.js +0 -2
- package/dist/prod/features/OpenUI5Element.js.map +0 -7
- package/dist/prod/features/OpenUI5Enablement.js +0 -21
- package/dist/prod/features/OpenUI5Enablement.js.map +0 -7
- package/dist/prod/features/OpenUI5Support.js +0 -2
- package/dist/prod/features/OpenUI5Support.js.map +0 -7
- package/dist/prod/features/patchPatcher.js +0 -2
- package/dist/prod/features/patchPatcher.js.map +0 -7
- package/dist/prod/features/patchPopup.js +0 -2
- package/dist/prod/features/patchPopup.js.map +0 -7
- package/dist/prod/generated/AssetParameters.js +0 -2
- package/dist/prod/generated/AssetParameters.js.map +0 -7
- package/dist/prod/generated/VersionInfo.js +0 -2
- package/dist/prod/generated/VersionInfo.js.map +0 -7
- package/dist/prod/generated/css/BusyIndicator.css.js +0 -2
- package/dist/prod/generated/css/BusyIndicator.css.js.map +0 -7
- package/dist/prod/generated/css/FontFace.css.js +0 -2
- package/dist/prod/generated/css/FontFace.css.js.map +0 -7
- package/dist/prod/generated/css/OverrideFontFace.css.js +0 -2
- package/dist/prod/generated/css/OverrideFontFace.css.js.map +0 -7
- package/dist/prod/generated/css/SystemCSSVars.css.js +0 -2
- package/dist/prod/generated/css/SystemCSSVars.css.js.map +0 -7
- package/dist/prod/getSharedResource.js +0 -2
- package/dist/prod/getSharedResource.js.map +0 -7
- package/dist/prod/global.d.js +0 -2
- package/dist/prod/global.d.js.map +0 -7
- package/dist/prod/i18nBundle.js +0 -2
- package/dist/prod/i18nBundle.js.map +0 -7
- package/dist/prod/index.d.js +0 -2
- package/dist/prod/index.d.js.map +0 -7
- package/dist/prod/jsx-dev-runtime.js +0 -2
- package/dist/prod/jsx-dev-runtime.js.map +0 -7
- package/dist/prod/jsx-runtime.js +0 -2
- package/dist/prod/jsx-runtime.js.map +0 -7
- package/dist/prod/jsx-utils.js +0 -2
- package/dist/prod/jsx-utils.js.map +0 -7
- package/dist/prod/locale/Locale.js +0 -2
- package/dist/prod/locale/Locale.js.map +0 -7
- package/dist/prod/locale/RTLAwareRegistry.js +0 -2
- package/dist/prod/locale/RTLAwareRegistry.js.map +0 -7
- package/dist/prod/locale/applyDirection.js +0 -2
- package/dist/prod/locale/applyDirection.js.map +0 -7
- package/dist/prod/locale/directionChange.js +0 -2
- package/dist/prod/locale/directionChange.js.map +0 -7
- package/dist/prod/locale/getEffectiveDir.js +0 -2
- package/dist/prod/locale/getEffectiveDir.js.map +0 -7
- package/dist/prod/locale/getLocale.js +0 -2
- package/dist/prod/locale/getLocale.js.map +0 -7
- package/dist/prod/locale/languageChange.js +0 -2
- package/dist/prod/locale/languageChange.js.map +0 -7
- package/dist/prod/locale/nextFallbackLocale.js +0 -2
- package/dist/prod/locale/nextFallbackLocale.js.map +0 -7
- package/dist/prod/locale/normalizeLocale.js +0 -2
- package/dist/prod/locale/normalizeLocale.js.map +0 -7
- package/dist/prod/renderer/JsxRenderer.js +0 -2
- package/dist/prod/renderer/JsxRenderer.js.map +0 -7
- package/dist/prod/renderer/LitRenderer.js +0 -2
- package/dist/prod/renderer/LitRenderer.js.map +0 -7
- package/dist/prod/renderer/directives/style-map.js +0 -6
- package/dist/prod/renderer/directives/style-map.js.map +0 -7
- package/dist/prod/renderer/executeTemplate.js +0 -2
- package/dist/prod/renderer/executeTemplate.js.map +0 -7
- package/dist/prod/sap/base/Log.js +0 -750
- package/dist/prod/sap/base/assert.js +0 -34
- package/dist/prod/sap/base/config/MemoryConfigurationProvider.js +0 -20
- package/dist/prod/sap/base/security/URLListValidator.js +0 -406
- package/dist/prod/sap/base/security/encodeCSS.js +0 -40
- package/dist/prod/sap/base/security/encodeXML.js +0 -53
- package/dist/prod/sap/base/security/sanitizeHTML.js +0 -38
- package/dist/prod/sap/base/strings/toHex.js +0 -33
- package/dist/prod/sap/base/util/now.js +0 -28
- package/dist/prod/sap/base/util/uid.js +0 -27
- package/dist/prod/sap/ui/thirdparty/caja-html-sanitizer.js +0 -3600
- package/dist/prod/ssr-dom-shim.js +0 -2
- package/dist/prod/ssr-dom-shim.js.map +0 -7
- package/dist/prod/ssr-dom.js +0 -2
- package/dist/prod/ssr-dom.js.map +0 -7
- package/dist/prod/theming/CustomStyle.js +0 -2
- package/dist/prod/theming/CustomStyle.js.map +0 -7
- package/dist/prod/theming/ThemeLoaded.js +0 -2
- package/dist/prod/theming/ThemeLoaded.js.map +0 -7
- package/dist/prod/theming/ThemeRegistered.js +0 -2
- package/dist/prod/theming/ThemeRegistered.js.map +0 -7
- package/dist/prod/theming/applyTheme.js +0 -2
- package/dist/prod/theming/applyTheme.js.map +0 -7
- package/dist/prod/theming/getConstructableStyle.js +0 -2
- package/dist/prod/theming/getConstructableStyle.js.map +0 -7
- package/dist/prod/theming/getEffectiveStyle.js +0 -2
- package/dist/prod/theming/getEffectiveStyle.js.map +0 -7
- package/dist/prod/theming/getStylesString.js +0 -2
- package/dist/prod/theming/getStylesString.js.map +0 -7
- package/dist/prod/theming/getThemeDesignerTheme.js +0 -2
- package/dist/prod/theming/getThemeDesignerTheme.js.map +0 -7
- package/dist/prod/thirdparty/_merge.js +0 -2
- package/dist/prod/thirdparty/_merge.js.map +0 -7
- package/dist/prod/thirdparty/isPlainObject.js +0 -2
- package/dist/prod/thirdparty/isPlainObject.js.map +0 -7
- package/dist/prod/thirdparty/merge.js +0 -2
- package/dist/prod/thirdparty/merge.js.map +0 -7
- package/dist/prod/thirdparty/preact/jsx.d.js +0 -2
- package/dist/prod/thirdparty/preact/jsx.d.js.map +0 -7
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +0 -2
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +0 -7
- package/dist/prod/thirdparty/preact/preact.module.d.js +0 -2
- package/dist/prod/thirdparty/preact/preact.module.d.js.map +0 -7
- package/dist/prod/types/AnimationMode.js +0 -2
- package/dist/prod/types/AnimationMode.js.map +0 -7
- package/dist/prod/types/CalendarType.js +0 -2
- package/dist/prod/types/CalendarType.js.map +0 -7
- package/dist/prod/types/InvisibleMessageMode.js +0 -2
- package/dist/prod/types/InvisibleMessageMode.js.map +0 -7
- package/dist/prod/types/ItemNavigationBehavior.js +0 -2
- package/dist/prod/types/ItemNavigationBehavior.js.map +0 -7
- package/dist/prod/types/MovePlacement.js +0 -2
- package/dist/prod/types/MovePlacement.js.map +0 -7
- package/dist/prod/types/NavigationMode.js +0 -2
- package/dist/prod/types/NavigationMode.js.map +0 -7
- package/dist/prod/types/Orientation.js +0 -2
- package/dist/prod/types/Orientation.js.map +0 -7
- package/dist/prod/types/ValueState.js +0 -2
- package/dist/prod/types/ValueState.js.map +0 -7
- package/dist/prod/types.js +0 -2
- package/dist/prod/types.js.map +0 -7
- package/dist/prod/updateShadowRoot.js +0 -2
- package/dist/prod/updateShadowRoot.js.map +0 -7
- package/dist/prod/util/AccessibilityTextsHelper.js +0 -2
- package/dist/prod/util/AccessibilityTextsHelper.js.map +0 -7
- package/dist/prod/util/Caret.js +0 -2
- package/dist/prod/util/Caret.js.map +0 -7
- package/dist/prod/util/ColorConversion.js +0 -2
- package/dist/prod/util/ColorConversion.js.map +0 -7
- package/dist/prod/util/FetchHelper.js +0 -2
- package/dist/prod/util/FetchHelper.js.map +0 -7
- package/dist/prod/util/FocusableElements.js +0 -2
- package/dist/prod/util/FocusableElements.js.map +0 -7
- package/dist/prod/util/HTMLSanitizer.js +0 -2
- package/dist/prod/util/HTMLSanitizer.js.map +0 -7
- package/dist/prod/util/InvisibleMessage.js +0 -2
- package/dist/prod/util/InvisibleMessage.js.map +0 -7
- package/dist/prod/util/PopupUtils.js +0 -2
- package/dist/prod/util/PopupUtils.js.map +0 -7
- package/dist/prod/util/SelectionAssistant.js +0 -2
- package/dist/prod/util/SelectionAssistant.js.map +0 -7
- package/dist/prod/util/SlotsHelper.js +0 -2
- package/dist/prod/util/SlotsHelper.js.map +0 -7
- package/dist/prod/util/StringHelper.js +0 -2
- package/dist/prod/util/StringHelper.js.map +0 -7
- package/dist/prod/util/TabbableElements.js +0 -2
- package/dist/prod/util/TabbableElements.js.map +0 -7
- package/dist/prod/util/arraysAreEqual.js +0 -2
- package/dist/prod/util/arraysAreEqual.js.map +0 -7
- package/dist/prod/util/clamp.js +0 -2
- package/dist/prod/util/clamp.js.map +0 -7
- package/dist/prod/util/createLinkInHead.js +0 -2
- package/dist/prod/util/createLinkInHead.js.map +0 -7
- package/dist/prod/util/debounce.js +0 -2
- package/dist/prod/util/debounce.js.map +0 -7
- package/dist/prod/util/detectNavigatorLanguage.js +0 -2
- package/dist/prod/util/detectNavigatorLanguage.js.map +0 -7
- package/dist/prod/util/dragAndDrop/DragRegistry.js +0 -2
- package/dist/prod/util/dragAndDrop/DragRegistry.js.map +0 -7
- package/dist/prod/util/dragAndDrop/findClosestPosition.js +0 -2
- package/dist/prod/util/dragAndDrop/findClosestPosition.js.map +0 -7
- package/dist/prod/util/dragAndDrop/handleDragOver.js +0 -2
- package/dist/prod/util/dragAndDrop/handleDragOver.js.map +0 -7
- package/dist/prod/util/dragAndDrop/handleDrop.js +0 -2
- package/dist/prod/util/dragAndDrop/handleDrop.js.map +0 -7
- package/dist/prod/util/dragAndDrop/longDragOverHandler.js +0 -2
- package/dist/prod/util/dragAndDrop/longDragOverHandler.js.map +0 -7
- package/dist/prod/util/escapeRegex.js +0 -2
- package/dist/prod/util/escapeRegex.js.map +0 -7
- package/dist/prod/util/fixSafariActiveState.js +0 -2
- package/dist/prod/util/fixSafariActiveState.js.map +0 -7
- package/dist/prod/util/formatMessage.js +0 -2
- package/dist/prod/util/formatMessage.js.map +0 -7
- package/dist/prod/util/generateHighlightedMarkup.js +0 -2
- package/dist/prod/util/generateHighlightedMarkup.js.map +0 -7
- package/dist/prod/util/getActiveElement.js +0 -2
- package/dist/prod/util/getActiveElement.js.map +0 -7
- package/dist/prod/util/getClassCopy.js +0 -2
- package/dist/prod/util/getClassCopy.js.map +0 -7
- package/dist/prod/util/getDesigntimePropertyAsArray.js +0 -2
- package/dist/prod/util/getDesigntimePropertyAsArray.js.map +0 -7
- package/dist/prod/util/getEffectiveContentDensity.js +0 -2
- package/dist/prod/util/getEffectiveContentDensity.js.map +0 -7
- package/dist/prod/util/getEffectiveScrollbarStyle.js +0 -26
- package/dist/prod/util/getEffectiveScrollbarStyle.js.map +0 -7
- package/dist/prod/util/getFastNavigationGroups.js +0 -2
- package/dist/prod/util/getFastNavigationGroups.js.map +0 -7
- package/dist/prod/util/getFileExtension.js +0 -2
- package/dist/prod/util/getFileExtension.js.map +0 -7
- package/dist/prod/util/getNormalizedTarget.js +0 -2
- package/dist/prod/util/getNormalizedTarget.js.map +0 -7
- package/dist/prod/util/getSingletonElementInstance.js +0 -2
- package/dist/prod/util/getSingletonElementInstance.js.map +0 -7
- package/dist/prod/util/hash2str.js +0 -2
- package/dist/prod/util/hash2str.js.map +0 -7
- package/dist/prod/util/isElementClickable.js +0 -2
- package/dist/prod/util/isElementClickable.js.map +0 -7
- package/dist/prod/util/isElementHidden.js +0 -2
- package/dist/prod/util/isElementHidden.js.map +0 -7
- package/dist/prod/util/isElementInView.js +0 -2
- package/dist/prod/util/isElementInView.js.map +0 -7
- package/dist/prod/util/isElementTabbable.js +0 -2
- package/dist/prod/util/isElementTabbable.js.map +0 -7
- package/dist/prod/util/isValidPropertyName.js +0 -2
- package/dist/prod/util/isValidPropertyName.js.map +0 -7
- package/dist/prod/util/toLowercaseEnumValue.js +0 -2
- package/dist/prod/util/toLowercaseEnumValue.js.map +0 -7
- package/dist/prod/util/whenDOMReady.js +0 -2
- package/dist/prod/util/whenDOMReady.js.map +0 -7
- package/dist/prod/util/willShowContent.js +0 -2
- package/dist/prod/util/willShowContent.js.map +0 -7
- package/dist/prod/validateThemeRoot.js +0 -2
- package/dist/prod/validateThemeRoot.js.map +0 -7
- package/dist/vscode.html-custom-data.json +0 -22
- /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,165 @@
|
|
|
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.8.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.8.0-rc.0...v2.8.0-rc.1) (2025-02-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [2.8.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0...v2.8.0-rc.0) (2025-02-06)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [2.7.0](https://github.com/SAP/ui5-webcomponents/compare/v2.7.0-rc.2...v2.7.0) (2025-02-03)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **framework:** improve check for native popovers ([#10745](https://github.com/SAP/ui5-webcomponents/issues/10745)) ([f21f9b8](https://github.com/SAP/ui5-webcomponents/commit/f21f9b8835c7081235acc79d067b6e0a77feccbd))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [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)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* **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))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
# [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)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Features
|
|
51
|
+
|
|
52
|
+
* **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)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# [2.7.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.2...v2.7.0-rc.0) (2025-01-16)
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### Bug Fixes
|
|
62
|
+
|
|
63
|
+
* i18n decorator property definition ([#10521](https://github.com/SAP/ui5-webcomponents/issues/10521)) ([d19f4e9](https://github.com/SAP/ui5-webcomponents/commit/d19f4e99bad74432bff21587da43a5844f17f8cf))
|
|
64
|
+
* **ui5-popover:** fix opener reference ([#10507](https://github.com/SAP/ui5-webcomponents/issues/10507)) ([a38a28e](https://github.com/SAP/ui5-webcomponents/commit/a38a28e11245e0121bd0a2d6b9d1f5b294952a42))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [2.6.2](https://github.com/SAP/ui5-webcomponents/compare/v2.6.2-rc.0...v2.6.2) (2025-01-09)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [2.6.2-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.1...v2.6.2-rc.0) (2025-01-09)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## [2.6.1](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0...v2.6.1) (2025-01-08)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
# [2.6.0](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.5...v2.6.0) (2025-01-07)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# [2.6.0-rc.5](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.4...v2.6.0-rc.5) (2025-01-07)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Bug Fixes
|
|
106
|
+
|
|
107
|
+
* **f6navigation:** skip hidden elements ([#10325](https://github.com/SAP/ui5-webcomponents/issues/10325)) ([374d4d8](https://github.com/SAP/ui5-webcomponents/commit/374d4d82239f1309231c8516c20be8c160e81e40)), closes [#10236](https://github.com/SAP/ui5-webcomponents/issues/10236)
|
|
108
|
+
* **framework:** getComponentFeature can return undefined ([#10456](https://github.com/SAP/ui5-webcomponents/issues/10456)) ([7da765c](https://github.com/SAP/ui5-webcomponents/commit/7da765c8c7f3831e25bffa557dd059e819be30ba))
|
|
109
|
+
* remove dependencies for TSX components and fix features ([#10449](https://github.com/SAP/ui5-webcomponents/issues/10449)) ([a2b5f6f](https://github.com/SAP/ui5-webcomponents/commit/a2b5f6fb768499a8b757a9b7abad5f19033a33a7))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
# [2.6.0-rc.4](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.3...v2.6.0-rc.4) (2025-01-02)
|
|
116
|
+
|
|
117
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
# [2.6.0-rc.3](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.2...v2.6.0-rc.3) (2024-12-26)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Bug Fixes
|
|
127
|
+
|
|
128
|
+
* custom theme detection ([#10410](https://github.com/SAP/ui5-webcomponents/issues/10410)) ([303344b](https://github.com/SAP/ui5-webcomponents/commit/303344bc22dbe5a461b77d752b11016cbbe137b1))
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
# [2.6.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.1...v2.6.0-rc.2) (2024-12-19)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
### Features
|
|
138
|
+
|
|
139
|
+
* **ui5-color-palette:** set selected color to inner color picker ([#10276](https://github.com/SAP/ui5-webcomponents/issues/10276)) ([7a152a1](https://github.com/SAP/ui5-webcomponents/commit/7a152a1dc0defcb031d859012f4310ca5c52bee4)), closes [#8772](https://github.com/SAP/ui5-webcomponents/issues/8772)
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
# [2.6.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.6.0-rc.0...v2.6.0-rc.1) (2024-12-16)
|
|
146
|
+
|
|
147
|
+
**Note:** Version bump only for package @ui5/webcomponents-base
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
# [2.6.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0...v2.6.0-rc.0) (2024-12-12)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### Features
|
|
157
|
+
|
|
158
|
+
* **framework:** add JSX template support with TypeScript ([#10046](https://github.com/SAP/ui5-webcomponents/issues/10046)) ([f42e7c1](https://github.com/SAP/ui5-webcomponents/commit/f42e7c18c846f923df4fec6ae02f1b4c20c006fa))
|
|
159
|
+
* **ui5-table:** implement drag and drop ([#9955](https://github.com/SAP/ui5-webcomponents/issues/9955)) ([9f27a51](https://github.com/SAP/ui5-webcomponents/commit/9f27a512255f6e168d783cfed8b60d578030b581)), closes [#7240](https://github.com/SAP/ui5-webcomponents/issues/7240)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
6
165
|
# [2.5.0](https://github.com/SAP/ui5-webcomponents/compare/v2.5.0-rc.3...v2.5.0) (2024-12-05)
|
|
7
166
|
|
|
8
167
|
**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")
|
|
@@ -9,11 +9,7 @@ describe("Framework boot", () => {
|
|
|
9
9
|
|
|
10
10
|
cy.wrap({ registerThemePropertiesLoader })
|
|
11
11
|
.invoke("registerThemePropertiesLoader", "@ui5/webcomponents-theming", "sap_horizon", () => {
|
|
12
|
-
return Promise.resolve({
|
|
13
|
-
content: `:root{ --customCol: #fff; --customBg: #000; }`,
|
|
14
|
-
packageName: "",
|
|
15
|
-
fileName: "",
|
|
16
|
-
});
|
|
12
|
+
return Promise.resolve(`:root{ --customCol: #fff; --customBg: #000; }`);
|
|
17
13
|
});
|
|
18
14
|
|
|
19
15
|
cy.wrap({ hasStyle })
|
|
@@ -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,7 +44,7 @@ describe("Configuration script", () => {
|
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
before(() => {
|
|
46
|
-
cy.mount(
|
|
47
|
+
cy.mount(<TestGeneric />, {
|
|
47
48
|
ui5Configuration: configurationObject,
|
|
48
49
|
});
|
|
49
50
|
|
|
@@ -1,5 +1,5 @@
|
|
|
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";
|
|
@@ -23,7 +23,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
|
|
|
23
23
|
.invoke("search")
|
|
24
24
|
.should("be.equal", searchParams);
|
|
25
25
|
|
|
26
|
-
cy.mount(
|
|
26
|
+
cy.mount(<TestGeneric />);
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
it("Tests that language is applied", () => {
|
|
@@ -66,7 +66,7 @@ describe("Different themeRoot configurations", () => {
|
|
|
66
66
|
.invoke("search")
|
|
67
67
|
.should("be.equal", searchParams);
|
|
68
68
|
|
|
69
|
-
cy.mount(
|
|
69
|
+
cy.mount(<TestGeneric />);
|
|
70
70
|
|
|
71
71
|
cy.wrap({ getThemeRoot })
|
|
72
72
|
.invoke("getThemeRoot")
|
|
@@ -87,7 +87,7 @@ describe("Different themeRoot configurations", () => {
|
|
|
87
87
|
.invoke("search")
|
|
88
88
|
.should("be.equal", searchParams);
|
|
89
89
|
|
|
90
|
-
cy.mount(
|
|
90
|
+
cy.mount(<TestGeneric />);
|
|
91
91
|
|
|
92
92
|
cy.wrap({ getThemeRoot })
|
|
93
93
|
.invoke("getThemeRoot")
|
|
@@ -108,7 +108,7 @@ describe("Different themeRoot configurations", () => {
|
|
|
108
108
|
.invoke("search")
|
|
109
109
|
.should("be.equal", searchParams);
|
|
110
110
|
|
|
111
|
-
cy.mount(
|
|
111
|
+
cy.mount(<TestGeneric />);
|
|
112
112
|
|
|
113
113
|
cy.wrap({ getThemeRoot })
|
|
114
114
|
.invoke("getThemeRoot")
|
|
@@ -134,7 +134,7 @@ describe("Some settings can be set via SAP URL params", () => {
|
|
|
134
134
|
.invoke("search")
|
|
135
135
|
.should("be.equal", searchParams);
|
|
136
136
|
|
|
137
|
-
cy.mount(
|
|
137
|
+
cy.mount(<TestGeneric />);
|
|
138
138
|
});
|
|
139
139
|
|
|
140
140
|
it("Tests that language is applied via sap-ui-language", () => {
|
|
@@ -165,7 +165,7 @@ describe("Some settings can be set via SAP UI URL params", () => {
|
|
|
165
165
|
.invoke("search")
|
|
166
166
|
.should("be.equal", searchParams);
|
|
167
167
|
|
|
168
|
-
cy.mount(
|
|
168
|
+
cy.mount(<TestGeneric />);
|
|
169
169
|
});
|
|
170
170
|
|
|
171
171
|
it("Tests that language is applied via sap-ui-language", () => {
|
|
@@ -2,7 +2,7 @@ import { getAnimationMode } from "../../src/config/AnimationMode.js";
|
|
|
2
2
|
|
|
3
3
|
describe("Custom mount", () => {
|
|
4
4
|
it("mount", () => {
|
|
5
|
-
cy.mount(
|
|
5
|
+
cy.mount(<button>Test</button>);
|
|
6
6
|
|
|
7
7
|
cy.get("button")
|
|
8
8
|
.should("exist")
|
|
@@ -12,7 +12,7 @@ describe("Custom mount", () => {
|
|
|
12
12
|
it("mount with configuration", () => {
|
|
13
13
|
const configurationObject = { "animationMode": "basic" };
|
|
14
14
|
|
|
15
|
-
cy.mount(
|
|
15
|
+
cy.mount(<button>Test with configuration</button>, {
|
|
16
16
|
ui5Configuration: configurationObject,
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -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")
|
|
@@ -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");
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import type UI5Element from "../../src/UI5Element.js";
|
|
2
2
|
|
|
3
|
-
import "../../test/test-elements/Parent.js";
|
|
4
|
-
import "../../test/test-elements/Child.js";
|
|
3
|
+
import Parent from "../../test/test-elements/Parent.js";
|
|
4
|
+
import Child from "../../test/test-elements/Child.js";
|
|
5
5
|
|
|
6
6
|
describe("Invalidation works", () => {
|
|
7
7
|
it("Tests that changing a monitored property of a child invalidates the parent", () => {
|
|
8
|
-
cy.mount(
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
cy.mount(
|
|
9
|
+
<Parent>
|
|
10
|
+
<Child></Child>
|
|
11
|
+
</Parent>
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
cy.get<Parent>("[ui5-test-parent]")
|
|
15
|
+
.should($el => {
|
|
16
|
+
expect($el[0].getDomRef()).to.exist;
|
|
17
|
+
});
|
|
11
18
|
|
|
12
19
|
cy.get("[ui5-test-parent]")
|
|
13
20
|
.as("testParent")
|
|
@@ -23,9 +30,16 @@ describe("Invalidation works", () => {
|
|
|
23
30
|
});
|
|
24
31
|
|
|
25
32
|
it("Tests that changing a non-monitored property of a child does not invalidate the parent", () => {
|
|
26
|
-
cy.mount(
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
cy.mount(
|
|
34
|
+
<Parent>
|
|
35
|
+
<Child></Child>
|
|
36
|
+
</Parent>
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
cy.get<Parent>("[ui5-test-parent]")
|
|
40
|
+
.should($el => {
|
|
41
|
+
expect($el[0].getDomRef()).to.exist;
|
|
42
|
+
});
|
|
29
43
|
|
|
30
44
|
cy.get("[ui5-test-parent]")
|
|
31
45
|
.as("testParent")
|
|
@@ -41,9 +55,16 @@ describe("Invalidation works", () => {
|
|
|
41
55
|
});
|
|
42
56
|
|
|
43
57
|
it("Tests that changing a non-monitored property of a child does not invalidate the parent", () => {
|
|
44
|
-
cy.mount(
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
cy.mount(
|
|
59
|
+
<Parent>
|
|
60
|
+
<Child slot="items"></Child>
|
|
61
|
+
</Parent>
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
cy.get<Parent>("[ui5-test-parent]")
|
|
65
|
+
.should($el => {
|
|
66
|
+
expect($el[0].getDomRef()).to.exist;
|
|
67
|
+
});
|
|
47
68
|
|
|
48
69
|
cy.get("[ui5-test-parent]")
|
|
49
70
|
.as("testParent")
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type UI5Element from "../../src/UI5Element.js";
|
|
2
|
-
import "../../test/test-elements/GenericExt.js";
|
|
2
|
+
import GenericExt from "../../test/test-elements/GenericExt.js";
|
|
3
3
|
|
|
4
4
|
describe("Invalidation works", () => {
|
|
5
5
|
it("Tests that changing a monitored property of a child invalidates the parent", () => {
|
|
6
|
-
cy.mount(
|
|
6
|
+
cy.mount(<GenericExt></GenericExt>);
|
|
7
7
|
|
|
8
8
|
cy.get("[ui5-test-generic-ext]")
|
|
9
9
|
.then($el => {
|
|
@@ -33,7 +33,7 @@ describe("Invalidation works", () => {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
it("When extending metadata, property defaultValue can be modified", () => {
|
|
36
|
-
cy.mount(
|
|
36
|
+
cy.mount(<GenericExt></GenericExt>);
|
|
37
37
|
|
|
38
38
|
cy.get("[ui5-test-generic-ext]")
|
|
39
39
|
.invoke("attr", "str-prop")
|
package/cypress/specs/{UI5ElementPropertyValidation.cy.ts → UI5ElementPropertyValidation.cy.tsx}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../test/test-elements/Generic.js";
|
|
1
|
+
import Generic from "../../test/test-elements/Generic.js";
|
|
2
2
|
|
|
3
3
|
describe("Properties can only have values, restricted to their types", () => {
|
|
4
4
|
it("String property enforced to string", () => {
|
|
5
|
-
cy.mount(
|
|
5
|
+
cy.mount(<Generic></Generic>);
|
|
6
6
|
|
|
7
7
|
cy.get("[ui5-test-generic]")
|
|
8
8
|
.as("testGeneric");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../test/test-elements/Generic.js";
|
|
1
|
+
import Generic from "../../test/test-elements/Generic.js";
|
|
2
2
|
|
|
3
3
|
describe("Properties and attributes convert to each other", () => {
|
|
4
4
|
it("Tests that properties with default values are initialized with the default value", () => {
|
|
5
|
-
cy.mount(
|
|
5
|
+
cy.mount(<Generic></Generic>);
|
|
6
6
|
|
|
7
7
|
cy.get("[ui5-test-generic]")
|
|
8
8
|
.as("testGeneric");
|
|
@@ -13,7 +13,7 @@ describe("Properties and attributes convert to each other", () => {
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
it("Tests that prop-attr conversion works for string properties", () => {
|
|
16
|
-
cy.mount(
|
|
16
|
+
cy.mount(<Generic></Generic>);
|
|
17
17
|
|
|
18
18
|
cy.get("[ui5-test-generic]")
|
|
19
19
|
.as("testGeneric");
|
|
@@ -33,7 +33,7 @@ describe("Properties and attributes convert to each other", () => {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
it("Tests that prop-attr conversion works for boolean properties", () => {
|
|
36
|
-
cy.mount(
|
|
36
|
+
cy.mount(<Generic></Generic>);
|
|
37
37
|
|
|
38
38
|
cy.get("[ui5-test-generic]")
|
|
39
39
|
.as("testGeneric");
|
|
@@ -66,7 +66,7 @@ describe("Properties and attributes convert to each other", () => {
|
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
it("Tests that object properties have no attributes", () => {
|
|
69
|
-
cy.mount(
|
|
69
|
+
cy.mount(<Generic></Generic>);
|
|
70
70
|
|
|
71
71
|
cy.get("[ui5-test-generic]")
|
|
72
72
|
.as("testGeneric");
|
|
@@ -79,7 +79,7 @@ describe("Properties and attributes convert to each other", () => {
|
|
|
79
79
|
});
|
|
80
80
|
|
|
81
81
|
it("Tests that array properties have no attributes", () => {
|
|
82
|
-
cy.mount(
|
|
82
|
+
cy.mount(<Generic></Generic>);
|
|
83
83
|
|
|
84
84
|
cy.get("[ui5-test-generic]")
|
|
85
85
|
.as("testGeneric");
|
|
@@ -92,7 +92,7 @@ describe("Properties and attributes convert to each other", () => {
|
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
it("Tests that noAttribute properties have no attributes", () => {
|
|
95
|
-
cy.mount(
|
|
95
|
+
cy.mount(<Generic></Generic>);
|
|
96
96
|
|
|
97
97
|
cy.get("[ui5-test-generic]")
|
|
98
98
|
.as("testGeneric");
|
|
@@ -105,7 +105,7 @@ describe("Properties and attributes convert to each other", () => {
|
|
|
105
105
|
});
|
|
106
106
|
|
|
107
107
|
it("Tests that properties with default values do automatically set attributes", () => {
|
|
108
|
-
cy.mount(
|
|
108
|
+
cy.mount(<Generic></Generic>);
|
|
109
109
|
|
|
110
110
|
cy.get("[ui5-test-generic]")
|
|
111
111
|
.should("have.attr", "default-value-prop", "Hello");
|