From 6ead1e62198f367a7377a63ea6bf8d99cb93fcd3 Mon Sep 17 00:00:00 2001 From: German Panov Date: Fri, 6 Sep 2024 18:13:00 +0300 Subject: [PATCH] chore: add migration for `tuiHintAppearance` (#8876) --- .../v4/steps/constants/attr-with-values-to-replace.ts | 5 +++++ .../ng-update/v4/tests/schematic-migrate-avatar.spec.ts | 2 ++ 2 files changed, 7 insertions(+) diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.ts index 0801a8003732..4c28567b3016 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/attr-with-values-to-replace.ts @@ -31,6 +31,11 @@ export const ATTR_WITH_VALUES_TO_REPLACE: ReplacementAttributeValue[] = [ {from: 'onLight', to: 'light'}, ], }, + { + attrNames: ['tuiHintAppearance'], + newAttrName: 'tuiHintAppearance', + valueReplacer: [{from: 'onDark', to: 'dark'}], + }, { attrNames: ['[pseudoActive]'], newAttrName: '[tuiAppearanceState]', diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts index fa4dd49a01d8..25571fba4657 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts @@ -67,6 +67,7 @@ const TEMPLATE_BEFORE = ` `; @@ -98,6 +99,7 @@ const TEMPLATE_AFTER = ` `;