@@ -2675,7 +2675,24 @@ var _ModalBase = function (_Vue) {
26752675
26762676 function _ModalBase ( ) {
26772677 classCallCheck ( this , _ModalBase ) ;
2678- return possibleConstructorReturn ( this , ( _ModalBase . __proto__ || Object . getPrototypeOf ( _ModalBase ) ) . apply ( this , arguments ) ) ;
2678+
2679+ /**
2680+ * Allow second modal to be opened on top of the first modal.
2681+ *
2682+ * @default false
2683+ * @type {boolean }
2684+ */
2685+ var _this = possibleConstructorReturn ( this , ( _ModalBase . __proto__ || Object . getPrototypeOf ( _ModalBase ) ) . apply ( this , arguments ) ) ;
2686+
2687+ _this . allowMultiple = false ;
2688+ /**
2689+ * First input in modal will receive focus when shown.
2690+ *
2691+ * @default false
2692+ * @type {boolean }
2693+ */
2694+ _this . autofocus = false ;
2695+ return _this ;
26792696 }
26802697
26812698 return _ModalBase ;
@@ -2697,6 +2714,12 @@ __decorate([vueTyped.Prop({
26972714 type : Boolean
26982715} ) ] , _ModalBase . prototype , "closable" , void 0 ) ;
26992716__decorate ( [ vueTyped . Prop ( ) ] , _ModalBase . prototype , "transition" , void 0 ) ;
2717+ __decorate ( [ vueTyped . Prop ( {
2718+ type : Boolean
2719+ } ) ] , _ModalBase . prototype , "allowMultiple" , void 0 ) ;
2720+ __decorate ( [ vueTyped . Prop ( {
2721+ type : Boolean
2722+ } ) ] , _ModalBase . prototype , "autofocus" , void 0 ) ;
27002723
27012724var Modal = function ( _ModalBase2 ) {
27022725 inherits ( Modal , _ModalBase2 ) ;
@@ -2725,7 +2748,9 @@ var Modal = function (_ModalBase2) {
27252748 onHidden : emit ( 'hidden' ) ,
27262749 onVisible : emit ( 'visible' ) ,
27272750 closable : this . closable ,
2728- transition : this . transition
2751+ transition : this . transition ,
2752+ allowMultiple : this . allowMultiple ,
2753+ autofocus : this . autofocus
27292754 } ) ;
27302755 if ( this . attachShow ) $ ( this . $el ) . modal ( 'attach events' , this . attachShow , 'show' ) ;
27312756 if ( this . attachHide ) $ ( this . $el ) . modal ( 'attach events' , this . attachHide , 'hide' ) ;
0 commit comments