1 | import { ComponentRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
|
2 | import { ModalBackdropComponent } from './modal-backdrop.component';
|
3 | import { ModalOptions } from './modal-options.class';
|
4 | import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
|
5 | import { CloseInterceptorFn } from './models';
|
6 |
|
7 | import * as ɵngcc0 from '@angular/core';
|
8 | export declare class ModalDirective implements OnDestroy, OnInit {
|
9 | private _element;
|
10 | private _renderer;
|
11 |
|
12 | set config(conf: ModalOptions);
|
13 | get config(): ModalOptions;
|
14 |
|
15 | closeInterceptor?: CloseInterceptorFn;
|
16 |
|
17 | onShow: EventEmitter<ModalDirective>;
|
18 | |
19 |
|
20 |
|
21 | onShown: EventEmitter<ModalDirective>;
|
22 | |
23 |
|
24 |
|
25 | onHide: EventEmitter<ModalDirective>;
|
26 | |
27 |
|
28 |
|
29 | onHidden: EventEmitter<ModalDirective>;
|
30 | |
31 |
|
32 |
|
33 |
|
34 | dismissReason?: string;
|
35 | get isShown(): boolean;
|
36 | protected _config: ModalOptions;
|
37 | protected _isShown: boolean;
|
38 | protected isBodyOverflowing: boolean;
|
39 | protected originalBodyPadding: number;
|
40 | protected scrollbarWidth: number;
|
41 | protected timerHideModal: number;
|
42 | protected timerRmBackDrop: number;
|
43 | protected backdrop?: ComponentRef<ModalBackdropComponent>;
|
44 | private _backdrop;
|
45 | private isNested;
|
46 | private clickStartedInContent;
|
47 | constructor(_element: ElementRef, _viewContainerRef: ViewContainerRef, _renderer: Renderer2, clf: ComponentLoaderFactory, modalDefaultOption: ModalOptions);
|
48 | onClickStarted(event: MouseEvent): void;
|
49 | onClickStop(event: MouseEvent): void;
|
50 | onEsc(event: KeyboardEvent): void;
|
51 | ngOnDestroy(): void;
|
52 | ngOnInit(): void;
|
53 | /** Allows to manually toggle modal visibility */
|
54 | toggle(): void;
|
55 | /** Allows to manually open modal */
|
56 | show(): void;
|
57 | /** Check if we can close the modal */
|
58 | hide(event?: Event): void;
|
59 | /** Private methods @internal */
|
60 | /**
|
61 | * Manually close modal
|
62 | * @internal
|
63 | */
|
64 | protected _hide(): void;
|
65 | protected getConfig(config?: ModalOptions): ModalOptions;
|
66 | /**
|
67 | * Show dialog
|
68 | * @internal
|
69 | */
|
70 | protected showElement(): void;
|
71 | /** @internal */
|
72 | protected hideModal(): void;
|
73 | /** @internal */
|
74 | protected showBackdrop(callback?: () => void): void;
|
75 | /** @internal */
|
76 | protected removeBackdrop(): void;
|
77 | /** Events tricks */
|
78 | protected focusOtherModal(): void;
|
79 | /** @internal */
|
80 | protected resetAdjustments(): void;
|
81 | /** Scroll bar tricks */
|
82 | /** @internal */
|
83 | protected checkScrollbar(): void;
|
84 | protected setScrollbar(): void;
|
85 | protected resetScrollbar(): void;
|
86 | protected getScrollbarWidth(): number;
|
87 | static ɵfac: ɵngcc0.ɵɵFactoryDef<ModalDirective, [null, null, null, null, { optional: true; }]>;
|
88 | static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<ModalDirective, "[bsModal]", ["bs-modal"], { "config": "config"; "closeInterceptor": "closeInterceptor"; }, { "onShow": "onShow"; "onShown": "onShown"; "onHide": "onHide"; "onHidden": "onHidden"; }, never>;
|
89 | }
|
90 |
|
91 |
|
\ | No newline at end of file |