|
|
|
@ -1,9 +1,8 @@ |
|
|
|
import { |
|
|
|
ChangeDetectionStrategy, |
|
|
|
Component, |
|
|
|
EventEmitter, |
|
|
|
Input, |
|
|
|
Output |
|
|
|
input, |
|
|
|
output |
|
|
|
} from '@angular/core'; |
|
|
|
import { MatButtonModule } from '@angular/material/button'; |
|
|
|
import { MatDialogModule } from '@angular/material/dialog'; |
|
|
|
@ -20,11 +19,11 @@ import { close } from 'ionicons/icons'; |
|
|
|
templateUrl: './dialog-header.component.html' |
|
|
|
}) |
|
|
|
export class GfDialogHeaderComponent { |
|
|
|
@Input() deviceType: string; |
|
|
|
@Input() position: 'center' | 'left' = 'left'; |
|
|
|
@Input() title?: string | null; |
|
|
|
public readonly deviceType = input<string>(); |
|
|
|
public readonly position = input<'center' | 'left'>('left'); |
|
|
|
public readonly title = input.required<string | null | undefined>(); |
|
|
|
|
|
|
|
@Output() closeButtonClicked = new EventEmitter<void>(); |
|
|
|
public readonly closeButtonClicked = output<void>(); |
|
|
|
|
|
|
|
public constructor() { |
|
|
|
addIcons({ close }); |
|
|
|
|