UNPKG

@nova-ui/bits

Version:

SolarWinds Nova Framework

47 lines (46 loc) 1.93 kB
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from "@angular/core"; import { Router } from "@angular/router"; import * as i0 from "@angular/core"; export declare class DialogComponent implements OnInit, AfterViewInit, OnDestroy { private document; private elRef; private renderer; private router; private elWithFocus; /** * Whether a backdrop element should be created for a given dialog (true by default). * Alternatively, specify 'static' for a backdrop which doesn't close the dialog on click. */ backdrop: boolean | string; /** * Whether to close the dialog when escape key is pressed (true by default). */ keyboard: boolean; /** * Size of a new dialog window. */ size: string; /** * Custom class to append to the dialog window */ windowClass: string; /** * Event fired on dismiss of the dialog window */ dismissEvent: EventEmitter<any>; private scrollableElement; private mouseDownOrigin; constructor(document: Document, elRef: ElementRef, renderer: Renderer2, router: Router); onShiftTab(event: KeyboardEvent): void; onTab(event: KeyboardEvent): void; backdropMouseDown($event: any): void; backdropMouseUp($event: any): void; escKey($event: any): void; dismiss(reason: any): void; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; private handleFocus; static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "nui-dialog-window", never, { "backdrop": { "alias": "backdrop"; "required": false; }; "keyboard": { "alias": "keyboard"; "required": false; }; "size": { "alias": "size"; "required": false; }; "windowClass": { "alias": "windowClass"; "required": false; }; }, { "dismissEvent": "dismissEvent"; }, never, ["*"], false, never>; }