From f3120eff1be6eba7bd27fa615bb74dc863168fbf Mon Sep 17 00:00:00 2001 From: null Date: Fri, 13 Sep 2024 08:35:26 +0000 Subject: [PATCH] chore(deps): update taiga-ui cdk to v4 --- apps/demo/src/app/app.component.ts | 6 +- apps/demo/src/app/app.config.ts | 28 +- apps/demo/src/app/home/home.component.html | 39 +- apps/demo/src/app/home/home.component.less | 19 +- apps/demo/src/app/home/home.component.ts | 55 +- apps/demo/src/styles.less | 2 +- package-lock.json | 1523 +++++++++----------- package.json | 22 +- 8 files changed, 798 insertions(+), 896 deletions(-) diff --git a/apps/demo/src/app/app.component.ts b/apps/demo/src/app/app.component.ts index fa704ee6..f6ee1e90 100644 --- a/apps/demo/src/app/app.component.ts +++ b/apps/demo/src/app/app.component.ts @@ -1,12 +1,12 @@ import {ChangeDetectionStrategy, Component, ViewEncapsulation} from '@angular/core'; import {RouterOutlet} from '@angular/router'; -import {TuiRootModule} from '@taiga-ui/core'; -import {TuiEditorModule} from '@tinkoff/tui-editor'; +import {TuiRoot} from '@taiga-ui/core'; +import {TuiEditor, TuiEditorSocket} from '@taiga-ui/editor'; @Component({ standalone: true, selector: 'app', - imports: [RouterOutlet, TuiEditorModule, TuiRootModule], + imports: [RouterOutlet, TuiEditor, TuiEditorSocket, TuiRoot], templateUrl: './app.component.html', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/apps/demo/src/app/app.config.ts b/apps/demo/src/app/app.config.ts index 697b3f7d..c99bffea 100644 --- a/apps/demo/src/app/app.config.ts +++ b/apps/demo/src/app/app.config.ts @@ -3,15 +3,12 @@ import {importProvidersFrom, INJECTOR} from '@angular/core'; import {provideClientHydration} from '@angular/platform-browser'; import {provideAnimations} from '@angular/platform-browser/animations'; import {provideRouter} from '@angular/router'; -import { - TUI_SANITIZER, - TuiAlertModule, - TuiDialogModule, - TuiRootModule, -} from '@taiga-ui/core'; -import {TuiPushModule} from '@taiga-ui/kit'; -import {NgDompurifySanitizer} from '@tinkoff/ng-dompurify'; -import {TUI_EDITOR_DEFAULT_EXTENSIONS, TUI_EDITOR_EXTENSIONS} from '@tinkoff/tui-editor'; +import {TuiAlert, TuiDialog} from '@taiga-ui/core'; +import {NgDompurifySanitizer} from '@taiga-ui/dompurify'; +import {TUI_EDITOR_DEFAULT_EXTENSIONS, TUI_EDITOR_EXTENSIONS} from '@taiga-ui/editor'; +import {NG_EVENT_PLUGINS} from '@taiga-ui/event-plugins'; +import {TuiPush} from '@taiga-ui/kit'; +import {TUI_SANITIZER} from '@taiga-ui/legacy'; export const appConfig: ApplicationConfig = { providers: [ @@ -24,20 +21,14 @@ export const appConfig: ApplicationConfig = { loadComponent: async () => import('./home/home.component'), }, ]), - importProvidersFrom( - TuiRootModule, - TuiAlertModule, - TuiDialogModule, - TuiPushModule, - ), + importProvidersFrom(TuiAlert, TuiDialog, TuiPush), { provide: TUI_EDITOR_EXTENSIONS, deps: [INJECTOR], useFactory: (injector: Injector) => [ ...TUI_EDITOR_DEFAULT_EXTENSIONS, - import('@tinkoff/tui-editor/extensions/image-editor').then( - ({tuiCreateImageEditorExtension}) => - tuiCreateImageEditorExtension({injector}), + import('@taiga-ui/editor').then(({tuiCreateImageEditorExtension}) => + tuiCreateImageEditorExtension({injector}), ), ], }, @@ -45,5 +36,6 @@ export const appConfig: ApplicationConfig = { provide: TUI_SANITIZER, useClass: NgDompurifySanitizer, }, + NG_EVENT_PLUGINS, ], }; diff --git a/apps/demo/src/app/home/home.component.html b/apps/demo/src/app/home/home.component.html index 040e8a7e..4587fb0e 100644 --- a/apps/demo/src/app/home/home.component.html +++ b/apps/demo/src/app/home/home.component.html @@ -35,19 +35,24 @@

@for (label of labels; track $index) { - + + }

>