Skip to content

Commit

Permalink
chore(cdk): FeedItem migration (#2399)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirpotekhin authored and splincode committed Aug 26, 2022
1 parent a97eb08 commit 4268107
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions projects/cdk/schematics/ng-update/constants/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const ATTRS_TO_REPLACE: ReplacementAttributes[] = [
'tui-range',
'tui-input-range',
'tui-input-slider',
'tui-feed-item',
],
},
to: {attrName: ''},
Expand Down Expand Up @@ -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[] = [
Expand Down

0 comments on commit 4268107

Please sign in to comment.