@progress/kendo-angular-dropdowns 21.0.0-develop.9 → 21.0.0
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/autocomplete/autocomplete.component.mjs +6 -2
- package/esm2022/comboboxes/combobox.component.mjs +6 -2
- package/esm2022/dropdownlist/dropdownlist.component.mjs +6 -7
- package/esm2022/multiselect/multiselect.component.mjs +6 -2
- package/esm2022/package-metadata.mjs +2 -2
- package/fesm2022/progress-kendo-angular-dropdowns.mjs +26 -15
- 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
|
}
|
|
@@ -1068,7 +1068,9 @@ export class AutoCompleteComponent {
|
|
|
1068
1068
|
}
|
|
1069
1069
|
this.subs.add(this.popupRef.popupOpen.subscribe(() => {
|
|
1070
1070
|
this.cdr.detectChanges();
|
|
1071
|
-
|
|
1071
|
+
if (!this.dataService.grouped) {
|
|
1072
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
1073
|
+
}
|
|
1072
1074
|
this.optionsList.scrollToItem(this.selectionService.focused);
|
|
1073
1075
|
this.selectionService.focus(this.selectionService.focused);
|
|
1074
1076
|
this.opened.emit();
|
|
@@ -1146,7 +1148,9 @@ export class AutoCompleteComponent {
|
|
|
1146
1148
|
openActionSheet() {
|
|
1147
1149
|
this.actionSheet.toggle(true);
|
|
1148
1150
|
this.cdr.detectChanges();
|
|
1149
|
-
|
|
1151
|
+
if (!this.dataService.grouped) {
|
|
1152
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
1153
|
+
}
|
|
1150
1154
|
this.adaptiveTitle = setActionSheetTitle(this.searchbar.input, this.adaptiveTitle);
|
|
1151
1155
|
this.cdr.detectChanges();
|
|
1152
1156
|
this.opened.emit();
|
|
@@ -1443,7 +1443,9 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
this.popupRef.popupOpen.subscribe(() => {
|
|
1445
1445
|
this.cdr.detectChanges();
|
|
1446
|
-
|
|
1446
|
+
if (!this.dataService.grouped) {
|
|
1447
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
1448
|
+
}
|
|
1447
1449
|
this.optionsList.scrollToItem(this.selectionService.focused);
|
|
1448
1450
|
this.selectionService.focus(this.selectionService.focused);
|
|
1449
1451
|
this.opened.emit();
|
|
@@ -1531,7 +1533,9 @@ export class ComboBoxComponent extends MultiTabStop {
|
|
|
1531
1533
|
this.windowSize = this.adaptiveService.size;
|
|
1532
1534
|
this.actionSheet.toggle(true);
|
|
1533
1535
|
this.cdr.detectChanges();
|
|
1534
|
-
|
|
1536
|
+
if (!this.dataService.grouped) {
|
|
1537
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
1538
|
+
}
|
|
1535
1539
|
this.adaptiveTitle = setActionSheetTitle(this.searchbar.input, this.adaptiveTitle);
|
|
1536
1540
|
this.cdr.detectChanges();
|
|
1537
1541
|
this.opened.emit();
|
|
@@ -978,14 +978,11 @@ export class DropDownListComponent {
|
|
|
978
978
|
this.renderer.setAttribute(popupWrapper, 'role', 'region');
|
|
979
979
|
this.renderer.setAttribute(popupWrapper, 'aria-label', this.messageFor('popupLabel'));
|
|
980
980
|
}
|
|
981
|
-
const listBox = popupWrapper.querySelector('ul.k-list-ul');
|
|
982
|
-
const ariaLabel = this.wrapper.nativeElement.getAttribute('aria-labelledby');
|
|
983
|
-
if (ariaLabel) {
|
|
984
|
-
listBox.setAttribute('aria-labelledby', ariaLabel);
|
|
985
|
-
}
|
|
986
981
|
this.subs.add(this.popupRef.popupOpen.subscribe(() => {
|
|
987
982
|
this.cdr.detectChanges();
|
|
988
|
-
|
|
983
|
+
if (!this.dataService.grouped) {
|
|
984
|
+
setListBoxAriaLabelledBy(this.optionsList, this.wrapper, this.renderer);
|
|
985
|
+
}
|
|
989
986
|
this.setAriaactivedescendant();
|
|
990
987
|
this.optionsList.scrollToItem(this.selectionService.focused);
|
|
991
988
|
this.selectionService.focus(this.selectionService.focused);
|
|
@@ -1444,7 +1441,9 @@ export class DropDownListComponent {
|
|
|
1444
1441
|
this.cdr.detectChanges();
|
|
1445
1442
|
this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', 'true');
|
|
1446
1443
|
this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-controls', this.listBoxId);
|
|
1447
|
-
|
|
1444
|
+
if (!this.dataService.grouped) {
|
|
1445
|
+
setListBoxAriaLabelledBy(this.optionsList, this.wrapper, this.renderer);
|
|
1446
|
+
}
|
|
1448
1447
|
this.setAriaactivedescendant();
|
|
1449
1448
|
this.adaptiveTitle = setActionSheetTitle(this.wrapper, this.adaptiveTitle);
|
|
1450
1449
|
this.cdr.detectChanges();
|
|
@@ -1689,7 +1689,9 @@ export class MultiSelectComponent {
|
|
|
1689
1689
|
popupWrapper.setAttribute("dir", this.direction);
|
|
1690
1690
|
this.popupRef.popupOpen.subscribe(() => {
|
|
1691
1691
|
this.cdr.detectChanges();
|
|
1692
|
-
|
|
1692
|
+
if (!this.dataService.grouped) {
|
|
1693
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
1694
|
+
}
|
|
1693
1695
|
this.optionsList.scrollToItem(this.selectionService.focused);
|
|
1694
1696
|
this.selectionService.focus(this.selectionService.focused);
|
|
1695
1697
|
this.opened.emit();
|
|
@@ -1750,7 +1752,9 @@ export class MultiSelectComponent {
|
|
|
1750
1752
|
// Stores the current value state until the user either accepts or cancels it
|
|
1751
1753
|
this._valueHolder = [...this.value];
|
|
1752
1754
|
this.cdr.detectChanges();
|
|
1753
|
-
|
|
1755
|
+
if (!this.dataService.grouped) {
|
|
1756
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
1757
|
+
}
|
|
1754
1758
|
this.adaptiveTitle = setActionSheetTitle(this.searchbar.input, this.adaptiveTitle);
|
|
1755
1759
|
this.cdr.detectChanges();
|
|
1756
1760
|
this.opened.emit();
|
|
@@ -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
|
|
13
|
+
publishDate: 1762934476,
|
|
14
|
+
version: '21.0.0',
|
|
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
|
|
40
|
+
publishDate: 1762934476,
|
|
41
|
+
version: '21.0.0',
|
|
42
42
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -4235,7 +4235,9 @@ class AutoCompleteComponent {
|
|
|
4235
4235
|
}
|
|
4236
4236
|
this.subs.add(this.popupRef.popupOpen.subscribe(() => {
|
|
4237
4237
|
this.cdr.detectChanges();
|
|
4238
|
-
|
|
4238
|
+
if (!this.dataService.grouped) {
|
|
4239
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
4240
|
+
}
|
|
4239
4241
|
this.optionsList.scrollToItem(this.selectionService.focused);
|
|
4240
4242
|
this.selectionService.focus(this.selectionService.focused);
|
|
4241
4243
|
this.opened.emit();
|
|
@@ -4313,7 +4315,9 @@ class AutoCompleteComponent {
|
|
|
4313
4315
|
openActionSheet() {
|
|
4314
4316
|
this.actionSheet.toggle(true);
|
|
4315
4317
|
this.cdr.detectChanges();
|
|
4316
|
-
|
|
4318
|
+
if (!this.dataService.grouped) {
|
|
4319
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
4320
|
+
}
|
|
4317
4321
|
this.adaptiveTitle = setActionSheetTitle(this.searchbar.input, this.adaptiveTitle);
|
|
4318
4322
|
this.cdr.detectChanges();
|
|
4319
4323
|
this.opened.emit();
|
|
@@ -6259,7 +6263,9 @@ class ComboBoxComponent extends MultiTabStop {
|
|
|
6259
6263
|
}
|
|
6260
6264
|
this.popupRef.popupOpen.subscribe(() => {
|
|
6261
6265
|
this.cdr.detectChanges();
|
|
6262
|
-
|
|
6266
|
+
if (!this.dataService.grouped) {
|
|
6267
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
6268
|
+
}
|
|
6263
6269
|
this.optionsList.scrollToItem(this.selectionService.focused);
|
|
6264
6270
|
this.selectionService.focus(this.selectionService.focused);
|
|
6265
6271
|
this.opened.emit();
|
|
@@ -6347,7 +6353,9 @@ class ComboBoxComponent extends MultiTabStop {
|
|
|
6347
6353
|
this.windowSize = this.adaptiveService.size;
|
|
6348
6354
|
this.actionSheet.toggle(true);
|
|
6349
6355
|
this.cdr.detectChanges();
|
|
6350
|
-
|
|
6356
|
+
if (!this.dataService.grouped) {
|
|
6357
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
6358
|
+
}
|
|
6351
6359
|
this.adaptiveTitle = setActionSheetTitle(this.searchbar.input, this.adaptiveTitle);
|
|
6352
6360
|
this.cdr.detectChanges();
|
|
6353
6361
|
this.opened.emit();
|
|
@@ -7928,14 +7936,11 @@ class DropDownListComponent {
|
|
|
7928
7936
|
this.renderer.setAttribute(popupWrapper, 'role', 'region');
|
|
7929
7937
|
this.renderer.setAttribute(popupWrapper, 'aria-label', this.messageFor('popupLabel'));
|
|
7930
7938
|
}
|
|
7931
|
-
const listBox = popupWrapper.querySelector('ul.k-list-ul');
|
|
7932
|
-
const ariaLabel = this.wrapper.nativeElement.getAttribute('aria-labelledby');
|
|
7933
|
-
if (ariaLabel) {
|
|
7934
|
-
listBox.setAttribute('aria-labelledby', ariaLabel);
|
|
7935
|
-
}
|
|
7936
7939
|
this.subs.add(this.popupRef.popupOpen.subscribe(() => {
|
|
7937
7940
|
this.cdr.detectChanges();
|
|
7938
|
-
|
|
7941
|
+
if (!this.dataService.grouped) {
|
|
7942
|
+
setListBoxAriaLabelledBy(this.optionsList, this.wrapper, this.renderer);
|
|
7943
|
+
}
|
|
7939
7944
|
this.setAriaactivedescendant();
|
|
7940
7945
|
this.optionsList.scrollToItem(this.selectionService.focused);
|
|
7941
7946
|
this.selectionService.focus(this.selectionService.focused);
|
|
@@ -8394,7 +8399,9 @@ class DropDownListComponent {
|
|
|
8394
8399
|
this.cdr.detectChanges();
|
|
8395
8400
|
this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-expanded', 'true');
|
|
8396
8401
|
this.renderer.setAttribute(this.wrapper.nativeElement, 'aria-controls', this.listBoxId);
|
|
8397
|
-
|
|
8402
|
+
if (!this.dataService.grouped) {
|
|
8403
|
+
setListBoxAriaLabelledBy(this.optionsList, this.wrapper, this.renderer);
|
|
8404
|
+
}
|
|
8398
8405
|
this.setAriaactivedescendant();
|
|
8399
8406
|
this.adaptiveTitle = setActionSheetTitle(this.wrapper, this.adaptiveTitle);
|
|
8400
8407
|
this.cdr.detectChanges();
|
|
@@ -10937,7 +10944,9 @@ class MultiSelectComponent {
|
|
|
10937
10944
|
popupWrapper.setAttribute("dir", this.direction);
|
|
10938
10945
|
this.popupRef.popupOpen.subscribe(() => {
|
|
10939
10946
|
this.cdr.detectChanges();
|
|
10940
|
-
|
|
10947
|
+
if (!this.dataService.grouped) {
|
|
10948
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
10949
|
+
}
|
|
10941
10950
|
this.optionsList.scrollToItem(this.selectionService.focused);
|
|
10942
10951
|
this.selectionService.focus(this.selectionService.focused);
|
|
10943
10952
|
this.opened.emit();
|
|
@@ -10998,7 +11007,9 @@ class MultiSelectComponent {
|
|
|
10998
11007
|
// Stores the current value state until the user either accepts or cancels it
|
|
10999
11008
|
this._valueHolder = [...this.value];
|
|
11000
11009
|
this.cdr.detectChanges();
|
|
11001
|
-
|
|
11010
|
+
if (!this.dataService.grouped) {
|
|
11011
|
+
setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
|
|
11012
|
+
}
|
|
11002
11013
|
this.adaptiveTitle = setActionSheetTitle(this.searchbar.input, this.adaptiveTitle);
|
|
11003
11014
|
this.cdr.detectChanges();
|
|
11004
11015
|
this.opened.emit();
|