@ui5/webcomponents-base 2.0.0-rc.3 → 2.0.0-rc.5
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 +32 -0
- package/README.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/Boot.js +1 -1
- package/dist/Boot.js.map +1 -1
- package/dist/Keys.d.ts +2 -1
- package/dist/Keys.js +2 -1
- package/dist/Keys.js.map +1 -1
- package/dist/UI5Element.d.ts +9 -1
- package/dist/UI5Element.js +73 -12
- package/dist/UI5Element.js.map +1 -1
- package/dist/UI5ElementMetadata.d.ts +5 -0
- package/dist/UI5ElementMetadata.js +6 -0
- package/dist/UI5ElementMetadata.js.map +1 -1
- package/dist/config/AnimationMode.js +2 -1
- package/dist/config/AnimationMode.js.map +1 -1
- package/dist/custom-elements-internal.json +6 -15
- package/dist/custom-elements.json +6 -15
- package/dist/decorators/customElement.d.ts +1 -0
- package/dist/decorators/customElement.js +5 -2
- package/dist/decorators/customElement.js.map +1 -1
- package/dist/features/InputElementsFormSupport.d.ts +18 -0
- package/dist/features/InputElementsFormSupport.js +40 -0
- package/dist/features/InputElementsFormSupport.js.map +1 -0
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/prod/AssetRegistry.js +2 -0
- package/dist/prod/AssetRegistry.js.map +7 -0
- package/dist/prod/Boot.js +2 -0
- package/dist/prod/Boot.js.map +7 -0
- package/dist/prod/CustomElementsRegistry.js +10 -0
- package/dist/prod/CustomElementsRegistry.js.map +7 -0
- package/dist/prod/CustomElementsScope.js +2 -0
- package/dist/prod/CustomElementsScope.js.map +7 -0
- package/dist/prod/CustomElementsScopeUtils.js +2 -0
- package/dist/prod/CustomElementsScopeUtils.js.map +7 -0
- package/dist/prod/DOMObserver.js +2 -0
- package/dist/prod/DOMObserver.js.map +7 -0
- package/dist/prod/Device.js +2 -0
- package/dist/prod/Device.js.map +7 -0
- package/dist/prod/EventProvider.js +2 -0
- package/dist/prod/EventProvider.js.map +7 -0
- package/dist/prod/FeaturesRegistry.js +2 -0
- package/dist/prod/FeaturesRegistry.js.map +7 -0
- package/dist/prod/FontFace.js +2 -0
- package/dist/prod/FontFace.js.map +7 -0
- package/dist/prod/IgnoreCustomElements.js +2 -0
- package/dist/prod/IgnoreCustomElements.js.map +7 -0
- package/dist/prod/InitialConfiguration.js +2 -0
- package/dist/prod/InitialConfiguration.js.map +7 -0
- package/dist/prod/Keys.js +2 -0
- package/dist/prod/Keys.js.map +7 -0
- package/dist/prod/ManagedStyles.js +2 -0
- package/dist/prod/ManagedStyles.js.map +7 -0
- package/dist/prod/MarkedEvents.js +2 -0
- package/dist/prod/MarkedEvents.js.map +7 -0
- package/dist/prod/MediaRange.js +2 -0
- package/dist/prod/MediaRange.js.map +7 -0
- package/dist/prod/PropertiesFileFormat.js +3 -0
- package/dist/prod/PropertiesFileFormat.js.map +7 -0
- package/dist/prod/Render.js +2 -0
- package/dist/prod/Render.js.map +7 -0
- package/dist/prod/RenderQueue.js +2 -0
- package/dist/prod/RenderQueue.js.map +7 -0
- package/dist/prod/Runtimes.js +2 -0
- package/dist/prod/Runtimes.js.map +7 -0
- package/dist/prod/SystemCSSVars.js +2 -0
- package/dist/prod/SystemCSSVars.js.map +7 -0
- package/dist/prod/Theming.js +2 -0
- package/dist/prod/Theming.js.map +7 -0
- package/dist/prod/UI5Element.js +2 -0
- package/dist/prod/UI5Element.js.map +7 -0
- package/dist/prod/UI5ElementMetadata.js +2 -0
- package/dist/prod/UI5ElementMetadata.js.map +7 -0
- package/dist/prod/animations/AnimationQueue.js +2 -0
- package/dist/prod/animations/AnimationQueue.js.map +7 -0
- package/dist/prod/animations/animate.js +2 -0
- package/dist/prod/animations/animate.js.map +7 -0
- package/dist/prod/animations/scroll.js +2 -0
- package/dist/prod/animations/scroll.js.map +7 -0
- package/dist/prod/animations/slideDown.js +2 -0
- package/dist/prod/animations/slideDown.js.map +7 -0
- package/dist/prod/animations/slideUp.js +2 -0
- package/dist/prod/animations/slideUp.js.map +7 -0
- package/dist/prod/asset-registries/Icons.js +2 -0
- package/dist/prod/asset-registries/Icons.js.map +7 -0
- package/dist/prod/asset-registries/Illustrations.js +2 -0
- package/dist/prod/asset-registries/Illustrations.js.map +7 -0
- package/dist/prod/asset-registries/LocaleData.js +2 -0
- package/dist/prod/asset-registries/LocaleData.js.map +7 -0
- package/dist/prod/asset-registries/Themes.js +2 -0
- package/dist/prod/asset-registries/Themes.js.map +7 -0
- package/dist/prod/asset-registries/i18n.js +2 -0
- package/dist/prod/asset-registries/i18n.js.map +7 -0
- package/dist/prod/asset-registries/util/IconCollectionsAlias.js +2 -0
- package/dist/prod/asset-registries/util/IconCollectionsAlias.js.map +7 -0
- package/dist/prod/asset-registries/util/IconCollectionsByTheme.js +2 -0
- package/dist/prod/asset-registries/util/IconCollectionsByTheme.js.map +7 -0
- package/dist/prod/asset-registries/util/getIconCollectionByTheme.js +2 -0
- package/dist/prod/asset-registries/util/getIconCollectionByTheme.js.map +7 -0
- package/dist/prod/config/AnimationMode.js +2 -0
- package/dist/prod/config/AnimationMode.js.map +7 -0
- package/dist/prod/config/CalendarType.js +2 -0
- package/dist/prod/config/CalendarType.js.map +7 -0
- package/dist/prod/config/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/connectToComponent.js +2 -0
- package/dist/prod/connectToComponent.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.js +2 -0
- package/dist/prod/decorators/event.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/slot.js +2 -0
- package/dist/prod/decorators/slot.js.map +7 -0
- package/dist/prod/decorators.js +2 -0
- package/dist/prod/decorators.js.map +7 -0
- package/dist/prod/delegate/ItemNavigation.js +2 -0
- package/dist/prod/delegate/ItemNavigation.js.map +7 -0
- package/dist/prod/delegate/ResizeHandler.js +2 -0
- package/dist/prod/delegate/ResizeHandler.js.map +7 -0
- package/dist/prod/delegate/ScrollEnablement.js +2 -0
- package/dist/prod/delegate/ScrollEnablement.js.map +7 -0
- package/dist/prod/features/F6Navigation.js +2 -0
- package/dist/prod/features/F6Navigation.js.map +7 -0
- package/dist/prod/features/InputElementsFormSupport.js +2 -0
- package/dist/prod/features/InputElementsFormSupport.js.map +7 -0
- package/dist/prod/features/LegacyDateFormats.js +2 -0
- package/dist/prod/features/LegacyDateFormats.js.map +7 -0
- package/dist/prod/features/OpenUI5Element.js +2 -0
- package/dist/prod/features/OpenUI5Element.js.map +7 -0
- package/dist/prod/features/OpenUI5Enablement.js +21 -0
- package/dist/prod/features/OpenUI5Enablement.js.map +7 -0
- package/dist/prod/features/OpenUI5Support.js +2 -0
- package/dist/prod/features/OpenUI5Support.js.map +7 -0
- package/dist/prod/features/patchPatcher.js +2 -0
- package/dist/prod/features/patchPatcher.js.map +7 -0
- package/dist/prod/features/patchPopup.js +2 -0
- package/dist/prod/features/patchPopup.js.map +7 -0
- package/dist/prod/generated/AssetParameters.js +2 -0
- package/dist/prod/generated/AssetParameters.js.map +7 -0
- package/dist/prod/generated/VersionInfo.js +2 -0
- package/dist/prod/generated/VersionInfo.js.map +7 -0
- package/dist/prod/generated/css/BusyIndicator.css.js +2 -0
- package/dist/prod/generated/css/BusyIndicator.css.js.map +7 -0
- package/dist/prod/generated/css/FontFace.css.js +2 -0
- package/dist/prod/generated/css/FontFace.css.js.map +7 -0
- package/dist/prod/generated/css/OverrideFontFace.css.js +2 -0
- package/dist/prod/generated/css/OverrideFontFace.css.js.map +7 -0
- package/dist/prod/generated/css/SystemCSSVars.css.js +2 -0
- package/dist/prod/generated/css/SystemCSSVars.css.js.map +7 -0
- package/dist/prod/generated/templates/elements/WithComplexTemplateTemplate.lit.js +2 -0
- package/dist/prod/generated/templates/elements/WithComplexTemplateTemplate.lit.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/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/LitRenderer.js +2 -0
- package/dist/prod/renderer/LitRenderer.js.map +7 -0
- package/dist/prod/renderer/directives/style-map.js +6 -0
- package/dist/prod/renderer/directives/style-map.js.map +7 -0
- package/dist/prod/renderer/executeTemplate.js +2 -0
- package/dist/prod/renderer/executeTemplate.js.map +7 -0
- package/dist/prod/sap/base/Log.js +750 -0
- package/dist/prod/sap/base/assert.js +34 -0
- package/dist/prod/sap/base/config/MemoryConfigurationProvider.js +20 -0
- package/dist/prod/sap/base/security/URLListValidator.js +406 -0
- package/dist/prod/sap/base/security/encodeCSS.js +40 -0
- package/dist/prod/sap/base/security/encodeXML.js +53 -0
- package/dist/prod/sap/base/security/sanitizeHTML.js +38 -0
- package/dist/prod/sap/base/strings/toHex.js +33 -0
- package/dist/prod/sap/base/util/now.js +28 -0
- package/dist/prod/sap/base/util/uid.js +27 -0
- package/dist/prod/sap/ui/thirdparty/caja-html-sanitizer.js +3600 -0
- package/dist/prod/ssr-dom-shim.js +2 -0
- package/dist/prod/ssr-dom-shim.js.map +7 -0
- package/dist/prod/ssr-dom.js +2 -0
- package/dist/prod/ssr-dom.js.map +7 -0
- package/dist/prod/theming/CustomStyle.js +2 -0
- package/dist/prod/theming/CustomStyle.js.map +7 -0
- package/dist/prod/theming/ThemeLoaded.js +2 -0
- package/dist/prod/theming/ThemeLoaded.js.map +7 -0
- package/dist/prod/theming/ThemeRegistered.js +2 -0
- package/dist/prod/theming/ThemeRegistered.js.map +7 -0
- package/dist/prod/theming/applyTheme.js +2 -0
- package/dist/prod/theming/applyTheme.js.map +7 -0
- package/dist/prod/theming/getConstructableStyle.js +2 -0
- package/dist/prod/theming/getConstructableStyle.js.map +7 -0
- package/dist/prod/theming/getEffectiveStyle.js +2 -0
- package/dist/prod/theming/getEffectiveStyle.js.map +7 -0
- package/dist/prod/theming/getStylesString.js +2 -0
- package/dist/prod/theming/getStylesString.js.map +7 -0
- package/dist/prod/theming/getThemeDesignerTheme.js +2 -0
- package/dist/prod/theming/getThemeDesignerTheme.js.map +7 -0
- package/dist/prod/thirdparty/_merge.js +2 -0
- package/dist/prod/thirdparty/_merge.js.map +7 -0
- package/dist/prod/thirdparty/isPlainObject.js +2 -0
- package/dist/prod/thirdparty/isPlainObject.js.map +7 -0
- package/dist/prod/thirdparty/merge.js +2 -0
- package/dist/prod/thirdparty/merge.js.map +7 -0
- package/dist/prod/types/AnimationMode.js +2 -0
- package/dist/prod/types/AnimationMode.js.map +7 -0
- package/dist/prod/types/AriaHasPopup.js +2 -0
- package/dist/prod/types/AriaHasPopup.js.map +7 -0
- package/dist/prod/types/AriaLandmarkRole.js +2 -0
- package/dist/prod/types/AriaLandmarkRole.js.map +7 -0
- package/dist/prod/types/AriaRole.js +2 -0
- package/dist/prod/types/AriaRole.js.map +7 -0
- package/dist/prod/types/CSSColor.js +2 -0
- package/dist/prod/types/CSSColor.js.map +7 -0
- package/dist/prod/types/CSSSize.js +2 -0
- package/dist/prod/types/CSSSize.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/DOMReference.js +2 -0
- package/dist/prod/types/DOMReference.js.map +7 -0
- package/dist/prod/types/DataType.js +2 -0
- package/dist/prod/types/DataType.js.map +7 -0
- package/dist/prod/types/Float.js +2 -0
- package/dist/prod/types/Float.js.map +7 -0
- package/dist/prod/types/Integer.js +2 -0
- package/dist/prod/types/Integer.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/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/AriaLabelHelper.js +2 -0
- package/dist/prod/util/AriaLabelHelper.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/SlotsHelper.js +2 -0
- package/dist/prod/util/SlotsHelper.js.map +7 -0
- package/dist/prod/util/StringHelper.js +2 -0
- package/dist/prod/util/StringHelper.js.map +7 -0
- package/dist/prod/util/TabbableElements.js +2 -0
- package/dist/prod/util/TabbableElements.js.map +7 -0
- package/dist/prod/util/arraysAreEqual.js +2 -0
- package/dist/prod/util/arraysAreEqual.js.map +7 -0
- package/dist/prod/util/clamp.js +2 -0
- package/dist/prod/util/clamp.js.map +7 -0
- package/dist/prod/util/createLinkInHead.js +2 -0
- package/dist/prod/util/createLinkInHead.js.map +7 -0
- package/dist/prod/util/debounce.js +2 -0
- package/dist/prod/util/debounce.js.map +7 -0
- package/dist/prod/util/detectNavigatorLanguage.js +2 -0
- package/dist/prod/util/detectNavigatorLanguage.js.map +7 -0
- package/dist/prod/util/dragAndDrop/DragRegistry.js +2 -0
- package/dist/prod/util/dragAndDrop/DragRegistry.js.map +7 -0
- package/dist/prod/util/dragAndDrop/findClosestPosition.js +2 -0
- package/dist/prod/util/dragAndDrop/findClosestPosition.js.map +7 -0
- package/dist/prod/util/dragAndDrop/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/formatMessage.js +2 -0
- package/dist/prod/util/formatMessage.js.map +7 -0
- package/dist/prod/util/generateHighlightedMarkup.js +2 -0
- package/dist/prod/util/generateHighlightedMarkup.js.map +7 -0
- package/dist/prod/util/getActiveElement.js +2 -0
- package/dist/prod/util/getActiveElement.js.map +7 -0
- package/dist/prod/util/getClassCopy.js +2 -0
- package/dist/prod/util/getClassCopy.js.map +7 -0
- package/dist/prod/util/getDesigntimePropertyAsArray.js +2 -0
- package/dist/prod/util/getDesigntimePropertyAsArray.js.map +7 -0
- package/dist/prod/util/getEffectiveContentDensity.js +2 -0
- package/dist/prod/util/getEffectiveContentDensity.js.map +7 -0
- package/dist/prod/util/getEffectiveScrollbarStyle.js +2 -0
- package/dist/prod/util/getEffectiveScrollbarStyle.js.map +7 -0
- package/dist/prod/util/getFastNavigationGroups.js +2 -0
- package/dist/prod/util/getFastNavigationGroups.js.map +7 -0
- package/dist/prod/util/getFileExtension.js +2 -0
- package/dist/prod/util/getFileExtension.js.map +7 -0
- package/dist/prod/util/getNormalizedTarget.js +2 -0
- package/dist/prod/util/getNormalizedTarget.js.map +7 -0
- package/dist/prod/util/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/isElementClickable.js +2 -0
- package/dist/prod/util/isElementClickable.js.map +7 -0
- package/dist/prod/util/isElementContainingBlock.js +2 -0
- package/dist/prod/util/isElementContainingBlock.js.map +7 -0
- package/dist/prod/util/isElementHidden.js +2 -0
- package/dist/prod/util/isElementHidden.js.map +7 -0
- package/dist/prod/util/isElementInView.js +2 -0
- package/dist/prod/util/isElementInView.js.map +7 -0
- package/dist/prod/util/isElementTabbable.js +2 -0
- package/dist/prod/util/isElementTabbable.js.map +7 -0
- package/dist/prod/util/isValidPropertyName.js +2 -0
- package/dist/prod/util/isValidPropertyName.js.map +7 -0
- package/dist/prod/util/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/executeTemplate.d.ts +8 -0
- package/dist/renderer/executeTemplate.js +1 -0
- package/dist/renderer/executeTemplate.js.map +1 -1
- package/dist/util/InvisibleMessage.js +2 -2
- package/dist/util/InvisibleMessage.js.map +1 -1
- package/dist/util/getClassCopy.d.ts +9 -1
- package/package-scripts.cjs +5 -0
- package/package.json +11 -5
- package/dist/StaticArea.d.ts +0 -3
- package/dist/StaticArea.js +0 -7
- package/dist/StaticArea.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import{HTMLElement as l,Element as s,customElements as o}from"@lit-labs/ssr-dom-shim";globalThis.HTMLElement??=l,globalThis.Element??=s,globalThis.customElements??=o;class t{}globalThis.Node??=t;class i{}globalThis.FileList??=i;
|
|
2
|
+
//# sourceMappingURL=ssr-dom-shim.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/ssr-dom-shim.ts"],
|
|
4
|
+
"sourcesContent": ["/* eslint-disable max-classes-per-file */\nimport { HTMLElement, Element, customElements } from \"@lit-labs/ssr-dom-shim\";\n\nglobalThis.HTMLElement ??= HTMLElement;\nglobalThis.Element ??= Element;\nglobalThis.customElements ??= customElements;\n\nclass NodeShim {}\nglobalThis.Node ??= NodeShim as object as typeof Node;\n\nclass FileListShim {}\nglobalThis.FileList ??= FileListShim as object as typeof FileList;\n"],
|
|
5
|
+
"mappings": "aACA,OAAS,eAAAA,EAAa,WAAAC,EAAS,kBAAAC,MAAsB,yBAErD,WAAW,cAAgBF,EAC3B,WAAW,UAAYC,EACvB,WAAW,iBAAmBC,EAE9B,MAAMC,CAAS,CAAC,CAChB,WAAW,OAASA,EAEpB,MAAMC,CAAa,CAAC,CACpB,WAAW,WAAaA",
|
|
6
|
+
"names": ["HTMLElement", "Element", "customElements", "NodeShim", "FileListShim"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import{reRenderAllUI5Elements as C}from"../Render.js";import S from"../getSharedResource.js";import m from"../EventProvider.js";const r=()=>S("CustomStyle.eventProvider",new m),n="CustomCSSChange",i=t=>{r().attachEvent(n,t)},a=t=>{r().detachEvent(n,t)},u=t=>r().fireEvent(n,t),c=()=>S("CustomStyle.customCSSFor",{});let s;i(t=>{s||C({tag:t})});const g=(t,e)=>{const o=c();o[t]||(o[t]=[]),o[t].push(e),s=!0;try{u(t)}finally{s=!1}return C({tag:t})},l=t=>{const e=c();return e[t]?e[t].join(""):""};export{g as addCustomCSS,l as getCustomCSS,i as attachCustomCSSChange,a as detachCustomCSSChange};
|
|
2
|
+
//# sourceMappingURL=CustomStyle.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/theming/CustomStyle.ts"],
|
|
4
|
+
"sourcesContent": ["import { reRenderAllUI5Elements } from \"../Render.js\";\nimport getSharedResource from \"../getSharedResource.js\";\nimport EventProvider from \"../EventProvider.js\";\n\ntype CustomCSSChangeCallback = (tag: string) => void;\n\nconst getEventProvider = () => getSharedResource(\"CustomStyle.eventProvider\", new EventProvider<string, void>());\nconst CUSTOM_CSS_CHANGE = \"CustomCSSChange\";\n\nconst attachCustomCSSChange = (listener: CustomCSSChangeCallback) => {\n\tgetEventProvider().attachEvent(CUSTOM_CSS_CHANGE, listener);\n};\n\nconst detachCustomCSSChange = (listener: CustomCSSChangeCallback) => {\n\tgetEventProvider().detachEvent(CUSTOM_CSS_CHANGE, listener);\n};\n\nconst fireCustomCSSChange = (tag: string) => {\n\treturn getEventProvider().fireEvent(CUSTOM_CSS_CHANGE, tag);\n};\n\nconst getCustomCSSFor = () => getSharedResource<Record<string, Array<string>>>(\"CustomStyle.customCSSFor\", {});\n\n// Listen to the eventProvider, in case other copies of this CustomStyle module fire this\n// event, and this copy would therefore need to reRender the ui5 webcomponents; but\n// don't reRender if it was this copy that fired the event to begin with.\nlet skipRerender: boolean;\nattachCustomCSSChange((tag: string) => {\n\tif (!skipRerender) {\n\t\treRenderAllUI5Elements({ tag });\n\t}\n});\n\nconst addCustomCSS = (tag: string, css: string) => {\n\tconst customCSSFor = getCustomCSSFor();\n\tif (!customCSSFor[tag]) {\n\t\tcustomCSSFor[tag] = [];\n\t}\n\tcustomCSSFor[tag].push(css);\n\n\tskipRerender = true;\n\ttry {\n\t\t// The event is fired and the attached event listeners are all called synchronously\n\t\t// The skipRerender flag will be used to avoid calling reRenderAllUI5Elements twice when it is this copy\n\t\t// of CustomStyle.js which is firing the `CustomCSSChange` event.\n\t\tfireCustomCSSChange(tag);\n\t} finally {\n\t\tskipRerender = false;\n\t}\n\n\treturn reRenderAllUI5Elements({ tag });\n};\n\nconst getCustomCSS = (tag: string) => {\n\tconst customCSSFor = getCustomCSSFor();\n\treturn customCSSFor[tag] ? customCSSFor[tag].join(\"\") : \"\";\n};\n\nexport {\n\taddCustomCSS,\n\tgetCustomCSS,\n\tattachCustomCSSChange,\n\tdetachCustomCSSChange,\n};\n"],
|
|
5
|
+
"mappings": "aAAA,OAAS,0BAAAA,MAA8B,eACvC,OAAOC,MAAuB,0BAC9B,OAAOC,MAAmB,sBAI1B,MAAMC,EAAmB,IAAMF,EAAkB,4BAA6B,IAAIC,CAA6B,EACzGE,EAAoB,kBAEpBC,EAAyBC,GAAsC,CACpEH,EAAiB,EAAE,YAAYC,EAAmBE,CAAQ,CAC3D,EAEMC,EAAyBD,GAAsC,CACpEH,EAAiB,EAAE,YAAYC,EAAmBE,CAAQ,CAC3D,EAEME,EAAuBC,GACrBN,EAAiB,EAAE,UAAUC,EAAmBK,CAAG,EAGrDC,EAAkB,IAAMT,EAAiD,2BAA4B,CAAC,CAAC,EAK7G,IAAIU,EACJN,EAAuBI,GAAgB,CACjCE,GACJX,EAAuB,CAAE,IAAAS,CAAI,CAAC,CAEhC,CAAC,EAED,MAAMG,EAAe,CAACH,EAAaI,IAAgB,CAClD,MAAMC,EAAeJ,EAAgB,EAChCI,EAAaL,CAAG,IACpBK,EAAaL,CAAG,EAAI,CAAC,GAEtBK,EAAaL,CAAG,EAAE,KAAKI,CAAG,EAE1BF,EAAe,GACf,GAAI,CAIHH,EAAoBC,CAAG,CACxB,QAAE,CACDE,EAAe,EAChB,CAEA,OAAOX,EAAuB,CAAE,IAAAS,CAAI,CAAC,CACtC,EAEMM,EAAgBN,GAAgB,CACrC,MAAMK,EAAeJ,EAAgB,EACrC,OAAOI,EAAaL,CAAG,EAAIK,EAAaL,CAAG,EAAE,KAAK,EAAE,EAAI,EACzD,EAEA,OACCG,KAAA,aACAG,KAAA,aACAV,KAAA,sBACAE,KAAA",
|
|
6
|
+
"names": ["reRenderAllUI5Elements", "getSharedResource", "EventProvider", "getEventProvider", "CUSTOM_CSS_CHANGE", "attachCustomCSSChange", "listener", "detachCustomCSSChange", "fireCustomCSSChange", "tag", "getCustomCSSFor", "skipRerender", "addCustomCSS", "css", "customCSSFor", "getCustomCSS"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/theming/ThemeLoaded.ts"],
|
|
4
|
+
"sourcesContent": ["import EventProvider from \"../EventProvider.js\";\n\ntype ThemeLoadedCallback = (theme: string) => void;\n\nconst eventProvider = new EventProvider<string, void>();\nconst THEME_LOADED = \"themeLoaded\";\n\nconst attachThemeLoaded = (listener: ThemeLoadedCallback) => {\n\teventProvider.attachEvent(THEME_LOADED, listener);\n};\n\nconst detachThemeLoaded = (listener: ThemeLoadedCallback) => {\n\teventProvider.detachEvent(THEME_LOADED, listener);\n};\n\nconst fireThemeLoaded = (theme: string) => {\n\treturn eventProvider.fireEvent(THEME_LOADED, theme);\n};\n\nexport {\n\tattachThemeLoaded,\n\tdetachThemeLoaded,\n\tfireThemeLoaded,\n};\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAmB,sBAI1B,MAAMC,EAAgB,IAAID,EACpBE,EAAe,cAEfC,EAAqBC,GAAkC,CAC5DH,EAAc,YAAYC,EAAcE,CAAQ,CACjD,EAEMC,EAAqBD,GAAkC,CAC5DH,EAAc,YAAYC,EAAcE,CAAQ,CACjD,EAEME,EAAmBC,GACjBN,EAAc,UAAUC,EAAcK,CAAK,EAGnD,OACCJ,KAAA,kBACAE,KAAA,kBACAC,KAAA",
|
|
6
|
+
"names": ["EventProvider", "eventProvider", "THEME_LOADED", "attachThemeLoaded", "listener", "detachThemeLoaded", "fireThemeLoaded", "theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/theming/ThemeRegistered.ts"],
|
|
4
|
+
"sourcesContent": ["import EventProvider from \"../EventProvider.js\";\n\ntype ThemeRegisteredCallback = (theme: string) => void;\n\nconst eventProvider = new EventProvider<string, void>();\nconst THEME_REGISTERED = \"themeRegistered\";\n\nconst attachThemeRegistered = (listener: ThemeRegisteredCallback) => {\n\teventProvider.attachEvent(THEME_REGISTERED, listener);\n};\n\nconst fireThemeRegistered = (theme: string) => {\n\treturn eventProvider.fireEvent(THEME_REGISTERED, theme);\n};\n\nexport {\n\tattachThemeRegistered,\n\tfireThemeRegistered,\n};\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAmB,sBAI1B,MAAMC,EAAgB,IAAID,EACpBE,EAAmB,kBAEnBC,EAAyBC,GAAsC,CACpEH,EAAc,YAAYC,EAAkBE,CAAQ,CACrD,EAEMC,EAAuBC,GACrBL,EAAc,UAAUC,EAAkBI,CAAK,EAGvD,OACCH,KAAA,sBACAE,KAAA",
|
|
6
|
+
"names": ["EventProvider", "eventProvider", "THEME_REGISTERED", "attachThemeRegistered", "listener", "fireThemeRegistered", "theme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import{getThemeProperties as n,getRegisteredPackages as m,isThemeRegistered as d}from"../asset-registries/Themes.js";import{removeStyle as g,createOrUpdateStyle as p}from"../ManagedStyles.js";import c from"./getThemeDesignerTheme.js";import{fireThemeLoaded as f}from"./ThemeLoaded.js";import{getFeature as u}from"../FeaturesRegistry.js";import{attachCustomThemeStylesToHead as T,getThemeRoot as h}from"../config/ThemeRoot.js";import{DEFAULT_THEME as l}from"../generated/AssetParameters.js";import{getCurrentRuntimeIndex as y}from"../Runtimes.js";const s="@ui5/webcomponents-theming",S=()=>m().has(s),P=async e=>{if(!S())return;const t=await n(s,e);t&&p(t,"data-ui5-theme-properties",s,e)},E=()=>{g("data-ui5-theme-properties",s)},U=async(e,t)=>{const o=[...m()].map(async a=>{if(a===s)return;const i=await n(a,e,t);i&&p(i,`data-ui5-component-properties-${y()}`,a)});return Promise.all(o)},w=async e=>{const t=c();if(t)return t;const r=u("OpenUI5Support");if(r&&r.isOpenUI5Detected()){if(r.cssVariablesLoaded())return{themeName:r.getConfigurationSettingsObject()?.theme,baseThemeName:""}}else if(h())return await T(e),c()},I=async e=>{const t=await w(e);!t||e!==t.themeName?await P(e):E();const r=d(e)?e:t&&t.baseThemeName;await U(r||l,t&&t.themeName===e?e:void 0),f(e)};export default I;
|
|
2
|
+
//# sourceMappingURL=applyTheme.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/theming/applyTheme.ts"],
|
|
4
|
+
"sourcesContent": ["import { getThemeProperties, getRegisteredPackages, isThemeRegistered } from \"../asset-registries/Themes.js\";\nimport { removeStyle, createOrUpdateStyle } from \"../ManagedStyles.js\";\nimport getThemeDesignerTheme from \"./getThemeDesignerTheme.js\";\nimport { fireThemeLoaded } from \"./ThemeLoaded.js\";\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport { attachCustomThemeStylesToHead, getThemeRoot } from \"../config/ThemeRoot.js\";\nimport type OpenUI5Support from \"../features/OpenUI5Support.js\";\nimport { DEFAULT_THEME } from \"../generated/AssetParameters.js\";\nimport { getCurrentRuntimeIndex } from \"../Runtimes.js\";\n\nconst BASE_THEME_PACKAGE = \"@ui5/webcomponents-theming\";\n\nconst isThemeBaseRegistered = () => {\n\tconst registeredPackages = getRegisteredPackages();\n\treturn registeredPackages.has(BASE_THEME_PACKAGE);\n};\n\nconst loadThemeBase = async (theme: string) => {\n\tif (!isThemeBaseRegistered()) {\n\t\treturn;\n\t}\n\n\tconst cssData = await getThemeProperties(BASE_THEME_PACKAGE, theme);\n\tif (cssData) {\n\t\tcreateOrUpdateStyle(cssData, \"data-ui5-theme-properties\", BASE_THEME_PACKAGE, theme);\n\t}\n};\n\nconst deleteThemeBase = () => {\n\tremoveStyle(\"data-ui5-theme-properties\", BASE_THEME_PACKAGE);\n};\n\nconst loadComponentPackages = async (theme: string, externalThemeName?: string) => {\n\tconst registeredPackages = getRegisteredPackages();\n\n\tconst packagesStylesPromises = [...registeredPackages].map(async packageName => {\n\t\tif (packageName === BASE_THEME_PACKAGE) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst cssData = await getThemeProperties(packageName, theme, externalThemeName);\n\t\tif (cssData) {\n\t\t\tcreateOrUpdateStyle(cssData, `data-ui5-component-properties-${getCurrentRuntimeIndex()}`, packageName);\n\t\t}\n\t});\n\n\treturn Promise.all(packagesStylesPromises);\n};\n\nconst detectExternalTheme = async (theme: string) => {\n\t// If theme designer theme is detected, use this\n\tconst extTheme = getThemeDesignerTheme();\n\tif (extTheme) {\n\t\treturn extTheme;\n\t}\n\n\t// If OpenUI5Support is enabled, try to find out if it loaded variables\n\tconst openUI5Support = getFeature<typeof OpenUI5Support>(\"OpenUI5Support\");\n\tif (openUI5Support && openUI5Support.isOpenUI5Detected()) {\n\t\tconst varsLoaded = openUI5Support.cssVariablesLoaded();\n\t\tif (varsLoaded) {\n\t\t\treturn {\n\t\t\t\tthemeName: openUI5Support.getConfigurationSettingsObject()?.theme, // just themeName\n\t\t\t\tbaseThemeName: \"\", // baseThemeName is only relevant for custom themes\n\t\t\t};\n\t\t}\n\t} else if (getThemeRoot()) {\n\t\tawait attachCustomThemeStylesToHead(theme);\n\n\t\treturn getThemeDesignerTheme();\n\t}\n};\n\nconst applyTheme = async (theme: string) => {\n\tconst extTheme = await detectExternalTheme(theme);\n\n\t// Only load theme_base properties if there is no externally loaded theme, or there is, but it is not being loaded\n\tif (!extTheme || theme !== extTheme.themeName) {\n\t\tawait loadThemeBase(theme);\n\t} else {\n\t\tdeleteThemeBase();\n\t}\n\n\t// Always load component packages properties. For non-registered themes, try with the base theme, if any\n\tconst packagesTheme = isThemeRegistered(theme) ? theme : extTheme && extTheme.baseThemeName;\n\tawait loadComponentPackages(packagesTheme || DEFAULT_THEME, extTheme && extTheme.themeName === theme ? theme : undefined);\n\n\tfireThemeLoaded(theme);\n};\n\nexport default applyTheme;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAS,sBAAAA,EAAoB,yBAAAC,EAAuB,qBAAAC,MAAyB,gCAC7E,OAAS,eAAAC,EAAa,uBAAAC,MAA2B,sBACjD,OAAOC,MAA2B,6BAClC,OAAS,mBAAAC,MAAuB,mBAChC,OAAS,cAAAC,MAAkB,yBAC3B,OAAS,iCAAAC,EAA+B,gBAAAC,MAAoB,yBAE5D,OAAS,iBAAAC,MAAqB,kCAC9B,OAAS,0BAAAC,MAA8B,iBAEvC,MAAMC,EAAqB,6BAErBC,EAAwB,IACFZ,EAAsB,EACvB,IAAIW,CAAkB,EAG3CE,EAAgB,MAAOC,GAAkB,CAC9C,GAAI,CAACF,EAAsB,EAC1B,OAGD,MAAMG,EAAU,MAAMhB,EAAmBY,EAAoBG,CAAK,EAC9DC,GACHZ,EAAoBY,EAAS,4BAA6BJ,EAAoBG,CAAK,CAErF,EAEME,EAAkB,IAAM,CAC7Bd,EAAY,4BAA6BS,CAAkB,CAC5D,EAEMM,EAAwB,MAAOH,EAAeI,IAA+B,CAGlF,MAAMC,EAAyB,CAAC,GAFLnB,EAAsB,CAEI,EAAE,IAAI,MAAMoB,GAAe,CAC/E,GAAIA,IAAgBT,EACnB,OAGD,MAAMI,EAAU,MAAMhB,EAAmBqB,EAAaN,EAAOI,CAAiB,EAC1EH,GACHZ,EAAoBY,EAAS,iCAAiCL,EAAuB,CAAC,GAAIU,CAAW,CAEvG,CAAC,EAED,OAAO,QAAQ,IAAID,CAAsB,CAC1C,EAEME,EAAsB,MAAOP,GAAkB,CAEpD,MAAMQ,EAAWlB,EAAsB,EACvC,GAAIkB,EACH,OAAOA,EAIR,MAAMC,EAAiBjB,EAAkC,gBAAgB,EACzE,GAAIiB,GAAkBA,EAAe,kBAAkB,GAEtD,GADmBA,EAAe,mBAAmB,EAEpD,MAAO,CACN,UAAWA,EAAe,+BAA+B,GAAG,MAC5D,cAAe,EAChB,UAESf,EAAa,EACvB,aAAMD,EAA8BO,CAAK,EAElCV,EAAsB,CAE/B,EAEMoB,EAAa,MAAOV,GAAkB,CAC3C,MAAMQ,EAAW,MAAMD,EAAoBP,CAAK,EAG5C,CAACQ,GAAYR,IAAUQ,EAAS,UACnC,MAAMT,EAAcC,CAAK,EAEzBE,EAAgB,EAIjB,MAAMS,EAAgBxB,EAAkBa,CAAK,EAAIA,EAAQQ,GAAYA,EAAS,cAC9E,MAAML,EAAsBQ,GAAiBhB,EAAea,GAAYA,EAAS,YAAcR,EAAQA,EAAQ,MAAS,EAExHT,EAAgBS,CAAK,CACtB,EAEA,eAAeU",
|
|
6
|
+
"names": ["getThemeProperties", "getRegisteredPackages", "isThemeRegistered", "removeStyle", "createOrUpdateStyle", "getThemeDesignerTheme", "fireThemeLoaded", "getFeature", "attachCustomThemeStylesToHead", "getThemeRoot", "DEFAULT_THEME", "getCurrentRuntimeIndex", "BASE_THEME_PACKAGE", "isThemeBaseRegistered", "loadThemeBase", "theme", "cssData", "deleteThemeBase", "loadComponentPackages", "externalThemeName", "packagesStylesPromises", "packageName", "detectExternalTheme", "extTheme", "openUI5Support", "applyTheme", "packagesTheme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import r from"./getEffectiveStyle.js";import{attachCustomCSSChange as l}from"./CustomStyle.js";const e=new Map;l(t=>{e.delete(`${t}_normal`)});const S=t=>{const n=`${t.getMetadata().getTag()}_normal`;if(!e.has(n)){const a=r(t),o=new CSSStyleSheet;o.replaceSync(a),e.set(n,[o])}return e.get(n)};export default S;
|
|
2
|
+
//# sourceMappingURL=getConstructableStyle.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/theming/getConstructableStyle.ts"],
|
|
4
|
+
"sourcesContent": ["import getEffectiveStyle from \"./getEffectiveStyle.js\";\nimport { attachCustomCSSChange } from \"./CustomStyle.js\";\nimport UI5Element from \"../UI5Element.js\";\n\nconst constructableStyleMap = new Map<string, Array<CSSStyleSheet>>();\n\nattachCustomCSSChange((tag: string) => {\n\tconstructableStyleMap.delete(`${tag}_normal`); // there is custom CSS only for the component itself, not for its static area part\n});\n\n/**\n * Returns (and caches) a constructable style sheet for a web component class\n * Note: Chrome\n * @param ElementClass\n * @returns {*}\n */\nconst getConstructableStyle = (ElementClass: typeof UI5Element) => {\n\tconst tag = ElementClass.getMetadata().getTag();\n\tconst key = `${tag}_normal`;\n\n\tif (!constructableStyleMap.has(key)) {\n\t\tconst styleContent = getEffectiveStyle(ElementClass);\n\t\tconst style = new CSSStyleSheet();\n\t\tstyle.replaceSync(styleContent);\n\t\tconstructableStyleMap.set(key, [style]);\n\t}\n\n\treturn constructableStyleMap.get(key)!;\n};\n\nexport default getConstructableStyle;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAuB,yBAC9B,OAAS,yBAAAC,MAA6B,mBAGtC,MAAMC,EAAwB,IAAI,IAElCD,EAAuBE,GAAgB,CACtCD,EAAsB,OAAO,GAAGC,CAAG,SAAS,CAC7C,CAAC,EAQD,MAAMC,EAAyBC,GAAoC,CAElE,MAAMC,EAAM,GADAD,EAAa,YAAY,EAAE,OAAO,CAC5B,UAElB,GAAI,CAACH,EAAsB,IAAII,CAAG,EAAG,CACpC,MAAMC,EAAeP,EAAkBK,CAAY,EAC7CG,EAAQ,IAAI,cAClBA,EAAM,YAAYD,CAAY,EAC9BL,EAAsB,IAAII,EAAK,CAACE,CAAK,CAAC,CACvC,CAEA,OAAON,EAAsB,IAAII,CAAG,CACrC,EAEA,eAAeF",
|
|
6
|
+
"names": ["getEffectiveStyle", "attachCustomCSSChange", "constructableStyleMap", "tag", "getConstructableStyle", "ElementClass", "key", "styleContent", "style"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import{getCustomCSS as i,attachCustomCSSChange as f}from"./CustomStyle.js";import r from"./getStylesString.js";import{getFeature as y}from"../FeaturesRegistry.js";const e=new Map;f(t=>{e.delete(`${t}_normal`)});const c=t=>{const o=t.getMetadata().getTag(),n=`${o}_normal`,s=y("OpenUI5Enablement");if(!e.has(n)){let l="";s&&(l=r(s.getBusyIndicatorStyles()));const m=i(o)||"",a=`${r(t.styles)} ${m} ${l}`;e.set(n,a)}return e.get(n)};export default c;
|
|
2
|
+
//# sourceMappingURL=getEffectiveStyle.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/theming/getEffectiveStyle.ts"],
|
|
4
|
+
"sourcesContent": ["import { getCustomCSS, attachCustomCSSChange } from \"./CustomStyle.js\";\nimport getStylesString from \"./getStylesString.js\";\nimport { getFeature } from \"../FeaturesRegistry.js\";\nimport type UI5Element from \"../UI5Element.js\";\nimport OpenUI5Enablement from \"../features/OpenUI5Enablement.js\";\n\nconst effectiveStyleMap = new Map<string, string>();\n\nattachCustomCSSChange((tag: string) => {\n\teffectiveStyleMap.delete(`${tag}_normal`); // there is custom CSS only for the component itself, not for its static area part\n});\n\nconst getEffectiveStyle = (ElementClass: typeof UI5Element) => {\n\tconst tag = ElementClass.getMetadata().getTag();\n\tconst key = `${tag}_normal`;\n\tconst openUI5Enablement = getFeature<typeof OpenUI5Enablement>(\"OpenUI5Enablement\");\n\n\tif (!effectiveStyleMap.has(key)) {\n\t\tlet busyIndicatorStyles = \"\";\n\n\t\tif (openUI5Enablement) {\n\t\t\tbusyIndicatorStyles = getStylesString(openUI5Enablement.getBusyIndicatorStyles());\n\t\t}\n\n\t\tconst customStyle = getCustomCSS(tag) || \"\";\n\t\tconst builtInStyles = getStylesString(ElementClass.styles);\n\n\t\tconst effectiveStyle = `${builtInStyles} ${customStyle} ${busyIndicatorStyles}`;\n\t\teffectiveStyleMap.set(key, effectiveStyle);\n\t}\n\n\treturn effectiveStyleMap.get(key)!; // The key is guaranteed to exist\n};\n\nexport default getEffectiveStyle;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAS,gBAAAA,EAAc,yBAAAC,MAA6B,mBACpD,OAAOC,MAAqB,uBAC5B,OAAS,cAAAC,MAAkB,yBAI3B,MAAMC,EAAoB,IAAI,IAE9BH,EAAuBI,GAAgB,CACtCD,EAAkB,OAAO,GAAGC,CAAG,SAAS,CACzC,CAAC,EAED,MAAMC,EAAqBC,GAAoC,CAC9D,MAAMF,EAAME,EAAa,YAAY,EAAE,OAAO,EACxCC,EAAM,GAAGH,CAAG,UACZI,EAAoBN,EAAqC,mBAAmB,EAElF,GAAI,CAACC,EAAkB,IAAII,CAAG,EAAG,CAChC,IAAIE,EAAsB,GAEtBD,IACHC,EAAsBR,EAAgBO,EAAkB,uBAAuB,CAAC,GAGjF,MAAME,EAAcX,EAAaK,CAAG,GAAK,GAGnCO,EAAiB,GAFDV,EAAgBK,EAAa,MAAM,CAElB,IAAII,CAAW,IAAID,CAAmB,GAC7EN,EAAkB,IAAII,EAAKI,CAAc,CAC1C,CAEA,OAAOR,EAAkB,IAAII,CAAG,CACjC,EAEA,eAAeF",
|
|
6
|
+
"names": ["getCustomCSS", "attachCustomCSSChange", "getStylesString", "getFeature", "effectiveStyleMap", "tag", "getEffectiveStyle", "ElementClass", "key", "openUI5Enablement", "busyIndicatorStyles", "customStyle", "effectiveStyle"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/theming/getStylesString.ts"],
|
|
4
|
+
"sourcesContent": ["import type { ComponentStylesData, StyleData } from \"../types.js\";\n\nconst MAX_DEPTH_INHERITED_CLASSES = 10; // TypeScript complains about Infinity and big numbers\n\nconst getStylesString = (styles: ComponentStylesData) => {\n\tif (Array.isArray(styles)) {\n\t\treturn (styles.filter(style => !!style).flat(MAX_DEPTH_INHERITED_CLASSES) as Array<StyleData>).map((style: StyleData) => {\n\t\t\treturn typeof style === \"string\" ? style : style.content;\n\t\t}).join(\" \");\n\t}\n\n\treturn typeof styles === \"string\" ? styles : styles.content;\n};\n\nexport default getStylesString;\n"],
|
|
5
|
+
"mappings": "aAEA,MAAMA,EAA8B,GAE9BC,EAAmBC,GACpB,MAAM,QAAQA,CAAM,EACfA,EAAO,OAAOC,GAAS,CAAC,CAACA,CAAK,EAAE,KAAK,EAA2B,EAAuB,IAAKA,GAC5F,OAAOA,GAAU,SAAWA,EAAQA,EAAM,OACjD,EAAE,KAAK,GAAG,EAGL,OAAOD,GAAW,SAAWA,EAASA,EAAO,QAGrD,eAAeD",
|
|
6
|
+
"names": ["MAX_DEPTH_INHERITED_CLASSES", "getStylesString", "styles", "style"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const r=new Set,s=()=>{let e=document.querySelector(".sapThemeMetaData-Base-baseLib")||document.querySelector(".sapThemeMetaData-UI5-sap-ui-core");if(e)return getComputedStyle(e).backgroundImage;e=document.createElement("span"),e.style.display="none",e.classList.add("sapThemeMetaData-Base-baseLib"),document.body.appendChild(e);let t=getComputedStyle(e).backgroundImage;return t==="none"&&(e.classList.add("sapThemeMetaData-UI5-sap-ui-core"),t=getComputedStyle(e).backgroundImage),document.body.removeChild(e),t},o=e=>{const t=/\(["']?data:text\/plain;utf-8,(.*?)['"]?\)$/i.exec(e);if(t&&t.length>=2){let a=t[1];if(a=a.replace(/\\"/g,'"'),a.charAt(0)!=="{"&&a.charAt(a.length-1)!=="}")try{a=decodeURIComponent(a)}catch{r.has("decode")||(console.warn("Malformed theme metadata string, unable to decodeURIComponent"),r.add("decode"));return}try{return JSON.parse(a)}catch{r.has("parse")||(console.warn("Malformed theme metadata string, unable to parse JSON"),r.add("parse"))}}},d=e=>{let t,a;try{t=e.Path.match(/\.([^.]+)\.css_variables$/)[1],a=e.Extends[0]}catch{r.has("object")||(console.warn("Malformed theme metadata Object",e),r.add("object"));return}return{themeName:t,baseThemeName:a}},m=()=>{const e=s();if(!e||e==="none")return;const t=o(e);if(t)return d(t)};export default m;
|
|
2
|
+
//# sourceMappingURL=getThemeDesignerTheme.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/theming/getThemeDesignerTheme.ts"],
|
|
4
|
+
"sourcesContent": ["type ThemeDescriptor = {\n\tthemeName: string,\n\tbaseThemeName?: string,\n};\n\ntype ThemeMetadata = {\n\tPath: string,\n\tExtends: Array<string>,\n};\n\nconst warnings = new Set<string>();\n\nconst getThemeMetadata = () => {\n\t// Check if the class was already applied, most commonly to the link/style tag with the CSS Variables\n\tlet el = document.querySelector(\".sapThemeMetaData-Base-baseLib\") || document.querySelector(\".sapThemeMetaData-UI5-sap-ui-core\");\n\tif (el) {\n\t\treturn getComputedStyle(el).backgroundImage;\n\t}\n\n\tel = document.createElement(\"span\");\n\t(el as HTMLSpanElement).style.display = \"none\";\n\n\t// Try with sapThemeMetaData-Base-baseLib first\n\tel.classList.add(\"sapThemeMetaData-Base-baseLib\");\n\tdocument.body.appendChild(el);\n\tlet metadata = getComputedStyle(el).backgroundImage;\n\n\t// Try with sapThemeMetaData-UI5-sap-ui-core only if the previous selector was not found\n\tif (metadata === \"none\") {\n\t\tel.classList.add(\"sapThemeMetaData-UI5-sap-ui-core\");\n\t\tmetadata = getComputedStyle(el).backgroundImage;\n\t}\n\n\tdocument.body.removeChild(el);\n\n\treturn metadata;\n};\n\nconst parseThemeMetadata = (metadataString: string) => {\n\tconst params = /\\([\"']?data:text\\/plain;utf-8,(.*?)['\"]?\\)$/i.exec(metadataString);\n\tif (params && params.length >= 2) {\n\t\tlet paramsString = params[1];\n\t\tparamsString = paramsString.replace(/\\\\\"/g, `\"`);\n\t\tif (paramsString.charAt(0) !== \"{\" && paramsString.charAt(paramsString.length - 1) !== \"}\") {\n\t\t\ttry {\n\t\t\t\tparamsString = decodeURIComponent(paramsString);\n\t\t\t} catch (ex) {\n\t\t\t\tif (!warnings.has(\"decode\")) {\n\t\t\t\t\tconsole.warn(\"Malformed theme metadata string, unable to decodeURIComponent\"); // eslint-disable-line\n\t\t\t\t\twarnings.add(\"decode\");\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\treturn JSON.parse(paramsString) as ThemeMetadata;\n\t\t} catch (ex) {\n\t\t\tif (!warnings.has(\"parse\")) {\n\t\t\t\tconsole.warn(\"Malformed theme metadata string, unable to parse JSON\"); // eslint-disable-line\n\t\t\t\twarnings.add(\"parse\");\n\t\t\t}\n\t\t}\n\t}\n};\n\nconst processThemeMetadata = (metadata: ThemeMetadata): ThemeDescriptor | undefined => {\n\tlet themeName;\n\tlet baseThemeName;\n\n\ttry {\n\t\tthemeName = metadata.Path.match(/\\.([^.]+)\\.css_variables$/)![1];\n\t\tbaseThemeName = metadata.Extends[0];\n\t} catch (ex) {\n\t\tif (!warnings.has(\"object\")) {\n\t\t\tconsole.warn(\"Malformed theme metadata Object\", metadata); // eslint-disable-line\n\t\t\twarnings.add(\"object\");\n\t\t}\n\t\treturn;\n\t}\n\n\treturn {\n\t\tthemeName,\n\t\tbaseThemeName,\n\t};\n};\n\nconst getThemeDesignerTheme = (): ThemeDescriptor | undefined => {\n\tconst metadataString = getThemeMetadata();\n\tif (!metadataString || metadataString === \"none\") {\n\t\treturn;\n\t}\n\n\tconst metadata = parseThemeMetadata(metadataString);\n\n\tif (metadata) {\n\t\treturn processThemeMetadata(metadata);\n\t}\n};\n\nexport default getThemeDesignerTheme;\nexport type { ThemeDescriptor };\n"],
|
|
5
|
+
"mappings": "aAUA,MAAMA,EAAW,IAAI,IAEfC,EAAmB,IAAM,CAE9B,IAAIC,EAAK,SAAS,cAAc,gCAAgC,GAAK,SAAS,cAAc,mCAAmC,EAC/H,GAAIA,EACH,OAAO,iBAAiBA,CAAE,EAAE,gBAG7BA,EAAK,SAAS,cAAc,MAAM,EACjCA,EAAuB,MAAM,QAAU,OAGxCA,EAAG,UAAU,IAAI,+BAA+B,EAChD,SAAS,KAAK,YAAYA,CAAE,EAC5B,IAAIC,EAAW,iBAAiBD,CAAE,EAAE,gBAGpC,OAAIC,IAAa,SAChBD,EAAG,UAAU,IAAI,kCAAkC,EACnDC,EAAW,iBAAiBD,CAAE,EAAE,iBAGjC,SAAS,KAAK,YAAYA,CAAE,EAErBC,CACR,EAEMC,EAAsBC,GAA2B,CACtD,MAAMC,EAAS,+CAA+C,KAAKD,CAAc,EACjF,GAAIC,GAAUA,EAAO,QAAU,EAAG,CACjC,IAAIC,EAAeD,EAAO,CAAC,EAE3B,GADAC,EAAeA,EAAa,QAAQ,OAAQ,GAAG,EAC3CA,EAAa,OAAO,CAAC,IAAM,KAAOA,EAAa,OAAOA,EAAa,OAAS,CAAC,IAAM,IACtF,GAAI,CACHA,EAAe,mBAAmBA,CAAY,CAC/C,MAAa,CACPP,EAAS,IAAI,QAAQ,IACzB,QAAQ,KAAK,+DAA+D,EAC5EA,EAAS,IAAI,QAAQ,GAEtB,MACD,CAED,GAAI,CACH,OAAO,KAAK,MAAMO,CAAY,CAC/B,MAAa,CACPP,EAAS,IAAI,OAAO,IACxB,QAAQ,KAAK,uDAAuD,EACpEA,EAAS,IAAI,OAAO,EAEtB,CACD,CACD,EAEMQ,EAAwBL,GAAyD,CACtF,IAAIM,EACAC,EAEJ,GAAI,CACHD,EAAYN,EAAS,KAAK,MAAM,2BAA2B,EAAG,CAAC,EAC/DO,EAAgBP,EAAS,QAAQ,CAAC,CACnC,MAAa,CACPH,EAAS,IAAI,QAAQ,IACzB,QAAQ,KAAK,kCAAmCG,CAAQ,EACxDH,EAAS,IAAI,QAAQ,GAEtB,MACD,CAEA,MAAO,CACN,UAAAS,EACA,cAAAC,CACD,CACD,EAEMC,EAAwB,IAAmC,CAChE,MAAMN,EAAiBJ,EAAiB,EACxC,GAAI,CAACI,GAAkBA,IAAmB,OACzC,OAGD,MAAMF,EAAWC,EAAmBC,CAAc,EAElD,GAAIF,EACH,OAAOK,EAAqBL,CAAQ,CAEtC,EAEA,eAAeQ",
|
|
6
|
+
"names": ["warnings", "getThemeMetadata", "el", "metadata", "parseThemeMetadata", "metadataString", "params", "paramsString", "processThemeMetadata", "themeName", "baseThemeName", "getThemeDesignerTheme"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import g from"./isPlainObject.js";var c=Object.create(null),u=function(p,m,A,d){var n,t,e,a,o,i,r=arguments[2]||{},f=3,l=arguments.length,s=arguments[0]||!1,y=arguments[1]?void 0:c;for(typeof r!="object"&&typeof r!="function"&&(r={});f<l;f++)if((o=arguments[f])!=null)for(a in o)n=r[a],e=o[a],!(a==="__proto__"||r===e)&&(s&&e&&(g(e)||(t=Array.isArray(e)))?(t?(t=!1,i=n&&Array.isArray(n)?n:[]):i=n&&g(n)?n:{},r[a]=u(s,arguments[1],i,e)):e!==y&&(r[a]=e));return r};export default u;
|
|
2
|
+
//# sourceMappingURL=_merge.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/thirdparty/_merge.ts"],
|
|
4
|
+
"sourcesContent": ["import isPlainObject from './isPlainObject.js';\nvar oToken = Object.create(null);\nvar fnMerge = function (arg1?: any, arg2?: any, arg3?: any, arg4?: any) {\n var src, copyIsArray, copy, name, options, clone, target = arguments[2] || {}, i = 3, length = arguments.length, deep = arguments[0] || false, skipToken = arguments[1] ? undefined : oToken;\n if (typeof target !== 'object' && typeof target !== 'function') {\n target = {};\n }\n for (; i < length; i++) {\n if ((options = arguments[i]) != null) {\n for (name in options) {\n src = target[name];\n copy = options[name];\n if (name === '__proto__' || target === copy) {\n continue;\n }\n if (deep && copy && (isPlainObject(copy) || (copyIsArray = Array.isArray(copy)))) {\n if (copyIsArray) {\n copyIsArray = false;\n clone = src && Array.isArray(src) ? src : [];\n } else {\n clone = src && isPlainObject(src) ? src : {};\n }\n target[name] = fnMerge(deep, arguments[1], clone, copy);\n } else if (copy !== skipToken) {\n target[name] = copy;\n }\n }\n }\n }\n return target;\n};\nexport default fnMerge;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAmB,qBAC1B,IAAIC,EAAS,OAAO,OAAO,IAAI,EAC3BC,EAAU,SAAUC,EAAYC,EAAYC,EAAYC,EAAY,CACpE,IAAIC,EAAKC,EAAaC,EAAMC,EAAMC,EAASC,EAAOC,EAAS,UAAU,CAAC,GAAK,CAAC,EAAGC,EAAI,EAAGC,EAAS,UAAU,OAAQC,EAAO,UAAU,CAAC,GAAK,GAAOC,EAAY,UAAU,CAAC,EAAI,OAAYhB,EAItL,IAHI,OAAOY,GAAW,UAAY,OAAOA,GAAW,aAChDA,EAAS,CAAC,GAEPC,EAAIC,EAAQD,IACf,IAAKH,EAAU,UAAUG,CAAC,IAAM,KAC5B,IAAKJ,KAAQC,EACTJ,EAAMM,EAAOH,CAAI,EACjBD,EAAOE,EAAQD,CAAI,EACf,EAAAA,IAAS,aAAeG,IAAWJ,KAGnCO,GAAQP,IAAST,EAAcS,CAAI,IAAMD,EAAc,MAAM,QAAQC,CAAI,KACrED,GACAA,EAAc,GACdI,EAAQL,GAAO,MAAM,QAAQA,CAAG,EAAIA,EAAM,CAAC,GAE3CK,EAAQL,GAAOP,EAAcO,CAAG,EAAIA,EAAM,CAAC,EAE/CM,EAAOH,CAAI,EAAIR,EAAQc,EAAM,UAAU,CAAC,EAAGJ,EAAOH,CAAI,GAC/CA,IAASQ,IAChBJ,EAAOH,CAAI,EAAID,IAK/B,OAAOI,CACX,EACA,eAAeX",
|
|
6
|
+
"names": ["isPlainObject", "oToken", "fnMerge", "arg1", "arg2", "arg3", "arg4", "src", "copyIsArray", "copy", "name", "options", "clone", "target", "i", "length", "deep", "skipToken"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var c={},e=c.hasOwnProperty,a=c.toString,o=e.toString,l=o.call(Object),i=function(r){var t,n;return!r||a.call(r)!=="[object Object]"?!1:(t=Object.getPrototypeOf(r),t?(n=e.call(t,"constructor")&&t.constructor,typeof n=="function"&&o.call(n)===l):!0)};export default i;
|
|
2
|
+
//# sourceMappingURL=isPlainObject.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/thirdparty/isPlainObject.ts"],
|
|
4
|
+
"sourcesContent": ["var class2type = {};\nvar hasOwn = class2type.hasOwnProperty;\nvar toString = class2type.toString;\nvar fnToString = hasOwn.toString;\nvar ObjectFunctionString = fnToString.call(Object);\nvar fnIsPlainObject = function (obj: object) {\n var proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = hasOwn.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && fnToString.call(Ctor) === ObjectFunctionString;\n};\nexport default fnIsPlainObject;\n"],
|
|
5
|
+
"mappings": "aAAA,IAAIA,EAAa,CAAC,EACdC,EAASD,EAAW,eACpBE,EAAWF,EAAW,SACtBG,EAAaF,EAAO,SACpBG,EAAuBD,EAAW,KAAK,MAAM,EAC7CE,EAAkB,SAAUC,EAAa,CAC3C,IAAIC,EAAOC,EACX,MAAI,CAACF,GAAOJ,EAAS,KAAKI,CAAG,IAAM,kBAC1B,IAETC,EAAQ,OAAO,eAAeD,CAAG,EAC5BC,GAGLC,EAAOP,EAAO,KAAKM,EAAO,aAAa,GAAKA,EAAM,YAC3C,OAAOC,GAAS,YAAcL,EAAW,KAAKK,CAAI,IAAMJ,GAHtD,GAIX,EACA,eAAeC",
|
|
6
|
+
"names": ["class2type", "hasOwn", "toString", "fnToString", "ObjectFunctionString", "fnIsPlainObject", "obj", "proto", "Ctor"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/thirdparty/merge.ts"],
|
|
4
|
+
"sourcesContent": ["import _merge from './_merge.js';\nconst fnMerge = function (arg1?: any, arg2?: any) {\n return _merge(true, false, ...arguments);\n};\nexport default fnMerge;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAY,cACnB,MAAMC,EAAU,SAAUC,EAAYC,EAAY,CAC9C,OAAOH,EAAO,GAAM,GAAO,GAAG,SAAS,CAC3C,EACA,eAAeC",
|
|
6
|
+
"names": ["_merge", "fnMerge", "arg1", "arg2"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/AnimationMode.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Different types of AnimationMode.\n *\n * @public\n */\nenum AnimationMode {\n\t/**\n\t * @public\n\t */\n\tFull = \"full\",\n\t/**\n\t * @public\n\t */\n\tBasic = \"basic\",\n\t/**\n\t * @public\n\t */\n\tMinimal = \"minimal\",\n\t/**\n\t * @public\n\t */\n\tNone = \"none\",\n}\n\nexport default AnimationMode;\n"],
|
|
5
|
+
"mappings": "aAKA,IAAKA,OAIJA,EAAA,KAAO,OAIPA,EAAA,MAAQ,QAIRA,EAAA,QAAU,UAIVA,EAAA,KAAO,OAhBHA,OAAA,IAmBL,eAAeA",
|
|
6
|
+
"names": ["AnimationMode"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/AriaHasPopup.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Different types of ARIA hasPopup.\n * @public\n */\nenum AriaHasPopup {\n\t/**\n\t * Dialog popup type.\n\t * @public\n\t */\n\tDialog = \"Dialog\",\n\n\t/**\n\t * Grid popup type.\n\t * @public\n\t */\n\tGrid = \"Grid\",\n\n\t/**\n\t * ListBox popup type.\n\t * @public\n\t */\n\tListBox = \"ListBox\",\n\n\t /**\n\t * Menu popup type.\n\t * @public\n\t */\n\tMenu = \"Menu\",\n\n\t /**\n\t * Tree popup type.\n\t * @public\n\t */\n\tTree = \"Tree\",\n}\n\nexport default AriaHasPopup;\n"],
|
|
5
|
+
"mappings": "aAIA,IAAKA,OAKJA,EAAA,OAAS,SAMTA,EAAA,KAAO,OAMPA,EAAA,QAAU,UAMVA,EAAA,KAAO,OAMPA,EAAA,KAAO,OA7BHA,OAAA,IAgCL,eAAeA",
|
|
6
|
+
"names": ["AriaHasPopup"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var t=(n=>(n.None="None",n.Banner="Banner",n.Main="Main",n.Region="Region",n.Navigation="Navigation",n.Search="Search",n.Complementary="Complementary",n.Form="Form",n.ContentInfo="ContentInfo",n))(t||{});export default t;
|
|
2
|
+
//# sourceMappingURL=AriaLandmarkRole.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/AriaLandmarkRole.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Defines the ARIA accessible landmark roles.\n */\nenum AriaLandmarkRole {\n\t/**\n\t * No explicit role is applicable.\n\t *\n\t * The interpretation of this value depends on the element which defines a property with this type.\n\t * Normally this value means that no accessible landmark should be written.\n\t *\n\t * @public\n\t */\n\tNone = \"None\",\n\n\t/**\n\t * The ARIA role <code>banner</code>.\n\t *\n\t * A banner usually appears at the top of the page and typically spans the full width.\n\t *\n\t * @public\n\t */\n\tBanner = \"Banner\",\n\n\t/**\n\t * The ARIA role <code>main</code>.\n\t *\n\t * The main content of a page.\n\t *\n\t * @public\n\t */\n\tMain = \"Main\",\n\n\t/**\n\t * The ARIA role <code>region</code>.\n\t *\n\t * A section of a page, that is important enough to be included in a page summary or table of contents.\n\t *\n\t * @public\n\t */\n\tRegion = \"Region\",\n\n\t/**\n\t * The ARIA role <code>navigation</code>.\n\t *\n\t * A region that contains a collection of items and objects that, as a whole, combine to create a navigation facility.\n\t *\n\t * @public\n\t */\n\tNavigation = \"Navigation\",\n\n\t/**\n\t * The ARIA role <code>search</code>.\n\t *\n\t * A region that contains a collection of items and objects that, as a whole, combine to create a search facility.\n\t *\n\t * @public\n\t */\n\tSearch = \"Search\",\n\n\t/**\n\t * The ARIA role <code>complementary</code>.\n\t *\n\t * A section of the page, designed to be complementary to the main content at a similar level in the DOM hierarchy.\n\t *\n\t * @public\n\t */\n\tComplementary = \"Complementary\",\n\n\t/**\n\t * The ARIA role <code>form</code>.\n\t *\n\t * A region that contains a collection of items and objects that, as a whole, combine to create a form.\n\t *\n\t * @public\n\t */\n\tForm = \"Form\",\n\n\t/**\n\t * The ARIA role <code>contentinfo</code>.\n\t *\n\t * A region that contains information about the content on the page.\n\t *\n\t * @public\n\t */\n\tContentInfo = \"ContentInfo\"\n\n}\n\nexport default AriaLandmarkRole;\n"],
|
|
5
|
+
"mappings": "aAGA,IAAKA,OASJA,EAAA,KAAO,OASPA,EAAA,OAAS,SASTA,EAAA,KAAO,OASPA,EAAA,OAAS,SASTA,EAAA,WAAa,aASbA,EAAA,OAAS,SASTA,EAAA,cAAgB,gBAShBA,EAAA,KAAO,OASPA,EAAA,YAAc,cAjFVA,OAAA,IAqFL,eAAeA",
|
|
6
|
+
"names": ["AriaLandmarkRole"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/AriaRole.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Types of ARIA roles.\n * @public\n */\nenum AriaRole {\n\t/**\n\t* The ARIA role \"alertdialog\".\n\t* @public\n\t*/\n\tAlertDialog = \"AlertDialog\",\n\n\t/**\n\t * The ARIA role \"button\".\n\t * @public\n\t */\n\tButton = \"Button\",\n\n\t/**\n\t * The ARIA role \"dialog\".\n\t * @public\n\t */\n\tDialog = \"Dialog\",\n\n\t/**\n\t * The ARIA role \"link\".\n\t * @public\n\t */\n\tLink = \"Link\",\n}\n\nexport default AriaRole;\n"],
|
|
5
|
+
"mappings": "aAIA,IAAKA,OAKJA,EAAA,YAAc,cAMdA,EAAA,OAAS,SAMTA,EAAA,OAAS,SAMTA,EAAA,KAAO,OAvBHA,OAAA,IA0BL,eAAeA",
|
|
6
|
+
"names": ["AriaRole"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import r from"./DataType.js";class a extends r{static isValid(e){return/^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})|rgb\(\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\.[0-9]+)?|100(\.0+)?)%)\s*(,\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\.[0-9]+)?|100(\.0+)?)%)\s*){2}\)|rgba\((\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\.[0-9]+)?|100(\.0+)?)%)\s*,){3}\s*(0(\.[0-9]+)?|1(\.0+)?)\s*\)|hsl\(\s*([0-2]?[0-9]?[0-9]|3([0-5][0-9]|60))\s*(,\s*(([0-9]?[0-9](\.[0-9]+)?|100(\.0+)?)%)\s*){2}\)|hsla\(\s*([0-2]?[0-9]?[0-9]|3([0-5][0-9]|60))\s*,(\s*(([0-9]?[0-9](\.[0-9]+)?|100(\.0+)?)%)\s*,){2}\s*(0(\.[0-9]+)?|1(\.0+)?)\s*\)|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgrey|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|grey|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgrey|lightgreen|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silverskyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|inherit|)$/.test(e)}}export default a;
|
|
2
|
+
//# sourceMappingURL=CSSColor.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/CSSColor.ts"],
|
|
4
|
+
"sourcesContent": ["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * CSSColor data type.\n *\n * @public\n */\nclass CSSColor extends DataType {\n\tstatic override isValid(value: string) {\n\t\treturn /^(#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})|rgb\\(\\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*(,\\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*){2}\\)|rgba\\((\\s*((1?[0-9]?[0-9]|2([0-4][0-9]|5[0-5]))|([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*,){3}\\s*(0(\\.[0-9]+)?|1(\\.0+)?)\\s*\\)|hsl\\(\\s*([0-2]?[0-9]?[0-9]|3([0-5][0-9]|60))\\s*(,\\s*(([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*){2}\\)|hsla\\(\\s*([0-2]?[0-9]?[0-9]|3([0-5][0-9]|60))\\s*,(\\s*(([0-9]?[0-9](\\.[0-9]+)?|100(\\.0+)?)%)\\s*,){2}\\s*(0(\\.[0-9]+)?|1(\\.0+)?)\\s*\\)|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgrey|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|grey|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgrey|lightgreen|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silverskyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|transparent|inherit|)$/.test(value ); // eslint-disable-line\n\t}\n}\n\nexport default CSSColor;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAc,gBAQrB,MAAMC,UAAiBD,CAAS,CAC/B,OAAgB,QAAQE,EAAe,CACtC,MAAO,+/DAA+/D,KAAKA,CAAM,CAClhE,CACD,CAEA,eAAeD",
|
|
6
|
+
"names": ["DataType", "CSSColor", "value"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import m from"./DataType.js";class s extends m{static isValid(e){return/^(auto|inherit|[-+]?(0*|([0-9]+|[0-9]*\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%))|calc\(\s*(\(\s*)*[-+]?(([0-9]+|[0-9]*\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%)?)(\s*(\)\s*)*(\s[-+]\s|[*\/])\s*(\(\s*)*([-+]?(([0-9]+|[0-9]*\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%)?)))*\s*(\)\s*)*\))$/.test(e)}}export default s;
|
|
2
|
+
//# sourceMappingURL=CSSSize.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/CSSSize.ts"],
|
|
4
|
+
"sourcesContent": ["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * CSSSize data type.\n *\n * @public\n */\nclass CSSSize extends DataType {\n\tstatic isValid(value: string) {\n\t\treturn /^(auto|inherit|[-+]?(0*|([0-9]+|[0-9]*\\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%))|calc\\(\\s*(\\(\\s*)*[-+]?(([0-9]+|[0-9]*\\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%)?)(\\s*(\\)\\s*)*(\\s[-+]\\s|[*\\/])\\s*(\\(\\s*)*([-+]?(([0-9]+|[0-9]*\\.[0-9]+)([rR][eE][mM]|[eE][mM]|[eE][xX]|[pP][xX]|[cC][mM]|[mM][mM]|[iI][nN]|[pP][tT]|[pP][cC]|%)?)))*\\s*(\\)\\s*)*\\))$/.test(value); // eslint-disable-line\n\t}\n}\n\nexport default CSSSize;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAc,gBAQrB,MAAMC,UAAgBD,CAAS,CAC9B,OAAO,QAAQE,EAAe,CAC7B,MAAO,qcAAqc,KAAKA,CAAK,CACvd,CACD,CAEA,eAAeD",
|
|
6
|
+
"names": ["DataType", "CSSSize", "value"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/CalendarType.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Different calendar types.\n *\n * @public\n */\nenum CalendarType {\n\t/**\n\t * @public\n\t */\n\tGregorian = \"Gregorian\",\n\t/**\n\t * @public\n\t */\n\tIslamic = \"Islamic\",\n\t/**\n\t * @public\n\t */\n\tJapanese = \"Japanese\",\n\t/**\n\t * @public\n\t */\n\tBuddhist = \"Buddhist\",\n\t/**\n\t * @public\n\t */\n\tPersian = \"Persian\",\n}\n\nexport default CalendarType;\n"],
|
|
5
|
+
"mappings": "aAKA,IAAKA,OAIJA,EAAA,UAAY,YAIZA,EAAA,QAAU,UAIVA,EAAA,SAAW,WAIXA,EAAA,SAAW,WAIXA,EAAA,QAAU,UApBNA,OAAA,IAuBL,eAAeA",
|
|
6
|
+
"names": ["CalendarType"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/DOMReference.ts"],
|
|
4
|
+
"sourcesContent": ["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * DOM Element reference or ID.\n * **Note:** If an ID is passed, it is expected to be part of the same `document` element as the consuming component.\n *\n * @public\n */\nclass DOMReference extends DataType {\n\tstatic override isValid(value: string | HTMLElement) {\n\t\treturn (typeof value === \"string\" || value instanceof HTMLElement);\n\t}\n\n\tstatic override propertyToAttribute(propertyValue: string | HTMLElement) {\n\t\tif (propertyValue instanceof HTMLElement) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn propertyValue;\n\t}\n}\n\nexport default DOMReference;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAAc,gBASrB,MAAMC,UAAqBD,CAAS,CACnC,OAAgB,QAAQE,EAA6B,CACpD,OAAQ,OAAOA,GAAU,UAAYA,aAAiB,WACvD,CAEA,OAAgB,oBAAoBC,EAAqC,CACxE,OAAIA,aAAyB,YACrB,KAGDA,CACR,CACD,CAEA,eAAeF",
|
|
6
|
+
"names": ["DataType", "DOMReference", "value", "propertyValue"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";class e{static isValid(t){return!1}static attributeToProperty(t){return t}static propertyToAttribute(t){return t===null?null:String(t)}static valuesAreEqual(t,r){return t===r}static generateTypeAccessors(t){Object.keys(t).forEach(r=>{Object.defineProperty(this,r,{get(){return t[r]}})})}static get isDataTypeClass(){return!0}}export default e;
|
|
2
|
+
//# sourceMappingURL=DataType.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/DataType.ts"],
|
|
4
|
+
"sourcesContent": ["import { PropertyValue } from \"../UI5ElementMetadata.js\";\n\n/**\n * @class\n * Base class for all data types.\n *\n * @public\n */\nclass DataType {\n\t/**\n\t * Checks if the value is valid for its data type.\n \t * @public\n\t */\n\t// eslint-disable-next-line\n\tstatic isValid(value: any): boolean {\n\t\treturn false;\n\t}\n\n\tstatic attributeToProperty(attributeValue: string | null): PropertyValue {\n\t\treturn attributeValue;\n\t}\n\n\tstatic propertyToAttribute(propertyValue: PropertyValue): string | null {\n\t\treturn propertyValue === null ? null : String(propertyValue);\n\t}\n\n\tstatic valuesAreEqual(value1: any, value2: any) {\n\t\treturn value1 === value2;\n\t}\n\n\tstatic generateTypeAccessors(types: Record<string, string>) {\n\t\tObject.keys(types).forEach(type => {\n\t\t\tObject.defineProperty(this, type, {\n\t\t\t\tget() {\n\t\t\t\t\treturn types[type];\n\t\t\t\t},\n\t\t\t});\n\t\t});\n\t}\n\n\tstatic get isDataTypeClass() {\n\t\treturn true;\n\t}\n}\n\nexport default DataType;\n"],
|
|
5
|
+
"mappings": "aAQA,MAAMA,CAAS,CAMd,OAAO,QAAQC,EAAqB,CACnC,MAAO,EACR,CAEA,OAAO,oBAAoBC,EAA8C,CACxE,OAAOA,CACR,CAEA,OAAO,oBAAoBC,EAA6C,CACvE,OAAOA,IAAkB,KAAO,KAAO,OAAOA,CAAa,CAC5D,CAEA,OAAO,eAAeC,EAAaC,EAAa,CAC/C,OAAOD,IAAWC,CACnB,CAEA,OAAO,sBAAsBC,EAA+B,CAC3D,OAAO,KAAKA,CAAK,EAAE,QAAQC,GAAQ,CAClC,OAAO,eAAe,KAAMA,EAAM,CACjC,KAAM,CACL,OAAOD,EAAMC,CAAI,CAClB,CACD,CAAC,CACF,CAAC,CACF,CAEA,WAAW,iBAAkB,CAC5B,MAAO,EACR,CACD,CAEA,eAAeP",
|
|
6
|
+
"names": ["DataType", "value", "attributeValue", "propertyValue", "value1", "value2", "types", "type"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/Float.ts"],
|
|
4
|
+
"sourcesContent": ["import { PropertyValue } from \"../UI5ElementMetadata.js\";\nimport DataType from \"./DataType.js\";\n\n/**\n * @class\n * Float data type.\n *\n * @constructor\n * @public\n */\nclass Float extends DataType {\n\tstatic override isValid(value: any) {\n\t\treturn Number(value) === value;\n\t}\n\n\tstatic override attributeToProperty(attributeValue: string): PropertyValue {\n\t\treturn parseFloat(attributeValue);\n\t}\n}\n\nexport default Float;\n"],
|
|
5
|
+
"mappings": "aACA,OAAOA,MAAc,gBASrB,MAAMC,UAAcD,CAAS,CAC5B,OAAgB,QAAQE,EAAY,CACnC,OAAO,OAAOA,CAAK,IAAMA,CAC1B,CAEA,OAAgB,oBAAoBC,EAAuC,CAC1E,OAAO,WAAWA,CAAc,CACjC,CACD,CAEA,eAAeF",
|
|
6
|
+
"names": ["DataType", "Float", "value", "attributeValue"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/Integer.ts"],
|
|
4
|
+
"sourcesContent": ["import { PropertyValue } from \"../UI5ElementMetadata.js\";\nimport DataType from \"./DataType.js\";\n\n/**\n * @class\n * Integer data type.\n *\n * @constructor\n * @public\n */\nclass Integer extends DataType {\n\tstatic override isValid(value: any) {\n\t\treturn Number.isInteger(value);\n\t}\n\n\tstatic override attributeToProperty(attributeValue: string): PropertyValue {\n\t\treturn parseInt(attributeValue);\n\t}\n}\n\nexport default Integer;\n"],
|
|
5
|
+
"mappings": "aACA,OAAOA,MAAc,gBASrB,MAAMC,UAAgBD,CAAS,CAC9B,OAAgB,QAAQE,EAAY,CACnC,OAAO,OAAO,UAAUA,CAAK,CAC9B,CAEA,OAAgB,oBAAoBC,EAAuC,CAC1E,OAAO,SAASA,CAAc,CAC/B,CACD,CAEA,eAAeF",
|
|
6
|
+
"names": ["DataType", "Integer", "value", "attributeValue"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/InvisibleMessageMode.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Enumeration for different mode behaviors of the InvisibleMessage.\n *\n * @public\n */\nconst InvisibleMessageMode = {\n\t/**\n * Indicates that updates to the region should be presented at the next graceful opportunity,\n * such as at the end of reading the current sentence, or when the user pauses typing.\n\t * @public\n */\n\tPolite: \"Polite\",\n\n\t/**\n * Indicates that updates to the region have the highest priority and should be presented to the user immediately.\n\t * @public\n */\n\tAssertive: \"Assertive\",\n} as const;\n\ntype InvisibleMessageMode = typeof InvisibleMessageMode[keyof typeof InvisibleMessageMode];\n\nexport default InvisibleMessageMode;\n"],
|
|
5
|
+
"mappings": "aAKA,MAAMA,EAAuB,CAM5B,OAAQ,SAMR,UAAW,WACZ,EAIA,eAAeA",
|
|
6
|
+
"names": ["InvisibleMessageMode"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/ItemNavigationBehavior.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Different behavior for ItemNavigation.\n *\n * @public\n */\nenum ItemNavigationBehavior {\n\t/**\n\t * Static behavior: navigations stops at the first or last item.\n\t * @public\n \t */\n\tStatic = \"Static\",\n\n\t/**\n\t * Cycling behavior: navigating past the last item continues with the first and vice versa.\n\t * @public\n \t */\n\tCyclic = \"Cyclic\",\n}\n\nexport default ItemNavigationBehavior;\n"],
|
|
5
|
+
"mappings": "aAKA,IAAKA,OAKJA,EAAA,OAAS,SAMTA,EAAA,OAAS,SAXLA,OAAA,IAcL,eAAeA",
|
|
6
|
+
"names": ["ItemNavigationBehavior"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/MovePlacement.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Placements of a moved element relative to a target element.\n *\n * @public\n */\nenum MovePlacement {\n\t/**\n\t * @public\n\t */\n\tOn = \"On\",\n\n\t/**\n\t * @public\n\t */\n\tBefore = \"Before\",\n\n\t/**\n\t * @public\n\t */\n\tAfter = \"After\",\n}\n\nexport default MovePlacement;\n"],
|
|
5
|
+
"mappings": "aAKA,IAAKA,OAIJA,EAAA,GAAK,KAKLA,EAAA,OAAS,SAKTA,EAAA,MAAQ,QAdJA,OAAA,IAiBL,eAAeA",
|
|
6
|
+
"names": ["MovePlacement"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/NavigationMode.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Different navigation modes for ItemNavigation.\n *\n * @public\n */\nenum NavigationMode {\n\t/**\n\t * @public\n\t */\n\tAuto = \"Auto\",\n\t/**\n\t * @public\n\t */\n\tVertical = \"Vertical\",\n\t/**\n\t * @public\n\t */\n\tHorizontal = \"Horizontal\",\n\t/**\n\t * @public\n\t */\n\tPaging = \"Paging\",\n}\n\nexport default NavigationMode;\n"],
|
|
5
|
+
"mappings": "aAKA,IAAKA,OAIJA,EAAA,KAAO,OAIPA,EAAA,SAAW,WAIXA,EAAA,WAAa,aAIbA,EAAA,OAAS,SAhBLA,OAAA,IAmBL,eAAeA",
|
|
6
|
+
"names": ["NavigationMode"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/Orientation.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Determines the orientation of an operation.\n *\n * @private\n */\nenum Orientation {\n\t/**\n\t * @private\n\t */\n\tVertical = \"Vertical\",\n\n\t/**\n\t * @private\n\t */\n\tHorizontal = \"Horizontal\",\n}\n\nexport default Orientation;\n"],
|
|
5
|
+
"mappings": "aAKA,IAAKA,OAIJA,EAAA,SAAW,WAKXA,EAAA,WAAa,aATTA,OAAA,IAYL,eAAeA",
|
|
6
|
+
"names": ["Orientation"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/ValueState.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Different types of ValueStates.\n *\n * @public\n */\nenum ValueState {\n\t/**\n\t * @public\n\t */\n\tNone = \"None\",\n\n\t/**\n\t * @public\n\t */\n\tPositive = \"Positive\",\n\n\t/**\n\t * @public\n\t */\n\tCritical = \"Critical\",\n\n\t/**\n\t * @public\n\t */\n\tNegative = \"Negative\",\n\n\t/**\n\t * @public\n\t */\n\tInformation = \"Information\",\n}\n\nexport default ValueState;\n"],
|
|
5
|
+
"mappings": "aAKA,IAAKA,OAIJA,EAAA,KAAO,OAKPA,EAAA,SAAW,WAKXA,EAAA,SAAW,WAKXA,EAAA,SAAW,WAKXA,EAAA,YAAc,cAxBVA,OAAA,IA2BL,eAAeA",
|
|
6
|
+
"names": ["ValueState"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";import s from"./theming/getConstructableStyle.js";const n=o=>{const e=o.constructor,t=o.shadowRoot,r=o.render();if(!t){console.warn("There is no shadow root to update");return}t.adoptedStyleSheets=s(e),e.renderer(r,t,{host:o})};export default n;
|
|
2
|
+
//# sourceMappingURL=updateShadowRoot.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/updateShadowRoot.ts"],
|
|
4
|
+
"sourcesContent": ["import getConstructableStyle from \"./theming/getConstructableStyle.js\";\nimport type UI5Element from \"./UI5Element.js\";\n\n/**\n * Updates the shadow root of a UI5Element or its static area item\n * @param element\n */\nconst updateShadowRoot = (element: UI5Element) => {\n\tconst ctor = element.constructor as typeof UI5Element;\n\tconst shadowRoot = element.shadowRoot;\n\tconst renderResult = element.render(); // this is checked before calling updateShadowRoot\n\n\tif (!shadowRoot) {\n\t\tconsole.warn(`There is no shadow root to update`); // eslint-disable-line\n\t\treturn;\n\t}\n\n\tshadowRoot.adoptedStyleSheets = getConstructableStyle(ctor);\n\n\tctor.renderer(renderResult, shadowRoot, { host: element });\n};\n\nexport default updateShadowRoot;\n"],
|
|
5
|
+
"mappings": "aAAA,OAAOA,MAA2B,qCAOlC,MAAMC,EAAoBC,GAAwB,CACjD,MAAMC,EAAOD,EAAQ,YACfE,EAAaF,EAAQ,WACrBG,EAAeH,EAAQ,OAAO,EAEpC,GAAI,CAACE,EAAY,CAChB,QAAQ,KAAK,mCAAmC,EAChD,MACD,CAEAA,EAAW,mBAAqBJ,EAAsBG,CAAI,EAE1DA,EAAK,SAASE,EAAcD,EAAY,CAAE,KAAMF,CAAQ,CAAC,CAC1D,EAEA,eAAeD",
|
|
6
|
+
"names": ["getConstructableStyle", "updateShadowRoot", "element", "ctor", "shadowRoot", "renderResult"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const r=new WeakMap,o=new WeakMap,u={attributes:!0,childList:!0,characterData:!0,subtree:!0},v=e=>{const t=e;return t.accessibleNameRef?b(e):t.accessibleName?t.accessibleName:void 0},b=e=>{const t=e.accessibleNameRef?.split(" ")??[],s=e.getRootNode();let l="";return t.forEach((n,c)=>{const a=s.querySelector(`[id='${n}']`),d=`${a&&a.textContent?a.textContent:""}`;d&&(l+=d,c<t.length-1&&(l+=" "))}),l},m=e=>{const t=new Set;return E(e).forEach(c=>{t.add(c)}),(e.accessibleNameRef?.split(" ")??[]).forEach(c=>{const a=g(e,c);a&&t.add(a)}),Array.from(t)},E=e=>{const t=e.getRootNode().querySelectorAll(`[for="${e.id}"]`);return Array.from(t)},g=(e,t)=>e.getRootNode().querySelector(`[id='${t}']`),M=e=>{const t=[];if(E(e).forEach(l=>{const n=l.textContent;n&&t.push(n)}),t.length)return t.join(" ")},k=e=>s=>{if(!(s&&s.type==="property"&&s.name==="accessibleNameRef"))return;const l=o.get(e);if(!l)return;const n=l.observedElements,c=m(e);n.forEach(a=>{c.includes(a)||i(l,a)}),c.forEach(a=>{n.includes(a)||(f(l,a),l.observedElements.push(a))}),l?.callback()},A=(e,t)=>{if(o.has(e))return;const s=m(e),l=k(e),n={host:e,observedElements:s,callback:t,invalidationCallback:l};o.set(e,n),e.attachInvalidate(l),s.forEach(c=>{f(n,c)}),t()},f=(e,t)=>{let s=r.get(t);if(!s){s={observer:null,callbacks:[]};const l=new MutationObserver(()=>{s.callbacks.forEach(a=>{a()});const c=document.getElementById(t.id);e.host.id===t.getAttribute("for")||c||i(e,t)});s.observer=l,l.observe(t,u),r.set(t,s)}s.callbacks.includes(e.callback)||s.callbacks.push(e.callback)},i=(e,t)=>{const s=r.get(t);s&&(s.callbacks=s.callbacks.filter(l=>l!==e.callback),s.callbacks.length||(s.observer?.disconnect(),r.delete(t))),e.observedElements=e.observedElements.filter(l=>l!==t)},T=e=>{const t=o.get(e);if(!t)return;[...t.observedElements].forEach(l=>{i(t,l)}),e.detachInvalidate(t.invalidationCallback),o.delete(e)};export{v as getEffectiveAriaLabelText,M as getAssociatedLabelForTexts,A as registerUI5Element,T as deregisterUI5Element,b as getAllAccessibleNameRefTexts};
|
|
2
|
+
//# sourceMappingURL=AriaLabelHelper.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/util/AriaLabelHelper.ts"],
|
|
4
|
+
"sourcesContent": ["import UI5Element, { ChangeInfo } from \"../UI5Element.js\";\n\ntype InvalidateCallback = (changeInfo: ChangeInfo) => void;\ntype MutationCallback = () => void;\ntype AssociatedElement = {\n\tobserver: MutationObserver | null;\n\tcallbacks: Array<MutationCallback>;\n};\ntype RegisteredElement = {\n\thost: UI5Element;\n\tobservedElements: Array<HTMLElement>;\n\tcallback: MutationCallback;\n\tinvalidationCallback: InvalidateCallback;\n};\n\nconst associatedElements = new WeakMap<HTMLElement, AssociatedElement>();\nconst registeredElements = new WeakMap<UI5Element, RegisteredElement>();\n\ntype AccessibleElement = HTMLElement & {\n\taccessibleNameRef: string;\n\taccessibleName: string;\n};\n\nconst observerOptions = {\n\tattributes: true,\n\tchildList: true,\n\tcharacterData: true,\n\tsubtree: true,\n};\n\nconst getEffectiveAriaLabelText = (el: HTMLElement) => {\n\tconst accessibleEl = el as AccessibleElement;\n\n\tif (!accessibleEl.accessibleNameRef) {\n\t\tif (accessibleEl.accessibleName) {\n\t\t\treturn accessibleEl.accessibleName;\n\t\t}\n\n\t\treturn undefined;\n\t}\n\n\treturn getAllAccessibleNameRefTexts(el);\n};\n\n/**\n *\n * @param {HTMLElement} el Defines the HTMLElement, for which you need to get all related texts\n */\nconst getAllAccessibleNameRefTexts = (el: HTMLElement) => {\n\tconst ids = (el as AccessibleElement).accessibleNameRef?.split(\" \") ?? [];\n\tconst owner = el.getRootNode() as HTMLElement;\n\tlet result = \"\";\n\n\tids.forEach((elementId: string, index: number) => {\n\t\tconst element = owner.querySelector(`[id='${elementId}']`);\n\t\tconst text = `${element && element.textContent ? element.textContent : \"\"}`;\n\t\tif (text) {\n\t\t\tresult += text;\n\t\t\tif (index < ids.length - 1) {\n\t\t\t\tresult += \" \";\n\t\t\t}\n\t\t}\n\t});\n\n\treturn result;\n};\n\nconst _getAllAssociatedElementsFromDOM = (el: UI5Element): Array<HTMLElement> => {\n\tconst set = new Set<HTMLElement>();\n\t// adding labels with attribute for matching the el.id\n\tconst labelsForAssociated = _getAssociatedLabels(el);\n\tlabelsForAssociated.forEach(itm => {\n\t\tset.add(itm);\n\t});\n\t// adding other elements that id is the same as accessibleNameRef value\n\tconst value = el[\"accessibleNameRef\" as keyof typeof el] as string;\n\tconst ids = value?.split(\" \") ?? [];\n\tids.forEach(id => {\n\t\tconst refEl = _getReferencedElementById(el, id);\n\t\tif (refEl) {\n\t\t\tset.add(refEl);\n\t\t}\n\t});\n\treturn Array.from(set);\n};\n\nconst _getAssociatedLabels = (el: HTMLElement): Array<HTMLElement> => {\n\tconst labels = (el.getRootNode() as HTMLElement).querySelectorAll<HTMLElement>(`[for=\"${el.id}\"]`);\n\treturn Array.from(labels);\n};\n\nconst _getReferencedElementById = (el: HTMLElement, elementId: string): HTMLElement | null => {\n\treturn (el.getRootNode() as HTMLElement).querySelector<HTMLElement>(`[id='${elementId}']`);\n};\n\n/**\n * @param {HTMLElement} el Defines the HTMLElement, for which you need to get all related \"label for\" texts\n */\nconst getAssociatedLabelForTexts = (el: HTMLElement) => {\n\tconst results: Array<string> = [];\n\tconst labels = _getAssociatedLabels(el);\n\n\tlabels.forEach((label: HTMLElement) => {\n\t\tconst labelText = label.textContent;\n\t\tlabelText && results.push(labelText);\n\t});\n\n\tif (results.length) {\n\t\treturn results.join(\" \");\n\t}\n\n\treturn undefined;\n};\n\nconst _createInvalidationCallback = (el: UI5Element) => {\n\tconst invalidationCallback = (changeInfo: ChangeInfo) => {\n\t\tif (!(changeInfo && changeInfo.type === \"property\" && changeInfo.name === \"accessibleNameRef\")) {\n\t\t\treturn;\n\t\t}\n\t\tconst registeredElement = registeredElements.get(el);\n\t\tif (!registeredElement) {\n\t\t\treturn;\n\t\t}\n\t\tconst oldAssociatedElements = registeredElement.observedElements;\n\t\tconst newAssociatedElements = _getAllAssociatedElementsFromDOM(el);\n\t\toldAssociatedElements.forEach(oldElement => {\n\t\t\tif (!newAssociatedElements.includes(oldElement)) {\n\t\t\t\t_removeObservedElementFromRegisteredElement(registeredElement, oldElement);\n\t\t\t}\n\t\t});\n\t\tnewAssociatedElements.forEach(newElement => {\n\t\t\tif (!oldAssociatedElements.includes(newElement)) {\n\t\t\t\t_addObservedElementToRegisteredElement(registeredElement, newElement);\n\t\t\t\tregisteredElement.observedElements.push(newElement);\n\t\t\t}\n\t\t});\n\t\tregisteredElement?.callback();\n\t};\n\treturn invalidationCallback;\n};\n\nconst registerUI5Element = (el: UI5Element, callback: MutationCallback) => {\n\tif (registeredElements.has(el)) {\n\t\treturn;\n\t}\n\tconst allAssociatedElements = _getAllAssociatedElementsFromDOM(el);\n\tconst invalidationCallback = _createInvalidationCallback(el);\n\tconst registeredElement = {\n\t\thost: el,\n\t\tobservedElements: allAssociatedElements,\n\t\tcallback,\n\t\tinvalidationCallback,\n\t};\n\tregisteredElements.set(el, registeredElement);\n\tel.attachInvalidate(invalidationCallback);\n\n\tallAssociatedElements.forEach((element: HTMLElement) => {\n\t\t_addObservedElementToRegisteredElement(registeredElement, element);\n\t});\n\tcallback();\n};\n\nconst _addObservedElementToRegisteredElement = (registeredElement: RegisteredElement, element: HTMLElement) => {\n\tlet associatedElement = associatedElements.get(element);\n\tif (!associatedElement) {\n\t\tassociatedElement = { observer: null, callbacks: [] };\n\t\tconst observer = new MutationObserver(() => {\n\t\t\tconst callbacks = (associatedElement as AssociatedElement).callbacks;\n\t\t\tcallbacks.forEach(callback => {\n\t\t\t\tcallback();\n\t\t\t});\n\t\t\tconst domEl = document.getElementById(element.id);\n\t\t\t// if no longer should be observed from this registeredElement, remove it\n\t\t\tif (!(registeredElement.host.id === element.getAttribute(\"for\") || domEl)) {\n\t\t\t\t_removeObservedElementFromRegisteredElement(registeredElement, element);\n\t\t\t}\n\t\t});\n\t\tassociatedElement.observer = observer;\n\t\tobserver.observe(element, observerOptions);\n\t\tassociatedElements.set(element, associatedElement);\n\t}\n\tif (!associatedElement.callbacks.includes(registeredElement.callback)) {\n\t\tassociatedElement.callbacks.push(registeredElement.callback);\n\t}\n};\n\nconst _removeObservedElementFromRegisteredElement = (registeredElement: RegisteredElement, element: HTMLElement) => {\n\tconst associatedElement = associatedElements.get(element);\n\tif (associatedElement) {\n\t\tassociatedElement.callbacks = associatedElement.callbacks.filter(itm => itm !== registeredElement.callback);\n\t\tif (!associatedElement.callbacks.length) {\n\t\t\tassociatedElement.observer?.disconnect();\n\t\t\tassociatedElements.delete(element);\n\t\t}\n\t}\n\tregisteredElement.observedElements = registeredElement.observedElements.filter(itm => itm !== element);\n};\n\nconst deregisterUI5Element = (el: UI5Element) => {\n\tconst registeredElement = registeredElements.get(el);\n\tif (!registeredElement) {\n\t\treturn;\n\t}\n\tconst oldObservedElements = [...registeredElement.observedElements];\n\toldObservedElements.forEach(observedElement => {\n\t\t_removeObservedElementFromRegisteredElement(registeredElement, observedElement);\n\t});\n\tel.detachInvalidate(registeredElement.invalidationCallback);\n\tregisteredElements.delete(el);\n};\n\nexport {\n\tgetEffectiveAriaLabelText,\n\tgetAssociatedLabelForTexts,\n\tregisterUI5Element,\n\tderegisterUI5Element,\n\tgetAllAccessibleNameRefTexts,\n};\n"],
|
|
5
|
+
"mappings": "aAeA,MAAMA,EAAqB,IAAI,QACzBC,EAAqB,IAAI,QAOzBC,EAAkB,CACvB,WAAY,GACZ,UAAW,GACX,cAAe,GACf,QAAS,EACV,EAEMC,EAA6BC,GAAoB,CACtD,MAAMC,EAAeD,EAErB,OAAKC,EAAa,kBAQXC,EAA6BF,CAAE,EAPjCC,EAAa,eACTA,EAAa,eAGrB,MAIF,EAMMC,EAAgCF,GAAoB,CACzD,MAAMG,EAAOH,EAAyB,mBAAmB,MAAM,GAAG,GAAK,CAAC,EAClEI,EAAQJ,EAAG,YAAY,EAC7B,IAAIK,EAAS,GAEb,OAAAF,EAAI,QAAQ,CAACG,EAAmBC,IAAkB,CACjD,MAAMC,EAAUJ,EAAM,cAAc,QAAQE,CAAS,IAAI,EACnDG,EAAO,GAAGD,GAAWA,EAAQ,YAAcA,EAAQ,YAAc,EAAE,GACrEC,IACHJ,GAAUI,EACNF,EAAQJ,EAAI,OAAS,IACxBE,GAAU,KAGb,CAAC,EAEMA,CACR,EAEMK,EAAoCV,GAAuC,CAChF,MAAMW,EAAM,IAAI,IAGhB,OAD4BC,EAAqBZ,CAAE,EAC/B,QAAQa,GAAO,CAClCF,EAAI,IAAIE,CAAG,CACZ,CAAC,GAEab,EAAG,mBACE,MAAM,GAAG,GAAK,CAAC,GAC9B,QAAQc,GAAM,CACjB,MAAMC,EAAQC,EAA0BhB,EAAIc,CAAE,EAC1CC,GACHJ,EAAI,IAAII,CAAK,CAEf,CAAC,EACM,MAAM,KAAKJ,CAAG,CACtB,EAEMC,EAAwBZ,GAAwC,CACrE,MAAMiB,EAAUjB,EAAG,YAAY,EAAkB,iBAA8B,SAASA,EAAG,EAAE,IAAI,EACjG,OAAO,MAAM,KAAKiB,CAAM,CACzB,EAEMD,EAA4B,CAAChB,EAAiBM,IAC3CN,EAAG,YAAY,EAAkB,cAA2B,QAAQM,CAAS,IAAI,EAMpFY,EAA8BlB,GAAoB,CACvD,MAAMmB,EAAyB,CAAC,EAQhC,GAPeP,EAAqBZ,CAAE,EAE/B,QAASoB,GAAuB,CACtC,MAAMC,EAAYD,EAAM,YACxBC,GAAaF,EAAQ,KAAKE,CAAS,CACpC,CAAC,EAEGF,EAAQ,OACX,OAAOA,EAAQ,KAAK,GAAG,CAIzB,EAEMG,EAA+BtB,GACNuB,GAA2B,CACxD,GAAI,EAAEA,GAAcA,EAAW,OAAS,YAAcA,EAAW,OAAS,qBACzE,OAED,MAAMC,EAAoB3B,EAAmB,IAAIG,CAAE,EACnD,GAAI,CAACwB,EACJ,OAED,MAAMC,EAAwBD,EAAkB,iBAC1CE,EAAwBhB,EAAiCV,CAAE,EACjEyB,EAAsB,QAAQE,GAAc,CACtCD,EAAsB,SAASC,CAAU,GAC7CC,EAA4CJ,EAAmBG,CAAU,CAE3E,CAAC,EACDD,EAAsB,QAAQG,GAAc,CACtCJ,EAAsB,SAASI,CAAU,IAC7CC,EAAuCN,EAAmBK,CAAU,EACpEL,EAAkB,iBAAiB,KAAKK,CAAU,EAEpD,CAAC,EACDL,GAAmB,SAAS,CAC7B,EAIKO,EAAqB,CAAC/B,EAAgBgC,IAA+B,CAC1E,GAAInC,EAAmB,IAAIG,CAAE,EAC5B,OAED,MAAMiC,EAAwBvB,EAAiCV,CAAE,EAC3DkC,EAAuBZ,EAA4BtB,CAAE,EACrDwB,EAAoB,CACzB,KAAMxB,EACN,iBAAkBiC,EAClB,SAAAD,EACA,qBAAAE,CACD,EACArC,EAAmB,IAAIG,EAAIwB,CAAiB,EAC5CxB,EAAG,iBAAiBkC,CAAoB,EAExCD,EAAsB,QAASzB,GAAyB,CACvDsB,EAAuCN,EAAmBhB,CAAO,CAClE,CAAC,EACDwB,EAAS,CACV,EAEMF,EAAyC,CAACN,EAAsChB,IAAyB,CAC9G,IAAI2B,EAAoBvC,EAAmB,IAAIY,CAAO,EACtD,GAAI,CAAC2B,EAAmB,CACvBA,EAAoB,CAAE,SAAU,KAAM,UAAW,CAAC,CAAE,EACpD,MAAMC,EAAW,IAAI,iBAAiB,IAAM,CACxBD,EAAwC,UACjD,QAAQH,GAAY,CAC7BA,EAAS,CACV,CAAC,EACD,MAAMK,EAAQ,SAAS,eAAe7B,EAAQ,EAAE,EAE1CgB,EAAkB,KAAK,KAAOhB,EAAQ,aAAa,KAAK,GAAK6B,GAClET,EAA4CJ,EAAmBhB,CAAO,CAExE,CAAC,EACD2B,EAAkB,SAAWC,EAC7BA,EAAS,QAAQ5B,EAASV,CAAe,EACzCF,EAAmB,IAAIY,EAAS2B,CAAiB,CAClD,CACKA,EAAkB,UAAU,SAASX,EAAkB,QAAQ,GACnEW,EAAkB,UAAU,KAAKX,EAAkB,QAAQ,CAE7D,EAEMI,EAA8C,CAACJ,EAAsChB,IAAyB,CACnH,MAAM2B,EAAoBvC,EAAmB,IAAIY,CAAO,EACpD2B,IACHA,EAAkB,UAAYA,EAAkB,UAAU,OAAOtB,GAAOA,IAAQW,EAAkB,QAAQ,EACrGW,EAAkB,UAAU,SAChCA,EAAkB,UAAU,WAAW,EACvCvC,EAAmB,OAAOY,CAAO,IAGnCgB,EAAkB,iBAAmBA,EAAkB,iBAAiB,OAAOX,GAAOA,IAAQL,CAAO,CACtG,EAEM8B,EAAwBtC,GAAmB,CAChD,MAAMwB,EAAoB3B,EAAmB,IAAIG,CAAE,EACnD,GAAI,CAACwB,EACJ,OAE2B,CAAC,GAAGA,EAAkB,gBAAgB,EAC9C,QAAQe,GAAmB,CAC9CX,EAA4CJ,EAAmBe,CAAe,CAC/E,CAAC,EACDvC,EAAG,iBAAiBwB,EAAkB,oBAAoB,EAC1D3B,EAAmB,OAAOG,CAAE,CAC7B,EAEA,OACCD,KAAA,0BACAmB,KAAA,2BACAa,KAAA,mBACAO,KAAA,qBACApC,KAAA",
|
|
6
|
+
"names": ["associatedElements", "registeredElements", "observerOptions", "getEffectiveAriaLabelText", "el", "accessibleEl", "getAllAccessibleNameRefTexts", "ids", "owner", "result", "elementId", "index", "element", "text", "_getAllAssociatedElementsFromDOM", "set", "_getAssociatedLabels", "itm", "id", "refEl", "_getReferencedElementById", "labels", "getAssociatedLabelForTexts", "results", "label", "labelText", "_createInvalidationCallback", "changeInfo", "registeredElement", "oldAssociatedElements", "newAssociatedElements", "oldElement", "_removeObservedElementFromRegisteredElement", "newElement", "_addObservedElementToRegisteredElement", "registerUI5Element", "callback", "allAssociatedElements", "invalidationCallback", "associatedElement", "observer", "domEl", "deregisterUI5Element", "observedElement"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=t=>{let e=0;return(t.selectionStart||t.selectionStart===0)&&(e=t.selectionDirection==="backward"?t.selectionStart:t.selectionEnd),e},o=(t,e)=>{t.selectionStart?(t.focus(),t.setSelectionRange(e,e)):t.focus()};export{n as getCaretPosition,o as setCaretPosition};
|
|
2
|
+
//# sourceMappingURL=Caret.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/util/Caret.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Returns the caret (cursor) position of the specified text field (field).\n * Return value range is 0-field.value.length.\n */\nconst getCaretPosition = (field: HTMLInputElement): number | null => {\n\t// Initialize\n\tlet caretPos: number | null = 0;\n\n\tif (field.selectionStart || field.selectionStart === 0) { // Firefox support\n\t\tcaretPos = field.selectionDirection === \"backward\" ? field.selectionStart : field.selectionEnd;\n\t}\n\n\treturn caretPos;\n};\n\nconst setCaretPosition = (field: HTMLInputElement, caretPos: number | null) => {\n\tif (field.selectionStart) {\n\t\tfield.focus();\n\t\tfield.setSelectionRange(caretPos, caretPos);\n\t} else {\n\t\tfield.focus();\n\t}\n};\n\nexport {\n\tgetCaretPosition,\n\tsetCaretPosition,\n};\n"],
|
|
5
|
+
"mappings": "aAIA,MAAMA,EAAoBC,GAA2C,CAEpE,IAAIC,EAA0B,EAE9B,OAAID,EAAM,gBAAkBA,EAAM,iBAAmB,KACpDC,EAAWD,EAAM,qBAAuB,WAAaA,EAAM,eAAiBA,EAAM,cAG5EC,CACR,EAEMC,EAAmB,CAACF,EAAyBC,IAA4B,CAC1ED,EAAM,gBACTA,EAAM,MAAM,EACZA,EAAM,kBAAkBC,EAAUA,CAAQ,GAE1CD,EAAM,MAAM,CAEd,EAEA,OACCD,KAAA,iBACAG,KAAA",
|
|
6
|
+
"names": ["getCaretPosition", "field", "caretPos", "setCaretPosition"]
|
|
7
|
+
}
|