@ui5/webcomponents-base 0.0.0-d9b978d1d → 0.0.0-da0d3eb88
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 +653 -0
- package/README.md +0 -8
- package/config/wdio.conf.cjs +0 -8
- package/dist/.tsbuildinfo +1 -1
- package/dist/Boot.d.ts +3 -2
- package/dist/Boot.js +8 -6
- package/dist/Boot.js.map +1 -1
- package/dist/Device.d.ts +1 -2
- package/dist/Device.js +5 -12
- package/dist/Device.js.map +1 -1
- package/dist/IgnoreCustomElements.d.ts +3 -5
- package/dist/IgnoreCustomElements.js +3 -5
- package/dist/IgnoreCustomElements.js.map +1 -1
- package/dist/InitialConfiguration.d.ts +1 -2
- package/dist/InitialConfiguration.js +1 -5
- package/dist/InitialConfiguration.js.map +1 -1
- package/dist/Keys.d.ts +3 -1
- package/dist/Keys.js +5 -1
- package/dist/Keys.js.map +1 -1
- package/dist/ManagedStyles.js +24 -98
- 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/UI5Element.d.ts +36 -54
- package/dist/UI5Element.js +152 -101
- package/dist/UI5Element.js.map +1 -1
- package/dist/UI5ElementMetadata.d.ts +12 -13
- package/dist/UI5ElementMetadata.js +24 -13
- package/dist/UI5ElementMetadata.js.map +1 -1
- package/dist/asset-registries/Icons.js +1 -1
- package/dist/asset-registries/Icons.js.map +1 -1
- package/dist/asset-registries/Illustrations.d.ts +1 -0
- package/dist/asset-registries/Illustrations.js +12 -19
- package/dist/asset-registries/Illustrations.js.map +1 -1
- package/dist/asset-registries/LocaleData.js +1 -1
- package/dist/asset-registries/LocaleData.js.map +1 -1
- package/dist/asset-registries/i18n.d.ts +2 -2
- package/dist/asset-registries/i18n.js +2 -2
- package/dist/asset-registries/i18n.js.map +1 -1
- package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +1 -1
- package/dist/asset-registries/util/IconCollectionsByTheme.js +1 -1
- package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -1
- package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +3 -3
- package/dist/asset-registries/util/getIconCollectionByTheme.js +3 -3
- package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -1
- package/dist/config/AnimationMode.js +2 -1
- package/dist/config/AnimationMode.js.map +1 -1
- package/dist/config/Icons.d.ts +7 -7
- package/dist/config/Icons.js +7 -7
- package/dist/config/Icons.js.map +1 -1
- package/dist/config/Language.d.ts +1 -1
- package/dist/config/Language.js +6 -3
- package/dist/config/Language.js.map +1 -1
- package/dist/config/Theme.d.ts +4 -3
- package/dist/config/Theme.js +13 -6
- package/dist/config/Theme.js.map +1 -1
- package/dist/config/ThemeRoot.d.ts +2 -4
- package/dist/config/ThemeRoot.js +2 -4
- package/dist/config/ThemeRoot.js.map +1 -1
- package/dist/config/Timezone.d.ts +1 -1
- package/dist/config/Timezone.js +1 -1
- package/dist/config/Timezone.js.map +1 -1
- package/dist/css/SystemCSSVars.css +0 -8
- package/dist/decorators/customElement.d.ts +3 -3
- package/dist/decorators/customElement.js +11 -6
- package/dist/decorators/customElement.js.map +1 -1
- package/dist/decorators/event.d.ts +5 -2
- package/dist/decorators/event.js.map +1 -1
- package/dist/decorators.d.ts +5 -0
- package/dist/decorators.js +6 -0
- package/dist/decorators.js.map +1 -0
- package/dist/delegate/ItemNavigation.d.ts +8 -8
- package/dist/delegate/ItemNavigation.js +9 -9
- package/dist/delegate/ItemNavigation.js.map +1 -1
- package/dist/delegate/ResizeHandler.d.ts +4 -6
- package/dist/delegate/ResizeHandler.js +4 -6
- package/dist/delegate/ResizeHandler.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/features/OpenUI5Support.d.ts +0 -2
- package/dist/features/OpenUI5Support.js +6 -21
- package/dist/features/OpenUI5Support.js.map +1 -1
- package/dist/features/patchPatcher.d.ts +11 -0
- package/dist/features/patchPatcher.js +11 -0
- package/dist/features/patchPatcher.js.map +1 -0
- package/dist/features/patchPopup.d.ts +14 -0
- package/dist/features/patchPopup.js +50 -0
- package/dist/features/patchPopup.js.map +1 -0
- package/dist/generated/AssetParameters.js +1 -1
- package/dist/generated/AssetParameters.js.map +1 -1
- package/dist/generated/VersionInfo.js +5 -5
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/generated/css/SystemCSSVars.css.js +1 -1
- package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
- package/dist/i18nBundle.d.ts +1 -3
- package/dist/i18nBundle.js +1 -4
- package/dist/i18nBundle.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/getEffectiveDir.d.ts +1 -1
- package/dist/locale/getEffectiveDir.js +3 -19
- package/dist/locale/getEffectiveDir.js.map +1 -1
- package/dist/renderer/LitRenderer.js +2 -8
- 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 +8 -0
- package/dist/renderer/executeTemplate.js +1 -0
- 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 +1 -1
- package/dist/ssr-dom-shim.d.ts +1 -0
- package/dist/ssr-dom-shim.js +12 -0
- package/dist/ssr-dom-shim.js.map +1 -0
- package/dist/ssr-dom.d.ts +0 -0
- package/dist/ssr-dom.js +0 -0
- package/dist/theming/getConstructableStyle.d.ts +1 -1
- 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/types/AnimationMode.d.ts +0 -8
- package/dist/types/AnimationMode.js +0 -8
- package/dist/types/AnimationMode.js.map +1 -1
- package/dist/types/AriaHasPopup.d.ts +32 -0
- package/dist/types/AriaHasPopup.js +34 -0
- package/dist/types/AriaHasPopup.js.map +1 -0
- package/dist/types/AriaLandmarkRole.d.ts +79 -0
- package/dist/types/AriaLandmarkRole.js +81 -0
- package/dist/types/AriaLandmarkRole.js.map +1 -0
- package/dist/types/AriaRole.d.ts +27 -0
- package/dist/types/AriaRole.js +29 -0
- package/dist/types/AriaRole.js.map +1 -0
- package/dist/types/CSSColor.d.ts +0 -4
- package/dist/types/CSSColor.js +0 -4
- package/dist/types/CSSColor.js.map +1 -1
- package/dist/types/CSSSize.d.ts +0 -4
- package/dist/types/CSSSize.js +0 -4
- package/dist/types/CSSSize.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/DOMReference.d.ts +1 -5
- package/dist/types/DOMReference.js +1 -5
- package/dist/types/DOMReference.js.map +1 -1
- package/dist/types/DataType.d.ts +1 -6
- package/dist/types/DataType.js +1 -6
- package/dist/types/DataType.js.map +1 -1
- package/dist/types/Float.d.ts +0 -3
- package/dist/types/Float.js +0 -3
- package/dist/types/Float.js.map +1 -1
- package/dist/types/Integer.d.ts +0 -3
- package/dist/types/Integer.js +0 -3
- package/dist/types/Integer.js.map +1 -1
- package/dist/types/InvisibleMessageMode.d.ts +0 -6
- package/dist/types/InvisibleMessageMode.js +0 -6
- 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/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 +24 -1
- package/dist/types.js.map +1 -1
- package/dist/updateShadowRoot.d.ts +1 -2
- package/dist/updateShadowRoot.js +5 -29
- package/dist/updateShadowRoot.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/clamp.js +2 -1
- package/dist/util/clamp.js.map +1 -1
- package/dist/util/createLinkInHead.d.ts +1 -1
- package/dist/util/createLinkInHead.js +1 -1
- package/dist/util/createLinkInHead.js.map +1 -1
- package/dist/util/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 +12 -0
- package/dist/util/dragAndDrop/DragRegistry.js +68 -0
- package/dist/util/dragAndDrop/DragRegistry.js.map +1 -0
- package/dist/util/dragAndDrop/findClosestPosition.d.ts +7 -0
- package/dist/util/dragAndDrop/findClosestPosition.js +59 -0
- package/dist/util/dragAndDrop/findClosestPosition.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/getClassCopy.d.ts +17 -12
- package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
- package/dist/util/getDesigntimePropertyAsArray.js +2 -1
- package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
- package/index.js +1 -17
- package/package-scripts.cjs +18 -14
- package/package.json +20 -8
- package/src/css/SystemCSSVars.css +0 -8
- package/tsconfig.json +3 -0
- package/.eslintignore +0 -16
- package/.eslintrc.cjs +0 -3
- package/bundle.esm.js +0 -67
- package/dist/CSP.d.ts +0 -30
- package/dist/CSP.js +0 -51
- package/dist/CSP.js.map +0 -1
- package/dist/StaticArea.js +0 -7
- package/dist/StaticArea.js.map +0 -1
- package/dist/StaticAreaItem.d.ts +0 -37
- package/dist/StaticAreaItem.js +0 -102
- package/dist/StaticAreaItem.js.map +0 -1
- package/dist/api.json +0 -1
- package/dist/config/RTL.d.ts +0 -7
- package/dist/config/RTL.js +0 -37
- package/dist/config/RTL.js.map +0 -1
- 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/util/createStyleInHead.d.ts +0 -8
- package/dist/util/createStyleInHead.js +0 -18
- package/dist/util/createStyleInHead.js.map +0 -1
- package/lib/generate-asset-parameters/index.js +0 -27
- package/lib/generate-styles/index.js +0 -31
- package/lib/generate-version-info/index.js +0 -32
- package/src/renderer/directives/style-map.js +0 -72
- package/used-modules.txt +0 -10
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Some private variable used for creation of (pseudo-)unique IDs.
|
|
3
|
+
* @type int
|
|
4
|
+
* @private
|
|
5
|
+
*/ /*!
|
|
6
|
+
* OpenUI5
|
|
7
|
+
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
var iIdCounter = 0;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Creates and returns a pseudo-unique ID.
|
|
15
|
+
*
|
|
16
|
+
* No means for detection of overlap with already present or future UIDs.
|
|
17
|
+
*
|
|
18
|
+
* @function
|
|
19
|
+
* @since 1.58
|
|
20
|
+
* @alias module:sap/base/util/uid
|
|
21
|
+
* @return {string} A pseudo-unique id.
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
var fnUid = function uid() {
|
|
25
|
+
return "id-" + new Date().valueOf() + "-" + iIdCounter++;
|
|
26
|
+
};
|
|
27
|
+
export default fnUid;
|
|
@@ -2004,7 +2004,7 @@ if (typeof window !== 'undefined') {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
/*!
|
|
2006
2006
|
* OpenUI5
|
|
2007
|
-
* (c) Copyright 2009-
|
|
2007
|
+
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
2008
2008
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
2009
2009
|
*/
|
|
2010
2010
|
// Based on coding from the HTML4 Sanitizer by Google Inc.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* eslint-disable max-classes-per-file */
|
|
2
|
+
import { HTMLElement, Element, customElements } from "@lit-labs/ssr-dom-shim";
|
|
3
|
+
globalThis.HTMLElement ??= HTMLElement;
|
|
4
|
+
globalThis.Element ??= Element;
|
|
5
|
+
globalThis.customElements ??= customElements;
|
|
6
|
+
class NodeShim {
|
|
7
|
+
}
|
|
8
|
+
globalThis.Node ??= NodeShim;
|
|
9
|
+
class FileListShim {
|
|
10
|
+
}
|
|
11
|
+
globalThis.FileList ??= FileListShim;
|
|
12
|
+
//# sourceMappingURL=ssr-dom-shim.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ssr-dom-shim.js","sourceRoot":"","sources":["../src/ssr-dom-shim.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE9E,UAAU,CAAC,WAAW,KAAK,WAAW,CAAC;AACvC,UAAU,CAAC,OAAO,KAAK,OAAO,CAAC;AAC/B,UAAU,CAAC,cAAc,KAAK,cAAc,CAAC;AAE7C,MAAM,QAAQ;CAAG;AACjB,UAAU,CAAC,IAAI,KAAK,QAAiC,CAAC;AAEtD,MAAM,YAAY;CAAG;AACrB,UAAU,CAAC,QAAQ,KAAK,YAAyC,CAAC","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"]}
|
|
File without changes
|
package/dist/ssr-dom.js
ADDED
|
File without changes
|
|
@@ -5,5 +5,5 @@ import UI5Element from "../UI5Element.js";
|
|
|
5
5
|
* @param ElementClass
|
|
6
6
|
* @returns {*}
|
|
7
7
|
*/
|
|
8
|
-
declare const getConstructableStyle: (ElementClass: typeof UI5Element
|
|
8
|
+
declare const getConstructableStyle: (ElementClass: typeof UI5Element) => CSSStyleSheet[];
|
|
9
9
|
export default getConstructableStyle;
|
|
@@ -10,11 +10,11 @@ attachCustomCSSChange((tag) => {
|
|
|
10
10
|
* @param ElementClass
|
|
11
11
|
* @returns {*}
|
|
12
12
|
*/
|
|
13
|
-
const getConstructableStyle = (ElementClass
|
|
13
|
+
const getConstructableStyle = (ElementClass) => {
|
|
14
14
|
const tag = ElementClass.getMetadata().getTag();
|
|
15
|
-
const key = `${tag}
|
|
15
|
+
const key = `${tag}_normal`;
|
|
16
16
|
if (!constructableStyleMap.has(key)) {
|
|
17
|
-
const styleContent = getEffectiveStyle(ElementClass
|
|
17
|
+
const styleContent = getEffectiveStyle(ElementClass);
|
|
18
18
|
const style = new CSSStyleSheet();
|
|
19
19
|
style.replaceSync(styleContent);
|
|
20
20
|
constructableStyleMap.set(key, [style]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConstructableStyle.js","sourceRoot":"","sources":["../../src/theming/getConstructableStyle.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAAgC,CAAC;AAEtE,qBAAqB,CAAC,CAAC,GAAW,EAAE,EAAE;IACrC,qBAAqB,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,kFAAkF;AAClI,CAAC,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,qBAAqB,GAAG,CAAC,YAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"getConstructableStyle.js","sourceRoot":"","sources":["../../src/theming/getConstructableStyle.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAAgC,CAAC;AAEtE,qBAAqB,CAAC,CAAC,GAAW,EAAE,EAAE;IACrC,qBAAqB,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,kFAAkF;AAClI,CAAC,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,qBAAqB,GAAG,CAAC,YAA+B,EAAE,EAAE;IACjE,MAAM,GAAG,GAAG,YAAY,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC;IAChD,MAAM,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;IAE5B,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QACpC,MAAM,YAAY,GAAG,iBAAiB,CAAC,YAAY,CAAC,CAAC;QACrD,MAAM,KAAK,GAAG,IAAI,aAAa,EAAE,CAAC;QAClC,KAAK,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;QAChC,qBAAqB,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;KACxC;IAED,OAAO,qBAAqB,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC;AACxC,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC","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,25 +5,18 @@ const effectiveStyleMap = new Map();
|
|
|
5
5
|
attachCustomCSSChange((tag) => {
|
|
6
6
|
effectiveStyleMap.delete(`${tag}_normal`); // there is custom CSS only for the component itself, not for its static area part
|
|
7
7
|
});
|
|
8
|
-
const getEffectiveStyle = (ElementClass
|
|
8
|
+
const getEffectiveStyle = (ElementClass) => {
|
|
9
9
|
const tag = ElementClass.getMetadata().getTag();
|
|
10
|
-
const key = `${tag}
|
|
10
|
+
const key = `${tag}_normal`;
|
|
11
11
|
const openUI5Enablement = getFeature("OpenUI5Enablement");
|
|
12
12
|
if (!effectiveStyleMap.has(key)) {
|
|
13
|
-
let effectiveStyle;
|
|
14
13
|
let busyIndicatorStyles = "";
|
|
15
14
|
if (openUI5Enablement) {
|
|
16
15
|
busyIndicatorStyles = getStylesString(openUI5Enablement.getBusyIndicatorStyles());
|
|
17
16
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
const customStyle = getCustomCSS(tag) || "";
|
|
23
|
-
const builtInStyles = getStylesString(ElementClass.styles);
|
|
24
|
-
effectiveStyle = `${builtInStyles} ${customStyle}`;
|
|
25
|
-
}
|
|
26
|
-
effectiveStyle = `${effectiveStyle} ${busyIndicatorStyles}`;
|
|
17
|
+
const customStyle = getCustomCSS(tag) || "";
|
|
18
|
+
const builtInStyles = getStylesString(ElementClass.styles);
|
|
19
|
+
const effectiveStyle = `${builtInStyles} ${customStyle} ${busyIndicatorStyles}`;
|
|
27
20
|
effectiveStyleMap.set(key, effectiveStyle);
|
|
28
21
|
}
|
|
29
22
|
return effectiveStyleMap.get(key); // The key is guaranteed to exist
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEffectiveStyle.js","sourceRoot":"","sources":["../../src/theming/getEffectiveStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIpD,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEpD,qBAAqB,CAAC,CAAC,GAAW,EAAE,EAAE;IACrC,iBAAiB,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,kFAAkF;AAC9H,CAAC,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,YAA+B,EAAE,
|
|
1
|
+
{"version":3,"file":"getEffectiveStyle.js","sourceRoot":"","sources":["../../src/theming/getEffectiveStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACvE,OAAO,eAAe,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIpD,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEpD,qBAAqB,CAAC,CAAC,GAAW,EAAE,EAAE;IACrC,iBAAiB,CAAC,MAAM,CAAC,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,kFAAkF;AAC9H,CAAC,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,CAAC,YAA+B,EAAE,EAAE;IAC7D,MAAM,GAAG,GAAG,YAAY,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC;IAChD,MAAM,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;IAC5B,MAAM,iBAAiB,GAAG,UAAU,CAA2B,mBAAmB,CAAC,CAAC;IAEpF,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;QAChC,IAAI,mBAAmB,GAAG,EAAE,CAAC;QAE7B,IAAI,iBAAiB,EAAE;YACtB,mBAAmB,GAAG,eAAe,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,CAAC,CAAC;SAClF;QAED,MAAM,WAAW,GAAG,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;QAC5C,MAAM,aAAa,GAAG,eAAe,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAE3D,MAAM,cAAc,GAAG,GAAG,aAAa,IAAI,WAAW,IAAI,mBAAmB,EAAE,CAAC;QAChF,iBAAiB,CAAC,GAAG,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;KAC3C;IAED,OAAO,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAE,CAAC,CAAC,iCAAiC;AACtE,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC","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"]}
|
|
@@ -1,31 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Different types of AnimationMode.
|
|
3
3
|
*
|
|
4
|
-
* @readonly
|
|
5
|
-
* @enum {string}
|
|
6
4
|
* @public
|
|
7
|
-
* @author SAP SE
|
|
8
|
-
* @alias sap.ui.webc.base.types.AnimationMode
|
|
9
5
|
*/
|
|
10
6
|
declare enum AnimationMode {
|
|
11
7
|
/**
|
|
12
8
|
* @public
|
|
13
|
-
* @type {Full}
|
|
14
9
|
*/
|
|
15
10
|
Full = "full",
|
|
16
11
|
/**
|
|
17
12
|
* @public
|
|
18
|
-
* @type {Basic}
|
|
19
13
|
*/
|
|
20
14
|
Basic = "basic",
|
|
21
15
|
/**
|
|
22
16
|
* @public
|
|
23
|
-
* @type {Minimal}
|
|
24
17
|
*/
|
|
25
18
|
Minimal = "minimal",
|
|
26
19
|
/**
|
|
27
20
|
* @public
|
|
28
|
-
* @type {None}
|
|
29
21
|
*/
|
|
30
22
|
None = "none"
|
|
31
23
|
}
|
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Different types of AnimationMode.
|
|
3
3
|
*
|
|
4
|
-
* @readonly
|
|
5
|
-
* @enum {string}
|
|
6
4
|
* @public
|
|
7
|
-
* @author SAP SE
|
|
8
|
-
* @alias sap.ui.webc.base.types.AnimationMode
|
|
9
5
|
*/
|
|
10
6
|
var AnimationMode;
|
|
11
7
|
(function (AnimationMode) {
|
|
12
8
|
/**
|
|
13
9
|
* @public
|
|
14
|
-
* @type {Full}
|
|
15
10
|
*/
|
|
16
11
|
AnimationMode["Full"] = "full";
|
|
17
12
|
/**
|
|
18
13
|
* @public
|
|
19
|
-
* @type {Basic}
|
|
20
14
|
*/
|
|
21
15
|
AnimationMode["Basic"] = "basic";
|
|
22
16
|
/**
|
|
23
17
|
* @public
|
|
24
|
-
* @type {Minimal}
|
|
25
18
|
*/
|
|
26
19
|
AnimationMode["Minimal"] = "minimal";
|
|
27
20
|
/**
|
|
28
21
|
* @public
|
|
29
|
-
* @type {None}
|
|
30
22
|
*/
|
|
31
23
|
AnimationMode["None"] = "none";
|
|
32
24
|
})(AnimationMode || (AnimationMode = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimationMode.js","sourceRoot":"","sources":["../../src/types/AnimationMode.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"AnimationMode.js","sourceRoot":"","sources":["../../src/types/AnimationMode.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,IAAK,aAiBJ;AAjBD,WAAK,aAAa;IACjB;;OAEG;IACH,8BAAa,CAAA;IACb;;OAEG;IACH,gCAAe,CAAA;IACf;;OAEG;IACH,oCAAmB,CAAA;IACnB;;OAEG;IACH,8BAAa,CAAA;AACd,CAAC,EAjBI,aAAa,KAAb,aAAa,QAiBjB;AAED,eAAe,aAAa,CAAC","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"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Different types of ARIA hasPopup.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
declare enum AriaHasPopup {
|
|
6
|
+
/**
|
|
7
|
+
* Dialog popup type.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
Dialog = "Dialog",
|
|
11
|
+
/**
|
|
12
|
+
* Grid popup type.
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
Grid = "Grid",
|
|
16
|
+
/**
|
|
17
|
+
* ListBox popup type.
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
ListBox = "ListBox",
|
|
21
|
+
/**
|
|
22
|
+
* Menu popup type.
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
Menu = "Menu",
|
|
26
|
+
/**
|
|
27
|
+
* Tree popup type.
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
Tree = "Tree"
|
|
31
|
+
}
|
|
32
|
+
export default AriaHasPopup;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Different types of ARIA hasPopup.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
var AriaHasPopup;
|
|
6
|
+
(function (AriaHasPopup) {
|
|
7
|
+
/**
|
|
8
|
+
* Dialog popup type.
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
AriaHasPopup["Dialog"] = "Dialog";
|
|
12
|
+
/**
|
|
13
|
+
* Grid popup type.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
AriaHasPopup["Grid"] = "Grid";
|
|
17
|
+
/**
|
|
18
|
+
* ListBox popup type.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
AriaHasPopup["ListBox"] = "ListBox";
|
|
22
|
+
/**
|
|
23
|
+
* Menu popup type.
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
AriaHasPopup["Menu"] = "Menu";
|
|
27
|
+
/**
|
|
28
|
+
* Tree popup type.
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
AriaHasPopup["Tree"] = "Tree";
|
|
32
|
+
})(AriaHasPopup || (AriaHasPopup = {}));
|
|
33
|
+
export default AriaHasPopup;
|
|
34
|
+
//# sourceMappingURL=AriaHasPopup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AriaHasPopup.js","sourceRoot":"","sources":["../../src/types/AriaHasPopup.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,IAAK,YA8BJ;AA9BD,WAAK,YAAY;IAChB;;;OAGG;IACH,iCAAiB,CAAA;IAEjB;;;OAGG;IACH,6BAAa,CAAA;IAEb;;;OAGG;IACH,mCAAmB,CAAA;IAElB;;;OAGG;IACJ,6BAAa,CAAA;IAEZ;;;OAGG;IACJ,6BAAa,CAAA;AACd,CAAC,EA9BI,YAAY,KAAZ,YAAY,QA8BhB;AAED,eAAe,YAAY,CAAC","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"]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the ARIA accessible landmark roles.
|
|
3
|
+
*/
|
|
4
|
+
declare enum AriaLandmarkRole {
|
|
5
|
+
/**
|
|
6
|
+
* No explicit role is applicable.
|
|
7
|
+
*
|
|
8
|
+
* The interpretation of this value depends on the element which defines a property with this type.
|
|
9
|
+
* Normally this value means that no accessible landmark should be written.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
None = "None",
|
|
14
|
+
/**
|
|
15
|
+
* The ARIA role <code>banner</code>.
|
|
16
|
+
*
|
|
17
|
+
* A banner usually appears at the top of the page and typically spans the full width.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
Banner = "Banner",
|
|
22
|
+
/**
|
|
23
|
+
* The ARIA role <code>main</code>.
|
|
24
|
+
*
|
|
25
|
+
* The main content of a page.
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
Main = "Main",
|
|
30
|
+
/**
|
|
31
|
+
* The ARIA role <code>region</code>.
|
|
32
|
+
*
|
|
33
|
+
* A section of a page, that is important enough to be included in a page summary or table of contents.
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
Region = "Region",
|
|
38
|
+
/**
|
|
39
|
+
* The ARIA role <code>navigation</code>.
|
|
40
|
+
*
|
|
41
|
+
* A region that contains a collection of items and objects that, as a whole, combine to create a navigation facility.
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
Navigation = "Navigation",
|
|
46
|
+
/**
|
|
47
|
+
* The ARIA role <code>search</code>.
|
|
48
|
+
*
|
|
49
|
+
* A region that contains a collection of items and objects that, as a whole, combine to create a search facility.
|
|
50
|
+
*
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
Search = "Search",
|
|
54
|
+
/**
|
|
55
|
+
* The ARIA role <code>complementary</code>.
|
|
56
|
+
*
|
|
57
|
+
* A section of the page, designed to be complementary to the main content at a similar level in the DOM hierarchy.
|
|
58
|
+
*
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
Complementary = "Complementary",
|
|
62
|
+
/**
|
|
63
|
+
* The ARIA role <code>form</code>.
|
|
64
|
+
*
|
|
65
|
+
* A region that contains a collection of items and objects that, as a whole, combine to create a form.
|
|
66
|
+
*
|
|
67
|
+
* @public
|
|
68
|
+
*/
|
|
69
|
+
Form = "Form",
|
|
70
|
+
/**
|
|
71
|
+
* The ARIA role <code>contentinfo</code>.
|
|
72
|
+
*
|
|
73
|
+
* A region that contains information about the content on the page.
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
ContentInfo = "ContentInfo"
|
|
78
|
+
}
|
|
79
|
+
export default AriaLandmarkRole;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the ARIA accessible landmark roles.
|
|
3
|
+
*/
|
|
4
|
+
var AriaLandmarkRole;
|
|
5
|
+
(function (AriaLandmarkRole) {
|
|
6
|
+
/**
|
|
7
|
+
* No explicit role is applicable.
|
|
8
|
+
*
|
|
9
|
+
* The interpretation of this value depends on the element which defines a property with this type.
|
|
10
|
+
* Normally this value means that no accessible landmark should be written.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
AriaLandmarkRole["None"] = "None";
|
|
15
|
+
/**
|
|
16
|
+
* The ARIA role <code>banner</code>.
|
|
17
|
+
*
|
|
18
|
+
* A banner usually appears at the top of the page and typically spans the full width.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
AriaLandmarkRole["Banner"] = "Banner";
|
|
23
|
+
/**
|
|
24
|
+
* The ARIA role <code>main</code>.
|
|
25
|
+
*
|
|
26
|
+
* The main content of a page.
|
|
27
|
+
*
|
|
28
|
+
* @public
|
|
29
|
+
*/
|
|
30
|
+
AriaLandmarkRole["Main"] = "Main";
|
|
31
|
+
/**
|
|
32
|
+
* The ARIA role <code>region</code>.
|
|
33
|
+
*
|
|
34
|
+
* A section of a page, that is important enough to be included in a page summary or table of contents.
|
|
35
|
+
*
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
AriaLandmarkRole["Region"] = "Region";
|
|
39
|
+
/**
|
|
40
|
+
* The ARIA role <code>navigation</code>.
|
|
41
|
+
*
|
|
42
|
+
* A region that contains a collection of items and objects that, as a whole, combine to create a navigation facility.
|
|
43
|
+
*
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
AriaLandmarkRole["Navigation"] = "Navigation";
|
|
47
|
+
/**
|
|
48
|
+
* The ARIA role <code>search</code>.
|
|
49
|
+
*
|
|
50
|
+
* A region that contains a collection of items and objects that, as a whole, combine to create a search facility.
|
|
51
|
+
*
|
|
52
|
+
* @public
|
|
53
|
+
*/
|
|
54
|
+
AriaLandmarkRole["Search"] = "Search";
|
|
55
|
+
/**
|
|
56
|
+
* The ARIA role <code>complementary</code>.
|
|
57
|
+
*
|
|
58
|
+
* A section of the page, designed to be complementary to the main content at a similar level in the DOM hierarchy.
|
|
59
|
+
*
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
AriaLandmarkRole["Complementary"] = "Complementary";
|
|
63
|
+
/**
|
|
64
|
+
* The ARIA role <code>form</code>.
|
|
65
|
+
*
|
|
66
|
+
* A region that contains a collection of items and objects that, as a whole, combine to create a form.
|
|
67
|
+
*
|
|
68
|
+
* @public
|
|
69
|
+
*/
|
|
70
|
+
AriaLandmarkRole["Form"] = "Form";
|
|
71
|
+
/**
|
|
72
|
+
* The ARIA role <code>contentinfo</code>.
|
|
73
|
+
*
|
|
74
|
+
* A region that contains information about the content on the page.
|
|
75
|
+
*
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
AriaLandmarkRole["ContentInfo"] = "ContentInfo";
|
|
79
|
+
})(AriaLandmarkRole || (AriaLandmarkRole = {}));
|
|
80
|
+
export default AriaLandmarkRole;
|
|
81
|
+
//# sourceMappingURL=AriaLandmarkRole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AriaLandmarkRole.js","sourceRoot":"","sources":["../../src/types/AriaLandmarkRole.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,IAAK,gBAmFJ;AAnFD,WAAK,gBAAgB;IACpB;;;;;;;OAOG;IACH,iCAAa,CAAA;IAEb;;;;;;OAMG;IACH,qCAAiB,CAAA;IAEjB;;;;;;OAMG;IACH,iCAAa,CAAA;IAEb;;;;;;OAMG;IACH,qCAAiB,CAAA;IAEjB;;;;;;OAMG;IACH,6CAAyB,CAAA;IAEzB;;;;;;OAMG;IACH,qCAAiB,CAAA;IAEjB;;;;;;OAMG;IACH,mDAA+B,CAAA;IAE/B;;;;;;OAMG;IACH,iCAAa,CAAA;IAEb;;;;;;OAMG;IACH,+CAA2B,CAAA;AAE5B,CAAC,EAnFI,gBAAgB,KAAhB,gBAAgB,QAmFpB;AAED,eAAe,gBAAgB,CAAC","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"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types of ARIA roles.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
declare enum AriaRole {
|
|
6
|
+
/**
|
|
7
|
+
* The ARIA role "alertdialog".
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
AlertDialog = "AlertDialog",
|
|
11
|
+
/**
|
|
12
|
+
* The ARIA role "button".
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
Button = "Button",
|
|
16
|
+
/**
|
|
17
|
+
* The ARIA role "dialog".
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
Dialog = "Dialog",
|
|
21
|
+
/**
|
|
22
|
+
* The ARIA role "link".
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
Link = "Link"
|
|
26
|
+
}
|
|
27
|
+
export default AriaRole;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types of ARIA roles.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
var AriaRole;
|
|
6
|
+
(function (AriaRole) {
|
|
7
|
+
/**
|
|
8
|
+
* The ARIA role "alertdialog".
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
AriaRole["AlertDialog"] = "AlertDialog";
|
|
12
|
+
/**
|
|
13
|
+
* The ARIA role "button".
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
AriaRole["Button"] = "Button";
|
|
17
|
+
/**
|
|
18
|
+
* The ARIA role "dialog".
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
AriaRole["Dialog"] = "Dialog";
|
|
22
|
+
/**
|
|
23
|
+
* The ARIA role "link".
|
|
24
|
+
* @public
|
|
25
|
+
*/
|
|
26
|
+
AriaRole["Link"] = "Link";
|
|
27
|
+
})(AriaRole || (AriaRole = {}));
|
|
28
|
+
export default AriaRole;
|
|
29
|
+
//# sourceMappingURL=AriaRole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AriaRole.js","sourceRoot":"","sources":["../../src/types/AriaRole.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,IAAK,QAwBJ;AAxBD,WAAK,QAAQ;IACZ;;;MAGE;IACF,uCAA2B,CAAA;IAE3B;;;OAGG;IACH,6BAAiB,CAAA;IAEjB;;;OAGG;IACH,6BAAiB,CAAA;IAEjB;;;OAGG;IACH,yBAAa,CAAA;AACd,CAAC,EAxBI,QAAQ,KAAR,QAAQ,QAwBZ;AAED,eAAe,QAAQ,CAAC","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"]}
|
package/dist/types/CSSColor.d.ts
CHANGED
|
@@ -3,10 +3,6 @@ import DataType from "./DataType.js";
|
|
|
3
3
|
* @class
|
|
4
4
|
* CSSColor data type.
|
|
5
5
|
*
|
|
6
|
-
* @extends sap.ui.webc.base.types.DataType
|
|
7
|
-
* @constructor
|
|
8
|
-
* @author SAP SE
|
|
9
|
-
* @alias sap.ui.webc.base.types.CSSColor
|
|
10
6
|
* @public
|
|
11
7
|
*/
|
|
12
8
|
declare class CSSColor extends DataType {
|
package/dist/types/CSSColor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSSColor.js","sourceRoot":"","sources":["../../src/types/CSSColor.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC
|
|
1
|
+
{"version":3,"file":"CSSColor.js","sourceRoot":"","sources":["../../src/types/CSSColor.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;GAKG;AACH,MAAM,QAAS,SAAQ,QAAQ;IAC9B,MAAM,CAAU,OAAO,CAAC,KAAa;QACpC,OAAO,8/DAA8/D,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC,CAAC,sBAAsB;IAC3iE,CAAC;CACD;AAED,eAAe,QAAQ,CAAC","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"]}
|
package/dist/types/CSSSize.d.ts
CHANGED
package/dist/types/CSSSize.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSSSize.js","sourceRoot":"","sources":["../../src/types/CSSSize.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC
|
|
1
|
+
{"version":3,"file":"CSSSize.js","sourceRoot":"","sources":["../../src/types/CSSSize.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;GAKG;AACH,MAAM,OAAQ,SAAQ,QAAQ;IAC7B,MAAM,CAAC,OAAO,CAAC,KAAa;QAC3B,OAAO,ocAAoc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,sBAAsB;IAChf,CAAC;CACD;AAED,eAAe,OAAO,CAAC","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"]}
|
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Different calendar types.
|
|
3
3
|
*
|
|
4
|
-
* @readonly
|
|
5
|
-
* @enum {string}
|
|
6
4
|
* @public
|
|
7
|
-
* @author SAP SE
|
|
8
|
-
* @alias sap.ui.webc.base.types.CalendarType
|
|
9
5
|
*/
|
|
10
6
|
declare enum CalendarType {
|
|
11
7
|
/**
|
|
12
8
|
* @public
|
|
13
|
-
* @type {Gregorian}
|
|
14
9
|
*/
|
|
15
10
|
Gregorian = "Gregorian",
|
|
16
11
|
/**
|
|
17
12
|
* @public
|
|
18
|
-
* @type {Islamic}
|
|
19
13
|
*/
|
|
20
14
|
Islamic = "Islamic",
|
|
21
15
|
/**
|
|
22
16
|
* @public
|
|
23
|
-
* @type {Japanese}
|
|
24
17
|
*/
|
|
25
18
|
Japanese = "Japanese",
|
|
26
19
|
/**
|
|
27
20
|
* @public
|
|
28
|
-
* @type {Buddhist}
|
|
29
21
|
*/
|
|
30
22
|
Buddhist = "Buddhist",
|
|
31
23
|
/**
|
|
32
24
|
* @public
|
|
33
|
-
* @type {Persian}
|
|
34
25
|
*/
|
|
35
26
|
Persian = "Persian"
|
|
36
27
|
}
|