/** * dialog-container.component */ import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, OnInit } from '@angular/core'; import { AnimationEvent } from '@angular/animations'; import { FocusTrapFactory } from '@angular/cdk/a11y'; import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal'; import { OwlDialogConfig } from './dialog-config.class'; export declare class OwlDialogContainerComponent extends BasePortalOutlet implements OnInit { private changeDetector; private elementRef; private focusTrapFactory; private document; portalOutlet: CdkPortalOutlet; /** The class that traps and manages focus within the dialog. */ private focusTrap; /** ID of the element that should be considered as the dialog's label. */ ariaLabelledBy: string | null; /** Emits when an animation state changes. */ animationStateChanged: EventEmitter; isAnimating: boolean; private _config; readonly config: OwlDialogConfig; private state; private params; private elementFocusedBeforeDialogWasOpened; readonly owlDialogContainerClass: boolean; readonly owlDialogContainerTabIndex: number; readonly owlDialogContainerId: string; readonly owlDialogContainerRole: string; readonly owlDialogContainerAriaLabelledby: string; readonly owlDialogContainerAriaDescribedby: string; readonly owlDialogContainerAnimation: any; constructor(changeDetector: ChangeDetectorRef, elementRef: ElementRef, focusTrapFactory: FocusTrapFactory, document: any); ngOnInit(): void; /** * Attach a ComponentPortal as content to this dialog container. */ attachComponentPortal(portal: ComponentPortal): ComponentRef; attachTemplatePortal(portal: TemplatePortal): EmbeddedViewRef; setConfig(config: OwlDialogConfig): void; onAnimationStart(event: AnimationEvent): void; onAnimationDone(event: AnimationEvent): void; startExitAnimation(): void; /** * Calculate origin used in the `zoomFadeInFrom()` * for animation purpose */ private calculateZoomOrigin; /** * Save the focused element before dialog was open */ private savePreviouslyFocusedElement; private trapFocus; private restoreFocus; }