From b4ca77b9fbd84ed6776d9605262fc975e65088d0 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Fri, 28 Jun 2024 17:56:23 +0300 Subject: [PATCH] chore: update migration for TuiAmountPipeModule (#7982) --- .../ng-update/v4/steps/constants/identifiers-to-replace.ts | 2 +- .../demo/src/modules/pipes/amount/examples/import/import.md | 4 ++-- .../demo/src/modules/pipes/amount/examples/import/template.md | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts index f96e29387f2c..88fb7fb9a872 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts @@ -507,7 +507,7 @@ export const IDENTIFIERS_TO_REPLACE: ReplacementIdentifierMulti[] = [ to: {name: 'TuiValidator', moduleSpecifier: '@taiga-ui/cdk'}, }, { - from: {name: 'TuiAmountModule', moduleSpecifier: '@taiga-ui/experimental'}, + from: {name: 'TuiAmountPipeModule', moduleSpecifier: '@taiga-ui/experimental'}, to: {name: 'TuiAmountPipe', moduleSpecifier: '@taiga-ui/addon-commerce'}, }, { diff --git a/projects/demo/src/modules/pipes/amount/examples/import/import.md b/projects/demo/src/modules/pipes/amount/examples/import/import.md index 2aeddebf5da8..7f081eecc0b5 100644 --- a/projects/demo/src/modules/pipes/amount/examples/import/import.md +++ b/projects/demo/src/modules/pipes/amount/examples/import/import.md @@ -1,5 +1,5 @@ ```ts -import {TuiAmountPipeModule} from '@taiga-ui/experimental'; +import {TuiAmountPipe} from '@taiga-ui/addon-commerce'; // ... @@ -7,7 +7,7 @@ import {TuiAmountPipeModule} from '@taiga-ui/experimental'; standalone: true, imports: [ // ... - TuiAmountPipeModule, + TuiAmountPipe, ], }) export class Example {} diff --git a/projects/demo/src/modules/pipes/amount/examples/import/template.md b/projects/demo/src/modules/pipes/amount/examples/import/template.md index a45a113f2997..ea099e7cd677 100644 --- a/projects/demo/src/modules/pipes/amount/examples/import/template.md +++ b/projects/demo/src/modules/pipes/amount/examples/import/template.md @@ -1,3 +1,5 @@ ```html -{{ 100000 | tuiAmount : currency : align | async }} + +

{{ 100000 | tuiAmount : '978' : 'left' | async }}

+

{{ 100000 | tuiAmount : 'EUR' : 'right' | async }}

```