UNPKG

1.35 kBTypeScriptView Raw
1import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
2import { Observable, Subject } from 'rxjs';
3import * as i0 from "@angular/core";
4export declare class NgbOffcanvasPanel implements OnInit, OnDestroy {
5 private _document;
6 private _elRef;
7 private _zone;
8 private _closed$;
9 private _elWithFocus;
10 animation: boolean;
11 ariaLabelledBy?: string;
12 ariaDescribedBy?: string;
13 keyboard: boolean;
14 panelClass: string;
15 position: 'start' | 'end' | 'top' | 'bottom';
16 dismissEvent: EventEmitter<any>;
17 shown: Subject<void>;
18 hidden: Subject<void>;
19 constructor(_document: any, _elRef: ElementRef<HTMLElement>, _zone: NgZone);
20 dismiss(reason: any): void;
21 ngOnInit(): void;
22 ngOnDestroy(): void;
23 hide(): Observable<any>;
24 private _show;
25 private _enableEventHandling;
26 private _disableEventHandling;
27 private _setFocus;
28 private _restoreFocus;
29 static ɵfac: i0.ɵɵFactoryDeclaration<NgbOffcanvasPanel, never>;
30 static ɵcmp: i0.ɵɵComponentDeclaration<NgbOffcanvasPanel, "ngb-offcanvas-panel", never, { "animation": "animation"; "ariaLabelledBy": "ariaLabelledBy"; "ariaDescribedBy": "ariaDescribedBy"; "keyboard": "keyboard"; "panelClass": "panelClass"; "position": "position"; }, { "dismissEvent": "dismiss"; }, never, ["*"], false>;
31}