vlite3 1.4.40 → 1.4.41
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.
- package/components/AppShell/AppShellLayoutClassic.vue.js +27 -28
- package/components/AppShell/AppShellLayoutDashboard.vue.js +48 -48
- package/components/AppShell/AppShellLayoutDock.vue.js +51 -51
- package/components/AppShell/AppShellLayoutHeaderShell.vue.js +69 -69
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.d.ts +2 -2
- package/components/AppShell/AppShellLayoutSidebarFirst.vue.js +78 -78
- package/components/AppShell/AppShellLayoutStorefront.vue.js +14 -15
- package/components/AppShell/useAppShell.d.ts +4 -0
- package/components/AppShell/useAppShell.js +45 -40
- package/components/AsyncSelect/createAsyncSelect.js +10 -10
- package/components/AttachmentsList/AttachmentsList.vue.d.ts +50 -2
- package/components/AttachmentsList/AttachmentsList.vue.js +289 -272
- package/components/AttachmentsList/types.d.ts +37 -0
- package/components/BackButton.vue.js +2 -2
- package/components/Button.vue.d.ts +1 -0
- package/components/Button.vue.js +5 -241
- package/components/Button.vue2.js +245 -2
- package/components/ButtonGroup.vue.js +2 -2
- package/components/ButtonGroup.vue2.js +4 -1
- package/components/Calendar/Calendar.vue2.js +16 -16
- package/components/Cart/CartCouponInput.vue.js +24 -24
- package/components/Cart/CartEmptyState.vue.js +4 -4
- package/components/Cart/CartLineItem.vue.js +33 -33
- package/components/Cart/CartVariant1.vue.js +3 -3
- package/components/Cart/CartVariant2.vue.js +5 -5
- package/components/Cart/CartVariant3.vue.js +25 -25
- package/components/Cart/CartVariant4.vue.js +9 -9
- package/components/CategoryManager/CategoryManager.vue2.js +19 -19
- package/components/CategoryManager/CategoryNode.vue.js +4 -4
- package/components/CategoryMenu/CategoryMenu.vue.js +3 -2
- package/components/CategoryMenu/CategoryMenuVariant1.vue2.js +3 -2
- package/components/Chat/ChatInterface.vue.js +23 -23
- package/components/Clipboard.vue.d.ts +7 -1
- package/components/Clipboard.vue.js +19 -17
- package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +22 -22
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +8 -8
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/Comment/CommentEditor.vue.js +14 -14
- package/components/Comment/CommentItem.vue2.js +6 -6
- package/components/Comment/CommentThread.vue.js +4 -4
- package/components/DataList/DataList.vue.js +7 -7
- package/components/DataTable/DataTable.vue.d.ts +8 -0
- package/components/DataTable/DataTable.vue.js +374 -263
- package/components/DataTable/DataTableRow.vue.d.ts +23 -2
- package/components/DataTable/DataTableRow.vue.js +5 -198
- package/components/DataTable/DataTableRow.vue2.js +360 -2
- package/components/DataTable/dataTableHeaders.d.ts +18 -0
- package/components/DataTable/dataTableHeaders.js +9 -0
- package/components/DataTable/types.d.ts +6 -0
- package/components/DatePicker.vue.js +8 -9
- package/components/DateRangePicker.vue2.js +34 -34
- package/components/Dropdown/Dropdown.vue.d.ts +7 -2
- package/components/Dropdown/Dropdown.vue.js +146 -139
- package/components/Dropdown/DropdownTrigger.vue.js +6 -6
- package/components/ExportData/ExportData.vue.js +15 -15
- package/components/FilePicker/FilePickerDropzone.vue.js +16 -16
- package/components/FilePicker/FilePickerInput.vue.js +3 -2
- package/components/FilePicker/FilePreview.vue.js +3 -3
- package/components/FileTree/FileTree.vue.js +4 -4
- package/components/FileTree/FileTree.vue2.js +9 -9
- package/components/FileTree/FileTreeNode.vue.js +76 -72
- package/components/Footer/Variant1.vue.js +48 -48
- package/components/Footer/Variant2.vue.js +42 -42
- package/components/Form/AccordionView.vue.d.ts +1 -1
- package/components/Form/{AccordionView.vue.js → AccordionView.vue2.js} +3 -3
- package/components/Form/AccordionView.vue3.js +61 -57
- package/components/Form/Form.vue2.js +41 -41
- package/components/Form/TableRow.vue.d.ts +7 -0
- package/components/Form/TableRow.vue.js +187 -41
- package/components/Form/TableView.vue.d.ts +11 -1
- package/components/Form/TableView.vue.js +71 -49
- package/components/Form/composables/useForm.js +146 -142
- package/components/Form/index.vue.d.ts +5 -1
- package/components/Form/index.vue.js +2 -2
- package/components/Form/index.vue2.js +45 -38
- package/components/Form/rowHelpers.d.ts +20 -0
- package/components/Form/rowHelpers.js +76 -28
- package/components/Form/types.d.ts +11 -0
- package/components/GoogleLogin.vue.js +4 -4
- package/components/IconPicker.vue.js +9 -9
- package/components/ImportData/ImportData.vue.js +11 -11
- package/components/ImportData/ImportStep1.vue.js +10 -10
- package/components/ImportData/ImportStep2.vue.js +15 -14
- package/components/Input.vue.js +133 -129
- package/components/Kanban/KanbanBoard.vue.js +1 -1
- package/components/Kanban/KanbanBoard.vue2.js +9 -9
- package/components/MultiSelect/MultiSelect.vue.js +3 -2
- package/components/Navbar/Navbar.vue.js +17 -17
- package/components/Navbar/NavbarGroup.vue.js +8 -7
- package/components/Navbar/NavbarItem.vue.js +40 -39
- package/components/Navbar/NavbarTabs.vue.js +6 -184
- package/components/Navbar/NavbarTabs.vue2.js +204 -0
- package/components/Navbar/useNavbar.js +3 -3
- package/components/NavbarCommandPalette.vue.js +2 -2
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +81 -77
- package/components/OTPInput/OTPInput.vue.js +24 -23
- package/components/Pagination/Pagination.vue.d.ts +1 -1
- package/components/Pagination/Pagination.vue.js +5 -274
- package/components/Pagination/Pagination.vue2.js +283 -2
- package/components/PermissionMatrix/PermissionTopBar.vue.js +19 -18
- package/components/PricingPlan/PricingPlanItem.vue.js +7 -7
- package/components/Screen/Screen.vue.d.ts +1 -1
- package/components/Screen/Screen.vue.js +21 -21
- package/components/Screen/ScreenFilter.vue.js +6 -6
- package/components/Screen/components/ScreenAddAction.vue.js +3 -3
- package/components/Screen/components/ScreenEmptyState.vue.js +10 -10
- package/components/Screen/components/ScreenExportModal.vue.js +12 -12
- package/components/Screen/components/ScreenOptionsDropdown.vue.js +5 -5
- package/components/Screen/components/ScreenToolbar.vue.js +15 -15
- package/components/SidePanel.vue.js +2 -2
- package/components/SidePanel.vue2.js +6 -6
- package/components/SidebarMenu/SidebarMenu.vue.js +77 -72
- package/components/SidebarMenu/SidebarMenuItem.vue.js +172 -168
- package/components/Slider.vue.js +123 -108
- package/components/Tabes/Tabes.vue.d.ts +8 -3
- package/components/Tabes/Tabes.vue.js +2 -2
- package/components/Tabes/Tabes.vue2.js +209 -200
- package/components/Tabes/tabes.utils.d.ts +23 -0
- package/components/Tabes/tabes.utils.js +39 -16
- package/components/Textarea.vue.d.ts +2 -0
- package/components/Textarea.vue.js +19 -16
- package/components/ThemeToggle.vue.js +8 -8
- package/components/ToastNotification.vue2.js +10 -10
- package/components/TreeConnectors/TreeConnectors.vue.d.ts +1 -1
- package/components/TreeConnectors/TreeConnectors.vue.js +13 -8
- package/components/TreeConnectors/geometry.js +77 -69
- package/components/Workbook/WorkbookAddButton.vue.js +2 -2
- package/composables/useRtl.d.ts +14 -0
- package/composables/useRtl.js +33 -0
- package/index.js +470 -471
- package/package.json +1 -1
- package/style.css +86 -1
- package/types/button.d.ts +8 -0
- package/components/Navbar/NavbarTabs.vue3.js +0 -5
|
@@ -1,4 +1,285 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as U, computed as r, openBlock as i, createElementBlock as l, normalizeClass as o, createElementVNode as v, toDisplayString as d, Fragment as k, renderList as R, createVNode as C, createCommentVNode as P, createTextVNode as h, createBlock as b, withCtx as j } from "vue";
|
|
2
|
+
import W from "../Icon.vue.js";
|
|
3
|
+
import c from "../Button.vue.js";
|
|
4
|
+
import { $t as x } from "../../utils/i18n.js";
|
|
5
|
+
import { useRtl as X } from "../../composables/useRtl.js";
|
|
6
|
+
const Y = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "pagination-meta flex flex-wrap items-center justify-center md:justify-start gap-4 order-2 md:order-1",
|
|
9
|
+
dir: "ltr"
|
|
10
|
+
}, Z = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "flex items-center gap-2 text-sm text-muted-foreground"
|
|
13
|
+
}, p = { class: "whitespace-nowrap" }, _ = { class: "relative" }, ee = ["value", "disabled"], te = ["value"], ne = { class: "whitespace-nowrap" }, ae = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "hidden md:block w-px h-4 bg-border"
|
|
16
|
+
}, se = {
|
|
17
|
+
key: 2,
|
|
18
|
+
class: "text-sm text-muted-foreground whitespace-nowrap"
|
|
19
|
+
}, ie = { class: "font-medium text-foreground" }, re = { class: "font-medium text-foreground" }, le = {
|
|
20
|
+
class: "pagination-nav flex items-center justify-center gap-1 order-1 md:order-2",
|
|
21
|
+
"aria-label": "Pagination"
|
|
22
|
+
}, oe = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "w-8 h-8 flex items-center justify-center text-muted-foreground select-none"
|
|
25
|
+
}, fe = /* @__PURE__ */ U({
|
|
26
|
+
__name: "Pagination",
|
|
27
|
+
props: {
|
|
28
|
+
currentPage: { default: 1 },
|
|
29
|
+
totalPages: {},
|
|
30
|
+
totalItems: { default: 0 },
|
|
31
|
+
siblingCount: { default: 1 },
|
|
32
|
+
disabled: { type: Boolean, default: !1 },
|
|
33
|
+
showEdges: { type: Boolean, default: !1 },
|
|
34
|
+
showPageInfo: { type: Boolean, default: !1 },
|
|
35
|
+
showItemsPerPage: { type: Boolean, default: !1 },
|
|
36
|
+
itemsPerPage: { default: 10 },
|
|
37
|
+
itemsPerPageOptions: { default: () => [10, 25, 50, 100] },
|
|
38
|
+
navType: { default: "text" },
|
|
39
|
+
alignment: {},
|
|
40
|
+
activeVariant: { default: "solid" },
|
|
41
|
+
rounded: { default: "full" }
|
|
42
|
+
},
|
|
43
|
+
emits: ["update:currentPage", "change", "update:itemsPerPage", "change:itemsPerPage"],
|
|
44
|
+
setup(e, { emit: V }) {
|
|
45
|
+
const s = e, I = X(), E = r(() => I.value ? "lucide:chevrons-right" : "lucide:chevrons-left"), $ = r(() => I.value ? "lucide:chevron-right" : "lucide:chevron-left"), N = r(() => I.value ? "lucide:chevron-left" : "lucide:chevron-right"), L = r(() => I.value ? "lucide:chevrons-left" : "lucide:chevrons-right"), f = V, g = (t) => {
|
|
46
|
+
s.disabled || t < 1 || t > s.totalPages || t !== s.currentPage && (f("update:currentPage", t), f("change", t));
|
|
47
|
+
}, A = (t) => {
|
|
48
|
+
const a = t.target, n = parseInt(a.value);
|
|
49
|
+
f("update:itemsPerPage", n), f("change:itemsPerPage", n), f("update:currentPage", 1), f("change", 1);
|
|
50
|
+
}, F = r(() => {
|
|
51
|
+
const t = s.siblingCount ?? 1;
|
|
52
|
+
if (t * 2 + 5 >= s.totalPages)
|
|
53
|
+
return z(1, s.totalPages);
|
|
54
|
+
const n = Math.max(s.currentPage - t, 1), y = Math.min(s.currentPage + t, s.totalPages), m = n > 2, S = y < s.totalPages - 2, B = 1, D = s.totalPages;
|
|
55
|
+
if (!m && S) {
|
|
56
|
+
const w = 3 + 2 * t;
|
|
57
|
+
return [...z(1, w), "DOTS", D];
|
|
58
|
+
}
|
|
59
|
+
if (m && !S) {
|
|
60
|
+
const w = 3 + 2 * t, O = z(s.totalPages - w + 1, s.totalPages);
|
|
61
|
+
return [B, "DOTS", ...O];
|
|
62
|
+
}
|
|
63
|
+
if (m && S) {
|
|
64
|
+
const w = z(n, y);
|
|
65
|
+
return [B, "DOTS", ...w, "DOTS", D];
|
|
66
|
+
}
|
|
67
|
+
return [];
|
|
68
|
+
}), z = (t, a) => {
|
|
69
|
+
const n = a - t + 1;
|
|
70
|
+
return Array.from({ length: n }, (y, m) => m + t);
|
|
71
|
+
}, M = r(() => {
|
|
72
|
+
if (s.alignment)
|
|
73
|
+
switch (s.alignment) {
|
|
74
|
+
case "start":
|
|
75
|
+
return "justify-start";
|
|
76
|
+
case "end":
|
|
77
|
+
return "justify-end";
|
|
78
|
+
case "between":
|
|
79
|
+
return "justify-between!";
|
|
80
|
+
default:
|
|
81
|
+
return "justify-center";
|
|
82
|
+
}
|
|
83
|
+
return s.showPageInfo || s.showItemsPerPage ? "justify-between" : "justify-center";
|
|
84
|
+
}), u = r(() => {
|
|
85
|
+
switch (s.rounded) {
|
|
86
|
+
case "none":
|
|
87
|
+
return "rounded-none";
|
|
88
|
+
case "sm":
|
|
89
|
+
return "rounded-sm";
|
|
90
|
+
case "lg":
|
|
91
|
+
return "rounded-lg";
|
|
92
|
+
case "full":
|
|
93
|
+
return "rounded-full";
|
|
94
|
+
default:
|
|
95
|
+
return "rounded-md";
|
|
96
|
+
}
|
|
97
|
+
}), T = r(() => {
|
|
98
|
+
switch (s.activeVariant) {
|
|
99
|
+
case "solid":
|
|
100
|
+
return {
|
|
101
|
+
variant: "primary",
|
|
102
|
+
extraClass: "pointer-events-none z-10"
|
|
103
|
+
};
|
|
104
|
+
case "ghost":
|
|
105
|
+
return {
|
|
106
|
+
variant: "ghost",
|
|
107
|
+
extraClass: "bg-accent text-accent-foreground pointer-events-none z-10 font-semibold"
|
|
108
|
+
};
|
|
109
|
+
default:
|
|
110
|
+
return {
|
|
111
|
+
variant: "outline",
|
|
112
|
+
extraClass: "bg-white text-primary border-primary ring-1 ring-primary pointer-events-none z-10"
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
}), q = r(() => {
|
|
116
|
+
const t = x("vlite.pagination.show");
|
|
117
|
+
return t !== "vlite.pagination.show" ? t : "Show";
|
|
118
|
+
}), G = r(() => {
|
|
119
|
+
const t = x("vlite.pagination.perPage");
|
|
120
|
+
return t !== "vlite.pagination.perPage" ? t : "per page";
|
|
121
|
+
}), H = r(() => {
|
|
122
|
+
const t = x("vlite.pagination.page");
|
|
123
|
+
return t !== "vlite.pagination.page" ? t : "Page";
|
|
124
|
+
}), J = r(() => {
|
|
125
|
+
const t = x("vlite.pagination.of");
|
|
126
|
+
return t !== "vlite.pagination.of" ? t : "of";
|
|
127
|
+
}), K = r(() => {
|
|
128
|
+
const t = x("vlite.pagination.previous");
|
|
129
|
+
return t !== "vlite.pagination.previous" ? t : "Previous";
|
|
130
|
+
}), Q = r(() => {
|
|
131
|
+
const t = x("vlite.pagination.next");
|
|
132
|
+
return t !== "vlite.pagination.next" ? t : "Next";
|
|
133
|
+
});
|
|
134
|
+
return (t, a) => (i(), l("div", {
|
|
135
|
+
class: o(["pagination flex flex-col items-center gap-4 w-full", [M.value]])
|
|
136
|
+
}, [
|
|
137
|
+
e.showPageInfo || e.showItemsPerPage ? (i(), l("div", Y, [
|
|
138
|
+
e.showItemsPerPage ? (i(), l("div", Z, [
|
|
139
|
+
v("span", p, d(q.value), 1),
|
|
140
|
+
v("div", _, [
|
|
141
|
+
v("select", {
|
|
142
|
+
value: e.itemsPerPage,
|
|
143
|
+
class: "appearance-none bg-background border border-border hover:border-accent text-foreground py-1 ps-2 pe-6 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary text-sm cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-colors",
|
|
144
|
+
disabled: e.disabled,
|
|
145
|
+
onChange: A
|
|
146
|
+
}, [
|
|
147
|
+
(i(!0), l(k, null, R(e.itemsPerPageOptions, (n) => (i(), l("option", {
|
|
148
|
+
key: n,
|
|
149
|
+
value: n
|
|
150
|
+
}, d(n), 9, te))), 128))
|
|
151
|
+
], 40, ee),
|
|
152
|
+
C(W, {
|
|
153
|
+
icon: "lucide:chevron-down",
|
|
154
|
+
class: "absolute end-1.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"
|
|
155
|
+
})
|
|
156
|
+
]),
|
|
157
|
+
v("span", ne, d(G.value), 1)
|
|
158
|
+
])) : P("", !0),
|
|
159
|
+
e.showItemsPerPage && e.showPageInfo ? (i(), l("div", ae)) : P("", !0),
|
|
160
|
+
e.showPageInfo ? (i(), l("span", se, [
|
|
161
|
+
h(d(H.value) + " ", 1),
|
|
162
|
+
v("span", ie, d(e.currentPage), 1),
|
|
163
|
+
h(" " + d(J.value) + " ", 1),
|
|
164
|
+
v("span", re, d(e.totalPages), 1)
|
|
165
|
+
])) : P("", !0)
|
|
166
|
+
])) : P("", !0),
|
|
167
|
+
v("nav", le, [
|
|
168
|
+
e.showEdges ? (i(), b(c, {
|
|
169
|
+
key: 0,
|
|
170
|
+
variant: "ghost",
|
|
171
|
+
size: "sm2",
|
|
172
|
+
icon: E.value,
|
|
173
|
+
class: o(u.value),
|
|
174
|
+
disabled: e.disabled || e.currentPage === 1,
|
|
175
|
+
onClick: a[0] || (a[0] = (n) => g(1))
|
|
176
|
+
}, null, 8, ["icon", "class", "disabled"])) : P("", !0),
|
|
177
|
+
e.navType === "icon" ? (i(), b(c, {
|
|
178
|
+
key: 1,
|
|
179
|
+
variant: "ghost",
|
|
180
|
+
size: "sm2",
|
|
181
|
+
icon: $.value,
|
|
182
|
+
class: o(u.value),
|
|
183
|
+
disabled: e.disabled || e.currentPage === 1,
|
|
184
|
+
onClick: a[1] || (a[1] = (n) => g(e.currentPage - 1))
|
|
185
|
+
}, null, 8, ["icon", "class", "disabled"])) : (i(), l(k, { key: 2 }, [
|
|
186
|
+
C(c, {
|
|
187
|
+
variant: "ghost",
|
|
188
|
+
size: "sm2",
|
|
189
|
+
class: o(["hidden sm:flex", u.value]),
|
|
190
|
+
disabled: e.disabled || e.currentPage === 1,
|
|
191
|
+
onClick: a[2] || (a[2] = (n) => g(e.currentPage - 1))
|
|
192
|
+
}, {
|
|
193
|
+
default: j(() => [
|
|
194
|
+
h(d(K.value), 1)
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["class", "disabled"]),
|
|
198
|
+
C(c, {
|
|
199
|
+
variant: "ghost",
|
|
200
|
+
size: "sm2",
|
|
201
|
+
icon: $.value,
|
|
202
|
+
class: o(["flex sm:hidden", u.value]),
|
|
203
|
+
disabled: e.disabled || e.currentPage === 1,
|
|
204
|
+
onClick: a[3] || (a[3] = (n) => g(e.currentPage - 1))
|
|
205
|
+
}, null, 8, ["icon", "class", "disabled"])
|
|
206
|
+
], 64)),
|
|
207
|
+
(i(!0), l(k, null, R(F.value, (n, y) => (i(), l(k, { key: y }, [
|
|
208
|
+
n === "DOTS" ? (i(), l("div", oe, " ... ")) : n === e.currentPage ? (i(), b(c, {
|
|
209
|
+
key: 1,
|
|
210
|
+
size: "sm2",
|
|
211
|
+
variant: T.value.variant,
|
|
212
|
+
class: o([
|
|
213
|
+
"w-8! h-8! px-0! py-0! flex items-center justify-center min-w-[2rem]",
|
|
214
|
+
T.value.extraClass,
|
|
215
|
+
u.value
|
|
216
|
+
]),
|
|
217
|
+
disabled: e.disabled
|
|
218
|
+
}, {
|
|
219
|
+
default: j(() => [
|
|
220
|
+
h(d(n), 1)
|
|
221
|
+
]),
|
|
222
|
+
_: 2
|
|
223
|
+
}, 1032, ["variant", "class", "disabled"])) : (i(), b(c, {
|
|
224
|
+
key: 2,
|
|
225
|
+
size: "sm2",
|
|
226
|
+
variant: "ghost",
|
|
227
|
+
class: o([
|
|
228
|
+
"w-8! h-8! px-0! py-0! border border-transparent flex items-center justify-center min-w-[2rem] text-gray-600 hover:bg-gray-100",
|
|
229
|
+
u.value
|
|
230
|
+
]),
|
|
231
|
+
disabled: e.disabled,
|
|
232
|
+
onClick: (m) => g(n)
|
|
233
|
+
}, {
|
|
234
|
+
default: j(() => [
|
|
235
|
+
h(d(n), 1)
|
|
236
|
+
]),
|
|
237
|
+
_: 2
|
|
238
|
+
}, 1032, ["class", "disabled", "onClick"]))
|
|
239
|
+
], 64))), 128)),
|
|
240
|
+
e.navType === "icon" ? (i(), b(c, {
|
|
241
|
+
key: 3,
|
|
242
|
+
variant: "ghost",
|
|
243
|
+
size: "sm2",
|
|
244
|
+
icon: N.value,
|
|
245
|
+
class: o(u.value),
|
|
246
|
+
disabled: e.disabled || e.currentPage === e.totalPages,
|
|
247
|
+
onClick: a[4] || (a[4] = (n) => g(e.currentPage + 1))
|
|
248
|
+
}, null, 8, ["icon", "class", "disabled"])) : (i(), l(k, { key: 4 }, [
|
|
249
|
+
C(c, {
|
|
250
|
+
variant: "ghost",
|
|
251
|
+
size: "sm2",
|
|
252
|
+
class: o(["hidden sm:flex", u.value]),
|
|
253
|
+
disabled: e.disabled || e.currentPage === e.totalPages,
|
|
254
|
+
onClick: a[5] || (a[5] = (n) => g(e.currentPage + 1))
|
|
255
|
+
}, {
|
|
256
|
+
default: j(() => [
|
|
257
|
+
h(d(Q.value), 1)
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
}, 8, ["class", "disabled"]),
|
|
261
|
+
C(c, {
|
|
262
|
+
variant: "ghost",
|
|
263
|
+
size: "sm2",
|
|
264
|
+
icon: N.value,
|
|
265
|
+
class: o(["flex sm:hidden", u.value]),
|
|
266
|
+
disabled: e.disabled || e.currentPage === e.totalPages,
|
|
267
|
+
onClick: a[6] || (a[6] = (n) => g(e.currentPage + 1))
|
|
268
|
+
}, null, 8, ["icon", "class", "disabled"])
|
|
269
|
+
], 64)),
|
|
270
|
+
e.showEdges ? (i(), b(c, {
|
|
271
|
+
key: 5,
|
|
272
|
+
variant: "ghost",
|
|
273
|
+
size: "sm2",
|
|
274
|
+
icon: L.value,
|
|
275
|
+
class: o(u.value),
|
|
276
|
+
disabled: e.disabled || e.currentPage === e.totalPages,
|
|
277
|
+
onClick: a[7] || (a[7] = (n) => g(e.totalPages))
|
|
278
|
+
}, null, 8, ["icon", "class", "disabled"])) : P("", !0)
|
|
279
|
+
])
|
|
280
|
+
], 2));
|
|
281
|
+
}
|
|
282
|
+
});
|
|
2
283
|
export {
|
|
3
|
-
|
|
284
|
+
fe as default
|
|
4
285
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w, computed as k, openBlock as l, createElementBlock as n, createElementVNode as
|
|
1
|
+
import { defineComponent as w, computed as k, openBlock as l, createElementBlock as n, createElementVNode as s, createVNode as c, createCommentVNode as i, unref as C, withCtx as p, withModifiers as G, createBlock as z, toDisplayString as a, normalizeClass as u } from "vue";
|
|
2
2
|
import $ from "../Input.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import y from "../Icon.vue.js";
|
|
@@ -7,6 +7,7 @@ import B from "../Dropdown/Dropdown.vue.js";
|
|
|
7
7
|
import "../../core/config.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
|
+
/* empty css */
|
|
10
11
|
const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3 mb-4" }, A = { class: "flex items-center gap-2 flex-1 w-full sm:max-w-lg" }, Q = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "flex-1"
|
|
@@ -16,7 +17,7 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
16
17
|
}, N = ["onClick"], P = { class: "text-sm" }, E = {
|
|
17
18
|
key: 0,
|
|
18
19
|
class: "border-t px-3 py-1.5"
|
|
19
|
-
}, F = { class: "flex items-center gap-3 ml-auto" },
|
|
20
|
+
}, F = { class: "flex items-center gap-3 ml-auto" }, L = /* @__PURE__ */ w({
|
|
20
21
|
__name: "PermissionTopBar",
|
|
21
22
|
props: {
|
|
22
23
|
searchQuery: {},
|
|
@@ -31,18 +32,18 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
31
32
|
emits: ["update:searchQuery", "update:selectedGroupKeys", "selectAll", "clearAll"],
|
|
32
33
|
setup(e, { emit: h }) {
|
|
33
34
|
const f = e, d = h, m = k(() => f.size === "sm" ? "text-xs" : "text-sm");
|
|
34
|
-
function g(
|
|
35
|
-
const t = f.selectedGroupKeys, o = t.includes(
|
|
35
|
+
function g(r) {
|
|
36
|
+
const t = f.selectedGroupKeys, o = t.includes(r) ? t.filter((x) => x !== r) : [...t, r];
|
|
36
37
|
d("update:selectedGroupKeys", o);
|
|
37
38
|
}
|
|
38
39
|
function v() {
|
|
39
40
|
d("update:selectedGroupKeys", []);
|
|
40
41
|
}
|
|
41
|
-
function b(
|
|
42
|
-
d("update:searchQuery", String(
|
|
42
|
+
function b(r) {
|
|
43
|
+
d("update:searchQuery", String(r));
|
|
43
44
|
}
|
|
44
|
-
return (
|
|
45
|
-
|
|
45
|
+
return (r, t) => (l(), n("div", S, [
|
|
46
|
+
s("div", A, [
|
|
46
47
|
e.searchable ? (l(), n("div", Q, [
|
|
47
48
|
c($, {
|
|
48
49
|
"model-value": e.searchQuery,
|
|
@@ -60,7 +61,7 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
60
61
|
position: "bottom-end"
|
|
61
62
|
}, {
|
|
62
63
|
trigger: p(() => [
|
|
63
|
-
|
|
64
|
+
s("button", {
|
|
64
65
|
type: "button",
|
|
65
66
|
class: u([
|
|
66
67
|
"inline-flex items-center gap-1.5 border rounded-md cursor-pointer transition-colors",
|
|
@@ -72,12 +73,12 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
72
73
|
icon: "lucide:filter",
|
|
73
74
|
class: "w-3.5 h-3.5"
|
|
74
75
|
}),
|
|
75
|
-
t[2] || (t[2] =
|
|
76
|
+
t[2] || (t[2] = s("span", { class: "hidden sm:inline" }, "Modules", -1)),
|
|
76
77
|
e.selectedGroupKeys.length > 0 ? (l(), n("span", V, a(e.selectedGroupKeys.length), 1)) : i("", !0)
|
|
77
78
|
], 2)
|
|
78
79
|
]),
|
|
79
80
|
item: p(({ option: o }) => [
|
|
80
|
-
|
|
81
|
+
s("div", {
|
|
81
82
|
class: "flex items-center gap-2 w-full cursor-pointer hover:bg-accent rounded-md",
|
|
82
83
|
onClick: G((x) => g(o.value), ["stop"])
|
|
83
84
|
}, [
|
|
@@ -91,12 +92,12 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
91
92
|
icon: o.icon,
|
|
92
93
|
class: "w-3.5 h-3.5 text-muted-foreground"
|
|
93
94
|
}, null, 8, ["icon"])) : i("", !0),
|
|
94
|
-
|
|
95
|
+
s("span", P, a(o.label), 1)
|
|
95
96
|
], 8, N)
|
|
96
97
|
]),
|
|
97
98
|
footer: p(() => [
|
|
98
99
|
e.selectedGroupKeys.length > 0 ? (l(), n("div", E, [
|
|
99
|
-
|
|
100
|
+
s("button", {
|
|
100
101
|
type: "button",
|
|
101
102
|
class: "text-xs text-muted-foreground hover:text-foreground cursor-pointer",
|
|
102
103
|
onClick: v
|
|
@@ -106,15 +107,15 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
106
107
|
_: 1
|
|
107
108
|
}, 8, ["options"])
|
|
108
109
|
]),
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
s("div", F, [
|
|
111
|
+
s("span", {
|
|
111
112
|
class: u([m.value, "text-muted-foreground whitespace-nowrap"])
|
|
112
113
|
}, a(e.selectedCount) + " / " + a(e.totalPerms) + " selected ", 3),
|
|
113
114
|
e.readonly ? i("", !0) : (l(), n("button", {
|
|
114
115
|
key: 0,
|
|
115
116
|
type: "button",
|
|
116
117
|
class: u([m.value, "text-primary hover:underline whitespace-nowrap cursor-pointer"]),
|
|
117
|
-
onClick: t[0] || (t[0] = (o) =>
|
|
118
|
+
onClick: t[0] || (t[0] = (o) => r.$emit("selectAll"))
|
|
118
119
|
}, " Select All ", 2)),
|
|
119
120
|
!e.readonly && e.selectedCount > 0 ? (l(), n("button", {
|
|
120
121
|
key: 1,
|
|
@@ -123,12 +124,12 @@ const S = { class: "flex flex-col sm:flex-row items-start sm:items-center gap-3
|
|
|
123
124
|
m.value,
|
|
124
125
|
"text-muted-foreground hover:text-foreground hover:underline whitespace-nowrap cursor-pointer"
|
|
125
126
|
]),
|
|
126
|
-
onClick: t[1] || (t[1] = (o) =>
|
|
127
|
+
onClick: t[1] || (t[1] = (o) => r.$emit("clearAll"))
|
|
127
128
|
}, " Clear ", 2)) : i("", !0)
|
|
128
129
|
])
|
|
129
130
|
]));
|
|
130
131
|
}
|
|
131
132
|
});
|
|
132
133
|
export {
|
|
133
|
-
|
|
134
|
+
L as default
|
|
134
135
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, computed as o, openBlock as i, createElementBlock as a, normalizeClass as
|
|
1
|
+
import { defineComponent as F, computed as o, openBlock as i, createElementBlock as a, normalizeClass as u, createVNode as v, withCtx as h, createTextVNode as b, toDisplayString as l, createCommentVNode as m, createElementVNode as s, Fragment as j, renderList as D, createBlock as y } from "vue";
|
|
2
2
|
import _ from "../Icon.vue.js";
|
|
3
3
|
import E from "../Button.vue.js";
|
|
4
4
|
import S from "../Badge.vue.js";
|
|
@@ -43,7 +43,7 @@ const L = {
|
|
|
43
43
|
return t !== "vlite.pricingPlan.mostPopular" ? t : "Most Popular";
|
|
44
44
|
});
|
|
45
45
|
return (t, r) => (i(), a("div", {
|
|
46
|
-
class:
|
|
46
|
+
class: u(C.value),
|
|
47
47
|
onClick: w
|
|
48
48
|
}, [
|
|
49
49
|
x.value ? (i(), a("div", L, [
|
|
@@ -56,14 +56,14 @@ const L = {
|
|
|
56
56
|
]),
|
|
57
57
|
_: 1
|
|
58
58
|
}, 8, ["variant"])
|
|
59
|
-
])) :
|
|
59
|
+
])) : m("", !0),
|
|
60
60
|
s("div", M, [
|
|
61
61
|
s("h3", R, l(I.value), 1),
|
|
62
|
-
p.value ? (i(), a("p", q, l(p.value), 1)) :
|
|
62
|
+
p.value ? (i(), a("p", q, l(p.value), 1)) : m("", !0)
|
|
63
63
|
]),
|
|
64
64
|
s("div", A, [
|
|
65
65
|
s("span", G, l(c.item.price), 1),
|
|
66
|
-
f.value ? (i(), a("span", H, l(f.value), 1)) :
|
|
66
|
+
f.value ? (i(), a("span", H, l(f.value), 1)) : m("", !0)
|
|
67
67
|
]),
|
|
68
68
|
s("ul", J, [
|
|
69
69
|
(i(!0), a(j, null, D(c.item.features, (d, N) => (i(), a("li", {
|
|
@@ -82,7 +82,7 @@ const L = {
|
|
|
82
82
|
}))
|
|
83
83
|
]),
|
|
84
84
|
s("span", {
|
|
85
|
-
class:
|
|
85
|
+
class: u(
|
|
86
86
|
g(d) ? "text-foreground/90 font-medium" : "text-muted-foreground/60 decoration-slate-300/50"
|
|
87
87
|
)
|
|
88
88
|
}, l($(d)), 3)
|
|
@@ -91,7 +91,7 @@ const L = {
|
|
|
91
91
|
s("div", O, [
|
|
92
92
|
v(E, {
|
|
93
93
|
variant: V.value,
|
|
94
|
-
class:
|
|
94
|
+
class: u(["w-full font-semibold shadow-sm rounded-lg", { "ring-2 ring-primary ring-offset-2": c.selected }]),
|
|
95
95
|
size: "lg"
|
|
96
96
|
}, {
|
|
97
97
|
default: h(() => [
|
|
@@ -343,6 +343,7 @@ declare const __VLS_component: import('vue').DefineComponent<ScreenProps, {}, {}
|
|
|
343
343
|
data: any[];
|
|
344
344
|
variant: "one" | "two";
|
|
345
345
|
loading: boolean;
|
|
346
|
+
pagination: boolean;
|
|
346
347
|
emptyIcon: string;
|
|
347
348
|
canAdd: boolean;
|
|
348
349
|
exportProps: Record<string, any> | boolean;
|
|
@@ -360,7 +361,6 @@ declare const __VLS_component: import('vue').DefineComponent<ScreenProps, {}, {}
|
|
|
360
361
|
importSchema: import('../ImportData').ImportField[] | any[];
|
|
361
362
|
importType: string;
|
|
362
363
|
customHeader: boolean;
|
|
363
|
-
pagination: boolean;
|
|
364
364
|
viewProps: Record<string, any>;
|
|
365
365
|
quickFilters: import('./types').ScreenQuickFilter[];
|
|
366
366
|
skipQuickFilterViews: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Ee, useSlots as Qe, computed as n, markRaw as T, onMounted as Ae, ref as h, provide as L, watch as O, openBlock as d, createElementBlock as p, normalizeClass as
|
|
1
|
+
import { defineComponent as Ee, useSlots as Qe, computed as n, markRaw as T, onMounted as Ae, ref as h, provide as L, watch as O, openBlock as d, createElementBlock as p, normalizeClass as P, Fragment as U, createElementVNode as j, createVNode as C, createSlots as ne, withCtx as b, renderSlot as s, normalizeProps as u, guardReactiveProps as w, mergeProps as y, createBlock as M, createCommentVNode as R, unref as z, resolveDynamicComponent as Ue, toDisplayString as je } from "vue";
|
|
2
2
|
import Me from "../ConfirmationModal.vue.js";
|
|
3
3
|
import Ne from "../Pagination/Pagination.vue.js";
|
|
4
4
|
import He from "../ImportData/ImportData.vue.js";
|
|
@@ -140,10 +140,10 @@ const Ge = { key: 0 }, Je = {
|
|
|
140
140
|
Ae(() => {
|
|
141
141
|
V.value.length > 0 && !he.value.includes(c.value) && (c.value = Y.value), q("activeView", c.value);
|
|
142
142
|
});
|
|
143
|
-
const F = n(() => c.value === "table" && g.table ? "table" : c.value === "list" && g.list ? "list" : c.value === "list" && g.grid ? "grid" : c.value === "kanban" && g.kanban ? "kanban" : c.value === "calendar" && g.calendar ? "calendar" : null), k = h(""), m = h({}), $ = h({ field: "", order: "" }),
|
|
143
|
+
const F = n(() => c.value === "table" && g.table ? "table" : c.value === "list" && g.list ? "list" : c.value === "list" && g.grid ? "grid" : c.value === "kanban" && g.kanban ? "kanban" : c.value === "calendar" && g.calendar ? "calendar" : null), k = h(""), m = h({}), $ = h({ field: "", order: "" }), S = h(a.pageInfo?.currentPage || 1), E = h(a.pageInfo?.itemsPerPage || a.paginationProps?.itemsPerPage || 10), o = h([]), Q = h([]), B = h(!1), v = h(
|
|
144
144
|
a.defaultQuickFilter !== void 0 ? a.defaultQuickFilter : a.quickFilters && a.quickFilters.length > 0 ? a.quickFilters[0].value : ""
|
|
145
145
|
), W = n(() => !a.quickFilters || a.quickFilters.length === 0 ? !1 : a.skipQuickFilterViews && a.skipQuickFilterViews.length > 0 ? !a.skipQuickFilterViews.includes(c.value) : !0), Z = (e) => {
|
|
146
|
-
v.value = e,
|
|
146
|
+
v.value = e, S.value = 1, D();
|
|
147
147
|
}, _ = n(() => k.value && k.value.trim() !== "" || v.value !== "" && v.value !== null && v.value !== void 0 ? !0 : m.value ? Object.keys(m.value).some(
|
|
148
148
|
(e) => m.value[e] !== "" && m.value[e] !== null && m.value[e] !== void 0
|
|
149
149
|
) : !1), ee = n(() => a.data && a.data.length > 0), pe = n(() => !a.skipEmptyViews || a.skipEmptyViews.length === 0 ? !1 : a.skipEmptyViews.includes(c.value)), r = n(() => ({
|
|
@@ -152,7 +152,7 @@ const Ge = { key: 0 }, Je = {
|
|
|
152
152
|
activeFilters: m.value,
|
|
153
153
|
activeQuickFilter: v.value,
|
|
154
154
|
activeSort: $.value,
|
|
155
|
-
page:
|
|
155
|
+
page: S.value,
|
|
156
156
|
limit: E.value,
|
|
157
157
|
selectedRows: o.value,
|
|
158
158
|
isFiltered: _.value,
|
|
@@ -175,7 +175,7 @@ const Ge = { key: 0 }, Je = {
|
|
|
175
175
|
O(
|
|
176
176
|
() => a.pageInfo?.currentPage,
|
|
177
177
|
(e) => {
|
|
178
|
-
e && (
|
|
178
|
+
e && (S.value = e);
|
|
179
179
|
}
|
|
180
180
|
), O(
|
|
181
181
|
() => a.pageInfo?.itemsPerPage,
|
|
@@ -186,19 +186,19 @@ const Ge = { key: 0 }, Je = {
|
|
|
186
186
|
let N = null;
|
|
187
187
|
O(k, () => {
|
|
188
188
|
N && clearTimeout(N), N = setTimeout(() => {
|
|
189
|
-
|
|
189
|
+
S.value = 1, D();
|
|
190
190
|
}, 300);
|
|
191
191
|
});
|
|
192
192
|
const ke = (e) => {
|
|
193
|
-
|
|
193
|
+
S.value = e, D();
|
|
194
194
|
}, be = (e) => {
|
|
195
|
-
E.value = e,
|
|
195
|
+
E.value = e, S.value = 1, D();
|
|
196
196
|
}, D = () => {
|
|
197
197
|
if (!a.refetch) return;
|
|
198
198
|
const e = { ...m.value };
|
|
199
199
|
v.value !== "" && v.value !== null && v.value !== void 0 && (e[a.quickFilterKey] = v.value);
|
|
200
200
|
const i = $.value.field && $.value.order ? { field: $.value.field, order: $.value.order } : void 0, l = {
|
|
201
|
-
pagination: { page:
|
|
201
|
+
pagination: { page: S.value, limit: E.value },
|
|
202
202
|
search: k.value,
|
|
203
203
|
filter: e
|
|
204
204
|
};
|
|
@@ -224,12 +224,12 @@ const Ge = { key: 0 }, Je = {
|
|
|
224
224
|
}), De = n(() => {
|
|
225
225
|
const e = f("vlite.screen.cancelBtn");
|
|
226
226
|
return e !== "vlite.screen.cancelBtn" ? e : "Cancel";
|
|
227
|
-
}),
|
|
227
|
+
}), Pe = n(() => {
|
|
228
228
|
const e = f("vlite.screen.missingView");
|
|
229
229
|
return e !== "vlite.screen.missingView" ? e : "Please provide a `:list`, `:table`, or `:views` component/slot.";
|
|
230
230
|
}), H = n(
|
|
231
231
|
() => a.exportSchema && a.exportSchema.length > 0 && a.exportProps !== !1 || a.importSchema && a.importSchema.length > 0 && a.importProps !== !1
|
|
232
|
-
),
|
|
232
|
+
), Se = n(() => {
|
|
233
233
|
const e = f("vlite.screen.importData");
|
|
234
234
|
return e !== "vlite.screen.importData" ? e : "Import Data";
|
|
235
235
|
}), $e = h(null), A = h(!1), K = h(!1), ie = (e) => {
|
|
@@ -266,15 +266,15 @@ const Ge = { key: 0 }, Je = {
|
|
|
266
266
|
);
|
|
267
267
|
};
|
|
268
268
|
return (e, i) => (d(), p("div", {
|
|
269
|
-
class:
|
|
269
|
+
class: P(["flex flex-col w-full space-y-8", t.containerClass])
|
|
270
270
|
}, [
|
|
271
271
|
t.variant === "two" ? (d(), p(U, { key: 0 }, [
|
|
272
272
|
t.customHeader ? s(e.$slots, "custom-header", u(y({ key: 1 }, r.value))) : (d(), p("div", {
|
|
273
273
|
key: 0,
|
|
274
|
-
class:
|
|
274
|
+
class: P([t.headerClass, "flex flex-col space-y-6"])
|
|
275
275
|
}, [
|
|
276
276
|
j("div", {
|
|
277
|
-
class:
|
|
277
|
+
class: P([
|
|
278
278
|
"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",
|
|
279
279
|
t.topHeaderClass
|
|
280
280
|
])
|
|
@@ -309,13 +309,13 @@ const Ge = { key: 0 }, Je = {
|
|
|
309
309
|
])) : s(e.$slots, "header-stats", { key: 1 })
|
|
310
310
|
], 2),
|
|
311
311
|
j("div", {
|
|
312
|
-
class:
|
|
312
|
+
class: P([
|
|
313
313
|
"flex flex-col lg:flex-row lg:items-center justify-between gap-4",
|
|
314
314
|
t.bottomHeaderClass
|
|
315
315
|
])
|
|
316
316
|
}, [
|
|
317
317
|
j("div", {
|
|
318
|
-
class:
|
|
318
|
+
class: P([
|
|
319
319
|
"flex-1 w-full min-w-0 flex items-center justify-start overflow-hidden pt-1.5",
|
|
320
320
|
t.filtersContainerClass
|
|
321
321
|
])
|
|
@@ -330,7 +330,7 @@ const Ge = { key: 0 }, Je = {
|
|
|
330
330
|
}, null, 8, ["modelValue", "options", "variant"])) : R("", !0)
|
|
331
331
|
], 2),
|
|
332
332
|
C(re, {
|
|
333
|
-
class:
|
|
333
|
+
class: P([
|
|
334
334
|
"flex items-center gap-2.5 max-sm:w-full sm:w-auto justify-end",
|
|
335
335
|
t.actionsContainerClass
|
|
336
336
|
]),
|
|
@@ -384,7 +384,7 @@ const Ge = { key: 0 }, Je = {
|
|
|
384
384
|
], 64)) : (d(), p(U, { key: 1 }, [
|
|
385
385
|
t.customHeader ? s(e.$slots, "custom-header", u(y({ key: 1 }, r.value))) : (d(), p("div", {
|
|
386
386
|
key: 0,
|
|
387
|
-
class:
|
|
387
|
+
class: P([t.headerClass, "flex flex-col md:flex-row sm:items-start md:items-center justify-between gap-4"])
|
|
388
388
|
}, [
|
|
389
389
|
C(se, {
|
|
390
390
|
title: t.title,
|
|
@@ -470,7 +470,7 @@ const Ge = { key: 0 }, Je = {
|
|
|
470
470
|
])) : R("", !0)
|
|
471
471
|
], 64)),
|
|
472
472
|
j("div", {
|
|
473
|
-
class:
|
|
473
|
+
class: P(["flex-1 w-full relative", t.mainContainerClass])
|
|
474
474
|
}, [
|
|
475
475
|
!ee.value && !t.loading && !pe.value ? (d(), p(U, { key: 0 }, [
|
|
476
476
|
e.$slots.empty ? s(e.$slots, "empty", u(y({ key: 0 }, r.value))) : (d(), M(ze, {
|
|
@@ -530,7 +530,7 @@ const Ge = { key: 0 }, Je = {
|
|
|
530
530
|
"onUpdate:selectedRows": i[8] || (i[8] = (l) => o.value = l),
|
|
531
531
|
delete: x,
|
|
532
532
|
onDelete: ge
|
|
533
|
-
}, t.viewProps), null, 16, ["data", "loading", "refetch", "selectedRows"])) : (d(), p("div", We, je(
|
|
533
|
+
}, t.viewProps), null, 16, ["data", "loading", "refetch", "selectedRows"])) : (d(), p("div", We, je(Pe.value), 1))
|
|
534
534
|
], 64))
|
|
535
535
|
], 2),
|
|
536
536
|
t.pagination && t.pageInfo && t.pageInfo.totalPages > 1 ? (d(), p("div", Ze, [
|
|
@@ -574,7 +574,7 @@ const Ge = { key: 0 }, Je = {
|
|
|
574
574
|
processBatch: Be,
|
|
575
575
|
onComplete: Te
|
|
576
576
|
}, typeof t.importProps == "object" ? t.importProps : {}, {
|
|
577
|
-
title:
|
|
577
|
+
title: Se.value,
|
|
578
578
|
class: "hidden!"
|
|
579
579
|
}), null, 16, ["show", "fields", "title"])
|
|
580
580
|
])) : R("", !0)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as $, ref as M, computed as d, openBlock as o, createBlock as n, withCtx as i, createElementVNode as l, createVNode as a, unref as w, toDisplayString as v, withModifiers as F, setBlockTracking as C, createElementBlock as S } from "vue";
|
|
2
2
|
import f from "../Button.vue.js";
|
|
3
3
|
import j from "../Modal.vue.js";
|
|
4
4
|
import z from "../Dropdown/Dropdown.vue.js";
|
|
@@ -17,11 +17,11 @@ import "v-datepicker-lite/style.css";
|
|
|
17
17
|
/* empty css */
|
|
18
18
|
import "@jaames/iro";
|
|
19
19
|
import "@vueuse/core";
|
|
20
|
-
/* empty css
|
|
20
|
+
/* empty css */
|
|
21
21
|
import "iconify-icon-picker";
|
|
22
22
|
import "iconify-icon-picker/style.css";
|
|
23
23
|
/* empty css */
|
|
24
|
-
/* empty css
|
|
24
|
+
/* empty css */
|
|
25
25
|
/* empty css */
|
|
26
26
|
/* empty css */
|
|
27
27
|
/* empty css */
|
|
@@ -32,7 +32,7 @@ import "../../core/config.js";
|
|
|
32
32
|
const N = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }, A = { style: { "will-change": "transform", contain: "layout style" } }, E = {
|
|
33
33
|
class: "pt-2 px-2 min-w-[295px]",
|
|
34
34
|
style: { "will-change": "transform", contain: "layout style" }
|
|
35
|
-
}, de = /* @__PURE__ */
|
|
35
|
+
}, de = /* @__PURE__ */ $({
|
|
36
36
|
__name: "ScreenFilter",
|
|
37
37
|
props: {
|
|
38
38
|
schema: {},
|
|
@@ -40,8 +40,8 @@ const N = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
40
40
|
type: { default: "modal" }
|
|
41
41
|
},
|
|
42
42
|
emits: ["update:modelValue", "change"],
|
|
43
|
-
setup(s, { emit:
|
|
44
|
-
const m = s, c =
|
|
43
|
+
setup(s, { emit: B }) {
|
|
44
|
+
const m = s, c = B, r = M(!1), p = d(() => m.modelValue ? Object.keys(m.modelValue).filter(
|
|
45
45
|
(e) => m.modelValue[e] !== "" && m.modelValue[e] !== null && m.modelValue[e] !== void 0
|
|
46
46
|
).length : 0), x = (e) => {
|
|
47
47
|
c("update:modelValue", e.values), c("change", e.values), r.value = !1;
|