@progress/kendo-angular-inputs 26.0.0-develop.2 → 26.0.0-develop.4
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.
|
@@ -423,9 +423,13 @@ const valuelessAttributeRemoval = (templateContent, tagName, attributeName) => {
|
|
|
423
423
|
return templateContent.replace(pattern, '$1');
|
|
424
424
|
};
|
|
425
425
|
exports.valuelessAttributeRemoval = valuelessAttributeRemoval;
|
|
426
|
+
/**
|
|
427
|
+
* Removes a property from values typed as an imported component or interface.
|
|
428
|
+
*/
|
|
426
429
|
function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propertyName) {
|
|
427
430
|
if (source.includes(typeName)) {
|
|
428
|
-
|
|
431
|
+
const localTypeName = getImportedLocalName(rootSource, j, packageName, typeName);
|
|
432
|
+
if (!localTypeName) {
|
|
429
433
|
return;
|
|
430
434
|
}
|
|
431
435
|
const typeVariables = new Set();
|
|
@@ -437,7 +441,7 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
437
441
|
param.typeAnnotation &&
|
|
438
442
|
param.typeAnnotation.typeAnnotation?.type === 'TSTypeReference' &&
|
|
439
443
|
param.typeAnnotation.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
440
|
-
param.typeAnnotation.typeAnnotation.typeName.name ===
|
|
444
|
+
param.typeAnnotation.typeAnnotation.typeName.name === localTypeName) {
|
|
441
445
|
typeVariables.add(param.name);
|
|
442
446
|
}
|
|
443
447
|
});
|
|
@@ -449,7 +453,7 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
449
453
|
path.node.id.typeAnnotation &&
|
|
450
454
|
path.node.id.typeAnnotation.typeAnnotation?.type === 'TSTypeReference' &&
|
|
451
455
|
path.node.id.typeAnnotation.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
452
|
-
path.node.id.typeAnnotation.typeAnnotation.typeName.name ===
|
|
456
|
+
path.node.id.typeAnnotation.typeAnnotation.typeName.name === localTypeName) {
|
|
453
457
|
typeVariables.add(path.node.id.name);
|
|
454
458
|
}
|
|
455
459
|
});
|
|
@@ -461,7 +465,7 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
461
465
|
path.node.typeAnnotation.typeAnnotation.type === 'TSTypeReference' &&
|
|
462
466
|
path.node.typeAnnotation.typeAnnotation.typeName &&
|
|
463
467
|
path.node.typeAnnotation.typeAnnotation.typeName.type === 'Identifier' &&
|
|
464
|
-
path.node.typeAnnotation.typeAnnotation.typeName.name ===
|
|
468
|
+
path.node.typeAnnotation.typeAnnotation.typeName.name === localTypeName) {
|
|
465
469
|
typeVariables.add(path.node.key.name);
|
|
466
470
|
}
|
|
467
471
|
});
|
|
@@ -475,7 +479,7 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
475
479
|
path.node.typeAnnotation.typeAnnotation.type === 'TSTypeReference' &&
|
|
476
480
|
path.node.typeAnnotation.typeAnnotation.typeName &&
|
|
477
481
|
path.node.typeAnnotation.typeAnnotation.typeName.type === 'Identifier' &&
|
|
478
|
-
path.node.typeAnnotation.typeAnnotation.typeName.name ===
|
|
482
|
+
path.node.typeAnnotation.typeAnnotation.typeName.name === localTypeName);
|
|
479
483
|
})
|
|
480
484
|
.forEach((path) => {
|
|
481
485
|
if (path.node.value && path.node.value.type === 'ObjectExpression') {
|
|
@@ -500,7 +504,7 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
500
504
|
typeAnnotation: {
|
|
501
505
|
type: 'TSTypeReference',
|
|
502
506
|
typeName: {
|
|
503
|
-
name:
|
|
507
|
+
name: localTypeName,
|
|
504
508
|
},
|
|
505
509
|
},
|
|
506
510
|
},
|
|
@@ -520,7 +524,7 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
520
524
|
}
|
|
521
525
|
});
|
|
522
526
|
// Handle return statements with object literals, but only when the enclosing
|
|
523
|
-
// function's declared return type matches
|
|
527
|
+
// function's declared return type matches the imported type. This prevents removing
|
|
524
528
|
// unrelated propertyName keys from object literals returned in other functions.
|
|
525
529
|
const enclosingFunctionReturnsType = (nodePath) => {
|
|
526
530
|
let current = nodePath.parent;
|
|
@@ -534,7 +538,7 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
534
538
|
return !!(node.returnType &&
|
|
535
539
|
node.returnType.typeAnnotation?.type === 'TSTypeReference' &&
|
|
536
540
|
node.returnType.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
537
|
-
node.returnType.typeAnnotation.typeName.name ===
|
|
541
|
+
node.returnType.typeAnnotation.typeName.name === localTypeName);
|
|
538
542
|
}
|
|
539
543
|
current = current.parent;
|
|
540
544
|
}
|
|
@@ -579,7 +583,7 @@ function tsPropertyRemoval(source, rootSource, j, packageName, typeName, propert
|
|
|
579
583
|
if (left.object.type === 'TSAsExpression' &&
|
|
580
584
|
left.object.typeAnnotation.type === 'TSTypeReference' &&
|
|
581
585
|
left.object.typeAnnotation.typeName?.type === 'Identifier' &&
|
|
582
|
-
left.object.typeAnnotation.typeName.name ===
|
|
586
|
+
left.object.typeAnnotation.typeName.name === localTypeName) {
|
|
583
587
|
return true;
|
|
584
588
|
}
|
|
585
589
|
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 = exports.aiInstructionsRating = exports.aiInstructionsSignatureClear = exports.aiInstructionsSignatureMinimize = exports.aiInstructionsResetColor = exports.aiInstructionsActionsStretch = void 0;
|
|
8
|
+
exports.default = default_1;
|
|
9
|
+
const codemods_1 = require("@progress/kendo-angular-common/codemods");
|
|
10
|
+
exports.aiInstructionsActionsStretch = `k-actions-stretch — renamed to k-actions-stretched in the ColorPicker and FlatColorPicker action buttons container (actionsLayout="stretch").
|
|
11
|
+
Before: <div class="k-coloreditor-footer k-actions k-actions-horizontal k-actions-stretch">
|
|
12
|
+
After: <div class="k-coloreditor-footer k-actions k-actions-horizontal k-actions-stretched">
|
|
13
|
+
Replace .k-actions-stretch selectors and test assertions with .k-actions-stretched.`;
|
|
14
|
+
exports.aiInstructionsResetColor = `k-i-reset-color — the font icon of the ColorPicker, FlatColorPicker, and ColorGradient clear button changed from k-i-reset-color to k-i-droplet-slash.
|
|
15
|
+
Replace .k-i-reset-color selectors and test assertions with .k-i-droplet-slash. SVG icons are not affected.`;
|
|
16
|
+
exports.aiInstructionsSignatureMinimize = `k-rotate-180 / k-i-hyperlink-open / k-svg-i-hyperlink-open — the Signature minimize button (button.k-signature-minimize) no longer has the k-rotate-180 class, and its icon changed from hyperlink-open to x.
|
|
17
|
+
Before: <button class="k-signature-action k-signature-minimize k-rotate-180"> with k-i-hyperlink-open / k-svg-i-hyperlink-open
|
|
18
|
+
After: <button class="k-signature-action k-signature-minimize"> with k-i-x / k-svg-i-x
|
|
19
|
+
Remove .k-signature-minimize.k-rotate-180 selectors and update minimize-button icon selectors or assertions from hyperlink-open to x.
|
|
20
|
+
The maximize button (button.k-signature-maximize) still uses the hyperlink-open icon.`;
|
|
21
|
+
exports.aiInstructionsSignatureClear = `k-i-close / k-svg-i-x — the Signature clear button (button.k-signature-clear) icon changed to eraser.
|
|
22
|
+
Font icon: k-i-close changed to k-i-eraser. SVG icon: k-svg-i-x changed to k-svg-i-eraser.
|
|
23
|
+
Update clear-button icon selectors and test assertions accordingly.`;
|
|
24
|
+
exports.aiInstructionsRating = `k-svg-i-star-outline / k-i-<icon>-outline — the Rating no longer renders outline icon variants for unselected items.
|
|
25
|
+
Font icons: unselected items render the same k-i-<icon> class as selected items instead of k-i-<icon>-outline.
|
|
26
|
+
SVG icons: the default icon changed from k-svg-i-star-outline to k-svg-i-star (the outline appearance comes from the icon variant).
|
|
27
|
+
Replace selectors and test assertions that target the -outline icon classes inside .k-rating with the base icon classes,
|
|
28
|
+
and distinguish selected/unselected items through the item state classes (for example, .k-rating-item.k-selected) instead.`;
|
|
29
|
+
exports.aiInstructions = `Review your stylesheets, test files, and any code that references these Inputs classes:
|
|
30
|
+
|
|
31
|
+
${exports.aiInstructionsActionsStretch}
|
|
32
|
+
|
|
33
|
+
${exports.aiInstructionsResetColor}
|
|
34
|
+
|
|
35
|
+
${exports.aiInstructionsSignatureMinimize}
|
|
36
|
+
|
|
37
|
+
${exports.aiInstructionsSignatureClear}
|
|
38
|
+
|
|
39
|
+
${exports.aiInstructionsRating}`;
|
|
40
|
+
// Old (removed) classes only. Generic ones (k-rotate-180, k-i-close, k-svg-i-x, k-i-hyperlink-open,
|
|
41
|
+
// k-svg-i-hyperlink-open) are reported only next to the Signature context to avoid false positives.
|
|
42
|
+
const classes = [
|
|
43
|
+
'k-actions-stretch',
|
|
44
|
+
'k-i-reset-color',
|
|
45
|
+
'k-rotate-180',
|
|
46
|
+
'k-i-hyperlink-open',
|
|
47
|
+
'k-svg-i-hyperlink-open',
|
|
48
|
+
'k-i-close',
|
|
49
|
+
'k-svg-i-x',
|
|
50
|
+
'k-svg-i-star-outline'
|
|
51
|
+
];
|
|
52
|
+
const pattern = (0, codemods_1.makePattern)(classes);
|
|
53
|
+
const patternActionsStretch = (0, codemods_1.makePattern)(['k-actions-stretch']);
|
|
54
|
+
const patternResetColor = (0, codemods_1.makePattern)(['k-i-reset-color']);
|
|
55
|
+
const patternStarOutline = (0, codemods_1.makePattern)(['k-svg-i-star-outline']);
|
|
56
|
+
const patternSignature = /k-signature|kendo-signature/;
|
|
57
|
+
const patternSignatureMinimizeOld = (0, codemods_1.makePattern)(['k-rotate-180', 'k-i-hyperlink-open', 'k-svg-i-hyperlink-open']);
|
|
58
|
+
const patternSignatureClear = /k-signature-clear/;
|
|
59
|
+
const patternSignatureClearOld = (0, codemods_1.makePattern)(['k-i-close', 'k-svg-i-x']);
|
|
60
|
+
const patternRating = /k-rating|kendo-rating/;
|
|
61
|
+
// Rating font icon outline variants, e.g. k-i-star-outline, k-i-heart-outline.
|
|
62
|
+
const patternFontIconOutline = /(?:\.|(?<=["'\s]))k-i-[a-z0-9]+(?:-[a-z0-9]+)*-outline\b/;
|
|
63
|
+
function default_1(fileInfo) {
|
|
64
|
+
if (!(0, codemods_1.isRenderingChangeTarget)(fileInfo.path)) {
|
|
65
|
+
return fileInfo.source;
|
|
66
|
+
}
|
|
67
|
+
const source = fileInfo.source;
|
|
68
|
+
if (!pattern.test(source) && !patternFontIconOutline.test(source)) {
|
|
69
|
+
return fileInfo.source;
|
|
70
|
+
}
|
|
71
|
+
if (patternActionsStretch.test(source)) {
|
|
72
|
+
(0, codemods_1.writeInstructionMarker)(exports.aiInstructionsActionsStretch, __filename, fileInfo.path);
|
|
73
|
+
}
|
|
74
|
+
if (patternResetColor.test(source)) {
|
|
75
|
+
(0, codemods_1.writeInstructionMarker)(exports.aiInstructionsResetColor, __filename, fileInfo.path);
|
|
76
|
+
}
|
|
77
|
+
if (patternSignature.test(source) && patternSignatureMinimizeOld.test(source)) {
|
|
78
|
+
(0, codemods_1.writeInstructionMarker)(exports.aiInstructionsSignatureMinimize, __filename, fileInfo.path);
|
|
79
|
+
}
|
|
80
|
+
if (patternSignatureClear.test(source) && patternSignatureClearOld.test(source)) {
|
|
81
|
+
(0, codemods_1.writeInstructionMarker)(exports.aiInstructionsSignatureClear, __filename, fileInfo.path);
|
|
82
|
+
}
|
|
83
|
+
if (patternStarOutline.test(source) || (patternRating.test(source) && patternFontIconOutline.test(source))) {
|
|
84
|
+
(0, codemods_1.writeInstructionMarker)(exports.aiInstructionsRating, __filename, fileInfo.path);
|
|
85
|
+
}
|
|
86
|
+
return fileInfo.source;
|
|
87
|
+
}
|
|
@@ -608,8 +608,8 @@ const packageMetadata = {
|
|
|
608
608
|
productName: 'Kendo UI for Angular',
|
|
609
609
|
productCode: 'KENDOUIANGULAR',
|
|
610
610
|
productCodes: ['KENDOUIANGULAR'],
|
|
611
|
-
publishDate:
|
|
612
|
-
version: '26.0.0-develop.
|
|
611
|
+
publishDate: 1794304778,
|
|
612
|
+
version: '26.0.0-develop.4',
|
|
613
613
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
614
614
|
};
|
|
615
615
|
|
package/package-metadata.mjs
CHANGED
|
@@ -7,7 +7,7 @@ export const packageMetadata = {
|
|
|
7
7
|
"productCodes": [
|
|
8
8
|
"KENDOUIANGULAR"
|
|
9
9
|
],
|
|
10
|
-
"publishDate":
|
|
11
|
-
"version": "26.0.0-develop.
|
|
10
|
+
"publishDate": 1794304778,
|
|
11
|
+
"version": "26.0.0-develop.4",
|
|
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-inputs",
|
|
3
|
-
"version": "26.0.0-develop.
|
|
3
|
+
"version": "26.0.0-develop.4",
|
|
4
4
|
"description": "Kendo UI for Angular Inputs Package - Everything you need to build professional form functionality (Checkbox, ColorGradient, ColorPalette, ColorPicker, FlatColorPicker, FormField, MaskedTextBox, NumericTextBox, RadioButton, RangeSlider, Slider, Switch, TextArea, and TextBox Components)",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -56,13 +56,20 @@
|
|
|
56
56
|
"file": "codemods/v25/inputs-rendering-changes.js",
|
|
57
57
|
"instructionsOnly": true
|
|
58
58
|
}
|
|
59
|
+
],
|
|
60
|
+
"26": [
|
|
61
|
+
{
|
|
62
|
+
"description": "The ColorPicker, FlatColorPicker, Signature, and Rating have rendering changes that may affect custom styling.",
|
|
63
|
+
"file": "codemods/v26/inputs-rendering-changes.js",
|
|
64
|
+
"instructionsOnly": true
|
|
65
|
+
}
|
|
59
66
|
]
|
|
60
67
|
}
|
|
61
68
|
},
|
|
62
69
|
"package": {
|
|
63
70
|
"productName": "Kendo UI for Angular",
|
|
64
71
|
"productCode": "KENDOUIANGULAR",
|
|
65
|
-
"publishDate":
|
|
72
|
+
"publishDate": 1794304778,
|
|
66
73
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
67
74
|
}
|
|
68
75
|
},
|
|
@@ -74,20 +81,20 @@
|
|
|
74
81
|
"@angular/platform-browser": "20 - 22",
|
|
75
82
|
"@progress/kendo-drawing": "^1.25.0",
|
|
76
83
|
"@progress/kendo-licensing": "^1.13.0",
|
|
77
|
-
"@progress/kendo-angular-buttons": "26.0.0-develop.
|
|
78
|
-
"@progress/kendo-angular-common": "26.0.0-develop.
|
|
79
|
-
"@progress/kendo-angular-utils": "26.0.0-develop.
|
|
80
|
-
"@progress/kendo-angular-navigation": "26.0.0-develop.
|
|
81
|
-
"@progress/kendo-angular-dialog": "26.0.0-develop.
|
|
82
|
-
"@progress/kendo-angular-intl": "26.0.0-develop.
|
|
83
|
-
"@progress/kendo-angular-l10n": "26.0.0-develop.
|
|
84
|
-
"@progress/kendo-angular-popup": "26.0.0-develop.
|
|
85
|
-
"@progress/kendo-angular-icons": "26.0.0-develop.
|
|
84
|
+
"@progress/kendo-angular-buttons": "26.0.0-develop.4",
|
|
85
|
+
"@progress/kendo-angular-common": "26.0.0-develop.4",
|
|
86
|
+
"@progress/kendo-angular-utils": "26.0.0-develop.4",
|
|
87
|
+
"@progress/kendo-angular-navigation": "26.0.0-develop.4",
|
|
88
|
+
"@progress/kendo-angular-dialog": "26.0.0-develop.4",
|
|
89
|
+
"@progress/kendo-angular-intl": "26.0.0-develop.4",
|
|
90
|
+
"@progress/kendo-angular-l10n": "26.0.0-develop.4",
|
|
91
|
+
"@progress/kendo-angular-popup": "26.0.0-develop.4",
|
|
92
|
+
"@progress/kendo-angular-icons": "26.0.0-develop.4",
|
|
86
93
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
87
94
|
},
|
|
88
95
|
"dependencies": {
|
|
89
96
|
"tslib": "^2.3.1",
|
|
90
|
-
"@progress/kendo-angular-schematics": "26.0.0-develop.
|
|
97
|
+
"@progress/kendo-angular-schematics": "26.0.0-develop.4",
|
|
91
98
|
"@progress/kendo-common": "^1.0.1",
|
|
92
99
|
"@progress/kendo-draggable": "^3.0.0",
|
|
93
100
|
"@progress/kendo-inputs-common": "^3.1.0"
|