@taiga-ui/cdk 4.19.0-canary.2c14206 → 4.19.0-canary.6d7616b
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/value-transformer.d.ts +4 -0
- package/constants/allow-signal-writes.d.ts +2 -0
- package/constants/index.d.ts +1 -0
- package/constants/used-icons.d.ts +1 -1
- package/constants/version.d.ts +1 -1
- package/constants/version.js +1 -1
- package/date-time/time.d.ts +1 -0
- package/esm2022/classes/value-transformer.mjs +8 -1
- package/esm2022/constants/allow-signal-writes.mjs +3 -0
- package/esm2022/constants/index.mjs +2 -1
- package/esm2022/constants/used-icons.mjs +2 -2
- package/esm2022/constants/version.mjs +2 -2
- package/esm2022/date-time/time.mjs +14 -17
- package/esm2022/utils/miscellaneous/directive-binding.mjs +4 -8
- package/fesm2022/taiga-ui-cdk-classes.mjs +7 -1
- package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-constants.mjs +6 -4
- package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-date-time.mjs +12 -15
- package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +3 -7
- package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
- package/package.json +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v4/migrate-icons/rename-icons.js +4 -0
- package/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.js +1 -0
- package/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.js +5 -0
- package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +9 -0
- package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +59 -2
- package/schematics/ng-update/v4/steps/migrate-providers-from.js +2 -0
- package/schematics/ng-update/v4/steps/migrate-root.js +3 -1
- package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +2 -1
- package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +3 -1
@@ -295,6 +295,26 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
295
295
|
from: { name: 'TuiTreeModule', moduleSpecifier: '@taiga-ui/kit' },
|
296
296
|
to: { name: 'TuiTree', moduleSpecifier: '@taiga-ui/kit', spreadInModule: true },
|
297
297
|
},
|
298
|
+
{
|
299
|
+
from: { name: 'TuiTreeItemComponent', moduleSpecifier: '@taiga-ui/kit' },
|
300
|
+
to: { name: 'TuiTreeItem', moduleSpecifier: '@taiga-ui/kit' },
|
301
|
+
},
|
302
|
+
{
|
303
|
+
from: { name: 'TuiTreeItemContentComponent', moduleSpecifier: '@taiga-ui/kit' },
|
304
|
+
to: { name: 'TuiTreeItemContent', moduleSpecifier: '@taiga-ui/kit' },
|
305
|
+
},
|
306
|
+
{
|
307
|
+
from: { name: 'TuiTreeChildrenDirective', moduleSpecifier: '@taiga-ui/kit' },
|
308
|
+
to: { name: 'TuiTreeChildren', moduleSpecifier: '@taiga-ui/kit' },
|
309
|
+
},
|
310
|
+
{
|
311
|
+
from: { name: 'TuiTreeItemControllerDirective', moduleSpecifier: '@taiga-ui/kit' },
|
312
|
+
to: { name: 'TuiTreeItemController', moduleSpecifier: '@taiga-ui/kit' },
|
313
|
+
},
|
314
|
+
{
|
315
|
+
from: { name: 'TuiTreeNodeDirective', moduleSpecifier: '@taiga-ui/kit' },
|
316
|
+
to: { name: 'TuiTreeNode', moduleSpecifier: '@taiga-ui/kit' },
|
317
|
+
},
|
298
318
|
{
|
299
319
|
from: {
|
300
320
|
name: 'TuiDataListDropdownManagerModule',
|
@@ -335,7 +355,10 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
335
355
|
},
|
336
356
|
{
|
337
357
|
from: { name: 'TuiFieldErrorPipeModule', moduleSpecifier: '@taiga-ui/kit' },
|
338
|
-
to:
|
358
|
+
to: [
|
359
|
+
{ name: 'TuiFieldErrorPipe', moduleSpecifier: '@taiga-ui/kit' },
|
360
|
+
{ name: 'TuiFieldErrorContentPipe', moduleSpecifier: '@taiga-ui/kit' },
|
361
|
+
],
|
339
362
|
},
|
340
363
|
{
|
341
364
|
from: { name: 'TuiThumbnailCardModule', moduleSpecifier: '@taiga-ui/experimental' },
|
@@ -523,7 +546,10 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
523
546
|
{ name: 'TuiScrollbarModule', moduleSpecifier: '@taiga-ui/core' },
|
524
547
|
{ name: 'TuiScrollbarComponent', moduleSpecifier: '@taiga-ui/core' },
|
525
548
|
],
|
526
|
-
to:
|
549
|
+
to: [
|
550
|
+
{ name: 'TuiScrollbar', moduleSpecifier: '@taiga-ui/core' },
|
551
|
+
{ name: 'TuiScrollable', moduleSpecifier: '@taiga-ui/core' },
|
552
|
+
],
|
527
553
|
},
|
528
554
|
{
|
529
555
|
from: [
|
@@ -716,6 +742,16 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
716
742
|
from: { name: 'TuiChipModule', moduleSpecifier: '@taiga-ui/experimental' },
|
717
743
|
to: { name: 'TuiChip', moduleSpecifier: '@taiga-ui/kit' },
|
718
744
|
},
|
745
|
+
{
|
746
|
+
from: {
|
747
|
+
name: 'TuiTablePagination',
|
748
|
+
moduleSpecifier: '@taiga-ui/addon-table',
|
749
|
+
},
|
750
|
+
to: {
|
751
|
+
name: 'TuiTablePaginationEvent',
|
752
|
+
moduleSpecifier: '@taiga-ui/addon-table',
|
753
|
+
},
|
754
|
+
},
|
719
755
|
{
|
720
756
|
from: {
|
721
757
|
name: 'TuiTablePaginationModule',
|
@@ -726,6 +762,16 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
726
762
|
moduleSpecifier: '@taiga-ui/addon-table',
|
727
763
|
},
|
728
764
|
},
|
765
|
+
{
|
766
|
+
from: {
|
767
|
+
name: 'TuiTablePaginationComponent',
|
768
|
+
moduleSpecifier: '@taiga-ui/addon-table',
|
769
|
+
},
|
770
|
+
to: {
|
771
|
+
name: 'TuiTablePagination',
|
772
|
+
moduleSpecifier: '@taiga-ui/addon-table',
|
773
|
+
},
|
774
|
+
},
|
729
775
|
{
|
730
776
|
from: { name: 'TuiCardModule', moduleSpecifier: '@taiga-ui/experimental' },
|
731
777
|
to: [
|
@@ -2513,4 +2559,15 @@ exports.IDENTIFIERS_TO_REPLACE = [
|
|
2513
2559
|
from: { name: 'TuiObscuredModule', moduleSpecifier: '@taiga-ui/cdk' },
|
2514
2560
|
to: { name: 'TuiObscured', moduleSpecifier: '@taiga-ui/cdk' },
|
2515
2561
|
},
|
2562
|
+
{
|
2563
|
+
from: { name: 'TuiResizerModule', moduleSpecifier: '@taiga-ui/cdk' },
|
2564
|
+
to: [
|
2565
|
+
{ name: 'TuiResizable', moduleSpecifier: '@taiga-ui/cdk' },
|
2566
|
+
{ name: 'TuiResizer', moduleSpecifier: '@taiga-ui/cdk' },
|
2567
|
+
],
|
2568
|
+
},
|
2569
|
+
{
|
2570
|
+
from: { name: 'TuiResizeableDirective', moduleSpecifier: '@taiga-ui/cdk' },
|
2571
|
+
to: { name: 'TuiResizable', moduleSpecifier: '@taiga-ui/cdk' },
|
2572
|
+
},
|
2516
2573
|
];
|
@@ -12,6 +12,8 @@ function migrateImportProvidersFrom(options) {
|
|
12
12
|
...(0, get_named_import_references_1.getNamedImportReferences)('TuiPushModule', '@taiga-ui/kit'),
|
13
13
|
...(0, get_named_import_references_1.getNamedImportReferences)('TuiPdfViewerModule', '@taiga-ui/kit'),
|
14
14
|
...(0, get_named_import_references_1.getNamedImportReferences)('TuiPreviewModule', '@taiga-ui/addon-preview'),
|
15
|
+
...(0, get_named_import_references_1.getNamedImportReferences)('TuiEditor', '@taiga-ui/editor'),
|
16
|
+
...(0, get_named_import_references_1.getNamedImportReferences)('TuiEditorSocket', '@taiga-ui/editor'),
|
15
17
|
];
|
16
18
|
for (const ref of refs) {
|
17
19
|
if (ref.wasForgotten()) {
|
@@ -61,7 +61,9 @@ function addProviders({ callExpression, fileSystem, modulePath, }) {
|
|
61
61
|
else if (module) {
|
62
62
|
(0, ng_morph_1.addProviderToNgModule)(module, 'NG_EVENT_PLUGINS', { unique: true });
|
63
63
|
}
|
64
|
-
|
64
|
+
const shouldAddImport = (providersArray || module) &&
|
65
|
+
!(0, ng_morph_1.getImports)(path, { moduleSpecifier: '@tinkoff/ng-event-plugins' }).length;
|
66
|
+
if (shouldAddImport) {
|
65
67
|
(0, add_unique_import_1.addUniqueImport)(path, 'NG_EVENT_PLUGINS', '@taiga-ui/event-plugins');
|
66
68
|
}
|
67
69
|
(0, ng_morph_1.getActiveProject)();
|
@@ -80,10 +80,11 @@ function migrateColor({ attr, sourceCodeLocation, recorder, templateOffset, slot
|
|
80
80
|
}
|
81
81
|
const value = attr.value;
|
82
82
|
const insertTo = (_b = (_a = sourceCodeLocation.startTag) === null || _a === void 0 ? void 0 : _a.endOffset) !== null && _b !== void 0 ? _b : 0;
|
83
|
+
const hasBinding = Boolean(attr) && (0, inputs_1.isBinding)(attr);
|
83
84
|
recorder.insertRight(insertTo + templateOffset + 1, `<tui-badge-notification
|
84
85
|
size="xs"
|
85
86
|
tuiSlot="${slot}"
|
86
|
-
[style.color]="'${value}'"
|
87
|
+
[style.color]="${hasBinding ? value : `'${value}'`}"
|
87
88
|
></tui-badge-notification>\n`);
|
88
89
|
}
|
89
90
|
function migrateContent({ attr, colorAttr, sourceCodeLocation, recorder, templateOffset, slot, size, }) {
|
@@ -20,7 +20,9 @@ function migrateExpandable({ resource, recorder, fileSystem, }) {
|
|
20
20
|
if (expandableValue === 'false') {
|
21
21
|
const rowsAttr = (0, inputs_1.findAttr)(attrs, 'rows');
|
22
22
|
const insertTo = ((_h = (_g = sourceCodeLocation === null || sourceCodeLocation === void 0 ? void 0 : sourceCodeLocation.startTag) === null || _g === void 0 ? void 0 : _g.endOffset) !== null && _h !== void 0 ? _h : 0) - 1;
|
23
|
-
|
23
|
+
const insertOffset = templateOffset + insertTo;
|
24
|
+
const selfClosing = template[insertOffset - 1] === '/';
|
25
|
+
recorder.insertRight(selfClosing ? insertOffset - 1 : insertOffset, rowsAttr ? '' : '[rows]="1"');
|
24
26
|
}
|
25
27
|
if (expandableValue !== 'false' && expandableValue !== 'true') {
|
26
28
|
recorder.insertRight(templateOffset + ((_k = (_j = sourceCodeLocation === null || sourceCodeLocation === void 0 ? void 0 : sourceCodeLocation.startTag) === null || _j === void 0 ? void 0 : _j.startOffset) !== null && _k !== void 0 ? _k : 0), '<!-- Taiga migration TODO: "expandable" property has been removed. Use "rows" property instead -->\n');
|