@ui5/webcomponents-base 0.0.0-7b7921cd9 → 0.0.0-7c7170d4a
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 +1055 -0
- package/README.md +2 -9
- package/config/wdio.conf.cjs +0 -8
- 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.d.ts +3 -2
- package/dist/Boot.js +8 -6
- 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 -2
- package/dist/Device.js +14 -12
- package/dist/Device.js.map +1 -1
- package/dist/FontFace.js +1 -1
- package/dist/FontFace.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 +2 -2
- package/dist/InitialConfiguration.js +7 -6
- package/dist/InitialConfiguration.js.map +1 -1
- package/dist/Keys.d.ts +7 -1
- package/dist/Keys.js +113 -106
- package/dist/Keys.js.map +1 -1
- package/dist/ManagedStyles.d.ts +5 -4
- package/dist/ManagedStyles.js +55 -60
- 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 +48 -53
- package/dist/UI5Element.js +150 -101
- package/dist/UI5Element.js.map +1 -1
- package/dist/UI5ElementMetadata.d.ts +13 -13
- package/dist/UI5ElementMetadata.js +26 -15
- 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 +2 -0
- package/dist/asset-registries/Illustrations.js +51 -20
- 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/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.d.ts +2 -2
- package/dist/asset-registries/i18n.js +4 -3
- 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.js +2 -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 +9 -24
- package/dist/config/Icons.js +8 -67
- 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/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/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 +9 -8
- package/dist/delegate/ItemNavigation.js +13 -14
- 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/InputElementsFormSupport.d.ts +18 -0
- package/dist/features/InputElementsFormSupport.js +40 -0
- package/dist/features/InputElementsFormSupport.js.map +1 -0
- package/dist/features/OpenUI5Enablement.d.ts +1 -1
- package/dist/features/OpenUI5Support.d.ts +13 -5
- package/dist/features/OpenUI5Support.js +87 -46
- 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.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/css/SystemCSSVars.css.js +1 -1
- package/dist/generated/css/SystemCSSVars.css.js.map +1 -1
- package/dist/generated/templates/elements/WithComplexTemplateTemplate.lit.d.ts +1 -1
- package/dist/i18nBundle.d.ts +2 -4
- 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/locale/timezoneChange.d.ts +5 -0
- package/dist/renderer/LitRenderer.d.ts +2 -2
- 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 +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 +0 -0
- package/dist/theming/applyTheme.js +5 -5
- package/dist/theming/applyTheme.js.map +1 -1
- 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 +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 +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 +5 -10
- package/dist/types/InvisibleMessageMode.js +4 -11
- package/dist/types/InvisibleMessageMode.js.map +1 -1
- package/dist/types/ItemNavigationBehavior.d.ts +0 -6
- package/dist/types/ItemNavigationBehavior.js +0 -6
- package/dist/types/ItemNavigationBehavior.js.map +1 -1
- package/dist/types/MovePlacement.d.ts +20 -0
- package/dist/types/MovePlacement.js +22 -0
- package/dist/types/MovePlacement.js.map +1 -0
- package/dist/types/NavigationMode.d.ts +0 -8
- package/dist/types/NavigationMode.js +0 -8
- package/dist/types/NavigationMode.js.map +1 -1
- package/dist/types/Orientation.d.ts +16 -0
- package/dist/types/Orientation.js +18 -0
- package/dist/types/Orientation.js.map +1 -0
- package/dist/types/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 -28
- 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/InvisibleMessage.d.ts +1 -1
- 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 +62 -42
- 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/isElementContainingBlock.d.ts +2 -0
- package/dist/util/isElementContainingBlock.js +11 -0
- package/dist/util/isElementContainingBlock.js.map +1 -0
- package/index.js +3 -19
- package/package-scripts.cjs +22 -19
- package/package.json +23 -8
- package/src/css/FontFace.css +47 -17
- package/src/css/SystemCSSVars.css +0 -8
- package/tsconfig.json +6 -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/StaticAreaItem.d.ts +0 -36
- package/dist/StaticAreaItem.js +0 -102
- package/dist/StaticAreaItem.js.map +0 -1
- package/dist/api.json +0 -1
- package/dist/assets/Boot.34b7cea0.css +0 -1
- package/dist/assets/Boot.ef9171c9.js +0 -9
- package/dist/assets/bundle.esm.183f95f0.js +0 -50
- package/dist/assets-meta/IconCollectionsAlias.js.map +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 @@
|
|
|
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"]}
|
|
@@ -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/getIconCollectionByTheme.js";
|
|
16
16
|
import {
|
|
17
17
|
getLanguage,
|
|
18
18
|
setLanguage,
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
getFetchDefaultLanguage,
|
|
22
22
|
} from "./dist/config/Language.js";
|
|
23
23
|
import { getNoConflict, setNoConflict } from "./dist/config/NoConflict.js";
|
|
24
|
-
import { getRTL } from "./dist/config/RTL.js";
|
|
25
24
|
import {
|
|
26
25
|
getTheme,
|
|
27
26
|
setTheme,
|
|
@@ -57,13 +56,6 @@ import { registerIconLoader } from "./dist/asset-registries/Icons.js";
|
|
|
57
56
|
// Boot.ts
|
|
58
57
|
import { attachBoot } from "./dist/Boot.js";
|
|
59
58
|
|
|
60
|
-
// CSP.ts
|
|
61
|
-
import {
|
|
62
|
-
setPackageCSSRoot,
|
|
63
|
-
setUseLinks,
|
|
64
|
-
setPreloadLinks,
|
|
65
|
-
} from "./dist/CSP.js";
|
|
66
|
-
|
|
67
59
|
// CustomElementsScope.ts
|
|
68
60
|
import {
|
|
69
61
|
setCustomElementsScopingSuffix,
|
|
@@ -76,7 +68,6 @@ import {
|
|
|
76
68
|
// Device.ts
|
|
77
69
|
import {
|
|
78
70
|
supportsTouch,
|
|
79
|
-
isIE,
|
|
80
71
|
isSafari,
|
|
81
72
|
isChrome,
|
|
82
73
|
isFirefox,
|
|
@@ -138,7 +129,6 @@ export {
|
|
|
138
129
|
getFetchDefaultLanguage,
|
|
139
130
|
getNoConflict,
|
|
140
131
|
setNoConflict,
|
|
141
|
-
getRTL,
|
|
142
132
|
getTheme,
|
|
143
133
|
setTheme,
|
|
144
134
|
getDefaultTheme,
|
|
@@ -175,11 +165,6 @@ export {
|
|
|
175
165
|
// Boot.ts
|
|
176
166
|
attachBoot,
|
|
177
167
|
|
|
178
|
-
// CSP.ts
|
|
179
|
-
setPackageCSSRoot,
|
|
180
|
-
setUseLinks,
|
|
181
|
-
setPreloadLinks,
|
|
182
|
-
|
|
183
168
|
// CustomElementsScope.ts
|
|
184
169
|
setCustomElementsScopingSuffix,
|
|
185
170
|
getCustomElementsScopingSuffix,
|
|
@@ -189,7 +174,6 @@ export {
|
|
|
189
174
|
|
|
190
175
|
// Device.ts
|
|
191
176
|
supportsTouch,
|
|
192
|
-
isIE,
|
|
193
177
|
isSafari,
|
|
194
178
|
isChrome,
|
|
195
179
|
isFirefox,
|
package/package-scripts.cjs
CHANGED
|
@@ -5,24 +5,24 @@ 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
|
|
8
|
+
const amdToES6 = resolve.sync("@ui5/webcomponents-tools/lib/amd-to-es6/index.js");
|
|
9
|
+
const noRequire = resolve.sync("@ui5/webcomponents-tools/lib/amd-to-es6/no-remaining-require.js");
|
|
10
10
|
|
|
11
11
|
const LIB = path.join(__dirname, `../tools/lib/`);
|
|
12
12
|
|
|
13
13
|
const viteConfig = `-c "${require.resolve("@ui5/webcomponents-tools/components-package/vite.config.js")}"`;
|
|
14
14
|
|
|
15
15
|
const scripts = {
|
|
16
|
-
clean: "rimraf
|
|
16
|
+
clean: "rimraf src/generated && rimraf dist && rimraf .port",
|
|
17
17
|
lint: `eslint .`,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
generate: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates generateSsrDom",
|
|
19
|
+
prepare: "cross-env UI5_TS=true nps clean integrate copy generateAssetParameters generateVersionInfo generateStyles generateTemplates typescript integrate.no-remaining-require",
|
|
20
|
+
typescript: "tsc -b",
|
|
20
21
|
integrate: {
|
|
21
|
-
default: "nps integrate.copy-used-modules integrate.
|
|
22
|
+
default: "nps integrate.copy-used-modules integrate.amd-to-es6 integrate.third-party",
|
|
22
23
|
"copy-used-modules": `node "${copyUsedModules}" ./used-modules.txt dist/`,
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"esm-abs-to-rel": `node "${esmAbsToRel}" dist/ dist/`,
|
|
24
|
+
"amd-to-es6": `node "${amdToES6}" dist/`,
|
|
25
|
+
"no-remaining-require": `node "${noRequire}" dist/`,
|
|
26
26
|
"third-party": {
|
|
27
27
|
default: "nps integrate.third-party.copy integrate.third-party.fix",
|
|
28
28
|
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 +30,7 @@ const scripts = {
|
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
32
|
build: {
|
|
33
|
-
default: `nps prepare
|
|
33
|
+
default: `nps prepare`,
|
|
34
34
|
bundle: `vite build ${viteConfig}`,
|
|
35
35
|
},
|
|
36
36
|
copy: {
|
|
@@ -40,23 +40,26 @@ const scripts = {
|
|
|
40
40
|
generateAssetParameters: `node "${assetParametersScript}"`,
|
|
41
41
|
generateVersionInfo: `node "${versionScript}"`,
|
|
42
42
|
generateStyles: `node "${stylesScript}"`,
|
|
43
|
+
// these files are ignored in TS because the import in UI5Elments tries to load them from the dist and throws an error. create them empty here
|
|
44
|
+
generateSsrDom: `yarn nodetouch dist/ssr-dom.js dist/ssr-dom.d.ts`,
|
|
43
45
|
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`,
|
|
46
|
+
generateProd: {
|
|
47
|
+
"default": "nps generateProd.remove-dev-mode generateProd.copy-prod",
|
|
48
|
+
"remove-dev-mode": `node "${LIB}/remove-dev-mode/remove-dev-mode.mjs"`,
|
|
49
|
+
"copy-prod": `copy-and-watch "dist/sap/**/*" dist/prod/sap/`,
|
|
50
|
+
},
|
|
44
51
|
generateAPI: {
|
|
45
|
-
default: "nps generateAPI.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
jsdoc: `jsdoc -c "${LIB}/jsdoc/configTypescript.json"`,
|
|
49
|
-
cleanup: "rimraf jsdoc-dist/"
|
|
52
|
+
default: "nps generateAPI.generateCEM generateAPI.validateCEM",
|
|
53
|
+
generateCEM: `cem analyze --config "${LIB}/cem/custom-elements-manifest.config.mjs" --dev`,
|
|
54
|
+
validateCEM: `node "${LIB}/cem/validate.js" --dev`,
|
|
50
55
|
},
|
|
51
56
|
watch: {
|
|
52
|
-
default: 'concurrently "nps watch.src" "nps watch.styles"
|
|
53
|
-
withBundle: 'concurrently "nps watch.src" "nps watch.bundle" "nps watch.styles"
|
|
57
|
+
default: 'concurrently "nps watch.src" "nps watch.styles"',
|
|
58
|
+
withBundle: 'concurrently "nps watch.src" "nps watch.bundle" "nps watch.styles"',
|
|
54
59
|
src: 'nps "copy.src --watch --skip-initial-copy"',
|
|
55
|
-
typescript: 'tsc --watch',
|
|
56
60
|
bundle: `node ${LIB}/dev-server/dev-server.js ${viteConfig}`,
|
|
57
61
|
styles: 'chokidar "src/css/*.css" -c "nps generateStyles"'
|
|
58
62
|
},
|
|
59
|
-
start: "nps prepare watch.withBundle",
|
|
60
63
|
test: {
|
|
61
64
|
default: 'concurrently "nps test.wdio" "nps test.ssr" "nps test.ssr2"',
|
|
62
65
|
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-7c7170d4a",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.base",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,9 +16,19 @@
|
|
|
16
16
|
"url": "https://github.com/SAP/ui5-webcomponents.git",
|
|
17
17
|
"directory": "packages/base"
|
|
18
18
|
},
|
|
19
|
+
"types": "./dist",
|
|
19
20
|
"exports": {
|
|
21
|
+
"./dist/ssr-dom.js": {
|
|
22
|
+
"browser": "./dist/ssr-dom.js",
|
|
23
|
+
"node": "./dist/ssr-dom-shim.js",
|
|
24
|
+
"default": "./dist/ssr-dom.js"
|
|
25
|
+
},
|
|
20
26
|
".": "./index.js",
|
|
21
|
-
"./dist/*":
|
|
27
|
+
"./dist/*": {
|
|
28
|
+
"production": "./dist/prod/*",
|
|
29
|
+
"development": "./dist/*",
|
|
30
|
+
"default": "./dist/*"
|
|
31
|
+
},
|
|
22
32
|
"./package.json": "./package.json",
|
|
23
33
|
"./bundle.esm.js": "./bundle.esm.js",
|
|
24
34
|
"./*": "./dist/*"
|
|
@@ -28,23 +38,28 @@
|
|
|
28
38
|
"lint": "nps lint",
|
|
29
39
|
"start": "nps start",
|
|
30
40
|
"build": "nps build",
|
|
41
|
+
"generate": "nps generate",
|
|
42
|
+
"generateAPI": "nps generateAPI",
|
|
43
|
+
"generateProd": "nps generateProd",
|
|
44
|
+
"bundle": "nps build.bundle",
|
|
31
45
|
"test": "nps test",
|
|
32
|
-
"prepublishOnly": "
|
|
46
|
+
"prepublishOnly": "tsc -b"
|
|
33
47
|
},
|
|
34
48
|
"dependencies": {
|
|
49
|
+
"@lit-labs/ssr-dom-shim": "^1.1.2",
|
|
35
50
|
"lit-html": "^2.0.1"
|
|
36
51
|
},
|
|
37
52
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"
|
|
41
|
-
"chromedriver": "112.0.0",
|
|
53
|
+
"@openui5/sap.ui.core": "1.120.5",
|
|
54
|
+
"@ui5/webcomponents-tools": "0.0.0-7c7170d4a",
|
|
55
|
+
"chromedriver": "^124.0.4",
|
|
42
56
|
"clean-css": "^5.2.2",
|
|
43
57
|
"copy-and-watch": "^0.1.5",
|
|
44
58
|
"cross-env": "^7.0.3",
|
|
45
59
|
"eslint": "^7.22.0",
|
|
46
60
|
"mkdirp": "^1.0.4",
|
|
47
61
|
"replace-in-file": "^6.3.5",
|
|
48
|
-
"resolve": "^1.20.0"
|
|
62
|
+
"resolve": "^1.20.0",
|
|
63
|
+
"touch": "^3.1.0"
|
|
49
64
|
}
|
|
50
65
|
}
|
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
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"include": ["src/**/*", "src/global.d.ts"],
|
|
3
|
+
// ssr-dom is imported with bare specifier so that conditional exports are used, but this treats it as input and output, so ignore it
|
|
4
|
+
"exclude": ["src/ssr-dom.ts"],
|
|
3
5
|
"compilerOptions": {
|
|
4
6
|
"target": "ES2021",
|
|
7
|
+
"lib": ["DOM", "DOM.Iterable", "ES2023"],
|
|
5
8
|
// Generate d.ts files
|
|
6
9
|
"declaration": true,
|
|
7
10
|
"outDir": "dist",
|
|
@@ -10,5 +13,8 @@
|
|
|
10
13
|
"inlineSources": true,
|
|
11
14
|
"strict": true,
|
|
12
15
|
"moduleResolution": "node",
|
|
16
|
+
"composite": true,
|
|
17
|
+
"rootDir": "src",
|
|
18
|
+
"tsBuildInfoFile": "dist/.tsbuildinfo",
|
|
13
19
|
},
|
|
14
20
|
}
|
package/.eslintignore
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Note: Changes to this file also must be applied to the top level .eslintignore file.
|
|
2
|
-
test
|
|
3
|
-
lib
|
|
4
|
-
dist
|
|
5
|
-
jsdoc-dist
|
|
6
|
-
src/generated
|
|
7
|
-
src/thirdparty
|
|
8
|
-
bundle.esm.js
|
|
9
|
-
bundle.es5.js
|
|
10
|
-
rollup.config*.js
|
|
11
|
-
wdio.conf.cjs
|
|
12
|
-
postcss.config.cjs
|
|
13
|
-
package-scripts.cjs
|
|
14
|
-
.eslintrc.cjs
|
|
15
|
-
src/renderer/directives/style-map.js
|
|
16
|
-
src/util/metaUrl.js
|
package/.eslintrc.cjs
DELETED
package/bundle.esm.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { registerThemePropertiesLoader } from "./dist/AssetRegistry.js";
|
|
2
|
-
import EventProvider from "./dist/EventProvider.js";
|
|
3
|
-
|
|
4
|
-
// ESM bundle targets browsers with native support
|
|
5
|
-
import "./dist/features/OpenUI5Support.js";
|
|
6
|
-
|
|
7
|
-
// Test components
|
|
8
|
-
import "./test/elements/Generic.js";
|
|
9
|
-
import "./test/elements/NoShadowDOM.js";
|
|
10
|
-
import "./test/elements/Parent.js";
|
|
11
|
-
import "./test/elements/Child.js";
|
|
12
|
-
import "./test/elements/WithStaticArea.js";
|
|
13
|
-
import "./test/elements/WithComplexTemplate.js";
|
|
14
|
-
import "./test/elements/GenericExt.js";
|
|
15
|
-
|
|
16
|
-
// Test themes - CSS Vars for the sap_fiori_3, sap_fiori_3_dark, sap_belize and sap_belize_hcb themes
|
|
17
|
-
import "./test/assets/Themes.js";
|
|
18
|
-
|
|
19
|
-
// used in test pages
|
|
20
|
-
import { renderFinished } from "./dist/Render.js";
|
|
21
|
-
|
|
22
|
-
// used for tests - to register a custom theme
|
|
23
|
-
window.registerThemePropertiesLoader = registerThemePropertiesLoader;
|
|
24
|
-
|
|
25
|
-
// i18n
|
|
26
|
-
import { registerI18nLoader, getI18nBundle } from "./dist/i18nBundle.js";
|
|
27
|
-
import parseProperties from "./dist/PropertiesFileFormat.js";
|
|
28
|
-
|
|
29
|
-
// Note: keep in sync with rollup.config value for IIFE
|
|
30
|
-
import { getAnimationMode } from "./dist/config/AnimationMode.js";
|
|
31
|
-
import { getLanguage, setLanguage } from "./dist/config/Language.js";
|
|
32
|
-
import { getCalendarType } from "./dist/config/CalendarType.js";
|
|
33
|
-
import { getTheme, setTheme } from "./dist/config/Theme.js";
|
|
34
|
-
import { getThemeRoot, setThemeRoot } from "./dist/config/ThemeRoot.js";
|
|
35
|
-
import { getNoConflict, setNoConflict } from "./dist/config/NoConflict.js";
|
|
36
|
-
import { getRTL } from "./dist/config/RTL.js";
|
|
37
|
-
import { getFirstDayOfWeek, getLegacyDateCalendarCustomizing } from "./dist/config/FormatSettings.js";
|
|
38
|
-
import { _getRegisteredNames as getIconNames } from "./dist/asset-registries/Icons.js"
|
|
39
|
-
import applyDirection from "./dist/locale/applyDirection.js";
|
|
40
|
-
import { getCurrentRuntimeIndex } from "./dist/Runtimes.js";
|
|
41
|
-
import LegacyDateFormats from "./dist/features/LegacyDateFormats.js";
|
|
42
|
-
|
|
43
|
-
window["sap-ui-webcomponents-bundle"] = {
|
|
44
|
-
configuration : {
|
|
45
|
-
getAnimationMode,
|
|
46
|
-
getLanguage,
|
|
47
|
-
setLanguage,
|
|
48
|
-
getTheme,
|
|
49
|
-
getThemeRoot,
|
|
50
|
-
setThemeRoot,
|
|
51
|
-
setTheme,
|
|
52
|
-
getNoConflict,
|
|
53
|
-
setNoConflict,
|
|
54
|
-
getCalendarType,
|
|
55
|
-
getRTL,
|
|
56
|
-
getFirstDayOfWeek,
|
|
57
|
-
getLegacyDateCalendarCustomizing,
|
|
58
|
-
},
|
|
59
|
-
getCurrentRuntimeIndex,
|
|
60
|
-
getIconNames,
|
|
61
|
-
parseProperties,
|
|
62
|
-
registerI18nLoader,
|
|
63
|
-
getI18nBundle,
|
|
64
|
-
renderFinished,
|
|
65
|
-
applyDirection,
|
|
66
|
-
EventProvider,
|
|
67
|
-
};
|
package/dist/CSP.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Use this function to provide the path to the directory where the css resources for the given package will be served from.
|
|
3
|
-
*
|
|
4
|
-
* @public
|
|
5
|
-
* @param packageName name of the package that is being configured
|
|
6
|
-
* @param root path, accessible by the server that will serve the css resources
|
|
7
|
-
*/
|
|
8
|
-
declare const setPackageCSSRoot: (packageName: string, root: string) => void;
|
|
9
|
-
declare const getUrl: (packageName: string, path: string) => string;
|
|
10
|
-
/**
|
|
11
|
-
* Call this function to enable or disable the usage of <link> tags instead of <style> tags to achieve CSP compliance
|
|
12
|
-
* Example: "setUseLinks(true)" will unconditionally use <link> tags for all browsers;
|
|
13
|
-
* Example: "setUseLinks(!document.adoptedStyleSheets) will only enable the usage of <link> tags for browsers that do not support constructable stylesheets.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
* @param use whether links will be used
|
|
17
|
-
*/
|
|
18
|
-
declare const setUseLinks: (use: boolean) => void;
|
|
19
|
-
/**
|
|
20
|
-
* Call this function to enable or disable the preloading of <link> tags.
|
|
21
|
-
* Note: only taken into account when <link> tags are being used.
|
|
22
|
-
* Note: links are being preloaded by default, so call "setPreloadLinks(false)" to opt out of this.
|
|
23
|
-
*
|
|
24
|
-
* @public
|
|
25
|
-
* @param preload
|
|
26
|
-
*/
|
|
27
|
-
declare const setPreloadLinks: (preload: boolean) => void;
|
|
28
|
-
declare const shouldUseLinks: () => boolean;
|
|
29
|
-
declare const shouldPreloadLinks: () => boolean;
|
|
30
|
-
export { setPackageCSSRoot, getUrl, setUseLinks, setPreloadLinks, shouldUseLinks, shouldPreloadLinks, };
|
package/dist/CSP.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
const roots = new Map();
|
|
2
|
-
let useLinks = false;
|
|
3
|
-
let preloadLinks = true;
|
|
4
|
-
/**
|
|
5
|
-
* Use this function to provide the path to the directory where the css resources for the given package will be served from.
|
|
6
|
-
*
|
|
7
|
-
* @public
|
|
8
|
-
* @param packageName name of the package that is being configured
|
|
9
|
-
* @param root path, accessible by the server that will serve the css resources
|
|
10
|
-
*/
|
|
11
|
-
const setPackageCSSRoot = (packageName, root) => {
|
|
12
|
-
roots.set(packageName, root);
|
|
13
|
-
};
|
|
14
|
-
const getUrl = (packageName, path) => {
|
|
15
|
-
const packageCSSRoot = roots.get(packageName);
|
|
16
|
-
if (!packageCSSRoot) {
|
|
17
|
-
console.warn(`Root path to the CSS resources ${packageName} not provided - use "setPackageCSSRoot" to provide the root.`); // eslint-disable-line
|
|
18
|
-
return "";
|
|
19
|
-
}
|
|
20
|
-
return `${packageCSSRoot}${path}`;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Call this function to enable or disable the usage of <link> tags instead of <style> tags to achieve CSP compliance
|
|
24
|
-
* Example: "setUseLinks(true)" will unconditionally use <link> tags for all browsers;
|
|
25
|
-
* Example: "setUseLinks(!document.adoptedStyleSheets) will only enable the usage of <link> tags for browsers that do not support constructable stylesheets.
|
|
26
|
-
*
|
|
27
|
-
* @public
|
|
28
|
-
* @param use whether links will be used
|
|
29
|
-
*/
|
|
30
|
-
const setUseLinks = (use) => {
|
|
31
|
-
useLinks = use;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Call this function to enable or disable the preloading of <link> tags.
|
|
35
|
-
* Note: only taken into account when <link> tags are being used.
|
|
36
|
-
* Note: links are being preloaded by default, so call "setPreloadLinks(false)" to opt out of this.
|
|
37
|
-
*
|
|
38
|
-
* @public
|
|
39
|
-
* @param preload
|
|
40
|
-
*/
|
|
41
|
-
const setPreloadLinks = (preload) => {
|
|
42
|
-
preloadLinks = preload;
|
|
43
|
-
};
|
|
44
|
-
const shouldUseLinks = () => {
|
|
45
|
-
return useLinks;
|
|
46
|
-
};
|
|
47
|
-
const shouldPreloadLinks = () => {
|
|
48
|
-
return preloadLinks;
|
|
49
|
-
};
|
|
50
|
-
export { setPackageCSSRoot, getUrl, setUseLinks, setPreloadLinks, shouldUseLinks, shouldPreloadLinks, };
|
|
51
|
-
//# sourceMappingURL=CSP.js.map
|
package/dist/CSP.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CSP.js","sourceRoot":"","sources":["../src/CSP.ts"],"names":[],"mappings":"AAAA,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;AACxC,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,IAAI,YAAY,GAAG,IAAI,CAAC;AAExB;;;;;;GAMG;AACH,MAAM,iBAAiB,GAAG,CAAC,WAAmB,EAAE,IAAY,EAAE,EAAE;IAC/D,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,CAAC,WAAmB,EAAE,IAAY,EAAE,EAAE;IACpD,MAAM,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAE9C,IAAI,CAAC,cAAc,EAAE;QACpB,OAAO,CAAC,IAAI,CAAC,kCAAkC,WAAW,8DAA8D,CAAC,CAAC,CAAC,sBAAsB;QACjJ,OAAO,EAAE,CAAC;KACV;IAED,OAAO,GAAG,cAAc,GAAG,IAAI,EAAE,CAAC;AACnC,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,GAAG,CAAC,GAAY,EAAE,EAAE;IACpC,QAAQ,GAAG,GAAG,CAAC;AAChB,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,eAAe,GAAG,CAAC,OAAgB,EAAE,EAAE;IAC5C,YAAY,GAAG,OAAO,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,cAAc,GAAG,GAAG,EAAE;IAC3B,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC;AAEF,OAAO,EACN,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,eAAe,EACf,cAAc,EACd,kBAAkB,GAClB,CAAC","sourcesContent":["const roots = new Map<string, string>();\nlet useLinks = false;\nlet preloadLinks = true;\n\n/**\n * Use this function to provide the path to the directory where the css resources for the given package will be served from.\n *\n * @public\n * @param packageName name of the package that is being configured\n * @param root path, accessible by the server that will serve the css resources\n */\nconst setPackageCSSRoot = (packageName: string, root: string) => {\n\troots.set(packageName, root);\n};\n\nconst getUrl = (packageName: string, path: string) => {\n\tconst packageCSSRoot = roots.get(packageName);\n\n\tif (!packageCSSRoot) {\n\t\tconsole.warn(`Root path to the CSS resources ${packageName} not provided - use \"setPackageCSSRoot\" to provide the root.`); // eslint-disable-line\n\t\treturn \"\";\n\t}\n\n\treturn `${packageCSSRoot}${path}`;\n};\n\n/**\n * Call this function to enable or disable the usage of <link> tags instead of <style> tags to achieve CSP compliance\n * Example: \"setUseLinks(true)\" will unconditionally use <link> tags for all browsers;\n * Example: \"setUseLinks(!document.adoptedStyleSheets) will only enable the usage of <link> tags for browsers that do not support constructable stylesheets.\n *\n * @public\n * @param use whether links will be used\n */\nconst setUseLinks = (use: boolean) => {\n\tuseLinks = use;\n};\n\n/**\n * Call this function to enable or disable the preloading of <link> tags.\n * Note: only taken into account when <link> tags are being used.\n * Note: links are being preloaded by default, so call \"setPreloadLinks(false)\" to opt out of this.\n *\n * @public\n * @param preload\n */\nconst setPreloadLinks = (preload: boolean) => {\n\tpreloadLinks = preload;\n};\n\nconst shouldUseLinks = () => {\n\treturn useLinks;\n};\n\nconst shouldPreloadLinks = () => {\n\treturn preloadLinks;\n};\n\nexport {\n\tsetPackageCSSRoot,\n\tgetUrl,\n\tsetUseLinks,\n\tsetPreloadLinks,\n\tshouldUseLinks,\n\tshouldPreloadLinks,\n};\n"]}
|
package/dist/StaticAreaItem.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import "./StaticArea.js";
|
|
2
|
-
import type UI5Element from "./UI5Element.js";
|
|
3
|
-
/**
|
|
4
|
-
*
|
|
5
|
-
* @class
|
|
6
|
-
* @author SAP SE
|
|
7
|
-
* @private
|
|
8
|
-
*/
|
|
9
|
-
declare class StaticAreaItem extends HTMLElement {
|
|
10
|
-
_rendered: boolean;
|
|
11
|
-
ownerElement?: UI5Element;
|
|
12
|
-
constructor();
|
|
13
|
-
/**
|
|
14
|
-
* @param {UI5Element} ownerElement the UI5Element instance that owns this static area item
|
|
15
|
-
*/
|
|
16
|
-
setOwnerElement(ownerElement: UI5Element): void;
|
|
17
|
-
/**
|
|
18
|
-
* Updates the shadow root of the static area item with the latest state, if rendered
|
|
19
|
-
*/
|
|
20
|
-
update(): void;
|
|
21
|
-
/**
|
|
22
|
-
* Sets the correct content density based on the owner element's state
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
_updateContentDensity(): void;
|
|
26
|
-
_updateDirection(): void;
|
|
27
|
-
_updateAdditionalAttrs(): void;
|
|
28
|
-
/**
|
|
29
|
-
* @protected
|
|
30
|
-
* Returns reference to the DOM element where the current fragment is added.
|
|
31
|
-
*/
|
|
32
|
-
getDomRef(): Promise<ShadowRoot | null>;
|
|
33
|
-
static getTag(): string;
|
|
34
|
-
static createInstance(): StaticAreaItem;
|
|
35
|
-
}
|
|
36
|
-
export default StaticAreaItem;
|