UNPKG

1.98 kBTypeScriptView Raw
1import { StaticProvider, InjectionToken } from '@angular/core';
2import { ClassName, CloseInterceptorFn, DismissReasons, Selector, TransitionDurations } from './models';
3import * as ɵngcc0 from '@angular/core';
4export declare class ModalOptions<T = Record<string, unknown>> {
5 /**
6 * Allow user to ID for the modal. Otherwise, a unique number will be given
7 */
8 id?: number | string;
9 /**
10 * Includes a modal-backdrop element. Alternatively,
11 * specify static for a backdrop which doesn't close the modal on click.
12 */
13 backdrop?: boolean | 'static';
14 /**
15 * Closes the modal when escape key is pressed.
16 */
17 keyboard?: boolean;
18 focus?: boolean;
19 /**
20 * Shows the modal when initialized.
21 */
22 show?: boolean;
23 /**
24 * Ignore the backdrop click
25 */
26 ignoreBackdropClick?: boolean;
27 /**
28 * Css class for opened modal
29 */
30 class?: string;
31 /**
32 * Toggle animation
33 */
34 animated?: boolean;
35 /**
36 * Modal data
37 */
38 initialState?: Partial<T>;
39 /**
40 * Function to intercept the closure
41 */
42 closeInterceptor?: CloseInterceptorFn;
43 /**
44 * Modal providers
45 */
46 providers?: StaticProvider[];
47 /**
48 * aria-labelledby attribute value to set on the modal window
49 */
50 ariaLabelledBy?: string;
51 /**
52 * aria-describedby attribute value to set on the modal window
53 */
54 ariaDescribedby?: string;
55 static ɵfac: ɵngcc0.ɵɵFactoryDef<ModalOptions<any>, never>;
56 static ɵprov: ɵngcc0.ɵɵInjectableDef<ModalOptions<any>>;
57}
58export declare const modalConfigDefaults: ModalOptions;
59export declare const MODAL_CONFIG_DEFAULT_OVERRIDE: InjectionToken<ModalOptions>;
60export declare const CLASS_NAME: ClassName;
61export declare const SELECTOR: Selector;
62export declare const TRANSITION_DURATIONS: TransitionDurations;
63export declare const DISMISS_REASONS: DismissReasons;
64
65//# sourceMappingURL=modal-options.class.d.ts.map
\No newline at end of file