UNPKG

@angular-mdc/web

Version:
38 lines (37 loc) 1.71 kB
import { AfterViewInit, ElementRef, NgZone, OnDestroy, QueryList } from '@angular/core'; import { Platform } from '@angular/cdk/platform'; import { Observable } from 'rxjs'; import { MDCComponent } from '@angular-mdc/web/base'; import { MdcDialogButton, MdcDialogContent, MdcDialogSurface } from './dialog-directives'; import { MdcDialogRef } from './dialog-ref'; import { MdcDialogConfig } from './dialog-config'; import { MDCDialogFoundation } from '@material/dialog'; export declare class MdcDialogComponent extends MDCComponent<MDCDialogFoundation> implements AfterViewInit, OnDestroy { private _ngZone; private _platform; elementRef: ElementRef<HTMLElement>; dialogRef: MdcDialogRef<MdcDialogComponent>; /** Emits whenever the component is destroyed. */ private _destroy; private _scrollable; config: MdcDialogConfig; _surface: MdcDialogSurface; _content: MdcDialogContent; _buttons: QueryList<MdcDialogButton>; private _layoutEventSubscription; /** Combined stream of all of the dialog layout events. */ get layoutEvents(): Observable<any>; getDefaultFoundation(): MDCDialogFoundation; constructor(_ngZone: NgZone, _platform: Platform, elementRef: ElementRef<HTMLElement>, dialogRef: MdcDialogRef<MdcDialogComponent>); ngAfterViewInit(): void; private _initialize; ngOnDestroy(): void; /** Recalculates layout and automatically adds/removes modifier classes like --scrollable. */ layout(): void; _onKeydown(evt: KeyboardEvent): void; _onClick(evt: MouseEvent): void; private _closeDialogByRef; private _loadListeners; /** Retrieves the DOM element of the component host. */ private _getDialog; }