@progress/kendo-angular-dropdowns 21.0.0-develop.2 → 21.0.0-develop.21

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.
@@ -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
- let updatedContent = fileInfo.source;
38
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-autocomplete', 'subtitle', 'adaptiveSubtitle');
39
- // Only write to file once after all transformations
40
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
38
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-autocomplete', 'title', 'adaptiveTitle');
39
- // Only write to file once after all transformations
40
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
38
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-combobox', 'subtitle', 'adaptiveSubtitle');
39
- // Only write to file once after all transformations
40
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
39
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-combobox', 'title', 'adaptiveTitle');
40
- // Only write to file once after all transformations
41
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
38
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-dropdownlist', 'subtitle', 'adaptiveSubtitle');
39
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
39
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-dropdownlist', 'title', 'adaptiveTitle');
40
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
38
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-dropdowntree', 'subtitle', 'adaptiveSubtitle');
39
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
39
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-dropdowntree', 'title', 'adaptiveTitle');
40
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
38
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multicolumncombobox', 'subtitle', 'adaptiveSubtitle');
39
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
39
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multicolumncombobox', 'title', 'adaptiveTitle');
40
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
38
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multiselect', 'subtitle', 'adaptiveSubtitle');
39
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
39
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multiselect', 'title', 'adaptiveTitle');
40
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
38
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multiselecttree', 'subtitle', 'adaptiveSubtitle');
39
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
- let updatedContent = fileInfo.source;
39
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-multiselecttree', 'title', 'adaptiveTitle');
40
- fs.writeFileSync(filePath, updatedContent, 'utf-8');
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
  }
@@ -11,5 +11,5 @@ export declare class ListItemDirective {
11
11
  element: ElementRef;
12
12
  constructor(element: ElementRef);
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ListItemDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<ListItemDirective, "\"li[role=option], li[role=group]\"", never, {}, {}, never, never, true, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ListItemDirective, "\"li[role=option], li[role=group], li[role=presentation]\"", never, {}, {}, never, never, true, never>;
15
15
  }
@@ -61,6 +61,7 @@ export declare class ListComponent implements OnChanges, OnDestroy, AfterViewIni
61
61
  get data(): any[];
62
62
  set size(size: DropDownSize);
63
63
  get size(): DropDownSize;
64
+ groupedData: any[];
64
65
  rounded: DropDownRounded;
65
66
  onClick: EventEmitter<any>;
66
67
  pageChange: EventEmitter<PageChangeEvent>;
@@ -103,7 +104,6 @@ export declare class ListComponent implements OnChanges, OnDestroy, AfterViewIni
103
104
  [propertyName: string]: SimpleChange;
104
105
  }): void;
105
106
  ngAfterViewInit(): void;
106
- private setGroupAttributes;
107
107
  ngAfterViewChecked(): void;
108
108
  ngOnDestroy(): void;
109
109
  onCheckedChange(e: Event, index: number): void;
@@ -116,6 +116,7 @@ export declare class ListComponent implements OnChanges, OnDestroy, AfterViewIni
116
116
  index(groupIndex: number, itemIndex: number): number;
117
117
  getText(dataItem: any): any;
118
118
  getValue(dataItem: any): any;
119
+ generateGroupId(dataItem: any): string;
119
120
  isDisabled(index: number): boolean;
120
121
  isAltRow(index: number): boolean;
121
122
  scrollToItem(index: number): void;
@@ -138,10 +139,6 @@ export declare class ListComponent implements OnChanges, OnDestroy, AfterViewIni
138
139
  */
139
140
  private hasVirtualScrollbar;
140
141
  private positionItems;
141
- /**
142
- * Indicates whether the first group header from the data set is in the targeted virtual page.
143
- */
144
- private firstGroupHeaderInTargetedPage;
145
142
  private setComponentClasses;
146
143
  static ɵfac: i0.ɵɵFactoryDeclaration<ListComponent, never>;
147
144
  static ɵcmp: i0.ɵɵComponentDeclaration<ListComponent, "kendo-list", never, { "selected": { "alias": "selected"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "textField": { "alias": "textField"; "required": false; }; "valueField": { "alias": "valueField"; "required": false; }; "height": { "alias": "height"; "required": false; }; "template": { "alias": "template"; "required": false; }; "groupTemplate": { "alias": "groupTemplate"; "required": false; }; "fixedGroupTemplate": { "alias": "fixedGroupTemplate"; "required": false; }; "show": { "alias": "show"; "required": false; }; "id": { "alias": "id"; "required": false; }; "optionPrefix": { "alias": "optionPrefix"; "required": false; }; "multipleSelection": { "alias": "multipleSelection"; "required": false; }; "virtual": { "alias": "virtual"; "required": false; }; "type": { "alias": "type"; "required": false; }; "checkboxes": { "alias": "checkboxes"; "required": false; }; "ariaLive": { "alias": "ariaLive"; "required": false; }; "isMultiselect": { "alias": "isMultiselect"; "required": false; }; "isActionSheetExpanded": { "alias": "isActionSheetExpanded"; "required": false; }; "showStickyHeader": { "alias": "showStickyHeader"; "required": false; }; "rowWidth": { "alias": "rowWidth"; "required": false; }; "customItemTemplate": { "alias": "customItemTemplate"; "required": false; }; "text": { "alias": "text"; "required": false; }; "allowCustom": { "alias": "allowCustom"; "required": false; }; "defaultItem": { "alias": "defaultItem"; "required": false; }; "data": { "alias": "data"; "required": false; }; "size": { "alias": "size"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, { "onClick": "onClick"; "pageChange": "pageChange"; "listResize": "listResize"; "popupListScroll": "popupListScroll"; }, never, never, true, never>;
@@ -1068,7 +1068,9 @@ export class AutoCompleteComponent {
1068
1068
  }
1069
1069
  this.subs.add(this.popupRef.popupOpen.subscribe(() => {
1070
1070
  this.cdr.detectChanges();
1071
- setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
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
- setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
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
- setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
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
- setListBoxAriaLabelledBy(this.optionsList, this.searchbar.input, this.renderer);
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();
@@ -13,12 +13,12 @@ export class ListItemDirective {
13
13
  this.element = element;
14
14
  }
15
15
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListItemDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
16
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ListItemDirective, isStandalone: true, selector: "\"li[role=option], li[role=group]\"", ngImport: i0 });
16
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: ListItemDirective, isStandalone: true, selector: "\"li[role=option], li[role=group], li[role=presentation]\"", ngImport: i0 });
17
17
  }
18
18
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: ListItemDirective, decorators: [{
19
19
  type: Directive,
20
20
  args: [{
21
- selector: '"li[role=option], li[role=group]"' // eslint-disable-line
21
+ selector: '"li[role=option], li[role=group], li[role=presentation]"' // eslint-disable-line
22
22
  ,
23
23
  standalone: true
24
24
  }]