@taiga-ui/cdk 4.0.0-rc.4 → 4.0.0-rc.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.
- package/classes/index.d.ts +0 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/esm2022/classes/index.mjs +1 -2
- package/esm2022/constants/version.mjs +2 -2
- package/esm2022/tokens/environment.mjs +9 -1
- package/fesm2022/taiga-ui-cdk-classes.mjs +1 -15
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-tokens.mjs +9 -2
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/ng-update/interfaces/replacement-identifier.d.ts +2 -1
- package/schematics/ng-update/steps/replace-identifier.js +12 -2
- package/schematics/ng-update/steps/replace-package-name.js +4 -5
- package/schematics/ng-update/v4/index.js +6 -1
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js +8 -0
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +30 -2
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +182 -48
- package/schematics/ng-update/v4/steps/constants/index.d.ts +1 -0
- package/schematics/ng-update/v4/steps/constants/index.js +1 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +8 -0
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.d.ts +7 -6
- package/schematics/ng-update/v4/steps/constants/modules-to-replace.js +1 -0
- package/schematics/ng-update/v4/steps/constants/services.d.ts +2 -0
- package/schematics/ng-update/v4/steps/constants/services.js +15 -0
- package/schematics/ng-update/v4/steps/migrate-root.d.ts +3 -0
- package/schematics/ng-update/v4/steps/migrate-root.js +56 -0
- package/schematics/ng-update/v4/steps/migrate-styles.js +1 -0
- package/schematics/ng-update/v4/steps/migrate-templates.js +2 -2
- package/schematics/ng-update/v4/steps/templates/index.d.ts +2 -0
- package/schematics/ng-update/v4/steps/templates/index.js +2 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-label.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-label.js +39 -0
- package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +4 -4
- package/schematics/ng-update/v4/steps/update-packages.js +6 -0
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.d.ts +1 -11
- package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js +8 -4
- package/schematics/utils/get-named-import-references.js +4 -2
- package/tokens/environment.d.ts +1 -0
- package/classes/controller.d.ts +0 -9
- package/esm2022/classes/controller.mjs +0 -18
@@ -82,6 +82,14 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
82
82
|
from: { name: 'TuiNotificationModule', moduleSpecifier: '@taiga-ui/core' },
|
83
83
|
to: { name: 'TuiNotification', moduleSpecifier: '@taiga-ui/core' },
|
84
84
|
},
|
85
|
+
{
|
86
|
+
from: { name: 'TuiNotificationT', moduleSpecifier: '@taiga-ui/core' },
|
87
|
+
to: { name: 'TuiNotificationStatus', moduleSpecifier: '@taiga-ui/core' },
|
88
|
+
},
|
89
|
+
{
|
90
|
+
from: { name: 'TuiFormatPhonePipe', moduleSpecifier: '@taiga-ui/core' },
|
91
|
+
to: { name: 'TuiFormatPhonePipe', moduleSpecifier: '@taiga-ui/legacy' },
|
92
|
+
},
|
85
93
|
{
|
86
94
|
from: { name: 'TuiCalendarModule', moduleSpecifier: '@taiga-ui/core' },
|
87
95
|
to: { name: 'TuiCalendar', moduleSpecifier: '@taiga-ui/core' },
|
@@ -128,11 +136,19 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
128
136
|
},
|
129
137
|
{
|
130
138
|
from: { name: 'TuiDataListModule', moduleSpecifier: '@taiga-ui/core' },
|
131
|
-
to: {
|
139
|
+
to: {
|
140
|
+
name: 'TuiDataList',
|
141
|
+
moduleSpecifier: '@taiga-ui/core',
|
142
|
+
spreadInModule: true,
|
143
|
+
},
|
132
144
|
},
|
133
145
|
{
|
134
146
|
from: { name: 'TuiDataListWrapperModule', moduleSpecifier: '@taiga-ui/kit' },
|
135
|
-
to: {
|
147
|
+
to: {
|
148
|
+
name: 'TuiDataListWrapper',
|
149
|
+
moduleSpecifier: '@taiga-ui/kit',
|
150
|
+
spreadInModule: true,
|
151
|
+
},
|
136
152
|
},
|
137
153
|
{
|
138
154
|
from: { name: 'TuiErrorModule', moduleSpecifier: '@taiga-ui/core' },
|
@@ -140,7 +156,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
140
156
|
},
|
141
157
|
{
|
142
158
|
from: { name: 'TuiExpandModule', moduleSpecifier: '@taiga-ui/core' },
|
143
|
-
to: { name: 'TuiExpand', moduleSpecifier: '@taiga-ui/core' },
|
159
|
+
to: { name: 'TuiExpand', moduleSpecifier: '@taiga-ui/core', spreadInModule: true },
|
144
160
|
},
|
145
161
|
{
|
146
162
|
from: { name: 'TuiLoaderModule', moduleSpecifier: '@taiga-ui/core' },
|
@@ -148,7 +164,11 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
148
164
|
},
|
149
165
|
{
|
150
166
|
from: { name: 'TuiAccordionModule', moduleSpecifier: '@taiga-ui/kit' },
|
151
|
-
to: {
|
167
|
+
to: {
|
168
|
+
name: 'TuiAccordion',
|
169
|
+
moduleSpecifier: '@taiga-ui/kit',
|
170
|
+
spreadInModule: true,
|
171
|
+
},
|
152
172
|
},
|
153
173
|
{
|
154
174
|
from: { name: 'TuiBreadcrumbsModule', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -167,7 +187,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
167
187
|
},
|
168
188
|
{
|
169
189
|
from: { name: 'TuiCarouselModule', moduleSpecifier: '@taiga-ui/kit' },
|
170
|
-
to: { name: 'TuiCarousel', moduleSpecifier: '@taiga-ui/kit' },
|
190
|
+
to: { name: 'TuiCarousel', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
171
191
|
},
|
172
192
|
{
|
173
193
|
from: { name: 'TuiPushModule', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -182,7 +202,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
182
202
|
},
|
183
203
|
{
|
184
204
|
from: { name: 'TuiFilesModule', moduleSpecifier: '@taiga-ui/kit' },
|
185
|
-
to: { name: 'TuiFiles', moduleSpecifier: '@taiga-ui/kit' },
|
205
|
+
to: { name: 'TuiFiles', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
186
206
|
},
|
187
207
|
{
|
188
208
|
from: { name: 'TuiFilterModule', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -202,7 +222,11 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
202
222
|
},
|
203
223
|
{
|
204
224
|
from: { name: 'TuiItemsWithMoreModule', moduleSpecifier: '@taiga-ui/kit' },
|
205
|
-
to: {
|
225
|
+
to: {
|
226
|
+
name: 'TuiItemsWithMore',
|
227
|
+
moduleSpecifier: '@taiga-ui/kit',
|
228
|
+
spreadInModule: true,
|
229
|
+
},
|
206
230
|
},
|
207
231
|
{
|
208
232
|
from: { name: 'TuiLineClampModule', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -214,19 +238,19 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
214
238
|
},
|
215
239
|
{
|
216
240
|
from: { name: 'TuiSliderModule', moduleSpecifier: '@taiga-ui/kit' },
|
217
|
-
to: { name: 'TuiSlider', moduleSpecifier: '@taiga-ui/kit' },
|
241
|
+
to: { name: 'TuiSlider', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
218
242
|
},
|
219
243
|
{
|
220
244
|
from: { name: 'TuiTilesModule', moduleSpecifier: '@taiga-ui/kit' },
|
221
|
-
to: { name: 'TuiTiles', moduleSpecifier: '@taiga-ui/kit' },
|
245
|
+
to: { name: 'TuiTiles', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
222
246
|
},
|
223
247
|
{
|
224
248
|
from: { name: 'TuiStepperModule', moduleSpecifier: '@taiga-ui/kit' },
|
225
|
-
to: { name: 'TuiStepper', moduleSpecifier: '@taiga-ui/kit' },
|
249
|
+
to: { name: 'TuiStepper', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
226
250
|
},
|
227
251
|
{
|
228
252
|
from: { name: 'TuiTreeModule', moduleSpecifier: '@taiga-ui/kit' },
|
229
|
-
to: { name: 'TuiTree', moduleSpecifier: '@taiga-ui/kit' },
|
253
|
+
to: { name: 'TuiTree', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
230
254
|
},
|
231
255
|
{
|
232
256
|
from: {
|
@@ -254,10 +278,6 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
254
278
|
from: { name: 'TuiUnmaskHandlerModule', moduleSpecifier: '@taiga-ui/kit' },
|
255
279
|
to: { name: 'TuiUnmaskHandler', moduleSpecifier: '@taiga-ui/kit' },
|
256
280
|
},
|
257
|
-
{
|
258
|
-
from: { name: 'TuiDialogFormService', moduleSpecifier: '@taiga-ui/kit' },
|
259
|
-
to: { name: 'TuiConfirmService', moduleSpecifier: '@taiga-ui/kit' },
|
260
|
-
},
|
261
281
|
{
|
262
282
|
from: { name: 'TuiSortCountriesPipeModule', moduleSpecifier: '@taiga-ui/kit' },
|
263
283
|
to: { name: 'TuiSortCountriesPipe', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -359,6 +379,10 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
359
379
|
from: { name: 'TuiCheckboxModule', moduleSpecifier: '@taiga-ui/experimental' },
|
360
380
|
to: { name: 'TuiCheckbox', moduleSpecifier: '@taiga-ui/kit' },
|
361
381
|
},
|
382
|
+
{
|
383
|
+
from: { name: 'TuiCheckboxModule', moduleSpecifier: '@taiga-ui/kit' },
|
384
|
+
to: { name: 'TuiCheckbox', moduleSpecifier: '@taiga-ui/kit' },
|
385
|
+
},
|
362
386
|
{
|
363
387
|
from: { name: 'TuiSwipeActionsModule', moduleSpecifier: '@taiga-ui/experimental' },
|
364
388
|
to: [
|
@@ -368,11 +392,15 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
368
392
|
},
|
369
393
|
{
|
370
394
|
from: { name: 'TuiRadioModule', moduleSpecifier: '@taiga-ui/experimental' },
|
371
|
-
to: { name: 'TuiRadio', moduleSpecifier: '@taiga-ui/kit' },
|
395
|
+
to: { name: 'TuiRadio', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
372
396
|
},
|
373
397
|
{
|
374
398
|
from: { name: 'TuiAvatarModule', moduleSpecifier: '@taiga-ui/experimental' },
|
375
|
-
to: { name: '
|
399
|
+
to: { name: 'TuiAvatar', moduleSpecifier: '@taiga-ui/kit' },
|
400
|
+
},
|
401
|
+
{
|
402
|
+
from: { name: 'TuiAvatarModule', moduleSpecifier: '@taiga-ui/kit' },
|
403
|
+
to: { name: 'TuiAvatar', moduleSpecifier: '@taiga-ui/kit' },
|
376
404
|
},
|
377
405
|
{
|
378
406
|
from: { name: 'TuiToggleModule', moduleSpecifier: '@taiga-ui/experimental' },
|
@@ -382,6 +410,10 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
382
410
|
from: { name: 'TuiToggleModule', moduleSpecifier: '@taiga-ui/kit' },
|
383
411
|
to: { name: 'TuiSwitch', moduleSpecifier: '@taiga-ui/kit' },
|
384
412
|
},
|
413
|
+
{
|
414
|
+
from: { name: 'TuiToggleComponent', moduleSpecifier: '@taiga-ui/kit' },
|
415
|
+
to: { name: 'TuiSwitch', moduleSpecifier: '@taiga-ui/kit' },
|
416
|
+
},
|
385
417
|
{
|
386
418
|
from: { name: 'TuiTextAreaModule', moduleSpecifier: '@taiga-ui/kit' },
|
387
419
|
to: { name: 'TuiTextareaModule', moduleSpecifier: '@taiga-ui/legacy' },
|
@@ -396,7 +428,11 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
396
428
|
},
|
397
429
|
{
|
398
430
|
from: { name: 'TuiBadgedContentModule', moduleSpecifier: '@taiga-ui/experimental' },
|
399
|
-
to: {
|
431
|
+
to: {
|
432
|
+
name: 'TuiBadgedContent',
|
433
|
+
moduleSpecifier: '@taiga-ui/kit',
|
434
|
+
spreadInModule: true,
|
435
|
+
},
|
400
436
|
},
|
401
437
|
{
|
402
438
|
from: { name: 'TuiBadgedContentModule', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -456,13 +492,17 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
456
492
|
to: { name: 'TUI_SCROLL_REF', moduleSpecifier: '@taiga-ui/core' },
|
457
493
|
},
|
458
494
|
{
|
459
|
-
from: { name: 'TUI_SANITIZER', moduleSpecifier: '@taiga-ui/
|
495
|
+
from: { name: 'TUI_SANITIZER', moduleSpecifier: '@taiga-ui/core' },
|
460
496
|
to: { name: 'TUI_SANITIZER', moduleSpecifier: '@taiga-ui/legacy' },
|
461
497
|
},
|
462
498
|
{
|
463
499
|
from: { name: 'TuiScrollbarModule', moduleSpecifier: '@taiga-ui/core' },
|
464
500
|
to: { name: 'TuiScrollbar', moduleSpecifier: '@taiga-ui/core' },
|
465
501
|
},
|
502
|
+
{
|
503
|
+
from: { name: 'TuiScrollbarComponent', moduleSpecifier: '@taiga-ui/core' },
|
504
|
+
to: { name: 'TuiScrollbar', moduleSpecifier: '@taiga-ui/core' },
|
505
|
+
},
|
466
506
|
{
|
467
507
|
from: { name: 'TuiGroupModule', moduleSpecifier: '@taiga-ui/core' },
|
468
508
|
to: { name: 'TuiGroup', moduleSpecifier: '@taiga-ui/core' },
|
@@ -497,7 +537,11 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
497
537
|
},
|
498
538
|
{
|
499
539
|
from: { name: 'TuiDropdownModule', moduleSpecifier: '@taiga-ui/core' },
|
500
|
-
to: {
|
540
|
+
to: {
|
541
|
+
name: 'TuiDropdown',
|
542
|
+
moduleSpecifier: '@taiga-ui/core',
|
543
|
+
spreadInModule: true,
|
544
|
+
},
|
501
545
|
},
|
502
546
|
{
|
503
547
|
from: { name: 'TuiDroppableModule', moduleSpecifier: '@taiga-ui/cdk' },
|
@@ -611,7 +655,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
611
655
|
},
|
612
656
|
{
|
613
657
|
from: { name: 'TuiTabsModule', moduleSpecifier: '@taiga-ui/kit' },
|
614
|
-
to: { name: 'TuiTabs', moduleSpecifier: '@taiga-ui/kit' },
|
658
|
+
to: { name: 'TuiTabs', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
615
659
|
},
|
616
660
|
{
|
617
661
|
from: { name: 'TuiHostedDropdownModule', moduleSpecifier: '@taiga-ui/core' },
|
@@ -657,10 +701,6 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
657
701
|
from: { name: 'TuiSvgModule', moduleSpecifier: '@taiga-ui/core' },
|
658
702
|
to: { name: 'TuiSvgComponent', moduleSpecifier: '@taiga-ui/legacy' },
|
659
703
|
},
|
660
|
-
{
|
661
|
-
from: { name: 'TuiRootModule', moduleSpecifier: '@taiga-ui/core' },
|
662
|
-
to: { name: 'TuiRoot', moduleSpecifier: '@taiga-ui/core' },
|
663
|
-
},
|
664
704
|
{
|
665
705
|
from: { name: 'TuiCellModule', moduleSpecifier: '@taiga-ui/experimental' },
|
666
706
|
to: { name: 'TuiCell', moduleSpecifier: '@taiga-ui/layout' },
|
@@ -737,13 +777,6 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
737
777
|
moduleSpecifier: '@taiga-ui/core',
|
738
778
|
},
|
739
779
|
},
|
740
|
-
{
|
741
|
-
from: { name: 'TuiAlertModule', moduleSpecifier: '@taiga-ui/core' },
|
742
|
-
to: {
|
743
|
-
name: 'TuiAlert',
|
744
|
-
moduleSpecifier: '@taiga-ui/core',
|
745
|
-
},
|
746
|
-
},
|
747
780
|
{
|
748
781
|
from: { name: 'TuiButtonModule', moduleSpecifier: '@taiga-ui/experimental' },
|
749
782
|
to: {
|
@@ -867,22 +900,12 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
867
900
|
},
|
868
901
|
{
|
869
902
|
from: {
|
870
|
-
name: 'TuiPromptDialogModule',
|
871
|
-
moduleSpecifier: '@taiga-ui/proprietary-core',
|
872
|
-
},
|
873
|
-
to: {
|
874
903
|
name: 'TuiPromptDialogComponent',
|
875
|
-
moduleSpecifier: '@taiga-ui/proprietary',
|
876
|
-
},
|
877
|
-
},
|
878
|
-
{
|
879
|
-
from: {
|
880
|
-
name: 'TuiProprietaryRoot2023Module',
|
881
904
|
moduleSpecifier: '@taiga-ui/proprietary-core',
|
882
905
|
},
|
883
906
|
to: {
|
884
|
-
name: '
|
885
|
-
moduleSpecifier: '@taiga-ui/
|
907
|
+
name: 'TuiConfirm',
|
908
|
+
moduleSpecifier: '@taiga-ui/kit',
|
886
909
|
},
|
887
910
|
},
|
888
911
|
{
|
@@ -908,11 +931,22 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
908
931
|
{
|
909
932
|
from: {
|
910
933
|
name: 'TuiNavigationModule',
|
911
|
-
moduleSpecifier: '@taiga-ui/
|
934
|
+
moduleSpecifier: '@taiga-ui/experimental',
|
912
935
|
},
|
913
936
|
to: {
|
914
|
-
name: '
|
915
|
-
moduleSpecifier: '@taiga-ui/
|
937
|
+
name: 'TuiNavigation',
|
938
|
+
moduleSpecifier: '@taiga-ui/layout',
|
939
|
+
spreadInModule: true,
|
940
|
+
},
|
941
|
+
},
|
942
|
+
{
|
943
|
+
from: {
|
944
|
+
name: 'TuiSegmentedModule',
|
945
|
+
moduleSpecifier: '@taiga-ui/experimental',
|
946
|
+
},
|
947
|
+
to: {
|
948
|
+
name: 'TuiSegmented',
|
949
|
+
moduleSpecifier: '@taiga-ui/kit',
|
916
950
|
},
|
917
951
|
},
|
918
952
|
{
|
@@ -1085,6 +1119,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1085
1119
|
to: {
|
1086
1120
|
name: 'TuiTableFilters',
|
1087
1121
|
moduleSpecifier: '@taiga-ui/addon-table',
|
1122
|
+
spreadInModule: true,
|
1088
1123
|
},
|
1089
1124
|
},
|
1090
1125
|
{
|
@@ -1104,7 +1139,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1104
1139
|
},
|
1105
1140
|
to: {
|
1106
1141
|
name: 'TuiArrowComponent',
|
1107
|
-
moduleSpecifier: '@taiga-ui/
|
1142
|
+
moduleSpecifier: '@taiga-ui/legacy',
|
1108
1143
|
},
|
1109
1144
|
},
|
1110
1145
|
{
|
@@ -1135,6 +1170,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1135
1170
|
to: {
|
1136
1171
|
name: 'TuiTable',
|
1137
1172
|
moduleSpecifier: '@taiga-ui/addon-table',
|
1173
|
+
spreadInModule: true,
|
1138
1174
|
},
|
1139
1175
|
},
|
1140
1176
|
{
|
@@ -1167,6 +1203,16 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1167
1203
|
moduleSpecifier: '@taiga-ui/addon-doc',
|
1168
1204
|
},
|
1169
1205
|
},
|
1206
|
+
{
|
1207
|
+
from: {
|
1208
|
+
name: 'TuiPromptData',
|
1209
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1210
|
+
},
|
1211
|
+
to: {
|
1212
|
+
name: 'TuiConfirmData',
|
1213
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1214
|
+
},
|
1215
|
+
},
|
1170
1216
|
{
|
1171
1217
|
from: {
|
1172
1218
|
name: 'TuiAppBarModule',
|
@@ -1175,6 +1221,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1175
1221
|
to: {
|
1176
1222
|
name: 'TuiAppBar',
|
1177
1223
|
moduleSpecifier: '@taiga-ui/layout',
|
1224
|
+
spreadInModule: true,
|
1178
1225
|
},
|
1179
1226
|
},
|
1180
1227
|
{
|
@@ -1205,6 +1252,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1205
1252
|
to: {
|
1206
1253
|
name: 'TuiPreview',
|
1207
1254
|
moduleSpecifier: '@taiga-ui/kit',
|
1255
|
+
spreadInModule: true,
|
1208
1256
|
},
|
1209
1257
|
},
|
1210
1258
|
{
|
@@ -1215,6 +1263,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1215
1263
|
to: {
|
1216
1264
|
name: 'TuiBlockStatus',
|
1217
1265
|
moduleSpecifier: '@taiga-ui/layout',
|
1266
|
+
spreadInModule: true,
|
1218
1267
|
},
|
1219
1268
|
},
|
1220
1269
|
{
|
@@ -1222,9 +1271,52 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1222
1271
|
name: 'TuiTabBarModule',
|
1223
1272
|
moduleSpecifier: '@taiga-ui/addon-mobile',
|
1224
1273
|
},
|
1274
|
+
to: {
|
1275
|
+
name: 'TuiTabBar',
|
1276
|
+
moduleSpecifier: '@taiga-ui/addon-mobile',
|
1277
|
+
spreadInModule: true,
|
1278
|
+
},
|
1279
|
+
},
|
1280
|
+
{
|
1281
|
+
from: {
|
1282
|
+
name: 'TuiSidebarModule',
|
1283
|
+
moduleSpecifier: '@taiga-ui/addon-mobile',
|
1284
|
+
},
|
1225
1285
|
to: {
|
1226
1286
|
name: 'TuiSidebar',
|
1227
1287
|
moduleSpecifier: '@taiga-ui/addon-mobile',
|
1288
|
+
spreadInModule: true,
|
1289
|
+
},
|
1290
|
+
},
|
1291
|
+
{
|
1292
|
+
from: {
|
1293
|
+
name: 'TuiProgressModule',
|
1294
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1295
|
+
},
|
1296
|
+
to: {
|
1297
|
+
name: 'TuiProgress',
|
1298
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1299
|
+
spreadInModule: true,
|
1300
|
+
},
|
1301
|
+
},
|
1302
|
+
{
|
1303
|
+
from: {
|
1304
|
+
name: 'TuiRadioListModule',
|
1305
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1306
|
+
},
|
1307
|
+
to: {
|
1308
|
+
name: 'TuiRadioList',
|
1309
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1310
|
+
},
|
1311
|
+
},
|
1312
|
+
{
|
1313
|
+
from: {
|
1314
|
+
name: 'TuiInputFilesModule',
|
1315
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1316
|
+
},
|
1317
|
+
to: {
|
1318
|
+
name: 'TuiInputFiles',
|
1319
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1228
1320
|
},
|
1229
1321
|
},
|
1230
1322
|
{
|
@@ -1257,6 +1349,26 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1257
1349
|
moduleSpecifier: '@taiga-ui/kit',
|
1258
1350
|
},
|
1259
1351
|
},
|
1352
|
+
{
|
1353
|
+
from: {
|
1354
|
+
name: 'TuiPreviewDialogService',
|
1355
|
+
moduleSpecifier: '@taiga-ui/addon-preview',
|
1356
|
+
},
|
1357
|
+
to: {
|
1358
|
+
name: 'TuiPreviewDialogService',
|
1359
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1360
|
+
},
|
1361
|
+
},
|
1362
|
+
{
|
1363
|
+
from: {
|
1364
|
+
name: 'PolymorpheusModule',
|
1365
|
+
moduleSpecifier: '@tinkoff/ng-polymorpheus',
|
1366
|
+
},
|
1367
|
+
to: [
|
1368
|
+
{ name: 'PolymorpheusTemplate', moduleSpecifier: '@taiga-ui/polymorpheus' },
|
1369
|
+
{ name: 'PolymorpheusOutlet', moduleSpecifier: '@taiga-ui/polymorpheus' },
|
1370
|
+
],
|
1371
|
+
},
|
1260
1372
|
{
|
1261
1373
|
from: {
|
1262
1374
|
name: 'tuiDefaultSort',
|
@@ -1267,6 +1379,16 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1267
1379
|
moduleSpecifier: '@taiga-ui/cdk',
|
1268
1380
|
},
|
1269
1381
|
},
|
1382
|
+
{
|
1383
|
+
from: {
|
1384
|
+
name: 'AbstractTuiControl',
|
1385
|
+
moduleSpecifier: '@taiga-ui/cdk',
|
1386
|
+
},
|
1387
|
+
to: {
|
1388
|
+
name: 'AbstractTuiControl',
|
1389
|
+
moduleSpecifier: '@taiga-ui/legacy',
|
1390
|
+
},
|
1391
|
+
},
|
1270
1392
|
{
|
1271
1393
|
from: {
|
1272
1394
|
name: 'TuiNavigationModule',
|
@@ -1305,6 +1427,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1305
1427
|
to: {
|
1306
1428
|
name: 'TuiHint',
|
1307
1429
|
moduleSpecifier: '@taiga-ui/core',
|
1430
|
+
spreadInModule: true,
|
1308
1431
|
},
|
1309
1432
|
},
|
1310
1433
|
{
|
@@ -1315,6 +1438,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1315
1438
|
to: {
|
1316
1439
|
name: 'TuiAddonDoc',
|
1317
1440
|
moduleSpecifier: '@taiga-ui/addon-doc',
|
1441
|
+
spreadInModule: true,
|
1318
1442
|
},
|
1319
1443
|
},
|
1320
1444
|
{
|
@@ -2125,6 +2249,16 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
2125
2249
|
moduleSpecifier: '@taiga-ui/legacy',
|
2126
2250
|
},
|
2127
2251
|
},
|
2252
|
+
{
|
2253
|
+
from: {
|
2254
|
+
name: 'TuiMultiSelectComponent',
|
2255
|
+
moduleSpecifier: '@taiga-ui/kit',
|
2256
|
+
},
|
2257
|
+
to: {
|
2258
|
+
name: 'TuiMultiSelectComponent',
|
2259
|
+
moduleSpecifier: '@taiga-ui/legacy',
|
2260
|
+
},
|
2261
|
+
},
|
2128
2262
|
{
|
2129
2263
|
from: {
|
2130
2264
|
name: 'TuiMultiSelectOptions',
|
@@ -9,4 +9,5 @@ tslib_1.__exportStar(require("./identifiers-to-replace"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./inputs-to-remove"), exports);
|
10
10
|
tslib_1.__exportStar(require("./migration-warnings"), exports);
|
11
11
|
tslib_1.__exportStar(require("./modules-to-remove"), exports);
|
12
|
+
tslib_1.__exportStar(require("./services"), exports);
|
12
13
|
tslib_1.__exportStar(require("./tags-to-replace"), exports);
|
@@ -14,6 +14,14 @@ exports.MODULES_TO_REMOVE = [
|
|
14
14
|
name: 'TuiFocusableModule',
|
15
15
|
moduleSpecifier: '@taiga-ui/cdk',
|
16
16
|
},
|
17
|
+
{
|
18
|
+
name: 'TuiPromptDialogModule',
|
19
|
+
moduleSpecifier: '@taiga-ui/proprietary-core',
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'TuiThemeTinkoff2023NightModule',
|
23
|
+
moduleSpecifier: '@taiga-ui/proprietary-core',
|
24
|
+
},
|
17
25
|
{
|
18
26
|
name: 'TuiOverscrollModule',
|
19
27
|
moduleSpecifier: '@taiga-ui/cdk',
|
@@ -1,12 +1,13 @@
|
|
1
|
-
interface
|
1
|
+
export interface ProviderToReplace {
|
2
|
+
name: string;
|
3
|
+
providerSpecifier: string;
|
4
|
+
isFunction?: boolean;
|
5
|
+
}
|
6
|
+
export interface ModuleToReplace {
|
2
7
|
from: {
|
3
8
|
name: string;
|
4
9
|
moduleSpecifier: string;
|
5
10
|
};
|
6
|
-
to:
|
7
|
-
name: string;
|
8
|
-
providerSpecifier: string;
|
9
|
-
};
|
11
|
+
to: ProviderToReplace | ProviderToReplace[];
|
10
12
|
}
|
11
13
|
export declare const MODULES_TO_REPLACE_WITH_PROVIDERS: ModuleToReplace[];
|
12
|
-
export {};
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SERVICES_TO_REPLACE = void 0;
|
4
|
+
exports.SERVICES_TO_REPLACE = [
|
5
|
+
{
|
6
|
+
from: { name: 'TuiDialogFormService', moduleSpecifier: '@taiga-ui/kit' },
|
7
|
+
to: { name: 'TuiConfirmService', moduleSpecifier: '@taiga-ui/kit' },
|
8
|
+
replaceMethods: [
|
9
|
+
{
|
10
|
+
from: 'withPrompt',
|
11
|
+
to: 'withConfirm',
|
12
|
+
},
|
13
|
+
],
|
14
|
+
},
|
15
|
+
];
|
@@ -0,0 +1,56 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.migrateRoot = void 0;
|
4
|
+
const ng_morph_1 = require("ng-morph");
|
5
|
+
const add_unique_import_1 = require("../../../utils/add-unique-import");
|
6
|
+
const colored_log_1 = require("../../../utils/colored-log");
|
7
|
+
const get_named_import_references_1 = require("../../../utils/get-named-import-references");
|
8
|
+
const import_manipulations_1 = require("../../../utils/import-manipulations");
|
9
|
+
function migrateRoot(fileSystem, options) {
|
10
|
+
!options['skip-logs'] &&
|
11
|
+
(0, colored_log_1.infoLog)(`${colored_log_1.SMALL_TAB_SYMBOL}${colored_log_1.REPLACE_SYMBOL} updating TuiRoot`);
|
12
|
+
const refs = [
|
13
|
+
...(0, get_named_import_references_1.getNamedImportReferences)('TuiRootModule', '@taiga-ui/core'),
|
14
|
+
...(0, get_named_import_references_1.getNamedImportReferences)('TuiProprietaryRootModule', '@taiga-ui/proprietary-core'),
|
15
|
+
...(0, get_named_import_references_1.getNamedImportReferences)('TuiProprietaryRoot2023Module', '@taiga-ui/proprietary-core'),
|
16
|
+
];
|
17
|
+
for (const ref of refs) {
|
18
|
+
if (ref.wasForgotten()) {
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
const parent = ref.getParent();
|
22
|
+
if (ng_morph_1.Node.isImportSpecifier(parent)) {
|
23
|
+
(0, import_manipulations_1.removeImport)(parent);
|
24
|
+
(0, add_unique_import_1.addUniqueImport)(parent.getSourceFile().getFilePath(), 'TuiRoot', '@taiga-ui/core');
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
replaceRootIdentifier(ref, fileSystem);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
exports.migrateRoot = migrateRoot;
|
32
|
+
function replaceRootIdentifier(ref, fileSystem) {
|
33
|
+
const callExpression = ref.getParentWhile(ng_morph_1.Node.isCallExpression);
|
34
|
+
if (callExpression &&
|
35
|
+
callExpression.getExpression().getText() === 'importProvidersFrom') {
|
36
|
+
ref.replaceWithText('');
|
37
|
+
addProviders(callExpression, fileSystem);
|
38
|
+
}
|
39
|
+
else {
|
40
|
+
ref.replaceWithText('TuiRoot');
|
41
|
+
}
|
42
|
+
}
|
43
|
+
function addProviders(callExpression, fileSystem) {
|
44
|
+
const array = callExpression.getParentWhile(ng_morph_1.Node.isArrayLiteralExpression);
|
45
|
+
if (!array) {
|
46
|
+
return;
|
47
|
+
}
|
48
|
+
array.addElement('NG_EVENT_PLUGINS');
|
49
|
+
(0, add_unique_import_1.addUniqueImport)(array.getSourceFile().getFilePath(), 'NG_EVENT_PLUGINS', '@taiga-ui/event-plugins');
|
50
|
+
(0, ng_morph_1.getActiveProject)();
|
51
|
+
const proprietary = (0, ng_morph_1.getPackageJsonDependency)(fileSystem.tree, '@taiga-ui/proprietary-core');
|
52
|
+
if (proprietary) {
|
53
|
+
array.addElement('TBANK_PROVIDERS');
|
54
|
+
(0, add_unique_import_1.addUniqueImport)(array.getSourceFile().getFilePath(), 'TBANK_PROVIDERS', '@taiga-ui/proprietary');
|
55
|
+
}
|
56
|
+
}
|
@@ -10,7 +10,6 @@ const templates_1 = require("../../utils/templates");
|
|
10
10
|
const replace_attrs_by_directives_1 = require("../../utils/templates/replace-attrs-by-directives");
|
11
11
|
const constants_2 = require("./constants");
|
12
12
|
const templates_2 = require("./templates");
|
13
|
-
const migrate_overscroll_1 = require("./templates/migrate-overscroll");
|
14
13
|
function getAction({ action, requiredData, }) {
|
15
14
|
return ({ resource, fileSystem, recorder, }) => action({ resource, fileSystem, recorder, data: requiredData });
|
16
15
|
}
|
@@ -41,7 +40,8 @@ function migrateTemplates(fileSystem, options) {
|
|
41
40
|
templates_2.migrateLabeled,
|
42
41
|
templates_2.migrateProgressSegmented,
|
43
42
|
templates_2.migrateThumbnailCard,
|
44
|
-
|
43
|
+
templates_2.migrateOverscroll,
|
44
|
+
templates_2.migrateLabel,
|
45
45
|
];
|
46
46
|
const progressLog = (0, progress_1.setupProgressLogger)({
|
47
47
|
total: componentWithTemplatesPaths.length,
|
@@ -3,8 +3,10 @@ export * from './migrate-badge';
|
|
3
3
|
export * from './migrate-badged-content';
|
4
4
|
export * from './migrate-expandable';
|
5
5
|
export * from './migrate-focusable';
|
6
|
+
export * from './migrate-label';
|
6
7
|
export * from './migrate-labeled';
|
7
8
|
export * from './migrate-money';
|
9
|
+
export * from './migrate-overscroll';
|
8
10
|
export * from './migrate-prevent-default';
|
9
11
|
export * from './migrate-progress-segmented';
|
10
12
|
export * from './migrate-thumbnail-card';
|
@@ -6,8 +6,10 @@ tslib_1.__exportStar(require("./migrate-badge"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./migrate-badged-content"), exports);
|
7
7
|
tslib_1.__exportStar(require("./migrate-expandable"), exports);
|
8
8
|
tslib_1.__exportStar(require("./migrate-focusable"), exports);
|
9
|
+
tslib_1.__exportStar(require("./migrate-label"), exports);
|
9
10
|
tslib_1.__exportStar(require("./migrate-labeled"), exports);
|
10
11
|
tslib_1.__exportStar(require("./migrate-money"), exports);
|
12
|
+
tslib_1.__exportStar(require("./migrate-overscroll"), exports);
|
11
13
|
tslib_1.__exportStar(require("./migrate-prevent-default"), exports);
|
12
14
|
tslib_1.__exportStar(require("./migrate-progress-segmented"), exports);
|
13
15
|
tslib_1.__exportStar(require("./migrate-thumbnail-card"), exports);
|