@ui5/webcomponents-base 0.0.0-dcd8e5389 → 0.0.0-ddc5fe31b
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/.eslintignore +1 -1
- package/CHANGELOG.md +492 -0
- package/README.md +6 -1
- package/bundle.esm.js +4 -1
- package/dist/.tsbuildinfo +1 -0
- package/dist/AssetRegistry.d.ts +2 -2
- package/dist/AssetRegistry.js +2 -2
- package/dist/AssetRegistry.js.map +1 -1
- package/dist/Boot.js +1 -1
- package/dist/Boot.js.map +1 -1
- package/dist/CustomElementsScope.d.ts +4 -4
- package/dist/CustomElementsScope.js +2 -2
- package/dist/CustomElementsScope.js.map +1 -1
- package/dist/CustomElementsScopeUtils.d.ts +8 -1
- package/dist/CustomElementsScopeUtils.js +13 -1
- package/dist/CustomElementsScopeUtils.js.map +1 -1
- package/dist/Device.d.ts +2 -1
- package/dist/Device.js +10 -1
- package/dist/Device.js.map +1 -1
- package/dist/EventProvider.js +1 -1
- package/dist/EventProvider.js.map +1 -1
- package/dist/FontFace.js +1 -1
- package/dist/FontFace.js.map +1 -1
- package/dist/IgnoreCustomElements.d.ts +27 -0
- package/dist/IgnoreCustomElements.js +39 -0
- package/dist/IgnoreCustomElements.js.map +1 -0
- package/dist/InitialConfiguration.d.ts +2 -1
- package/dist/InitialConfiguration.js +7 -2
- package/dist/InitialConfiguration.js.map +1 -1
- package/dist/Keys.d.ts +5 -1
- package/dist/Keys.js +109 -106
- package/dist/Keys.js.map +1 -1
- package/dist/ManagedStyles.d.ts +5 -4
- package/dist/ManagedStyles.js +95 -15
- package/dist/ManagedStyles.js.map +1 -1
- package/dist/MediaRange.d.ts +0 -6
- package/dist/MediaRange.js +5 -15
- package/dist/MediaRange.js.map +1 -1
- package/dist/StaticAreaItem.d.ts +3 -4
- package/dist/StaticAreaItem.js +9 -8
- package/dist/StaticAreaItem.js.map +1 -1
- package/dist/UI5Element.d.ts +28 -25
- package/dist/UI5Element.js +48 -37
- package/dist/UI5Element.js.map +1 -1
- package/dist/UI5ElementMetadata.d.ts +4 -11
- package/dist/UI5ElementMetadata.js +3 -11
- package/dist/UI5ElementMetadata.js.map +1 -1
- package/dist/asset-registries/Icons.d.ts +4 -3
- package/dist/asset-registries/Icons.js +28 -17
- package/dist/asset-registries/Icons.js.map +1 -1
- package/dist/asset-registries/Illustrations.d.ts +1 -0
- package/dist/asset-registries/Illustrations.js +50 -20
- package/dist/asset-registries/Illustrations.js.map +1 -1
- package/dist/asset-registries/LocaleData.js.map +1 -1
- package/dist/asset-registries/Themes.d.ts +4 -3
- package/dist/asset-registries/Themes.js +26 -10
- package/dist/asset-registries/Themes.js.map +1 -1
- package/dist/asset-registries/i18n.js +2 -1
- package/dist/asset-registries/i18n.js.map +1 -1
- package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.d.ts +1 -2
- package/dist/{assets-meta → asset-registries/util}/IconCollectionsAlias.js +1 -2
- package/dist/asset-registries/util/IconCollectionsAlias.js.map +1 -0
- package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +20 -0
- package/dist/asset-registries/util/IconCollectionsByTheme.js +42 -0
- package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -0
- package/dist/asset-registries/util/getIconCollectionByTheme.d.ts +13 -0
- package/dist/asset-registries/util/getIconCollectionByTheme.js +29 -0
- package/dist/asset-registries/util/getIconCollectionByTheme.js.map +1 -0
- package/dist/config/AnimationMode.d.ts +2 -2
- package/dist/config/AnimationMode.js +1 -1
- package/dist/config/AnimationMode.js.map +1 -1
- package/dist/config/CalendarType.d.ts +8 -1
- package/dist/config/CalendarType.js +18 -2
- package/dist/config/CalendarType.js.map +1 -1
- package/dist/config/Icons.d.ts +2 -17
- package/dist/config/Icons.js +1 -60
- package/dist/config/Icons.js.map +1 -1
- package/dist/config/ThemeRoot.d.ts +29 -0
- package/dist/config/ThemeRoot.js +59 -0
- package/dist/config/ThemeRoot.js.map +1 -0
- package/dist/connectToComponent.d.ts +9 -0
- package/dist/connectToComponent.js +59 -0
- package/dist/connectToComponent.js.map +1 -0
- package/dist/css/FontFace.css +47 -17
- package/dist/custom-elements-internal.json +2765 -0
- package/dist/custom-elements.json +2528 -0
- package/dist/decorators/customElement.d.ts +1 -1
- package/dist/decorators/customElement.js +1 -1
- 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/delegate/ItemNavigation.d.ts +1 -0
- package/dist/delegate/ItemNavigation.js +4 -5
- 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/delegate/ScrollEnablement.js +2 -2
- package/dist/delegate/ScrollEnablement.js.map +1 -1
- package/dist/features/OpenUI5Enablement.d.ts +1 -1
- package/dist/features/OpenUI5Support.d.ts +13 -3
- package/dist/features/OpenUI5Support.js +89 -33
- package/dist/features/OpenUI5Support.js.map +1 -1
- package/dist/generated/AssetParameters.d.ts +6 -0
- package/dist/generated/AssetParameters.js +3 -10
- package/dist/generated/AssetParameters.js.map +1 -0
- package/dist/generated/VersionInfo.d.ts +10 -0
- package/dist/generated/VersionInfo.js +9 -8
- package/dist/generated/VersionInfo.js.map +1 -0
- package/dist/generated/css/FontFace.css.js +1 -1
- package/dist/generated/css/FontFace.css.js.map +1 -1
- package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.d.ts +3 -3
- package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.js.map +1 -1
- package/dist/getSharedResource.js +7 -1
- package/dist/getSharedResource.js.map +1 -1
- package/dist/i18nBundle.d.ts +2 -4
- package/dist/i18nBundle.js +3 -5
- package/dist/i18nBundle.js.map +1 -1
- package/dist/locale/RTLAwareRegistry.d.ts +1 -1
- package/dist/locale/RTLAwareRegistry.js.map +1 -1
- package/dist/renderer/LitRenderer.d.ts +2 -2
- 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 +112 -97
- 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 +3 -0
- package/dist/ssr-dom.js.map +1 -0
- package/dist/theming/applyTheme.js +8 -7
- package/dist/theming/applyTheme.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/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 +11 -0
- package/dist/types/CSSSize.js +14 -0
- package/dist/types/CSSSize.js.map +1 -0
- 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 +0 -4
- package/dist/types/DOMReference.js +0 -4
- 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 +5 -10
- package/dist/types/InvisibleMessageMode.js +4 -11
- package/dist/types/InvisibleMessageMode.js.map +1 -1
- package/dist/types/ItemNavigationBehavior.d.ts +0 -6
- package/dist/types/ItemNavigationBehavior.js +0 -6
- package/dist/types/ItemNavigationBehavior.js.map +1 -1
- package/dist/types/NavigationMode.d.ts +0 -8
- package/dist/types/NavigationMode.js +0 -8
- package/dist/types/NavigationMode.js.map +1 -1
- package/dist/types/ValueState.d.ts +0 -14
- package/dist/types/ValueState.js +0 -14
- package/dist/types/ValueState.js.map +1 -1
- package/dist/updateShadowRoot.js +2 -1
- package/dist/updateShadowRoot.js.map +1 -1
- package/dist/util/ColorConversion.js +200 -195
- package/dist/util/ColorConversion.js.map +1 -1
- package/dist/util/PopupUtils.js +1 -1
- package/dist/util/PopupUtils.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/getClassCopy.d.ts +52 -33
- package/dist/util/getDesigntimePropertyAsArray.d.ts +2 -2
- package/dist/util/getDesigntimePropertyAsArray.js +2 -1
- package/dist/util/getDesigntimePropertyAsArray.js.map +1 -1
- package/dist/util/getParentElement.d.ts +2 -0
- package/dist/util/getParentElement.js +5 -0
- package/dist/util/getParentElement.js.map +1 -0
- package/dist/util/getSingletonElementInstance.d.ts +10 -1
- package/dist/util/getSingletonElementInstance.js +11 -2
- package/dist/util/getSingletonElementInstance.js.map +1 -1
- package/dist/util/isElementContainingBlock.d.ts +2 -0
- package/dist/util/isElementContainingBlock.js +11 -0
- package/dist/util/isElementContainingBlock.js.map +1 -0
- package/index.js +3 -3
- package/lib/generate-asset-parameters/index.js +2 -2
- package/lib/generate-version-info/index.js +2 -2
- package/package-scripts.cjs +12 -18
- package/package.json +14 -6
- package/src/css/FontFace.css +47 -17
- package/tsconfig.json +4 -0
- package/used-modules.txt +4 -0
- package/dist/api.json +0 -1
- package/dist/assets/Boot.34b7cea0.css +0 -1
- package/dist/assets/Boot.f21d1bf8.js +0 -9
- package/dist/assets/bundle.esm.fff719c1.js +0 -50
- package/dist/assets-meta/IconCollectionsAlias.js.map +0 -1
- package/dist/config/ThemeRoots.d.ts +0 -4
- package/dist/config/ThemeRoots.js +0 -28
- package/dist/config/ThemeRoots.js.map +0 -1
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { DEFAULT_LANGUAGE } from "../generated/AssetParameters.js";
|
|
2
|
-
|
|
2
|
+
const isSSR = typeof document === "undefined";
|
|
3
|
+
const detectNavigatorLanguage = () => {
|
|
4
|
+
if (isSSR) {
|
|
5
|
+
return DEFAULT_LANGUAGE;
|
|
6
|
+
}
|
|
3
7
|
const browserLanguages = navigator.languages;
|
|
4
8
|
const navigatorLanguage = () => {
|
|
5
9
|
return navigator.language;
|
|
@@ -7,4 +11,5 @@ export default () => {
|
|
|
7
11
|
const rawLocale = (browserLanguages && browserLanguages[0]) || navigatorLanguage();
|
|
8
12
|
return rawLocale || DEFAULT_LANGUAGE;
|
|
9
13
|
};
|
|
14
|
+
export default detectNavigatorLanguage;
|
|
10
15
|
//# sourceMappingURL=detectNavigatorLanguage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detectNavigatorLanguage.js","sourceRoot":"","sources":["../../src/util/detectNavigatorLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,
|
|
1
|
+
{"version":3,"file":"detectNavigatorLanguage.js","sourceRoot":"","sources":["../../src/util/detectNavigatorLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,MAAM,KAAK,GAAG,OAAO,QAAQ,KAAK,WAAW,CAAC;AAE9C,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACpC,IAAI,KAAK,EAAE;QACV,OAAO,gBAAgB,CAAC;KACxB;IACD,MAAM,gBAAgB,GAAG,SAAS,CAAC,SAAS,CAAC;IAE7C,MAAM,iBAAiB,GAAG,GAAG,EAAE;QAC9B,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC3B,CAAC,CAAC;IAEF,MAAM,SAAS,GAAG,CAAC,gBAAgB,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,EAAE,CAAC;IAEnF,OAAO,SAAS,IAAI,gBAAgB,CAAC;AACtC,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC","sourcesContent":["import { DEFAULT_LANGUAGE } from \"../generated/AssetParameters.js\";\n\nconst isSSR = typeof document === \"undefined\";\n\nconst detectNavigatorLanguage = () => {\n\tif (isSSR) {\n\t\treturn DEFAULT_LANGUAGE;\n\t}\n\tconst browserLanguages = navigator.languages;\n\n\tconst navigatorLanguage = () => {\n\t\treturn navigator.language;\n\t};\n\n\tconst rawLocale = (browserLanguages && browserLanguages[0]) || navigatorLanguage();\n\n\treturn rawLocale || DEFAULT_LANGUAGE;\n};\n\nexport default detectNavigatorLanguage;\n"]}
|
|
@@ -4,9 +4,10 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
4
4
|
__id?: string | undefined;
|
|
5
5
|
_suppressInvalidation: boolean;
|
|
6
6
|
_changedState: import("../UI5Element.js").ChangeInfo[];
|
|
7
|
-
|
|
7
|
+
_invalidationEventProvider: import("../EventProvider.js").default<import("../UI5Element.js").ChangeInfo & {
|
|
8
8
|
target: UI5Element;
|
|
9
9
|
}, void>;
|
|
10
|
+
_componentStateFinalizedEventProvider: import("../EventProvider.js").default<void, void>;
|
|
10
11
|
_inDOM: boolean;
|
|
11
12
|
_fullyConnected: boolean;
|
|
12
13
|
_childChangeListeners: Map<string, (param: import("../UI5Element.js").ChangeInfo & {
|
|
@@ -18,7 +19,6 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
18
19
|
};
|
|
19
20
|
_doNotSyncAttributes: Set<string>;
|
|
20
21
|
_state: import("../UI5ElementMetadata.js").State;
|
|
21
|
-
_onComponentStateFinalized?: (() => void) | undefined;
|
|
22
22
|
_getRealDomRef?: (() => HTMLElement) | undefined;
|
|
23
23
|
staticAreaItem?: import("../StaticAreaItem.js").default | undefined;
|
|
24
24
|
readonly _id: string;
|
|
@@ -46,9 +46,9 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
46
46
|
_updateAttribute(name: string, newValue: import("../UI5ElementMetadata.js").PropertyValue): void;
|
|
47
47
|
_upgradeProperty(this: Record<string, any>, propertyName: string): void;
|
|
48
48
|
_upgradeAllProperties(): void;
|
|
49
|
-
_getChildChangeListener(slotName: string): (
|
|
49
|
+
_getChildChangeListener(slotName: string): (param: import("../UI5Element.js").ChangeInfo & {
|
|
50
50
|
target: UI5Element;
|
|
51
|
-
}) => void
|
|
51
|
+
}) => void;
|
|
52
52
|
_getSlotChangeListener(slotName: string): (this: HTMLSlotElement, ev: Event) => void;
|
|
53
53
|
_attachSlotChange(child: HTMLSlotElement, slotName: string): void;
|
|
54
54
|
_detachSlotChange(child: HTMLSlotElement, slotName: string): void;
|
|
@@ -66,6 +66,8 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
66
66
|
fireEvent<T>(name: string, data?: T | undefined, cancelable?: boolean, bubbles?: boolean): boolean;
|
|
67
67
|
_fireEvent<T_1>(name: string, data?: T_1 | undefined, cancelable?: boolean, bubbles?: boolean): boolean;
|
|
68
68
|
getSlottedNodes<T_2 = Node>(slotName: string): T_2[];
|
|
69
|
+
attachComponentStateFinalized(callback: () => void): void;
|
|
70
|
+
detachComponentStateFinalized(callback: () => void): void;
|
|
69
71
|
readonly effectiveDir: string | undefined;
|
|
70
72
|
readonly isUI5Element: boolean;
|
|
71
73
|
readonly classes: import("../types.js").ClassMap;
|
|
@@ -85,11 +87,15 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
85
87
|
readonly offsetTop: number;
|
|
86
88
|
readonly offsetWidth: number;
|
|
87
89
|
outerText: string;
|
|
90
|
+
popover: string | null;
|
|
88
91
|
spellcheck: boolean;
|
|
89
92
|
title: string;
|
|
90
93
|
translate: boolean;
|
|
91
94
|
attachInternals(): ElementInternals;
|
|
92
95
|
click(): void;
|
|
96
|
+
hidePopover(): void;
|
|
97
|
+
showPopover(): void;
|
|
98
|
+
togglePopover(force?: boolean | undefined): void;
|
|
93
99
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
94
100
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
95
101
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
@@ -118,9 +124,12 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
118
124
|
slot: string;
|
|
119
125
|
readonly tagName: string;
|
|
120
126
|
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
127
|
+
checkVisibility(options?: CheckVisibilityOptions | undefined): boolean;
|
|
121
128
|
closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2] | null;
|
|
122
129
|
closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3] | null;
|
|
130
|
+
closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4] | null;
|
|
123
131
|
closest<E extends Element = Element>(selectors: string): E | null;
|
|
132
|
+
computedStyleMap(): StylePropertyMapReadOnly;
|
|
124
133
|
getAttribute(qualifiedName: string): string | null;
|
|
125
134
|
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
126
135
|
getAttributeNames(): string[];
|
|
@@ -129,11 +138,14 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
129
138
|
getBoundingClientRect(): DOMRect;
|
|
130
139
|
getClientRects(): DOMRectList;
|
|
131
140
|
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
132
|
-
getElementsByTagName<
|
|
133
|
-
getElementsByTagName<
|
|
141
|
+
getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
|
|
142
|
+
getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
|
|
143
|
+
getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
|
|
144
|
+
getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
|
|
134
145
|
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
135
146
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
136
147
|
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
148
|
+
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
137
149
|
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
138
150
|
hasAttribute(qualifiedName: string): boolean;
|
|
139
151
|
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
@@ -191,24 +203,24 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
191
203
|
normalize(): void;
|
|
192
204
|
removeChild<T_5 extends Node>(child: T_5): T_5;
|
|
193
205
|
replaceChild<T_6 extends Node>(node: Node, child: T_6): T_6;
|
|
194
|
-
readonly
|
|
195
|
-
readonly
|
|
196
|
-
readonly
|
|
197
|
-
readonly
|
|
198
|
-
readonly
|
|
199
|
-
readonly
|
|
200
|
-
readonly
|
|
201
|
-
readonly
|
|
202
|
-
readonly
|
|
203
|
-
readonly
|
|
204
|
-
readonly
|
|
205
|
-
readonly
|
|
206
|
-
readonly
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
209
|
-
readonly
|
|
210
|
-
readonly
|
|
211
|
-
readonly
|
|
206
|
+
readonly ELEMENT_NODE: 1;
|
|
207
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
208
|
+
readonly TEXT_NODE: 3;
|
|
209
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
210
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
211
|
+
readonly ENTITY_NODE: 6;
|
|
212
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
213
|
+
readonly COMMENT_NODE: 8;
|
|
214
|
+
readonly DOCUMENT_NODE: 9;
|
|
215
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
216
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
217
|
+
readonly NOTATION_NODE: 12;
|
|
218
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
219
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
220
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
221
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
222
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
223
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
212
224
|
dispatchEvent(event: Event): boolean;
|
|
213
225
|
ariaAtomic: string | null;
|
|
214
226
|
ariaAutoComplete: string | null;
|
|
@@ -216,7 +228,6 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
216
228
|
ariaChecked: string | null;
|
|
217
229
|
ariaColCount: string | null;
|
|
218
230
|
ariaColIndex: string | null;
|
|
219
|
-
ariaColIndexText: string | null;
|
|
220
231
|
ariaColSpan: string | null;
|
|
221
232
|
ariaCurrent: string | null;
|
|
222
233
|
ariaDisabled: string | null;
|
|
@@ -240,7 +251,6 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
240
251
|
ariaRoleDescription: string | null;
|
|
241
252
|
ariaRowCount: string | null;
|
|
242
253
|
ariaRowIndex: string | null;
|
|
243
|
-
ariaRowIndexText: string | null;
|
|
244
254
|
ariaRowSpan: string | null;
|
|
245
255
|
ariaSelected: string | null;
|
|
246
256
|
ariaSetSize: string | null;
|
|
@@ -250,6 +260,9 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
250
260
|
ariaValueNow: string | null;
|
|
251
261
|
ariaValueText: string | null;
|
|
252
262
|
role: string | null;
|
|
263
|
+
ariaBraileLabel: string | null;
|
|
264
|
+
ariaBraileRoleDescription: string | null;
|
|
265
|
+
ariaDescription: string | null;
|
|
253
266
|
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined): Animation;
|
|
254
267
|
getAnimations(options?: GetAnimationsOptions | undefined): Animation[];
|
|
255
268
|
after(...nodes: (string | Node)[]): void;
|
|
@@ -265,17 +278,19 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
265
278
|
readonly lastElementChild: Element | null;
|
|
266
279
|
append(...nodes: (string | Node)[]): void;
|
|
267
280
|
prepend(...nodes: (string | Node)[]): void;
|
|
268
|
-
querySelector<
|
|
269
|
-
querySelector<
|
|
281
|
+
querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9] | null;
|
|
282
|
+
querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10] | null;
|
|
283
|
+
querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11] | null;
|
|
284
|
+
querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12] | null;
|
|
270
285
|
querySelector<E_1 extends Element = Element>(selectors: string): E_1 | null;
|
|
271
|
-
querySelectorAll<
|
|
272
|
-
querySelectorAll<
|
|
286
|
+
querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
|
|
287
|
+
querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
|
|
288
|
+
querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
|
|
289
|
+
querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
|
|
273
290
|
querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
|
|
274
291
|
replaceChildren(...nodes: (string | Node)[]): void;
|
|
275
292
|
readonly assignedSlot: HTMLSlotElement | null;
|
|
276
|
-
|
|
277
|
-
oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
278
|
-
onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
293
|
+
readonly attributeStyleMap: StylePropertyMap;
|
|
279
294
|
readonly style: CSSStyleDeclaration;
|
|
280
295
|
contentEditable: string;
|
|
281
296
|
enterKeyHint: string;
|
|
@@ -296,7 +311,9 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
296
311
|
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
297
312
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
298
313
|
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
314
|
+
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
299
315
|
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
316
|
+
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
300
317
|
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
301
318
|
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
302
319
|
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
@@ -329,6 +346,7 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
329
346
|
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
330
347
|
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
331
348
|
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
349
|
+
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
332
350
|
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
333
351
|
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
334
352
|
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -345,6 +363,7 @@ declare const getClassCopy: (klass: typeof UI5Element, constructorCallback: () =
|
|
|
345
363
|
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
346
364
|
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
347
365
|
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
366
|
+
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
348
367
|
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
349
368
|
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
350
369
|
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const designTimePropertyAsArray: (value: string) => string[] | null;
|
|
2
|
+
export default designTimePropertyAsArray;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
const designTimePropertyAsArray = (value) => {
|
|
2
2
|
const m = /\$([-a-z0-9A-Z._]+)(?::([^$]*))?\$/.exec(value);
|
|
3
3
|
return m && m[2] ? m[2].split(/,/) : null;
|
|
4
4
|
};
|
|
5
|
+
export default designTimePropertyAsArray;
|
|
5
6
|
//# sourceMappingURL=getDesigntimePropertyAsArray.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDesigntimePropertyAsArray.js","sourceRoot":"","sources":["../../src/util/getDesigntimePropertyAsArray.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"getDesigntimePropertyAsArray.js","sourceRoot":"","sources":["../../src/util/getDesigntimePropertyAsArray.ts"],"names":[],"mappings":"AAAA,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAAE,EAAE;IACnD,MAAM,CAAC,GAAG,oCAAoC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC3D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3C,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC","sourcesContent":["const designTimePropertyAsArray = (value: string) => {\n\tconst m = /\\$([-a-z0-9A-Z._]+)(?::([^$]*))?\\$/.exec(value);\n\treturn m && m[2] ? m[2].split(/,/) : null;\n};\n\nexport default designTimePropertyAsArray;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getParentElement.js","sourceRoot":"","sources":["../../src/util/getParentElement.ts"],"names":[],"mappings":"AAAA,MAAM,gBAAgB,GAAG,CAAC,EAAe,EAAE,EAAE;IAC5C,OAAO,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAE,EAAE,CAAC,UAAyB,CAAC,IAAI,CAAgB,CAAC;AAC/F,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["const getParentElement = (el: HTMLElement) => {\n\treturn (el.parentElement ? el.parentNode : (el.parentNode as ShadowRoot).host) as HTMLElement;\n};\n\nexport default getParentElement;\n"]}
|
|
@@ -1,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Returns a singleton HTML element, inserted in given parent element of HTML page,
|
|
3
|
+
* used mostly to store and share global resources between multiple UI5 Web Components runtimes.
|
|
4
|
+
*
|
|
5
|
+
* @param { string } tag the element tag/selector
|
|
6
|
+
* @param { HTMLElement } parentElement the parent element to insert the singleton element instance
|
|
7
|
+
* @param { Function } createEl a factory function for the element instantiation, by default document.createElement is used
|
|
8
|
+
* @returns { Element }
|
|
9
|
+
*/
|
|
10
|
+
declare const getSingletonElementInstance: (tag: string, parentElement?: HTMLElement, createEl?: () => Element) => Element;
|
|
2
11
|
export default getSingletonElementInstance;
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Returns a singleton HTML element, inserted in given parent element of HTML page,
|
|
3
|
+
* used mostly to store and share global resources between multiple UI5 Web Components runtimes.
|
|
4
|
+
*
|
|
5
|
+
* @param { string } tag the element tag/selector
|
|
6
|
+
* @param { HTMLElement } parentElement the parent element to insert the singleton element instance
|
|
7
|
+
* @param { Function } createEl a factory function for the element instantiation, by default document.createElement is used
|
|
8
|
+
* @returns { Element }
|
|
9
|
+
*/
|
|
10
|
+
const getSingletonElementInstance = (tag, parentElement = document.body, createEl) => {
|
|
2
11
|
let el = document.querySelector(tag);
|
|
3
12
|
if (el) {
|
|
4
13
|
return el;
|
|
5
14
|
}
|
|
6
|
-
el = document.createElement(tag);
|
|
15
|
+
el = createEl ? createEl() : document.createElement(tag);
|
|
7
16
|
return parentElement.insertBefore(el, parentElement.firstChild);
|
|
8
17
|
};
|
|
9
18
|
export default getSingletonElementInstance;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSingletonElementInstance.js","sourceRoot":"","sources":["../../src/util/getSingletonElementInstance.ts"],"names":[],"mappings":"AAAA,MAAM,2BAA2B,GAAG,CAAC,GAAW,EAAE,gBAA6B,QAAQ,CAAC,IAAI,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"getSingletonElementInstance.js","sourceRoot":"","sources":["../../src/util/getSingletonElementInstance.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,2BAA2B,GAAG,CAAC,GAAW,EAAE,gBAA6B,QAAQ,CAAC,IAAI,EAAE,QAAwB,EAAE,EAAE;IACzH,IAAI,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAErC,IAAI,EAAE,EAAE;QACP,OAAO,EAAE,CAAC;KACV;IAED,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAEzD,OAAO,aAAa,CAAC,YAAY,CAAC,EAAE,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;AACjE,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC","sourcesContent":["/**\n * Returns a singleton HTML element, inserted in given parent element of HTML page,\n * used mostly to store and share global resources between multiple UI5 Web Components runtimes.\n *\n * @param { string } tag the element tag/selector\n * @param { HTMLElement } parentElement the parent element to insert the singleton element instance\n * @param { Function } createEl a factory function for the element instantiation, by default document.createElement is used\n * @returns { Element }\n */\nconst getSingletonElementInstance = (tag: string, parentElement: HTMLElement = document.body, createEl?: () => Element) => {\n\tlet el = document.querySelector(tag);\n\n\tif (el) {\n\t\treturn el;\n\t}\n\n\tel = createEl ? createEl() : document.createElement(tag);\n\n\treturn parentElement.insertBefore(el, parentElement.firstChild);\n};\n\nexport default getSingletonElementInstance;\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const isElementContainingBlock = (el) => {
|
|
2
|
+
const computedStyle = getComputedStyle(el);
|
|
3
|
+
return ["size", "inline-size"].indexOf(computedStyle.containerType) > -1
|
|
4
|
+
|| ["transform", "perspective"].indexOf(computedStyle.willChange) > -1
|
|
5
|
+
|| ["layout", "paint", "strict", "content"].indexOf(computedStyle.contain) > -1
|
|
6
|
+
|| (computedStyle.transform && computedStyle.transform !== "none")
|
|
7
|
+
|| (computedStyle.perspective && computedStyle.perspective !== "none")
|
|
8
|
+
|| (computedStyle.backdropFilter && computedStyle.backdropFilter !== "none");
|
|
9
|
+
};
|
|
10
|
+
export default isElementContainingBlock;
|
|
11
|
+
//# sourceMappingURL=isElementContainingBlock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isElementContainingBlock.js","sourceRoot":"","sources":["../../src/util/isElementContainingBlock.ts"],"names":[],"mappings":"AAAA,MAAM,wBAAwB,GAAG,CAAC,EAAe,EAAE,EAAE;IACpD,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE3C,OAAO,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;WACrE,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;WACnE,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;WAC5E,CAAC,aAAa,CAAC,SAAS,IAAI,aAAa,CAAC,SAAS,KAAK,MAAM,CAAC;WAC/D,CAAC,aAAa,CAAC,WAAW,IAAI,aAAa,CAAC,WAAW,KAAK,MAAM,CAAC;WACnE,CAAC,aAAa,CAAC,cAAc,IAAI,aAAa,CAAC,cAAc,KAAK,MAAM,CAAC,CAAC;AAC9E,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC","sourcesContent":["const isElementContainingBlock = (el: HTMLElement) => {\n\tconst computedStyle = getComputedStyle(el);\n\n\treturn [\"size\", \"inline-size\"].indexOf(computedStyle.containerType) > -1\n\t|| [\"transform\", \"perspective\"].indexOf(computedStyle.willChange) > -1\n\t|| [\"layout\", \"paint\", \"strict\", \"content\"].indexOf(computedStyle.contain) > -1\n\t|| (computedStyle.transform && computedStyle.transform !== \"none\")\n\t|| (computedStyle.perspective && computedStyle.perspective !== \"none\")\n\t|| (computedStyle.backdropFilter && computedStyle.backdropFilter !== \"none\");\n};\n\nexport default isElementContainingBlock;\n"]}
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// animations/
|
|
2
2
|
import scroll from "./dist/animations/scroll.js";
|
|
3
3
|
import slideDown from "./dist/animations/slideDown.js";
|
|
4
|
-
import slideUp from "./dist/animations/
|
|
4
|
+
import slideUp from "./dist/animations/slideUp.js";
|
|
5
5
|
|
|
6
6
|
// config/
|
|
7
7
|
import { getAnimationMode, setAnimationMode } from "./dist/config/AnimationMode.js";
|
|
@@ -10,9 +10,9 @@ import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "./dist/conf
|
|
|
10
10
|
import {
|
|
11
11
|
setDefaultIconCollection,
|
|
12
12
|
getDefaultIconCollection,
|
|
13
|
-
getEffectiveIconCollection,
|
|
14
|
-
RegisteredIconCollection,
|
|
15
13
|
} from "./dist/config/Icons.js";
|
|
14
|
+
import { RegisteredIconCollection } from "./dist/asset-registries/util/IconCollectionsByTheme.js";
|
|
15
|
+
import getEffectiveIconCollection from "./dist/asset-registries/util/getIconCollectionsByTheme.js";
|
|
16
16
|
import {
|
|
17
17
|
getLanguage,
|
|
18
18
|
setLanguage,
|
|
@@ -18,8 +18,8 @@ export {
|
|
|
18
18
|
};`;
|
|
19
19
|
|
|
20
20
|
const generate = async () => {
|
|
21
|
-
await fs.mkdir("
|
|
22
|
-
return fs.writeFile("
|
|
21
|
+
await fs.mkdir("src/generated/", { recursive: true });
|
|
22
|
+
return fs.writeFile("src/generated/AssetParameters.ts", fileContent);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
generate().then(() => {
|
|
@@ -23,8 +23,8 @@ const generate = async () => {
|
|
|
23
23
|
};
|
|
24
24
|
export default VersionInfo;`;
|
|
25
25
|
|
|
26
|
-
await fs.mkdir("
|
|
27
|
-
await fs.writeFile("
|
|
26
|
+
await fs.mkdir("src/generated/", { recursive: true });
|
|
27
|
+
await fs.writeFile("src/generated/VersionInfo.ts", fileContent);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
generate().then(() => {
|
package/package-scripts.cjs
CHANGED
|
@@ -5,8 +5,7 @@ const assetParametersScript = resolve.sync("@ui5/webcomponents-base/lib/generate
|
|
|
5
5
|
const stylesScript = resolve.sync("@ui5/webcomponents-base/lib/generate-styles/index.js");
|
|
6
6
|
const versionScript = resolve.sync("@ui5/webcomponents-base/lib/generate-version-info/index.js");
|
|
7
7
|
const copyUsedModules = resolve.sync("@ui5/webcomponents-tools/lib/copy-list/index.js");
|
|
8
|
-
const
|
|
9
|
-
const preprocessJSDocScript = resolve.sync("@ui5/webcomponents-tools/lib/jsdoc/preprocess.js");
|
|
8
|
+
const amdToES6 = resolve.sync("@ui5/webcomponents-tools/lib/amd-to-es6/index.js");
|
|
10
9
|
|
|
11
10
|
const LIB = path.join(__dirname, `../tools/lib/`);
|
|
12
11
|
|
|
@@ -15,14 +14,13 @@ const viteConfig = `-c "${require.resolve("@ui5/webcomponents-tools/components-p
|
|
|
15
14
|
const scripts = {
|
|
16
15
|
clean: "rimraf jsdoc-dist && rimraf src/generated && rimraf dist && rimraf .port",
|
|
17
16
|
lint: `eslint .`,
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
generate: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates",
|
|
18
|
+
prepare: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates typescript",
|
|
19
|
+
typescript: "tsc -b",
|
|
20
20
|
integrate: {
|
|
21
|
-
default: "nps integrate.copy-used-modules integrate.
|
|
21
|
+
default: "nps integrate.copy-used-modules integrate.amd-to-es6 integrate.third-party",
|
|
22
22
|
"copy-used-modules": `node "${copyUsedModules}" ./used-modules.txt dist/`,
|
|
23
|
-
"
|
|
24
|
-
"amd-to-es6": "amdtoes6 --src=dist/ --replace --glob=**/*.js",
|
|
25
|
-
"esm-abs-to-rel": `node "${esmAbsToRel}" dist/ dist/`,
|
|
23
|
+
"amd-to-es6": `node "${amdToES6}" dist/`,
|
|
26
24
|
"third-party": {
|
|
27
25
|
default: "nps integrate.third-party.copy integrate.third-party.fix",
|
|
28
26
|
copy: "mkdirp dist/sap/ui/thirdparty/ && copy-and-watch ../../node_modules/@openui5/sap.ui.core/src/sap/ui/thirdparty/caja-html-sanitizer.js dist/sap/ui/thirdparty/",
|
|
@@ -30,7 +28,7 @@ const scripts = {
|
|
|
30
28
|
},
|
|
31
29
|
},
|
|
32
30
|
build: {
|
|
33
|
-
default: `nps prepare
|
|
31
|
+
default: `nps prepare`,
|
|
34
32
|
bundle: `vite build ${viteConfig}`,
|
|
35
33
|
},
|
|
36
34
|
copy: {
|
|
@@ -42,21 +40,17 @@ const scripts = {
|
|
|
42
40
|
generateStyles: `node "${stylesScript}"`,
|
|
43
41
|
generateTemplates: `mkdirp src/generated/templates && cross-env UI5_BASE=true UI5_TS=true node "${LIB}/hbs2ui5/index.js" -d test/elements -o src/generated/templates`,
|
|
44
42
|
generateAPI: {
|
|
45
|
-
default: "nps generateAPI.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
jsdoc: `jsdoc -c "${LIB}/jsdoc/configTypescript.json"`,
|
|
49
|
-
cleanup: "rimraf jsdoc-dist/"
|
|
43
|
+
default: "nps generateAPI.generateCEM generateAPI.validateCEM",
|
|
44
|
+
generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs" --dev`,
|
|
45
|
+
validateCEM: `node "${LIB}/cem/validate.js" --dev`,
|
|
50
46
|
},
|
|
51
47
|
watch: {
|
|
52
|
-
default: 'concurrently "nps watch.src" "nps watch.styles"
|
|
53
|
-
withBundle: 'concurrently "nps watch.src" "nps watch.bundle" "nps watch.styles"
|
|
48
|
+
default: 'concurrently "nps watch.src" "nps watch.styles"',
|
|
49
|
+
withBundle: 'concurrently "nps watch.src" "nps watch.bundle" "nps watch.styles"',
|
|
54
50
|
src: 'nps "copy.src --watch --skip-initial-copy"',
|
|
55
|
-
typescript: 'tsc --watch',
|
|
56
51
|
bundle: `node ${LIB}/dev-server/dev-server.js ${viteConfig}`,
|
|
57
52
|
styles: 'chokidar "src/css/*.css" -c "nps generateStyles"'
|
|
58
53
|
},
|
|
59
|
-
start: "nps prepare watch.withBundle",
|
|
60
54
|
test: {
|
|
61
55
|
default: 'concurrently "nps test.wdio" "nps test.ssr" "nps test.ssr2"',
|
|
62
56
|
ssr: `mocha test/ssr`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents-base",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-ddc5fe31b",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.base",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"directory": "packages/base"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
|
+
"./dist/ssr-dom.js": {
|
|
21
|
+
"browser": "./dist/ssr-dom.js",
|
|
22
|
+
"node": "./dist/ssr-dom-shim.js",
|
|
23
|
+
"default": "./dist/ssr-dom.js"
|
|
24
|
+
},
|
|
20
25
|
".": "./index.js",
|
|
21
26
|
"./dist/*": "./dist/*",
|
|
22
27
|
"./package.json": "./package.json",
|
|
@@ -28,17 +33,20 @@
|
|
|
28
33
|
"lint": "nps lint",
|
|
29
34
|
"start": "nps start",
|
|
30
35
|
"build": "nps build",
|
|
36
|
+
"generate": "nps generate",
|
|
37
|
+
"generateAPI": "nps generateAPI",
|
|
38
|
+
"bundle": "nps build.bundle",
|
|
31
39
|
"test": "nps test",
|
|
32
|
-
"prepublishOnly": "
|
|
40
|
+
"prepublishOnly": "tsc"
|
|
33
41
|
},
|
|
34
42
|
"dependencies": {
|
|
43
|
+
"@lit-labs/ssr-dom-shim": "^1.1.2",
|
|
35
44
|
"lit-html": "^2.0.1"
|
|
36
45
|
},
|
|
37
46
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"chromedriver": "112.0.0",
|
|
47
|
+
"@openui5/sap.ui.core": "1.120.3",
|
|
48
|
+
"@ui5/webcomponents-tools": "0.0.0-ddc5fe31b",
|
|
49
|
+
"chromedriver": "119.0.1",
|
|
42
50
|
"clean-css": "^5.2.2",
|
|
43
51
|
"copy-and-watch": "^0.1.5",
|
|
44
52
|
"cross-env": "^7.0.3",
|
package/src/css/FontFace.css
CHANGED
|
@@ -2,65 +2,95 @@
|
|
|
2
2
|
font-family: "72";
|
|
3
3
|
font-style: normal;
|
|
4
4
|
font-weight: 400;
|
|
5
|
-
src: local("72")
|
|
6
|
-
|
|
5
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Regular.woff2?ui5-webcomponents) format("woff2"), local("72");
|
|
6
|
+
unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
@font-face {
|
|
10
10
|
font-family: "72full";
|
|
11
11
|
font-style: normal;
|
|
12
12
|
font-weight: 400;
|
|
13
|
-
src: local('72-full')
|
|
14
|
-
url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2");
|
|
15
|
-
|
|
13
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Regular-full.woff2?ui5-webcomponents) format("woff2"), local('72-full');
|
|
16
14
|
}
|
|
17
15
|
|
|
18
16
|
@font-face {
|
|
19
17
|
font-family: "72";
|
|
20
18
|
font-style: normal;
|
|
21
19
|
font-weight: 700;
|
|
22
|
-
src: local('72-Bold')
|
|
23
|
-
|
|
20
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"), local('72-Bold');
|
|
21
|
+
unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
@font-face {
|
|
27
25
|
font-family: "72full";
|
|
28
26
|
font-style: normal;
|
|
29
27
|
font-weight: 700;
|
|
30
|
-
src:
|
|
31
|
-
url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_fiori_3/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2");
|
|
28
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2");
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
@font-face {
|
|
35
32
|
font-family: '72-Bold';
|
|
36
33
|
font-style: normal;
|
|
37
|
-
src: local('72-Bold')
|
|
38
|
-
|
|
34
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold.woff2?ui5-webcomponents) format("woff2"), local('72-Bold');
|
|
35
|
+
unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
@font-face {
|
|
42
39
|
font-family: '72-Boldfull';
|
|
43
40
|
font-style: normal;
|
|
44
|
-
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/
|
|
41
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Bold-full.woff2?ui5-webcomponents) format("woff2");
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
@font-face {
|
|
48
45
|
font-family: '72-Light';
|
|
49
46
|
font-style: normal;
|
|
50
|
-
src: local('72-Light')
|
|
51
|
-
|
|
47
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Light.woff2?ui5-webcomponents) format("woff2"), local('72-Light');
|
|
48
|
+
unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
@font-face {
|
|
55
52
|
font-family: '72-Lightfull';
|
|
56
53
|
font-style: normal;
|
|
57
|
-
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/
|
|
54
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Light-full.woff2?ui5-webcomponents) format("woff2");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@font-face {
|
|
58
|
+
font-family: '72Mono';
|
|
59
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular.woff2?ui5-webcomponents) format('woff2'), local('72Mono');
|
|
60
|
+
unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@font-face {
|
|
64
|
+
font-family: '72Monofull';
|
|
65
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Regular-full.woff2?ui5-webcomponents) format('woff2');
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@font-face {
|
|
69
|
+
font-family: '72Mono-Bold';
|
|
70
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold.woff2?ui5-webcomponents) format('woff2'), local('72Mono-Bold');
|
|
71
|
+
unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@font-face {
|
|
75
|
+
font-family: '72Mono-Boldfull';
|
|
76
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72Mono-Bold-full.woff2?ui5-webcomponents) format('woff2');
|
|
58
77
|
}
|
|
59
78
|
|
|
60
79
|
@font-face {
|
|
61
80
|
font-family: "72Black";
|
|
62
81
|
font-style: bold;
|
|
63
82
|
font-weight: 900;
|
|
64
|
-
src: local('72Black')
|
|
65
|
-
|
|
83
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black.woff2?ui5-webcomponents) format("woff2"), local('72Black');
|
|
84
|
+
unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
|
|
66
85
|
}
|
|
86
|
+
|
|
87
|
+
@font-face {
|
|
88
|
+
font-family: '72Blackfull';
|
|
89
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-Black-full.woff2?ui5-webcomponents) format('woff2');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@font-face {
|
|
93
|
+
font-family: "72-SemiboldDuplex";
|
|
94
|
+
src: url(https://sdk.openui5.org/resources/sap/ui/core/themes/sap_horizon/fonts/72-SemiboldDuplex.woff2?ui5-webcomponents) format("woff2"), local('72-SemiboldDuplex');
|
|
95
|
+
unicode-range: U+00, U+0D, U+20-7E, U+A0-FF, U+131, U+152-153, U+161, U+178, U+17D-17E, U+192, U+237, U+2C6, U+2DC, U+3BC, U+1E9E, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122;
|
|
96
|
+
}
|