igniteui-angular 21.0.0-alpha.2 → 21.0.0-alpha.4
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.
|
@@ -2,5 +2,5 @@ import type { Rule } from '@angular-devkit/schematics';
|
|
|
2
2
|
interface MigrationOptions {
|
|
3
3
|
migrateImports?: boolean;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
export
|
|
5
|
+
export default function migrate(options: MigrationOptions): Rule;
|
|
6
|
+
export {};
|
|
@@ -9,71 +9,74 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.default = migrate;
|
|
12
13
|
const UpdateChanges_1 = require("../common/UpdateChanges");
|
|
13
14
|
const ts = require("typescript");
|
|
14
15
|
const version = '21.0.0';
|
|
15
16
|
// Comprehensive entry point mapping for ALL exports from all 42 entry points
|
|
16
17
|
const ENTRY_POINT_MAP = new Map([
|
|
17
18
|
// Core - Services, Utilities, Types, Enums
|
|
18
|
-
['IgxOverlayService', 'core'],
|
|
19
|
-
['IgxNavigationService', 'core'],
|
|
20
|
-
['DisplayDensity', 'core'],
|
|
21
|
-
['DisplayDensityToken', 'core'],
|
|
22
|
-
['DisplayDensityBase', 'core'],
|
|
23
|
-
['IDisplayDensityOptions', 'core'],
|
|
24
|
-
['OverlaySettings', 'core'],
|
|
25
|
-
['PositionSettings', 'core'],
|
|
26
|
-
['ScrollStrategy', 'core'],
|
|
27
|
-
['GlobalPositionStrategy', 'core'],
|
|
28
|
-
['AutoPositionStrategy', 'core'],
|
|
29
|
-
['ConnectedPositioningStrategy', 'core'],
|
|
30
|
-
['ElasticPositionStrategy', 'core'],
|
|
31
|
-
['AbsoluteScrollStrategy', 'core'],
|
|
32
|
-
['BlockScrollStrategy', 'core'],
|
|
33
|
-
['CloseScrollStrategy', 'core'],
|
|
34
|
-
['NoOpScrollStrategy', 'core'],
|
|
35
|
-
['HorizontalAlignment', 'core'],
|
|
36
|
-
['VerticalAlignment', 'core'],
|
|
37
|
-
['PositionStrategy', 'core'],
|
|
38
|
-
['OverlayEventArgs', 'core'],
|
|
39
|
-
['OverlayCancelableEventArgs', 'core'],
|
|
40
|
-
['OverlayClosingEventArgs', 'core'],
|
|
41
|
-
['OverlayAnimationEventArgs', 'core'],
|
|
42
|
-
['Size', 'core'],
|
|
43
|
-
['OffsetMode', 'core'],
|
|
44
|
-
['ConnectedFit', 'core'],
|
|
45
|
-
['IFilteringExpressionsTree', 'core'],
|
|
46
|
-
['IFilteringExpression', 'core'],
|
|
47
|
-
['FilteringLogic', 'core'],
|
|
48
|
-
['IFilteringOperation', 'core'],
|
|
49
|
-
['ISortingExpression', 'core'],
|
|
50
|
-
['SortingDirection', 'core'],
|
|
51
|
-
['IGroupingExpression', 'core'],
|
|
52
|
-
['IGroupByExpandState', 'core'],
|
|
53
|
-
['IPagingState', 'core'],
|
|
54
|
-
['PagingError', 'core'],
|
|
55
|
-
['DataUtil', 'core'],
|
|
56
|
-
['DatePart', 'core'],
|
|
57
|
-
['DatePartInfo', 'core'],
|
|
58
|
-
['DatePickerUtil', 'core'],
|
|
59
|
-
['IBaseCancelableBrowserEventArgs', 'core'],
|
|
60
|
-
['IBaseCancelableEventArgs', 'core'],
|
|
61
|
-
['IBaseEventArgs', 'core'],
|
|
62
|
-
['ICancelableBrowserEventArgs', 'core'],
|
|
63
|
-
['ICancelableEventArgs', 'core'],
|
|
64
|
-
['PlatformUtil', 'core'],
|
|
65
|
-
['Transaction', 'core'],
|
|
66
|
-
['TransactionType', 'core'],
|
|
67
|
-
['IgxTransactionService', 'core'],
|
|
68
|
-
['State', 'core'],
|
|
19
|
+
// ['IgxOverlayService', 'core'],
|
|
20
|
+
// ['IgxNavigationService', 'core'],
|
|
21
|
+
// ['DisplayDensity', 'core'],
|
|
22
|
+
// ['DisplayDensityToken', 'core'],
|
|
23
|
+
// ['DisplayDensityBase', 'core'],
|
|
24
|
+
// ['IDisplayDensityOptions', 'core'],
|
|
25
|
+
// ['OverlaySettings', 'core'],
|
|
26
|
+
// ['PositionSettings', 'core'],
|
|
27
|
+
// ['ScrollStrategy', 'core'],
|
|
28
|
+
// ['GlobalPositionStrategy', 'core'],
|
|
29
|
+
// ['AutoPositionStrategy', 'core'],
|
|
30
|
+
// ['ConnectedPositioningStrategy', 'core'],
|
|
31
|
+
// ['ElasticPositionStrategy', 'core'],
|
|
32
|
+
// ['AbsoluteScrollStrategy', 'core'],
|
|
33
|
+
// ['BlockScrollStrategy', 'core'],
|
|
34
|
+
// ['CloseScrollStrategy', 'core'],
|
|
35
|
+
// ['NoOpScrollStrategy', 'core'],
|
|
36
|
+
// ['HorizontalAlignment', 'core'],
|
|
37
|
+
// ['VerticalAlignment', 'core'],
|
|
38
|
+
// ['PositionStrategy', 'core'],
|
|
39
|
+
// ['OverlayEventArgs', 'core'],
|
|
40
|
+
// ['OverlayCancelableEventArgs', 'core'],
|
|
41
|
+
// ['OverlayClosingEventArgs', 'core'],
|
|
42
|
+
// ['OverlayAnimationEventArgs', 'core'],
|
|
43
|
+
// ['Size', 'core'],
|
|
44
|
+
// ['OffsetMode', 'core'],
|
|
45
|
+
// ['ConnectedFit', 'core'],
|
|
46
|
+
// ['IFilteringExpressionsTree', 'core'],
|
|
47
|
+
// ['IFilteringExpression', 'core'],
|
|
48
|
+
// ['FilteringLogic', 'core'],
|
|
49
|
+
// ['IFilteringOperation', 'core'],
|
|
50
|
+
// ['ISortingExpression', 'core'],
|
|
51
|
+
// ['SortingDirection', 'core'],
|
|
52
|
+
// ['IGroupingExpression', 'core'],
|
|
53
|
+
// ['IGroupByExpandState', 'core'],
|
|
54
|
+
// ['IPagingState', 'core'],
|
|
55
|
+
// ['PagingError', 'core'],
|
|
56
|
+
// ['DataUtil', 'core'],
|
|
57
|
+
// ['DatePart', 'core'],
|
|
58
|
+
// ['DatePartInfo', 'core'],
|
|
59
|
+
// ['DatePickerUtil', 'core'],
|
|
60
|
+
// ['IBaseCancelableBrowserEventArgs', 'core'],
|
|
61
|
+
// ['IBaseCancelableEventArgs', 'core'],
|
|
62
|
+
// ['IBaseEventArgs', 'core'],
|
|
63
|
+
// ['ICancelableBrowserEventArgs', 'core'],
|
|
64
|
+
// ['ICancelableEventArgs', 'core'],
|
|
65
|
+
// ['PlatformUtil', 'core'],
|
|
66
|
+
// ['Transaction', 'core'],
|
|
67
|
+
// ['TransactionType', 'core'],
|
|
68
|
+
// ['IgxTransactionService', 'core'],
|
|
69
|
+
// ['State', 'core'],
|
|
69
70
|
// Accordion
|
|
70
71
|
['IgxAccordionComponent', 'accordion'],
|
|
71
72
|
['IgxAccordionModule', 'accordion'],
|
|
73
|
+
['IGX_ACCORDION_DIRECTIVES', 'accordion'],
|
|
72
74
|
['IAccordionEventArgs', 'accordion'],
|
|
73
75
|
['IAccordionCancelableEventArgs', 'accordion'],
|
|
74
76
|
// Action Strip
|
|
75
77
|
['IgxActionStripComponent', 'action-strip'],
|
|
76
78
|
['IgxActionStripModule', 'action-strip'],
|
|
79
|
+
['IGX_ACTION_STRIP_DIRECTIVES', 'action-strip'],
|
|
77
80
|
['IgxActionStripMenuItemDirective', 'action-strip'],
|
|
78
81
|
// Avatar
|
|
79
82
|
['IgxAvatarComponent', 'avatar'],
|
|
@@ -89,6 +92,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
89
92
|
// Banner
|
|
90
93
|
['IgxBannerComponent', 'banner'],
|
|
91
94
|
['IgxBannerModule', 'banner'],
|
|
95
|
+
['IGX_BANNER_DIRECTIVES', 'banner'],
|
|
92
96
|
['IgxBannerActionsDirective', 'banner'],
|
|
93
97
|
['IBannerEventArgs', 'banner'],
|
|
94
98
|
['IBannerCancelEventArgs', 'banner'],
|
|
@@ -104,6 +108,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
104
108
|
// Button Group
|
|
105
109
|
['IgxButtonGroupComponent', 'button-group'],
|
|
106
110
|
['IgxButtonGroupModule', 'button-group'],
|
|
111
|
+
['IGX_BUTTON_GROUP_DIRECTIVES', 'button-group'],
|
|
107
112
|
['IgxButtonDirective', 'button-group'],
|
|
108
113
|
['IgxIconButtonDirective', 'button-group'],
|
|
109
114
|
['IButtonGroupEventArgs', 'button-group'],
|
|
@@ -111,6 +116,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
111
116
|
// Calendar
|
|
112
117
|
['IgxCalendarComponent', 'calendar'],
|
|
113
118
|
['IgxCalendarModule', 'calendar'],
|
|
119
|
+
['IGX_CALENDAR_DIRECTIVES', 'calendar'],
|
|
114
120
|
['IgxDaysViewComponent', 'calendar'],
|
|
115
121
|
['IgxMonthsViewComponent', 'calendar'],
|
|
116
122
|
['IgxYearsViewComponent', 'calendar'],
|
|
@@ -127,6 +133,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
127
133
|
// Card
|
|
128
134
|
['IgxCardComponent', 'card'],
|
|
129
135
|
['IgxCardModule', 'card'],
|
|
136
|
+
['IGX_CARD_DIRECTIVES', 'card'],
|
|
130
137
|
['IgxCardHeaderComponent', 'card'],
|
|
131
138
|
['IgxCardMediaDirective', 'card'],
|
|
132
139
|
['IgxCardContentDirective', 'card'],
|
|
@@ -138,6 +145,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
138
145
|
// Carousel
|
|
139
146
|
['IgxCarouselComponent', 'carousel'],
|
|
140
147
|
['IgxCarouselModule', 'carousel'],
|
|
148
|
+
['IGX_CAROUSEL_DIRECTIVES', 'carousel'],
|
|
141
149
|
['IgxSlideComponent', 'carousel'],
|
|
142
150
|
['CarouselAnimationDirection', 'carousel'], // Renamed from Direction
|
|
143
151
|
['ISlideEventArgs', 'carousel'],
|
|
@@ -152,6 +160,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
152
160
|
// Chips
|
|
153
161
|
['IgxChipsComponent', 'chips'],
|
|
154
162
|
['IgxChipsModule', 'chips'],
|
|
163
|
+
['IGX_CHIPS_DIRECTIVES', 'chips'],
|
|
155
164
|
['IgxChipComponent', 'chips'],
|
|
156
165
|
['IgxChipsAreaComponent', 'chips'],
|
|
157
166
|
['IBaseChipEventArgs', 'chips'],
|
|
@@ -163,6 +172,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
163
172
|
// Combo
|
|
164
173
|
['IgxComboComponent', 'combo'],
|
|
165
174
|
['IgxComboModule', 'combo'],
|
|
175
|
+
['IGX_COMBO_DIRECTIVES', 'combo'],
|
|
166
176
|
['IComboSelectionChangingEventArgs', 'combo'],
|
|
167
177
|
['IComboItemAdditionEvent', 'combo'],
|
|
168
178
|
['IComboSearchInputEventArgs', 'combo'],
|
|
@@ -178,13 +188,14 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
178
188
|
// Date and Date Range Picker
|
|
179
189
|
['IgxDatePickerComponent', 'date-picker'],
|
|
180
190
|
['IgxDatePickerModule', 'date-picker'],
|
|
191
|
+
['IGX_DATE_PICKER_DIRECTIVES', 'date-picker'],
|
|
192
|
+
['IGX_DATE_RANGE_PICKER_DIRECTIVES', 'date-picker'],
|
|
181
193
|
['InteractionMode', 'date-picker'],
|
|
182
194
|
['IDatePickerCancelEventArgs', 'date-picker'],
|
|
183
195
|
['IDatePickerDisabledDateEventArgs', 'date-picker'],
|
|
184
196
|
['IDatePickerValidationFailedEventArgs', 'date-picker'],
|
|
185
197
|
['IgxDateRangePickerComponent', 'date-picker'],
|
|
186
198
|
['IgxDateRangePickerModule', 'date-picker'],
|
|
187
|
-
['DateRangeType', 'date-picker'],
|
|
188
199
|
['DateRangeDescriptor', 'date-picker'],
|
|
189
200
|
['IDateRangePickerCancelEventArgs', 'date-picker'],
|
|
190
201
|
['IgxDateRangeEndComponent', 'date-picker'],
|
|
@@ -192,6 +203,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
192
203
|
// Dialog
|
|
193
204
|
['IgxDialogComponent', 'dialog'],
|
|
194
205
|
['IgxDialogModule', 'dialog'],
|
|
206
|
+
['IGX_DIALOG_DIRECTIVES', 'dialog'],
|
|
195
207
|
['IgxDialogActionsDirective', 'dialog'],
|
|
196
208
|
['IgxDialogTitleDirective', 'dialog'],
|
|
197
209
|
['IDialogEventArgs', 'dialog'],
|
|
@@ -199,6 +211,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
199
211
|
// Drop Down
|
|
200
212
|
['IgxDropDownComponent', 'drop-down'],
|
|
201
213
|
['IgxDropDownModule', 'drop-down'],
|
|
214
|
+
['IGX_DROP_DOWN_DIRECTIVES', 'drop-down'],
|
|
202
215
|
['IgxDropDownItemComponent', 'drop-down'],
|
|
203
216
|
['IgxDropDownGroupComponent', 'drop-down'],
|
|
204
217
|
['IgxDropDownItemBaseDirective', 'drop-down'],
|
|
@@ -210,6 +223,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
210
223
|
// Expansion Panel
|
|
211
224
|
['IgxExpansionPanelComponent', 'expansion-panel'],
|
|
212
225
|
['IgxExpansionPanelModule', 'expansion-panel'],
|
|
226
|
+
['IGX_EXPANSION_PANEL_DIRECTIVES', 'expansion-panel'],
|
|
213
227
|
['IgxExpansionPanelBase', 'expansion-panel'],
|
|
214
228
|
['IExpansionPanelEventArgs', 'expansion-panel'],
|
|
215
229
|
['IExpansionPanelCancelableEventArgs', 'expansion-panel'],
|
|
@@ -228,9 +242,13 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
228
242
|
// - 'igniteui-angular/grids/hierarchical-grid' - Hierarchical grid (IgxHierarchicalGridComponent, IgxRowIslandComponent)
|
|
229
243
|
// - 'igniteui-angular/grids/pivot-grid' - Pivot grid (IgxPivotGridComponent, IgxPivotDataSelectorComponent)
|
|
230
244
|
['IgxGridComponent', 'grids/grid'],
|
|
245
|
+
['IGX_GRID_DIRECTIVES', 'grids/grid'],
|
|
231
246
|
['IgxTreeGridComponent', 'grids/tree-grid'],
|
|
247
|
+
['IGX_TREE_GRID_DIRECTIVES', 'grids/tree-grid'],
|
|
232
248
|
['IgxHierarchicalGridComponent', 'grids/hierarchical-grid'],
|
|
249
|
+
['IGX_HIERARCHICAL_GRID_DIRECTIVES', 'grids/hierarchical-grid'],
|
|
233
250
|
['IgxPivotGridComponent', 'grids/pivot-grid'],
|
|
251
|
+
['IGX_PIVOT_GRID_DIRECTIVES', 'grids/pivot-grid'],
|
|
234
252
|
['IgxPivotDataSelectorComponent', 'grids/pivot-grid'],
|
|
235
253
|
['IgxRowIslandComponent', 'grids/hierarchical-grid'],
|
|
236
254
|
['IgxGridModule', 'grids/grid'],
|
|
@@ -274,7 +292,6 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
274
292
|
['IRowDragStartEventArgs', 'grids/core'],
|
|
275
293
|
['GridSelectionMode', 'grids/core'],
|
|
276
294
|
['FilterMode', 'grids/core'],
|
|
277
|
-
['GridSummaryCalculationMode', 'grids/core'],
|
|
278
295
|
['GridSummaryPosition', 'grids/core'],
|
|
279
296
|
['RowPinningPosition', 'grids/core'],
|
|
280
297
|
['GridInstanceType', 'grids/core'],
|
|
@@ -347,6 +364,13 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
347
364
|
['GridType', 'grids/core'],
|
|
348
365
|
['IGX_GRID_BASE', 'grids/core'],
|
|
349
366
|
['IColumnSelectionEventArgs', 'grids/core'],
|
|
367
|
+
['IgxDragIndicatorIconDirective', 'grids/core'],
|
|
368
|
+
['IgxRowDragGhostDirective', 'grids/core'],
|
|
369
|
+
['IgxGridFooterComponent', 'grids/core'],
|
|
370
|
+
['IgxColumnLayoutComponent', 'grids/core'],
|
|
371
|
+
['IgxExporterEvent', 'grids/core'],
|
|
372
|
+
['IGridEditDoneEventArgs', 'grids/core'],
|
|
373
|
+
['IgxGridRow', 'grids/core'],
|
|
350
374
|
['IgxGridEditingActions', 'grids/core'], // Grid actions moved to grids
|
|
351
375
|
['IgxGridPinningActions', 'grids/core'], // Grid actions moved to grids
|
|
352
376
|
['IgxGridActionButtonComponent', 'grids/core'], // Grid actions moved to grids
|
|
@@ -360,6 +384,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
360
384
|
['ITreeGridAggregation', 'grids/tree-grid'],
|
|
361
385
|
['IgxGroupedTreeGridSorting', 'grids/tree-grid'],
|
|
362
386
|
['IgxTreeGridGroupingPipe', 'grids/tree-grid'],
|
|
387
|
+
['IGridCreatedEventArgs', 'grids/hierarchical-grid'],
|
|
363
388
|
// Icon
|
|
364
389
|
['IgxIconComponent', 'icon'],
|
|
365
390
|
['IgxIconModule', 'icon'],
|
|
@@ -368,6 +393,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
368
393
|
// Input Group
|
|
369
394
|
['IgxInputGroupComponent', 'input-group'],
|
|
370
395
|
['IgxInputGroupModule', 'input-group'],
|
|
396
|
+
['IGX_INPUT_GROUP_DIRECTIVES', 'input-group'],
|
|
371
397
|
['IgxInputDirective', 'input-group'], // Breaking change - moved from directives
|
|
372
398
|
['IgxLabelDirective', 'input-group'], // Breaking change - moved from directives
|
|
373
399
|
['IgxHintDirective', 'input-group'], // Breaking change - moved from directives
|
|
@@ -379,6 +405,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
379
405
|
// List
|
|
380
406
|
['IgxListComponent', 'list'],
|
|
381
407
|
['IgxListModule', 'list'],
|
|
408
|
+
['IGX_LIST_DIRECTIVES', 'list'],
|
|
382
409
|
['IgxListItemComponent', 'list'],
|
|
383
410
|
['IgxListHeaderComponent', 'list'],
|
|
384
411
|
['IListItemClickEventArgs', 'list'],
|
|
@@ -390,14 +417,18 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
390
417
|
['IgxDataLoadingTemplateDirective', 'list'],
|
|
391
418
|
['IgxListActionDirective', 'list'],
|
|
392
419
|
['IgxListThumbnailDirective', 'list'],
|
|
420
|
+
['IgxListItemLeftPanningTemplateDirective', 'list'],
|
|
421
|
+
['IgxListItemRightPanningTemplateDirective', 'list'],
|
|
393
422
|
// Navbar
|
|
394
423
|
['IgxNavbarComponent', 'navbar'],
|
|
395
424
|
['IgxNavbarModule', 'navbar'],
|
|
425
|
+
['IGX_NAVBAR_DIRECTIVES', 'navbar'],
|
|
396
426
|
['IgxNavbarActionDirective', 'navbar'],
|
|
397
427
|
['IgxNavbarTitleDirective', 'navbar'],
|
|
398
428
|
// Navigation Drawer
|
|
399
429
|
['IgxNavigationDrawerComponent', 'navigation-drawer'],
|
|
400
430
|
['IgxNavigationDrawerModule', 'navigation-drawer'],
|
|
431
|
+
['IGX_NAVIGATION_DRAWER_DIRECTIVES', 'navigation-drawer'],
|
|
401
432
|
['IgxNavigationDrawerItemComponent', 'navigation-drawer'],
|
|
402
433
|
['INavigationDrawerEventArgs', 'navigation-drawer'],
|
|
403
434
|
['IgxNavDrawerMode', 'navigation-drawer'],
|
|
@@ -406,6 +437,8 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
406
437
|
['IgxNavDrawerMiniTemplateDirective', 'navigation-drawer'],
|
|
407
438
|
// Paginator
|
|
408
439
|
['IgxPaginatorComponent', 'paginator'],
|
|
440
|
+
['IGX_PAGINATOR_DIRECTIVES', 'paginator'],
|
|
441
|
+
['IgxPaginatorDirective', 'paginator'],
|
|
409
442
|
['IgxPageNavigationComponent', 'paginator'],
|
|
410
443
|
['IgxPageSizeSelectorComponent', 'paginator'],
|
|
411
444
|
['IgxPaginatorContentDirective', 'paginator'],
|
|
@@ -416,21 +449,28 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
416
449
|
['IgxCircularProgressBarComponent', 'progressbar'],
|
|
417
450
|
['IgxLinearProgressBarComponent', 'progressbar'],
|
|
418
451
|
['IgxProgressBarModule', 'progressbar'],
|
|
452
|
+
['IGX_PROGRESS_BAR_DIRECTIVES', 'progressbar'],
|
|
419
453
|
['IgxProgressType', 'progressbar'],
|
|
420
454
|
['IgxTextAlign', 'progressbar'],
|
|
421
455
|
['IgxProgressBarGradientMode', 'progressbar'],
|
|
456
|
+
['IgxProgressBarGradientDirective', 'progressbar'],
|
|
422
457
|
// Query Builder
|
|
423
458
|
['IgxQueryBuilderComponent', 'query-builder'],
|
|
424
459
|
['IgxQueryBuilderModule', 'query-builder'],
|
|
460
|
+
['IGX_QUERY_BUILDER_DIRECTIVES', 'query-builder'],
|
|
425
461
|
['IExpressionGroup', 'query-builder'],
|
|
462
|
+
['IgxQueryBuilderHeaderComponent', 'query-builder'],
|
|
463
|
+
['IgxQueryBuilderSearchValueTemplateDirective', 'query-builder'],
|
|
426
464
|
// Radio
|
|
427
465
|
['IgxRadioComponent', 'radio'],
|
|
428
466
|
['IgxRadioModule', 'radio'],
|
|
467
|
+
['IGX_RADIO_GROUP_DIRECTIVES', 'radio'],
|
|
429
468
|
['RadioGroupAlignment', 'radio'],
|
|
430
469
|
['IgxRadioGroupDirective', 'radio'],
|
|
431
470
|
// Select
|
|
432
471
|
['IgxSelectComponent', 'select'],
|
|
433
472
|
['IgxSelectModule', 'select'],
|
|
473
|
+
['IGX_SELECT_DIRECTIVES', 'select'],
|
|
434
474
|
['IgxSelectItemComponent', 'select'],
|
|
435
475
|
['IgxSelectHeaderDirective', 'select'],
|
|
436
476
|
['IgxSelectFooterDirective', 'select'],
|
|
@@ -439,11 +479,13 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
439
479
|
['IgxSelectGroupComponent', 'select'],
|
|
440
480
|
// Simple Combo
|
|
441
481
|
['IgxSimpleComboComponent', 'simple-combo'],
|
|
482
|
+
['IGX_SIMPLE_COMBO_DIRECTIVES', 'simple-combo'],
|
|
442
483
|
['ISimpleComboSelectionChangingEventArgs', 'simple-combo'],
|
|
443
484
|
['IgxSimpleComboModule', 'simple-combo'],
|
|
444
485
|
// Slider
|
|
445
486
|
['IgxSliderComponent', 'slider'],
|
|
446
487
|
['IgxSliderModule', 'slider'],
|
|
488
|
+
['IGX_SLIDER_DIRECTIVES', 'slider'],
|
|
447
489
|
['ISliderValueChangeEventArgs', 'slider'],
|
|
448
490
|
['IRangeSliderValue', 'slider'],
|
|
449
491
|
['SliderType', 'slider'],
|
|
@@ -459,12 +501,14 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
459
501
|
// Splitter
|
|
460
502
|
['IgxSplitterComponent', 'splitter'],
|
|
461
503
|
['IgxSplitterModule', 'splitter'],
|
|
504
|
+
['IGX_SPLITTER_DIRECTIVES', 'splitter'],
|
|
462
505
|
['IgxSplitterPaneComponent', 'splitter'],
|
|
463
506
|
['ISplitterEventArgs', 'splitter'],
|
|
464
507
|
['SplitterType', 'splitter'],
|
|
465
508
|
// Stepper
|
|
466
509
|
['IgxStepperComponent', 'stepper'],
|
|
467
510
|
['IgxStepperModule', 'stepper'],
|
|
511
|
+
['IGX_STEPPER_DIRECTIVES', 'stepper'],
|
|
468
512
|
['IgxStepComponent', 'stepper'],
|
|
469
513
|
['IStepChangingEventArgs', 'stepper'],
|
|
470
514
|
['IStepChangedEventArgs', 'stepper'],
|
|
@@ -477,12 +521,14 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
477
521
|
['IgxStepSubtitleDirective', 'stepper'],
|
|
478
522
|
['IgxStepInvalidIndicatorDirective', 'stepper'],
|
|
479
523
|
['IgxStepIndicatorDirective', 'stepper'],
|
|
524
|
+
['IgxStepperTitlePosition', 'stepper'],
|
|
480
525
|
// Switch
|
|
481
526
|
['IgxSwitchComponent', 'switch'],
|
|
482
527
|
['IgxSwitchModule', 'switch'],
|
|
483
528
|
// Tabs
|
|
484
529
|
['IgxTabsComponent', 'tabs'],
|
|
485
530
|
['IgxTabsModule', 'tabs'],
|
|
531
|
+
['IGX_TABS_DIRECTIVES', 'tabs'],
|
|
486
532
|
['IgxTabItemComponent', 'tabs'],
|
|
487
533
|
['IgxTabHeaderComponent', 'tabs'],
|
|
488
534
|
['IgxTabContentComponent', 'tabs'],
|
|
@@ -494,6 +540,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
494
540
|
// Time Picker
|
|
495
541
|
['IgxTimePickerComponent', 'time-picker'],
|
|
496
542
|
['IgxTimePickerModule', 'time-picker'],
|
|
543
|
+
['IGX_TIME_PICKER_DIRECTIVES', 'time-picker'],
|
|
497
544
|
['IgxTimePickerActionsDirective', 'time-picker'],
|
|
498
545
|
['IgxHourItemDirective', 'time-picker'],
|
|
499
546
|
['IgxMinuteItemDirective', 'time-picker'],
|
|
@@ -506,6 +553,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
506
553
|
// Tree
|
|
507
554
|
['IgxTreeComponent', 'tree'],
|
|
508
555
|
['IgxTreeModule', 'tree'],
|
|
556
|
+
['IGX_TREE_DIRECTIVES', 'tree'],
|
|
509
557
|
['IgxTreeNodeComponent', 'tree'],
|
|
510
558
|
['ITreeNodeSelectionEvent', 'tree'],
|
|
511
559
|
['ITreeNodeTogglingEventArgs', 'tree'],
|
|
@@ -537,6 +585,7 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
537
585
|
['IgxFocusModule', 'directives'],
|
|
538
586
|
['IgxTooltipDirective', 'directives'],
|
|
539
587
|
['IgxTooltipTargetDirective', 'directives'],
|
|
588
|
+
['TooltipPositionStrategy', 'directives'],
|
|
540
589
|
['IgxTooltipModule', 'directives'],
|
|
541
590
|
['IgxRippleDirective', 'directives'],
|
|
542
591
|
['IgxRippleModule', 'directives'],
|
|
@@ -546,8 +595,6 @@ const ENTRY_POINT_MAP = new Map([
|
|
|
546
595
|
['IDragBaseEventArgs', 'directives'],
|
|
547
596
|
['IDropBaseEventArgs', 'directives'],
|
|
548
597
|
['IDragMoveEventArgs', 'directives'],
|
|
549
|
-
['IgxDragIndicatorIconDirective', 'directives'],
|
|
550
|
-
['IgxRowDragGhostDirective', 'directives'],
|
|
551
598
|
['IgxDragDirective', 'directives'],
|
|
552
599
|
['IgxDragHandleDirective', 'directives'],
|
|
553
600
|
['IgxDragLocation', 'directives'],
|
|
@@ -684,49 +731,51 @@ function migrateFile(filePath, content) {
|
|
|
684
731
|
}
|
|
685
732
|
return result;
|
|
686
733
|
}
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
734
|
+
function migrate(options) {
|
|
735
|
+
return (host, context) => __awaiter(this, void 0, void 0, function* () {
|
|
736
|
+
context.logger.info(`Applying migration for Ignite UI for Angular to version ${version}`);
|
|
737
|
+
const update = new UpdateChanges_1.UpdateChanges(__dirname, host, context);
|
|
738
|
+
const shouldMigrateImports = options.migrateImports === true;
|
|
739
|
+
if (shouldMigrateImports) {
|
|
740
|
+
context.logger.info('Migrating imports to new entry points...');
|
|
741
|
+
const visit = (filePath) => {
|
|
742
|
+
// Only process TypeScript files
|
|
743
|
+
if (!filePath.endsWith('.ts')) {
|
|
744
|
+
return;
|
|
745
|
+
}
|
|
746
|
+
// Skip node_modules and dist
|
|
747
|
+
if (filePath.includes('node_modules') || filePath.includes('dist')) {
|
|
748
|
+
return;
|
|
749
|
+
}
|
|
750
|
+
const content = host.read(filePath);
|
|
751
|
+
if (!content) {
|
|
752
|
+
return;
|
|
753
|
+
}
|
|
754
|
+
const originalContent = content.toString();
|
|
755
|
+
// Check if file has igniteui-angular imports
|
|
756
|
+
if (!originalContent.includes("from 'igniteui-angular'") && !originalContent.includes('from "igniteui-angular"')) {
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
const migratedContent = migrateFile(filePath, originalContent);
|
|
760
|
+
if (migratedContent !== originalContent) {
|
|
761
|
+
host.overwrite(filePath, migratedContent);
|
|
762
|
+
context.logger.info(` ✓ Migrated ${filePath}`);
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
host.visit(visit);
|
|
766
|
+
context.logger.info('Migration complete!');
|
|
767
|
+
context.logger.info('Breaking changes:');
|
|
768
|
+
context.logger.info(' - Input directives moved to igniteui-angular/input-group');
|
|
769
|
+
context.logger.info(' - IgxAutocompleteDirective moved to igniteui-angular/drop-down');
|
|
770
|
+
context.logger.info(' - IgxRadioGroupDirective moved to igniteui-angular/radio');
|
|
771
|
+
context.logger.info('Type renames:');
|
|
772
|
+
context.logger.info(' - Direction → CarouselAnimationDirection');
|
|
773
|
+
}
|
|
774
|
+
else {
|
|
775
|
+
context.logger.info('Skipping import migration. You can continue using the main entry point.');
|
|
776
|
+
context.logger.info('Note: The library now supports granular entry points for better tree-shaking.');
|
|
777
|
+
context.logger.info('To migrate later, run: ng update igniteui-angular --migrate-only --from=20.1.0 --to=21.0.0');
|
|
778
|
+
}
|
|
779
|
+
update.applyChanges();
|
|
780
|
+
});
|
|
781
|
+
}
|
|
@@ -7,8 +7,11 @@
|
|
|
7
7
|
"migrateImports": {
|
|
8
8
|
"type": "boolean",
|
|
9
9
|
"description": "Migrate imports to use granular entry points (e.g., 'igniteui-angular/grids' instead of 'igniteui-angular'). The library remains backwards compatible - you can continue using the main entry point.",
|
|
10
|
-
"
|
|
11
|
-
|
|
10
|
+
"x-prompt": {
|
|
11
|
+
"message": "Would you like to migrate your imports to use the new granular entry points for better tree-shaking?",
|
|
12
|
+
"type": "confirmation"
|
|
13
|
+
}
|
|
12
14
|
}
|
|
13
|
-
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["migrateImports"]
|
|
14
17
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-angular",
|
|
3
|
-
"version": "21.0.0-alpha.
|
|
3
|
+
"version": "21.0.0-alpha.4",
|
|
4
4
|
"description": "Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps",
|
|
5
5
|
"author": "Infragistics",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|