@progress/kendo-angular-grid 21.2.0-develop.4 → 21.2.0-develop.6

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.
@@ -28,24 +28,21 @@ 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
31
  const utils_1 = require("../utils");
33
32
  const fs = __importStar(require("fs"));
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-grid', 'kendoGridGroupBinding', 'kendoGridBinding'));
36
37
  if (filePath.endsWith('.html')) {
37
- if ((0, utils_1.hasKendoInTemplate)(fileInfo.source)) {
38
- let updatedContent = fileInfo.source;
39
- updatedContent = (0, utils_1.htmlAttributeTransformer)({ ...fileInfo, source: updatedContent }, 'kendo-grid', 'kendoGridGroupBinding', 'kendoGridBinding');
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, index_1.templateTransformer)(rootSource, j, (root) => {
48
- (0, utils_1.templateAttributeTransformer)(root, 'kendo-grid', 'kendoGridGroupBinding', 'kendoGridBinding');
49
- });
46
+ const rootSource = j(htmlResult || fileInfo.source);
50
47
  return rootSource.toSource();
51
48
  }
package/esm2022/index.mjs CHANGED
@@ -218,3 +218,4 @@ export { GridTableDirective } from './rendering/grid-table.directive';
218
218
  // Needed as it is an optional injection of the FilterService
219
219
  export { MenuTabbingService } from './filtering/menu/menu-tabbing.service';
220
220
  export * from './rendering/toolbar/tools/ai-assistant/models';
221
+ export { AdaptiveGridService } from './common/adaptiveness.service';
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1764059241,
14
- version: '21.2.0-develop.4',
13
+ publishDate: 1764320228,
14
+ version: '21.2.0-develop.6',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };
@@ -23575,8 +23575,8 @@ const packageMetadata = {
23575
23575
  productName: 'Kendo UI for Angular',
23576
23576
  productCode: 'KENDOUIANGULAR',
23577
23577
  productCodes: ['KENDOUIANGULAR'],
23578
- publishDate: 1764059241,
23579
- version: '21.2.0-develop.4',
23578
+ publishDate: 1764320228,
23579
+ version: '21.2.0-develop.6',
23580
23580
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
23581
23581
  };
23582
23582
 
@@ -40213,5 +40213,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
40213
40213
  * Generated bundle index. Do not edit.
40214
40214
  */
40215
40215
 
40216
- export { AIAssistantToolbarDirective, AddCommandDirective, AddCommandToolbarDirective, AfterEqFilterOperatorComponent, AfterFilterOperatorComponent, AutoCompleteFilterCellComponent, BaseFilterCellComponent, BeforeEqFilterOperatorComponent, BeforeFilterOperatorComponent, BooleanFilterCellComponent, BooleanFilterComponent, BooleanFilterMenuComponent, BooleanFilterRadioButtonDirective, BrowserSupportService, CELL_CONTEXT, CancelCommandDirective, CancelCommandToolbarDirective, CellCloseEvent, CellComponent, CellLoadingTemplateDirective, CellSelectionAggregateService, CellSelectionService, CellTemplateDirective, ChangeNotificationService, CheckboxColumnComponent, ColGroupComponent, ColumnBase, ColumnChooserComponent, ColumnChooserToolbarDirective, ColumnComponent, ColumnGroupComponent, ColumnHandleDirective, ColumnInfoService, ColumnListComponent, ColumnLockedChangeEvent, ColumnMenuAutoSizeAllColumnsComponent, ColumnMenuAutoSizeColumnComponent, ColumnMenuChooserComponent, ColumnMenuComponent, ColumnMenuContainerComponent, ColumnMenuFilterComponent, ColumnMenuItemComponent, ColumnMenuItemContentTemplateDirective, ColumnMenuItemDirective, ColumnMenuLockComponent, ColumnMenuPositionComponent, ColumnMenuService, ColumnMenuSortComponent, ColumnMenuStickComponent, ColumnMenuTemplateDirective, ColumnReorderEvent, ColumnReorderService, ColumnResizingService, ColumnStickyChangeEvent, ColumnVisibilityChangeEvent, ColumnsContainer, CommandColumnComponent, ContainsFilterOperatorComponent, ContextService, CustomMessagesComponent, DEFAULT_AI_REQUEST_OPTIONS, DEFAULT_SCROLLER_FACTORY, DataBindingDirective, DateFilterCellComponent, DateFilterComponent, DateFilterMenuComponent, DateFilterMenuInputComponent, DetailCollapseEvent, DetailExpandEvent, DetailTemplateDirective, DetailsService, DoesNotContainFilterOperatorComponent, DomEventsService, DragAndDropService, DragHintService, DropCueService, EditCommandDirective, EditCommandToolbarDirective, EditService as EditServiceClass, EditTemplateDirective, EditingDirectiveBase, EndsWithFilterOperatorComponent, EqualFilterOperatorComponent, ExcelCommandDirective, ExcelCommandToolbarDirective, ExcelComponent, ExcelExportEvent, ExcelModule, ExcelService, ExpandDetailsDirective, ExpandGroupDirective, ExternalEditingDirective, FieldAccessorPipe, FilterCellComponent, FilterCellHostDirective, FilterCellOperatorsComponent, FilterCellTemplateDirective, FilterCellWrapperComponent, FilterCommandToolbarDirective, FilterInputDirective, FilterMenuComponent, FilterMenuContainerComponent, FilterMenuDropDownListDirective, FilterMenuHostDirective, FilterMenuInputWrapperComponent, FilterMenuTemplateDirective, FilterOperatorBase, FilterRowComponent, FilterService, FocusRoot, FocusableDirective, FooterComponent, FooterTemplateDirective, GreaterFilterOperatorComponent, GreaterOrEqualToFilterOperatorComponent, GridAIAssistantResponseErrorEvent, GridAIAssistantResponseSuccessEvent, GridClipboardDirective, GridComponent, GridModule, GridSpacerComponent, GridTableDirective, GridToolbarFocusableDirective, GridToolbarNavigationService, GroupCommandToolbarDirective, GroupFooterTemplateDirective, GroupHeaderColumnTemplateDirective, GroupHeaderComponent, GroupHeaderTemplateDirective, GroupInfoService, GroupPanelComponent, GroupsService, HeaderComponent, HeaderTemplateDirective, HighlightDirective, IdService, InCellEditingDirective, IsEmptyFilterOperatorComponent, IsNotEmptyFilterOperatorComponent, IsNotNullFilterOperatorComponent, IsNullFilterOperatorComponent, KENDO_GRID, KENDO_GRID_BODY_EXPORTS, KENDO_GRID_COLUMN_DRAGANDDROP, KENDO_GRID_COLUMN_MENU_DECLARATIONS, KENDO_GRID_COLUMN_MENU_EXPORTS, KENDO_GRID_DECLARATIONS, KENDO_GRID_EXCEL_EXPORT, KENDO_GRID_EXPORTS, KENDO_GRID_FILTER_MENU, KENDO_GRID_FILTER_MENU_EXPORTS, KENDO_GRID_FILTER_OPERATORS, KENDO_GRID_FILTER_ROW, KENDO_GRID_FILTER_ROW_EXPORTS, KENDO_GRID_FILTER_SHARED, KENDO_GRID_FOOTER_EXPORTS, KENDO_GRID_GROUP_EXPORTS, KENDO_GRID_HEADER_EXPORTS, KENDO_GRID_PDF_EXPORT, KENDO_GRID_SHARED, LessFilterOperatorComponent, LessOrEqualToFilterOperatorComponent, ListComponent, LoadingComponent, LoadingTemplateDirective, LocalDataChangesService, LogicalCellDirective, LogicalRowDirective, MenuTabbingService, MultiCheckboxFilterComponent, NavigationService, NoRecordsTemplateDirective, NotEqualFilterOperatorComponent, NumericFilterCellComponent, NumericFilterComponent, NumericFilterMenuComponent, NumericFilterMenuInputComponent, PDFCommandDirective, PDFCommandToolbarDirective, PDFComponent, PDFMarginComponent, PDFModule, PDFService, PDFTemplateDirective, PopupCloseEvent, ReactiveEditingDirective, RedoCommandToolbarDirective, RemoveCommandDirective, RemoveCommandToolbarDirective, ResizableContainerDirective, ResizeService, ResponsiveService, RowDragHandleTemplateDirective, RowDragHintTemplateDirective, RowEditingDirectiveBase, RowReorderColumnComponent, RowReorderService, SaveCommandDirective, SaveCommandToolbarDirective, ScrollRequestService, ScrollSyncService, SelectAllCheckboxDirective, SelectAllToolbarToolComponent, SelectionCheckboxDirective, SelectionDirective, SelectionService, SinglePopupService, SizingOptionsService, Skip, SortCommandToolbarDirective, SortService, SpanColumnComponent, StartsWithFilterOperatorComponent, StatusBarTemplateDirective, StringFilterCellComponent, StringFilterComponent, StringFilterMenuComponent, StringFilterMenuInputComponent, SuspendService, TableBodyComponent, TableDirective, TemplateEditingDirective, ToolbarComponent, ToolbarTemplateDirective, UndoCommandToolbarDirective, UndoRedoDirective, UndoRedoEvent, defaultTrackBy, hasFilterMenu, hasFilterRow, isFilterable };
40216
+ export { AIAssistantToolbarDirective, AdaptiveGridService, AddCommandDirective, AddCommandToolbarDirective, AfterEqFilterOperatorComponent, AfterFilterOperatorComponent, AutoCompleteFilterCellComponent, BaseFilterCellComponent, BeforeEqFilterOperatorComponent, BeforeFilterOperatorComponent, BooleanFilterCellComponent, BooleanFilterComponent, BooleanFilterMenuComponent, BooleanFilterRadioButtonDirective, BrowserSupportService, CELL_CONTEXT, CancelCommandDirective, CancelCommandToolbarDirective, CellCloseEvent, CellComponent, CellLoadingTemplateDirective, CellSelectionAggregateService, CellSelectionService, CellTemplateDirective, ChangeNotificationService, CheckboxColumnComponent, ColGroupComponent, ColumnBase, ColumnChooserComponent, ColumnChooserToolbarDirective, ColumnComponent, ColumnGroupComponent, ColumnHandleDirective, ColumnInfoService, ColumnListComponent, ColumnLockedChangeEvent, ColumnMenuAutoSizeAllColumnsComponent, ColumnMenuAutoSizeColumnComponent, ColumnMenuChooserComponent, ColumnMenuComponent, ColumnMenuContainerComponent, ColumnMenuFilterComponent, ColumnMenuItemComponent, ColumnMenuItemContentTemplateDirective, ColumnMenuItemDirective, ColumnMenuLockComponent, ColumnMenuPositionComponent, ColumnMenuService, ColumnMenuSortComponent, ColumnMenuStickComponent, ColumnMenuTemplateDirective, ColumnReorderEvent, ColumnReorderService, ColumnResizingService, ColumnStickyChangeEvent, ColumnVisibilityChangeEvent, ColumnsContainer, CommandColumnComponent, ContainsFilterOperatorComponent, ContextService, CustomMessagesComponent, DEFAULT_AI_REQUEST_OPTIONS, DEFAULT_SCROLLER_FACTORY, DataBindingDirective, DateFilterCellComponent, DateFilterComponent, DateFilterMenuComponent, DateFilterMenuInputComponent, DetailCollapseEvent, DetailExpandEvent, DetailTemplateDirective, DetailsService, DoesNotContainFilterOperatorComponent, DomEventsService, DragAndDropService, DragHintService, DropCueService, EditCommandDirective, EditCommandToolbarDirective, EditService as EditServiceClass, EditTemplateDirective, EditingDirectiveBase, EndsWithFilterOperatorComponent, EqualFilterOperatorComponent, ExcelCommandDirective, ExcelCommandToolbarDirective, ExcelComponent, ExcelExportEvent, ExcelModule, ExcelService, ExpandDetailsDirective, ExpandGroupDirective, ExternalEditingDirective, FieldAccessorPipe, FilterCellComponent, FilterCellHostDirective, FilterCellOperatorsComponent, FilterCellTemplateDirective, FilterCellWrapperComponent, FilterCommandToolbarDirective, FilterInputDirective, FilterMenuComponent, FilterMenuContainerComponent, FilterMenuDropDownListDirective, FilterMenuHostDirective, FilterMenuInputWrapperComponent, FilterMenuTemplateDirective, FilterOperatorBase, FilterRowComponent, FilterService, FocusRoot, FocusableDirective, FooterComponent, FooterTemplateDirective, GreaterFilterOperatorComponent, GreaterOrEqualToFilterOperatorComponent, GridAIAssistantResponseErrorEvent, GridAIAssistantResponseSuccessEvent, GridClipboardDirective, GridComponent, GridModule, GridSpacerComponent, GridTableDirective, GridToolbarFocusableDirective, GridToolbarNavigationService, GroupCommandToolbarDirective, GroupFooterTemplateDirective, GroupHeaderColumnTemplateDirective, GroupHeaderComponent, GroupHeaderTemplateDirective, GroupInfoService, GroupPanelComponent, GroupsService, HeaderComponent, HeaderTemplateDirective, HighlightDirective, IdService, InCellEditingDirective, IsEmptyFilterOperatorComponent, IsNotEmptyFilterOperatorComponent, IsNotNullFilterOperatorComponent, IsNullFilterOperatorComponent, KENDO_GRID, KENDO_GRID_BODY_EXPORTS, KENDO_GRID_COLUMN_DRAGANDDROP, KENDO_GRID_COLUMN_MENU_DECLARATIONS, KENDO_GRID_COLUMN_MENU_EXPORTS, KENDO_GRID_DECLARATIONS, KENDO_GRID_EXCEL_EXPORT, KENDO_GRID_EXPORTS, KENDO_GRID_FILTER_MENU, KENDO_GRID_FILTER_MENU_EXPORTS, KENDO_GRID_FILTER_OPERATORS, KENDO_GRID_FILTER_ROW, KENDO_GRID_FILTER_ROW_EXPORTS, KENDO_GRID_FILTER_SHARED, KENDO_GRID_FOOTER_EXPORTS, KENDO_GRID_GROUP_EXPORTS, KENDO_GRID_HEADER_EXPORTS, KENDO_GRID_PDF_EXPORT, KENDO_GRID_SHARED, LessFilterOperatorComponent, LessOrEqualToFilterOperatorComponent, ListComponent, LoadingComponent, LoadingTemplateDirective, LocalDataChangesService, LogicalCellDirective, LogicalRowDirective, MenuTabbingService, MultiCheckboxFilterComponent, NavigationService, NoRecordsTemplateDirective, NotEqualFilterOperatorComponent, NumericFilterCellComponent, NumericFilterComponent, NumericFilterMenuComponent, NumericFilterMenuInputComponent, PDFCommandDirective, PDFCommandToolbarDirective, PDFComponent, PDFMarginComponent, PDFModule, PDFService, PDFTemplateDirective, PopupCloseEvent, ReactiveEditingDirective, RedoCommandToolbarDirective, RemoveCommandDirective, RemoveCommandToolbarDirective, ResizableContainerDirective, ResizeService, ResponsiveService, RowDragHandleTemplateDirective, RowDragHintTemplateDirective, RowEditingDirectiveBase, RowReorderColumnComponent, RowReorderService, SaveCommandDirective, SaveCommandToolbarDirective, ScrollRequestService, ScrollSyncService, SelectAllCheckboxDirective, SelectAllToolbarToolComponent, SelectionCheckboxDirective, SelectionDirective, SelectionService, SinglePopupService, SizingOptionsService, Skip, SortCommandToolbarDirective, SortService, SpanColumnComponent, StartsWithFilterOperatorComponent, StatusBarTemplateDirective, StringFilterCellComponent, StringFilterComponent, StringFilterMenuComponent, StringFilterMenuInputComponent, SuspendService, TableBodyComponent, TableDirective, TemplateEditingDirective, ToolbarComponent, ToolbarTemplateDirective, UndoCommandToolbarDirective, UndoRedoDirective, UndoRedoEvent, defaultTrackBy, hasFilterMenu, hasFilterRow, isFilterable };
40217
40217
 
package/index.d.ts CHANGED
@@ -260,3 +260,4 @@ export { SizingOptionsService } from './layout/sizing-options.service';
260
260
  export { GridTableDirective } from './rendering/grid-table.directive';
261
261
  export { MenuTabbingService } from './filtering/menu/menu-tabbing.service';
262
262
  export * from './rendering/toolbar/tools/ai-assistant/models';
263
+ export { AdaptiveGridService } from './common/adaptiveness.service';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-grid",
3
- "version": "21.2.0-develop.4",
3
+ "version": "21.2.0-develop.6",
4
4
  "description": "Kendo UI Grid for Angular - high performance data grid with paging, filtering, virtualization, CRUD, and more.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -73,7 +73,7 @@
73
73
  "package": {
74
74
  "productName": "Kendo UI for Angular",
75
75
  "productCode": "KENDOUIANGULAR",
76
- "publishDate": 1764059241,
76
+ "publishDate": 1764320228,
77
77
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/"
78
78
  }
79
79
  },
@@ -86,35 +86,34 @@
86
86
  "@progress/kendo-data-query": "^1.0.0",
87
87
  "@progress/kendo-drawing": "^1.21.0",
88
88
  "@progress/kendo-licensing": "^1.7.0",
89
- "@progress/kendo-angular-buttons": "21.2.0-develop.4",
90
- "@progress/kendo-angular-common": "21.2.0-develop.4",
91
- "@progress/kendo-angular-dateinputs": "21.2.0-develop.4",
92
- "@progress/kendo-angular-layout": "21.2.0-develop.4",
93
- "@progress/kendo-angular-navigation": "21.2.0-develop.4",
94
- "@progress/kendo-angular-dropdowns": "21.2.0-develop.4",
95
- "@progress/kendo-angular-excel-export": "21.2.0-develop.4",
96
- "@progress/kendo-angular-icons": "21.2.0-develop.4",
97
- "@progress/kendo-angular-indicators": "21.2.0-develop.4",
98
- "@progress/kendo-angular-inputs": "21.2.0-develop.4",
99
- "@progress/kendo-angular-conversational-ui": "21.2.0-develop.4",
100
- "@progress/kendo-angular-intl": "21.2.0-develop.4",
101
- "@progress/kendo-angular-l10n": "21.2.0-develop.4",
102
- "@progress/kendo-angular-label": "21.2.0-develop.4",
103
- "@progress/kendo-angular-menu": "21.2.0-develop.4",
104
- "@progress/kendo-angular-pager": "21.2.0-develop.4",
105
- "@progress/kendo-angular-pdf-export": "21.2.0-develop.4",
106
- "@progress/kendo-angular-popup": "21.2.0-develop.4",
107
- "@progress/kendo-angular-toolbar": "21.2.0-develop.4",
108
- "@progress/kendo-angular-upload": "21.2.0-develop.4",
109
- "@progress/kendo-angular-utils": "21.2.0-develop.4",
89
+ "@progress/kendo-angular-buttons": "21.2.0-develop.6",
90
+ "@progress/kendo-angular-common": "21.2.0-develop.6",
91
+ "@progress/kendo-angular-dateinputs": "21.2.0-develop.6",
92
+ "@progress/kendo-angular-layout": "21.2.0-develop.6",
93
+ "@progress/kendo-angular-navigation": "21.2.0-develop.6",
94
+ "@progress/kendo-angular-dropdowns": "21.2.0-develop.6",
95
+ "@progress/kendo-angular-excel-export": "21.2.0-develop.6",
96
+ "@progress/kendo-angular-icons": "21.2.0-develop.6",
97
+ "@progress/kendo-angular-indicators": "21.2.0-develop.6",
98
+ "@progress/kendo-angular-inputs": "21.2.0-develop.6",
99
+ "@progress/kendo-angular-conversational-ui": "21.2.0-develop.6",
100
+ "@progress/kendo-angular-intl": "21.2.0-develop.6",
101
+ "@progress/kendo-angular-l10n": "21.2.0-develop.6",
102
+ "@progress/kendo-angular-label": "21.2.0-develop.6",
103
+ "@progress/kendo-angular-menu": "21.2.0-develop.6",
104
+ "@progress/kendo-angular-pager": "21.2.0-develop.6",
105
+ "@progress/kendo-angular-pdf-export": "21.2.0-develop.6",
106
+ "@progress/kendo-angular-popup": "21.2.0-develop.6",
107
+ "@progress/kendo-angular-toolbar": "21.2.0-develop.6",
108
+ "@progress/kendo-angular-upload": "21.2.0-develop.6",
109
+ "@progress/kendo-angular-utils": "21.2.0-develop.6",
110
110
  "rxjs": "^6.5.3 || ^7.0.0"
111
111
  },
112
112
  "dependencies": {
113
113
  "tslib": "^2.3.1",
114
- "@progress/kendo-angular-schematics": "21.2.0-develop.4",
114
+ "@progress/kendo-angular-schematics": "21.2.0-develop.6",
115
115
  "@progress/kendo-common": "^1.0.1",
116
- "@progress/kendo-file-saver": "^1.0.0",
117
- "node-html-parser": "^7.0.1"
116
+ "@progress/kendo-file-saver": "^1.0.0"
118
117
  },
119
118
  "schematics": "./schematics/collection.json",
120
119
  "module": "fesm2022/progress-kendo-angular-grid.mjs",
@@ -9,19 +9,19 @@ const schematics_1 = require("@angular-devkit/schematics");
9
9
  function default_1(options) {
10
10
  const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'GridModule', package: 'grid', peerDependencies: {
11
11
  // peer deps of the dropdowns
12
- '@progress/kendo-angular-treeview': '21.2.0-develop.4',
13
- '@progress/kendo-angular-navigation': '21.2.0-develop.4',
12
+ '@progress/kendo-angular-treeview': '21.2.0-develop.6',
13
+ '@progress/kendo-angular-navigation': '21.2.0-develop.6',
14
14
  // peer dependency of kendo-angular-inputs
15
- '@progress/kendo-angular-dialog': '21.2.0-develop.4',
15
+ '@progress/kendo-angular-dialog': '21.2.0-develop.6',
16
16
  // peer dependency of kendo-angular-icons
17
17
  '@progress/kendo-svg-icons': '^4.0.0',
18
18
  // peer dependency of kendo-angular-layout
19
- '@progress/kendo-angular-progressbar': '21.2.0-develop.4',
19
+ '@progress/kendo-angular-progressbar': '21.2.0-develop.6',
20
20
  // transitive peer dependencies from toolbar
21
- '@progress/kendo-angular-indicators': '21.2.0-develop.4',
21
+ '@progress/kendo-angular-indicators': '21.2.0-develop.6',
22
22
  // transitive peer dependencies from conversational-ui
23
- '@progress/kendo-angular-menu': '21.2.0-develop.4',
24
- '@progress/kendo-angular-upload': '21.2.0-develop.4'
23
+ '@progress/kendo-angular-menu': '21.2.0-develop.6',
24
+ '@progress/kendo-angular-upload': '21.2.0-develop.6'
25
25
  } });
26
26
  return (0, schematics_1.externalSchematic)('@progress/kendo-angular-schematics', 'ng-add', finalOptions);
27
27
  }
@@ -1,93 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.templateTransformer = templateTransformer;
8
- const node_html_parser_1 = require("node-html-parser");
9
- function templateTransformer(root, j, ...processFns) {
10
- root
11
- .find(j.ClassDeclaration)
12
- .forEach(classPath => {
13
- // Skip if no decorators
14
- const classNode = classPath.node;
15
- if (!classNode.decorators || !classNode.decorators.length)
16
- return;
17
- // Find Component decorator
18
- const componentDecorator = classNode.decorators.find((decorator) => {
19
- if (decorator.expression && decorator.expression.type === 'CallExpression') {
20
- const callee = decorator.expression.callee;
21
- // Handle direct Component identifier
22
- if (callee.type === 'Identifier' && callee.name === 'Component') {
23
- return true;
24
- }
25
- // Handle angular.core.Component or similar
26
- if (callee.type === 'MemberExpression' &&
27
- callee.property &&
28
- callee.property.type === 'Identifier' &&
29
- callee.property.name === 'Component') {
30
- return true;
31
- }
32
- }
33
- return false;
34
- });
35
- if (!componentDecorator || !componentDecorator.expression)
36
- return;
37
- const expression = componentDecorator.expression;
38
- if (expression.type !== 'CallExpression' || !expression.arguments.length)
39
- return;
40
- const componentOptions = expression.arguments[0];
41
- if (componentOptions.type !== 'ObjectExpression')
42
- return;
43
- // Find template and templateUrl properties
44
- const props = componentOptions.properties || [];
45
- const templateProp = props.find((prop) => (prop.key.type === 'Identifier' && prop.key.name === 'template') ||
46
- (prop.key.type === 'StringLiteral' && prop.key.value === 'template'));
47
- // const templateUrlProp = props.find((prop: any) =>
48
- // (prop.key.type === 'Identifier' && prop.key.name === 'templateUrl') ||
49
- // (prop.key.type === 'StringLiteral' && prop.key.value === 'templateUrl')
50
- // );
51
- // Process inline template
52
- if (templateProp) {
53
- // Extract template based on node type
54
- let originalTemplate;
55
- if (templateProp.value.type === 'StringLiteral' || templateProp.value.type === 'Literal') {
56
- originalTemplate = templateProp.value.value;
57
- }
58
- else if (templateProp.value.type === 'TemplateLiteral') {
59
- // For template literals, join quasis
60
- if (templateProp.value.quasis && templateProp.value.quasis.length) {
61
- originalTemplate = templateProp.value.quasis
62
- .map((q) => q.value.cooked || q.value.raw)
63
- .join('');
64
- }
65
- else {
66
- console.warn('Could not process TemplateLiteral properly');
67
- return;
68
- }
69
- }
70
- else {
71
- console.warn(`Unsupported template type: ${templateProp.value.type}`);
72
- return;
73
- }
74
- const root = (0, node_html_parser_1.parse)(originalTemplate);
75
- processFns.forEach(fn => {
76
- fn(root);
77
- });
78
- // Transform template using Angular compiler
79
- const transformedTemplate = root.toString();
80
- if (transformedTemplate !== originalTemplate) {
81
- // Update template property
82
- if (templateProp.value.type === 'TemplateLiteral') {
83
- // For template literals, create a new template literal
84
- templateProp.value = j.templateLiteral([j.templateElement({ cooked: transformedTemplate, raw: transformedTemplate }, true)], []);
85
- }
86
- else {
87
- // For string literals, update the value
88
- templateProp.value.value = transformedTemplate;
89
- }
90
- }
91
- }
92
- });
93
- }