import { AnimationEvent } from '@angular/animations'; import { FocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y'; import { BreakpointObserver } from '@angular/cdk/layout'; import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, DomPortal, TemplatePortal } from '@angular/cdk/portal'; import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, NgZone, OnDestroy } from '@angular/core'; import { MtxDrawerConfig } from './drawer-config'; import * as i0 from "@angular/core"; /** * Internal component that wraps user-provided drawer content. * @docs-private */ export declare class MtxDrawerContainer extends BasePortalOutlet implements OnDestroy { private _elementRef; private _changeDetectorRef; private _focusTrapFactory; private readonly _interactivityChecker; private readonly _ngZone; /** The drawer configuration. */ drawerConfig: MtxDrawerConfig; private _breakpointSubscription; /** The portal outlet inside of this container into which the content will be loaded. */ _portalOutlet: CdkPortalOutlet; /** The state of the drawer animations. */ _animationState: 'void' | 'visible' | 'hidden'; /** Emits whenever the state of the animation changes. */ _animationStateChanged: EventEmitter; /** The class that traps and manages focus within the drawer. */ private _focusTrap; /** Element that was focused before the drawer was opened. */ private _elementFocusedBeforeOpened; /** Server-side rendering-compatible reference to the global document object. */ private _document; /** Whether the component has been destroyed. */ private _destroyed; get _drawerPosition(): string; get _drawerWidth(): string; get _drawerHeight(): string; _getDrawerSize(): { width: string; height: string; minWidth: string; minHeight: string; maxWidth: string; maxHeight: string; }; constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _focusTrapFactory: FocusTrapFactory, _interactivityChecker: InteractivityChecker, _ngZone: NgZone, breakpointObserver: BreakpointObserver, document: any, /** The drawer configuration. */ drawerConfig: MtxDrawerConfig); /** Attach a component portal as content to this drawer container. */ attachComponentPortal(portal: ComponentPortal): ComponentRef; /** Attach a template portal as content to this drawer container. */ attachTemplatePortal(portal: TemplatePortal): EmbeddedViewRef; /** * Attaches a DOM portal to the drawer container. * @deprecated To be turned into a method. * @breaking-change 10.0.0 */ attachDomPortal: (portal: DomPortal) => void; /** Begin animation of drawer entrance into view. */ enter(): void; /** Begin animation of the drawer exiting from view. */ exit(): void; ngOnDestroy(): void; _onAnimationDone(event: AnimationEvent): void; _onAnimationStart(event: AnimationEvent): void; private _toggleClass; private _validatePortalAttached; private _setPanelClass; /** * Focuses the provided element. If the element is not focusable, it will add a tabIndex * attribute to forcefully focus it. The attribute is removed after focus is moved. * @param element The element to focus. */ private _forceFocus; /** * Focuses the first element that matches the given selector within the focus trap. * @param selector The CSS selector for the element to set focus to. */ private _focusByCssSelector; /** * Moves the focus inside the focus trap. When autoFocus is not set to 'bottom-sheet', * if focus cannot be moved then focus will go to the drawer container. */ private _trapFocus; /** Restores focus to the element that was focused before the drawer was opened. */ private _restoreFocus; /** Saves a reference to the element that was focused before the drawer was opened. */ private _savePreviouslyFocusedElement; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }