@ui5/webcomponents-base 0.0.0-a7032d86e → 0.0.0-a8a75c830
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npsrc.json +3 -0
- package/AGENTS.md +195 -0
- package/CHANGELOG.md +2631 -0
- package/CLAUDE.md +1 -0
- package/LICENSE.txt +201 -0
- package/README.md +10 -16
- package/cypress.config.js +3 -0
- package/dist/.tsbuildinfobuild +1 -0
- package/dist/AssetRegistry.d.ts +2 -2
- package/dist/AssetRegistry.js +2 -2
- package/dist/AssetRegistry.js.map +1 -1
- package/dist/Assets-fetch.d.ts +1 -0
- package/dist/Assets-fetch.js +3 -0
- package/dist/Assets-fetch.js.map +1 -0
- package/dist/Assets-node.d.ts +12 -0
- package/dist/Assets-node.js +14 -0
- package/dist/Assets-node.js.map +1 -0
- package/dist/Assets.d.ts +1 -0
- package/dist/Assets.js +3 -0
- package/dist/Assets.js.map +1 -0
- package/dist/Boot.d.ts +7 -4
- package/dist/Boot.js +76 -15
- package/dist/Boot.js.map +1 -1
- package/dist/CustomElementsRegistry.d.ts +2 -1
- package/dist/CustomElementsRegistry.js +5 -2
- package/dist/CustomElementsRegistry.js.map +1 -1
- package/dist/CustomElementsScope.d.ts +4 -4
- package/dist/CustomElementsScope.js +2 -2
- package/dist/CustomElementsScope.js.map +1 -1
- package/dist/CustomElementsScopeUtils.d.ts +19 -3
- package/dist/CustomElementsScopeUtils.js +31 -2
- package/dist/CustomElementsScopeUtils.js.map +1 -1
- package/dist/DOMObserver.js.map +1 -1
- package/dist/Device.d.ts +17 -2
- package/dist/Device.js +116 -36
- package/dist/Device.js.map +1 -1
- package/dist/DragAndDrop.d.ts +2 -0
- package/dist/DragAndDrop.js +5 -0
- package/dist/DragAndDrop.js.map +1 -0
- package/dist/EventProvider.js +1 -1
- package/dist/EventProvider.js.map +1 -1
- package/dist/FeaturesRegistry.js.map +1 -1
- package/dist/FontFace.js +6 -9
- package/dist/FontFace.js.map +1 -1
- package/dist/IgnoreCustomElements.d.ts +25 -0
- package/dist/IgnoreCustomElements.js +37 -0
- package/dist/IgnoreCustomElements.js.map +1 -0
- package/dist/InitialConfiguration.d.ts +15 -3
- package/dist/InitialConfiguration.js +49 -10
- package/dist/InitialConfiguration.js.map +1 -1
- package/dist/Keys.d.ts +11 -1
- package/dist/Keys.js +117 -106
- package/dist/Keys.js.map +1 -1
- package/dist/Location.d.ts +11 -0
- package/dist/Location.js +49 -0
- package/dist/Location.js.map +1 -0
- package/dist/ManagedStyles.d.ts +5 -6
- package/dist/ManagedStyles.js +45 -53
- package/dist/ManagedStyles.js.map +1 -1
- package/dist/MediaRange.d.ts +6 -12
- package/dist/MediaRange.js +21 -31
- package/dist/MediaRange.js.map +1 -1
- package/dist/PropertiesFileFormat.js.map +1 -1
- package/dist/Render.js.map +1 -1
- package/dist/RenderQueue.js.map +1 -1
- package/dist/Runtimes.js +11 -0
- package/dist/Runtimes.js.map +1 -1
- package/dist/ScrollbarStyles.d.ts +2 -0
- package/dist/ScrollbarStyles.js +9 -0
- package/dist/ScrollbarStyles.js.map +1 -0
- package/dist/SystemCSSVars.js +2 -4
- package/dist/SystemCSSVars.js.map +1 -1
- package/dist/Theming.js.map +1 -1
- package/dist/UI5Element.d.ts +155 -77
- package/dist/UI5Element.js +466 -271
- package/dist/UI5Element.js.map +1 -1
- package/dist/UI5ElementMetadata.d.ts +36 -27
- package/dist/UI5ElementMetadata.js +27 -72
- package/dist/UI5ElementMetadata.js.map +1 -1
- package/dist/animations/AnimationQueue.js.map +1 -1
- package/dist/animations/animate.js.map +1 -1
- package/dist/animations/scroll.js.map +1 -1
- package/dist/animations/slideDown.js.map +1 -1
- package/dist/animations/slideUp.js.map +1 -1
- package/dist/asset-registries/Icons.d.ts +61 -18
- package/dist/asset-registries/Icons.js +110 -35
- package/dist/asset-registries/Icons.js.map +1 -1
- package/dist/asset-registries/Illustrations.d.ts +135 -8
- package/dist/asset-registries/Illustrations.js +133 -21
- package/dist/asset-registries/Illustrations.js.map +1 -1
- package/dist/asset-registries/LocaleData.js +2 -1
- package/dist/asset-registries/LocaleData.js.map +1 -1
- package/dist/asset-registries/Themes.d.ts +11 -9
- package/dist/asset-registries/Themes.js +32 -15
- package/dist/asset-registries/Themes.js.map +1 -1
- package/dist/asset-registries/i18n.d.ts +2 -2
- package/dist/asset-registries/i18n.js +12 -5
- package/dist/asset-registries/i18n.js.map +1 -1
- package/dist/asset-registries/util/IconCollectionsAlias.d.ts +30 -0
- package/dist/asset-registries/util/IconCollectionsAlias.js +37 -0
- package/dist/asset-registries/util/IconCollectionsAlias.js.map +1 -0
- package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +20 -0
- package/dist/asset-registries/util/IconCollectionsByTheme.js +42 -0
- package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -0
- package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +13 -0
- package/dist/asset-registries/util/getIconCollectionByTheme.js +29 -0
- package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -0
- package/dist/config/AnimationMode.d.ts +2 -2
- package/dist/config/AnimationMode.js +6 -1
- package/dist/config/AnimationMode.js.map +1 -1
- package/dist/config/CalendarType.d.ts +8 -1
- package/dist/config/CalendarType.js +23 -2
- package/dist/config/CalendarType.js.map +1 -1
- package/dist/config/ConfigurationReset.d.ts +4 -0
- package/dist/config/ConfigurationReset.js +11 -0
- package/dist/config/ConfigurationReset.js.map +1 -0
- package/dist/config/Fonts.d.ts +16 -0
- package/dist/config/Fonts.js +30 -0
- package/dist/config/Fonts.js.map +1 -0
- package/dist/config/FormatSettings.d.ts +5 -1
- package/dist/config/FormatSettings.js +9 -1
- package/dist/config/FormatSettings.js.map +1 -1
- package/dist/config/Icons.d.ts +31 -21
- package/dist/config/Icons.js +28 -32
- package/dist/config/Icons.js.map +1 -1
- package/dist/config/Language.d.ts +12 -2
- package/dist/config/Language.js +35 -4
- package/dist/config/Language.js.map +1 -1
- package/dist/config/NoConflict.js +5 -0
- package/dist/config/NoConflict.js.map +1 -1
- package/dist/config/Theme.d.ts +28 -5
- package/dist/config/Theme.js +56 -10
- package/dist/config/Theme.js.map +1 -1
- package/dist/config/ThemeRoot.d.ts +29 -0
- package/dist/config/ThemeRoot.js +63 -0
- package/dist/config/ThemeRoot.js.map +1 -0
- package/dist/config/Timezone.d.ts +17 -0
- package/dist/config/Timezone.js +34 -0
- package/dist/config/Timezone.js.map +1 -0
- package/dist/config/Tooltips.d.ts +19 -0
- package/dist/config/Tooltips.js +29 -0
- package/dist/config/Tooltips.js.map +1 -0
- package/dist/connectToComponent.d.ts +9 -0
- package/dist/connectToComponent.js +59 -0
- package/dist/connectToComponent.js.map +1 -0
- package/dist/converters/DOMReference.d.ts +5 -0
- package/dist/converters/DOMReference.js +13 -0
- package/dist/converters/DOMReference.js.map +1 -0
- package/dist/css/MultipleDragGhost.css +17 -0
- package/dist/css/OpenUI5PopupStyles.css +10 -0
- package/dist/css/ScrollbarStyles.css +3 -0
- package/dist/css/SystemCSSVars.css +27 -10
- package/dist/custom-elements-internal.json +2920 -0
- package/dist/custom-elements.json +2617 -0
- package/dist/decorators/bound.d.ts +1 -0
- package/dist/decorators/bound.js +34 -0
- package/dist/decorators/bound.js.map +1 -0
- package/dist/decorators/customElement.d.ts +57 -2
- package/dist/decorators/customElement.js +34 -5
- package/dist/decorators/customElement.js.map +1 -1
- package/dist/decorators/event-strict.d.ts +15 -0
- package/dist/decorators/event-strict.js +26 -0
- package/dist/decorators/event-strict.js.map +1 -0
- package/dist/decorators/event.d.ts +8 -2
- package/dist/decorators/event.js +9 -6
- package/dist/decorators/event.js.map +1 -1
- package/dist/decorators/i18n.d.ts +17 -0
- package/dist/decorators/i18n.js +32 -0
- package/dist/decorators/i18n.js.map +1 -0
- package/dist/decorators/property.d.ts +1 -1
- package/dist/decorators/property.js +7 -7
- package/dist/decorators/property.js.map +1 -1
- package/dist/decorators/query.d.ts +25 -0
- package/dist/decorators/query.js +32 -0
- package/dist/decorators/query.js.map +1 -0
- package/dist/decorators/queryAll.d.ts +27 -0
- package/dist/decorators/queryAll.js +34 -0
- package/dist/decorators/queryAll.js.map +1 -0
- package/dist/decorators/slot-strict.d.ts +27 -0
- package/dist/decorators/slot-strict.js +54 -0
- package/dist/decorators/slot-strict.js.map +1 -0
- package/dist/decorators/slot.d.ts +19 -1
- package/dist/decorators/slot.js +27 -9
- package/dist/decorators/slot.js.map +1 -1
- package/dist/decorators.d.ts +9 -0
- package/dist/decorators.js +10 -0
- package/dist/decorators.js.map +1 -0
- package/dist/delegate/ItemNavigation.d.ts +9 -8
- package/dist/delegate/ItemNavigation.js +13 -14
- package/dist/delegate/ItemNavigation.js.map +1 -1
- package/dist/delegate/ResizeHandler.d.ts +6 -7
- package/dist/delegate/ResizeHandler.js +11 -9
- package/dist/delegate/ResizeHandler.js.map +1 -1
- package/dist/delegate/ScrollEnablement.d.ts +4 -3
- package/dist/delegate/ScrollEnablement.js +2 -2
- package/dist/delegate/ScrollEnablement.js.map +1 -1
- package/dist/features/F6Navigation.d.ts +8 -3
- package/dist/features/F6Navigation.js +134 -48
- package/dist/features/F6Navigation.js.map +1 -1
- package/dist/features/InputElementsFormSupport.d.ts +15 -0
- package/dist/features/InputElementsFormSupport.js +43 -0
- package/dist/features/InputElementsFormSupport.js.map +1 -0
- package/dist/features/LegacyDateFormats.d.ts +18 -0
- package/dist/features/LegacyDateFormats.js +20 -0
- package/dist/features/LegacyDateFormats.js.map +1 -0
- package/dist/features/OpenUI5Element.js.map +1 -1
- package/dist/features/OpenUI5Enablement.d.ts +3 -3
- package/dist/features/OpenUI5Enablement.js.map +1 -1
- package/dist/features/OpenUI5Support.d.ts +31 -9
- package/dist/features/OpenUI5Support.js +137 -50
- package/dist/features/OpenUI5Support.js.map +1 -1
- package/dist/features/insertOpenUI5PopupStyles.d.ts +2 -0
- package/dist/features/insertOpenUI5PopupStyles.js +9 -0
- package/dist/features/insertOpenUI5PopupStyles.js.map +1 -0
- package/dist/features/patchPatcher.d.ts +12 -0
- package/dist/features/patchPatcher.js +21 -0
- package/dist/features/patchPatcher.js.map +1 -0
- package/dist/features/patchPopup.d.ts +33 -0
- package/dist/features/patchPopup.js +163 -0
- package/dist/features/patchPopup.js.map +1 -0
- package/dist/generated/AssetParameters.d.ts +6 -0
- package/dist/generated/AssetParameters.js +4 -9
- package/dist/generated/AssetParameters.js.map +1 -0
- package/dist/generated/VersionInfo.d.ts +10 -0
- package/dist/generated/VersionInfo.js +9 -8
- package/dist/generated/VersionInfo.js.map +1 -0
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
- package/dist/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
- package/dist/generated/css/BusyIndicator.css.d.ts +2 -0
- package/dist/generated/css/BusyIndicator.css.js +2 -5
- package/dist/generated/css/BusyIndicator.css.js.map +1 -0
- package/dist/generated/css/FontFace.css.d.ts +2 -0
- package/dist/generated/css/FontFace.css.js +37 -5
- package/dist/generated/css/FontFace.css.js.map +1 -0
- package/dist/generated/css/MultipleDragGhost.css.d.ts +2 -0
- package/dist/generated/css/MultipleDragGhost.css.js +2 -0
- package/dist/generated/css/MultipleDragGhost.css.js.map +1 -0
- package/dist/generated/css/OpenUI5PopupStyles.css.d.ts +2 -0
- package/dist/generated/css/OpenUI5PopupStyles.css.js +2 -0
- package/dist/generated/css/OpenUI5PopupStyles.css.js.map +1 -0
- package/dist/generated/css/ScrollbarStyles.css.d.ts +2 -0
- package/dist/generated/css/ScrollbarStyles.css.js +2 -0
- package/dist/generated/css/ScrollbarStyles.css.js.map +1 -0
- package/dist/generated/css/SystemCSSVars.css.d.ts +2 -0
- package/dist/generated/css/SystemCSSVars.css.js +2 -5
- package/dist/generated/css/SystemCSSVars.css.js.map +1 -0
- package/dist/generated/i18n/i18n-defaults.d.ts +3 -0
- package/dist/generated/i18n/i18n-defaults.js +3 -0
- package/dist/generated/i18n/i18n-defaults.js.map +1 -0
- package/dist/generated/json-imports/i18n-fetch.d.ts +1 -0
- package/dist/generated/json-imports/i18n-fetch.js +2 -0
- package/dist/generated/json-imports/i18n-fetch.js.map +1 -0
- package/dist/generated/json-imports/i18n-node.d.ts +1 -0
- package/dist/generated/json-imports/i18n-node.js +2 -0
- package/dist/generated/json-imports/i18n-node.js.map +1 -0
- package/dist/generated/json-imports/i18n.d.ts +1 -0
- package/dist/generated/json-imports/i18n.js +2 -0
- package/dist/generated/json-imports/i18n.js.map +1 -0
- package/dist/getSharedResource.d.ts +1 -1
- package/dist/getSharedResource.js +16 -2
- package/dist/getSharedResource.js.map +1 -1
- package/{global.d.ts → dist/global.d.ts} +2 -6
- package/dist/i18nBundle.d.ts +2 -4
- package/dist/i18nBundle.js +3 -5
- package/dist/i18nBundle.js.map +1 -1
- package/dist/index.d.ts +50 -0
- package/dist/index.js +92 -0
- package/dist/index.js.map +1 -0
- package/dist/jsx-dev-runtime.d.ts +4 -0
- package/dist/jsx-dev-runtime.js +43 -0
- package/dist/jsx-dev-runtime.js.map +1 -0
- package/dist/jsx-runtime.d.ts +51 -0
- package/dist/jsx-runtime.js +27 -0
- package/dist/jsx-runtime.js.map +1 -0
- package/dist/jsx-utils.d.ts +3 -0
- package/dist/jsx-utils.js +48 -0
- package/dist/jsx-utils.js.map +1 -0
- package/dist/locale/Locale.js.map +1 -1
- package/dist/locale/RTLAwareRegistry.d.ts +1 -1
- package/dist/locale/RTLAwareRegistry.js.map +1 -1
- package/dist/locale/applyDirection.d.ts +3 -2
- package/dist/locale/applyDirection.js +3 -2
- package/dist/locale/applyDirection.js.map +1 -1
- package/dist/locale/directionChange.js.map +1 -1
- package/dist/locale/getEffectiveDir.d.ts +1 -1
- package/dist/locale/getEffectiveDir.js +3 -19
- package/dist/locale/getEffectiveDir.js.map +1 -1
- package/dist/locale/getLocale.js.map +1 -1
- package/dist/locale/languageChange.js.map +1 -1
- package/dist/locale/nextFallbackLocale.js +6 -2
- package/dist/locale/nextFallbackLocale.js.map +1 -1
- package/dist/locale/normalizeLocale.js.map +1 -1
- package/dist/prod/AssetRegistry.js +2 -0
- package/dist/prod/AssetRegistry.js.map +7 -0
- package/dist/prod/Assets-fetch.js +2 -0
- package/dist/prod/Assets-fetch.js.map +7 -0
- package/dist/prod/Assets-node.js +2 -0
- package/dist/prod/Assets-node.js.map +7 -0
- package/dist/prod/Assets.js +2 -0
- package/dist/prod/Assets.js.map +7 -0
- package/dist/prod/Boot.js +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/DragAndDrop.js +2 -0
- package/dist/prod/DragAndDrop.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/ScrollbarStyles.js +2 -0
- package/dist/prod/ScrollbarStyles.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-strict.js +2 -0
- package/dist/prod/decorators/slot-strict.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/insertOpenUI5PopupStyles.js +2 -0
- package/dist/prod/features/insertOpenUI5PopupStyles.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/assets/i18n/messagebundle_en.json +1 -0
- package/dist/prod/generated/assets/i18n/messagebundle_en_US_sappsd.json +1 -0
- package/dist/prod/generated/assets/i18n/messagebundle_en_US_saprigi.json +1 -0
- package/dist/prod/generated/assets/i18n/messagebundle_en_US_saptrc.json +1 -0
- package/dist/prod/generated/css/BusyIndicator.css.js +2 -0
- package/dist/prod/generated/css/BusyIndicator.css.js.map +7 -0
- package/dist/prod/generated/css/FontFace.css.js +37 -0
- package/dist/prod/generated/css/FontFace.css.js.map +7 -0
- package/dist/prod/generated/css/MultipleDragGhost.css.js +2 -0
- package/dist/prod/generated/css/MultipleDragGhost.css.js.map +7 -0
- package/dist/prod/generated/css/OpenUI5PopupStyles.css.js +2 -0
- package/dist/prod/generated/css/OpenUI5PopupStyles.css.js.map +7 -0
- package/dist/prod/generated/css/ScrollbarStyles.css.js +2 -0
- package/dist/prod/generated/css/ScrollbarStyles.css.js.map +7 -0
- package/dist/prod/generated/css/SystemCSSVars.css.js +2 -0
- package/dist/prod/generated/css/SystemCSSVars.css.js.map +7 -0
- package/dist/prod/generated/i18n/i18n-defaults.js +2 -0
- package/dist/prod/generated/i18n/i18n-defaults.js.map +7 -0
- package/dist/prod/generated/json-imports/i18n-fetch.js +2 -0
- package/dist/prod/generated/json-imports/i18n-fetch.js.map +7 -0
- package/dist/prod/generated/json-imports/i18n-node.js +2 -0
- package/dist/prod/generated/json-imports/i18n-node.js.map +7 -0
- package/dist/prod/generated/json-imports/i18n.js +2 -0
- package/dist/prod/generated/json-imports/i18n.js.map +7 -0
- package/dist/prod/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/componentStyles.js +3 -0
- package/dist/prod/theming/componentStyles.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/createInstanceChecker.js +2 -0
- package/dist/prod/util/createInstanceChecker.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/createMultiInstanceChecker.js +2 -0
- package/dist/prod/util/createMultiInstanceChecker.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/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/getParentElement.js +2 -0
- package/dist/prod/util/getParentElement.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/isEventMarked.js +2 -0
- package/dist/prod/util/isEventMarked.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/valueStateNavigation.js +2 -0
- package/dist/prod/util/valueStateNavigation.js.map +7 -0
- package/dist/prod/util/whenDOMReady.js +2 -0
- package/dist/prod/util/whenDOMReady.js.map +7 -0
- package/dist/prod/util/willShowContent.js +2 -0
- package/dist/prod/util/willShowContent.js.map +7 -0
- package/dist/prod/validateThemeRoot.js +2 -0
- package/dist/prod/validateThemeRoot.js.map +7 -0
- package/dist/renderer/JsxRenderer.d.ts +3 -0
- package/dist/renderer/JsxRenderer.js +26 -0
- package/dist/renderer/JsxRenderer.js.map +1 -0
- package/dist/renderer/LitRenderer.d.ts +5 -5
- package/dist/renderer/LitRenderer.js +5 -10
- package/dist/renderer/LitRenderer.js.map +1 -1
- package/dist/renderer/directives/style-map.d.ts +13 -0
- package/dist/renderer/directives/style-map.js +59 -59
- package/dist/renderer/directives/style-map.js.map +1 -0
- package/dist/renderer/executeTemplate.d.ts +3 -4
- package/dist/renderer/executeTemplate.js +1 -19
- package/dist/renderer/executeTemplate.js.map +1 -1
- package/dist/sap/base/Log.js +698 -188
- package/dist/sap/base/assert.js +28 -1
- package/dist/sap/base/config/MemoryConfigurationProvider.js +20 -0
- package/dist/sap/base/security/URLListValidator.js +253 -6
- package/dist/sap/base/security/encodeCSS.js +34 -8
- package/dist/sap/base/security/encodeXML.js +47 -17
- package/dist/sap/base/security/sanitizeHTML.js +35 -13
- package/dist/sap/base/strings/toHex.js +27 -2
- package/dist/sap/base/util/now.js +24 -3
- package/dist/sap/base/util/uid.js +27 -0
- package/dist/sap/ui/thirdparty/caja-html-sanitizer.js +113 -98
- package/dist/ssr-dom-shim.d.ts +1 -0
- package/dist/ssr-dom-shim.js +63 -0
- package/dist/ssr-dom-shim.js.map +1 -0
- package/dist/ssr-dom.d.ts +1 -0
- package/dist/ssr-dom.js +3 -0
- package/dist/ssr-dom.js.map +1 -0
- package/dist/theming/CustomStyle.js +7 -5
- package/dist/theming/CustomStyle.js.map +1 -1
- package/dist/theming/ThemeLoaded.js.map +1 -1
- package/dist/theming/ThemeRegistered.d.ts +4 -0
- package/dist/theming/ThemeRegistered.js +11 -0
- package/dist/theming/ThemeRegistered.js.map +1 -0
- package/dist/theming/applyTheme.d.ts +2 -0
- package/dist/theming/applyTheme.js +27 -11
- package/dist/theming/applyTheme.js.map +1 -1
- package/dist/theming/componentStyles.d.ts +3 -0
- package/dist/theming/componentStyles.js +15 -0
- package/dist/theming/componentStyles.js.map +1 -0
- package/dist/theming/getConstructableStyle.d.ts +2 -2
- package/dist/theming/getConstructableStyle.js +3 -3
- package/dist/theming/getConstructableStyle.js.map +1 -1
- package/dist/theming/getEffectiveStyle.d.ts +1 -1
- package/dist/theming/getEffectiveStyle.js +5 -12
- package/dist/theming/getEffectiveStyle.js.map +1 -1
- package/dist/theming/getStylesString.d.ts +1 -1
- package/dist/theming/getStylesString.js +2 -4
- package/dist/theming/getStylesString.js.map +1 -1
- package/dist/theming/getThemeDesignerTheme.js +2 -1
- package/dist/theming/getThemeDesignerTheme.js.map +1 -1
- package/dist/thirdparty/_merge.js.map +1 -1
- package/dist/thirdparty/isPlainObject.js.map +1 -1
- package/dist/thirdparty/merge.js.map +1 -1
- package/dist/thirdparty/preact/jsx.d.ts +2616 -0
- package/dist/thirdparty/preact/jsxRuntime.module.d.ts +62 -0
- package/dist/thirdparty/preact/jsxRuntime.module.js +1 -0
- package/dist/thirdparty/preact/preact.module.d.ts +398 -0
- package/dist/thirdparty/preact/preact.module.js +1 -0
- package/dist/types/AnimationMode.d.ts +0 -8
- package/dist/types/AnimationMode.js +0 -8
- package/dist/types/AnimationMode.js.map +1 -1
- package/dist/types/CalendarType.d.ts +0 -9
- package/dist/types/CalendarType.js +0 -9
- package/dist/types/CalendarType.js.map +1 -1
- package/dist/types/InvisibleMessageMode.d.ts +5 -10
- package/dist/types/InvisibleMessageMode.js +4 -11
- package/dist/types/InvisibleMessageMode.js.map +1 -1
- package/dist/types/ItemNavigationBehavior.d.ts +0 -6
- package/dist/types/ItemNavigationBehavior.js +0 -6
- package/dist/types/ItemNavigationBehavior.js.map +1 -1
- package/dist/types/MovePlacement.d.ts +20 -0
- package/dist/types/MovePlacement.js +22 -0
- package/dist/types/MovePlacement.js.map +1 -0
- package/dist/types/NavigationMode.d.ts +0 -8
- package/dist/types/NavigationMode.js +0 -8
- package/dist/types/NavigationMode.js.map +1 -1
- package/dist/types/Orientation.d.ts +16 -0
- package/dist/types/Orientation.js +18 -0
- package/dist/types/Orientation.js.map +1 -0
- package/dist/types/SortOrder.d.ts +24 -0
- package/dist/types/SortOrder.js +26 -0
- package/dist/types/SortOrder.js.map +1 -0
- package/dist/types/ValueState.d.ts +3 -17
- package/dist/types/ValueState.js +3 -17
- package/dist/types/ValueState.js.map +1 -1
- package/dist/types.d.ts +45 -14
- package/dist/types.js.map +1 -1
- package/dist/updateShadowRoot.d.ts +1 -2
- package/dist/updateShadowRoot.js +5 -21
- package/dist/updateShadowRoot.js.map +1 -1
- package/dist/util/AccessibilityTextsHelper.d.ts +17 -0
- package/dist/util/AccessibilityTextsHelper.js +199 -0
- package/dist/util/AccessibilityTextsHelper.js.map +1 -0
- package/dist/util/Caret.js.map +1 -1
- package/dist/util/ColorConversion.d.ts +2 -1
- package/dist/util/ColorConversion.js +233 -216
- package/dist/util/ColorConversion.js.map +1 -1
- package/dist/util/FetchHelper.js.map +1 -1
- package/dist/util/FocusableElements.js +54 -16
- 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/InvisibleMessage.js +2 -2
- package/dist/util/InvisibleMessage.js.map +1 -1
- package/dist/util/PopupUtils.d.ts +1 -3
- package/dist/util/PopupUtils.js +1 -15
- package/dist/util/PopupUtils.js.map +1 -1
- package/dist/util/SelectionAssistant.d.ts +12 -0
- package/dist/util/SelectionAssistant.js +71 -0
- package/dist/util/SelectionAssistant.js.map +1 -0
- package/dist/util/SlotsHelper.js.map +1 -1
- package/dist/util/StringHelper.d.ts +3 -1
- package/dist/util/StringHelper.js +15 -1
- package/dist/util/StringHelper.js.map +1 -1
- package/dist/util/TabbableElements.js +5 -12
- package/dist/util/TabbableElements.js.map +1 -1
- package/dist/util/arraysAreEqual.js.map +1 -1
- package/dist/util/clamp.js +2 -1
- package/dist/util/clamp.js.map +1 -1
- package/dist/util/createInstanceChecker.d.ts +2 -0
- package/dist/util/createInstanceChecker.js +8 -0
- package/dist/util/createInstanceChecker.js.map +1 -0
- package/dist/util/createLinkInHead.d.ts +1 -1
- package/dist/util/createLinkInHead.js +1 -1
- package/dist/util/createLinkInHead.js.map +1 -1
- package/dist/util/createMultiInstanceChecker.d.ts +2 -0
- package/dist/util/createMultiInstanceChecker.js +19 -0
- package/dist/util/createMultiInstanceChecker.js.map +1 -0
- package/dist/util/debounce.js.map +1 -1
- package/dist/util/detectNavigatorLanguage.d.ts +2 -2
- package/dist/util/detectNavigatorLanguage.js +6 -1
- package/dist/util/detectNavigatorLanguage.js.map +1 -1
- package/dist/util/dragAndDrop/DragRegistry.d.ts +39 -0
- package/dist/util/dragAndDrop/DragRegistry.js +62 -0
- package/dist/util/dragAndDrop/DragRegistry.js.map +1 -0
- package/dist/util/dragAndDrop/findClosestPosition.d.ts +12 -0
- package/dist/util/dragAndDrop/findClosestPosition.js +106 -0
- package/dist/util/dragAndDrop/findClosestPosition.js.map +1 -0
- package/dist/util/dragAndDrop/handleDragOver.d.ts +16 -0
- package/dist/util/dragAndDrop/handleDragOver.js +42 -0
- package/dist/util/dragAndDrop/handleDragOver.js.map +1 -0
- package/dist/util/dragAndDrop/handleDrop.d.ts +5 -0
- package/dist/util/dragAndDrop/handleDrop.js +22 -0
- package/dist/util/dragAndDrop/handleDrop.js.map +1 -0
- package/dist/util/dragAndDrop/longDragOverHandler.d.ts +2 -0
- package/dist/util/dragAndDrop/longDragOverHandler.js +25 -0
- package/dist/util/dragAndDrop/longDragOverHandler.js.map +1 -0
- package/dist/util/escapeRegex.js.map +1 -1
- package/dist/util/fixSafariActiveState.d.ts +2 -0
- package/dist/util/fixSafariActiveState.js +11 -0
- package/dist/util/fixSafariActiveState.js.map +1 -0
- package/dist/util/formatMessage.js.map +1 -1
- package/dist/util/generateHighlightedMarkup.js.map +1 -1
- package/dist/util/getActiveElement.js.map +1 -1
- package/dist/util/getClassCopy.d.ts +147 -104
- package/dist/util/getClassCopy.js.map +1 -1
- package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
- package/dist/util/getDesigntimePropertyAsArray.js +2 -1
- package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
- package/dist/util/getEffectiveContentDensity.js.map +1 -1
- package/dist/util/getFastNavigationGroups.js +6 -1
- package/dist/util/getFastNavigationGroups.js.map +1 -1
- package/dist/util/getFileExtension.js.map +1 -1
- package/dist/util/getNormalizedTarget.js.map +1 -1
- package/dist/util/getParentElement.d.ts +2 -0
- package/dist/util/getParentElement.js +5 -0
- package/dist/util/getParentElement.js.map +1 -0
- package/dist/util/getSingletonElementInstance.d.ts +10 -1
- package/dist/util/getSingletonElementInstance.js +11 -2
- package/dist/util/getSingletonElementInstance.js.map +1 -1
- package/dist/util/hash2str.d.ts +1 -0
- package/dist/util/hash2str.js +14 -0
- package/dist/util/hash2str.js.map +1 -0
- package/dist/util/isElementClickable.js.map +1 -1
- package/dist/util/isElementHidden.js +2 -1
- package/dist/util/isElementHidden.js.map +1 -1
- package/dist/util/isElementInView.js.map +1 -1
- package/dist/util/isElementTabbable.js +2 -2
- package/dist/util/isElementTabbable.js.map +1 -1
- package/dist/util/isEventMarked.d.ts +2 -0
- package/dist/util/isEventMarked.js +6 -0
- package/dist/util/isEventMarked.js.map +1 -0
- package/dist/util/isValidPropertyName.js.map +1 -1
- package/dist/util/throttle.d.ts +2 -0
- package/dist/util/throttle.js +20 -0
- package/dist/util/throttle.js.map +1 -0
- package/dist/util/toLowercaseEnumValue.d.ts +3 -0
- package/dist/util/toLowercaseEnumValue.js +4 -0
- package/dist/util/toLowercaseEnumValue.js.map +1 -0
- package/dist/util/valueStateNavigation.d.ts +8 -0
- package/dist/util/valueStateNavigation.js +40 -0
- package/dist/util/valueStateNavigation.js.map +1 -0
- package/dist/util/whenDOMReady.js.map +1 -1
- package/dist/util/willShowContent.js.map +1 -1
- package/dist/validateThemeRoot.js +21 -15
- package/dist/validateThemeRoot.js.map +1 -1
- package/dist/vscode.html-custom-data.json +22 -0
- package/package-scripts.cjs +105 -0
- package/package.json +53 -23
- package/src/css/MultipleDragGhost.css +17 -0
- package/src/css/OpenUI5PopupStyles.css +10 -0
- package/src/css/ScrollbarStyles.css +3 -0
- package/src/css/SystemCSSVars.css +27 -10
- package/src/i18n/messagebundle.properties +5 -0
- package/src/i18n/messagebundle_en.properties +2 -0
- package/src/i18n/messagebundle_en_US_sappsd.properties +2 -0
- package/src/i18n/messagebundle_en_US_saprigi.properties +2 -0
- package/src/i18n/messagebundle_en_US_saptrc.properties +2 -0
- package/src/thirdparty/preact/jsxRuntime.module.js +1 -0
- package/src/thirdparty/preact/preact.module.js +1 -0
- package/src/thirdparty/preact/version.txt +1 -0
- package/tsconfig.json +18 -12
- package/.eslintignore +0 -15
- package/bundle.esm.js +0 -60
- package/config/wdio.conf.js +0 -1
- package/dist/CSP.d.ts +0 -30
- package/dist/CSP.js +0 -51
- package/dist/CSP.js.map +0 -1
- package/dist/MarkedEvents.d.ts +0 -9
- package/dist/MarkedEvents.js +0 -15
- package/dist/MarkedEvents.js.map +0 -1
- package/dist/StaticArea.d.ts +0 -0
- package/dist/StaticArea.js +0 -6
- package/dist/StaticArea.js.map +0 -1
- package/dist/StaticAreaItem.d.ts +0 -36
- package/dist/StaticAreaItem.js +0 -99
- package/dist/StaticAreaItem.js.map +0 -1
- package/dist/api.json +0 -1
- package/dist/assets/bundle.esm.0cfce34f.js +0 -56
- package/dist/assets-meta/IconCollectionsAlias.d.ts +0 -17
- package/dist/assets-meta/IconCollectionsAlias.js +0 -18
- package/dist/assets-meta/IconCollectionsAlias.js.map +0 -1
- package/dist/config/RTL.d.ts +0 -7
- package/dist/config/RTL.js +0 -34
- package/dist/config/RTL.js.map +0 -1
- package/dist/config/ThemeRoots.d.ts +0 -4
- package/dist/config/ThemeRoots.js +0 -28
- package/dist/config/ThemeRoots.js.map +0 -1
- package/dist/css/FontFace.css +0 -66
- package/dist/css/OverrideFontFace.css +0 -32
- package/dist/decorators/fastNavigation.d.ts +0 -7
- package/dist/decorators/fastNavigation.js +0 -13
- package/dist/decorators/fastNavigation.js.map +0 -1
- package/dist/decorators/languageAware.d.ts +0 -7
- package/dist/decorators/languageAware.js +0 -13
- package/dist/decorators/languageAware.js.map +0 -1
- package/dist/decorators/themeAware.d.ts +0 -7
- package/dist/decorators/themeAware.js +0 -13
- package/dist/decorators/themeAware.js.map +0 -1
- package/dist/generated/css/OverrideFontFace.css.js +0 -5
- package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.js +0 -11
- package/dist/theming/getEffectiveLinksHrefs.d.ts +0 -3
- package/dist/theming/getEffectiveLinksHrefs.js +0 -17
- package/dist/theming/getEffectiveLinksHrefs.js.map +0 -1
- package/dist/theming/preloadLinks.d.ts +0 -3
- package/dist/theming/preloadLinks.js +0 -19
- package/dist/theming/preloadLinks.js.map +0 -1
- package/dist/types/CSSColor.d.ts +0 -16
- package/dist/types/CSSColor.js +0 -19
- package/dist/types/CSSColor.js.map +0 -1
- package/dist/types/DOMReference.d.ts +0 -17
- package/dist/types/DOMReference.js +0 -25
- package/dist/types/DOMReference.js.map +0 -1
- package/dist/types/DataType.d.ts +0 -25
- package/dist/types/DataType.js +0 -44
- package/dist/types/DataType.js.map +0 -1
- package/dist/types/Float.d.ts +0 -18
- package/dist/types/Float.js +0 -22
- package/dist/types/Float.js.map +0 -1
- package/dist/types/Integer.d.ts +0 -18
- package/dist/types/Integer.js +0 -22
- package/dist/types/Integer.js.map +0 -1
- package/dist/util/AriaLabelHelper.d.ts +0 -6
- package/dist/util/AriaLabelHelper.js +0 -44
- package/dist/util/AriaLabelHelper.js.map +0 -1
- package/dist/util/createStyleInHead.d.ts +0 -8
- package/dist/util/createStyleInHead.js +0 -18
- package/dist/util/createStyleInHead.js.map +0 -1
- package/dist/util/getEffectiveScrollbarStyle.d.ts +0 -2
- package/dist/util/getEffectiveScrollbarStyle.js +0 -4
- package/dist/util/getEffectiveScrollbarStyle.js.map +0 -1
- package/index.js +0 -4
- package/lib/generate-asset-parameters/index.js +0 -25
- package/lib/generate-styles/index.js +0 -26
- package/lib/generate-version-info/index.js +0 -32
- package/package-scripts.js +0 -67
- package/src/AssetRegistry.ts +0 -11
- package/src/Boot.ts +0 -61
- package/src/CSP.ts +0 -66
- package/src/CustomElementsRegistry.ts +0 -98
- package/src/CustomElementsScope.ts +0 -33
- package/src/CustomElementsScopeUtils.ts +0 -115
- package/src/DOMObserver.ts +0 -28
- package/src/Device.ts +0 -124
- package/src/EventProvider.ts +0 -87
- package/src/FeaturesRegistry.ts +0 -14
- package/src/FontFace.ts +0 -31
- package/src/InitialConfiguration.ts +0 -207
- package/src/Keys.ts +0 -295
- package/src/ManagedStyles.ts +0 -92
- package/src/MarkedEvents.ts +0 -20
- package/src/MediaRange.ts +0 -110
- package/src/PropertiesFileFormat.ts +0 -95
- package/src/Render.ts +0 -180
- package/src/RenderQueue.ts +0 -71
- package/src/Runtimes.ts +0 -114
- package/src/StaticArea.ts +0 -3
- package/src/StaticAreaItem.ts +0 -113
- package/src/SystemCSSVars.ts +0 -10
- package/src/Theming.ts +0 -4
- package/src/UI5Element.ts +0 -1155
- package/src/UI5ElementMetadata.ts +0 -389
- package/src/animations/AnimationQueue.ts +0 -43
- package/src/animations/animate.ts +0 -64
- package/src/animations/scroll.ts +0 -21
- package/src/animations/slideDown.ts +0 -72
- package/src/animations/slideUp.ts +0 -67
- package/src/asset-registries/Icons.ts +0 -162
- package/src/asset-registries/Illustrations.ts +0 -75
- package/src/asset-registries/LocaleData.ts +0 -172
- package/src/asset-registries/Themes.ts +0 -67
- package/src/asset-registries/i18n.ts +0 -118
- package/src/assets-meta/IconCollectionsAlias.ts +0 -18
- package/src/config/AnimationMode.ts +0 -33
- package/src/config/CalendarType.ts +0 -23
- package/src/config/FormatSettings.ts +0 -21
- package/src/config/Icons.ts +0 -59
- package/src/config/Language.ts +0 -72
- package/src/config/NoConflict.ts +0 -67
- package/src/config/RTL.ts +0 -41
- package/src/config/Theme.ts +0 -64
- package/src/config/ThemeRoots.ts +0 -41
- package/src/css/FontFace.css +0 -66
- package/src/css/OverrideFontFace.css +0 -32
- package/src/decorators/customElement.ts +0 -17
- package/src/decorators/event.ts +0 -28
- package/src/decorators/fastNavigation.ts +0 -14
- package/src/decorators/languageAware.ts +0 -14
- package/src/decorators/property.ts +0 -30
- package/src/decorators/slot.ts +0 -49
- package/src/decorators/themeAware.ts +0 -14
- package/src/delegate/ItemNavigation.ts +0 -393
- package/src/delegate/ResizeHandler.ts +0 -95
- package/src/delegate/ScrollEnablement.ts +0 -221
- package/src/features/F6Navigation.ts +0 -141
- package/src/features/OpenUI5Element.ts +0 -11
- package/src/features/OpenUI5Enablement.ts +0 -117
- package/src/features/OpenUI5Support.ts +0 -148
- package/src/getSharedResource.ts +0 -30
- package/src/i18nBundle.ts +0 -108
- package/src/locale/Locale.ts +0 -101
- package/src/locale/RTLAwareRegistry.ts +0 -16
- package/src/locale/applyDirection.ts +0 -18
- package/src/locale/directionChange.ts +0 -34
- package/src/locale/getEffectiveDir.ts +0 -28
- package/src/locale/getLocale.ts +0 -46
- package/src/locale/languageChange.ts +0 -24
- package/src/locale/nextFallbackLocale.ts +0 -28
- package/src/locale/normalizeLocale.ts +0 -56
- package/src/renderer/LitRenderer.ts +0 -60
- package/src/renderer/directives/style-map.js +0 -72
- package/src/renderer/executeTemplate.ts +0 -40
- package/src/theming/CustomStyle.ts +0 -62
- package/src/theming/ThemeLoaded.ts +0 -24
- package/src/theming/applyTheme.ts +0 -90
- package/src/theming/getConstructableStyle.ts +0 -31
- package/src/theming/getEffectiveLinksHrefs.ts +0 -26
- package/src/theming/getEffectiveStyle.ts +0 -41
- package/src/theming/getStylesString.ts +0 -15
- package/src/theming/getThemeDesignerTheme.ts +0 -101
- package/src/theming/preloadLinks.ts +0 -24
- package/src/thirdparty/_merge.ts +0 -32
- package/src/thirdparty/isPlainObject.ts +0 -18
- package/src/thirdparty/merge.ts +0 -5
- package/src/types/AnimationMode.ts +0 -33
- package/src/types/CSSColor.ts +0 -20
- package/src/types/CalendarType.ts +0 -38
- package/src/types/DOMReference.ts +0 -28
- package/src/types/DataType.ts +0 -51
- package/src/types/Float.ts +0 -25
- package/src/types/Integer.ts +0 -25
- package/src/types/InvisibleMessageMode.ts +0 -27
- package/src/types/ItemNavigationBehavior.ts +0 -26
- package/src/types/NavigationMode.ts +0 -33
- package/src/types/ValueState.ts +0 -47
- package/src/types.ts +0 -30
- package/src/updateShadowRoot.ts +0 -37
- package/src/util/AriaLabelHelper.ts +0 -63
- package/src/util/Caret.ts +0 -28
- package/src/util/ColorConversion.ts +0 -399
- package/src/util/FetchHelper.ts +0 -31
- package/src/util/FocusableElements.ts +0 -82
- package/src/util/HTMLSanitizer.ts +0 -9
- package/src/util/InvisibleMessage.ts +0 -69
- package/src/util/PopupUtils.ts +0 -112
- package/src/util/SlotsHelper.ts +0 -39
- package/src/util/StringHelper.ts +0 -26
- package/src/util/TabbableElements.ts +0 -70
- package/src/util/arraysAreEqual.ts +0 -15
- package/src/util/clamp.ts +0 -12
- package/src/util/createLinkInHead.ts +0 -25
- package/src/util/createStyleInHead.ts +0 -20
- package/src/util/debounce.ts +0 -18
- package/src/util/detectNavigatorLanguage.ts +0 -13
- package/src/util/escapeRegex.ts +0 -11
- package/src/util/formatMessage.ts +0 -24
- package/src/util/generateHighlightedMarkup.ts +0 -43
- package/src/util/getActiveElement.ts +0 -11
- package/src/util/getClassCopy.ts +0 -12
- package/src/util/getDesigntimePropertyAsArray.ts +0 -4
- package/src/util/getEffectiveContentDensity.ts +0 -5
- package/src/util/getEffectiveScrollbarStyle.ts +0 -5
- package/src/util/getFastNavigationGroups.ts +0 -63
- package/src/util/getFileExtension.ts +0 -21
- package/src/util/getNormalizedTarget.ts +0 -16
- package/src/util/getSingletonElementInstance.ts +0 -13
- package/src/util/isElementClickable.ts +0 -19
- package/src/util/isElementHidden.ts +0 -9
- package/src/util/isElementInView.ts +0 -15
- package/src/util/isElementTabbable.ts +0 -37
- package/src/util/isValidPropertyName.ts +0 -29
- package/src/util/whenDOMReady.ts +0 -13
- package/src/util/willShowContent.ts +0 -7
- package/src/validateThemeRoot.ts +0 -58
- package/used-modules.txt +0 -10
package/src/MediaRange.ts
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
type Range = Map<string, Array<number>>;
|
|
2
|
-
|
|
3
|
-
const mediaRanges = new Map<string, Range>();
|
|
4
|
-
|
|
5
|
-
const DEAFULT_RANGE_SET: Range = new Map<string, Array<number>>();
|
|
6
|
-
DEAFULT_RANGE_SET.set("S", [0, 599]);
|
|
7
|
-
DEAFULT_RANGE_SET.set("M", [600, 1023]);
|
|
8
|
-
DEAFULT_RANGE_SET.set("L", [1024, 1439]);
|
|
9
|
-
DEAFULT_RANGE_SET.set("XL", [1440, Infinity]);
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Enumeration containing the names and settings of predefined screen width media query range sets.
|
|
13
|
-
*
|
|
14
|
-
* @namespace
|
|
15
|
-
* @name MediaRange.RANGESETS
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
enum RANGESETS {
|
|
19
|
-
/**
|
|
20
|
-
* A 4-step range set (S-M-L-XL).
|
|
21
|
-
*
|
|
22
|
-
* The ranges of this set are:
|
|
23
|
-
* <ul>
|
|
24
|
-
* <li><code>"S"</code>: For screens smaller than 600 pixels.</li>
|
|
25
|
-
* <li><code>"M"</code>: For screens greater than or equal to 600 pixels and smaller than 1024 pixels.</li>
|
|
26
|
-
* <li><code>"L"</code>: For screens greater than or equal to 1024 pixels and smaller than 1440 pixels.</li>
|
|
27
|
-
* <li><code>"XL"</code>: For screens greater than or equal to 1440 pixels.</li>
|
|
28
|
-
* </ul>
|
|
29
|
-
*
|
|
30
|
-
* @name MediaRange.RANGESETS.RANGE_4STEPS
|
|
31
|
-
* @public
|
|
32
|
-
*/
|
|
33
|
-
RANGE_4STEPS = "4Step",
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Initializes a screen width media query range set.
|
|
38
|
-
*
|
|
39
|
-
* This initialization step makes the range set ready to be used for one of the other functions in namespace <code>MediaRange</code>.
|
|
40
|
-
*
|
|
41
|
-
* A range set can be defined as shown in the following example:
|
|
42
|
-
* <pre>
|
|
43
|
-
* MediaRange.initRangeSet("MyRangeSet", [200, 400], ["Small", "Medium", "Large"]);
|
|
44
|
-
* </pre>
|
|
45
|
-
* This example defines the following named ranges:
|
|
46
|
-
* <ul>
|
|
47
|
-
* <li><code>"Small"</code>: For screens smaller than 200 pixels.</li>
|
|
48
|
-
* <li><code>"Medium"</code>: For screens greater than or equal to 200 pixels and smaller than 400 pixels.</li>
|
|
49
|
-
* <li><code>"Large"</code>: For screens greater than or equal to 400 pixels.</li>
|
|
50
|
-
* </ul>
|
|
51
|
-
*
|
|
52
|
-
* @param {string} name The name of the range set to be initialized.
|
|
53
|
-
* The name must be a valid id and consist only of letters and numeric digits.
|
|
54
|
-
* @param {Range} [range] The given range set.
|
|
55
|
-
* @name MediaRange.initRangeSet
|
|
56
|
-
*/
|
|
57
|
-
const initRangeSet = (name: string, range: Range) => {
|
|
58
|
-
mediaRanges.set(name, range);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Returns information about the current active range of the range set with the given name.
|
|
63
|
-
*
|
|
64
|
-
* If the optional parameter <code>width</code> is given, the active range will be determined for that width,
|
|
65
|
-
* otherwise it is determined for the current window size.
|
|
66
|
-
*
|
|
67
|
-
* @param {string} name The name of the range set. The range set must be initialized beforehand ({@link MediaRange.initRangeSet})
|
|
68
|
-
* @param {number} [width] An optional width, based on which the range should be determined;
|
|
69
|
-
* If <code>width</code> is not provided, the window size will be used.
|
|
70
|
-
* @returns {string} The name of the current active interval of the range set.
|
|
71
|
-
*
|
|
72
|
-
* @name MediaRange.getCurrentRange
|
|
73
|
-
* @function
|
|
74
|
-
* @public
|
|
75
|
-
*/
|
|
76
|
-
const getCurrentRange = (name: string, width = window.innerWidth): string => {
|
|
77
|
-
let rangeSet = mediaRanges.get(name);
|
|
78
|
-
|
|
79
|
-
if (!rangeSet) {
|
|
80
|
-
rangeSet = mediaRanges.get(RANGESETS.RANGE_4STEPS)!;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
let currentRangeName;
|
|
84
|
-
const effectiveWidth = Math.floor(width);
|
|
85
|
-
|
|
86
|
-
rangeSet.forEach((value, key) => {
|
|
87
|
-
if (effectiveWidth >= value[0] && effectiveWidth <= value[1]) {
|
|
88
|
-
currentRangeName = key;
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
return currentRangeName || [...rangeSet.keys()][0];
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* API for screen width changes.
|
|
97
|
-
*
|
|
98
|
-
* @namespace
|
|
99
|
-
* @name MediaRange
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
const MediaRange = {
|
|
103
|
-
RANGESETS,
|
|
104
|
-
initRangeSet,
|
|
105
|
-
getCurrentRange,
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
MediaRange.initRangeSet(MediaRange.RANGESETS.RANGE_4STEPS, DEAFULT_RANGE_SET);
|
|
109
|
-
|
|
110
|
-
export default MediaRange;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
const flatstr = typeof window.chrome === "object" || typeof window.v8 === "object" ? (s: string, iConcatOps: number) => {
|
|
2
|
-
if (iConcatOps > 2 && 40 * iConcatOps > s.length) {
|
|
3
|
-
Number(s);
|
|
4
|
-
}
|
|
5
|
-
return s;
|
|
6
|
-
} : (s: string) => s;
|
|
7
|
-
|
|
8
|
-
const rLines = /(?:\r\n|\r|\n|^)[ \t\f]*/;
|
|
9
|
-
const rEscapesOrSeparator = /(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)|([ \t\f]*[ \t\f:=][ \t\f]*)/g;
|
|
10
|
-
const rEscapes = /(\\u[0-9a-fA-F]{0,4})|(\\.)|(\\$)/g;
|
|
11
|
-
const mEscapes = {
|
|
12
|
-
"\\f": "\f",
|
|
13
|
-
"\\n": "\n",
|
|
14
|
-
"\\r": "\r",
|
|
15
|
-
"\\t": "\t",
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Parses a .properties format
|
|
20
|
-
* @param {string} sText the contents a of a .properties file
|
|
21
|
-
* @returns a object with key/value pairs parsed from the .properties file format
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
const parseProperties = (sText: string) => {
|
|
25
|
-
const properties = {},
|
|
26
|
-
aLines = sText.split(rLines);
|
|
27
|
-
|
|
28
|
-
let sLine,
|
|
29
|
-
rMatcher,
|
|
30
|
-
sKey,
|
|
31
|
-
sValue: string,
|
|
32
|
-
i,
|
|
33
|
-
m,
|
|
34
|
-
iLastIndex,
|
|
35
|
-
iConcatOps: number;
|
|
36
|
-
|
|
37
|
-
const append = (s: string) => {
|
|
38
|
-
if (sValue) {
|
|
39
|
-
sValue = `${sValue}${s}`;
|
|
40
|
-
iConcatOps++;
|
|
41
|
-
} else {
|
|
42
|
-
sValue = s;
|
|
43
|
-
iConcatOps = 0;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
for (i = 0; i < aLines.length; i++) {
|
|
48
|
-
sLine = aLines[i];
|
|
49
|
-
const skipLine = sLine === "" || sLine.charAt(0) === "#" || sLine.charAt(0) === "!";
|
|
50
|
-
|
|
51
|
-
if (!skipLine) {
|
|
52
|
-
rMatcher = rEscapesOrSeparator;
|
|
53
|
-
iLastIndex = 0;
|
|
54
|
-
rMatcher.lastIndex = iLastIndex;
|
|
55
|
-
sKey = null;
|
|
56
|
-
sValue = "";
|
|
57
|
-
m = rMatcher.exec(sLine);
|
|
58
|
-
while (m !== null) {
|
|
59
|
-
if (iLastIndex < m.index) {
|
|
60
|
-
append(sLine.slice(iLastIndex, m.index));
|
|
61
|
-
}
|
|
62
|
-
iLastIndex = rMatcher.lastIndex;
|
|
63
|
-
if (m[1]) {
|
|
64
|
-
if (m[1].length !== 6) {
|
|
65
|
-
throw new Error(`Incomplete Unicode Escape '${m[1]}'`);
|
|
66
|
-
}
|
|
67
|
-
append(String.fromCharCode(parseInt(m[1].slice(2), 16)));
|
|
68
|
-
} else if (m[2]) {
|
|
69
|
-
append(mEscapes[m[2] as keyof typeof mEscapes] || m[2].slice(1));
|
|
70
|
-
} else if (m[3]) {
|
|
71
|
-
sLine = aLines[++i];
|
|
72
|
-
iLastIndex = 0;
|
|
73
|
-
rMatcher.lastIndex = iLastIndex;
|
|
74
|
-
} else if (m[4]) {
|
|
75
|
-
sKey = sValue;
|
|
76
|
-
sValue = "";
|
|
77
|
-
rMatcher = rEscapes;
|
|
78
|
-
rMatcher.lastIndex = iLastIndex;
|
|
79
|
-
}
|
|
80
|
-
m = rMatcher.exec(sLine);
|
|
81
|
-
}
|
|
82
|
-
if (iLastIndex < sLine.length) {
|
|
83
|
-
append(sLine.slice(iLastIndex));
|
|
84
|
-
}
|
|
85
|
-
if (sKey == null) {
|
|
86
|
-
sKey = sValue;
|
|
87
|
-
sValue = "";
|
|
88
|
-
}
|
|
89
|
-
(properties as Record<string, any>)[sKey] = flatstr(sValue, sValue ? iConcatOps! : 0);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return properties;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export default parseProperties;
|
package/src/Render.ts
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import EventProvider from "./EventProvider.js";
|
|
2
|
-
import RenderQueue from "./RenderQueue.js";
|
|
3
|
-
import { getAllRegisteredTags } from "./CustomElementsRegistry.js";
|
|
4
|
-
import { isRtlAware } from "./locale/RTLAwareRegistry.js";
|
|
5
|
-
import type UI5Element from "./UI5Element.js";
|
|
6
|
-
import { PromiseResolve, Timeout } from "./types.js";
|
|
7
|
-
|
|
8
|
-
type BeforeComponentRenderCallback = (webComponent: UI5Element) => void;
|
|
9
|
-
|
|
10
|
-
const registeredElements = new Set<UI5Element>();
|
|
11
|
-
const eventProvider = new EventProvider<UI5Element, void>();
|
|
12
|
-
|
|
13
|
-
const invalidatedWebComponents = new RenderQueue(); // Queue for invalidated web components
|
|
14
|
-
|
|
15
|
-
let renderTaskPromise: Promise<void> | undefined,
|
|
16
|
-
renderTaskPromiseResolve: PromiseResolve | undefined;
|
|
17
|
-
|
|
18
|
-
let mutationObserverTimer: Timeout | undefined;
|
|
19
|
-
|
|
20
|
-
let queuePromise: Promise<void> | null;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Schedules a render task (if not already scheduled) to render the component
|
|
24
|
-
*
|
|
25
|
-
* @param webComponent
|
|
26
|
-
* @returns {Promise}
|
|
27
|
-
*/
|
|
28
|
-
const renderDeferred = async (webComponent: UI5Element) => {
|
|
29
|
-
// Enqueue the web component
|
|
30
|
-
invalidatedWebComponents.add(webComponent);
|
|
31
|
-
|
|
32
|
-
// Schedule a rendering task
|
|
33
|
-
await scheduleRenderTask();
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Renders a component synchronously and adds it to the registry of rendered components
|
|
38
|
-
*
|
|
39
|
-
* @param webComponent
|
|
40
|
-
*/
|
|
41
|
-
const renderImmediately = (webComponent: UI5Element) => {
|
|
42
|
-
eventProvider.fireEvent("beforeComponentRender", webComponent);
|
|
43
|
-
registeredElements.add(webComponent);
|
|
44
|
-
webComponent._render();
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Cancels the rendering of a component, if awaiting to be rendered, and removes it from the registry of rendered components
|
|
49
|
-
*
|
|
50
|
-
* @param webComponent
|
|
51
|
-
*/
|
|
52
|
-
const cancelRender = (webComponent: UI5Element) => {
|
|
53
|
-
invalidatedWebComponents.remove(webComponent);
|
|
54
|
-
registeredElements.delete(webComponent);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Schedules a rendering task, if not scheduled already
|
|
59
|
-
*/
|
|
60
|
-
const scheduleRenderTask = async () => {
|
|
61
|
-
if (!queuePromise) {
|
|
62
|
-
queuePromise = new Promise<void>(resolve => {
|
|
63
|
-
window.requestAnimationFrame(() => {
|
|
64
|
-
// Render all components in the queue
|
|
65
|
-
|
|
66
|
-
// console.log(`--------------------RENDER TASK START------------------------------`); // eslint-disable-line
|
|
67
|
-
invalidatedWebComponents.process(renderImmediately);
|
|
68
|
-
// console.log(`--------------------RENDER TASK END------------------------------`); // eslint-disable-line
|
|
69
|
-
|
|
70
|
-
// Resolve the promise so that callers of renderDeferred can continue
|
|
71
|
-
queuePromise = null;
|
|
72
|
-
resolve();
|
|
73
|
-
|
|
74
|
-
// Wait for Mutation observer before the render task is considered finished
|
|
75
|
-
if (!mutationObserverTimer) {
|
|
76
|
-
mutationObserverTimer = setTimeout(() => {
|
|
77
|
-
mutationObserverTimer = undefined;
|
|
78
|
-
if (invalidatedWebComponents.isEmpty()) {
|
|
79
|
-
_resolveTaskPromise();
|
|
80
|
-
}
|
|
81
|
-
}, 200);
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
await queuePromise;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* return a promise that will be resolved once all invalidated web components are rendered
|
|
92
|
-
*/
|
|
93
|
-
const whenDOMUpdated = () => {
|
|
94
|
-
if (renderTaskPromise) {
|
|
95
|
-
return renderTaskPromise;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
renderTaskPromise = new Promise<void>(resolve => {
|
|
99
|
-
renderTaskPromiseResolve = resolve;
|
|
100
|
-
window.requestAnimationFrame(() => {
|
|
101
|
-
if (invalidatedWebComponents.isEmpty()) {
|
|
102
|
-
renderTaskPromise = undefined;
|
|
103
|
-
resolve();
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
return renderTaskPromise;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
const whenAllCustomElementsAreDefined = () => {
|
|
112
|
-
const definedPromises = getAllRegisteredTags().map(tag => customElements.whenDefined(tag));
|
|
113
|
-
return Promise.all(definedPromises);
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
const renderFinished = async () => {
|
|
117
|
-
await whenAllCustomElementsAreDefined();
|
|
118
|
-
await whenDOMUpdated();
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
const _resolveTaskPromise = () => {
|
|
122
|
-
if (!invalidatedWebComponents.isEmpty()) {
|
|
123
|
-
// More updates are pending. Resolve will be called again
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
if (renderTaskPromiseResolve) {
|
|
128
|
-
renderTaskPromiseResolve();
|
|
129
|
-
renderTaskPromiseResolve = undefined;
|
|
130
|
-
renderTaskPromise = undefined;
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Re-renders all UI5 Elements on the page, with the option to specify filters to rerender only some components.
|
|
136
|
-
*
|
|
137
|
-
* Usage:
|
|
138
|
-
* reRenderAllUI5Elements() -> re-renders all components
|
|
139
|
-
* reRenderAllUI5Elements({tag: "ui5-button"}) -> re-renders only instances of ui5-button
|
|
140
|
-
* reRenderAllUI5Elements({rtlAware: true}) -> re-renders only rtlAware components
|
|
141
|
-
* reRenderAllUI5Elements({languageAware: true}) -> re-renders only languageAware components
|
|
142
|
-
* reRenderAllUI5Elements({themeAware: true}) -> re-renders only themeAware components
|
|
143
|
-
* reRenderAllUI5Elements({rtlAware: true, languageAware: true}) -> re-renders components that are rtlAware or languageAware
|
|
144
|
-
* etc...
|
|
145
|
-
*
|
|
146
|
-
* @public
|
|
147
|
-
* @param {object|undefined} filters - Object with keys that can be "rtlAware" or "languageAware"
|
|
148
|
-
* @returns {Promise<void>}
|
|
149
|
-
*/
|
|
150
|
-
const reRenderAllUI5Elements = async (filters?: {tag?: string, rtlAware?: boolean, languageAware?: boolean, themeAware?: boolean}) => {
|
|
151
|
-
registeredElements.forEach((element: UI5Element) => {
|
|
152
|
-
const ctor = element.constructor as typeof UI5Element;
|
|
153
|
-
const tag = ctor.getMetadata().getTag();
|
|
154
|
-
const rtlAware = isRtlAware(ctor);
|
|
155
|
-
const languageAware = ctor.getMetadata().isLanguageAware();
|
|
156
|
-
const themeAware = ctor.getMetadata().isThemeAware();
|
|
157
|
-
if (!filters || (filters.tag === tag) || (filters.rtlAware && rtlAware) || (filters.languageAware && languageAware) || (filters.themeAware && themeAware)) {
|
|
158
|
-
renderDeferred(element);
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
await renderFinished();
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
const attachBeforeComponentRender = (listener: BeforeComponentRenderCallback) => {
|
|
165
|
-
eventProvider.attachEvent("beforeComponentRender", listener);
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
const detachBeforeComponentRender = (listener: BeforeComponentRenderCallback) => {
|
|
169
|
-
eventProvider.detachEvent("beforeComponentRender", listener);
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
export {
|
|
173
|
-
renderDeferred,
|
|
174
|
-
renderImmediately,
|
|
175
|
-
cancelRender,
|
|
176
|
-
renderFinished,
|
|
177
|
-
reRenderAllUI5Elements,
|
|
178
|
-
attachBeforeComponentRender,
|
|
179
|
-
detachBeforeComponentRender,
|
|
180
|
-
};
|
package/src/RenderQueue.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import type UI5Element from "./UI5Element.js";
|
|
2
|
-
|
|
3
|
-
const MAX_PROCESS_COUNT = 10;
|
|
4
|
-
|
|
5
|
-
class RenderQueue {
|
|
6
|
-
list: Array<UI5Element>;
|
|
7
|
-
lookup: Set<UI5Element>;
|
|
8
|
-
|
|
9
|
-
constructor() {
|
|
10
|
-
this.list = []; // Used to store the web components in order
|
|
11
|
-
this.lookup = new Set(); // Used for faster search
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
add(webComponent: UI5Element) {
|
|
15
|
-
if (this.lookup.has(webComponent)) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
this.list.push(webComponent);
|
|
20
|
-
this.lookup.add(webComponent);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
remove(webComponent: UI5Element) {
|
|
24
|
-
if (!this.lookup.has(webComponent)) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
this.list = this.list.filter(item => item !== webComponent);
|
|
29
|
-
this.lookup.delete(webComponent);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
shift() {
|
|
33
|
-
const webComponent = this.list.shift();
|
|
34
|
-
if (webComponent) {
|
|
35
|
-
this.lookup.delete(webComponent);
|
|
36
|
-
return webComponent;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
isEmpty() {
|
|
41
|
-
return this.list.length === 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
isAdded(webComponent: UI5Element) {
|
|
45
|
-
return this.lookup.has(webComponent);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Processes the whole queue by executing the callback on each component,
|
|
50
|
-
* while also imposing restrictions on how many times a component may be processed.
|
|
51
|
-
*
|
|
52
|
-
* @param callback - function with one argument (the web component to be processed)
|
|
53
|
-
*/
|
|
54
|
-
process(callback: (el: UI5Element) => void) {
|
|
55
|
-
let webComponent;
|
|
56
|
-
const stats = new Map<UI5Element, number>();
|
|
57
|
-
|
|
58
|
-
webComponent = this.shift();
|
|
59
|
-
while (webComponent) {
|
|
60
|
-
const timesProcessed = stats.get(webComponent) || 0;
|
|
61
|
-
if (timesProcessed > MAX_PROCESS_COUNT) {
|
|
62
|
-
throw new Error(`Web component processed too many times this task, max allowed is: ${MAX_PROCESS_COUNT}`);
|
|
63
|
-
}
|
|
64
|
-
callback(webComponent);
|
|
65
|
-
stats.set(webComponent, timesProcessed + 1);
|
|
66
|
-
webComponent = this.shift();
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export default RenderQueue;
|
package/src/Runtimes.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import VersionInfo from "./generated/VersionInfo.js";
|
|
2
|
-
import getSharedResource from "./getSharedResource.js";
|
|
3
|
-
|
|
4
|
-
type RuntimeData = VersionInfo & {
|
|
5
|
-
alias: string,
|
|
6
|
-
description: string,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
let currentRuntimeIndex: number;
|
|
10
|
-
let currentRuntimeAlias = "";
|
|
11
|
-
|
|
12
|
-
const compareCache = new Map<string, number>();
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Central registry where all runtimes register themselves by pushing an object.
|
|
16
|
-
* The index in the registry servers as an ID for the runtime.
|
|
17
|
-
* @type {*}
|
|
18
|
-
*/
|
|
19
|
-
const Runtimes = getSharedResource<Array<RuntimeData>>("Runtimes", []);
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Registers the current runtime in the shared runtimes resource registry
|
|
23
|
-
*/
|
|
24
|
-
const registerCurrentRuntime = () => {
|
|
25
|
-
if (currentRuntimeIndex === undefined) {
|
|
26
|
-
currentRuntimeIndex = Runtimes.length;
|
|
27
|
-
const versionInfo = VersionInfo;
|
|
28
|
-
|
|
29
|
-
Runtimes.push({
|
|
30
|
-
...versionInfo,
|
|
31
|
-
alias: currentRuntimeAlias,
|
|
32
|
-
description: `Runtime ${currentRuntimeIndex} - ver ${versionInfo.version}${currentRuntimeAlias ? ` (${currentRuntimeAlias})` : ""}`,
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Returns the index of the current runtime's object in the shared runtimes resource registry
|
|
39
|
-
* @returns {*}
|
|
40
|
-
*/
|
|
41
|
-
const getCurrentRuntimeIndex = () => {
|
|
42
|
-
return currentRuntimeIndex;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Compares two runtimes and returns 1 if the first is of a bigger version, -1 if the second is of a bigger version, and 0 if equal
|
|
47
|
-
* @param index1 The index of the first runtime to compare
|
|
48
|
-
* @param index2 The index of the second runtime to compare
|
|
49
|
-
* @returns {number}
|
|
50
|
-
*/
|
|
51
|
-
const compareRuntimes = (index1: number, index2: number) => {
|
|
52
|
-
const cacheIndex = `${index1},${index2}`;
|
|
53
|
-
if (compareCache.has(cacheIndex)) {
|
|
54
|
-
return compareCache.get(cacheIndex)!;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const runtime1 = Runtimes[index1];
|
|
58
|
-
const runtime2 = Runtimes[index2];
|
|
59
|
-
|
|
60
|
-
if (!runtime1 || !runtime2) {
|
|
61
|
-
throw new Error("Invalid runtime index supplied");
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// If any of the two is a next version, bigger buildTime wins
|
|
65
|
-
if (runtime1.isNext || runtime2.isNext) {
|
|
66
|
-
return runtime1.buildTime - runtime2.buildTime;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// If major versions differ, bigger one wins
|
|
70
|
-
const majorDiff = runtime1.major - runtime2.major;
|
|
71
|
-
if (majorDiff) {
|
|
72
|
-
return majorDiff;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// If minor versions differ, bigger one wins
|
|
76
|
-
const minorDiff = runtime1.minor - runtime2.minor;
|
|
77
|
-
if (minorDiff) {
|
|
78
|
-
return minorDiff;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
// If patch versions differ, bigger one wins
|
|
82
|
-
const patchDiff = runtime1.patch - runtime2.patch;
|
|
83
|
-
if (patchDiff) {
|
|
84
|
-
return patchDiff;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// Bigger suffix wins, f.e. rc10 > rc9
|
|
88
|
-
// Important: suffix is alphanumeric, must use natural compare
|
|
89
|
-
const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: "base" });
|
|
90
|
-
const result = collator.compare(runtime1.suffix, runtime2.suffix);
|
|
91
|
-
|
|
92
|
-
compareCache.set(cacheIndex, result);
|
|
93
|
-
return result;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Set an alias for the the current app/library/microfrontend which will appear in debug messages and console warnings
|
|
98
|
-
* @param alias
|
|
99
|
-
*/
|
|
100
|
-
const setRuntimeAlias = (alias: string) => {
|
|
101
|
-
currentRuntimeAlias = alias;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
const getAllRuntimes = () => {
|
|
105
|
-
return Runtimes;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export {
|
|
109
|
-
getCurrentRuntimeIndex,
|
|
110
|
-
registerCurrentRuntime,
|
|
111
|
-
compareRuntimes,
|
|
112
|
-
setRuntimeAlias,
|
|
113
|
-
getAllRuntimes,
|
|
114
|
-
};
|
package/src/StaticArea.ts
DELETED
package/src/StaticAreaItem.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import "./StaticArea.js";
|
|
2
|
-
import updateShadowRoot from "./updateShadowRoot.js";
|
|
3
|
-
import { renderFinished } from "./Render.js";
|
|
4
|
-
import getEffectiveContentDensity from "./util/getEffectiveContentDensity.js";
|
|
5
|
-
import { getEffectiveScopingSuffixForTag } from "./CustomElementsScopeUtils.js";
|
|
6
|
-
import getEffectiveDir from "./locale/getEffectiveDir.js";
|
|
7
|
-
import type UI5Element from "./UI5Element.js";
|
|
8
|
-
|
|
9
|
-
const pureTagName = "ui5-static-area-item";
|
|
10
|
-
const popupIntegrationAttr = "data-sap-ui-integration-popup-content";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @class
|
|
15
|
-
* @author SAP SE
|
|
16
|
-
* @private
|
|
17
|
-
*/
|
|
18
|
-
class StaticAreaItem extends HTMLElement {
|
|
19
|
-
_rendered: boolean;
|
|
20
|
-
ownerElement?: UI5Element;
|
|
21
|
-
|
|
22
|
-
constructor() {
|
|
23
|
-
super();
|
|
24
|
-
this._rendered = false;
|
|
25
|
-
this.attachShadow({ mode: "open" });
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @param {UI5Element} ownerElement the UI5Element instance that owns this static area item
|
|
30
|
-
*/
|
|
31
|
-
setOwnerElement(ownerElement: UI5Element) {
|
|
32
|
-
this.ownerElement = ownerElement;
|
|
33
|
-
this.classList.add(this.ownerElement._id); // used for getting the popover in the tests
|
|
34
|
-
if (this.ownerElement.hasAttribute("data-ui5-static-stable")) {
|
|
35
|
-
this.setAttribute("data-ui5-stable", this.ownerElement.getAttribute("data-ui5-static-stable")!); // stable selector
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Updates the shadow root of the static area item with the latest state, if rendered
|
|
41
|
-
*/
|
|
42
|
-
update() {
|
|
43
|
-
if (this._rendered) {
|
|
44
|
-
this._updateAdditionalAttrs();
|
|
45
|
-
this._updateContentDensity();
|
|
46
|
-
this._updateDirection();
|
|
47
|
-
updateShadowRoot(this.ownerElement!, true);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Sets the correct content density based on the owner element's state
|
|
53
|
-
* @private
|
|
54
|
-
*/
|
|
55
|
-
_updateContentDensity() {
|
|
56
|
-
if (getEffectiveContentDensity(this.ownerElement!) === "compact") {
|
|
57
|
-
this.classList.add("sapUiSizeCompact");
|
|
58
|
-
this.classList.add("ui5-content-density-compact");
|
|
59
|
-
} else {
|
|
60
|
-
this.classList.remove("sapUiSizeCompact");
|
|
61
|
-
this.classList.remove("ui5-content-density-compact");
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
_updateDirection() {
|
|
66
|
-
if (this.ownerElement) {
|
|
67
|
-
const dir = getEffectiveDir(this.ownerElement);
|
|
68
|
-
if (dir) {
|
|
69
|
-
this.setAttribute("dir", dir);
|
|
70
|
-
} else {
|
|
71
|
-
this.removeAttribute("dir");
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
_updateAdditionalAttrs() {
|
|
77
|
-
this.setAttribute(pureTagName, "");
|
|
78
|
-
this.setAttribute(popupIntegrationAttr, "");
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @protected
|
|
83
|
-
* Returns reference to the DOM element where the current fragment is added.
|
|
84
|
-
*/
|
|
85
|
-
async getDomRef() {
|
|
86
|
-
this._updateContentDensity();
|
|
87
|
-
if (!this._rendered) {
|
|
88
|
-
this._rendered = true;
|
|
89
|
-
updateShadowRoot(this.ownerElement!, true);
|
|
90
|
-
}
|
|
91
|
-
await renderFinished(); // Wait for the content of the ui5-static-area-item to be rendered
|
|
92
|
-
return this.shadowRoot;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
static getTag() {
|
|
96
|
-
const suffix = getEffectiveScopingSuffixForTag(pureTagName);
|
|
97
|
-
if (!suffix) {
|
|
98
|
-
return pureTagName;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return `${pureTagName}-${suffix}`;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
static createInstance() {
|
|
105
|
-
if (!customElements.get(StaticAreaItem.getTag())) {
|
|
106
|
-
customElements.define(StaticAreaItem.getTag(), StaticAreaItem);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return document.createElement(this.getTag()) as StaticAreaItem;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export default StaticAreaItem;
|
package/src/SystemCSSVars.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { hasStyle, createStyle } from "./ManagedStyles.js";
|
|
2
|
-
import systemCSSVars from "./generated/css/SystemCSSVars.css.js";
|
|
3
|
-
|
|
4
|
-
const insertSystemCSSVars = () => {
|
|
5
|
-
if (!hasStyle("data-ui5-system-css-vars")) {
|
|
6
|
-
createStyle(systemCSSVars, "data-ui5-system-css-vars");
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default insertSystemCSSVars;
|
package/src/Theming.ts
DELETED