@progress/kendo-angular-indicators 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.
- package/codemods/libs/common/src/codemods/utils.js +1488 -0
- package/codemods/libs/indicators/codemods/v24/badge-themecolor-light-dark.js +50 -0
- package/codemods/libs/indicators/codemods/v24/loader-themecolor-light-dark.js +50 -0
- package/fesm2022/progress-kendo-angular-indicators.mjs +2 -2
- package/package-metadata.mjs +2 -2
- package/package.json +24 -6
|
@@ -0,0 +1,50 @@
|
|
|
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 = `BadgeThemeColor no longer accepts 'light', 'dark', 'inverse' values.
|
|
13
|
+
Replace any use of the unsupported values with a supported value: 'base', 'primary', 'secondary', 'tertiary', 'info', 'success', 'warning', 'error'.
|
|
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 ? 'primary' : 'base'"
|
|
29
|
+
|
|
30
|
+
TypeScript assignment — update the assigned value:
|
|
31
|
+
Before: this.badge.themeColor = 'light';
|
|
32
|
+
After: this.badge.themeColor = 'base';`;
|
|
33
|
+
const REMOVED_VALUES = ['light', 'dark', 'inverse'];
|
|
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
|
+
return (0, codemods_1.attributeConditionalRemoval)(templateContent, 'kendo-badge', 'themeColor', REMOVED_VALUES);
|
|
41
|
+
});
|
|
42
|
+
if (filePath.endsWith('.html')) {
|
|
43
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
44
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
45
|
+
return htmlResult;
|
|
46
|
+
}
|
|
47
|
+
return fileInfo.source;
|
|
48
|
+
}
|
|
49
|
+
return htmlResult || fileInfo.source;
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 = `LoaderThemeColor no longer accepts 'light', 'dark', 'success', 'warning', 'error', 'info', 'inverse'.
|
|
13
|
+
Replace any use of the unsupported values with a supported value: 'base', 'primary', 'secondary', 'tertiary'.
|
|
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="primary"
|
|
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', 'dark', etc.)
|
|
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 ? 'primary' : 'base'"
|
|
29
|
+
|
|
30
|
+
TypeScript assignment — update the assigned value:
|
|
31
|
+
Before: this.loader.themeColor = 'light';
|
|
32
|
+
After: this.loader.themeColor = 'base';`;
|
|
33
|
+
const REMOVED_VALUES = ['light', 'dark', 'success', 'warning', 'error', 'inverse', 'info'];
|
|
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
|
+
return (0, codemods_1.attributeConditionalRemoval)(templateContent, 'kendo-loader', 'themeColor', REMOVED_VALUES);
|
|
41
|
+
});
|
|
42
|
+
if (filePath.endsWith('.html')) {
|
|
43
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
44
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
45
|
+
return htmlResult;
|
|
46
|
+
}
|
|
47
|
+
return fileInfo.source;
|
|
48
|
+
}
|
|
49
|
+
return htmlResult || fileInfo.source;
|
|
50
|
+
}
|
|
@@ -82,8 +82,8 @@ const packageMetadata = {
|
|
|
82
82
|
productName: 'Kendo UI for Angular',
|
|
83
83
|
productCode: 'KENDOUIANGULAR',
|
|
84
84
|
productCodes: ['KENDOUIANGULAR'],
|
|
85
|
-
publishDate:
|
|
86
|
-
version: '24.0.0-develop.
|
|
85
|
+
publishDate: 1779209689,
|
|
86
|
+
version: '24.0.0-develop.39',
|
|
87
87
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
88
88
|
};
|
|
89
89
|
|
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": 1779209689,
|
|
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-indicators",
|
|
3
|
-
"version": "24.0.0-develop.
|
|
3
|
+
"version": "24.0.0-develop.39",
|
|
4
4
|
"description": "Kendo UI Indicators for Angular",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -14,10 +14,28 @@
|
|
|
14
14
|
],
|
|
15
15
|
"@progress": {
|
|
16
16
|
"friendlyName": "Indicators",
|
|
17
|
+
"migrations": {
|
|
18
|
+
"options": {
|
|
19
|
+
"parser": "tsx",
|
|
20
|
+
"pattern": "*.{ts,html,css,scss,sass,less}"
|
|
21
|
+
},
|
|
22
|
+
"codemods": {
|
|
23
|
+
"24": [
|
|
24
|
+
{
|
|
25
|
+
"description": "BadgeThemeColor no longer accepts 'light', 'dark', or 'inverse' values.",
|
|
26
|
+
"file": "codemods/v24/badge-themecolor-light-dark.js"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"description": "LoaderThemeColor no longer accepts 'light', 'dark', 'success', 'warning', 'error', 'info', or 'inverse' values.",
|
|
30
|
+
"file": "codemods/v24/loader-themecolor-light-dark.js"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
17
35
|
"package": {
|
|
18
36
|
"productName": "Kendo UI for Angular",
|
|
19
37
|
"productCode": "KENDOUIANGULAR",
|
|
20
|
-
"publishDate":
|
|
38
|
+
"publishDate": 1779209689,
|
|
21
39
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
22
40
|
}
|
|
23
41
|
},
|
|
@@ -27,14 +45,14 @@
|
|
|
27
45
|
"@angular/core": "19 - 21",
|
|
28
46
|
"@angular/platform-browser": "19 - 21",
|
|
29
47
|
"@progress/kendo-licensing": "^1.11.0",
|
|
30
|
-
"@progress/kendo-angular-common": "24.0.0-develop.
|
|
31
|
-
"@progress/kendo-angular-intl": "24.0.0-develop.
|
|
32
|
-
"@progress/kendo-angular-l10n": "24.0.0-develop.
|
|
48
|
+
"@progress/kendo-angular-common": "24.0.0-develop.39",
|
|
49
|
+
"@progress/kendo-angular-intl": "24.0.0-develop.39",
|
|
50
|
+
"@progress/kendo-angular-l10n": "24.0.0-develop.39",
|
|
33
51
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
34
52
|
},
|
|
35
53
|
"dependencies": {
|
|
36
54
|
"tslib": "^2.3.1",
|
|
37
|
-
"@progress/kendo-angular-schematics": "24.0.0-develop.
|
|
55
|
+
"@progress/kendo-angular-schematics": "24.0.0-develop.39"
|
|
38
56
|
},
|
|
39
57
|
"schematics": "./schematics/collection.json",
|
|
40
58
|
"module": "fesm2022/progress-kendo-angular-indicators.mjs",
|