/** * @license * Copyright UIUX Engineering Corporation All Rights Reserved. */ import { ViewContainerRef } from '@angular/core'; import { Direction } from '@angular/cdk/bidi'; import { ComponentType } from '@angular/cdk/overlay'; import { CdkDialogContainer } from './dialog-container'; /** Valid ARIA roles for a dialog element. */ export declare type DialogRole = 'dialog' | 'alertdialog'; /** Possible overrides for a dialog's position. */ export interface DialogPosition { top?: string; bottom?: string; left?: string; right?: string; } export declare class DialogConfig { /** Component to use as the container for the dialog. */ containerComponent?: ComponentType; /** * Where the attached component should live in Angular's *logical* component tree. * This affects what is available for injection and the change detection order for the * component instantiated inside of the dialog. This does not affect where the dialog * content will be rendered. */ viewContainerRef?: ViewContainerRef; /** The id of the dialog. */ id?: string; /** The ARIA role of the dialog. */ role?: DialogRole; /** Custom class(es) for the overlay panel. */ panelClass?: string | string[]; /** Custom class(es) for the dialog container. */ containerClass?: string | string[]; /** Whether the dialog has a background. */ hasBackdrop?: boolean; /** Custom class(es) for the backdrop. */ backdropClass?: string | undefined; /** Whether the dialog can be closed by user interaction. */ disableClose?: boolean; /** The width of the dialog. */ width?: string; /** The height of the dialog. */ height?: string; /** The minimum width of the dialog. */ minWidth?: string | number; /** The minimum height of the dialog. */ minHeight?: string | number; /** The maximum width of the dialog. */ maxWidth?: string | number; /** The maximum height of the dialog. */ maxHeight?: string | number; /** The position of the dialog. */ position?: DialogPosition; /** Data to be injected into the dialog content. */ data?: D | null; /** The layout direction for the dialog content. */ direction?: Direction; /** ID of the element that describes the dialog. */ ariaDescribedBy?: string | null; /** Aria label to assign to the dialog element */ ariaLabel?: string | null; /** Whether the dialog should focus the first focusable element on open. */ autoFocus?: boolean; }