vlite3 0.6.4 → 0.6.5
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/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/Screen/Screen.vue.d.ts +1 -0
- package/components/Screen/Screen.vue.js +105 -115
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/package.json +1 -1
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
|
@@ -5,8 +5,8 @@ import O from "../Input.vue.js";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "../../core/config.js";
|
|
7
7
|
import y from "../Button.vue.js";
|
|
8
|
-
import E from "./ColorIro.
|
|
9
|
-
/* empty css
|
|
8
|
+
import E from "./ColorIro.vue.js";
|
|
9
|
+
/* empty css */
|
|
10
10
|
import { useEyeDropper as P } from "@vueuse/core";
|
|
11
11
|
const I = {
|
|
12
12
|
key: 0,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Ce, computed as o, ref as x, provide as Z, watch as q, resolveComponent as Pe, openBlock as a, createElementBlock as s, normalizeClass as O, createElementVNode as g, renderSlot as w, toDisplayString as f, createBlock as c, withCtx as d, createVNode as u, createCommentVNode as m, unref as b, resolveDynamicComponent as z, Fragment as C, mergeProps as v, createTextVNode as p, renderList as Ie } from "vue";
|
|
2
2
|
import Se from "../Input.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
4
|
+
import h from "../Button.vue.js";
|
|
5
5
|
import R from "../Icon.vue.js";
|
|
6
6
|
import $e from "../Tooltip.vue.js";
|
|
7
7
|
import H from "../Modal.vue.js";
|
|
@@ -33,7 +33,7 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
33
33
|
}, et = {
|
|
34
34
|
key: 2,
|
|
35
35
|
class: "-mt-2"
|
|
36
|
-
}, tt = { class: "px-1 py-1 text-sm" }, nt = { class: "font-medium mb-3 text-muted-foreground" }, at = { class: "space-y-3" }, lt = { key: 4 }, kt = /* @__PURE__ */
|
|
36
|
+
}, tt = { class: "px-1 py-1 text-sm" }, nt = { class: "font-medium mb-3 text-muted-foreground" }, at = { class: "space-y-3" }, lt = { key: 4 }, kt = /* @__PURE__ */ Ce({
|
|
37
37
|
__name: "Screen",
|
|
38
38
|
props: {
|
|
39
39
|
name: { default: "" },
|
|
@@ -84,14 +84,14 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
84
84
|
const n = t, P = Fe(), J = _, ee = o(() => n.name || n.title || "default-screen"), I = Ne(
|
|
85
85
|
`view-mode-${ee.value}`,
|
|
86
86
|
n.table ? "table" : "list"
|
|
87
|
-
), S = x(""), T = x({}), k = x(n.pageInfo?.currentPage || 1), V = x(n.pageInfo?.itemsPerPage || n.paginationProps?.itemsPerPage || 10),
|
|
88
|
-
Z("screen-selected-rows",
|
|
87
|
+
), S = x(""), T = x({}), k = x(n.pageInfo?.currentPage || 1), V = x(n.pageInfo?.itemsPerPage || n.paginationProps?.itemsPerPage || 10), B = x([]), j = x([]), $ = x(!1);
|
|
88
|
+
Z("screen-selected-rows", B), Z("screen-request-delete", (e) => N(e));
|
|
89
89
|
const N = (e) => {
|
|
90
90
|
j.value = e, $.value = !0;
|
|
91
91
|
}, te = () => {
|
|
92
|
-
J("delete", j.value), $.value = !1,
|
|
92
|
+
J("delete", j.value), $.value = !1, B.value = [];
|
|
93
93
|
}, ne = (e) => {
|
|
94
|
-
J("delete", e),
|
|
94
|
+
J("delete", e), B.value = [];
|
|
95
95
|
};
|
|
96
96
|
q(
|
|
97
97
|
() => n.pageInfo?.currentPage,
|
|
@@ -107,14 +107,14 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
107
107
|
let F = null;
|
|
108
108
|
q(S, (e) => {
|
|
109
109
|
F && clearTimeout(F), F = setTimeout(() => {
|
|
110
|
-
k.value = 1,
|
|
110
|
+
k.value = 1, D();
|
|
111
111
|
}, 300);
|
|
112
112
|
});
|
|
113
113
|
const ae = (e) => {
|
|
114
|
-
k.value = e,
|
|
114
|
+
k.value = e, D();
|
|
115
115
|
}, le = (e) => {
|
|
116
|
-
V.value = e, k.value = 1,
|
|
117
|
-
},
|
|
116
|
+
V.value = e, k.value = 1, D();
|
|
117
|
+
}, D = () => {
|
|
118
118
|
const e = {
|
|
119
119
|
pageinfo: {
|
|
120
120
|
page: k.value,
|
|
@@ -196,8 +196,8 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
196
196
|
failed: 0,
|
|
197
197
|
errors: []
|
|
198
198
|
}), Be = () => {
|
|
199
|
-
|
|
200
|
-
}, ke = o(() => n.exportMode || P?.exportData?.mode || "frontend"),
|
|
199
|
+
D();
|
|
200
|
+
}, ke = o(() => n.exportMode || P?.exportData?.mode || "frontend"), De = async (e) => {
|
|
201
201
|
if (P?.services?.exportApi && n.exportType) {
|
|
202
202
|
const l = {
|
|
203
203
|
format: e,
|
|
@@ -212,16 +212,16 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
212
212
|
};
|
|
213
213
|
return (e, l) => {
|
|
214
214
|
const Y = Pe("router-link");
|
|
215
|
-
return a(),
|
|
216
|
-
t.customHeader ?
|
|
215
|
+
return a(), s("div", Le, [
|
|
216
|
+
t.customHeader ? w(e.$slots, "custom-header", { key: 1 }) : (a(), s("div", {
|
|
217
217
|
key: 0,
|
|
218
218
|
class: O([t.headerClass, "flex flex-col md:flex-row sm:items-start md:items-center justify-between gap-4"])
|
|
219
219
|
}, [
|
|
220
220
|
g("div", Me, [
|
|
221
|
-
|
|
222
|
-
Q.value ? (a(),
|
|
223
|
-
g("h1", qe,
|
|
224
|
-
t.info || t.infoI18n ? (a(),
|
|
221
|
+
w(e.$slots, "title", {}, () => [
|
|
222
|
+
Q.value ? (a(), s("div", Ue, [
|
|
223
|
+
g("h1", qe, f(Q.value), 1),
|
|
224
|
+
t.info || t.infoI18n ? (a(), c($e, {
|
|
225
225
|
key: 0,
|
|
226
226
|
content: t.info,
|
|
227
227
|
"content-i18n": t.infoI18n,
|
|
@@ -234,28 +234,28 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
234
234
|
})
|
|
235
235
|
]),
|
|
236
236
|
_: 1
|
|
237
|
-
}, 8, ["content", "content-i18n"])) :
|
|
238
|
-
])) :
|
|
237
|
+
}, 8, ["content", "content-i18n"])) : m("", !0)
|
|
238
|
+
])) : m("", !0)
|
|
239
239
|
]),
|
|
240
|
-
|
|
241
|
-
G.value ? (a(),
|
|
240
|
+
w(e.$slots, "description", {}, () => [
|
|
241
|
+
G.value ? (a(), s("p", ze, f(G.value), 1)) : m("", !0)
|
|
242
242
|
])
|
|
243
243
|
]),
|
|
244
244
|
g("div", He, [
|
|
245
245
|
g("div", Je, [
|
|
246
|
-
|
|
246
|
+
B.value.length > 0 ? (a(), c(h, {
|
|
247
247
|
key: 0,
|
|
248
248
|
variant: "outline",
|
|
249
249
|
class: "hover:bg-destructive/10 shrink-0 h-9! w-9!",
|
|
250
250
|
icon: "lucide:trash-2",
|
|
251
251
|
title: ie.value,
|
|
252
|
-
onClick: l[0] || (l[0] = (i) => N(
|
|
253
|
-
}, null, 8, ["title"])) :
|
|
254
|
-
t.table && t.list ? (a(),
|
|
252
|
+
onClick: l[0] || (l[0] = (i) => N(B.value))
|
|
253
|
+
}, null, 8, ["title"])) : m("", !0),
|
|
254
|
+
t.table && t.list ? (a(), s("div", Ke, [
|
|
255
255
|
g("button", {
|
|
256
256
|
onClick: l[1] || (l[1] = (i) => I.value = "list"),
|
|
257
257
|
class: O(["p-1.5 rounded", [
|
|
258
|
-
|
|
258
|
+
b(I) === "list" ? "bg-secondary/85 dark:bg-secondary shadow-sm text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
259
259
|
]]),
|
|
260
260
|
title: re.value
|
|
261
261
|
}, [
|
|
@@ -267,7 +267,7 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
267
267
|
g("button", {
|
|
268
268
|
onClick: l[2] || (l[2] = (i) => I.value = "table"),
|
|
269
269
|
class: O(["p-1.5 rounded", [
|
|
270
|
-
|
|
270
|
+
b(I) === "table" ? "bg-secondary/85 dark:bg-secondary shadow-sm text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
271
271
|
]]),
|
|
272
272
|
title: de.value
|
|
273
273
|
}, [
|
|
@@ -276,9 +276,9 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
276
276
|
class: "w-4 h-4"
|
|
277
277
|
})
|
|
278
278
|
], 10, Ge)
|
|
279
|
-
])) :
|
|
280
|
-
|
|
281
|
-
t.showRefresh ? (a(),
|
|
279
|
+
])) : m("", !0),
|
|
280
|
+
w(e.$slots, "before-search"),
|
|
281
|
+
t.showRefresh ? (a(), c(h, {
|
|
282
282
|
key: 2,
|
|
283
283
|
variant: "outline",
|
|
284
284
|
icon: "lucide:refresh-cw",
|
|
@@ -286,17 +286,17 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
286
286
|
class: "shrink-0 h-9! w-9!",
|
|
287
287
|
title: se.value,
|
|
288
288
|
disabled: t.loading,
|
|
289
|
-
onClick:
|
|
290
|
-
}, null, 8, ["title", "disabled"])) :
|
|
291
|
-
t.filterSchema && t.filterSchema.length > 0 ? (a(),
|
|
289
|
+
onClick: D
|
|
290
|
+
}, null, 8, ["title", "disabled"])) : m("", !0),
|
|
291
|
+
t.filterSchema && t.filterSchema.length > 0 ? (a(), c(Ae, {
|
|
292
292
|
key: 3,
|
|
293
293
|
schema: t.filterSchema,
|
|
294
294
|
type: t.filterType,
|
|
295
295
|
modelValue: T.value,
|
|
296
296
|
"onUpdate:modelValue": l[3] || (l[3] = (i) => T.value = i),
|
|
297
|
-
onChange:
|
|
298
|
-
}, null, 8, ["schema", "type", "modelValue"])) :
|
|
299
|
-
t.canSearch ? (a(),
|
|
297
|
+
onChange: D
|
|
298
|
+
}, null, 8, ["schema", "type", "modelValue"])) : m("", !0),
|
|
299
|
+
t.canSearch ? (a(), s("div", We, [
|
|
300
300
|
u(Se, {
|
|
301
301
|
lazy: "",
|
|
302
302
|
modelValue: S.value,
|
|
@@ -307,13 +307,13 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
307
307
|
class: "bg-background w-full",
|
|
308
308
|
"show-clear-button": !0
|
|
309
309
|
}, null, 8, ["modelValue", "placeholder"])
|
|
310
|
-
])) :
|
|
310
|
+
])) : m("", !0)
|
|
311
311
|
]),
|
|
312
312
|
g("div", Xe, [
|
|
313
|
-
|
|
314
|
-
t.addComponent ? (a(),
|
|
315
|
-
t.addBtn ? (a(),
|
|
316
|
-
t.addBtn.modal ? (a(),
|
|
313
|
+
w(e.$slots, "actions", {}, () => [
|
|
314
|
+
t.addComponent ? (a(), c(z(t.addComponent), { key: 0 })) : t.canAdd ? (a(), s(C, { key: 1 }, [
|
|
315
|
+
t.addBtn ? (a(), s(C, { key: 0 }, [
|
|
316
|
+
t.addBtn.modal ? (a(), c(H, v({
|
|
317
317
|
key: 0,
|
|
318
318
|
body: t.addBtn.modal
|
|
319
319
|
}, t.addBtn.modalProps, {
|
|
@@ -323,53 +323,53 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
323
323
|
loading: t.loading
|
|
324
324
|
}), {
|
|
325
325
|
trigger: d(() => [
|
|
326
|
-
u(
|
|
326
|
+
u(h, v({
|
|
327
327
|
class: "w-full",
|
|
328
328
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
329
329
|
variant: t.addBtn.variant || "primary"
|
|
330
330
|
}, t.addBtn.buttonProps), {
|
|
331
331
|
default: d(() => [
|
|
332
|
-
p(
|
|
332
|
+
p(f(y.value), 1)
|
|
333
333
|
]),
|
|
334
334
|
_: 1
|
|
335
335
|
}, 16, ["icon", "variant"])
|
|
336
336
|
]),
|
|
337
337
|
_: 1
|
|
338
|
-
}, 16, ["body", "refetch", "data", "loading"])) : t.addBtn.to ? (a(),
|
|
338
|
+
}, 16, ["body", "refetch", "data", "loading"])) : t.addBtn.to ? (a(), c(Y, {
|
|
339
339
|
key: 1,
|
|
340
340
|
to: t.addBtn.to,
|
|
341
341
|
class: "inline-flex w-full sm:w-auto"
|
|
342
342
|
}, {
|
|
343
343
|
default: d(() => [
|
|
344
|
-
u(
|
|
344
|
+
u(h, v({
|
|
345
345
|
class: "w-full",
|
|
346
346
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
347
347
|
variant: t.addBtn.variant || "primary"
|
|
348
348
|
}, t.addBtn.buttonProps), {
|
|
349
349
|
default: d(() => [
|
|
350
|
-
p(
|
|
350
|
+
p(f(y.value), 1)
|
|
351
351
|
]),
|
|
352
352
|
_: 1
|
|
353
353
|
}, 16, ["icon", "variant"])
|
|
354
354
|
]),
|
|
355
355
|
_: 1
|
|
356
|
-
}, 8, ["to"])) : t.addBtn.href ? (a(),
|
|
356
|
+
}, 8, ["to"])) : t.addBtn.href ? (a(), s("a", {
|
|
357
357
|
key: 2,
|
|
358
358
|
href: t.addBtn.href,
|
|
359
359
|
target: t.addBtn.target,
|
|
360
360
|
class: "inline-flex w-full sm:w-auto"
|
|
361
361
|
}, [
|
|
362
|
-
u(
|
|
362
|
+
u(h, v({
|
|
363
363
|
class: "w-full",
|
|
364
364
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
365
365
|
variant: t.addBtn.variant || "primary"
|
|
366
366
|
}, t.addBtn.buttonProps), {
|
|
367
367
|
default: d(() => [
|
|
368
|
-
p(
|
|
368
|
+
p(f(y.value), 1)
|
|
369
369
|
]),
|
|
370
370
|
_: 1
|
|
371
371
|
}, 16, ["icon", "variant"])
|
|
372
|
-
], 8, Ye)) : (a(),
|
|
372
|
+
], 8, Ye)) : (a(), c(h, v({
|
|
373
373
|
key: 3,
|
|
374
374
|
class: "w-full sm:w-auto",
|
|
375
375
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
@@ -378,25 +378,14 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
378
378
|
onClick: l[5] || (l[5] = (i) => t.addBtn.onClick ? t.addBtn.onClick() : e.$emit("add"))
|
|
379
379
|
}), {
|
|
380
380
|
default: d(() => [
|
|
381
|
-
p(
|
|
381
|
+
p(f(y.value), 1)
|
|
382
382
|
]),
|
|
383
383
|
_: 1
|
|
384
384
|
}, 16, ["icon", "variant"]))
|
|
385
|
-
], 64)) : (
|
|
386
|
-
|
|
387
|
-
class: "w-full sm:w-auto",
|
|
388
|
-
icon: "fluent:add-16-filled",
|
|
389
|
-
variant: "primary",
|
|
390
|
-
onClick: l[6] || (l[6] = (i) => e.$emit("add"))
|
|
391
|
-
}, {
|
|
392
|
-
default: d(() => [
|
|
393
|
-
p(m(y.value), 1)
|
|
394
|
-
]),
|
|
395
|
-
_: 1
|
|
396
|
-
}))
|
|
397
|
-
], 64)) : f("", !0)
|
|
385
|
+
], 64)) : m("", !0)
|
|
386
|
+
], 64)) : m("", !0)
|
|
398
387
|
]),
|
|
399
|
-
W.value ? (a(),
|
|
388
|
+
W.value ? (a(), c(Ee, {
|
|
400
389
|
key: 0,
|
|
401
390
|
closeOnSelect: "",
|
|
402
391
|
position: "bottom-end",
|
|
@@ -404,24 +393,25 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
404
393
|
onOnSelect: ye
|
|
405
394
|
}, {
|
|
406
395
|
trigger: d(() => [
|
|
407
|
-
u(
|
|
396
|
+
u(h, {
|
|
408
397
|
variant: "outline",
|
|
409
398
|
icon: "lucide:more-vertical",
|
|
410
399
|
class: "px-2!",
|
|
411
|
-
title:
|
|
400
|
+
title: b(r)("vlite.screen.moreOptions") !== "vlite.screen.moreOptions" ? b(r)("vlite.screen.moreOptions") : "More Options"
|
|
412
401
|
}, null, 8, ["title"])
|
|
413
402
|
]),
|
|
414
403
|
_: 1
|
|
415
|
-
}, 8, ["options"])) :
|
|
416
|
-
|
|
404
|
+
}, 8, ["options"])) : m("", !0),
|
|
405
|
+
w(e.$slots, "after-add")
|
|
417
406
|
])
|
|
418
407
|
])
|
|
419
408
|
], 2)),
|
|
409
|
+
w(e.$slots, "sub-header"),
|
|
420
410
|
g("div", {
|
|
421
|
-
class: O(["flex-1 w-full relative min-h-[
|
|
411
|
+
class: O(["flex-1 w-full relative min-h-[250px]", t.containerClass])
|
|
422
412
|
}, [
|
|
423
|
-
!oe.value && !t.loading ?
|
|
424
|
-
u(
|
|
413
|
+
!oe.value && !t.loading ? w(e.$slots, "empty", { key: 0 }, () => [
|
|
414
|
+
u(b(je), {
|
|
425
415
|
title: t.emptyTitle,
|
|
426
416
|
titleI18n: t.emptyTitleI18n,
|
|
427
417
|
description: t.emptyDescription,
|
|
@@ -429,100 +419,100 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
429
419
|
icon: t.emptyIcon
|
|
430
420
|
}, {
|
|
431
421
|
action: d(() => [
|
|
432
|
-
t.addComponent ? (a(),
|
|
433
|
-
t.addBtn ? (a(),
|
|
434
|
-
t.addBtn.modal ? (a(),
|
|
422
|
+
t.addComponent ? (a(), c(z(t.addComponent), { key: 0 })) : t.canAdd ? (a(), s(C, { key: 1 }, [
|
|
423
|
+
t.addBtn ? (a(), s(C, { key: 0 }, [
|
|
424
|
+
t.addBtn.modal ? (a(), c(H, v({
|
|
435
425
|
key: 0,
|
|
436
426
|
body: t.addBtn.modal
|
|
437
427
|
}, t.addBtn.modalProps), {
|
|
438
428
|
trigger: d(() => [
|
|
439
|
-
u(
|
|
429
|
+
u(h, v({
|
|
440
430
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
441
431
|
variant: t.addBtn.variant || "primary",
|
|
442
432
|
rounded: "full",
|
|
443
433
|
class: "px-6!"
|
|
444
434
|
}, t.addBtn.buttonProps), {
|
|
445
435
|
default: d(() => [
|
|
446
|
-
p(
|
|
436
|
+
p(f(y.value), 1)
|
|
447
437
|
]),
|
|
448
438
|
_: 1
|
|
449
439
|
}, 16, ["icon", "variant"])
|
|
450
440
|
]),
|
|
451
441
|
_: 1
|
|
452
|
-
}, 16, ["body"])) : t.addBtn.to ? (a(),
|
|
442
|
+
}, 16, ["body"])) : t.addBtn.to ? (a(), c(Y, {
|
|
453
443
|
key: 1,
|
|
454
444
|
to: t.addBtn.to,
|
|
455
445
|
class: "inline-flex"
|
|
456
446
|
}, {
|
|
457
447
|
default: d(() => [
|
|
458
|
-
u(
|
|
448
|
+
u(h, v({
|
|
459
449
|
icon: t.addBtn.icon || "fluent:add-16-filled",
|
|
460
450
|
variant: t.addBtn.variant || "outline"
|
|
461
451
|
}, t.addBtn.buttonProps), {
|
|
462
452
|
default: d(() => [
|
|
463
|
-
p(
|
|
453
|
+
p(f(y.value), 1)
|
|
464
454
|
]),
|
|
465
455
|
_: 1
|
|
466
456
|
}, 16, ["icon", "variant"])
|
|
467
457
|
]),
|
|
468
458
|
_: 1
|
|
469
|
-
}, 8, ["to"])) : t.addBtn.href ? (a(),
|
|
459
|
+
}, 8, ["to"])) : t.addBtn.href ? (a(), s("a", {
|
|
470
460
|
key: 2,
|
|
471
461
|
href: t.addBtn.href,
|
|
472
462
|
target: t.addBtn.target,
|
|
473
463
|
class: "inline-flex"
|
|
474
464
|
}, [
|
|
475
|
-
u(
|
|
465
|
+
u(h, v({
|
|
476
466
|
icon: t.addBtn.icon || "lucide:plus",
|
|
477
467
|
variant: t.addBtn.variant || "outline"
|
|
478
468
|
}, t.addBtn.buttonProps), {
|
|
479
469
|
default: d(() => [
|
|
480
|
-
p(
|
|
470
|
+
p(f(y.value), 1)
|
|
481
471
|
]),
|
|
482
472
|
_: 1
|
|
483
473
|
}, 16, ["icon", "variant"])
|
|
484
|
-
], 8, Ze)) : (a(),
|
|
474
|
+
], 8, Ze)) : (a(), c(h, v({
|
|
485
475
|
key: 3,
|
|
486
476
|
icon: t.addBtn.icon || "lucide:plus",
|
|
487
477
|
variant: t.addBtn.variant || "outline"
|
|
488
478
|
}, t.addBtn.buttonProps, {
|
|
489
|
-
onClick: l[
|
|
479
|
+
onClick: l[6] || (l[6] = (i) => t.addBtn.onClick ? t.addBtn.onClick() : e.$emit("add"))
|
|
490
480
|
}), {
|
|
491
481
|
default: d(() => [
|
|
492
|
-
p(
|
|
482
|
+
p(f(y.value), 1)
|
|
493
483
|
]),
|
|
494
484
|
_: 1
|
|
495
485
|
}, 16, ["icon", "variant"]))
|
|
496
|
-
], 64)) : (a(),
|
|
486
|
+
], 64)) : (a(), c(h, {
|
|
497
487
|
key: 1,
|
|
498
488
|
icon: "lucide:plus",
|
|
499
489
|
variant: "outline",
|
|
500
|
-
onClick: l[
|
|
490
|
+
onClick: l[7] || (l[7] = (i) => e.$emit("add"))
|
|
501
491
|
}, {
|
|
502
492
|
default: d(() => [
|
|
503
|
-
p(
|
|
493
|
+
p(f(y.value), 1)
|
|
504
494
|
]),
|
|
505
495
|
_: 1
|
|
506
496
|
}))
|
|
507
|
-
], 64)) :
|
|
497
|
+
], 64)) : m("", !0)
|
|
508
498
|
]),
|
|
509
499
|
_: 1
|
|
510
500
|
}, 8, ["title", "titleI18n", "description", "descriptionI18n", "icon"])
|
|
511
|
-
]) : (a(),
|
|
512
|
-
K.value ? (a(),
|
|
501
|
+
]) : (a(), s(C, { key: 1 }, [
|
|
502
|
+
K.value ? (a(), c(z(K.value), {
|
|
513
503
|
key: 0,
|
|
514
504
|
data: t.data,
|
|
515
505
|
loading: t.loading,
|
|
516
506
|
refetch: t.refetch,
|
|
517
|
-
selectedRows:
|
|
518
|
-
"onUpdate:selectedRows": l[
|
|
507
|
+
selectedRows: B.value,
|
|
508
|
+
"onUpdate:selectedRows": l[8] || (l[8] = (i) => B.value = i),
|
|
519
509
|
delete: N,
|
|
520
510
|
onDelete: ne
|
|
521
|
-
}, null, 40, ["data", "loading", "refetch", "selectedRows"])) : (a(),
|
|
511
|
+
}, null, 40, ["data", "loading", "refetch", "selectedRows"])) : (a(), s("div", _e, f(he.value), 1))
|
|
522
512
|
], 64))
|
|
523
513
|
], 2),
|
|
524
|
-
t.pagination && t.pageInfo && t.pageInfo.totalPages > 1 ? (a(),
|
|
525
|
-
u(
|
|
514
|
+
t.pagination && t.pageInfo && t.pageInfo.totalPages > 1 ? (a(), s("div", et, [
|
|
515
|
+
u(b(Ve), v({
|
|
526
516
|
"current-page": t.pageInfo.currentPage,
|
|
527
517
|
"total-pages": t.pageInfo.totalPages,
|
|
528
518
|
"total-items": t.pageInfo.totalItems
|
|
@@ -530,45 +520,45 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
530
520
|
onChange: ae,
|
|
531
521
|
"onUpdate:itemsPerPage": le
|
|
532
522
|
}), null, 16, ["current-page", "total-pages", "total-items"])
|
|
533
|
-
])) :
|
|
523
|
+
])) : m("", !0),
|
|
534
524
|
u(Te, {
|
|
535
525
|
show: $.value,
|
|
536
|
-
"onUpdate:show": l[
|
|
526
|
+
"onUpdate:show": l[9] || (l[9] = (i) => $.value = i),
|
|
537
527
|
title: ue.value,
|
|
538
528
|
description: me.value,
|
|
539
529
|
"confirm-text": fe.value,
|
|
540
530
|
"cancel-text": ve.value,
|
|
541
531
|
variant: "danger",
|
|
542
532
|
onConfirm: te,
|
|
543
|
-
onCancel: l[
|
|
533
|
+
onCancel: l[10] || (l[10] = (i) => $.value = !1)
|
|
544
534
|
}, null, 8, ["show", "title", "description", "confirm-text", "cancel-text"]),
|
|
545
|
-
A.value ? (a(),
|
|
535
|
+
A.value ? (a(), c(H, {
|
|
546
536
|
key: 3,
|
|
547
537
|
show: A.value,
|
|
548
|
-
"onUpdate:show": l[
|
|
538
|
+
"onUpdate:show": l[11] || (l[11] = (i) => A.value = i),
|
|
549
539
|
title: L.value,
|
|
550
540
|
"max-width": "sm:max-w-[400px]"
|
|
551
541
|
}, {
|
|
552
542
|
default: d(({ close: i }) => [
|
|
553
|
-
u(Oe,
|
|
543
|
+
u(Oe, v({
|
|
554
544
|
ref_key: "exportDataRef",
|
|
555
545
|
ref: M,
|
|
556
546
|
data: t.data || [],
|
|
557
547
|
fields: pe.value,
|
|
558
548
|
mode: ke.value,
|
|
559
|
-
"on-export":
|
|
549
|
+
"on-export": De
|
|
560
550
|
}, typeof t.exportProps == "object" ? t.exportProps : {}, {
|
|
561
551
|
title: L.value,
|
|
562
552
|
class: "hidden!"
|
|
563
553
|
}), null, 16, ["data", "fields", "mode", "title"]),
|
|
564
554
|
g("div", tt, [
|
|
565
|
-
g("h6", nt,
|
|
555
|
+
g("h6", nt, f(b(r)("vlite.exportData.selectFormat") !== "vlite.exportData.selectFormat" ? b(r)("vlite.exportData.selectFormat") : "Select Export Format"), 1),
|
|
566
556
|
g("div", at, [
|
|
567
|
-
(a(!0),
|
|
557
|
+
(a(!0), s(C, null, Ie(M.value?.availableFormats || [
|
|
568
558
|
{ value: "excel", label: "Excel (.xlsx)", icon: "lucide:file-spreadsheet" },
|
|
569
559
|
{ value: "csv", label: "CSV (.csv)", icon: "lucide:file-text" },
|
|
570
560
|
{ value: "json", label: "JSON (.json)", icon: "lucide:file-json" }
|
|
571
|
-
], (E) => (a(),
|
|
561
|
+
], (E) => (a(), c(h, {
|
|
572
562
|
key: E.value,
|
|
573
563
|
variant: "outline",
|
|
574
564
|
class: "w-full flex items-center justify-start gap-3 h-12",
|
|
@@ -579,7 +569,7 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
579
569
|
icon: E.icon,
|
|
580
570
|
class: "text-muted-foreground h-5 w-5"
|
|
581
571
|
}, null, 8, ["icon"]),
|
|
582
|
-
g("span", null,
|
|
572
|
+
g("span", null, f(E.label), 1)
|
|
583
573
|
]),
|
|
584
574
|
_: 2
|
|
585
575
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -587,11 +577,11 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
587
577
|
])
|
|
588
578
|
]),
|
|
589
579
|
_: 1
|
|
590
|
-
}, 8, ["show", "title"])) :
|
|
591
|
-
W.value ? (a(),
|
|
592
|
-
u(Re,
|
|
580
|
+
}, 8, ["show", "title"])) : m("", !0),
|
|
581
|
+
W.value ? (a(), s("div", lt, [
|
|
582
|
+
u(Re, v({
|
|
593
583
|
show: U.value,
|
|
594
|
-
"onUpdate:show": l[
|
|
584
|
+
"onUpdate:show": l[12] || (l[12] = (i) => U.value = i),
|
|
595
585
|
ref_key: "importDataRef",
|
|
596
586
|
ref: xe,
|
|
597
587
|
fields: we.value,
|
|
@@ -601,7 +591,7 @@ const Le = { class: "flex flex-col w-full space-y-8" }, Me = { class: "flex flex
|
|
|
601
591
|
title: X.value,
|
|
602
592
|
class: "hidden!"
|
|
603
593
|
}), null, 16, ["show", "fields", "title"])
|
|
604
|
-
])) :
|
|
594
|
+
])) : m("", !0)
|
|
605
595
|
]);
|
|
606
596
|
};
|
|
607
597
|
}
|
package/package.json
CHANGED
|
File without changes
|