@ui5/webcomponents-tools 2.13.1 → 2.13.3
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
CHANGED
@@ -3,6 +3,22 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [2.13.3](https://github.com/SAP/ui5-webcomponents/compare/v2.13.2...v2.13.3) (2025-08-22)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
## [2.13.2](https://github.com/SAP/ui5-webcomponents/compare/v2.13.1...v2.13.2) (2025-08-06)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @ui5/webcomponents-tools
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
6
22
|
## [2.13.1](https://github.com/SAP/ui5-webcomponents/compare/v2.13.0...v2.13.1) (2025-08-05)
|
7
23
|
|
8
24
|
**Note:** Version bump only for package @ui5/webcomponents-tools
|
@@ -42,8 +42,8 @@ const getDefaultThemeCode = packageName => {
|
|
42
42
|
import defaultThemeBase from "@ui5/webcomponents-theming/dist/generated/themes/${DEFAULT_THEME}/parameters-bundle.css.js";
|
43
43
|
import defaultTheme from "./${DEFAULT_THEME}/parameters-bundle.css.js";
|
44
44
|
|
45
|
-
registerThemePropertiesLoader("@ui5/webcomponents-theming", "${DEFAULT_THEME}", async () => defaultThemeBase);
|
46
|
-
registerThemePropertiesLoader("${
|
45
|
+
registerThemePropertiesLoader("@" + "ui5" + "/" + "webcomponents-theming", "${DEFAULT_THEME}", async () => defaultThemeBase);
|
46
|
+
registerThemePropertiesLoader(${ packageName.split("").map(c => `"${c}"`).join (" + ") }, "${DEFAULT_THEME}", async () => defaultTheme);
|
47
47
|
`;
|
48
48
|
};
|
49
49
|
|
@@ -27,7 +27,7 @@ const importAndCheck = async (localeId) => {
|
|
27
27
|
const localeIds = [${languagesKeysStringArray}];
|
28
28
|
|
29
29
|
localeIds.forEach(localeId => {
|
30
|
-
registerI18nLoader("${
|
30
|
+
registerI18nLoader(${ packageName.split("").map(c => `"${c}"`).join (" + ") }, localeId, importAndCheck);
|
31
31
|
});
|
32
32
|
`;
|
33
33
|
}
|
@@ -11,10 +11,10 @@ const generate = async () => {
|
|
11
11
|
const outputFileDynamicImportJSONAttr = path.normalize(`${process.argv[3]}/Themes-node.${ext}`);
|
12
12
|
const outputFileFetchMetaResolve = path.normalize(`${process.argv[3]}/Themes-fetch.${ext}`);
|
13
13
|
|
14
|
-
// All supported optional themes
|
14
|
+
// All supported optional themes
|
15
15
|
const allThemes = assets.themes.all;
|
16
16
|
|
17
|
-
// All themes present in the file system
|
17
|
+
// All themes present in the file system
|
18
18
|
const dirs = await fs.readdir(inputFolder);
|
19
19
|
const themesOnFileSystem = dirs.map(dir => {
|
20
20
|
const matches = dir.match(/sap_.*$/);
|
@@ -28,7 +28,7 @@ const generate = async () => {
|
|
28
28
|
const dynamicImportJSONAttrLines = themesOnFileSystem.map(theme => `\t\tcase "${theme}": return (await import(/* webpackChunkName: "${packageName.replace("@", "").replace("/", "-")}-${theme.replace("_", "-")}-parameters-bundle" */"../assets/themes/${theme}/parameters-bundle.css.json", {with: { type: 'json'}})).default;`).join("\n");
|
29
29
|
const fetchMetaResolveLines = themesOnFileSystem.map(theme => `\t\tcase "${theme}": return (await fetch(new URL("../assets/themes/${theme}/parameters-bundle.css.json", import.meta.url))).json();`).join("\n");
|
30
30
|
|
31
|
-
// dynamic imports file content
|
31
|
+
// dynamic imports file content
|
32
32
|
const contentDynamic = function (lines) {
|
33
33
|
return `// @ts-nocheck
|
34
34
|
import { registerThemePropertiesLoader } from "@ui5/webcomponents-base/dist/asset-registries/Themes.js";
|
@@ -49,7 +49,7 @@ const loadAndCheck = async (themeName) => {
|
|
49
49
|
};
|
50
50
|
|
51
51
|
${availableThemesArray}
|
52
|
-
.forEach(themeName => registerThemePropertiesLoader("${
|
52
|
+
.forEach(themeName => registerThemePropertiesLoader(${ packageName.split("").map(c => `"${c}"`).join (" + ") }, themeName, loadAndCheck));
|
53
53
|
`;
|
54
54
|
}
|
55
55
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ui5/webcomponents-tools",
|
3
|
-
"version": "2.13.
|
3
|
+
"version": "2.13.3",
|
4
4
|
"description": "UI5 Web Components: webcomponents.tools",
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
6
6
|
"license": "Apache-2.0",
|
@@ -82,5 +82,5 @@
|
|
82
82
|
"esbuild": "^0.25.0",
|
83
83
|
"yargs": "^17.5.1"
|
84
84
|
},
|
85
|
-
"gitHead": "
|
85
|
+
"gitHead": "3c71a6f1c28827ae8c3ab376e049e7fce9e512b0"
|
86
86
|
}
|