@taiga-ui/cdk 4.0.0-rc.5 → 4.0.0-rc.7
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/directives/auto-focus/autofocus.options.mjs +3 -3
- package/esm2022/directives/copy-processor/copy-processor.directive.mjs +3 -3
- package/esm2022/directives/high-dpi/high-dpi.directive.mjs +3 -3
- package/esm2022/directives/obscured/obscured.service.mjs +3 -3
- package/esm2022/services/scroll.service.mjs +4 -4
- package/esm2022/tokens/active-element.mjs +3 -3
- package/esm2022/tokens/environment.mjs +15 -7
- package/esm2022/tokens/removed-element.mjs +3 -3
- package/esm2022/tokens/window-size.mjs +3 -3
- 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-directives-auto-focus.mjs +2 -2
- package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +2 -2
- package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +2 -2
- package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +2 -2
- package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-services.mjs +3 -3
- package/fesm2022/taiga-ui-cdk-services.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-tokens.mjs +19 -12
- package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
- package/package.json +5 -5
- package/schematics/ng-update/interfaces/replacement-type.d.ts +4 -0
- package/schematics/ng-update/steps/rename-types.js +6 -2
- package/schematics/ng-update/steps/replace-identifier.js +9 -1
- package/schematics/ng-update/steps/replace-package-name.js +4 -5
- package/schematics/ng-update/v4/index.js +1 -0
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js +5 -5
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +3 -2
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +2 -1
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +53 -18
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +288 -25
- package/schematics/ng-update/v4/steps/constants/modules-to-remove.js +12 -0
- package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +11 -0
- package/schematics/ng-update/v4/steps/constants/types.js +4 -1
- package/schematics/ng-update/v4/steps/migrate-styles.js +7 -1
- package/schematics/ng-update/v4/steps/migrate-templates.js +5 -2
- package/schematics/ng-update/v4/steps/templates/index.d.ts +3 -0
- package/schematics/ng-update/v4/steps/templates/index.js +3 -0
- package/schematics/ng-update/v4/steps/templates/migrate-badge.js +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +34 -0
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.d.ts +8 -0
- package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +41 -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 +2 -4
- package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +35 -0
- 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
@@ -66,6 +66,10 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
66
66
|
from: { name: 'TUI_DIGIT_REGEXP', moduleSpecifier: '@taiga-ui/core' },
|
67
67
|
to: { name: 'TUI_DIGIT_REGEXP', moduleSpecifier: '@taiga-ui/cdk' },
|
68
68
|
},
|
69
|
+
{
|
70
|
+
from: { name: 'tuiCapitalizeFirstLetter', moduleSpecifier: '@taiga-ui/core' },
|
71
|
+
to: { name: 'tuiCapitalizeFirstLetter', moduleSpecifier: '@taiga-ui/legacy' },
|
72
|
+
},
|
69
73
|
{
|
70
74
|
from: { name: 'TUI_NON_DIGIT_REGEXP', moduleSpecifier: '@taiga-ui/core' },
|
71
75
|
to: { name: 'TUI_NON_DIGIT_REGEXP', moduleSpecifier: '@taiga-ui/cdk' },
|
@@ -82,6 +86,14 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
82
86
|
from: { name: 'TuiNotificationModule', moduleSpecifier: '@taiga-ui/core' },
|
83
87
|
to: { name: 'TuiNotification', moduleSpecifier: '@taiga-ui/core' },
|
84
88
|
},
|
89
|
+
{
|
90
|
+
from: { name: 'TuiNotificationT', moduleSpecifier: '@taiga-ui/core' },
|
91
|
+
to: { name: 'TuiNotificationStatus', moduleSpecifier: '@taiga-ui/core' },
|
92
|
+
},
|
93
|
+
{
|
94
|
+
from: { name: 'TuiFormatPhonePipe', moduleSpecifier: '@taiga-ui/core' },
|
95
|
+
to: { name: 'TuiFormatPhonePipe', moduleSpecifier: '@taiga-ui/legacy' },
|
96
|
+
},
|
85
97
|
{
|
86
98
|
from: { name: 'TuiCalendarModule', moduleSpecifier: '@taiga-ui/core' },
|
87
99
|
to: { name: 'TuiCalendar', moduleSpecifier: '@taiga-ui/core' },
|
@@ -128,11 +140,19 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
128
140
|
},
|
129
141
|
{
|
130
142
|
from: { name: 'TuiDataListModule', moduleSpecifier: '@taiga-ui/core' },
|
131
|
-
to: {
|
143
|
+
to: {
|
144
|
+
name: 'TuiDataList',
|
145
|
+
moduleSpecifier: '@taiga-ui/core',
|
146
|
+
spreadInModule: true,
|
147
|
+
},
|
132
148
|
},
|
133
149
|
{
|
134
150
|
from: { name: 'TuiDataListWrapperModule', moduleSpecifier: '@taiga-ui/kit' },
|
135
|
-
to: {
|
151
|
+
to: {
|
152
|
+
name: 'TuiDataListWrapper',
|
153
|
+
moduleSpecifier: '@taiga-ui/kit',
|
154
|
+
spreadInModule: true,
|
155
|
+
},
|
136
156
|
},
|
137
157
|
{
|
138
158
|
from: { name: 'TuiErrorModule', moduleSpecifier: '@taiga-ui/core' },
|
@@ -140,7 +160,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
140
160
|
},
|
141
161
|
{
|
142
162
|
from: { name: 'TuiExpandModule', moduleSpecifier: '@taiga-ui/core' },
|
143
|
-
to: { name: 'TuiExpand', moduleSpecifier: '@taiga-ui/core' },
|
163
|
+
to: { name: 'TuiExpand', moduleSpecifier: '@taiga-ui/core', spreadInModule: true },
|
144
164
|
},
|
145
165
|
{
|
146
166
|
from: { name: 'TuiLoaderModule', moduleSpecifier: '@taiga-ui/core' },
|
@@ -148,7 +168,11 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
148
168
|
},
|
149
169
|
{
|
150
170
|
from: { name: 'TuiAccordionModule', moduleSpecifier: '@taiga-ui/kit' },
|
151
|
-
to: {
|
171
|
+
to: {
|
172
|
+
name: 'TuiAccordion',
|
173
|
+
moduleSpecifier: '@taiga-ui/kit',
|
174
|
+
spreadInModule: true,
|
175
|
+
},
|
152
176
|
},
|
153
177
|
{
|
154
178
|
from: { name: 'TuiBreadcrumbsModule', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -167,7 +191,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
167
191
|
},
|
168
192
|
{
|
169
193
|
from: { name: 'TuiCarouselModule', moduleSpecifier: '@taiga-ui/kit' },
|
170
|
-
to: { name: 'TuiCarousel', moduleSpecifier: '@taiga-ui/kit' },
|
194
|
+
to: { name: 'TuiCarousel', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
171
195
|
},
|
172
196
|
{
|
173
197
|
from: { name: 'TuiPushModule', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -182,7 +206,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
182
206
|
},
|
183
207
|
{
|
184
208
|
from: { name: 'TuiFilesModule', moduleSpecifier: '@taiga-ui/kit' },
|
185
|
-
to: { name: 'TuiFiles', moduleSpecifier: '@taiga-ui/kit' },
|
209
|
+
to: { name: 'TuiFiles', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
186
210
|
},
|
187
211
|
{
|
188
212
|
from: { name: 'TuiFilterModule', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -202,7 +226,11 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
202
226
|
},
|
203
227
|
{
|
204
228
|
from: { name: 'TuiItemsWithMoreModule', moduleSpecifier: '@taiga-ui/kit' },
|
205
|
-
to: {
|
229
|
+
to: {
|
230
|
+
name: 'TuiItemsWithMore',
|
231
|
+
moduleSpecifier: '@taiga-ui/kit',
|
232
|
+
spreadInModule: true,
|
233
|
+
},
|
206
234
|
},
|
207
235
|
{
|
208
236
|
from: { name: 'TuiLineClampModule', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -214,19 +242,19 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
214
242
|
},
|
215
243
|
{
|
216
244
|
from: { name: 'TuiSliderModule', moduleSpecifier: '@taiga-ui/kit' },
|
217
|
-
to: { name: 'TuiSlider', moduleSpecifier: '@taiga-ui/kit' },
|
245
|
+
to: { name: 'TuiSlider', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
218
246
|
},
|
219
247
|
{
|
220
248
|
from: { name: 'TuiTilesModule', moduleSpecifier: '@taiga-ui/kit' },
|
221
|
-
to: { name: 'TuiTiles', moduleSpecifier: '@taiga-ui/kit' },
|
249
|
+
to: { name: 'TuiTiles', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
222
250
|
},
|
223
251
|
{
|
224
252
|
from: { name: 'TuiStepperModule', moduleSpecifier: '@taiga-ui/kit' },
|
225
|
-
to: { name: 'TuiStepper', moduleSpecifier: '@taiga-ui/kit' },
|
253
|
+
to: { name: 'TuiStepper', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
226
254
|
},
|
227
255
|
{
|
228
256
|
from: { name: 'TuiTreeModule', moduleSpecifier: '@taiga-ui/kit' },
|
229
|
-
to: { name: 'TuiTree', moduleSpecifier: '@taiga-ui/kit' },
|
257
|
+
to: { name: 'TuiTree', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
230
258
|
},
|
231
259
|
{
|
232
260
|
from: {
|
@@ -359,6 +387,10 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
359
387
|
from: { name: 'TuiCheckboxModule', moduleSpecifier: '@taiga-ui/kit' },
|
360
388
|
to: { name: 'TuiCheckbox', moduleSpecifier: '@taiga-ui/kit' },
|
361
389
|
},
|
390
|
+
{
|
391
|
+
from: { name: 'TuiPrimitiveCheckboxModule', moduleSpecifier: '@taiga-ui/core' },
|
392
|
+
to: { name: 'TuiCheckbox', moduleSpecifier: '@taiga-ui/kit' },
|
393
|
+
},
|
362
394
|
{
|
363
395
|
from: { name: 'TuiSwipeActionsModule', moduleSpecifier: '@taiga-ui/experimental' },
|
364
396
|
to: [
|
@@ -368,12 +400,20 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
368
400
|
},
|
369
401
|
{
|
370
402
|
from: { name: 'TuiRadioModule', moduleSpecifier: '@taiga-ui/experimental' },
|
371
|
-
to: { name: 'TuiRadio', moduleSpecifier: '@taiga-ui/kit' },
|
403
|
+
to: { name: 'TuiRadio', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
404
|
+
},
|
405
|
+
{
|
406
|
+
from: { name: 'TuiRadioModule', moduleSpecifier: '@taiga-ui/core' },
|
407
|
+
to: { name: 'TuiRadio', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
372
408
|
},
|
373
409
|
{
|
374
410
|
from: { name: 'TuiAvatarModule', moduleSpecifier: '@taiga-ui/experimental' },
|
375
411
|
to: { name: 'TuiAvatar', moduleSpecifier: '@taiga-ui/kit' },
|
376
412
|
},
|
413
|
+
{
|
414
|
+
from: { name: 'TuiAvatarModule', moduleSpecifier: '@taiga-ui/kit' },
|
415
|
+
to: { name: 'TuiAvatar', moduleSpecifier: '@taiga-ui/kit' },
|
416
|
+
},
|
377
417
|
{
|
378
418
|
from: { name: 'TuiToggleModule', moduleSpecifier: '@taiga-ui/experimental' },
|
379
419
|
to: { name: 'TuiSwitch', moduleSpecifier: '@taiga-ui/kit' },
|
@@ -382,6 +422,10 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
382
422
|
from: { name: 'TuiToggleModule', moduleSpecifier: '@taiga-ui/kit' },
|
383
423
|
to: { name: 'TuiSwitch', moduleSpecifier: '@taiga-ui/kit' },
|
384
424
|
},
|
425
|
+
{
|
426
|
+
from: { name: 'TuiToggleComponent', moduleSpecifier: '@taiga-ui/kit' },
|
427
|
+
to: { name: 'TuiSwitch', moduleSpecifier: '@taiga-ui/kit' },
|
428
|
+
},
|
385
429
|
{
|
386
430
|
from: { name: 'TuiTextAreaModule', moduleSpecifier: '@taiga-ui/kit' },
|
387
431
|
to: { name: 'TuiTextareaModule', moduleSpecifier: '@taiga-ui/legacy' },
|
@@ -396,11 +440,19 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
396
440
|
},
|
397
441
|
{
|
398
442
|
from: { name: 'TuiBadgedContentModule', moduleSpecifier: '@taiga-ui/experimental' },
|
399
|
-
to: {
|
443
|
+
to: {
|
444
|
+
name: 'TuiBadgedContent',
|
445
|
+
moduleSpecifier: '@taiga-ui/kit',
|
446
|
+
spreadInModule: true,
|
447
|
+
},
|
400
448
|
},
|
401
449
|
{
|
402
450
|
from: { name: 'TuiBadgedContentModule', moduleSpecifier: '@taiga-ui/kit' },
|
403
|
-
to: {
|
451
|
+
to: {
|
452
|
+
name: 'TuiBadgedContent',
|
453
|
+
moduleSpecifier: '@taiga-ui/kit',
|
454
|
+
spreadInModule: true,
|
455
|
+
},
|
404
456
|
},
|
405
457
|
{
|
406
458
|
from: {
|
@@ -501,7 +553,11 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
501
553
|
},
|
502
554
|
{
|
503
555
|
from: { name: 'TuiDropdownModule', moduleSpecifier: '@taiga-ui/core' },
|
504
|
-
to: {
|
556
|
+
to: {
|
557
|
+
name: 'TuiDropdown',
|
558
|
+
moduleSpecifier: '@taiga-ui/core',
|
559
|
+
spreadInModule: true,
|
560
|
+
},
|
505
561
|
},
|
506
562
|
{
|
507
563
|
from: { name: 'TuiDroppableModule', moduleSpecifier: '@taiga-ui/cdk' },
|
@@ -522,7 +578,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
522
578
|
{
|
523
579
|
from: { name: 'TuiResizeModule', moduleSpecifier: '@taiga-ui/cdk' },
|
524
580
|
to: {
|
525
|
-
name: '
|
581
|
+
name: 'WaResizeObserver',
|
526
582
|
moduleSpecifier: '@ng-web-apis/resize-observer',
|
527
583
|
},
|
528
584
|
},
|
@@ -605,6 +661,14 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
605
661
|
from: { name: 'TuiIconModule', moduleSpecifier: '@taiga-ui/experimental' },
|
606
662
|
to: { name: 'TuiIcon', moduleSpecifier: '@taiga-ui/core' },
|
607
663
|
},
|
664
|
+
{
|
665
|
+
from: { name: 'TuiCheckboxComponent', moduleSpecifier: '@taiga-ui/kit' },
|
666
|
+
to: { name: 'TuiCheckbox', moduleSpecifier: '@taiga-ui/kit' },
|
667
|
+
},
|
668
|
+
{
|
669
|
+
from: { name: 'TuiCheckboxLabeledComponent', moduleSpecifier: '@taiga-ui/kit' },
|
670
|
+
to: { name: 'TuiCheckbox', moduleSpecifier: '@taiga-ui/kit' },
|
671
|
+
},
|
608
672
|
{
|
609
673
|
from: { name: 'TuiCheckboxLabeledModule', moduleSpecifier: '@taiga-ui/kit' },
|
610
674
|
to: { name: 'TuiLabel', moduleSpecifier: '@taiga-ui/core' },
|
@@ -613,13 +677,35 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
613
677
|
from: { name: 'TuiRadioLabeledModule', moduleSpecifier: '@taiga-ui/kit' },
|
614
678
|
to: { name: 'TuiLabel', moduleSpecifier: '@taiga-ui/core' },
|
615
679
|
},
|
680
|
+
{
|
681
|
+
from: { name: 'TuiRadioLabeledComponent', moduleSpecifier: '@taiga-ui/kit' },
|
682
|
+
to: { name: 'TuiRadioComponent', moduleSpecifier: '@taiga-ui/kit' },
|
683
|
+
},
|
684
|
+
{
|
685
|
+
from: { name: 'TuiCheckboxBlockModule', moduleSpecifier: '@taiga-ui/kit' },
|
686
|
+
to: [
|
687
|
+
{ name: 'TuiBlock', moduleSpecifier: '@taiga-ui/kit' },
|
688
|
+
{ name: 'TuiCheckbox', moduleSpecifier: '@taiga-ui/kit' },
|
689
|
+
],
|
690
|
+
},
|
691
|
+
{
|
692
|
+
from: { name: 'TuiRadioBlockModule', moduleSpecifier: '@taiga-ui/kit' },
|
693
|
+
to: [
|
694
|
+
{ name: 'TuiBlock', moduleSpecifier: '@taiga-ui/kit' },
|
695
|
+
{ name: 'TuiRadio', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
696
|
+
],
|
697
|
+
},
|
616
698
|
{
|
617
699
|
from: { name: 'TuiTabsModule', moduleSpecifier: '@taiga-ui/kit' },
|
618
|
-
to: { name: 'TuiTabs', moduleSpecifier: '@taiga-ui/kit' },
|
700
|
+
to: { name: 'TuiTabs', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
619
701
|
},
|
620
702
|
{
|
621
703
|
from: { name: 'TuiHostedDropdownModule', moduleSpecifier: '@taiga-ui/core' },
|
622
|
-
to: {
|
704
|
+
to: {
|
705
|
+
name: 'TuiDropdown',
|
706
|
+
moduleSpecifier: '@taiga-ui/core',
|
707
|
+
spreadInModule: true,
|
708
|
+
},
|
623
709
|
},
|
624
710
|
{
|
625
711
|
from: { name: 'TuiTitleModule', moduleSpecifier: '@taiga-ui/experimental' },
|
@@ -659,7 +745,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
659
745
|
},
|
660
746
|
{
|
661
747
|
from: { name: 'TuiSvgModule', moduleSpecifier: '@taiga-ui/core' },
|
662
|
-
to: { name: '
|
748
|
+
to: { name: 'TuiIcon', moduleSpecifier: '@taiga-ui/core' },
|
663
749
|
},
|
664
750
|
{
|
665
751
|
from: { name: 'TuiCellModule', moduleSpecifier: '@taiga-ui/experimental' },
|
@@ -744,6 +830,16 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
744
830
|
moduleSpecifier: '@taiga-ui/core',
|
745
831
|
},
|
746
832
|
},
|
833
|
+
{
|
834
|
+
from: {
|
835
|
+
name: 'tuiButtonOptionsProvider',
|
836
|
+
moduleSpecifier: '@taiga-ui/experimental',
|
837
|
+
},
|
838
|
+
to: {
|
839
|
+
name: 'tuiButtonOptionsProvider',
|
840
|
+
moduleSpecifier: '@taiga-ui/core',
|
841
|
+
},
|
842
|
+
},
|
747
843
|
{
|
748
844
|
from: { name: 'TuiLetModule', moduleSpecifier: '@taiga-ui/cdk' },
|
749
845
|
to: { name: 'TuiLet', moduleSpecifier: '@taiga-ui/cdk' },
|
@@ -860,12 +956,12 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
860
956
|
},
|
861
957
|
{
|
862
958
|
from: {
|
863
|
-
name: '
|
959
|
+
name: 'TuiPromptDialogComponent',
|
864
960
|
moduleSpecifier: '@taiga-ui/proprietary-core',
|
865
961
|
},
|
866
962
|
to: {
|
867
|
-
name: '
|
868
|
-
moduleSpecifier: '@taiga-ui/
|
963
|
+
name: 'TuiConfirm',
|
964
|
+
moduleSpecifier: '@taiga-ui/kit',
|
869
965
|
},
|
870
966
|
},
|
871
967
|
{
|
@@ -891,11 +987,22 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
891
987
|
{
|
892
988
|
from: {
|
893
989
|
name: 'TuiNavigationModule',
|
894
|
-
moduleSpecifier: '@taiga-ui/
|
990
|
+
moduleSpecifier: '@taiga-ui/experimental',
|
895
991
|
},
|
896
992
|
to: {
|
897
|
-
name: '
|
898
|
-
moduleSpecifier: '@taiga-ui/
|
993
|
+
name: 'TuiNavigation',
|
994
|
+
moduleSpecifier: '@taiga-ui/layout',
|
995
|
+
spreadInModule: true,
|
996
|
+
},
|
997
|
+
},
|
998
|
+
{
|
999
|
+
from: {
|
1000
|
+
name: 'TuiSegmentedModule',
|
1001
|
+
moduleSpecifier: '@taiga-ui/experimental',
|
1002
|
+
},
|
1003
|
+
to: {
|
1004
|
+
name: 'TuiSegmented',
|
1005
|
+
moduleSpecifier: '@taiga-ui/kit',
|
899
1006
|
},
|
900
1007
|
},
|
901
1008
|
{
|
@@ -1068,6 +1175,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1068
1175
|
to: {
|
1069
1176
|
name: 'TuiTableFilters',
|
1070
1177
|
moduleSpecifier: '@taiga-ui/addon-table',
|
1178
|
+
spreadInModule: true,
|
1071
1179
|
},
|
1072
1180
|
},
|
1073
1181
|
{
|
@@ -1118,6 +1226,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1118
1226
|
to: {
|
1119
1227
|
name: 'TuiTable',
|
1120
1228
|
moduleSpecifier: '@taiga-ui/addon-table',
|
1229
|
+
spreadInModule: true,
|
1121
1230
|
},
|
1122
1231
|
},
|
1123
1232
|
{
|
@@ -1168,6 +1277,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1168
1277
|
to: {
|
1169
1278
|
name: 'TuiAppBar',
|
1170
1279
|
moduleSpecifier: '@taiga-ui/layout',
|
1280
|
+
spreadInModule: true,
|
1171
1281
|
},
|
1172
1282
|
},
|
1173
1283
|
{
|
@@ -1190,6 +1300,26 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1190
1300
|
moduleSpecifier: '@taiga-ui/kit',
|
1191
1301
|
},
|
1192
1302
|
},
|
1303
|
+
{
|
1304
|
+
from: {
|
1305
|
+
name: 'TuiButtonGroupModule',
|
1306
|
+
moduleSpecifier: '@taiga-ui/experimental',
|
1307
|
+
},
|
1308
|
+
to: {
|
1309
|
+
name: 'TuiButtonGroup',
|
1310
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1311
|
+
},
|
1312
|
+
},
|
1313
|
+
{
|
1314
|
+
from: {
|
1315
|
+
name: 'TuiButtonVerticalModule',
|
1316
|
+
moduleSpecifier: '@taiga-ui/experimental',
|
1317
|
+
},
|
1318
|
+
to: {
|
1319
|
+
name: 'TuiButtonVertical',
|
1320
|
+
moduleSpecifier: '@taiga-ui/kit',
|
1321
|
+
},
|
1322
|
+
},
|
1193
1323
|
{
|
1194
1324
|
from: {
|
1195
1325
|
name: 'TuiPreviewModule',
|
@@ -1198,6 +1328,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1198
1328
|
to: {
|
1199
1329
|
name: 'TuiPreview',
|
1200
1330
|
moduleSpecifier: '@taiga-ui/kit',
|
1331
|
+
spreadInModule: true,
|
1201
1332
|
},
|
1202
1333
|
},
|
1203
1334
|
{
|
@@ -1208,6 +1339,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1208
1339
|
to: {
|
1209
1340
|
name: 'TuiBlockStatus',
|
1210
1341
|
moduleSpecifier: '@taiga-ui/layout',
|
1342
|
+
spreadInModule: true,
|
1211
1343
|
},
|
1212
1344
|
},
|
1213
1345
|
{
|
@@ -1218,6 +1350,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1218
1350
|
to: {
|
1219
1351
|
name: 'TuiTabBar',
|
1220
1352
|
moduleSpecifier: '@taiga-ui/addon-mobile',
|
1353
|
+
spreadInModule: true,
|
1221
1354
|
},
|
1222
1355
|
},
|
1223
1356
|
{
|
@@ -1228,6 +1361,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1228
1361
|
to: {
|
1229
1362
|
name: 'TuiSidebar',
|
1230
1363
|
moduleSpecifier: '@taiga-ui/addon-mobile',
|
1364
|
+
spreadInModule: true,
|
1231
1365
|
},
|
1232
1366
|
},
|
1233
1367
|
{
|
@@ -1238,6 +1372,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1238
1372
|
to: {
|
1239
1373
|
name: 'TuiProgress',
|
1240
1374
|
moduleSpecifier: '@taiga-ui/kit',
|
1375
|
+
spreadInModule: true,
|
1241
1376
|
},
|
1242
1377
|
},
|
1243
1378
|
{
|
@@ -1320,6 +1455,16 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1320
1455
|
moduleSpecifier: '@taiga-ui/cdk',
|
1321
1456
|
},
|
1322
1457
|
},
|
1458
|
+
{
|
1459
|
+
from: {
|
1460
|
+
name: 'AbstractTuiControl',
|
1461
|
+
moduleSpecifier: '@taiga-ui/cdk',
|
1462
|
+
},
|
1463
|
+
to: {
|
1464
|
+
name: 'AbstractTuiControl',
|
1465
|
+
moduleSpecifier: '@taiga-ui/legacy',
|
1466
|
+
},
|
1467
|
+
},
|
1323
1468
|
{
|
1324
1469
|
from: {
|
1325
1470
|
name: 'TuiNavigationModule',
|
@@ -1358,6 +1503,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1358
1503
|
to: {
|
1359
1504
|
name: 'TuiHint',
|
1360
1505
|
moduleSpecifier: '@taiga-ui/core',
|
1506
|
+
spreadInModule: true,
|
1361
1507
|
},
|
1362
1508
|
},
|
1363
1509
|
{
|
@@ -1368,6 +1514,7 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
1368
1514
|
to: {
|
1369
1515
|
name: 'TuiAddonDoc',
|
1370
1516
|
moduleSpecifier: '@taiga-ui/addon-doc',
|
1517
|
+
spreadInModule: true,
|
1371
1518
|
},
|
1372
1519
|
},
|
1373
1520
|
{
|
@@ -2178,6 +2325,16 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
2178
2325
|
moduleSpecifier: '@taiga-ui/legacy',
|
2179
2326
|
},
|
2180
2327
|
},
|
2328
|
+
{
|
2329
|
+
from: {
|
2330
|
+
name: 'TuiMultiSelectComponent',
|
2331
|
+
moduleSpecifier: '@taiga-ui/kit',
|
2332
|
+
},
|
2333
|
+
to: {
|
2334
|
+
name: 'TuiMultiSelectComponent',
|
2335
|
+
moduleSpecifier: '@taiga-ui/legacy',
|
2336
|
+
},
|
2337
|
+
},
|
2181
2338
|
{
|
2182
2339
|
from: {
|
2183
2340
|
name: 'TuiMultiSelectOptions',
|
@@ -2338,4 +2495,110 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
2338
2495
|
moduleSpecifier: '@taiga-ui/core',
|
2339
2496
|
},
|
2340
2497
|
},
|
2498
|
+
{
|
2499
|
+
from: {
|
2500
|
+
name: 'ResizeObserverModule',
|
2501
|
+
moduleSpecifier: '@ng-web-apis/resize-observer',
|
2502
|
+
},
|
2503
|
+
to: {
|
2504
|
+
name: 'WaResizeObserver',
|
2505
|
+
moduleSpecifier: '@ng-web-apis/resize-observer',
|
2506
|
+
},
|
2507
|
+
},
|
2508
|
+
{
|
2509
|
+
from: {
|
2510
|
+
name: 'IntersectionObserverModule',
|
2511
|
+
moduleSpecifier: '@ng-web-apis/intersection-observer',
|
2512
|
+
},
|
2513
|
+
to: {
|
2514
|
+
name: 'WaIntersectionObserver',
|
2515
|
+
moduleSpecifier: '@ng-web-apis/intersection-observer',
|
2516
|
+
},
|
2517
|
+
},
|
2518
|
+
{
|
2519
|
+
from: {
|
2520
|
+
name: 'INTERSECTION_THRESHOLD',
|
2521
|
+
moduleSpecifier: '@ng-web-apis/intersection-observer',
|
2522
|
+
},
|
2523
|
+
to: {
|
2524
|
+
name: 'WA_INTERSECTION_THRESHOLD',
|
2525
|
+
moduleSpecifier: '@ng-web-apis/intersection-observer',
|
2526
|
+
},
|
2527
|
+
},
|
2528
|
+
{
|
2529
|
+
from: {
|
2530
|
+
name: 'INTERSECTION_ROOT_MARGIN',
|
2531
|
+
moduleSpecifier: '@ng-web-apis/intersection-observer',
|
2532
|
+
},
|
2533
|
+
to: {
|
2534
|
+
name: 'WA_INTERSECTION_ROOT_MARGIN',
|
2535
|
+
moduleSpecifier: '@ng-web-apis/intersection-observer',
|
2536
|
+
},
|
2537
|
+
},
|
2538
|
+
{
|
2539
|
+
from: {
|
2540
|
+
name: 'INTERSECTION_ROOT',
|
2541
|
+
moduleSpecifier: '@ng-web-apis/intersection-observer',
|
2542
|
+
},
|
2543
|
+
to: {
|
2544
|
+
name: 'WA_INTERSECTION_ROOT',
|
2545
|
+
moduleSpecifier: '@ng-web-apis/intersection-observer',
|
2546
|
+
},
|
2547
|
+
},
|
2548
|
+
{
|
2549
|
+
from: {
|
2550
|
+
name: 'MUTATION_OBSERVER_INIT',
|
2551
|
+
moduleSpecifier: '@ng-web-apis/mutation-observer',
|
2552
|
+
},
|
2553
|
+
to: {
|
2554
|
+
name: 'WA_MUTATION_OBSERVER_INIT',
|
2555
|
+
moduleSpecifier: '@ng-web-apis/mutation-observer',
|
2556
|
+
},
|
2557
|
+
},
|
2558
|
+
{
|
2559
|
+
from: {
|
2560
|
+
name: 'MutationObserverDirective',
|
2561
|
+
moduleSpecifier: '@ng-web-apis/mutation-observer',
|
2562
|
+
},
|
2563
|
+
to: {
|
2564
|
+
name: 'WaMutationObserver',
|
2565
|
+
moduleSpecifier: '@ng-web-apis/mutation-observer',
|
2566
|
+
},
|
2567
|
+
},
|
2568
|
+
{
|
2569
|
+
from: { name: 'WINDOW', moduleSpecifier: '@ng-web-apis/common' },
|
2570
|
+
to: { name: 'WA_WINDOW', moduleSpecifier: '@ng-web-apis/common' },
|
2571
|
+
},
|
2572
|
+
{
|
2573
|
+
from: { name: 'USER_AGENT', moduleSpecifier: '@ng-web-apis/common' },
|
2574
|
+
to: { name: 'WA_USER_AGENT', moduleSpecifier: '@ng-web-apis/common' },
|
2575
|
+
},
|
2576
|
+
{
|
2577
|
+
from: { name: 'NAVIGATOR', moduleSpecifier: '@ng-web-apis/common' },
|
2578
|
+
to: { name: 'WA_NAVIGATOR', moduleSpecifier: '@ng-web-apis/common' },
|
2579
|
+
},
|
2580
|
+
{
|
2581
|
+
from: { name: 'SESSION_STORAGE', moduleSpecifier: '@ng-web-apis/common' },
|
2582
|
+
to: { name: 'WA_SESSION_STORAGE', moduleSpecifier: '@ng-web-apis/common' },
|
2583
|
+
},
|
2584
|
+
{
|
2585
|
+
from: { name: 'PAGE_VISIBILITY', moduleSpecifier: '@ng-web-apis/common' },
|
2586
|
+
to: { name: 'WA_PAGE_VISIBILITY', moduleSpecifier: '@ng-web-apis/common' },
|
2587
|
+
},
|
2588
|
+
{
|
2589
|
+
from: { name: 'LOCATION', moduleSpecifier: '@ng-web-apis/common' },
|
2590
|
+
to: { name: 'WA_LOCATION', moduleSpecifier: '@ng-web-apis/common' },
|
2591
|
+
},
|
2592
|
+
{
|
2593
|
+
from: { name: 'PERFORMANCE', moduleSpecifier: '@ng-web-apis/common' },
|
2594
|
+
to: { name: 'WA_PERFORMANCE', moduleSpecifier: '@ng-web-apis/common' },
|
2595
|
+
},
|
2596
|
+
{
|
2597
|
+
from: { name: 'LOCAL_STORAGE', moduleSpecifier: '@ng-web-apis/common' },
|
2598
|
+
to: { name: 'WA_LOCAL_STORAGE', moduleSpecifier: '@ng-web-apis/common' },
|
2599
|
+
},
|
2600
|
+
{
|
2601
|
+
from: { name: 'ANIMATION_FRAME', moduleSpecifier: '@ng-web-apis/common' },
|
2602
|
+
to: { name: 'WA_ANIMATION_FRAME', moduleSpecifier: '@ng-web-apis/common' },
|
2603
|
+
},
|
2341
2604
|
];
|
@@ -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',
|
@@ -26,4 +34,8 @@ exports.MODULES_TO_REMOVE = [
|
|
26
34
|
name: 'TuiModeModule',
|
27
35
|
moduleSpecifier: '@taiga-ui/core',
|
28
36
|
},
|
37
|
+
{
|
38
|
+
name: 'TuiIconsModule',
|
39
|
+
moduleSpecifier: '@taiga-ui/experimental',
|
40
|
+
},
|
29
41
|
];
|
@@ -4,6 +4,7 @@ exports.TAGS_TO_REPLACE = void 0;
|
|
4
4
|
exports.TAGS_TO_REPLACE = [
|
5
5
|
{ from: 'tui-card', to: 'tui-thumbnail-card' },
|
6
6
|
{ from: 'tui-text-area', to: 'tui-textarea' },
|
7
|
+
{ from: 'tui-svg', to: 'tui-icon' },
|
7
8
|
{
|
8
9
|
from: 'tui-input-count',
|
9
10
|
to: 'tui-input-number',
|
@@ -30,6 +31,16 @@ exports.TAGS_TO_REPLACE = [
|
|
30
31
|
to: 'input',
|
31
32
|
addAttributes: ['tuiRadio', 'type="radio"'],
|
32
33
|
},
|
34
|
+
{
|
35
|
+
from: 'tui-checkbox-block',
|
36
|
+
to: 'input',
|
37
|
+
addAttributes: ['tuiCheckbox', 'type="checkbox"'],
|
38
|
+
},
|
39
|
+
{
|
40
|
+
from: 'tui-radio-block',
|
41
|
+
to: 'input',
|
42
|
+
addAttributes: ['tuiRadio', 'type="radio"'],
|
43
|
+
},
|
33
44
|
{
|
34
45
|
from: 'tui-hosted-dropdown',
|
35
46
|
to: 'div',
|
@@ -4,9 +4,12 @@ exports.TYPES_TO_RENAME = void 0;
|
|
4
4
|
exports.TYPES_TO_RENAME = [
|
5
5
|
{
|
6
6
|
from: 'TuiDocExample',
|
7
|
-
to: 'Record<string,
|
7
|
+
to: 'Record<string, TuiRawLoaderContent>',
|
8
8
|
moduleSpecifier: ['@taiga-ui/addon-doc'],
|
9
9
|
removeImport: true,
|
10
|
+
newImports: [
|
11
|
+
{ name: 'TuiRawLoaderContent', moduleSpecifier: '@taiga-ui/addon-doc' },
|
12
|
+
],
|
10
13
|
},
|
11
14
|
{
|
12
15
|
from: 'TuiBrightness',
|
@@ -13,8 +13,14 @@ function migrateStyles() {
|
|
13
13
|
.replace(/^(.*--tui-rating-size.*)$/gm, `${exports.TUI_RATING_WARNING}\n$1`)
|
14
14
|
// eslint-disable-next-line
|
15
15
|
.replace(/^(.*--tui-rating-gap.*)$/gm, `${exports.TUI_RATING_WARNING}\n$1`)
|
16
|
-
.replaceAll('--tui-link-icon-size', '--tui-icon-size')
|
16
|
+
.replaceAll('--tui-link-icon-size', '--tui-icon-size')
|
17
|
+
.replaceAll('@taiga-ui/proprietary-core/styles/tinkoff-fonts', '@taiga-ui/proprietary/styles/tbank-fonts')
|
18
|
+
.replaceAll('@taiga-ui/proprietary-core/styles/theme-tinkoff-2023', '@taiga-ui/proprietary/styles/tbank-theme')
|
19
|
+
.replaceAll('@taiga-ui/proprietary-core/styles/theme-tinkoff-mobile-2023', '@taiga-ui/proprietary/styles/tbank-theme-mobile.less')
|
20
|
+
.replaceAll('@taiga-ui/proprietary-core/styles/theme-tinkoff-mobile', '@taiga-ui/proprietary/styles/tbank-theme-mobile.less')
|
21
|
+
.replaceAll('@taiga-ui/proprietary-core/styles/theme-tinkoff', '@taiga-ui/proprietary/styles/tbank-theme');
|
17
22
|
sourceFile.replaceWithText(fullText);
|
18
23
|
});
|
24
|
+
(0, ng_morph_1.saveActiveProject)();
|
19
25
|
}
|
20
26
|
exports.migrateStyles = migrateStyles;
|
@@ -10,7 +10,7 @@ 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
|
13
|
+
const migrate_blocked_1 = require("./templates/migrate-blocked");
|
14
14
|
function getAction({ action, requiredData, }) {
|
15
15
|
return ({ resource, fileSystem, recorder, }) => action({ resource, fileSystem, recorder, data: requiredData });
|
16
16
|
}
|
@@ -39,9 +39,12 @@ function migrateTemplates(fileSystem, options) {
|
|
39
39
|
templates_2.migratePreventDefault,
|
40
40
|
templates_2.migrateMoney,
|
41
41
|
templates_2.migrateLabeled,
|
42
|
+
migrate_blocked_1.migrateBlocked,
|
42
43
|
templates_2.migrateProgressSegmented,
|
43
44
|
templates_2.migrateThumbnailCard,
|
44
|
-
|
45
|
+
templates_2.migrateOverscroll,
|
46
|
+
templates_2.migrateButtonAppearance,
|
47
|
+
templates_2.migrateLabel,
|
45
48
|
];
|
46
49
|
const progressLog = (0, progress_1.setupProgressLogger)({
|
47
50
|
total: componentWithTemplatesPaths.length,
|