@progress/kendo-angular-icons 24.0.0-develop.37 → 24.0.0-develop.39
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.
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**-----------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
+
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
+
*-------------------------------------------------------------------------------------------*/
|
|
5
|
+
"use strict";
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.aiInstructions = void 0;
|
|
8
|
+
exports.default = default_1;
|
|
9
|
+
const tslib_1 = require("tslib");
|
|
10
|
+
const fs = tslib_1.__importStar(require("fs"));
|
|
11
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
12
|
+
exports.aiInstructions = `IconThemeColor no longer accepts 'light' or 'dark' values.
|
|
13
|
+
Replace any use of 'light' or 'dark' with a supported value: 'inherit', 'primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error', or 'inverse'.
|
|
14
|
+
|
|
15
|
+
Static template bindings were removed automatically, which means the component now uses its default themeColor.
|
|
16
|
+
If you want to explicitly set a new value, re-add the attribute with a supported one:
|
|
17
|
+
Before: (removed by codemod — no themeColor attribute)
|
|
18
|
+
After: themeColor="base"
|
|
19
|
+
|
|
20
|
+
The following patterns could not be migrated automatically and require an additional update:
|
|
21
|
+
|
|
22
|
+
Dynamic binding:
|
|
23
|
+
Before: [themeColor]="color" (where color may be 'light' or 'dark')
|
|
24
|
+
After: [themeColor]="color" (ensure color is a supported value)
|
|
25
|
+
|
|
26
|
+
Conditional expression — replace both branch values:
|
|
27
|
+
Before: [themeColor]="isDark ? 'dark' : 'light'"
|
|
28
|
+
After: [themeColor]="isDark ? 'inverse' : 'base'"
|
|
29
|
+
|
|
30
|
+
TypeScript assignment — update the assigned value:
|
|
31
|
+
Before: this.icon.themeColor = 'light';
|
|
32
|
+
After: this.icon.themeColor = 'base';`;
|
|
33
|
+
const REMOVED_VALUES = ['light', 'dark'];
|
|
34
|
+
function default_1(fileInfo, api) {
|
|
35
|
+
const filePath = fileInfo.path;
|
|
36
|
+
if (!(0, codemods_1.isApiChangeTarget)(filePath)) {
|
|
37
|
+
return fileInfo.source;
|
|
38
|
+
}
|
|
39
|
+
const htmlResult = (0, codemods_1.htmlTransformer)(fileInfo, api, (templateContent) => {
|
|
40
|
+
let result = (0, codemods_1.attributeConditionalRemoval)(templateContent, 'kendo-icon', 'themeColor', REMOVED_VALUES);
|
|
41
|
+
result = (0, codemods_1.attributeConditionalRemoval)(result, 'kendo-svgicon', 'themeColor', REMOVED_VALUES);
|
|
42
|
+
result = (0, codemods_1.attributeConditionalRemoval)(result, 'kendo-svg-icon', 'themeColor', REMOVED_VALUES);
|
|
43
|
+
return result;
|
|
44
|
+
});
|
|
45
|
+
if (filePath.endsWith('.html')) {
|
|
46
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
47
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
48
|
+
return htmlResult;
|
|
49
|
+
}
|
|
50
|
+
return fileInfo.source;
|
|
51
|
+
}
|
|
52
|
+
return htmlResult || fileInfo.source;
|
|
53
|
+
}
|
|
@@ -19,8 +19,8 @@ const packageMetadata = {
|
|
|
19
19
|
productName: 'Kendo UI for Angular',
|
|
20
20
|
productCode: 'KENDOUIANGULAR',
|
|
21
21
|
productCodes: ['KENDOUIANGULAR'],
|
|
22
|
-
publishDate:
|
|
23
|
-
version: '24.0.0-develop.
|
|
22
|
+
publishDate: 1779209588,
|
|
23
|
+
version: '24.0.0-develop.39',
|
|
24
24
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
25
25
|
};
|
|
26
26
|
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "24.0.0-develop.
|
|
10
|
+
"publishDate": 1779209588,
|
|
11
|
+
"version": "24.0.0-develop.39",
|
|
12
12
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
13
13
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-icons",
|
|
3
|
-
"version": "24.0.0-develop.
|
|
3
|
+
"version": "24.0.0-develop.39",
|
|
4
4
|
"description": "Kendo UI Angular component starter template",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -14,10 +14,24 @@
|
|
|
14
14
|
],
|
|
15
15
|
"@progress": {
|
|
16
16
|
"friendlyName": "Icon",
|
|
17
|
+
"migrations": {
|
|
18
|
+
"options": {
|
|
19
|
+
"parser": "tsx",
|
|
20
|
+
"pattern": "*.{ts,html,css,scss,sass,less}"
|
|
21
|
+
},
|
|
22
|
+
"codemods": {
|
|
23
|
+
"24": [
|
|
24
|
+
{
|
|
25
|
+
"description": "IconThemeColor no longer accepts 'light' or 'dark' values.",
|
|
26
|
+
"file": "codemods/v24/themecolor-light-dark.js"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
17
31
|
"package": {
|
|
18
32
|
"productName": "Kendo UI for Angular",
|
|
19
33
|
"productCode": "KENDOUIANGULAR",
|
|
20
|
-
"publishDate":
|
|
34
|
+
"publishDate": 1779209588,
|
|
21
35
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
22
36
|
}
|
|
23
37
|
},
|
|
@@ -28,7 +42,7 @@
|
|
|
28
42
|
"@angular/platform-browser": "19 - 21",
|
|
29
43
|
"@progress/kendo-licensing": "^1.11.0",
|
|
30
44
|
"@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
|
|
31
|
-
"@progress/kendo-angular-common": "24.0.0-develop.
|
|
45
|
+
"@progress/kendo-angular-common": "24.0.0-develop.39",
|
|
32
46
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
33
47
|
},
|
|
34
48
|
"peerDependenciesMeta": {
|
|
@@ -38,7 +52,7 @@
|
|
|
38
52
|
},
|
|
39
53
|
"dependencies": {
|
|
40
54
|
"tslib": "^2.3.1",
|
|
41
|
-
"@progress/kendo-angular-schematics": "24.0.0-develop.
|
|
55
|
+
"@progress/kendo-angular-schematics": "24.0.0-develop.39"
|
|
42
56
|
},
|
|
43
57
|
"schematics": "./schematics/collection.json",
|
|
44
58
|
"module": "fesm2022/progress-kendo-angular-icons.mjs",
|