1 | import { ComponentRef, TemplateRef, EventEmitter, RendererFactory2 } from '@angular/core';
|
2 | import { ComponentLoaderFactory } from 'ngx-bootstrap/component-loader';
|
3 | import { ModalBackdropComponent } from './modal-backdrop.component';
|
4 | import { ModalOptions } from './modal-options.class';
|
5 | import { BsModalRef } from './bs-modal-ref.service';
|
6 | import * as ɵngcc0 from '@angular/core';
|
7 | export declare class BsModalService {
|
8 | private clf;
|
9 | private modalDefaultOption;
|
10 | config: ModalOptions;
|
11 | onShow: EventEmitter<any>;
|
12 | onShown: EventEmitter<any>;
|
13 | onHide: EventEmitter<any>;
|
14 | onHidden: EventEmitter<any>;
|
15 | protected isBodyOverflowing: boolean;
|
16 | protected originalBodyPadding: number;
|
17 | protected scrollbarWidth: number;
|
18 | protected backdropRef?: ComponentRef<ModalBackdropComponent>;
|
19 | private _backdropLoader;
|
20 | private modalsCount;
|
21 | private lastDismissReason?;
|
22 | private loaders;
|
23 | private _renderer;
|
24 | constructor(rendererFactory: RendererFactory2, clf: ComponentLoaderFactory, modalDefaultOption: ModalOptions);
|
25 | /** Shows a modal */
|
26 | show<T>(content: string | TemplateRef<any> | {
|
27 | new (...args: any[]): T;
|
28 | }, config?: ModalOptions<T>): BsModalRef<T>;
|
29 | hide(id?: number | string): void;
|
30 | _showBackdrop(): void;
|
31 | _hideBackdrop(): void;
|
32 | _showModal<T>(content: any): BsModalRef<T>;
|
33 | _hideModal(id?: number | string): void;
|
34 | getModalsCount(): number;
|
35 | setDismissReason(reason: string): void;
|
36 | removeBackdrop(): void;
|
37 | /** Checks if the body is overflowing and sets scrollbar width */
|
38 | /** @internal */
|
39 | checkScrollbar(): void;
|
40 | setScrollbar(): void;
|
41 | private resetScrollbar;
|
42 | private getScrollbarWidth;
|
43 | private _createLoaders;
|
44 | private removeLoaders;
|
45 | private copyEvent;
|
46 | static ɵfac: ɵngcc0.ɵɵFactoryDef<BsModalService, [null, null, { optional: true; }]>;
|
47 | static ɵprov: ɵngcc0.ɵɵInjectableDef<BsModalService>;
|
48 | }
|
49 |
|
50 |
|
\ | No newline at end of file |