mirror of
https://github.com/bitwarden/browser
synced 2026-02-20 19:34:03 +00:00
* remove libs/angular dialog service; move simple dialog types to CL * update DialogServiceAbstraction imports to CL * update imports in libs/angular to use CL * colocate simple dialog types * move SimpleConfigurableDialog files under SimpleDialog * remove CL import alias from CL src * update imports * run prettier * convert SimpleDialog enums to types * replace DialogServiceAbstraction with DialogService * restrict libs/angular imports in CL * add deprecation note to ModalService * Delete BrowserDialogService * Remove ElectronDialogService * update browser and desktop services.module * remove os.EOL in simple dialog * change SimpleDialogCloseType to boolean * remove close type
44 lines
1.4 KiB
TypeScript
44 lines
1.4 KiB
TypeScript
import { DialogModule as CdkDialogModule } from "@angular/cdk/dialog";
|
|
import { NgModule } from "@angular/core";
|
|
import { ReactiveFormsModule } from "@angular/forms";
|
|
|
|
import { AsyncActionsModule } from "../async-actions";
|
|
import { ButtonModule } from "../button";
|
|
import { IconButtonModule } from "../icon-button";
|
|
import { SharedModule } from "../shared";
|
|
|
|
import { DialogComponent } from "./dialog/dialog.component";
|
|
import { DialogService } from "./dialog.service";
|
|
import { DialogCloseDirective } from "./directives/dialog-close.directive";
|
|
import { DialogTitleContainerDirective } from "./directives/dialog-title-container.directive";
|
|
import { SimpleConfigurableDialogComponent } from "./simple-dialog/simple-configurable-dialog/simple-configurable-dialog.component";
|
|
import { IconDirective, SimpleDialogComponent } from "./simple-dialog/simple-dialog.component";
|
|
|
|
@NgModule({
|
|
imports: [
|
|
SharedModule,
|
|
AsyncActionsModule,
|
|
ButtonModule,
|
|
CdkDialogModule,
|
|
IconButtonModule,
|
|
ReactiveFormsModule,
|
|
],
|
|
declarations: [
|
|
DialogCloseDirective,
|
|
DialogTitleContainerDirective,
|
|
DialogComponent,
|
|
SimpleDialogComponent,
|
|
SimpleConfigurableDialogComponent,
|
|
IconDirective,
|
|
],
|
|
exports: [
|
|
CdkDialogModule,
|
|
DialogComponent,
|
|
SimpleDialogComponent,
|
|
DialogCloseDirective,
|
|
IconDirective,
|
|
],
|
|
providers: [DialogService],
|
|
})
|
|
export class DialogModule {}
|