vlite3 0.8.11 → 0.9.2
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/AttachmentsList/AttachmentsList.vue.d.ts +6 -0
- package/components/AttachmentsList/AttachmentsList.vue.js +82 -0
- package/components/AttachmentsList/AttachmentsList.vue2.js +4 -0
- package/components/AttachmentsList/index.d.ts +2 -0
- package/components/AttachmentsList/types.d.ts +11 -0
- package/components/Button.vue.js +6 -6
- package/components/Chat/ChatBubble.vue.d.ts +18 -0
- package/components/Chat/ChatInterface.vue.d.ts +45 -0
- package/components/Chat/index.d.ts +2 -0
- package/components/DataList/DataList.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.d.ts +3 -3
- package/components/DataTable/DataTable.vue.js +22 -22
- package/components/DataTable/types.d.ts +1 -1
- package/components/DatePicker.vue.d.ts +3 -2
- package/components/DatePicker.vue.js +1 -1
- package/components/Dropdown/Dropdown.vue.d.ts +2 -0
- package/components/Dropdown/Dropdown.vue.js +106 -90
- package/components/Dropdown/DropdownItem.vue.js +8 -8
- package/components/Dropdown/DropdownMenu.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue2.js +1 -1
- package/components/ExportData/ExportData.vue.d.ts +1 -1
- package/components/FilePicker/FilePicker.vue.d.ts +4 -1
- package/components/FilePicker/FilePicker.vue.js +189 -139
- package/components/FilePreview/FilePreview.vue.d.ts +5 -0
- package/components/FilePreview/FilePreview.vue.js +27 -0
- package/components/FilePreview/FilePreview.vue2.js +4 -0
- package/components/FilePreview/index.d.ts +2 -0
- package/components/FilePreview/types.d.ts +5 -0
- package/components/Form/FormField.vue.js +3 -1
- package/components/Form/composables/useForm.js +50 -47
- package/components/Input.vue.d.ts +1 -0
- package/components/Input.vue.js +18 -15
- package/components/Modal.vue.js +2 -2
- package/components/Modal.vue2.js +31 -31
- package/components/MultiSelect/MultiSelect.vue.js +92 -84
- package/components/Navbar/Navbar.vue.js +61 -60
- package/components/Screen/Screen.vue.d.ts +200 -7
- package/components/Screen/Screen.vue.js +306 -502
- package/components/Screen/ScreenFilter.vue.js +45 -42
- package/components/Screen/components/ScreenAddAction.vue.d.ts +15 -0
- package/components/Screen/components/ScreenAddAction.vue.js +107 -0
- package/components/Screen/components/ScreenAddAction.vue2.js +4 -0
- package/components/Screen/components/ScreenEmptyState.vue.d.ts +14 -0
- package/components/Screen/components/ScreenEmptyState.vue.js +105 -0
- package/components/Screen/components/ScreenEmptyState.vue2.js +4 -0
- package/components/Screen/components/ScreenExportModal.vue.d.ts +49 -0
- package/components/Screen/components/ScreenExportModal.vue.js +83 -0
- package/components/Screen/components/ScreenExportModal.vue2.js +4 -0
- package/components/Screen/components/ScreenHeaderTitle.vue.d.ts +28 -0
- package/components/Screen/components/ScreenHeaderTitle.vue.js +57 -0
- package/components/Screen/components/ScreenHeaderTitle.vue2.js +4 -0
- package/components/Screen/components/ScreenOptionsDropdown.vue.d.ts +10 -0
- package/components/Screen/components/ScreenOptionsDropdown.vue.js +43 -0
- package/components/Screen/components/ScreenOptionsDropdown.vue2.js +4 -0
- package/components/Screen/components/ScreenQuickFilters.vue.d.ts +15 -0
- package/components/Screen/components/ScreenQuickFilters.vue.js +36 -0
- package/components/Screen/components/ScreenQuickFilters.vue2.js +4 -0
- package/components/Screen/components/ScreenViewToggle.vue.d.ts +9 -0
- package/components/Screen/components/ScreenViewToggle.vue.js +48 -0
- package/components/Screen/components/ScreenViewToggle.vue2.js +4 -0
- package/components/Screen/index.d.ts +1 -0
- package/components/Screen/types.d.ts +41 -2
- package/components/SidePanel.vue.js +1 -1
- package/components/SidePanel.vue2.js +7 -7
- package/components/SidebarMenu/SidebarMenu.vue.js +1 -1
- package/components/Stats/Stats.vue.js +50 -49
- package/components/StatusChip/StatusChip.vue.d.ts +2 -2
- package/components/StatusChip/StatusChip.vue.js +15 -14
- package/components/StatusChip/status-map.d.ts +2 -1
- package/components/StatusChip/status-map.js +16 -6
- package/components/Tabes/Tabes.vue.d.ts +1 -1
- package/components/Tabes/Tabes.vue.js +5 -143
- package/components/Tabes/Tabes.vue2.js +144 -2
- package/components/Timeline/TimelineIndicator.vue.js +6 -6
- package/components/Workbook/Sheet.vue.d.ts +1 -1
- package/core/config.d.ts +8 -0
- package/core/config.js +10 -6
- package/core/index.js +28 -20
- package/index.d.ts +2 -0
- package/index.js +209 -203
- package/package.json +3 -2
- package/style.css +80 -6
- package/types/config.type.d.ts +10 -0
- package/types/form.type.d.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, computed as m, ref as w, provide as ee, useSlots as le, onMounted as se, onUnmounted as oe, watch as A, openBlock as r, createElementBlock as i, createVNode as
|
|
1
|
+
import { defineComponent as _, computed as m, ref as w, provide as ee, useSlots as le, onMounted as se, onUnmounted as oe, watch as A, openBlock as r, createElementBlock as i, createVNode as f, Transition as W, withCtx as g, withDirectives as Y, createElementVNode as t, normalizeClass as n, renderSlot as s, createCommentVNode as u, vShow as q, unref as c, createTextVNode as P, normalizeStyle as te, Fragment as x, createBlock as G } from "vue";
|
|
2
2
|
import { useRoute as ae } from "vue-router";
|
|
3
3
|
import { useLocalStorage as re, onClickOutside as ie, useBreakpoints as ne, breakpointsTailwind as de } from "@vueuse/core";
|
|
4
4
|
import z from "../Icon.vue.js";
|
|
@@ -8,19 +8,19 @@ import J from "./NavbarTabs.vue.js";
|
|
|
8
8
|
import K from "../Breadcrumb/Breadcrumb.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { useBreadcrumb as ue } from "../../composables/useBreadcrumb.js";
|
|
11
|
-
const
|
|
11
|
+
const be = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "vlite-app-layout flex flex-row w-full h-full bg-body overflow-hidden"
|
|
14
|
-
},
|
|
14
|
+
}, fe = { class: "flex flex-col flex-1 min-w-0 h-full overflow-hidden" }, me = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "w-full shrink-0 z-20 bg-background"
|
|
17
17
|
}, ce = {
|
|
18
18
|
key: 1,
|
|
19
|
-
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0"
|
|
19
|
+
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col min-h-0 scrollbar-thin scrollbar-stable"
|
|
20
20
|
}, ve = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "shrink-0 w-full"
|
|
23
|
-
}, ge = { class: "flex-1 overflow-y-auto w-full relative h-full" },
|
|
23
|
+
}, ge = { class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable" }, he = { class: "flex flex-col h-full" }, pe = { class: "flex-1 overflow-y-auto px-3.5 pt-4 scrollbar-thin scrollbar-stable" }, ye = {
|
|
24
24
|
key: 0,
|
|
25
25
|
class: "mt-auto pt-2 border-t border-border px-3 py-2"
|
|
26
26
|
}, ke = {
|
|
@@ -31,25 +31,25 @@ const fe = {
|
|
|
31
31
|
class: "w-full shrink-0 z-50 flex flex-col relative"
|
|
32
32
|
}, xe = { class: "flex flex-1 w-full overflow-hidden relative" }, $e = { class: "flex items-center gap-4 shrink-0 z-10" }, Ce = {
|
|
33
33
|
key: 0,
|
|
34
|
-
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col"
|
|
34
|
+
class: "flex-1 overflow-y-auto w-full relative h-full flex flex-col scrollbar-thin scrollbar-stable"
|
|
35
35
|
}, Te = {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "shrink-0 w-full"
|
|
38
|
-
}, ze = { class: "flex-1 overflow-y-auto w-full relative h-full" }, Se = { class: "flex flex-col max-h-[80vh] overflow-y-auto" }, Be = { class: "space-y-1 p-2" }, Ve = { class: "space-y-1 p-2" }, Me = { class: "flex flex-col space-y-6 pt-4 h-full" }, Oe = {
|
|
38
|
+
}, ze = { class: "flex-1 overflow-y-auto w-full relative h-full scrollbar-thin scrollbar-stable" }, Se = { class: "flex flex-col max-h-[80vh] overflow-y-auto scrollbar-thin" }, Be = { class: "space-y-1 p-2" }, Ve = { class: "space-y-1 p-2" }, Me = { class: "flex flex-col space-y-6 pt-4 h-full" }, Oe = {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: "flex flex-col space-y-1"
|
|
41
41
|
}, Ne = {
|
|
42
42
|
key: 1,
|
|
43
|
-
class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5!"
|
|
43
|
+
class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5! scrollbar-thin scrollbar-stable"
|
|
44
44
|
}, Pe = {
|
|
45
45
|
key: 2,
|
|
46
46
|
class: "mt-auto pt-2 border-t border-border px-3! py-2!"
|
|
47
|
-
}, Le = { class: "flex items-center gap-4 shrink-0 z-10" }, Re = { class: "flex flex-col max-h-[80vh] overflow-y-auto" }, He = { class: "space-y-1 p-2" }, je = { class: "space-y-1 p-2" }, Ie = { class: "flex flex-col space-y-6 pt-4 h-full" }, Ue = {
|
|
47
|
+
}, Le = { class: "flex items-center gap-4 shrink-0 z-10" }, Re = { class: "flex flex-col max-h-[80vh] overflow-y-auto scrollbar-thin" }, He = { class: "space-y-1 p-2" }, je = { class: "space-y-1 p-2" }, Ie = { class: "flex flex-col space-y-6 pt-4 h-full" }, Ue = {
|
|
48
48
|
key: 0,
|
|
49
49
|
class: "flex flex-col space-y-1"
|
|
50
50
|
}, Ee = {
|
|
51
51
|
key: 1,
|
|
52
|
-
class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5!"
|
|
52
|
+
class: "flex flex-col space-y-4 flex-1 overflow-y-auto px-3.5! scrollbar-thin scrollbar-stable"
|
|
53
53
|
}, De = {
|
|
54
54
|
key: 2,
|
|
55
55
|
class: "mt-auto pt-2 border-t border-border px-3! py-2!"
|
|
@@ -88,7 +88,7 @@ const fe = {
|
|
|
88
88
|
},
|
|
89
89
|
emits: ["toggle-mobile"],
|
|
90
90
|
setup(v, { emit: Fe }) {
|
|
91
|
-
const l = v,
|
|
91
|
+
const l = v, p = l.breadcrumb ? ue({
|
|
92
92
|
homeIcon: l.breadcrumbHomeIcon,
|
|
93
93
|
labelMap: l.breadcrumbLabels || {}
|
|
94
94
|
}) : { items: m(() => []) }, y = w([]), k = w("");
|
|
@@ -104,7 +104,7 @@ const fe = {
|
|
|
104
104
|
d().push(e).catch(() => {
|
|
105
105
|
});
|
|
106
106
|
}) : k.value = e);
|
|
107
|
-
},
|
|
107
|
+
}, h = m(() => !!(R.header || R.main)), j = m(() => l.sidebarToggle && h.value), I = () => {
|
|
108
108
|
C.value = !C.value;
|
|
109
109
|
};
|
|
110
110
|
ie(
|
|
@@ -124,10 +124,10 @@ const fe = {
|
|
|
124
124
|
});
|
|
125
125
|
const E = m(() => {
|
|
126
126
|
const e = l.variant === "sidebar", o = {
|
|
127
|
-
fixed:
|
|
128
|
-
sticky:
|
|
127
|
+
fixed: h.value ? "relative z-40" : "fixed top-0 left-0 z-40",
|
|
128
|
+
sticky: h.value ? "relative z-40" : "sticky top-0 z-40",
|
|
129
129
|
relative: "relative z-10",
|
|
130
|
-
absolute:
|
|
130
|
+
absolute: h.value ? "relative z-40" : "absolute top-0 left-0 w-full z-40"
|
|
131
131
|
}, d = "bg-body", T = [
|
|
132
132
|
l.glass && (S.value || e || l.floating) ? "backdrop-blur-md bg-background/80 supports-[backdrop-filter]:bg-background/60" : "bg-background",
|
|
133
133
|
l.border && !l.floating ? e ? "border-r border-border" : "border-b border-border" : "",
|
|
@@ -138,10 +138,10 @@ const fe = {
|
|
|
138
138
|
md: "max-md:hidden",
|
|
139
139
|
lg: "max-lg:hidden",
|
|
140
140
|
xl: "max-xl:hidden"
|
|
141
|
-
}, O =
|
|
141
|
+
}, O = h.value && e ? M[V] : "";
|
|
142
142
|
let N = "";
|
|
143
|
-
return e ? N =
|
|
144
|
-
}),
|
|
143
|
+
return e ? N = b.value.sidebarLayout : N = `flex items-center gap-4 w-full px-4 sm:px-6 lg:px-8 ${l.height}`, [d, o[l.position], ...T, N, O, l.class].filter(Boolean).join(" ");
|
|
144
|
+
}), b = m(() => {
|
|
145
145
|
const e = l.mobileBreakpoint || "md", o = {
|
|
146
146
|
sm: "sm:hidden",
|
|
147
147
|
md: "md:hidden",
|
|
@@ -182,7 +182,8 @@ const fe = {
|
|
|
182
182
|
desktopOnly: O[e]
|
|
183
183
|
};
|
|
184
184
|
}), D = m(() => {
|
|
185
|
-
if (l.variant === "sidebar")
|
|
185
|
+
if (l.variant === "sidebar")
|
|
186
|
+
return "flex-1 py-4 overflow-y-auto scrollbar-thin scrollbar-stable";
|
|
186
187
|
if (l.centerPosition === "left")
|
|
187
188
|
return "flex items-center justify-start";
|
|
188
189
|
}), Q = ae();
|
|
@@ -196,9 +197,9 @@ const fe = {
|
|
|
196
197
|
A(X, (e) => {
|
|
197
198
|
e && (a.value = !1);
|
|
198
199
|
});
|
|
199
|
-
const F = m(() => j.value && !C.value), Z = m(() =>
|
|
200
|
-
return (e, o) => Z.value ? (r(), i("div",
|
|
201
|
-
|
|
200
|
+
const F = m(() => j.value && !C.value), Z = m(() => h.value && l.variant === "sidebar" && l.layoutMode === "sidebar-first");
|
|
201
|
+
return (e, o) => Z.value ? (r(), i("div", be, [
|
|
202
|
+
f(W, {
|
|
202
203
|
"enter-active-class": "transition-all duration-300 ease-in-out",
|
|
203
204
|
"leave-active-class": "transition-all duration-300 ease-in-out",
|
|
204
205
|
"enter-from-class": "opacity-0 -translate-x-2",
|
|
@@ -210,14 +211,14 @@ const fe = {
|
|
|
210
211
|
Y(t("nav", {
|
|
211
212
|
class: n([
|
|
212
213
|
"shrink-0 h-full flex flex-col bg-background border-r border-border overflow-hidden z-30",
|
|
213
|
-
|
|
214
|
+
b.value.mobileTrigger === "md:hidden" ? "max-md:hidden" : "",
|
|
214
215
|
l.class
|
|
215
216
|
]),
|
|
216
217
|
role: "navigation",
|
|
217
218
|
"aria-label": "Sidebar"
|
|
218
219
|
}, [
|
|
219
220
|
t("div", {
|
|
220
|
-
class: n(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin", l.contentClass])
|
|
221
|
+
class: n(["flex-1 overflow-y-auto overflow-x-hidden scrollbar-thin scrollbar-stable", l.contentClass])
|
|
221
222
|
}, [
|
|
222
223
|
s(e.$slots, "default")
|
|
223
224
|
], 2),
|
|
@@ -233,31 +234,31 @@ const fe = {
|
|
|
233
234
|
]),
|
|
234
235
|
_: 3
|
|
235
236
|
}),
|
|
236
|
-
t("div",
|
|
237
|
+
t("div", fe, [
|
|
237
238
|
e.$slots.header ? (r(), i("header", me, [
|
|
238
239
|
s(e.$slots, "header", {
|
|
239
240
|
isOpen: a.value,
|
|
240
241
|
toggle: () => a.value = !a.value,
|
|
241
242
|
sidebarVisible: c(C),
|
|
242
243
|
toggleSidebar: I,
|
|
243
|
-
breadcrumbItems: c(
|
|
244
|
+
breadcrumbItems: c(p).items.value
|
|
244
245
|
})
|
|
245
246
|
])) : u("", !0),
|
|
246
247
|
e.$slots.main ? (r(), i("main", ce, [
|
|
247
248
|
l.renderNestedTabs && y.value.length > 0 ? (r(), i("div", ve, [
|
|
248
|
-
|
|
249
|
+
f(J, {
|
|
249
250
|
modelValue: k.value,
|
|
250
251
|
"onUpdate:modelValue": o[0] || (o[0] = (d) => k.value = d),
|
|
251
252
|
onChange: H,
|
|
252
253
|
items: y.value
|
|
253
254
|
}, null, 8, ["modelValue", "items"])
|
|
254
255
|
])) : u("", !0),
|
|
255
|
-
l.breadcrumb && l.breadcrumbPosition === "main" && c(
|
|
256
|
+
l.breadcrumb && l.breadcrumbPosition === "main" && c(p).items.value.length > 1 ? (r(), i("div", {
|
|
256
257
|
key: 1,
|
|
257
258
|
class: n(["shrink-0 w-full border-b border-border px-6 py-2", l.breadcrumbClass])
|
|
258
259
|
}, [
|
|
259
|
-
|
|
260
|
-
items: c(
|
|
260
|
+
f(c(K), {
|
|
261
|
+
items: c(p).items.value,
|
|
261
262
|
variant: l.breadcrumbVariant,
|
|
262
263
|
separator: l.breadcrumbSeparator,
|
|
263
264
|
size: l.breadcrumbSize
|
|
@@ -268,13 +269,13 @@ const fe = {
|
|
|
268
269
|
])
|
|
269
270
|
])) : u("", !0)
|
|
270
271
|
]),
|
|
271
|
-
|
|
272
|
+
f(L, {
|
|
272
273
|
show: a.value,
|
|
273
274
|
"onUpdate:show": o[1] || (o[1] = (d) => a.value = d),
|
|
274
275
|
position: "left",
|
|
275
276
|
size: "sm",
|
|
276
|
-
triggerClass:
|
|
277
|
-
class: n(["z-60",
|
|
277
|
+
triggerClass: b.value.mobileTrigger,
|
|
278
|
+
class: n(["z-60", b.value.mobileTrigger]),
|
|
278
279
|
headerClass: "pl-3! pr-4.5! py-3!",
|
|
279
280
|
bodyClass: "p-0!"
|
|
280
281
|
}, {
|
|
@@ -284,8 +285,8 @@ const fe = {
|
|
|
284
285
|
])
|
|
285
286
|
]),
|
|
286
287
|
default: g(() => [
|
|
287
|
-
t("div",
|
|
288
|
-
t("div",
|
|
288
|
+
t("div", he, [
|
|
289
|
+
t("div", pe, [
|
|
289
290
|
s(e.$slots, "default")
|
|
290
291
|
]),
|
|
291
292
|
e.$slots.right ? (r(), i("div", ye, [
|
|
@@ -295,18 +296,18 @@ const fe = {
|
|
|
295
296
|
]),
|
|
296
297
|
_: 3
|
|
297
298
|
}, 8, ["show", "triggerClass", "class"])
|
|
298
|
-
])) :
|
|
299
|
+
])) : h.value ? (r(), i("div", ke, [
|
|
299
300
|
e.$slots.header ? (r(), i("header", we, [
|
|
300
301
|
s(e.$slots, "header", {
|
|
301
302
|
isOpen: a.value,
|
|
302
303
|
toggle: () => a.value = !a.value,
|
|
303
304
|
sidebarVisible: c(C),
|
|
304
305
|
toggleSidebar: I,
|
|
305
|
-
breadcrumbItems: c(
|
|
306
|
+
breadcrumbItems: c(p).items.value
|
|
306
307
|
})
|
|
307
308
|
])) : u("", !0),
|
|
308
309
|
t("div", xe, [
|
|
309
|
-
|
|
310
|
+
f(W, {
|
|
310
311
|
"enter-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
|
|
311
312
|
"leave-active-class": "transition-all duration-300 ease-in-out overflow-hidden",
|
|
312
313
|
"enter-from-class": "opacity-0",
|
|
@@ -330,10 +331,10 @@ const fe = {
|
|
|
330
331
|
type: "button",
|
|
331
332
|
ref_key: "mobileTriggerRef",
|
|
332
333
|
ref: $,
|
|
333
|
-
class: n(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [
|
|
334
|
+
class: n(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [b.value.mobileTrigger, l.mobileTriggerClass]]),
|
|
334
335
|
onClick: o[2] || (o[2] = (d) => a.value = !a.value)
|
|
335
336
|
}, [
|
|
336
|
-
|
|
337
|
+
f(z, {
|
|
337
338
|
icon: "lucide:menu",
|
|
338
339
|
class: "w-5 h-5"
|
|
339
340
|
}),
|
|
@@ -342,7 +343,7 @@ const fe = {
|
|
|
342
343
|
]),
|
|
343
344
|
e.$slots?.left ? (r(), i("div", {
|
|
344
345
|
key: 0,
|
|
345
|
-
class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient",
|
|
346
|
+
class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", b.value.desktopContent])
|
|
346
347
|
}, [
|
|
347
348
|
s(e.$slots, "left")
|
|
348
349
|
], 2)) : u("", !0)
|
|
@@ -364,7 +365,7 @@ const fe = {
|
|
|
364
365
|
], 64)) : (r(), i(x, { key: 1 }, [
|
|
365
366
|
e.$slots.header ? u("", !0) : (r(), i("div", {
|
|
366
367
|
key: 0,
|
|
367
|
-
class: n(
|
|
368
|
+
class: n(b.value.mobileHeader)
|
|
368
369
|
}, [
|
|
369
370
|
s(e.$slots, "mobile-trigger", {
|
|
370
371
|
isOpen: a.value,
|
|
@@ -377,7 +378,7 @@ const fe = {
|
|
|
377
378
|
class: n(["p-2 -mr-2 text-muted-foreground hover:bg-accent rounded-md", l.mobileTriggerClass]),
|
|
378
379
|
onClick: o[3] || (o[3] = (d) => a.value = !a.value)
|
|
379
380
|
}, [
|
|
380
|
-
|
|
381
|
+
f(z, {
|
|
381
382
|
icon: "lucide:menu",
|
|
382
383
|
class: "w-5 h-5"
|
|
383
384
|
}),
|
|
@@ -386,10 +387,10 @@ const fe = {
|
|
|
386
387
|
])
|
|
387
388
|
], 2)),
|
|
388
389
|
t("div", {
|
|
389
|
-
class: n(
|
|
390
|
+
class: n(b.value.desktopSidebar)
|
|
390
391
|
}, [
|
|
391
392
|
t("div", {
|
|
392
|
-
class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin", l.contentClass])
|
|
393
|
+
class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin scrollbar-stable", l.contentClass])
|
|
393
394
|
}, [
|
|
394
395
|
s(e.$slots, "left"),
|
|
395
396
|
s(e.$slots, "default"),
|
|
@@ -411,19 +412,19 @@ const fe = {
|
|
|
411
412
|
}),
|
|
412
413
|
e.$slots.main ? (r(), i("main", Ce, [
|
|
413
414
|
l.renderNestedTabs && y.value.length > 0 ? (r(), i("div", Te, [
|
|
414
|
-
|
|
415
|
+
f(J, {
|
|
415
416
|
modelValue: k.value,
|
|
416
417
|
"onUpdate:modelValue": o[4] || (o[4] = (d) => k.value = d),
|
|
417
418
|
onChange: H,
|
|
418
419
|
items: y.value
|
|
419
420
|
}, null, 8, ["modelValue", "items"])
|
|
420
421
|
])) : u("", !0),
|
|
421
|
-
l.breadcrumb && l.breadcrumbPosition === "main" && c(
|
|
422
|
+
l.breadcrumb && l.breadcrumbPosition === "main" && c(p).items.value.length > 1 ? (r(), i("div", {
|
|
422
423
|
key: 1,
|
|
423
424
|
class: n(["shrink-0 w-full border-b border-border px-6 py-2", l.breadcrumbClass])
|
|
424
425
|
}, [
|
|
425
|
-
|
|
426
|
-
items: c(
|
|
426
|
+
f(c(K), {
|
|
427
|
+
items: c(p).items.value,
|
|
427
428
|
variant: l.breadcrumbVariant,
|
|
428
429
|
separator: l.breadcrumbSeparator,
|
|
429
430
|
size: l.breadcrumbSize
|
|
@@ -458,8 +459,8 @@ const fe = {
|
|
|
458
459
|
"onUpdate:show": o[5] || (o[5] = (d) => a.value = d),
|
|
459
460
|
position: "left",
|
|
460
461
|
size: "sm",
|
|
461
|
-
triggerClass:
|
|
462
|
-
class: n(["z-60",
|
|
462
|
+
triggerClass: b.value.mobileTrigger,
|
|
463
|
+
class: n(["z-60", b.value.mobileTrigger]),
|
|
463
464
|
headerClass: "pl-3! pr-4.5! py-3!",
|
|
464
465
|
bodyClass: "p-0!"
|
|
465
466
|
}, {
|
|
@@ -504,10 +505,10 @@ const fe = {
|
|
|
504
505
|
type: "button",
|
|
505
506
|
ref_key: "mobileTriggerRef",
|
|
506
507
|
ref: $,
|
|
507
|
-
class: n(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [
|
|
508
|
+
class: n(["p-2 -ml-2 text-muted-foreground hover:bg-accent rounded-md shrink-0", [b.value.mobileTrigger, l.mobileTriggerClass]]),
|
|
508
509
|
onClick: o[6] || (o[6] = (d) => a.value = !a.value)
|
|
509
510
|
}, [
|
|
510
|
-
|
|
511
|
+
f(z, {
|
|
511
512
|
icon: "lucide:menu",
|
|
512
513
|
class: "w-5 h-5"
|
|
513
514
|
}),
|
|
@@ -516,7 +517,7 @@ const fe = {
|
|
|
516
517
|
]),
|
|
517
518
|
e.$slots?.left ? (r(), i("div", {
|
|
518
519
|
key: 0,
|
|
519
|
-
class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient",
|
|
520
|
+
class: n(["items-center gap-1 overflow-x-auto no-scrollbar mask-gradient", b.value.desktopContent])
|
|
520
521
|
}, [
|
|
521
522
|
s(e.$slots, "left")
|
|
522
523
|
], 2)) : u("", !0)
|
|
@@ -537,7 +538,7 @@ const fe = {
|
|
|
537
538
|
], 2)
|
|
538
539
|
], 64)) : (r(), i(x, { key: 1 }, [
|
|
539
540
|
t("div", {
|
|
540
|
-
class: n(
|
|
541
|
+
class: n(b.value.mobileHeader)
|
|
541
542
|
}, [
|
|
542
543
|
s(e.$slots, "mobile-trigger", {
|
|
543
544
|
isOpen: a.value,
|
|
@@ -550,7 +551,7 @@ const fe = {
|
|
|
550
551
|
class: n(["p-2 -mr-2 text-muted-foreground hover:bg-accent rounded-md", l.mobileTriggerClass]),
|
|
551
552
|
onClick: o[7] || (o[7] = (d) => a.value = !a.value)
|
|
552
553
|
}, [
|
|
553
|
-
|
|
554
|
+
f(z, {
|
|
554
555
|
icon: "lucide:menu",
|
|
555
556
|
class: "w-5 h-5"
|
|
556
557
|
}),
|
|
@@ -559,10 +560,10 @@ const fe = {
|
|
|
559
560
|
])
|
|
560
561
|
], 2),
|
|
561
562
|
t("div", {
|
|
562
|
-
class: n(
|
|
563
|
+
class: n(b.value.desktopSidebar)
|
|
563
564
|
}, [
|
|
564
565
|
t("div", {
|
|
565
|
-
class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin", l.contentClass])
|
|
566
|
+
class: n(["flex-1 px-2.5 pt-0 pb-4 overflow-y-auto space-y-4 scrollbar-thin scrollbar-stable", l.contentClass])
|
|
566
567
|
}, [
|
|
567
568
|
s(e.$slots, "left"),
|
|
568
569
|
s(e.$slots, "default"),
|
|
@@ -601,8 +602,8 @@ const fe = {
|
|
|
601
602
|
"onUpdate:show": o[8] || (o[8] = (d) => a.value = d),
|
|
602
603
|
position: "left",
|
|
603
604
|
size: "sm",
|
|
604
|
-
triggerClass:
|
|
605
|
-
class: n(["z-60",
|
|
605
|
+
triggerClass: b.value.mobileTrigger,
|
|
606
|
+
class: n(["z-60", b.value.mobileTrigger]),
|
|
606
607
|
headerClass: "pl-3! pr-4.5! py-3!",
|
|
607
608
|
bodyClass: "p-0!"
|
|
608
609
|
}, {
|
|
@@ -1,5 +1,117 @@
|
|
|
1
1
|
import { ScreenProps } from './types';
|
|
2
|
-
declare function __VLS_template():
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
title?(_: {}): any;
|
|
6
|
+
description?(_: {}): any;
|
|
7
|
+
'before-search'?(_: {}): any;
|
|
8
|
+
actions?(_: {}): any;
|
|
9
|
+
'after-add'?(_: {}): any;
|
|
10
|
+
'custom-header'?(_: {}): any;
|
|
11
|
+
'sub-header'?(_: {}): any;
|
|
12
|
+
empty?(_: {}): any;
|
|
13
|
+
table?(_: {
|
|
14
|
+
data: any[];
|
|
15
|
+
loading: boolean;
|
|
16
|
+
selectedRows: any[];
|
|
17
|
+
delete: (items: any[]) => void;
|
|
18
|
+
updateSelectedRows: (val: any[]) => any[];
|
|
19
|
+
}): any;
|
|
20
|
+
list?(_: {
|
|
21
|
+
data: any[];
|
|
22
|
+
loading: boolean;
|
|
23
|
+
selectedRows: any[];
|
|
24
|
+
delete: (items: any[]) => void;
|
|
25
|
+
updateSelectedRows: (val: any[]) => any[];
|
|
26
|
+
}): any;
|
|
27
|
+
grid?(_: {
|
|
28
|
+
data: any[];
|
|
29
|
+
loading: boolean;
|
|
30
|
+
selectedRows: any[];
|
|
31
|
+
delete: (items: any[]) => void;
|
|
32
|
+
updateSelectedRows: (val: any[]) => any[];
|
|
33
|
+
}): any;
|
|
34
|
+
};
|
|
35
|
+
refs: {
|
|
36
|
+
importDataRef: {
|
|
37
|
+
$: import('vue').ComponentInternalInstance;
|
|
38
|
+
$data: {};
|
|
39
|
+
$props: {
|
|
40
|
+
readonly title?: string;
|
|
41
|
+
readonly titleI18n?: string;
|
|
42
|
+
readonly buttonText?: string;
|
|
43
|
+
readonly buttonIcon?: string;
|
|
44
|
+
readonly fields: import('../ImportData').ImportField[];
|
|
45
|
+
readonly batchSize?: number;
|
|
46
|
+
readonly processBatch: (payload: import('../ImportData').ImportBatchPayload) => Promise<import('../ImportData').ImportBatchResult>;
|
|
47
|
+
readonly onComplete?: () => void;
|
|
48
|
+
readonly show?: boolean;
|
|
49
|
+
readonly "onUpdate:show"?: (value: boolean) => any;
|
|
50
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
51
|
+
$attrs: {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
};
|
|
54
|
+
$refs: {
|
|
55
|
+
[x: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
$slots: Readonly<{
|
|
58
|
+
[name: string]: import('vue').Slot<any>;
|
|
59
|
+
}>;
|
|
60
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
61
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
62
|
+
$host: Element | null;
|
|
63
|
+
$emit: (event: "update:show", value: boolean) => void;
|
|
64
|
+
$el: any;
|
|
65
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../ImportData').ImportDataProps & {
|
|
66
|
+
show?: boolean;
|
|
67
|
+
}> & Readonly<{
|
|
68
|
+
"onUpdate:show"?: (value: boolean) => any;
|
|
69
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
70
|
+
"update:show": (value: boolean) => any;
|
|
71
|
+
}, string, {
|
|
72
|
+
title: string;
|
|
73
|
+
batchSize: number;
|
|
74
|
+
show: boolean;
|
|
75
|
+
buttonText: string;
|
|
76
|
+
buttonIcon: string;
|
|
77
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
78
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
79
|
+
created?: (() => void) | (() => void)[];
|
|
80
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
81
|
+
mounted?: (() => void) | (() => void)[];
|
|
82
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
83
|
+
updated?: (() => void) | (() => void)[];
|
|
84
|
+
activated?: (() => void) | (() => void)[];
|
|
85
|
+
deactivated?: (() => void) | (() => void)[];
|
|
86
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
87
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
88
|
+
destroyed?: (() => void) | (() => void)[];
|
|
89
|
+
unmounted?: (() => void) | (() => void)[];
|
|
90
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
91
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
92
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
93
|
+
};
|
|
94
|
+
$forceUpdate: () => void;
|
|
95
|
+
$nextTick: typeof import('vue').nextTick;
|
|
96
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
97
|
+
} & Readonly<{
|
|
98
|
+
title: string;
|
|
99
|
+
batchSize: number;
|
|
100
|
+
show: boolean;
|
|
101
|
+
buttonText: string;
|
|
102
|
+
buttonIcon: string;
|
|
103
|
+
}> & Omit<Readonly<import('../ImportData').ImportDataProps & {
|
|
104
|
+
show?: boolean;
|
|
105
|
+
}> & Readonly<{
|
|
106
|
+
"onUpdate:show"?: (value: boolean) => any;
|
|
107
|
+
}>, "title" | "batchSize" | "show" | "buttonText" | "buttonIcon"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
108
|
+
$slots: {
|
|
109
|
+
trigger?(_: {}): any;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
rootEl: HTMLDivElement;
|
|
114
|
+
};
|
|
3
115
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
4
116
|
declare const __VLS_component: import('vue').DefineComponent<ScreenProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
117
|
delete: (items: any[]) => any;
|
|
@@ -11,23 +123,104 @@ declare const __VLS_component: import('vue').DefineComponent<ScreenProps, {}, {}
|
|
|
11
123
|
data: any[];
|
|
12
124
|
name: string;
|
|
13
125
|
loading: boolean;
|
|
14
|
-
|
|
126
|
+
exportProps: Record<string, any> | boolean;
|
|
127
|
+
importProps: Record<string, any> | boolean;
|
|
128
|
+
canAdd: boolean;
|
|
15
129
|
emptyIcon: string;
|
|
130
|
+
paginationProps: import('./types').ScreenPaginationProps;
|
|
16
131
|
exportSchema: import('../ExportData').ExportField[] | any[];
|
|
17
132
|
importSchema: import('../ImportData').ImportField[] | any[];
|
|
18
|
-
exportProps: Record<string, any> | boolean;
|
|
19
|
-
importProps: Record<string, any> | boolean;
|
|
20
133
|
importType: string;
|
|
21
134
|
customHeader: boolean;
|
|
22
135
|
canSearch: boolean;
|
|
23
|
-
canAdd: boolean;
|
|
24
136
|
pagination: boolean;
|
|
25
137
|
filterSchema: import('../Form').IForm[];
|
|
26
138
|
filterType: "modal" | "dropdown";
|
|
27
139
|
showRefresh: boolean;
|
|
28
140
|
viewProps: Record<string, any>;
|
|
29
|
-
|
|
30
|
-
|
|
141
|
+
hideSelectable: boolean;
|
|
142
|
+
hideDeleteBtn: boolean;
|
|
143
|
+
quickFilters: import('./types').ScreenQuickFilter[];
|
|
144
|
+
quickFilterKey: string;
|
|
145
|
+
quickFilterVariant: import('../Tabes').TabesVariant;
|
|
146
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
147
|
+
importDataRef: {
|
|
148
|
+
$: import('vue').ComponentInternalInstance;
|
|
149
|
+
$data: {};
|
|
150
|
+
$props: {
|
|
151
|
+
readonly title?: string;
|
|
152
|
+
readonly titleI18n?: string;
|
|
153
|
+
readonly buttonText?: string;
|
|
154
|
+
readonly buttonIcon?: string;
|
|
155
|
+
readonly fields: import('../ImportData').ImportField[];
|
|
156
|
+
readonly batchSize?: number;
|
|
157
|
+
readonly processBatch: (payload: import('../ImportData').ImportBatchPayload) => Promise<import('../ImportData').ImportBatchResult>;
|
|
158
|
+
readonly onComplete?: () => void;
|
|
159
|
+
readonly show?: boolean;
|
|
160
|
+
readonly "onUpdate:show"?: (value: boolean) => any;
|
|
161
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
162
|
+
$attrs: {
|
|
163
|
+
[x: string]: unknown;
|
|
164
|
+
};
|
|
165
|
+
$refs: {
|
|
166
|
+
[x: string]: unknown;
|
|
167
|
+
};
|
|
168
|
+
$slots: Readonly<{
|
|
169
|
+
[name: string]: import('vue').Slot<any>;
|
|
170
|
+
}>;
|
|
171
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
172
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
173
|
+
$host: Element | null;
|
|
174
|
+
$emit: (event: "update:show", value: boolean) => void;
|
|
175
|
+
$el: any;
|
|
176
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../ImportData').ImportDataProps & {
|
|
177
|
+
show?: boolean;
|
|
178
|
+
}> & Readonly<{
|
|
179
|
+
"onUpdate:show"?: (value: boolean) => any;
|
|
180
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
181
|
+
"update:show": (value: boolean) => any;
|
|
182
|
+
}, string, {
|
|
183
|
+
title: string;
|
|
184
|
+
batchSize: number;
|
|
185
|
+
show: boolean;
|
|
186
|
+
buttonText: string;
|
|
187
|
+
buttonIcon: string;
|
|
188
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
189
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
190
|
+
created?: (() => void) | (() => void)[];
|
|
191
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
192
|
+
mounted?: (() => void) | (() => void)[];
|
|
193
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
194
|
+
updated?: (() => void) | (() => void)[];
|
|
195
|
+
activated?: (() => void) | (() => void)[];
|
|
196
|
+
deactivated?: (() => void) | (() => void)[];
|
|
197
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
198
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
199
|
+
destroyed?: (() => void) | (() => void)[];
|
|
200
|
+
unmounted?: (() => void) | (() => void)[];
|
|
201
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
202
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
203
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
204
|
+
};
|
|
205
|
+
$forceUpdate: () => void;
|
|
206
|
+
$nextTick: typeof import('vue').nextTick;
|
|
207
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
208
|
+
} & Readonly<{
|
|
209
|
+
title: string;
|
|
210
|
+
batchSize: number;
|
|
211
|
+
show: boolean;
|
|
212
|
+
buttonText: string;
|
|
213
|
+
buttonIcon: string;
|
|
214
|
+
}> & Omit<Readonly<import('../ImportData').ImportDataProps & {
|
|
215
|
+
show?: boolean;
|
|
216
|
+
}> & Readonly<{
|
|
217
|
+
"onUpdate:show"?: (value: boolean) => any;
|
|
218
|
+
}>, "title" | "batchSize" | "show" | "buttonText" | "buttonIcon"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
219
|
+
$slots: {
|
|
220
|
+
trigger?(_: {}): any;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
}, HTMLDivElement>;
|
|
31
224
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
225
|
export default _default;
|
|
33
226
|
type __VLS_WithTemplateSlots<T, S> = T & {
|