diff --git a/projects/core/src/services/dialog.service.ts b/projects/core/src/services/dialog.service.ts index 64a6ff62..2cf6ac03 100644 --- a/projects/core/src/services/dialog.service.ts +++ b/projects/core/src/services/dialog.service.ts @@ -1,8 +1,8 @@ import { Type } from '@angular/core'; +import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog'; import { Observable, ReplaySubject, switchMap, take, throttleTime } from 'rxjs'; import { NgxAbstractLazyModule, NgxLazyLoaderService } from './lazy-loader.service'; -import { MatDialogConfig, MatDialogRef, MatDialog } from '@angular/material/dialog'; export abstract class NgxDialogService { protected openDialogSub$ = new ReplaySubject>(1); diff --git a/projects/demo-app/src/app/app.component.ts b/projects/demo-app/src/app/app.component.ts index 4abee159..c29ceae8 100644 --- a/projects/demo-app/src/app/app.component.ts +++ b/projects/demo-app/src/app/app.component.ts @@ -3,10 +3,10 @@ import { NgFor, NgIf } from '@angular/common'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, OnDestroy } from '@angular/core'; import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/material/icon'; +import { MatListModule } from '@angular/material/list'; import { MatSidenavModule } from '@angular/material/sidenav'; import { MatToolbarModule } from '@angular/material/toolbar'; import { RouterModule } from '@angular/router'; -import {MatListModule} from '@angular/material/list'; @Component({ selector: 'app-root', diff --git a/projects/demo-app/src/main.ts b/projects/demo-app/src/main.ts index c22244f5..9cc36fc7 100644 --- a/projects/demo-app/src/main.ts +++ b/projects/demo-app/src/main.ts @@ -1,6 +1,7 @@ import { Dialog, DIALOG_SCROLL_STRATEGY_PROVIDER } from '@angular/cdk/dialog'; import { Overlay } from '@angular/cdk/overlay'; import { enableProdMode } from '@angular/core'; +import { MAT_DIALOG_SCROLL_STRATEGY_PROVIDER, MatDialog } from '@angular/material/dialog'; import { bootstrapApplication } from '@angular/platform-browser'; import { provideAnimations } from '@angular/platform-browser/animations'; import { PreloadAllModules, provideRouter, withPreloading } from '@angular/router'; @@ -8,7 +9,6 @@ import { PreloadAllModules, provideRouter, withPreloading } from '@angular/route import { AppComponent } from './app/app.component'; import { appRoutes } from './app/app.routes'; import { environment } from './environments/environment'; -import { MatDialog, MAT_DIALOG_SCROLL_STRATEGY_PROVIDER } from '@angular/material/dialog'; if (environment.production) { enableProdMode(); diff --git a/projects/message-box-dialog/src/message-box-dialog.component.ts b/projects/message-box-dialog/src/message-box-dialog.component.ts index 504de7ff..bb57afd7 100644 --- a/projects/message-box-dialog/src/message-box-dialog.component.ts +++ b/projects/message-box-dialog/src/message-box-dialog.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, inject, ViewEncapsulation } from '@angular/core'; +import { MAT_DIALOG_DATA } from '@angular/material/dialog'; import { NgxMessageBoxDialogButtons, NgxMessageBoxDialogData } from './message-box-dialog.model'; -import { MAT_DIALOG_DATA } from '@angular/material/dialog'; @Component({ selector: 'ngx-message-box-dialog', diff --git a/projects/message-box-dialog/src/message-box-dialog.module.ts b/projects/message-box-dialog/src/message-box-dialog.module.ts index 3354df57..1b1c26b6 100644 --- a/projects/message-box-dialog/src/message-box-dialog.module.ts +++ b/projects/message-box-dialog/src/message-box-dialog.module.ts @@ -1,12 +1,12 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; +import { MatButtonModule } from '@angular/material/button'; +import { MatDialogModule } from '@angular/material/dialog'; import { MatIconModule } from '@angular/material/icon'; import { MatToolbarModule } from '@angular/material/toolbar'; import { NgxAbstractLazyModule } from '@hug/ngx-core'; import { NgxMessageBoxDialogComponent } from './message-box-dialog.component'; -import { MatButtonModule } from '@angular/material/button'; -import { MatDialogModule } from '@angular/material/dialog'; @NgModule({ declarations: [NgxMessageBoxDialogComponent], diff --git a/projects/message-box-dialog/src/message-box-dialog.service.ts b/projects/message-box-dialog/src/message-box-dialog.service.ts index eead2708..3dee4ca2 100644 --- a/projects/message-box-dialog/src/message-box-dialog.service.ts +++ b/projects/message-box-dialog/src/message-box-dialog.service.ts @@ -1,9 +1,9 @@ import { Injectable, Type } from '@angular/core'; +import { MatDialog, MatDialogConfig } from '@angular/material/dialog'; import { NgxAbstractLazyModule, NgxDialogService, NgxLazyLoaderService } from '@hug/ngx-core'; import { Observable, take } from 'rxjs'; import { NgxMessageBoxDialogButtons, NgxMessageBoxDialogData, NgxMessageBoxDialogResponse } from './message-box-dialog.model'; -import { MatDialog, MatDialogConfig } from '@angular/material/dialog'; @Injectable({ providedIn: 'root'