import { ViewContainerRef } from '@angular/core'; import { Direction } from '@angular/cdk/bidi'; import { ScrollStrategy } from '@angular/cdk/overlay'; import { FaFloatLayerInput } from "./float-layer-input"; /** 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; x?: number; y?: number; } export declare class FaFloatLayerConfig { /** * 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; id?: string; role?: DialogRole; panelClass?: string | string[]; hasBackdrop?: boolean; backdropClass?: string; disableClose?: boolean; width?: string; height?: string; minWidth?: number | string; minHeight?: number | string; /** Max-width of the dialog. If a number is provided, pixel units are assumed. Defaults to 80vw */ maxWidth?: number | string; maxHeight?: number | string; /** Position overrides. */ position?: DialogPosition; /** Data being injected into the child component. */ data?: D | null; /** Layout direction for the dialog's content. */ direction?: Direction; /** Whether the dialog should focus the first focusable element on open. */ autoFocus?: boolean; /** * 对话框是否应将焦点恢复到 * 关闭之前关注的元素. */ restoreFocus?: boolean; /** Scroll strategy to be used for the dialog. */ scrollStrategy?: ScrollStrategy; /** * Whether the dialog should close when the user goes backwards/forwards in history. * Note that this usually doesn't include clicking on links (unless the user is using * the `HashLocationStrategy`). */ closeOnNavigation?: boolean; floatLayerInput?: FaFloatLayerInput; offsetX?: number; offsetY?: number; animation?: boolean; byPoint?: boolean; }