@progress/kendo-angular-dropdowns 21.1.1-develop.2 → 21.2.0-develop.10
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/utils.js +805 -394
- package/codemods/v19/autocomplete-subtitle.js +10 -13
- package/codemods/v19/autocomplete-title.js +10 -13
- package/codemods/v19/combobox-subtitle.js +10 -13
- package/codemods/v19/combobox-title.js +10 -14
- package/codemods/v19/dropdownlist-subtitle.js +10 -13
- package/codemods/v19/dropdownlist-title.js +10 -14
- package/codemods/v19/dropdowntree-subtitle.js +10 -13
- package/codemods/v19/dropdowntree-title.js +10 -13
- package/codemods/v19/multicolumncombobox-subtitle.js +10 -13
- package/codemods/v19/multicolumncombobox-title.js +10 -13
- package/codemods/v19/multiselect-subtitle.js +10 -13
- package/codemods/v19/multiselect-title.js +10 -13
- package/codemods/v19/multiselecttree-subtitle.js +10 -13
- package/codemods/v19/multiselecttree-title.js +10 -13
- package/esm2022/autocomplete/autocomplete.component.mjs +261 -219
- package/esm2022/comboboxes/combobox.component.mjs +298 -256
- package/esm2022/comboboxes/multicolumncombobox.component.mjs +429 -383
- package/esm2022/common/adaptive-renderer.component.mjs +123 -107
- package/esm2022/common/list.component.mjs +295 -217
- package/esm2022/common/navigation/navigation.service.mjs +2 -2
- package/esm2022/common/searchbar.component.mjs +2 -2
- package/esm2022/common/taglist.component.mjs +73 -59
- package/esm2022/dropdownlist/dropdownlist.component.mjs +262 -234
- package/esm2022/dropdowntrees/dropdowntree.component.mjs +298 -258
- package/esm2022/dropdowntrees/multiselecttree.component.mjs +361 -333
- package/esm2022/multiselect/multiselect.component.mjs +308 -267
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-dropdowns.mjs +2700 -2325
- package/package.json +11 -12
- package/schematics/ngAdd/index.js +2 -2
- package/codemods/template-transformer/index.js +0 -93
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dropdowns",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.0-develop.10",
|
|
4
4
|
"description": "A wide variety of native Angular dropdown components including AutoComplete, ComboBox, DropDownList, DropDownTree, MultiColumnComboBox, MultiSelect, and MultiSelectTree ",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"package": {
|
|
101
101
|
"productName": "Kendo UI for Angular",
|
|
102
102
|
"productCode": "KENDOUIANGULAR",
|
|
103
|
-
"publishDate":
|
|
103
|
+
"publishDate": 1764592976,
|
|
104
104
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
@@ -111,20 +111,19 @@
|
|
|
111
111
|
"@angular/forms": "18 - 21",
|
|
112
112
|
"@angular/platform-browser": "18 - 21",
|
|
113
113
|
"@progress/kendo-licensing": "^1.7.0",
|
|
114
|
-
"@progress/kendo-angular-common": "21.
|
|
115
|
-
"@progress/kendo-angular-utils": "21.
|
|
116
|
-
"@progress/kendo-angular-l10n": "21.
|
|
117
|
-
"@progress/kendo-angular-navigation": "21.
|
|
118
|
-
"@progress/kendo-angular-popup": "21.
|
|
119
|
-
"@progress/kendo-angular-icons": "21.
|
|
120
|
-
"@progress/kendo-angular-treeview": "21.
|
|
114
|
+
"@progress/kendo-angular-common": "21.2.0-develop.10",
|
|
115
|
+
"@progress/kendo-angular-utils": "21.2.0-develop.10",
|
|
116
|
+
"@progress/kendo-angular-l10n": "21.2.0-develop.10",
|
|
117
|
+
"@progress/kendo-angular-navigation": "21.2.0-develop.10",
|
|
118
|
+
"@progress/kendo-angular-popup": "21.2.0-develop.10",
|
|
119
|
+
"@progress/kendo-angular-icons": "21.2.0-develop.10",
|
|
120
|
+
"@progress/kendo-angular-treeview": "21.2.0-develop.10",
|
|
121
121
|
"rxjs": "^6.5.3 || ^7.0.0"
|
|
122
122
|
},
|
|
123
123
|
"dependencies": {
|
|
124
124
|
"tslib": "^2.3.1",
|
|
125
|
-
"@progress/kendo-angular-schematics": "21.
|
|
126
|
-
"@progress/kendo-common": "^1.0.1"
|
|
127
|
-
"node-html-parser": "^7.0.1"
|
|
125
|
+
"@progress/kendo-angular-schematics": "21.2.0-develop.10",
|
|
126
|
+
"@progress/kendo-common": "^1.0.1"
|
|
128
127
|
},
|
|
129
128
|
"schematics": "./schematics/collection.json",
|
|
130
129
|
"module": "fesm2022/progress-kendo-angular-dropdowns.mjs",
|
|
@@ -9,9 +9,9 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
9
9
|
function default_1(options) {
|
|
10
10
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DropDownsModule', package: 'dropdowns', peerDependencies: {
|
|
11
11
|
// peers of the treeview
|
|
12
|
-
'@progress/kendo-angular-inputs': '21.
|
|
12
|
+
'@progress/kendo-angular-inputs': '21.2.0-develop.10',
|
|
13
13
|
// peers of inputs
|
|
14
|
-
'@progress/kendo-angular-intl': '21.
|
|
14
|
+
'@progress/kendo-angular-intl': '21.2.0-develop.10',
|
|
15
15
|
'@progress/kendo-drawing': '^1.17.2',
|
|
16
16
|
// Peer dependency of icons
|
|
17
17
|
'@progress/kendo-svg-icons': '^4.0.0'
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2025 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.templateTransformer = templateTransformer;
|
|
8
|
-
const node_html_parser_1 = require("node-html-parser");
|
|
9
|
-
function templateTransformer(root, j, ...processFns) {
|
|
10
|
-
root
|
|
11
|
-
.find(j.ClassDeclaration)
|
|
12
|
-
.forEach(classPath => {
|
|
13
|
-
// Skip if no decorators
|
|
14
|
-
const classNode = classPath.node;
|
|
15
|
-
if (!classNode.decorators || !classNode.decorators.length)
|
|
16
|
-
return;
|
|
17
|
-
// Find Component decorator
|
|
18
|
-
const componentDecorator = classNode.decorators.find((decorator) => {
|
|
19
|
-
if (decorator.expression && decorator.expression.type === 'CallExpression') {
|
|
20
|
-
const callee = decorator.expression.callee;
|
|
21
|
-
// Handle direct Component identifier
|
|
22
|
-
if (callee.type === 'Identifier' && callee.name === 'Component') {
|
|
23
|
-
return true;
|
|
24
|
-
}
|
|
25
|
-
// Handle angular.core.Component or similar
|
|
26
|
-
if (callee.type === 'MemberExpression' &&
|
|
27
|
-
callee.property &&
|
|
28
|
-
callee.property.type === 'Identifier' &&
|
|
29
|
-
callee.property.name === 'Component') {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return false;
|
|
34
|
-
});
|
|
35
|
-
if (!componentDecorator || !componentDecorator.expression)
|
|
36
|
-
return;
|
|
37
|
-
const expression = componentDecorator.expression;
|
|
38
|
-
if (expression.type !== 'CallExpression' || !expression.arguments.length)
|
|
39
|
-
return;
|
|
40
|
-
const componentOptions = expression.arguments[0];
|
|
41
|
-
if (componentOptions.type !== 'ObjectExpression')
|
|
42
|
-
return;
|
|
43
|
-
// Find template and templateUrl properties
|
|
44
|
-
const props = componentOptions.properties || [];
|
|
45
|
-
const templateProp = props.find((prop) => (prop.key.type === 'Identifier' && prop.key.name === 'template') ||
|
|
46
|
-
(prop.key.type === 'StringLiteral' && prop.key.value === 'template'));
|
|
47
|
-
// const templateUrlProp = props.find((prop: any) =>
|
|
48
|
-
// (prop.key.type === 'Identifier' && prop.key.name === 'templateUrl') ||
|
|
49
|
-
// (prop.key.type === 'StringLiteral' && prop.key.value === 'templateUrl')
|
|
50
|
-
// );
|
|
51
|
-
// Process inline template
|
|
52
|
-
if (templateProp) {
|
|
53
|
-
// Extract template based on node type
|
|
54
|
-
let originalTemplate;
|
|
55
|
-
if (templateProp.value.type === 'StringLiteral' || templateProp.value.type === 'Literal') {
|
|
56
|
-
originalTemplate = templateProp.value.value;
|
|
57
|
-
}
|
|
58
|
-
else if (templateProp.value.type === 'TemplateLiteral') {
|
|
59
|
-
// For template literals, join quasis
|
|
60
|
-
if (templateProp.value.quasis && templateProp.value.quasis.length) {
|
|
61
|
-
originalTemplate = templateProp.value.quasis
|
|
62
|
-
.map((q) => q.value.cooked || q.value.raw)
|
|
63
|
-
.join('');
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
console.warn('Could not process TemplateLiteral properly');
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
console.warn(`Unsupported template type: ${templateProp.value.type}`);
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
const root = (0, node_html_parser_1.parse)(originalTemplate);
|
|
75
|
-
processFns.forEach(fn => {
|
|
76
|
-
fn(root);
|
|
77
|
-
});
|
|
78
|
-
// Transform template using Angular compiler
|
|
79
|
-
const transformedTemplate = root.toString();
|
|
80
|
-
if (transformedTemplate !== originalTemplate) {
|
|
81
|
-
// Update template property
|
|
82
|
-
if (templateProp.value.type === 'TemplateLiteral') {
|
|
83
|
-
// For template literals, create a new template literal
|
|
84
|
-
templateProp.value = j.templateLiteral([j.templateElement({ cooked: transformedTemplate, raw: transformedTemplate }, true)], []);
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
// For string literals, update the value
|
|
88
|
-
templateProp.value.value = transformedTemplate;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
}
|