From 4268107c97f4a9ff70b8cb75065c1dc741f31ce9 Mon Sep 17 00:00:00 2001 From: Vladimir Potekhin <46284632+vladimirpotekhin@users.noreply.github.com> Date: Thu, 18 Aug 2022 10:44:10 +0300 Subject: [PATCH] chore(cdk): `FeedItem` migration (#2399) --- .../ng-update/constants/templates.ts | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/projects/cdk/schematics/ng-update/constants/templates.ts b/projects/cdk/schematics/ng-update/constants/templates.ts index 0b4dc9ac50fa..f4ac6bb10a60 100644 --- a/projects/cdk/schematics/ng-update/constants/templates.ts +++ b/projects/cdk/schematics/ng-update/constants/templates.ts @@ -49,6 +49,7 @@ export const ATTRS_TO_REPLACE: ReplacementAttributes[] = [ 'tui-range', 'tui-input-range', 'tui-input-slider', + 'tui-feed-item', ], }, to: {attrName: ''}, @@ -293,6 +294,42 @@ export const ATTRS_TO_REPLACE: ReplacementAttributes[] = [ attrName: '[appearance]', }, }, + { + from: { + attrName: '[itemLabel]', + withTagNames: ['tui-feed-item'], + }, + to: { + attrName: '[description]', + }, + }, + { + from: { + attrName: '[itemValue]', + withTagNames: ['tui-feed-item'], + }, + to: { + attrName: '[title]', + }, + }, + { + from: { + attrName: '[sumLabel]', + withTagNames: ['tui-feed-item'], + }, + to: { + attrName: '[secondaryDescription]', + }, + }, + { + from: { + attrName: '[sumValue]', + withTagNames: ['tui-feed-item'], + }, + to: { + attrName: '[secondaryTitle]', + }, + }, ]; export const INPUTS_TO_REMOVE: InputToRemove[] = [