Skip to content

Commit

Permalink
refactor: rename TuiSheetDialogDirective to TuiSheetDialog
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Jun 19, 2024
1 parent 009aaaf commit d035f4e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ import {TuiSheetDialogService} from './sheet-dialog.service';
outputs: ['openChange: tuiSheetDialogChange'],
providers: [tuiAsPopover(TuiSheetDialogService)],
})
export class TuiSheetDialogDirective extends TuiPopoverDirective<TuiSheetDialogOptions> {}
export class TuiSheetDialog extends TuiPopoverDirective<TuiSheetDialogOptions> {}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -43,7 +43,7 @@ const USERS = [
standalone: true,
imports: [
TuiButton,
TuiSheetDialogDirective,
TuiSheetDialog,
TuiInputModule,
TuiTextfieldControllerModule,
ReactiveFormsModule,
Expand Down
14 changes: 2 additions & 12 deletions projects/demo/src/modules/components/sheet-dialog/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit d035f4e

Please sign in to comment.