@@ -1053,7 +1053,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10531053 tag : {
10541054 type : String ,
10551055 default : "ul"
1056- }
1056+ } ,
1057+ light : Boolean ,
1058+ small : Boolean
10571059 } ,
10581060 setup ( __props ) {
10591061 const props = __props ;
@@ -1062,7 +1064,9 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
10621064 "list-group" ,
10631065 props . horizontal && horizontalClass . value ,
10641066 props . flush && "list-group-flush" ,
1065- props . numbered && "list-group-numbered"
1067+ props . numbered && "list-group-numbered" ,
1068+ props . light && "list-group-light" ,
1069+ props . small && "list-group-small"
10661070 ] ;
10671071 } ) ;
10681072 const horizontalClass = computed ( ( ) => {
@@ -1105,21 +1109,38 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11051109 type : Boolean ,
11061110 default : false
11071111 } ,
1108- color : String
1112+ color : String ,
1113+ noBorder : Boolean ,
1114+ spacing : {
1115+ type : [ Boolean , String ] ,
1116+ default : false
1117+ } ,
1118+ ripple : {
1119+ type : [ Object , Boolean ] ,
1120+ default : false
1121+ }
11091122 } ,
11101123 setup ( __props ) {
11111124 const props = __props ;
1125+ const spacingClass = computed ( ( ) => {
1126+ if ( ! props . spacing ) {
1127+ return ;
1128+ }
1129+ return props . spacing !== true ? props . spacing : "px-3" ;
1130+ } ) ;
11121131 const className = computed ( ( ) => {
11131132 return [
11141133 "list-group-item" ,
11151134 props . active && "active" ,
11161135 props . disabled && "disabled" ,
11171136 props . action && "list-group-item-action" ,
1118- props . color && `list-group-item-${ props . color } `
1137+ props . color && `list-group-item-${ props . color } ` ,
1138+ props . noBorder && `border-0` ,
1139+ props . spacing && spacingClass . value
11191140 ] ;
11201141 } ) ;
11211142 return ( _ctx , _cache ) => {
1122- return openBlock ( ) , createBlock ( resolveDynamicComponent ( __props . tag ) , {
1143+ return withDirectives ( ( openBlock ( ) , createBlock ( resolveDynamicComponent ( __props . tag ) , {
11231144 class : normalizeClass ( unref ( className ) ) ,
11241145 "aria-current" : __props . active ? true : null ,
11251146 "aria-disabled" : __props . disabled ? true : null ,
@@ -1129,7 +1150,9 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
11291150 renderSlot ( _ctx . $slots , "default" )
11301151 ] ) ,
11311152 _ : 3
1132- } , 8 , [ "class" , "aria-current" , "aria-disabled" , "disabled" ] ) ;
1153+ } , 8 , [ "class" , "aria-current" , "aria-disabled" , "disabled" ] ) ) , [
1154+ [ unref ( RippleDirective ) , props . ripple ]
1155+ ] ) ;
11331156 } ;
11341157 }
11351158} ) ;
@@ -3457,6 +3480,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
34573480 } ,
34583481 setup ( __props ) {
34593482 const props = __props ;
3483+ const animationDuration = 550 ;
34603484 const className = computed ( ( ) => {
34613485 return [
34623486 "dropdown-menu" ,
@@ -3482,7 +3506,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
34823506 }
34833507 setTimeout ( ( ) => {
34843508 fadeClass . value = false ;
3485- } , 300 ) ;
3509+ } , animationDuration ) ;
34863510 } ;
34873511 const setMenuMountedState = inject ( "setMenuMountedState" , ( ) => false ) ;
34883512 const isActive = inject ( "isActive" , false ) ;
@@ -3498,7 +3522,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
34983522 setInactive ( ) ;
34993523 setTimeout ( ( ) => {
35003524 setMenuMountedState ( false ) ;
3501- } , 300 ) ;
3525+ } , animationDuration ) ;
35023526 }
35033527 }
35043528 ) ;
@@ -3518,7 +3542,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
35183542 } else if ( isActive && ! isActive . value && isPopperActive && ! isPopperActive . value ) {
35193543 setTimeout ( ( ) => {
35203544 return false ;
3521- } , 300 ) ;
3545+ } , animationDuration ) ;
35223546 }
35233547 return false ;
35243548 } ) ;
@@ -4376,9 +4400,12 @@ function useMDBModal(props, emit) {
43764400 el . style . opacity = "0" ;
43774401 el . style . display = "block" ;
43784402 setScrollbar ( ) ;
4379- document . body . style . paddingRight = `${ scrollbarWidth . value } px` ;
4380- el . style . paddingRight = `${ scrollbarWidth . value } px` ;
4381- document . body . classList . add ( "modal-open" ) ;
4403+ isOnlyNonInvasiveModal ( ) ;
4404+ if ( onlyNonInvasiveModal . value ) {
4405+ document . body . style . paddingRight = `${ scrollbarWidth . value } px` ;
4406+ el . style . paddingRight = `${ scrollbarWidth . value } px` ;
4407+ document . body . classList . add ( "modal-open" ) ;
4408+ }
43824409 emit ( "show" , root . value ) ;
43834410 } ;
43844411 const afterEnter = ( el ) => {
@@ -4403,11 +4430,13 @@ function useMDBModal(props, emit) {
44034430 const child = el . childNodes [ 0 ] ;
44044431 child . style . transform = dialogTransform . value ;
44054432 el . style . opacity = "0" ;
4406- setTimeout ( ( ) => {
4407- el . style . paddingRight = "" ;
4408- document . body . style . paddingRight = "" ;
4409- document . body . classList . remove ( "modal-open" ) ;
4410- } , 200 ) ;
4433+ if ( onlyNonInvasiveModal . value ) {
4434+ setTimeout ( ( ) => {
4435+ el . style . paddingRight = "" ;
4436+ document . body . style . paddingRight = "" ;
4437+ document . body . classList . remove ( "modal-open" ) ;
4438+ } , 200 ) ;
4439+ }
44114440 emit ( "hide" , thisElement . value ) ;
44124441 if ( props . keyboard ) {
44134442 off ( window , "keyup" , handleEscKeyUp ) ;
@@ -4423,6 +4452,10 @@ function useMDBModal(props, emit) {
44234452 onBeforeUnmount ( ( ) => {
44244453 off ( window , "keyup" , handleEscKeyUp ) ;
44254454 } ) ;
4455+ const onlyNonInvasiveModal = ref ( true ) ;
4456+ const isOnlyNonInvasiveModal = ( ) => {
4457+ onlyNonInvasiveModal . value = document . body . classList . contains ( "modal-open" ) ? document . querySelector ( ".modal.non-invasive" ) ? true : false : true ;
4458+ } ;
44264459 return {
44274460 wrapperClass,
44284461 dialogClass,
@@ -4447,7 +4480,9 @@ function useMDBModal(props, emit) {
44474480 dialogTransform,
44484481 animateStaticModal,
44494482 fullscreenClass,
4450- clickFromBackdrop
4483+ clickFromBackdrop,
4484+ isOnlyNonInvasiveModal,
4485+ onlyNonInvasiveModal
44514486 } ;
44524487}
44534488const __default__$y = {
@@ -7224,10 +7259,11 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
72247259} ) ;
72257260const _hoisted_1$2 = [ "for" ] ;
72267261const _hoisted_2$2 = [ "id" ] ;
7262+ const MDBFileList = typeof FileList !== "undefined" ? FileList : Object ;
72277263const __default__$2 = {
72287264 name : "MDBFile"
72297265} ;
7230- const _sfc_main$2 = /* @__PURE__ */ defineComponent ( {
7266+ const _sfc_main$2 = defineComponent ( {
72317267 ...__default__$2 ,
72327268 props : {
72337269 id : String ,
@@ -7239,7 +7275,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
72397275 label : String ,
72407276 labelClass : String ,
72417277 modelValue : {
7242- type : [ FileList , Array ] ,
7278+ type : [ MDBFileList , Array ] ,
72437279 default : ( ) => [ ]
72447280 } ,
72457281 size : String ,
0 commit comments