adminforth 2.26.0-next.28 → 2.26.0-next.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,13 @@
6
6
  <slot name="trigger"></slot>
7
7
  </div>
8
8
  <Teleport to="body">
9
- <div v-show="isModalOpen" v-if="!removeFromDom" @click="backdropClick" class="bg-black/50 overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full h-full md:inset-0 h-1rem max-h-full flex" >
9
+ <div
10
+ v-show="isModalOpen"
11
+ v-if="!removeFromDom"
12
+ @click="backdropClick"
13
+ class="bg-black/50 overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full h-full md:inset-0 h-1rem max-h-full flex"
14
+ :class="props.backgroundCustomClasses"
15
+ >
10
16
  <!-- Modal content -->
11
17
  <div v-bind="$attrs" class="relative bg-lightDialogBackgorund rounded-lg shadow-sm dark:bg-darkDialogBackgorund">
12
18
 
@@ -19,6 +25,7 @@
19
25
  <div
20
26
  v-if="showConfirmationOnClose"
21
27
  class="fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 z-[60]"
28
+ :class="props.modalCustomClasses"
22
29
  >
23
30
  <div class="bg-white dark:bg-gray-800 p-6 rounded-lg shadow-lg max-w-sm w-full">
24
31
  <h2 class="text-lg font-semibold mb-4 text-lightDialogHeaderText dark:text-darkDialogHeaderText">Confirm Close</h2>
@@ -64,6 +71,8 @@ interface DialogProps {
64
71
  askForCloseConfirmation?: boolean
65
72
  closeConfirmationText?: string
66
73
  removeFromDomOnClose?: boolean
74
+ backgroundCustomClasses?: string
75
+ modalCustomClasses?: string
67
76
  }
68
77
 
69
78
  const props = withDefaults(defineProps<DialogProps>(), {
@@ -74,6 +83,8 @@ const props = withDefaults(defineProps<DialogProps>(), {
74
83
  askForCloseConfirmation: false,
75
84
  closeConfirmationText: 'Are you sure you want to close this dialog?',
76
85
  removeFromDomOnClose: false,
86
+ backgroundCustomClasses: '',
87
+ modalCustomClasses: '',
77
88
  })
78
89
 
79
90
  const showConfirmationOnClose = ref(false);
@@ -3,6 +3,8 @@
3
3
  <Modal
4
4
  ref="modalRef"
5
5
  :beforeCloseFunction="()=>{modalStore.onAcceptFunction(false);modalStore.isOpened=false}"
6
+ backgroundCustomClasses="z-[998]"
7
+ modalCustomClasses="z-[999]"
6
8
  >
7
9
  <div class="relative p-4 w-full max-w-md max-h-full" >
8
10
  <button type="button" @click="modalStore.togleModal()" class="absolute top-3 end-2.5 text-lightAcceptModalCloseIcon bg-transparent hover:bg-lightAcceptModalCloseIconHoverBackground hover:text-lightAcceptModalCloseIconHover rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:text-darkAcceptModalCloseIcon dark:hover:bg-darkAcceptModalCloseIconHoverBackground dark:hover:text-darkAcceptModalCloseIconHover" >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "2.26.0-next.28",
3
+ "version": "2.26.0-next.29",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",