import { ModalOpenContext , ModalOpenContextBuilder , FluentAssignMethod , extend , arrayUnion } from 'ngx-modialog' ; const DEFAULT_VALUES = { dialogClass : 'modal-dialog' , showClose : false } ; const DEFAULT_SETTERS = [ 'dialogClass' , 'size' , 'showClose' ] ; export type BootstrapModalSize = 'sm' | 'lg' ; export class BSModalContext extends ModalOpenContext { /**
     * A Class for the modal dialog container.
     * Default: modal-dialog
     */ dialogClass : string ; /**
     * Size of the modal. 'lg' or 'sm' only.
     *
     * If you want to use custom sizes leave this empty and set the dialogClass property.
     * e.g: dialogClass = 'modal-dialog my-custom-dialog`
     * NOTE: No validation.
     * Default: ''
     */ size : BootstrapModalSize ; /**
     * When true, show a close button on the top right corner.
     */ showClose : boolean ; normalize ( ) { if ( ! this . dialogClass ) { this . dialogClass = DEFAULT_VALUES . dialogClass ; } super . normalize ( ) ; } } export class BSModalContextBuilder < T extends BSModalContext > extends ModalOpenContextBuilder < T > { /**
     * A Class for the modal dialog container.
     * Default: modal-dialog
     */ dialogClass : FluentAssignMethod < string , this > ; /**
     * Size of the modal. 'lg' or 'sm' only.
     *
     * If you want to use custom sizes leave this empty and set the dialogClass property.
     * e.g: dialogClass = 'modal-dialog my-custom-dialog`
     * NOTE: No validation.
     * Default: ''
     */ size : FluentAssignMethod < BootstrapModalSize , this > ; /**
     * When true, show a close button on the top right corner.
     */ showClose : FluentAssignMethod < boolean , this > ; constructor ( defaultValues = undefined , initialSetters = undefined , baseType = undefined ) { super ( extend < any > ( DEFAULT_VALUES , defaultValues || { } ) , arrayUnion < string > ( DEFAULT_SETTERS , initialSetters || [ ] ) , baseType || < any > BSModalContext ) ; } }