From d035f4eab3bd0d98b12c8309ce718c49a077a233 Mon Sep 17 00:00:00 2001 From: splincode Date: Wed, 19 Jun 2024 18:33:21 +0300 Subject: [PATCH] refactor: rename `TuiSheetDialogDirective` to `TuiSheetDialog` --- .../sheet-dialog/sheet-dialog.directive.ts | 2 +- .../components/sheet-dialog/examples/2/index.ts | 4 ++-- .../components/sheet-dialog/examples/3/index.ts | 4 ++-- .../components/sheet-dialog/examples/4/index.ts | 4 ++-- .../src/modules/components/sheet-dialog/index.ts | 14 ++------------ 5 files changed, 9 insertions(+), 19 deletions(-) diff --git a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts index 3b3f52fec019..fcbca2c74167 100644 --- a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts +++ b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts @@ -11,4 +11,4 @@ import {TuiSheetDialogService} from './sheet-dialog.service'; outputs: ['openChange: tuiSheetDialogChange'], providers: [tuiAsPopover(TuiSheetDialogService)], }) -export class TuiSheetDialogDirective extends TuiPopoverDirective {} +export class TuiSheetDialog extends TuiPopoverDirective {} diff --git a/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts b/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts index abbcc4765572..8873b67d2f8a 100644 --- a/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts +++ b/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts @@ -2,12 +2,12 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import type {TuiSheetDialogOptions} from '@taiga-ui/addon-mobile'; -import {TuiSheetDialogDirective} from '@taiga-ui/addon-mobile'; +import {TuiSheetDialog} from '@taiga-ui/addon-mobile'; import {TuiButton} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiButton, TuiSheetDialogDirective], + imports: [TuiButton, TuiSheetDialog], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/sheet-dialog/examples/3/index.ts b/projects/demo/src/modules/components/sheet-dialog/examples/3/index.ts index 3401dd44ae43..b98edc92e7cf 100644 --- a/projects/demo/src/modules/components/sheet-dialog/examples/3/index.ts +++ b/projects/demo/src/modules/components/sheet-dialog/examples/3/index.ts @@ -3,12 +3,12 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiAmountPipe} from '@taiga-ui/addon-commerce'; -import {TuiSheetDialogDirective} from '@taiga-ui/addon-mobile'; +import {TuiSheetDialog} from '@taiga-ui/addon-mobile'; import {TuiButton, TuiTitle} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiButton, TuiTitle, TuiSheetDialogDirective, TuiAmountPipe, AsyncPipe], + imports: [TuiButton, TuiTitle, TuiSheetDialog, TuiAmountPipe, AsyncPipe], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts b/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts index 2a810afd5913..1e6bb0cec6b2 100644 --- a/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts +++ b/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts @@ -3,7 +3,7 @@ import {Component, inject, ViewChild} from '@angular/core'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiSheetDialogDirective} from '@taiga-ui/addon-mobile'; +import {TuiSheetDialog} from '@taiga-ui/addon-mobile'; import type {TuiSwipeDirection} from '@taiga-ui/cdk'; import { TUI_DEFAULT_MATCHER, @@ -43,7 +43,7 @@ const USERS = [ standalone: true, imports: [ TuiButton, - TuiSheetDialogDirective, + TuiSheetDialog, TuiInputModule, TuiTextfieldControllerModule, ReactiveFormsModule, diff --git a/projects/demo/src/modules/components/sheet-dialog/index.ts b/projects/demo/src/modules/components/sheet-dialog/index.ts index 6ad2c0785e77..14655fed337b 100644 --- a/projects/demo/src/modules/components/sheet-dialog/index.ts +++ b/projects/demo/src/modules/components/sheet-dialog/index.ts @@ -1,24 +1,14 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; -import { - TUI_SHEET_DIALOG_DEFAULT_OPTIONS, - TuiSheetDialogDirective, -} from '@taiga-ui/addon-mobile'; +import {TUI_SHEET_DIALOG_DEFAULT_OPTIONS, TuiSheetDialog} from '@taiga-ui/addon-mobile'; import {TUI_IS_MOBILE} from '@taiga-ui/cdk'; import {TuiButton, TuiNotification, TuiTitle} from '@taiga-ui/core'; import {TuiAvatar} from '@taiga-ui/kit'; @Component({ standalone: true, - imports: [ - TuiDemo, - TuiButton, - TuiNotification, - TuiAvatar, - TuiTitle, - TuiSheetDialogDirective, - ], + imports: [TuiDemo, TuiButton, TuiNotification, TuiAvatar, TuiTitle, TuiSheetDialog], templateUrl: './index.html', styleUrls: ['./index.less'], changeDetection,