@progress/kendo-angular-dropdowns 21.0.0-develop.16 → 21.0.0-develop.18
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 +485 -324
- package/codemods/v19/autocomplete-subtitle.js +7 -5
- package/codemods/v19/autocomplete-title.js +7 -6
- package/codemods/v19/combobox-subtitle.js +7 -5
- package/codemods/v19/combobox-title.js +7 -6
- package/codemods/v19/dropdownlist-subtitle.js +7 -4
- package/codemods/v19/dropdownlist-title.js +7 -5
- package/codemods/v19/dropdowntree-subtitle.js +7 -4
- package/codemods/v19/dropdowntree-title.js +7 -6
- package/codemods/v19/multicolumncombobox-subtitle.js +7 -4
- package/codemods/v19/multicolumncombobox-title.js +7 -6
- package/codemods/v19/multiselect-subtitle.js +7 -4
- package/codemods/v19/multiselect-title.js +7 -6
- package/codemods/v19/multiselecttree-subtitle.js +7 -4
- package/codemods/v19/multiselecttree-title.js +7 -6
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-dropdowns.mjs +2 -2
- package/package.json +10 -10
- package/schematics/ngAdd/index.js +2 -2
|
@@ -34,10 +34,12 @@ const fs = __importStar(require("fs"));
|
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-autocomplete', 'subtitle', 'adaptiveSubtitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
const j = api.jscodeshift;
|
|
@@ -45,6 +47,6 @@ function default_1(fileInfo, api) {
|
|
|
45
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
46
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-autocomplete', 'subtitle', 'adaptiveSubtitle');
|
|
47
49
|
});
|
|
48
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'AutoCompleteComponent', 'subtitle', 'adaptiveSubtitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'AutoCompleteComponent', 'subtitle', 'adaptiveSubtitle');
|
|
49
51
|
return rootSource.toSource();
|
|
50
52
|
}
|
|
@@ -34,18 +34,19 @@ const fs = __importStar(require("fs"));
|
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-autocomplete', 'title', 'adaptiveTitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
const j = api.jscodeshift;
|
|
44
46
|
const rootSource = j(fileInfo.source);
|
|
45
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
46
|
-
// Using node-html-parser to parse and manipulate the template: https://github.com/taoqf/node-html-parser
|
|
47
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-autocomplete', 'title', 'adaptiveTitle');
|
|
48
49
|
});
|
|
49
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'AutoCompleteComponent', 'title', 'adaptiveTitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'AutoCompleteComponent', 'title', 'adaptiveTitle');
|
|
50
51
|
return rootSource.toSource();
|
|
51
52
|
}
|
|
@@ -34,10 +34,12 @@ const fs = __importStar(require("fs"));
|
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-combobox', 'subtitle', 'adaptiveSubtitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
const j = api.jscodeshift;
|
|
@@ -45,6 +47,6 @@ function default_1(fileInfo, api) {
|
|
|
45
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
46
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-combobox', 'subtitle', 'adaptiveSubtitle');
|
|
47
49
|
});
|
|
48
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'ComboBoxComponent', 'subtitle', 'adaptiveSubtitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'ComboBoxComponent', 'subtitle', 'adaptiveSubtitle');
|
|
49
51
|
return rootSource.toSource();
|
|
50
52
|
}
|
|
@@ -35,18 +35,19 @@ function default_1(fileInfo, api) {
|
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
// Check if the file is an HTML file
|
|
37
37
|
if (filePath.endsWith('.html')) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
39
|
+
let updatedContent = fileInfo.source;
|
|
40
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-combobox', 'title', 'adaptiveTitle');
|
|
41
|
+
// Only write to file once after all transformations
|
|
42
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
43
|
+
}
|
|
42
44
|
return;
|
|
43
45
|
}
|
|
44
46
|
const j = api.jscodeshift;
|
|
45
47
|
const rootSource = j(fileInfo.source);
|
|
46
48
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
47
|
-
// Using node-html-parser to parse and manipulate the template: https://github.com/taoqf/node-html-parser
|
|
48
49
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-combobox', 'title', 'adaptiveTitle');
|
|
49
50
|
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'ComboBoxComponent', 'title', 'adaptiveTitle');
|
|
51
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'ComboBoxComponent', 'title', 'adaptiveTitle');
|
|
51
52
|
return rootSource.toSource();
|
|
52
53
|
}
|
|
@@ -34,9 +34,12 @@ const fs = __importStar(require("fs"));
|
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-dropdownlist', 'subtitle', 'adaptiveSubtitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
const j = api.jscodeshift;
|
|
@@ -44,6 +47,6 @@ function default_1(fileInfo, api) {
|
|
|
44
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
45
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-dropdownlist', 'subtitle', 'adaptiveSubtitle');
|
|
46
49
|
});
|
|
47
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'DropDownListComponent', 'subtitle', 'adaptiveSubtitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'DropDownListComponent', 'subtitle', 'adaptiveSubtitle');
|
|
48
51
|
return rootSource.toSource();
|
|
49
52
|
}
|
|
@@ -33,11 +33,13 @@ const utils_1 = require("../utils");
|
|
|
33
33
|
const fs = __importStar(require("fs"));
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
|
-
// Check if the file is an HTML file
|
|
37
36
|
if (filePath.endsWith('.html')) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-dropdownlist', 'title', 'adaptiveTitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
const j = api.jscodeshift;
|
|
@@ -46,6 +48,6 @@ function default_1(fileInfo, api) {
|
|
|
46
48
|
// Using node-html-parser to parse and manipulate the template: https://github.com/taoqf/node-html-parser
|
|
47
49
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-dropdownlist', 'title', 'adaptiveTitle');
|
|
48
50
|
});
|
|
49
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'DropDownListComponent', 'title', 'adaptiveTitle');
|
|
51
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'DropDownListComponent', 'title', 'adaptiveTitle');
|
|
50
52
|
return rootSource.toSource();
|
|
51
53
|
}
|
|
@@ -34,9 +34,12 @@ const fs = __importStar(require("fs"));
|
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-dropdowntree', 'subtitle', 'adaptiveSubtitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
const j = api.jscodeshift;
|
|
@@ -44,6 +47,6 @@ function default_1(fileInfo, api) {
|
|
|
44
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
45
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-dropdowntree', 'subtitle', 'adaptiveSubtitle');
|
|
46
49
|
});
|
|
47
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'DropDownTreeComponent', 'subtitle', 'adaptiveSubtitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'DropDownTreeComponent', 'subtitle', 'adaptiveSubtitle');
|
|
48
51
|
return rootSource.toSource();
|
|
49
52
|
}
|
|
@@ -33,19 +33,20 @@ const utils_1 = require("../utils");
|
|
|
33
33
|
const fs = __importStar(require("fs"));
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
|
-
// Check if the file is an HTML file
|
|
37
36
|
if (filePath.endsWith('.html')) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-dropdowntree', 'title', 'adaptiveTitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
const j = api.jscodeshift;
|
|
44
46
|
const rootSource = j(fileInfo.source);
|
|
45
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
46
|
-
// Using node-html-parser to parse and manipulate the template
|
|
47
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-dropdowntree', 'title', 'adaptiveTitle');
|
|
48
49
|
});
|
|
49
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'DropDownTreeComponent', 'title', 'adaptiveTitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'DropDownTreeComponent', 'title', 'adaptiveTitle');
|
|
50
51
|
return rootSource.toSource();
|
|
51
52
|
}
|
|
@@ -34,9 +34,12 @@ const fs = __importStar(require("fs"));
|
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multicolumncombobox', 'subtitle', 'adaptiveSubtitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
const j = api.jscodeshift;
|
|
@@ -44,6 +47,6 @@ function default_1(fileInfo, api) {
|
|
|
44
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
45
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multicolumncombobox', 'subtitle', 'adaptiveSubtitle');
|
|
46
49
|
});
|
|
47
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'MultiColumnComboBoxComponent', 'subtitle', 'adaptiveSubtitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiColumnComboBoxComponent', 'subtitle', 'adaptiveSubtitle');
|
|
48
51
|
return rootSource.toSource();
|
|
49
52
|
}
|
|
@@ -33,19 +33,20 @@ const utils_1 = require("../utils");
|
|
|
33
33
|
const fs = __importStar(require("fs"));
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
|
-
// Check if the file is an HTML file
|
|
37
36
|
if (filePath.endsWith('.html')) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multicolumncombobox', 'title', 'adaptiveTitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
const j = api.jscodeshift;
|
|
44
46
|
const rootSource = j(fileInfo.source);
|
|
45
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
46
|
-
// Using node-html-parser to parse and manipulate the template: https://github.com/taoqf/node-html-parser
|
|
47
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multicolumncombobox', 'title', 'adaptiveTitle');
|
|
48
49
|
});
|
|
49
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'MultiColumnComboBoxComponent', 'title', 'adaptiveTitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiColumnComboBoxComponent', 'title', 'adaptiveTitle');
|
|
50
51
|
return rootSource.toSource();
|
|
51
52
|
}
|
|
@@ -34,9 +34,12 @@ const fs = __importStar(require("fs"));
|
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multiselect', 'subtitle', 'adaptiveSubtitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
const j = api.jscodeshift;
|
|
@@ -44,6 +47,6 @@ function default_1(fileInfo, api) {
|
|
|
44
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
45
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multiselect', 'subtitle', 'adaptiveSubtitle');
|
|
46
49
|
});
|
|
47
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'MultiSelectComponent', 'subtitle', 'adaptiveSubtitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiSelectComponent', 'subtitle', 'adaptiveSubtitle');
|
|
48
51
|
return rootSource.toSource();
|
|
49
52
|
}
|
|
@@ -33,19 +33,20 @@ const utils_1 = require("../utils");
|
|
|
33
33
|
const fs = __importStar(require("fs"));
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
|
-
// Check if the file is an HTML file
|
|
37
36
|
if (filePath.endsWith('.html')) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multiselect', 'title', 'adaptiveTitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
const j = api.jscodeshift;
|
|
44
46
|
const rootSource = j(fileInfo.source);
|
|
45
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
46
|
-
// Using node-html-parser to parse and manipulate the template: https://github.com/taoqf/node-html-parser
|
|
47
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multiselect', 'title', 'adaptiveTitle');
|
|
48
49
|
});
|
|
49
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'MultiSelectComponent', 'title', 'adaptiveTitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiSelectComponent', 'title', 'adaptiveTitle');
|
|
50
51
|
return rootSource.toSource();
|
|
51
52
|
}
|
|
@@ -34,9 +34,12 @@ const fs = __importStar(require("fs"));
|
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
36
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multiselecttree', 'subtitle', 'adaptiveSubtitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
40
43
|
return;
|
|
41
44
|
}
|
|
42
45
|
const j = api.jscodeshift;
|
|
@@ -44,6 +47,6 @@ function default_1(fileInfo, api) {
|
|
|
44
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
45
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multiselecttree', 'subtitle', 'adaptiveSubtitle');
|
|
46
49
|
});
|
|
47
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'MultiSelectTreeComponent', 'subtitle', 'adaptiveSubtitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiSelectTreeComponent', 'subtitle', 'adaptiveSubtitle');
|
|
48
51
|
return rootSource.toSource();
|
|
49
52
|
}
|
|
@@ -33,19 +33,20 @@ const utils_1 = require("../utils");
|
|
|
33
33
|
const fs = __importStar(require("fs"));
|
|
34
34
|
function default_1(fileInfo, api) {
|
|
35
35
|
const filePath = fileInfo.path;
|
|
36
|
-
// Check if the file is an HTML file
|
|
37
36
|
if (filePath.endsWith('.html')) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
|
|
38
|
+
let updatedContent = fileInfo.source;
|
|
39
|
+
updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multiselecttree', 'title', 'adaptiveTitle');
|
|
40
|
+
// Only write to file once after all transformations
|
|
41
|
+
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
42
|
+
}
|
|
41
43
|
return;
|
|
42
44
|
}
|
|
43
45
|
const j = api.jscodeshift;
|
|
44
46
|
const rootSource = j(fileInfo.source);
|
|
45
47
|
(0, index_1.templateTransformer)(rootSource, j, (root) => {
|
|
46
|
-
// Using node-html-parser to parse and manipulate the template
|
|
47
48
|
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multiselecttree', 'title', 'adaptiveTitle');
|
|
48
49
|
});
|
|
49
|
-
(0, utils_1.tsPropertyTransformer)(rootSource, j, 'MultiSelectTreeComponent', 'title', 'adaptiveTitle');
|
|
50
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiSelectTreeComponent', 'title', 'adaptiveTitle');
|
|
50
51
|
return rootSource.toSource();
|
|
51
52
|
}
|
|
@@ -10,7 +10,7 @@ export const packageMetadata = {
|
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCode: 'KENDOUIANGULAR',
|
|
12
12
|
productCodes: ['KENDOUIANGULAR'],
|
|
13
|
-
publishDate:
|
|
14
|
-
version: '21.0.0-develop.
|
|
13
|
+
publishDate: 1762263595,
|
|
14
|
+
version: '21.0.0-develop.18',
|
|
15
15
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
16
16
|
};
|
|
@@ -37,8 +37,8 @@ const packageMetadata = {
|
|
|
37
37
|
productName: 'Kendo UI for Angular',
|
|
38
38
|
productCode: 'KENDOUIANGULAR',
|
|
39
39
|
productCodes: ['KENDOUIANGULAR'],
|
|
40
|
-
publishDate:
|
|
41
|
-
version: '21.0.0-develop.
|
|
40
|
+
publishDate: 1762263595,
|
|
41
|
+
version: '21.0.0-develop.18',
|
|
42
42
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
43
43
|
};
|
|
44
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-dropdowns",
|
|
3
|
-
"version": "21.0.0-develop.
|
|
3
|
+
"version": "21.0.0-develop.18",
|
|
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": 1762263595,
|
|
104
104
|
"licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
|
|
105
105
|
}
|
|
106
106
|
},
|
|
@@ -111,18 +111,18 @@
|
|
|
111
111
|
"@angular/forms": "18 - 20",
|
|
112
112
|
"@angular/platform-browser": "18 - 20",
|
|
113
113
|
"@progress/kendo-licensing": "^1.7.0",
|
|
114
|
-
"@progress/kendo-angular-common": "21.0.0-develop.
|
|
115
|
-
"@progress/kendo-angular-utils": "21.0.0-develop.
|
|
116
|
-
"@progress/kendo-angular-l10n": "21.0.0-develop.
|
|
117
|
-
"@progress/kendo-angular-navigation": "21.0.0-develop.
|
|
118
|
-
"@progress/kendo-angular-popup": "21.0.0-develop.
|
|
119
|
-
"@progress/kendo-angular-icons": "21.0.0-develop.
|
|
120
|
-
"@progress/kendo-angular-treeview": "21.0.0-develop.
|
|
114
|
+
"@progress/kendo-angular-common": "21.0.0-develop.18",
|
|
115
|
+
"@progress/kendo-angular-utils": "21.0.0-develop.18",
|
|
116
|
+
"@progress/kendo-angular-l10n": "21.0.0-develop.18",
|
|
117
|
+
"@progress/kendo-angular-navigation": "21.0.0-develop.18",
|
|
118
|
+
"@progress/kendo-angular-popup": "21.0.0-develop.18",
|
|
119
|
+
"@progress/kendo-angular-icons": "21.0.0-develop.18",
|
|
120
|
+
"@progress/kendo-angular-treeview": "21.0.0-develop.18",
|
|
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.0.0-develop.
|
|
125
|
+
"@progress/kendo-angular-schematics": "21.0.0-develop.18",
|
|
126
126
|
"@progress/kendo-common": "^1.0.1",
|
|
127
127
|
"node-html-parser": "^7.0.1"
|
|
128
128
|
},
|
|
@@ -5,9 +5,9 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
5
5
|
function default_1(options) {
|
|
6
6
|
const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'DropDownsModule', package: 'dropdowns', peerDependencies: {
|
|
7
7
|
// peers of the treeview
|
|
8
|
-
'@progress/kendo-angular-inputs': '21.0.0-develop.
|
|
8
|
+
'@progress/kendo-angular-inputs': '21.0.0-develop.18',
|
|
9
9
|
// peers of inputs
|
|
10
|
-
'@progress/kendo-angular-intl': '21.0.0-develop.
|
|
10
|
+
'@progress/kendo-angular-intl': '21.0.0-develop.18',
|
|
11
11
|
'@progress/kendo-drawing': '^1.17.2',
|
|
12
12
|
// Peer dependency of icons
|
|
13
13
|
'@progress/kendo-svg-icons': '^4.0.0'
|