@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
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-autocomplete', 'subtitle', 'adaptiveSubtitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-autocomplete', 'subtitle', 'adaptiveSubtitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'AutoCompleteComponent', 'subtitle', 'adaptiveSubtitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'AutoCompleteComponent', 'subtitle', 'adaptiveSubtitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-autocomplete', 'title', 'adaptiveTitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-autocomplete', 'title', 'adaptiveTitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'AutoCompleteComponent', 'title', 'adaptiveTitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'AutoCompleteComponent', 'title', 'adaptiveTitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-combobox', 'subtitle', 'adaptiveSubtitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-combobox', 'subtitle', 'adaptiveSubtitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'ComboBoxComponent', 'subtitle', 'adaptiveSubtitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'ComboBoxComponent', 'subtitle', 'adaptiveSubtitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,26 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
36
|
-
//
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-combobox', 'title', 'adaptiveTitle'));
|
|
37
37
|
if (filePath.endsWith('.html')) {
|
|
38
|
-
if (
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
// Only write to file once after all transformations
|
|
42
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
43
41
|
}
|
|
44
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
45
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
46
45
|
const j = api.jscodeshift;
|
|
47
|
-
const rootSource = j(fileInfo.source);
|
|
48
|
-
(0,
|
|
49
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-combobox', 'title', 'adaptiveTitle');
|
|
50
|
-
});
|
|
51
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'ComboBoxComponent', 'title', 'adaptiveTitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'ComboBoxComponent', 'title', 'adaptiveTitle');
|
|
52
48
|
return rootSource.toSource();
|
|
53
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-dropdownlist', 'subtitle', 'adaptiveSubtitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-dropdownlist', 'subtitle', 'adaptiveSubtitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'DropDownListComponent', 'subtitle', 'adaptiveSubtitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'DropDownListComponent', 'subtitle', 'adaptiveSubtitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,26 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-dropdownlist', 'title', 'adaptiveTitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
// Using node-html-parser to parse and manipulate the template: https://github.com/taoqf/node-html-parser
|
|
49
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-dropdownlist', 'title', 'adaptiveTitle');
|
|
50
|
-
});
|
|
51
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'DropDownListComponent', 'title', 'adaptiveTitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'DropDownListComponent', 'title', 'adaptiveTitle');
|
|
52
48
|
return rootSource.toSource();
|
|
53
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-dropdowntree', 'subtitle', 'adaptiveSubtitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-dropdowntree', 'subtitle', 'adaptiveSubtitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'DropDownTreeComponent', 'subtitle', 'adaptiveSubtitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'DropDownTreeComponent', 'subtitle', 'adaptiveSubtitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-dropdowntree', 'title', 'adaptiveTitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-dropdowntree', 'title', 'adaptiveTitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'DropDownTreeComponent', 'title', 'adaptiveTitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'DropDownTreeComponent', 'title', 'adaptiveTitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-multicolumncombobox', 'subtitle', 'adaptiveSubtitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multicolumncombobox', 'subtitle', 'adaptiveSubtitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiColumnComboBoxComponent', 'subtitle', 'adaptiveSubtitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'MultiColumnComboBoxComponent', 'subtitle', 'adaptiveSubtitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-multicolumncombobox', 'title', 'adaptiveTitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multicolumncombobox', 'title', 'adaptiveTitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiColumnComboBoxComponent', 'title', 'adaptiveTitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'MultiColumnComboBoxComponent', 'title', 'adaptiveTitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-multiselect', 'subtitle', 'adaptiveSubtitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multiselect', 'subtitle', 'adaptiveSubtitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiSelectComponent', 'subtitle', 'adaptiveSubtitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'MultiSelectComponent', 'subtitle', 'adaptiveSubtitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-multiselect', 'title', 'adaptiveTitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multiselect', 'title', 'adaptiveTitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiSelectComponent', 'title', 'adaptiveTitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'MultiSelectComponent', 'title', 'adaptiveTitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-multiselecttree', 'subtitle', 'adaptiveSubtitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multiselecttree', 'subtitle', 'adaptiveSubtitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiSelectTreeComponent', 'subtitle', 'adaptiveSubtitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'MultiSelectTreeComponent', 'subtitle', 'adaptiveSubtitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|
|
@@ -28,25 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.default = default_1;
|
|
31
|
-
const index_1 = require("../template-transformer/index");
|
|
32
|
-
const utils_1 = require("../utils");
|
|
33
31
|
const fs = __importStar(require("fs"));
|
|
32
|
+
const utils_1 = require("../utils");
|
|
34
33
|
function default_1(fileInfo, api) {
|
|
35
34
|
const filePath = fileInfo.path;
|
|
35
|
+
// Handle HTML files and inline templates
|
|
36
|
+
const htmlResult = (0, utils_1.htmlTransformer)(fileInfo, api, (templateContent) => (0, utils_1.attributeNameUpdate)(templateContent, 'kendo-multiselecttree', 'title', 'adaptiveTitle'));
|
|
36
37
|
if (filePath.endsWith('.html')) {
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// Only write to file once after all transformations
|
|
41
|
-
fs.writeFileSync(filePath, updatedContent, 'utf-8');
|
|
38
|
+
if (htmlResult && htmlResult !== fileInfo.source) {
|
|
39
|
+
fs.writeFileSync(filePath, htmlResult, 'utf-8');
|
|
40
|
+
return htmlResult;
|
|
42
41
|
}
|
|
43
|
-
return;
|
|
42
|
+
return fileInfo.source; // Return original source if no changes
|
|
44
43
|
}
|
|
44
|
+
// Handle TypeScript property transformations
|
|
45
45
|
const j = api.jscodeshift;
|
|
46
|
-
const rootSource = j(fileInfo.source);
|
|
47
|
-
(0,
|
|
48
|
-
(0, utils_1.templateAttributeTransformer)(root, 'kendo-multiselecttree', 'title', 'adaptiveTitle');
|
|
49
|
-
});
|
|
50
|
-
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, 'MultiSelectTreeComponent', 'title', 'adaptiveTitle');
|
|
46
|
+
const rootSource = j(htmlResult || fileInfo.source);
|
|
47
|
+
(0, utils_1.tsPropertyTransformer)(fileInfo.source, rootSource, j, '@progress/kendo-angular-dropdowns', 'MultiSelectTreeComponent', 'title', 'adaptiveTitle');
|
|
51
48
|
return rootSource.toSource();
|
|
52
49
|
}
|