UNPKG

2.25 kBSource Map (JSON)View Raw
1{"version":3,"file":"modal-options.class.d.ts","sources":["modal-options.class.d.ts"],"names":[],"mappings":"AAAA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA","sourcesContent":["import { StaticProvider, InjectionToken } from '@angular/core';\nimport { ClassName, CloseInterceptorFn, DismissReasons, Selector, TransitionDurations } from './models';\nexport declare class ModalOptions<T = Record<string, unknown>> {\n /**\n * Allow user to ID for the modal. Otherwise, a unique number will be given\n */\n id?: number | string;\n /**\n * Includes a modal-backdrop element. Alternatively,\n * specify static for a backdrop which doesn't close the modal on click.\n */\n backdrop?: boolean | 'static';\n /**\n * Closes the modal when escape key is pressed.\n */\n keyboard?: boolean;\n focus?: boolean;\n /**\n * Shows the modal when initialized.\n */\n show?: boolean;\n /**\n * Ignore the backdrop click\n */\n ignoreBackdropClick?: boolean;\n /**\n * Css class for opened modal\n */\n class?: string;\n /**\n * Toggle animation\n */\n animated?: boolean;\n /**\n * Modal data\n */\n initialState?: Partial<T>;\n /**\n * Function to intercept the closure\n */\n closeInterceptor?: CloseInterceptorFn;\n /**\n * Modal providers\n */\n providers?: StaticProvider[];\n /**\n * aria-labelledby attribute value to set on the modal window\n */\n ariaLabelledBy?: string;\n /**\n * aria-describedby attribute value to set on the modal window\n */\n ariaDescribedby?: string;\n}\nexport declare const modalConfigDefaults: ModalOptions;\nexport declare const MODAL_CONFIG_DEFAULT_OVERRIDE: InjectionToken<ModalOptions>;\nexport declare const CLASS_NAME: ClassName;\nexport declare const SELECTOR: Selector;\nexport declare const TRANSITION_DURATIONS: TransitionDurations;\nexport declare const DISMISS_REASONS: DismissReasons;\n"]}
\No newline at end of file