mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-04 07:31:38 +00:00
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { NgClass, NgIf } from '@angular/common';
|
|
import { Component, inject, ViewEncapsulation } from '@angular/core';
|
|
import { MatButtonModule } from '@angular/material/button';
|
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
import { MatIconModule } from '@angular/material/icon';
|
|
import { FuseConfirmationConfig } from '@fuse/services/confirmation/confirmation.types';
|
|
|
|
@Component({
|
|
selector : 'fuse-confirmation-dialog',
|
|
templateUrl : './dialog.component.html',
|
|
styles : [
|
|
`
|
|
.fuse-confirmation-dialog-panel {
|
|
|
|
@screen md {
|
|
@apply w-128;
|
|
}
|
|
|
|
.mat-mdc-dialog-container {
|
|
|
|
.mat-mdc-dialog-surface {
|
|
padding: 0 !important;
|
|
}
|
|
}
|
|
}
|
|
`,
|
|
],
|
|
encapsulation: ViewEncapsulation.None,
|
|
standalone : true,
|
|
imports : [NgIf, MatButtonModule, MatDialogModule, MatIconModule, NgClass],
|
|
})
|
|
export class FuseConfirmationDialogComponent
|
|
{
|
|
data: FuseConfirmationConfig = inject(MAT_DIALOG_DATA);
|
|
}
|