@ui5/webcomponents-base 1.23.0-rc.4 → 1.23.0
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 +22 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/Boot.d.ts +1 -1
- package/dist/Boot.js +1 -1
- package/dist/Boot.js.map +1 -1
- package/dist/CSP.d.ts +9 -6
- package/dist/CSP.js +9 -6
- package/dist/CSP.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/MediaRange.d.ts +6 -6
- package/dist/MediaRange.js +16 -16
- package/dist/MediaRange.js.map +1 -1
- package/dist/UI5ElementMetadata.d.ts +2 -2
- package/dist/UI5ElementMetadata.js +2 -2
- package/dist/UI5ElementMetadata.js.map +1 -1
- package/dist/asset-registries/Illustrations.d.ts +1 -0
- package/dist/asset-registries/Illustrations.js +1 -0
- package/dist/asset-registries/Illustrations.js.map +1 -1
- package/dist/asset-registries/i18n.d.ts +2 -2
- package/dist/asset-registries/i18n.js +2 -2
- package/dist/asset-registries/i18n.js.map +1 -1
- package/dist/asset-registries/util/IconCollectionsByTheme.d.ts +1 -1
- package/dist/asset-registries/util/IconCollectionsByTheme.js +1 -1
- package/dist/asset-registries/util/IconCollectionsByTheme.js.map +1 -1
- package/dist/config/Icons.d.ts +7 -7
- package/dist/config/Icons.js +7 -7
- package/dist/config/Icons.js.map +1 -1
- package/dist/config/Language.d.ts +1 -1
- package/dist/config/Language.js +1 -1
- package/dist/config/Language.js.map +1 -1
- package/dist/config/Theme.d.ts +1 -1
- package/dist/config/Theme.js +1 -1
- 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/custom-elements-internal.json +17 -17
- package/dist/custom-elements.json +17 -17
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/generated/VersionInfo.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/sap/base/strings/toHex.js +1 -1
- package/dist/types/DOMReference.d.ts +1 -1
- package/dist/types/DOMReference.js +1 -1
- package/dist/types/DOMReference.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/createStyleInHead.d.ts +1 -1
- package/dist/util/createStyleInHead.js +1 -1
- package/dist/util/createStyleInHead.js.map +1 -1
- package/package-scripts.cjs +3 -1
- package/package.json +3 -3
package/dist/config/Icons.d.ts
CHANGED
|
@@ -6,22 +6,22 @@ type IconCollection = string;
|
|
|
6
6
|
* and to display icons from other collections, you have to specify the icon collection in addition to the icon name, for example: "tnt/actor", "business-suite/1x2-grid-layout", etc.
|
|
7
7
|
* This method allows setting another (built-in or custom) icon collection as default per theme.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* **Usage**
|
|
10
|
+
* **For example**, to make "SAP-icons version 5.x" the default icon collection in "sap_fiori_3":
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* ```
|
|
13
13
|
* setDefaultIconCollection("sap_fiori_3", "SAP-icons-v5");
|
|
14
14
|
*
|
|
15
15
|
* <ui5-icon name="home"></ui5-icon>
|
|
16
|
-
*
|
|
16
|
+
* ```
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* **For example**, to make a custom icon collection (with name "my-custom-collection") the default icon collection in "sap_fiori_3":
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* ```
|
|
21
21
|
* setDefaultIconCollection("sap_fiori_3", "my-custom-collection");
|
|
22
22
|
*
|
|
23
23
|
* <ui5-icon name="custom-icon-name"></ui5-icon>
|
|
24
|
-
*
|
|
24
|
+
* ```
|
|
25
25
|
*
|
|
26
26
|
* @public
|
|
27
27
|
* @param { string } theme
|
package/dist/config/Icons.js
CHANGED
|
@@ -6,22 +6,22 @@ const IconCollectionConfiguration = new Map();
|
|
|
6
6
|
* and to display icons from other collections, you have to specify the icon collection in addition to the icon name, for example: "tnt/actor", "business-suite/1x2-grid-layout", etc.
|
|
7
7
|
* This method allows setting another (built-in or custom) icon collection as default per theme.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* **Usage**
|
|
10
|
+
* **For example**, to make "SAP-icons version 5.x" the default icon collection in "sap_fiori_3":
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* ```
|
|
13
13
|
* setDefaultIconCollection("sap_fiori_3", "SAP-icons-v5");
|
|
14
14
|
*
|
|
15
15
|
* <ui5-icon name="home"></ui5-icon>
|
|
16
|
-
*
|
|
16
|
+
* ```
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* **For example**, to make a custom icon collection (with name "my-custom-collection") the default icon collection in "sap_fiori_3":
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* ```
|
|
21
21
|
* setDefaultIconCollection("sap_fiori_3", "my-custom-collection");
|
|
22
22
|
*
|
|
23
23
|
* <ui5-icon name="custom-icon-name"></ui5-icon>
|
|
24
|
-
*
|
|
24
|
+
* ```
|
|
25
25
|
*
|
|
26
26
|
* @public
|
|
27
27
|
* @param { string } theme
|
package/dist/config/Icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../src/config/Icons.ts"],"names":[],"mappings":"AAAA,MAAM,2BAA2B,GAAG,IAAI,GAAG,EAAkB,CAAC;AAK9D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,wBAAwB,GAAG,CAAC,KAAa,EAAE,cAA8B,EAAE,EAAE;IAClF,2BAA2B,CAAC,GAAG,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AACxD,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,wBAAwB,GAAG,CAAC,KAAa,EAAsB,EAAE;IACtE,OAAO,2BAA2B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC,CAAC;AAEF,OAAO,EACN,wBAAwB,EACxB,wBAAwB,GACxB,CAAC","sourcesContent":["const IconCollectionConfiguration = new Map<string, string>();\n\n// All supported icon collections + unknown custom ones\ntype IconCollection = string;\n\n/**\n * Sets the default icon collection for a given theme.\n *\n * SAP Icons is the default icon collection (that resolves to SAP-icons version 5.x in Horizon theme family and SAP-icons version 4.x in all other themes)\n * and to display icons from other collections, you have to specify the icon collection in addition to the icon name, for example: \"tnt/actor\", \"business-suite/1x2-grid-layout\", etc.\n * This method allows setting another (built-in or custom) icon collection as default per theme.\n *\n *
|
|
1
|
+
{"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../src/config/Icons.ts"],"names":[],"mappings":"AAAA,MAAM,2BAA2B,GAAG,IAAI,GAAG,EAAkB,CAAC;AAK9D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,wBAAwB,GAAG,CAAC,KAAa,EAAE,cAA8B,EAAE,EAAE;IAClF,2BAA2B,CAAC,GAAG,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AACxD,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,wBAAwB,GAAG,CAAC,KAAa,EAAsB,EAAE;IACtE,OAAO,2BAA2B,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC/C,CAAC,CAAC;AAEF,OAAO,EACN,wBAAwB,EACxB,wBAAwB,GACxB,CAAC","sourcesContent":["const IconCollectionConfiguration = new Map<string, string>();\n\n// All supported icon collections + unknown custom ones\ntype IconCollection = string;\n\n/**\n * Sets the default icon collection for a given theme.\n *\n * SAP Icons is the default icon collection (that resolves to SAP-icons version 5.x in Horizon theme family and SAP-icons version 4.x in all other themes)\n * and to display icons from other collections, you have to specify the icon collection in addition to the icon name, for example: \"tnt/actor\", \"business-suite/1x2-grid-layout\", etc.\n * This method allows setting another (built-in or custom) icon collection as default per theme.\n *\n * **Usage**\n * **For example**, to make \"SAP-icons version 5.x\" the default icon collection in \"sap_fiori_3\":\n *\n * ```\n * setDefaultIconCollection(\"sap_fiori_3\", \"SAP-icons-v5\");\n *\n * <ui5-icon name=\"home\"></ui5-icon>\n * ```\n *\n * **For example**, to make a custom icon collection (with name \"my-custom-collection\") the default icon collection in \"sap_fiori_3\":\n *\n * ```\n * setDefaultIconCollection(\"sap_fiori_3\", \"my-custom-collection\");\n *\n * <ui5-icon name=\"custom-icon-name\"></ui5-icon>\n * ```\n *\n * @public\n * @param { string } theme\n * @param { string } collectionName\n */\nconst setDefaultIconCollection = (theme: string, collectionName: IconCollection) => {\n\tIconCollectionConfiguration.set(theme, collectionName);\n};\n\n/**\n * Returns the configured default icon collection for a given theme.\n *\n * @param { string } theme\n * @public\n * @returns { string | undefined }\n */\nconst getDefaultIconCollection = (theme: string): string | undefined => {\n\treturn IconCollectionConfiguration.get(theme);\n};\n\nexport {\n\tsetDefaultIconCollection,\n\tgetDefaultIconCollection,\n};\n\nexport type {\n\tIconCollection,\n};\n"]}
|
|
@@ -25,7 +25,7 @@ declare const getDefaultLanguage: () => string;
|
|
|
25
25
|
/**
|
|
26
26
|
* Defines if the default language, that is inlined, should be
|
|
27
27
|
* fetched over the network instead of using the inlined one.
|
|
28
|
-
*
|
|
28
|
+
* **Note:** By default the language will not be fetched.
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
* @param {boolean} fetchDefaultLang
|
package/dist/config/Language.js
CHANGED
|
@@ -48,7 +48,7 @@ const getDefaultLanguage = () => {
|
|
|
48
48
|
/**
|
|
49
49
|
* Defines if the default language, that is inlined, should be
|
|
50
50
|
* fetched over the network instead of using the inlined one.
|
|
51
|
-
*
|
|
51
|
+
* **Note:** By default the language will not be fetched.
|
|
52
52
|
*
|
|
53
53
|
* @public
|
|
54
54
|
* @param {boolean} fetchDefaultLang
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Language.js","sourceRoot":"","sources":["../../src/config/Language.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,IAAI,qBAAqB,EACpC,uBAAuB,IAAI,iCAAiC,GAC5D,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,IAAI,WAA+B,CAAC;AACpC,IAAI,oBAA6B,CAAC;AAElC;;;;GAIG;AACH,MAAM,WAAW,GAAG,GAAuB,EAAE;IAC5C,IAAI,WAAW,KAAK,SAAS,EAAE;QAC9B,WAAW,GAAG,qBAAqB,EAAE,CAAC;KACtC;IACD,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,GAAG,KAAK,EAAE,QAAgB,EAAiB,EAAE;IAC7D,IAAI,WAAW,KAAK,QAAQ,EAAE;QAC7B,OAAO;KACP;IAED,WAAW,GAAG,QAAQ,CAAC;IAEvB,IAAI,QAAQ,EAAE,EAAE;QACf,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QACnC,MAAM,sBAAsB,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;KACtD;AACF,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,kBAAkB,GAAG,GAAW,EAAE;IACvC,OAAO,gBAAgB,CAAC;AACzB,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,CAAC,gBAAyB,EAAE,EAAE;IAC7D,oBAAoB,GAAG,gBAAgB,CAAC;AACzC,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,GAAY,EAAE;IAC7C,IAAI,oBAAoB,KAAK,SAAS,EAAE;QACvC,uBAAuB,CAAC,iCAAiC,EAAE,CAAC,CAAC;KAC7D;IAED,OAAO,oBAAoB,CAAC;AAC7B,CAAC,CAAC;AAEF,OAAO,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,GACvB,CAAC","sourcesContent":["import {\n\tgetLanguage as getConfiguredLanguage,\n\tgetFetchDefaultLanguage as getConfiguredFetchDefaultLanguage,\n} from \"../InitialConfiguration.js\";\nimport { fireLanguageChange } from \"../locale/languageChange.js\";\nimport { reRenderAllUI5Elements } from \"../Render.js\";\nimport { DEFAULT_LANGUAGE } from \"../generated/AssetParameters.js\";\nimport { isBooted } from \"../Boot.js\";\n\nlet curLanguage: string | undefined;\nlet fetchDefaultLanguage: boolean;\n\n/**\n * Returns the currently configured language, or the browser language as a fallback.\n * @public\n * @returns {string}\n */\nconst getLanguage = (): string | undefined => {\n\tif (curLanguage === undefined) {\n\t\tcurLanguage = getConfiguredLanguage();\n\t}\n\treturn curLanguage;\n};\n\n/**\n * Changes the current language, re-fetches all message bundles, updates all language-aware components\n * and returns a promise that resolves when all rendering is done.\n *\n * @param {string} language\n * @public\n * @returns {Promise<void>}\n */\nconst setLanguage = async (language: string): Promise<void> => {\n\tif (curLanguage === language) {\n\t\treturn;\n\t}\n\n\tcurLanguage = language;\n\n\tif (isBooted()) {\n\t\tawait fireLanguageChange(language);\n\t\tawait reRenderAllUI5Elements({ languageAware: true });\n\t}\n};\n\n/**\n * Returns the default languague.\n *\n * Note: Default language might be different than the configurated one.\n *\n * @public\n * @returns {string}\n */\nconst getDefaultLanguage = (): string => {\n\treturn DEFAULT_LANGUAGE;\n};\n\n/**\n * Defines if the default language, that is inlined, should be\n * fetched over the network instead of using the inlined one.\n *
|
|
1
|
+
{"version":3,"file":"Language.js","sourceRoot":"","sources":["../../src/config/Language.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,WAAW,IAAI,qBAAqB,EACpC,uBAAuB,IAAI,iCAAiC,GAC5D,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,IAAI,WAA+B,CAAC;AACpC,IAAI,oBAA6B,CAAC;AAElC;;;;GAIG;AACH,MAAM,WAAW,GAAG,GAAuB,EAAE;IAC5C,IAAI,WAAW,KAAK,SAAS,EAAE;QAC9B,WAAW,GAAG,qBAAqB,EAAE,CAAC;KACtC;IACD,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,GAAG,KAAK,EAAE,QAAgB,EAAiB,EAAE;IAC7D,IAAI,WAAW,KAAK,QAAQ,EAAE;QAC7B,OAAO;KACP;IAED,WAAW,GAAG,QAAQ,CAAC;IAEvB,IAAI,QAAQ,EAAE,EAAE;QACf,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QACnC,MAAM,sBAAsB,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;KACtD;AACF,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,kBAAkB,GAAG,GAAW,EAAE;IACvC,OAAO,gBAAgB,CAAC;AACzB,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,uBAAuB,GAAG,CAAC,gBAAyB,EAAE,EAAE;IAC7D,oBAAoB,GAAG,gBAAgB,CAAC;AACzC,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,uBAAuB,GAAG,GAAY,EAAE;IAC7C,IAAI,oBAAoB,KAAK,SAAS,EAAE;QACvC,uBAAuB,CAAC,iCAAiC,EAAE,CAAC,CAAC;KAC7D;IAED,OAAO,oBAAoB,CAAC;AAC7B,CAAC,CAAC;AAEF,OAAO,EACN,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,GACvB,CAAC","sourcesContent":["import {\n\tgetLanguage as getConfiguredLanguage,\n\tgetFetchDefaultLanguage as getConfiguredFetchDefaultLanguage,\n} from \"../InitialConfiguration.js\";\nimport { fireLanguageChange } from \"../locale/languageChange.js\";\nimport { reRenderAllUI5Elements } from \"../Render.js\";\nimport { DEFAULT_LANGUAGE } from \"../generated/AssetParameters.js\";\nimport { isBooted } from \"../Boot.js\";\n\nlet curLanguage: string | undefined;\nlet fetchDefaultLanguage: boolean;\n\n/**\n * Returns the currently configured language, or the browser language as a fallback.\n * @public\n * @returns {string}\n */\nconst getLanguage = (): string | undefined => {\n\tif (curLanguage === undefined) {\n\t\tcurLanguage = getConfiguredLanguage();\n\t}\n\treturn curLanguage;\n};\n\n/**\n * Changes the current language, re-fetches all message bundles, updates all language-aware components\n * and returns a promise that resolves when all rendering is done.\n *\n * @param {string} language\n * @public\n * @returns {Promise<void>}\n */\nconst setLanguage = async (language: string): Promise<void> => {\n\tif (curLanguage === language) {\n\t\treturn;\n\t}\n\n\tcurLanguage = language;\n\n\tif (isBooted()) {\n\t\tawait fireLanguageChange(language);\n\t\tawait reRenderAllUI5Elements({ languageAware: true });\n\t}\n};\n\n/**\n * Returns the default languague.\n *\n * Note: Default language might be different than the configurated one.\n *\n * @public\n * @returns {string}\n */\nconst getDefaultLanguage = (): string => {\n\treturn DEFAULT_LANGUAGE;\n};\n\n/**\n * Defines if the default language, that is inlined, should be\n * fetched over the network instead of using the inlined one.\n * **Note:** By default the language will not be fetched.\n *\n * @public\n * @param {boolean} fetchDefaultLang\n */\nconst setFetchDefaultLanguage = (fetchDefaultLang: boolean) => {\n\tfetchDefaultLanguage = fetchDefaultLang;\n};\n\n/**\n * Returns if the default language, that is inlined, should be fetched over the network.\n * @public\n * @returns {boolean}\n */\nconst getFetchDefaultLanguage = (): boolean => {\n\tif (fetchDefaultLanguage === undefined) {\n\t\tsetFetchDefaultLanguage(getConfiguredFetchDefaultLanguage());\n\t}\n\n\treturn fetchDefaultLanguage;\n};\n\nexport {\n\tgetLanguage,\n\tsetLanguage,\n\tgetDefaultLanguage,\n\tsetFetchDefaultLanguage,\n\tgetFetchDefaultLanguage,\n};\n"]}
|
package/dist/config/Theme.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare const getDefaultTheme: () => string;
|
|
|
29
29
|
declare const isTheme: (theme: string) => boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Returns if the currently set theme is part of legacy theme families ("sap_belize" or "sap_fiori_3").
|
|
32
|
-
*
|
|
32
|
+
* **Note**: in addition, the method checks the base theme of a custom theme, built via the ThemeDesigner.
|
|
33
33
|
*
|
|
34
34
|
* @private
|
|
35
35
|
* @returns { boolean }
|
package/dist/config/Theme.js
CHANGED
|
@@ -56,7 +56,7 @@ const isTheme = (theme) => {
|
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
58
|
* Returns if the currently set theme is part of legacy theme families ("sap_belize" or "sap_fiori_3").
|
|
59
|
-
*
|
|
59
|
+
* **Note**: in addition, the method checks the base theme of a custom theme, built via the ThemeDesigner.
|
|
60
60
|
*
|
|
61
61
|
* @private
|
|
62
62
|
* @returns { boolean }
|
package/dist/config/Theme.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.js","sourceRoot":"","sources":["../../src/config/Theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,qBAAqB,MAAM,qCAAqC,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AC,aAAa,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAEzE,OAAO,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,mBAAmB,EACnB,eAAe,GACf,CAAC","sourcesContent":["import { getTheme as getConfiguredTheme } from \"../InitialConfiguration.js\";\nimport { reRenderAllUI5Elements } from \"../Render.js\";\nimport applyTheme from \"../theming/applyTheme.js\";\nimport getThemeDesignerTheme from \"../theming/getThemeDesignerTheme.js\";\nimport { DEFAULT_THEME, SUPPORTED_THEMES } from \"../generated/AssetParameters.js\";\nimport { isBooted } from \"../Boot.js\";\n\nlet curTheme: string;\n\n/**\n * Returns the current theme.\n * @public\n * @returns {string} the current theme name\n */\nconst getTheme = (): string => {\n\tif (curTheme === undefined) {\n\t\tcurTheme = getConfiguredTheme();\n\t}\n\n\treturn curTheme;\n};\n\n/**\n * Applies a new theme after fetching its assets from the network.\n * @public\n * @param {string} theme the name of the new theme\n * @returns {Promise<void>} a promise that is resolved when the new theme assets have been fetched and applied to the DOM\n */\nconst setTheme = async (theme: string): Promise<void> => {\n\tif (curTheme === theme) {\n\t\treturn;\n\t}\n\n\tcurTheme = theme;\n\n\tif (isBooted()) {\n\t\t// Update CSS Custom Properties\n\t\tawait applyTheme(curTheme);\n\t\tawait reRenderAllUI5Elements({ themeAware: true });\n\t}\n};\n\n/**\n * Returns the default theme.\n *\n * Note: Default theme might be different than the configurated one.\n *\n * @public\n * @returns {string}\n */\nconst getDefaultTheme = (): string => {\n\treturn DEFAULT_THEME;\n};\n\n/**\n * Returns if the given theme name is the one currently applied.\n * @private\n * @param {string} theme\n * @returns {boolean}\n */\nconst isTheme = (theme: string) => {\n\tconst currentTheme = getTheme();\n\treturn currentTheme === theme || currentTheme === `${theme}_exp`;\n};\n\n/**\n * Returns if the currently set theme is part of legacy theme families (\"sap_belize\" or \"sap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AC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAChC,MAAM,YAAY,GAAG,QAAQ,EAAE,CAAC;IAEhC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;QAChC,OAAO,CAAC,qBAAqB,EAAE,EAAE,aAAa,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC;KAC1E;IAED,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,gBAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAEzE,OAAO,EACN,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,mBAAmB,EACnB,eAAe,GACf,CAAC","sourcesContent":["import { getTheme as getConfiguredTheme } from \"../InitialConfiguration.js\";\nimport { reRenderAllUI5Elements } from \"../Render.js\";\nimport applyTheme from \"../theming/applyTheme.js\";\nimport getThemeDesignerTheme from \"../theming/getThemeDesignerTheme.js\";\nimport { DEFAULT_THEME, SUPPORTED_THEMES } from \"../generated/AssetParameters.js\";\nimport { isBooted } from \"../Boot.js\";\n\nlet curTheme: string;\n\n/**\n * Returns the current theme.\n * @public\n * @returns {string} the current theme name\n */\nconst getTheme = (): string => {\n\tif (curTheme === undefined) {\n\t\tcurTheme = getConfiguredTheme();\n\t}\n\n\treturn curTheme;\n};\n\n/**\n * Applies a new theme after fetching its assets from the network.\n * @public\n * @param {string} theme the name of the new theme\n * @returns {Promise<void>} a promise that is resolved when the new theme assets have been fetched and applied to the DOM\n */\nconst setTheme = async (theme: string): Promise<void> => {\n\tif (curTheme === theme) {\n\t\treturn;\n\t}\n\n\tcurTheme = theme;\n\n\tif (isBooted()) {\n\t\t// Update CSS Custom Properties\n\t\tawait applyTheme(curTheme);\n\t\tawait reRenderAllUI5Elements({ themeAware: true });\n\t}\n};\n\n/**\n * Returns the default theme.\n *\n * Note: Default theme might be different than the configurated one.\n *\n * @public\n * @returns {string}\n */\nconst getDefaultTheme = (): string => {\n\treturn DEFAULT_THEME;\n};\n\n/**\n * Returns if the given theme name is the one currently applied.\n * @private\n * @param {string} theme\n * @returns {boolean}\n */\nconst isTheme = (theme: string) => {\n\tconst currentTheme = getTheme();\n\treturn currentTheme === theme || currentTheme === `${theme}_exp`;\n};\n\n/**\n * Returns if the currently set theme is part of legacy theme families (\"sap_belize\" or \"sap_fiori_3\").\n * **Note**: in addition, the method checks the base theme of a custom theme, built via the ThemeDesigner.\n *\n * @private\n * @returns { boolean }\n */\nconst isLegacyThemeFamily = () => {\n\tconst currentTheme = getTheme();\n\n\tif (!isKnownTheme(currentTheme)) {\n\t\treturn !getThemeDesignerTheme()?.baseThemeName?.startsWith(\"sap_horizon\");\n\t}\n\n\treturn !currentTheme.startsWith(\"sap_horizon\");\n};\n\nconst isKnownTheme = (theme: string) => SUPPORTED_THEMES.includes(theme);\n\nexport {\n\tgetTheme,\n\tsetTheme,\n\tisTheme,\n\tisLegacyThemeFamily,\n\tgetDefaultTheme,\n};\n"]}
|
|
@@ -10,12 +10,10 @@ declare const getThemeRoot: () => string | undefined;
|
|
|
10
10
|
* Sets theme root for the current theme.
|
|
11
11
|
* When set, the framework will validate the theme root and fetch the theme styles (CSS variables) from this location.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
13
|
+
* **Note:** The feature is specific to custom themes, created with the `UI Theme Designer`.
|
|
14
14
|
* The provided theme root is used only as a base to construct the actual location of the theme styles: `{themeRoot}/.../css_variables.css`.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* <b>Note:</b> Certain security restrictions will apply before fetching the theme assets.
|
|
16
|
+
* **Note:** Certain security restrictions will apply before fetching the theme assets.
|
|
19
17
|
* Absolute URLs to a different origin than the current page will result in using the current page as an origin.
|
|
20
18
|
* To allow specific origins, use <meta name="sap-allowedThemeOrigins" content="https://my-example-host.com/"> tag inside the <head> of the page.
|
|
21
19
|
*
|
package/dist/config/ThemeRoot.js
CHANGED
|
@@ -20,12 +20,10 @@ const getThemeRoot = () => {
|
|
|
20
20
|
* Sets theme root for the current theme.
|
|
21
21
|
* When set, the framework will validate the theme root and fetch the theme styles (CSS variables) from this location.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
23
|
+
* **Note:** The feature is specific to custom themes, created with the `UI Theme Designer`.
|
|
24
24
|
* The provided theme root is used only as a base to construct the actual location of the theme styles: `{themeRoot}/.../css_variables.css`.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* <b>Note:</b> Certain security restrictions will apply before fetching the theme assets.
|
|
26
|
+
* **Note:** Certain security restrictions will apply before fetching the theme assets.
|
|
29
27
|
* Absolute URLs to a different origin than the current page will result in using the current page as an origin.
|
|
30
28
|
* To allow specific origins, use <meta name="sap-allowedThemeOrigins" content="https://my-example-host.com/"> tag inside the <head> of the page.
|
|
31
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeRoot.js","sourceRoot":"","sources":["../../src/config/ThemeRoot.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,YAAY,IAAI,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,IAAI,aAAiC,CAAC;AAEtC;;;;;;GAMG;AACH,MAAM,YAAY,GAAG,GAAuB,EAAE;IAC7C,IAAI,aAAa,KAAK,SAAS,EAAE;QAChC,aAAa,GAAG,sBAAsB,EAAE,CAAC;KACzC;IAED,OAAO,aAAa,CAAC;AACtB,CAAC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"ThemeRoot.js","sourceRoot":"","sources":["../../src/config/ThemeRoot.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,6BAA6B,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;AAEF,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,6BAA6B,GAC7B,CAAC","sourcesContent":["import createLinkInHead from \"../util/createLinkInHead.js\";\nimport validateThemeRoot from \"../validateThemeRoot.js\";\nimport { getThemeRoot as getConfiguredThemeRoot } from \"../InitialConfiguration.js\";\nimport { getTheme } from \"./Theme.js\";\n\nlet currThemeRoot: string | undefined;\n\n/**\n * Returns the current theme root.\n *\n * @public\n * @since 1.14.0\n * @returns { string } the current theme root\n */\nconst getThemeRoot = (): string | undefined => {\n\tif (currThemeRoot === undefined) {\n\t\tcurrThemeRoot = getConfiguredThemeRoot();\n\t}\n\n\treturn currThemeRoot;\n};\n\n/**\n * Sets theme root for the current theme.\n * When set, the framework will validate the theme root and fetch the theme styles (CSS variables) from this location.\n *\n * **Note:** The feature is specific to custom themes, created with the `UI Theme Designer`.\n * The provided theme root is used only as a base to construct the actual location of the theme styles: `{themeRoot}/.../css_variables.css`.\n *\n * **Note:** Certain security restrictions will apply before fetching the theme assets.\n * Absolute URLs to a different origin than the current page will result in using the current page as an origin.\n * To allow specific origins, use <meta name=\"sap-allowedThemeOrigins\" content=\"https://my-example-host.com/\"> tag inside the <head> of the page.\n *\n * @public\n * @since 1.14.0\n * @param { string } themeRoot the new theme root\n * @returns { Promise<void> }\n */\nconst setThemeRoot = (themeRoot: string): Promise<void> | undefined => {\n\tif (currThemeRoot === themeRoot) {\n\t\treturn;\n\t}\n\n\tcurrThemeRoot = themeRoot;\n\n\tif (!validateThemeRoot(themeRoot)) {\n\t\tconsole.warn(`The ${themeRoot} is not valid. Check the allowed origins as suggested in the \"setThemeRoot\" description.`); // eslint-disable-line\n\t\treturn;\n\t}\n\n\treturn attachCustomThemeStylesToHead(getTheme());\n};\n\nconst formatThemeLink = (theme: string) => {\n\treturn `${getThemeRoot()!}Base/baseLib/${theme}/css_variables.css`; // theme root is always set at this point.\n};\n\nconst attachCustomThemeStylesToHead = async (theme: string): Promise<void> => {\n\tconst link = document.querySelector(`[sap-ui-webcomponents-theme=\"${theme}\"]`);\n\n\tif (link) {\n\t\tdocument.head.removeChild(link);\n\t}\n\n\tawait createLinkInHead(formatThemeLink(theme), { \"sap-ui-webcomponents-theme\": theme });\n};\n\nexport {\n\tgetThemeRoot,\n\tsetThemeRoot,\n\tattachCustomThemeStylesToHead,\n};\n"]}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
declare const getTimezone: () => string | undefined;
|
|
8
8
|
/**
|
|
9
9
|
* Sets the IANA timezone ID.
|
|
10
|
-
*
|
|
10
|
+
* **For example:** "America/New_York", "Europe/London", "Australia/Sydney", "Asia/Bishkek", etc.
|
|
11
11
|
*>
|
|
12
12
|
* @param {string} timezone
|
|
13
13
|
* @private
|
package/dist/config/Timezone.js
CHANGED
|
@@ -14,7 +14,7 @@ const getTimezone = () => {
|
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Sets the IANA timezone ID.
|
|
17
|
-
*
|
|
17
|
+
* **For example:** "America/New_York", "Europe/London", "Australia/Sydney", "Asia/Bishkek", etc.
|
|
18
18
|
*>
|
|
19
19
|
* @param {string} timezone
|
|
20
20
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timezone.js","sourceRoot":"","sources":["../../src/config/Timezone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAElF,IAAI,YAAgC,CAAC;AAErC;;;;;GAKG;AACH,MAAM,WAAW,GAAG,GAAuB,EAAE;IAC5C,IAAI,YAAY,KAAK,SAAS,EAAE;QAC/B,YAAY,GAAG,qBAAqB,EAAE,CAAC;KACvC;IACD,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAE,EAAE;IACxC,IAAI,YAAY,KAAK,QAAQ,EAAE;QAC9B,OAAO;KACP;IAED,YAAY,GAAG,QAAQ,CAAC;AACzB,CAAC,CAAC;AAEF,OAAO,EACN,WAAW,EACX,WAAW,GACX,CAAC","sourcesContent":["import { getTimezone as getConfiguredTimezone } from \"../InitialConfiguration.js\";\n\nlet currTimezone: string | undefined;\n\n/**\n * Returns the configured IANA timezone ID.\n *\n * @private\n * @returns {string}\n */\nconst getTimezone = (): string | undefined => {\n\tif (currTimezone === undefined) {\n\t\tcurrTimezone = getConfiguredTimezone();\n\t}\n\treturn currTimezone;\n};\n\n/**\n * Sets the IANA timezone ID.\n *
|
|
1
|
+
{"version":3,"file":"Timezone.js","sourceRoot":"","sources":["../../src/config/Timezone.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,IAAI,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAElF,IAAI,YAAgC,CAAC;AAErC;;;;;GAKG;AACH,MAAM,WAAW,GAAG,GAAuB,EAAE;IAC5C,IAAI,YAAY,KAAK,SAAS,EAAE;QAC/B,YAAY,GAAG,qBAAqB,EAAE,CAAC;KACvC;IACD,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,WAAW,GAAG,CAAC,QAAgB,EAAE,EAAE;IACxC,IAAI,YAAY,KAAK,QAAQ,EAAE;QAC9B,OAAO;KACP;IAED,YAAY,GAAG,QAAQ,CAAC;AACzB,CAAC,CAAC;AAEF,OAAO,EACN,WAAW,EACX,WAAW,GACX,CAAC","sourcesContent":["import { getTimezone as getConfiguredTimezone } from \"../InitialConfiguration.js\";\n\nlet currTimezone: string | undefined;\n\n/**\n * Returns the configured IANA timezone ID.\n *\n * @private\n * @returns {string}\n */\nconst getTimezone = (): string | undefined => {\n\tif (currTimezone === undefined) {\n\t\tcurrTimezone = getConfiguredTimezone();\n\t}\n\treturn currTimezone;\n};\n\n/**\n * Sets the IANA timezone ID.\n * **For example:** \"America/New_York\", \"Europe/London\", \"Australia/Sydney\", \"Asia/Bishkek\", etc.\n *>\n * @param {string} timezone\n * @private\n * @returns { Promise<void> }\n */\nconst setTimezone = (timezone: string) => {\n\tif (currTimezone === timezone) {\n\t\treturn;\n\t}\n\n\tcurrTimezone = timezone;\n};\n\nexport {\n\tgetTimezone,\n\tsetTimezone,\n};\n"]}
|
|
@@ -79,85 +79,85 @@
|
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"kind": "javascript-module",
|
|
82
|
-
"path": "dist/
|
|
82
|
+
"path": "dist/config/AnimationMode.js",
|
|
83
83
|
"declarations": [],
|
|
84
84
|
"exports": []
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"kind": "javascript-module",
|
|
88
|
-
"path": "dist/
|
|
88
|
+
"path": "dist/config/CalendarType.js",
|
|
89
89
|
"declarations": [],
|
|
90
90
|
"exports": []
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"kind": "javascript-module",
|
|
94
|
-
"path": "dist/
|
|
94
|
+
"path": "dist/config/FormatSettings.js",
|
|
95
95
|
"declarations": [],
|
|
96
96
|
"exports": []
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"kind": "javascript-module",
|
|
100
|
-
"path": "dist/
|
|
100
|
+
"path": "dist/config/Icons.js",
|
|
101
101
|
"declarations": [],
|
|
102
102
|
"exports": []
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"kind": "javascript-module",
|
|
106
|
-
"path": "dist/
|
|
106
|
+
"path": "dist/config/Language.js",
|
|
107
107
|
"declarations": [],
|
|
108
108
|
"exports": []
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"kind": "javascript-module",
|
|
112
|
-
"path": "dist/config/
|
|
112
|
+
"path": "dist/config/NoConflict.js",
|
|
113
113
|
"declarations": [],
|
|
114
114
|
"exports": []
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"kind": "javascript-module",
|
|
118
|
-
"path": "dist/config/
|
|
118
|
+
"path": "dist/config/Theme.js",
|
|
119
119
|
"declarations": [],
|
|
120
120
|
"exports": []
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"kind": "javascript-module",
|
|
124
|
-
"path": "dist/config/
|
|
124
|
+
"path": "dist/config/ThemeRoot.js",
|
|
125
125
|
"declarations": [],
|
|
126
126
|
"exports": []
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"kind": "javascript-module",
|
|
130
|
-
"path": "dist/config/
|
|
130
|
+
"path": "dist/config/Timezone.js",
|
|
131
131
|
"declarations": [],
|
|
132
132
|
"exports": []
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"kind": "javascript-module",
|
|
136
|
-
"path": "dist/
|
|
136
|
+
"path": "dist/asset-registries/Icons.js",
|
|
137
137
|
"declarations": [],
|
|
138
138
|
"exports": []
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"kind": "javascript-module",
|
|
142
|
-
"path": "dist/
|
|
142
|
+
"path": "dist/asset-registries/Illustrations.js",
|
|
143
143
|
"declarations": [],
|
|
144
144
|
"exports": []
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"kind": "javascript-module",
|
|
148
|
-
"path": "dist/
|
|
148
|
+
"path": "dist/asset-registries/LocaleData.js",
|
|
149
149
|
"declarations": [],
|
|
150
150
|
"exports": []
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"kind": "javascript-module",
|
|
154
|
-
"path": "dist/
|
|
154
|
+
"path": "dist/asset-registries/Themes.js",
|
|
155
155
|
"declarations": [],
|
|
156
156
|
"exports": []
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
"kind": "javascript-module",
|
|
160
|
-
"path": "dist/
|
|
160
|
+
"path": "dist/asset-registries/i18n.js",
|
|
161
161
|
"declarations": [],
|
|
162
162
|
"exports": []
|
|
163
163
|
},
|
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
"declarations": [
|
|
1000
1000
|
{
|
|
1001
1001
|
"kind": "class",
|
|
1002
|
-
"description": "DOM Element reference or ID.\n
|
|
1002
|
+
"description": "DOM Element reference or ID.\n**Note:** If an ID is passed, it is expected to be part of the same `document` element as the consuming component.",
|
|
1003
1003
|
"name": "DOMReference",
|
|
1004
1004
|
"superclass": {
|
|
1005
1005
|
"name": "DataType",
|
|
@@ -2425,7 +2425,7 @@
|
|
|
2425
2425
|
]
|
|
2426
2426
|
}
|
|
2427
2427
|
},
|
|
2428
|
-
"description": "Validates the property's value and returns it if correct\nor returns the default value if not.\n
|
|
2428
|
+
"description": "Validates the property's value and returns it if correct\nor returns the default value if not.\n**Note:** Only intended for use by UI5Element.js",
|
|
2429
2429
|
"privacy": "public"
|
|
2430
2430
|
},
|
|
2431
2431
|
{
|
|
@@ -2437,7 +2437,7 @@
|
|
|
2437
2437
|
"text": "Node"
|
|
2438
2438
|
}
|
|
2439
2439
|
},
|
|
2440
|
-
"description": "Validates the slot's value and returns it if correct\nor throws an exception if not.\n
|
|
2440
|
+
"description": "Validates the slot's value and returns it if correct\nor throws an exception if not.\n**Note:** Only intended for use by UI5Element.js",
|
|
2441
2441
|
"privacy": "public"
|
|
2442
2442
|
},
|
|
2443
2443
|
{
|
|
@@ -79,85 +79,85 @@
|
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"kind": "javascript-module",
|
|
82
|
-
"path": "dist/
|
|
82
|
+
"path": "dist/config/AnimationMode.js",
|
|
83
83
|
"declarations": [],
|
|
84
84
|
"exports": []
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"kind": "javascript-module",
|
|
88
|
-
"path": "dist/
|
|
88
|
+
"path": "dist/config/CalendarType.js",
|
|
89
89
|
"declarations": [],
|
|
90
90
|
"exports": []
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"kind": "javascript-module",
|
|
94
|
-
"path": "dist/
|
|
94
|
+
"path": "dist/config/FormatSettings.js",
|
|
95
95
|
"declarations": [],
|
|
96
96
|
"exports": []
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"kind": "javascript-module",
|
|
100
|
-
"path": "dist/
|
|
100
|
+
"path": "dist/config/Icons.js",
|
|
101
101
|
"declarations": [],
|
|
102
102
|
"exports": []
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"kind": "javascript-module",
|
|
106
|
-
"path": "dist/
|
|
106
|
+
"path": "dist/config/Language.js",
|
|
107
107
|
"declarations": [],
|
|
108
108
|
"exports": []
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"kind": "javascript-module",
|
|
112
|
-
"path": "dist/config/
|
|
112
|
+
"path": "dist/config/NoConflict.js",
|
|
113
113
|
"declarations": [],
|
|
114
114
|
"exports": []
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
117
|
"kind": "javascript-module",
|
|
118
|
-
"path": "dist/config/
|
|
118
|
+
"path": "dist/config/Theme.js",
|
|
119
119
|
"declarations": [],
|
|
120
120
|
"exports": []
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"kind": "javascript-module",
|
|
124
|
-
"path": "dist/config/
|
|
124
|
+
"path": "dist/config/ThemeRoot.js",
|
|
125
125
|
"declarations": [],
|
|
126
126
|
"exports": []
|
|
127
127
|
},
|
|
128
128
|
{
|
|
129
129
|
"kind": "javascript-module",
|
|
130
|
-
"path": "dist/config/
|
|
130
|
+
"path": "dist/config/Timezone.js",
|
|
131
131
|
"declarations": [],
|
|
132
132
|
"exports": []
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"kind": "javascript-module",
|
|
136
|
-
"path": "dist/
|
|
136
|
+
"path": "dist/asset-registries/Icons.js",
|
|
137
137
|
"declarations": [],
|
|
138
138
|
"exports": []
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"kind": "javascript-module",
|
|
142
|
-
"path": "dist/
|
|
142
|
+
"path": "dist/asset-registries/Illustrations.js",
|
|
143
143
|
"declarations": [],
|
|
144
144
|
"exports": []
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
"kind": "javascript-module",
|
|
148
|
-
"path": "dist/
|
|
148
|
+
"path": "dist/asset-registries/LocaleData.js",
|
|
149
149
|
"declarations": [],
|
|
150
150
|
"exports": []
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"kind": "javascript-module",
|
|
154
|
-
"path": "dist/
|
|
154
|
+
"path": "dist/asset-registries/Themes.js",
|
|
155
155
|
"declarations": [],
|
|
156
156
|
"exports": []
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
"kind": "javascript-module",
|
|
160
|
-
"path": "dist/
|
|
160
|
+
"path": "dist/asset-registries/i18n.js",
|
|
161
161
|
"declarations": [],
|
|
162
162
|
"exports": []
|
|
163
163
|
},
|
|
@@ -899,7 +899,7 @@
|
|
|
899
899
|
"declarations": [
|
|
900
900
|
{
|
|
901
901
|
"kind": "class",
|
|
902
|
-
"description": "DOM Element reference or ID.\n
|
|
902
|
+
"description": "DOM Element reference or ID.\n**Note:** If an ID is passed, it is expected to be part of the same `document` element as the consuming component.",
|
|
903
903
|
"name": "DOMReference",
|
|
904
904
|
"superclass": {
|
|
905
905
|
"name": "DataType",
|
|
@@ -2193,7 +2193,7 @@
|
|
|
2193
2193
|
]
|
|
2194
2194
|
}
|
|
2195
2195
|
},
|
|
2196
|
-
"description": "Validates the property's value and returns it if correct\nor returns the default value if not.\n
|
|
2196
|
+
"description": "Validates the property's value and returns it if correct\nor returns the default value if not.\n**Note:** Only intended for use by UI5Element.js",
|
|
2197
2197
|
"privacy": "public"
|
|
2198
2198
|
},
|
|
2199
2199
|
{
|
|
@@ -2205,7 +2205,7 @@
|
|
|
2205
2205
|
"text": "Node"
|
|
2206
2206
|
}
|
|
2207
2207
|
},
|
|
2208
|
-
"description": "Validates the slot's value and returns it if correct\nor throws an exception if not.\n
|
|
2208
|
+
"description": "Validates the slot's value and returns it if correct\nor throws an exception if not.\n**Note:** Only intended for use by UI5Element.js",
|
|
2209
2209
|
"privacy": "public"
|
|
2210
2210
|
},
|
|
2211
2211
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const VersionInfo = {
|
|
2
|
-
version: "1.23.0
|
|
2
|
+
version: "1.23.0",
|
|
3
3
|
major: 1,
|
|
4
4
|
minor: 23,
|
|
5
5
|
patch: 0,
|
|
6
|
-
suffix: "
|
|
6
|
+
suffix: "",
|
|
7
7
|
isNext: false,
|
|
8
|
-
buildTime:
|
|
8
|
+
buildTime: 1709751462,
|
|
9
9
|
};
|
|
10
10
|
export default VersionInfo;
|
|
11
11
|
//# sourceMappingURL=VersionInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"VersionInfo.js","sourceRoot":"","sources":["../../src/generated/VersionInfo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,QAAQ;IACjB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,EAAE;IACT,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,KAAK;IACb,SAAS,EAAE,UAAU;CACrB,CAAC;AACF,eAAe,WAAW,CAAC","sourcesContent":["const VersionInfo = {\n\tversion: \"1.23.0\",\n\tmajor: 1,\n\tminor: 23,\n\tpatch: 0,\n\tsuffix: \"\",\n\tisNext: false,\n\tbuildTime: 1709751462,\n};\nexport default VersionInfo;"]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Re-renders all RTL-aware UI5 Elements.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* **Note:** Call this method whenever you change the "dir" property anywhere in your HTML page.
|
|
5
|
+
*
|
|
6
|
+
* **Example:** `document.body.dir = "rtl"; applyDirection();`
|
|
6
7
|
* @public
|
|
7
8
|
* @returns {Promise<void>}
|
|
8
9
|
*/
|
|
@@ -3,8 +3,9 @@ import { fireDirectionChange } from "./directionChange.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Re-renders all RTL-aware UI5 Elements.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* **Note:** Call this method whenever you change the "dir" property anywhere in your HTML page.
|
|
7
|
+
*
|
|
8
|
+
* **Example:** `document.body.dir = "rtl"; applyDirection();`
|
|
8
9
|
* @public
|
|
9
10
|
* @returns {Promise<void>}
|
|
10
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyDirection.js","sourceRoot":"","sources":["../../src/locale/applyDirection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D
|
|
1
|
+
{"version":3,"file":"applyDirection.js","sourceRoot":"","sources":["../../src/locale/applyDirection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,cAAc,GAAG,KAAK,IAAmB,EAAE;IAChD,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,MAAM,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACpC,MAAM,sBAAsB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { reRenderAllUI5Elements } from \"../Render.js\";\nimport { fireDirectionChange } from \"./directionChange.js\";\n\n/**\n * Re-renders all RTL-aware UI5 Elements.\n *\n * **Note:** Call this method whenever you change the \"dir\" property anywhere in your HTML page.\n *\n * **Example:** `document.body.dir = \"rtl\"; applyDirection();`\n * @public\n * @returns {Promise<void>}\n */\nconst applyDirection = async (): Promise<void> => {\n\tconst listenersResults = fireDirectionChange();\n\tawait Promise.all(listenersResults);\n\tawait reRenderAllUI5Elements({ rtlAware: true });\n};\n\nexport default applyDirection;\n"]}
|
|
@@ -2,7 +2,7 @@ import DataType from "./DataType.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* @class
|
|
4
4
|
* DOM Element reference or ID.
|
|
5
|
-
*
|
|
5
|
+
* **Note:** If an ID is passed, it is expected to be part of the same `document` element as the consuming component.
|
|
6
6
|
*
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@ import DataType from "./DataType.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* @class
|
|
4
4
|
* DOM Element reference or ID.
|
|
5
|
-
*
|
|
5
|
+
* **Note:** If an ID is passed, it is expected to be part of the same `document` element as the consuming component.
|
|
6
6
|
*
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DOMReference.js","sourceRoot":"","sources":["../../src/types/DOMReference.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,YAAa,SAAQ,QAAQ;IAClC,MAAM,CAAU,OAAO,CAAC,KAA2B;QAClD,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,WAAW,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,aAAmC;QACtE,IAAI,aAAa,YAAY,WAAW,EAAE;YACzC,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,aAAa,CAAC;IACtB,CAAC;CACD;AAED,eAAe,YAAY,CAAC","sourcesContent":["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * DOM Element reference or ID.\n *
|
|
1
|
+
{"version":3,"file":"DOMReference.js","sourceRoot":"","sources":["../../src/types/DOMReference.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,eAAe,CAAC;AAErC;;;;;;GAMG;AACH,MAAM,YAAa,SAAQ,QAAQ;IAClC,MAAM,CAAU,OAAO,CAAC,KAA2B;QAClD,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,YAAY,WAAW,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAU,mBAAmB,CAAC,aAAmC;QACtE,IAAI,aAAa,YAAY,WAAW,EAAE;YACzC,OAAO,IAAI,CAAC;SACZ;QAED,OAAO,aAAa,CAAC;IACtB,CAAC;CACD;AAED,eAAe,YAAY,CAAC","sourcesContent":["import DataType from \"./DataType.js\";\n\n/**\n * @class\n * DOM Element reference or ID.\n * **Note:** If an ID is passed, it is expected to be part of the same `document` element as the consuming component.\n *\n * @public\n */\nclass DOMReference extends DataType {\n\tstatic override isValid(value: string | HTMLElement) {\n\t\treturn (typeof value === \"string\" || value instanceof HTMLElement);\n\t}\n\n\tstatic override propertyToAttribute(propertyValue: string | HTMLElement) {\n\t\tif (propertyValue instanceof HTMLElement) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn propertyValue;\n\t}\n}\n\nexport default DOMReference;\n"]}
|