vlite3 1.2.17 → 1.3.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/README.md +1 -0
- package/components/AsyncSelect/createAsyncSelect.d.ts +12 -0
- package/components/AsyncSelect/createAsyncSelect.js +91 -61
- package/components/Button.vue.d.ts +2 -0
- package/components/Button.vue.js +66 -55
- package/components/Carousel/Carousel.vue.js +2 -2
- package/components/Carousel/Carousel.vue2.js +12 -10
- package/components/CategoryManager/CategoryManager.vue.d.ts +9 -1
- package/components/CategoryManager/CategoryManager.vue.js +5 -461
- package/components/CategoryManager/CategoryManager.vue2.js +515 -2
- package/components/CategoryManager/CategoryNode.vue.js +65 -64
- package/components/CategoryManager/types.d.ts +16 -0
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Dropdown/DropdownMenu.vue2.js +1 -1
- package/components/FadeOverlay/FadeOverlay.vue.d.ts +13 -0
- package/components/FadeOverlay/FadeOverlay.vue.js +59 -0
- package/components/FadeOverlay/index.d.ts +2 -0
- package/components/FadeOverlay/types.d.ts +72 -0
- package/components/FadeOverlay/utils.d.ts +6 -0
- package/components/FadeOverlay/utils.js +31 -0
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/NumberInput.vue.js +2 -2
- package/components/Screen/Screen.vue.js +51 -51
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Screen/components/ScreenQuickFilters.vue.js +3 -3
- package/components/Switch.vue.js +9 -3
- package/components/Tabes/Tabes.vue.d.ts +2 -1
- package/components/Tabes/Tabes.vue.js +2 -2
- package/components/Tabes/Tabes.vue2.js +200 -78
- package/components/index.d.ts +1 -0
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/style.css +17 -18
- package/components/FadeOverlay.vue.d.ts +0 -31
- package/components/FadeOverlay.vue.js +0 -55
- /package/components/{FadeOverlay.vue2.js → FadeOverlay/FadeOverlay.vue2.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Re, useSlots as qe, computed as n, markRaw as T, ref as p, provide as K, watch as L, openBlock as d, createElementBlock as h, normalizeClass as
|
|
1
|
+
import { defineComponent as Re, useSlots as qe, computed as n, markRaw as T, ref as p, provide as K, watch as L, openBlock as d, createElementBlock as h, normalizeClass as D, Fragment as A, createElementVNode as U, createVNode as C, createSlots as le, withCtx as b, renderSlot as s, normalizeProps as c, guardReactiveProps as w, mergeProps as y, createBlock as j, createCommentVNode as R, unref as O, resolveDynamicComponent as Ee, toDisplayString as Qe } from "vue";
|
|
2
2
|
import Ae from "../ConfirmationModal.vue.js";
|
|
3
3
|
import Ue from "../Pagination/Pagination.vue.js";
|
|
4
4
|
import je from "../ImportData/ImportData.vue.js";
|
|
@@ -13,12 +13,15 @@ import ne from "./components/ScreenQuickFilters.vue.js";
|
|
|
13
13
|
import se from "./components/ScreenToolbar.vue.js";
|
|
14
14
|
import Oe from "../Stats/Stats.vue.js";
|
|
15
15
|
const ze = { key: 0 }, Xe = {
|
|
16
|
+
key: 2,
|
|
17
|
+
class: "-mt-1.5 w-full min-w-0 overflow-hidden mb-3.5"
|
|
18
|
+
}, Ye = {
|
|
16
19
|
key: 6,
|
|
17
20
|
class: "p-8 text-center text-muted-foreground border border-dashed border-border rounded-lg"
|
|
18
|
-
},
|
|
21
|
+
}, Ge = {
|
|
19
22
|
key: 2,
|
|
20
23
|
class: "-mt-2"
|
|
21
|
-
},
|
|
24
|
+
}, Je = { key: 4 }, ut = /* @__PURE__ */ Re({
|
|
22
25
|
__name: "Screen",
|
|
23
26
|
props: {
|
|
24
27
|
name: { default: "" },
|
|
@@ -90,7 +93,7 @@ const ze = { key: 0 }, Xe = {
|
|
|
90
93
|
},
|
|
91
94
|
emits: ["add", "delete"],
|
|
92
95
|
setup(t, { emit: oe }) {
|
|
93
|
-
const a = t,
|
|
96
|
+
const a = t, I = He(), z = oe, g = qe(), re = n(() => a.name || a.title || "default-screen"), de = n(() => {
|
|
94
97
|
const e = f("vlite.screen.tableView");
|
|
95
98
|
return e !== "vlite.screen.tableView" ? e : "Table View";
|
|
96
99
|
}), ce = n(() => {
|
|
@@ -132,10 +135,10 @@ const ze = { key: 0 }, Xe = {
|
|
|
132
135
|
}), e;
|
|
133
136
|
});
|
|
134
137
|
n(() => S.value.map((e) => e.key));
|
|
135
|
-
const X = n(() => S.value.length > 1), fe = n(() => S.value.length > 0 ? S.value[0].key : "table"), u = Ne(`view-mode-${re.value}`, fe.value), Y = n(() => S.value.find((i) => i.key === u.value)?.component ?? null),
|
|
138
|
+
const X = n(() => S.value.length > 1), fe = n(() => S.value.length > 0 ? S.value[0].key : "table"), u = Ne(`view-mode-${re.value}`, fe.value), Y = n(() => S.value.find((i) => i.key === u.value)?.component ?? null), F = n(() => u.value === "table" && g.table ? "table" : u.value === "list" && g.list ? "list" : u.value === "list" && g.grid ? "grid" : u.value === "kanban" && g.kanban ? "kanban" : u.value === "calendar" && g.calendar ? "calendar" : null), k = p(""), m = p({}), $ = p({ field: "", order: "" }), P = p(a.pageInfo?.currentPage || 1), q = p(a.pageInfo?.itemsPerPage || a.paginationProps?.itemsPerPage || 10), o = p([]), E = p([]), B = p(!1), v = p(
|
|
136
139
|
a.defaultQuickFilter !== void 0 ? a.defaultQuickFilter : a.quickFilters && a.quickFilters.length > 0 ? a.quickFilters[0].value : ""
|
|
137
140
|
), G = n(() => !a.quickFilters || a.quickFilters.length === 0 ? !1 : a.skipQuickFilterViews && a.skipQuickFilterViews.length > 0 ? !a.skipQuickFilterViews.includes(u.value) : !0), J = (e) => {
|
|
138
|
-
v.value = e, P.value = 1,
|
|
141
|
+
v.value = e, P.value = 1, V();
|
|
139
142
|
}, W = n(() => k.value && k.value.trim() !== "" || v.value !== "" && v.value !== null && v.value !== void 0 ? !0 : m.value ? Object.keys(m.value).some(
|
|
140
143
|
(e) => m.value[e] !== "" && m.value[e] !== null && m.value[e] !== void 0
|
|
141
144
|
) : !1), Z = n(() => a.data && a.data.length > 0), me = n(() => !a.skipEmptyViews || a.skipEmptyViews.length === 0 ? !1 : a.skipEmptyViews.includes(u.value)), r = n(() => ({
|
|
@@ -153,7 +156,7 @@ const ze = { key: 0 }, Xe = {
|
|
|
153
156
|
})), pe = {
|
|
154
157
|
forceSelectable: !a.hideSelectable,
|
|
155
158
|
onTableChange: (e) => {
|
|
156
|
-
$.value = { field: e.sort.field, order: e.sort.order },
|
|
159
|
+
$.value = { field: e.sort.field, order: e.sort.order }, V();
|
|
157
160
|
}
|
|
158
161
|
};
|
|
159
162
|
K(Me, pe), K("screen-selected-rows", o), K("screen-request-delete", (e) => x(e));
|
|
@@ -178,14 +181,14 @@ const ze = { key: 0 }, Xe = {
|
|
|
178
181
|
let N = null;
|
|
179
182
|
L(k, () => {
|
|
180
183
|
N && clearTimeout(N), N = setTimeout(() => {
|
|
181
|
-
P.value = 1,
|
|
184
|
+
P.value = 1, V();
|
|
182
185
|
}, 300);
|
|
183
186
|
});
|
|
184
187
|
const ye = (e) => {
|
|
185
|
-
P.value = e,
|
|
188
|
+
P.value = e, V();
|
|
186
189
|
}, ge = (e) => {
|
|
187
|
-
q.value = e, P.value = 1,
|
|
188
|
-
},
|
|
190
|
+
q.value = e, P.value = 1, V();
|
|
191
|
+
}, V = () => {
|
|
189
192
|
if (!a.refetch) return;
|
|
190
193
|
const e = { ...m.value };
|
|
191
194
|
v.value !== "" && v.value !== null && v.value !== void 0 && (e[a.quickFilterKey] = v.value);
|
|
@@ -237,7 +240,7 @@ const ze = { key: 0 }, Xe = {
|
|
|
237
240
|
title: e.label || e.title || e.name || e.field,
|
|
238
241
|
required: e.required || !1
|
|
239
242
|
}))
|
|
240
|
-
),
|
|
243
|
+
), Ie = async (e) => I?.services?.importApi && a.importType ? await I.services.importApi(a.importType, e) : (console.warn(
|
|
241
244
|
"VLite Screen: No importApi configured or no importType provided for generic import."
|
|
242
245
|
), {
|
|
243
246
|
processed: e.data.length,
|
|
@@ -246,10 +249,10 @@ const ze = { key: 0 }, Xe = {
|
|
|
246
249
|
skipped: 0,
|
|
247
250
|
failed: 0,
|
|
248
251
|
errors: []
|
|
249
|
-
}),
|
|
250
|
-
() => a.exportMode ||
|
|
252
|
+
}), Fe = () => V(), Be = n(
|
|
253
|
+
() => a.exportMode || I?.exportData?.mode || "frontend"
|
|
251
254
|
), Te = async (e) => {
|
|
252
|
-
|
|
255
|
+
I?.services?.exportApi && a.exportType ? await I.services.exportApi(a.exportType, {
|
|
253
256
|
format: e,
|
|
254
257
|
search: k.value,
|
|
255
258
|
filter: m.value
|
|
@@ -258,20 +261,20 @@ const ze = { key: 0 }, Xe = {
|
|
|
258
261
|
);
|
|
259
262
|
};
|
|
260
263
|
return (e, i) => (d(), h("div", {
|
|
261
|
-
class:
|
|
264
|
+
class: D(["flex flex-col w-full space-y-8", t.containerClass])
|
|
262
265
|
}, [
|
|
263
266
|
t.variant === "two" ? (d(), h(A, { key: 0 }, [
|
|
264
267
|
t.customHeader ? s(e.$slots, "custom-header", c(y({ key: 1 }, r.value))) : (d(), h("div", {
|
|
265
268
|
key: 0,
|
|
266
|
-
class:
|
|
269
|
+
class: D([t.headerClass, "flex flex-col space-y-6"])
|
|
267
270
|
}, [
|
|
268
271
|
U("div", {
|
|
269
|
-
class:
|
|
272
|
+
class: D([
|
|
270
273
|
"flex flex-col md:flex-row justify-between items-start md:items-center gap-4",
|
|
271
274
|
t.topHeaderClass
|
|
272
275
|
])
|
|
273
276
|
}, [
|
|
274
|
-
|
|
277
|
+
C(ie, {
|
|
275
278
|
title: t.title,
|
|
276
279
|
"title-i18n": t.titleI18n,
|
|
277
280
|
"title-class": t.titleClass,
|
|
@@ -297,18 +300,18 @@ const ze = { key: 0 }, Xe = {
|
|
|
297
300
|
} : void 0
|
|
298
301
|
]), 1032, ["title", "title-i18n", "title-class", "description", "description-i18n", "description-class", "info", "info-i18n"]),
|
|
299
302
|
t.stats && t.stats.length > 0 ? (d(), h("div", ze, [
|
|
300
|
-
|
|
303
|
+
C(Oe, y({ items: t.stats }, t.statsProps), null, 16, ["items"])
|
|
301
304
|
])) : s(e.$slots, "header-stats", { key: 1 })
|
|
302
305
|
], 2),
|
|
303
306
|
U("div", {
|
|
304
|
-
class:
|
|
307
|
+
class: D([
|
|
305
308
|
"flex flex-col lg:flex-row lg:items-center justify-between gap-4",
|
|
306
309
|
t.bottomHeaderClass
|
|
307
310
|
])
|
|
308
311
|
}, [
|
|
309
312
|
U("div", {
|
|
310
|
-
class:
|
|
311
|
-
"flex-1 w-full flex items-center justify-start overflow-
|
|
313
|
+
class: D([
|
|
314
|
+
"flex-1 w-full min-w-0 flex items-center justify-start overflow-hidden pt-1.5",
|
|
312
315
|
t.filtersContainerClass
|
|
313
316
|
])
|
|
314
317
|
}, [
|
|
@@ -321,8 +324,8 @@ const ze = { key: 0 }, Xe = {
|
|
|
321
324
|
onChange: J
|
|
322
325
|
}, null, 8, ["modelValue", "options", "variant"])) : R("", !0)
|
|
323
326
|
], 2),
|
|
324
|
-
|
|
325
|
-
class:
|
|
327
|
+
C(se, {
|
|
328
|
+
class: D([
|
|
326
329
|
"flex items-center gap-2.5 max-sm:w-full sm:w-auto justify-end",
|
|
327
330
|
t.actionsContainerClass
|
|
328
331
|
]),
|
|
@@ -355,7 +358,7 @@ const ze = { key: 0 }, Xe = {
|
|
|
355
358
|
"onUpdate:activeView": i[1] || (i[1] = (l) => u.value = l),
|
|
356
359
|
"onUpdate:searchQuery": i[2] || (i[2] = (l) => k.value = l),
|
|
357
360
|
"onUpdate:activeFilters": i[3] || (i[3] = (l) => m.value = l),
|
|
358
|
-
onRefresh:
|
|
361
|
+
onRefresh: V,
|
|
359
362
|
onAdd: i[4] || (i[4] = (l) => e.$emit("add")),
|
|
360
363
|
onSelectDropdown: ae
|
|
361
364
|
}, {
|
|
@@ -376,9 +379,9 @@ const ze = { key: 0 }, Xe = {
|
|
|
376
379
|
], 64)) : (d(), h(A, { key: 1 }, [
|
|
377
380
|
t.customHeader ? s(e.$slots, "custom-header", c(y({ key: 1 }, r.value))) : (d(), h("div", {
|
|
378
381
|
key: 0,
|
|
379
|
-
class:
|
|
382
|
+
class: D([t.headerClass, "flex flex-col md:flex-row sm:items-start md:items-center justify-between gap-4"])
|
|
380
383
|
}, [
|
|
381
|
-
|
|
384
|
+
C(ie, {
|
|
382
385
|
title: t.title,
|
|
383
386
|
"title-i18n": t.titleI18n,
|
|
384
387
|
"title-class": t.titleClass,
|
|
@@ -403,7 +406,7 @@ const ze = { key: 0 }, Xe = {
|
|
|
403
406
|
key: "1"
|
|
404
407
|
} : void 0
|
|
405
408
|
]), 1032, ["title", "title-i18n", "title-class", "description", "description-i18n", "description-class", "info", "info-i18n"]),
|
|
406
|
-
|
|
409
|
+
C(se, {
|
|
407
410
|
class: "flex flex-col sm:flex-row items-start sm:items-center gap-2.5 w-full justify-end",
|
|
408
411
|
"selected-rows": o.value,
|
|
409
412
|
"hide-selectable": t.hideSelectable,
|
|
@@ -434,7 +437,7 @@ const ze = { key: 0 }, Xe = {
|
|
|
434
437
|
"onUpdate:activeView": i[5] || (i[5] = (l) => u.value = l),
|
|
435
438
|
"onUpdate:searchQuery": i[6] || (i[6] = (l) => k.value = l),
|
|
436
439
|
"onUpdate:activeFilters": i[7] || (i[7] = (l) => m.value = l),
|
|
437
|
-
onRefresh:
|
|
440
|
+
onRefresh: V,
|
|
438
441
|
onAdd: i[8] || (i[8] = (l) => e.$emit("add")),
|
|
439
442
|
onSelectDropdown: ae
|
|
440
443
|
}, {
|
|
@@ -451,21 +454,18 @@ const ze = { key: 0 }, Xe = {
|
|
|
451
454
|
}, 8, ["selected-rows", "hide-selectable", "hide-delete-btn", "txt-delete-selected", "has-multiple-views", "active-view", "resolved-views", "show-refresh", "loading", "txt-refresh", "filter-schema", "filter-type", "active-filters", "can-search", "search-query", "txt-search", "can-add", "add-component", "add-btn", "data", "refetch", "has-export-or-import", "export-props", "import-props", "screen-state"])
|
|
452
455
|
], 2)),
|
|
453
456
|
s(e.$slots, "sub-header", c(w(r.value))),
|
|
454
|
-
G.value ? (d(), h("div",
|
|
455
|
-
|
|
456
|
-
class: C(["-mt-1 max-sm:hidden!", t.quickFilterVariant == "line" ? "mb-1.5 sm:mb-3" : "mb-3.5"])
|
|
457
|
-
}, [
|
|
458
|
-
V(ne, {
|
|
457
|
+
G.value ? (d(), h("div", Xe, [
|
|
458
|
+
C(ne, {
|
|
459
459
|
modelValue: v.value,
|
|
460
460
|
"onUpdate:modelValue": i[9] || (i[9] = (l) => v.value = l),
|
|
461
461
|
options: t.quickFilters,
|
|
462
462
|
variant: t.quickFilterVariant,
|
|
463
463
|
onChange: J
|
|
464
464
|
}, null, 8, ["modelValue", "options", "variant"])
|
|
465
|
-
]
|
|
465
|
+
])) : R("", !0)
|
|
466
466
|
], 64)),
|
|
467
467
|
U("div", {
|
|
468
|
-
class:
|
|
468
|
+
class: D(["flex-1 w-full relative", t.mainContainerClass])
|
|
469
469
|
}, [
|
|
470
470
|
!Z.value && !t.loading && !me.value ? (d(), h(A, { key: 0 }, [
|
|
471
471
|
e.$slots.empty ? s(e.$slots, "empty", c(y({ key: 0 }, r.value))) : (d(), j(Ke, {
|
|
@@ -481,35 +481,35 @@ const ze = { key: 0 }, Xe = {
|
|
|
481
481
|
"add-btn": t.addBtn
|
|
482
482
|
}, null, 8, ["empty-title", "empty-title-i18n", "empty-description", "empty-description-i18n", "empty-icon", "is-filtered", "can-add", "add-component", "add-btn"]))
|
|
483
483
|
], 64)) : (d(), h(A, { key: 1 }, [
|
|
484
|
-
|
|
484
|
+
F.value === "table" ? s(e.$slots, "table", y({
|
|
485
485
|
key: 0,
|
|
486
486
|
data: t.data,
|
|
487
487
|
loading: t.loading,
|
|
488
488
|
selectedRows: o.value,
|
|
489
489
|
delete: x,
|
|
490
490
|
updateSelectedRows: (l) => o.value = l
|
|
491
|
-
}, r.value)) :
|
|
491
|
+
}, r.value)) : F.value === "list" ? s(e.$slots, "list", y({
|
|
492
492
|
key: 1,
|
|
493
493
|
data: t.data,
|
|
494
494
|
loading: t.loading,
|
|
495
495
|
selectedRows: o.value,
|
|
496
496
|
delete: x,
|
|
497
497
|
updateSelectedRows: (l) => o.value = l
|
|
498
|
-
}, r.value)) :
|
|
498
|
+
}, r.value)) : F.value === "grid" ? s(e.$slots, "grid", y({
|
|
499
499
|
key: 2,
|
|
500
500
|
data: t.data,
|
|
501
501
|
loading: t.loading,
|
|
502
502
|
selectedRows: o.value,
|
|
503
503
|
delete: x,
|
|
504
504
|
updateSelectedRows: (l) => o.value = l
|
|
505
|
-
}, r.value)) :
|
|
505
|
+
}, r.value)) : F.value === "kanban" ? s(e.$slots, "kanban", y({
|
|
506
506
|
key: 3,
|
|
507
507
|
data: t.data,
|
|
508
508
|
loading: t.loading,
|
|
509
509
|
selectedRows: o.value,
|
|
510
510
|
delete: x,
|
|
511
511
|
updateSelectedRows: (l) => o.value = l
|
|
512
|
-
}, r.value)) :
|
|
512
|
+
}, r.value)) : F.value === "calendar" ? s(e.$slots, "calendar", y({
|
|
513
513
|
key: 4,
|
|
514
514
|
data: t.data,
|
|
515
515
|
loading: t.loading,
|
|
@@ -525,11 +525,11 @@ const ze = { key: 0 }, Xe = {
|
|
|
525
525
|
"onUpdate:selectedRows": i[10] || (i[10] = (l) => o.value = l),
|
|
526
526
|
delete: x,
|
|
527
527
|
onDelete: we
|
|
528
|
-
}, t.viewProps), null, 16, ["data", "loading", "refetch", "selectedRows"])) : (d(), h("div",
|
|
528
|
+
}, t.viewProps), null, 16, ["data", "loading", "refetch", "selectedRows"])) : (d(), h("div", Ye, Qe(Ve.value), 1))
|
|
529
529
|
], 64))
|
|
530
530
|
], 2),
|
|
531
|
-
t.pagination && t.pageInfo && t.pageInfo.totalPages > 1 ? (d(), h("div",
|
|
532
|
-
|
|
531
|
+
t.pagination && t.pageInfo && t.pageInfo.totalPages > 1 ? (d(), h("div", Ge, [
|
|
532
|
+
C(O(Ue), y({
|
|
533
533
|
"current-page": t.pageInfo.currentPage,
|
|
534
534
|
"total-pages": t.pageInfo.totalPages,
|
|
535
535
|
"total-items": t.pageInfo.totalItems
|
|
@@ -538,7 +538,7 @@ const ze = { key: 0 }, Xe = {
|
|
|
538
538
|
"onUpdate:itemsPerPage": ge
|
|
539
539
|
}), null, 16, ["current-page", "total-pages", "total-items"])
|
|
540
540
|
])) : R("", !0),
|
|
541
|
-
|
|
541
|
+
C(Ae, {
|
|
542
542
|
show: B.value,
|
|
543
543
|
"onUpdate:show": i[11] || (i[11] = (l) => B.value = l),
|
|
544
544
|
title: ke.value,
|
|
@@ -559,15 +559,15 @@ const ze = { key: 0 }, Xe = {
|
|
|
559
559
|
"export-props": t.exportProps,
|
|
560
560
|
"on-export": Te
|
|
561
561
|
}, null, 8, ["show", "data", "fields", "mode", "export-props"])) : R("", !0),
|
|
562
|
-
H.value ? (d(), h("div",
|
|
563
|
-
|
|
562
|
+
H.value ? (d(), h("div", Je, [
|
|
563
|
+
C(je, y({
|
|
564
564
|
show: M.value,
|
|
565
565
|
"onUpdate:show": i[14] || (i[14] = (l) => M.value = l),
|
|
566
566
|
ref_key: "importDataRef",
|
|
567
567
|
ref: Se,
|
|
568
568
|
fields: $e.value,
|
|
569
|
-
processBatch:
|
|
570
|
-
onComplete:
|
|
569
|
+
processBatch: Ie,
|
|
570
|
+
onComplete: Fe
|
|
571
571
|
}, typeof t.importProps == "object" ? t.importProps : {}, {
|
|
572
572
|
title: De.value,
|
|
573
573
|
class: "hidden!"
|
|
@@ -577,5 +577,5 @@ const ze = { key: 0 }, Xe = {
|
|
|
577
577
|
}
|
|
578
578
|
});
|
|
579
579
|
export {
|
|
580
|
-
|
|
580
|
+
ut as default
|
|
581
581
|
};
|
|
@@ -127,7 +127,7 @@ const N = { class: "text-gray-800! h-4! w-4! flex items-center justify-center" }
|
|
|
127
127
|
"onUpdate:isOpen": t[4] || (t[4] = (c) => s.value = c),
|
|
128
128
|
"close-on-select": !1,
|
|
129
129
|
position: "bottom-end",
|
|
130
|
-
maxHeight: "
|
|
130
|
+
maxHeight: "430px",
|
|
131
131
|
"class-name": "pb-0! always-scroll",
|
|
132
132
|
class: "w-auto"
|
|
133
133
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, computed as s, openBlock as r, createElementBlock as u, createVNode as m, unref as d } from "vue";
|
|
2
2
|
import b from "../../Tabes/Tabes.vue.js";
|
|
3
|
-
const p = { class: "w-
|
|
3
|
+
const p = { class: "w-full min-w-0" }, g = /* @__PURE__ */ i({
|
|
4
4
|
__name: "ScreenQuickFilters",
|
|
5
5
|
props: {
|
|
6
6
|
modelValue: {},
|
|
@@ -9,7 +9,7 @@ const p = { class: "w-max" }, g = /* @__PURE__ */ s({
|
|
|
9
9
|
},
|
|
10
10
|
emits: ["update:modelValue", "change"],
|
|
11
11
|
setup(a, { emit: l }) {
|
|
12
|
-
const o = a, n = l, t =
|
|
12
|
+
const o = a, n = l, t = s(
|
|
13
13
|
() => o.options.map((e) => ({
|
|
14
14
|
value: e.value,
|
|
15
15
|
icon: e.icon,
|
package/components/Switch.vue.js
CHANGED
|
@@ -28,7 +28,7 @@ const w = { class: "flex flex-col gap-0.5 min-w-0" }, p = {
|
|
|
28
28
|
);
|
|
29
29
|
return (l, $) => e.variant === "card" ? (n(), s("div", {
|
|
30
30
|
key: 0,
|
|
31
|
-
class: i(["flex items-
|
|
31
|
+
class: i(["flex items-center justify-between gap-4 w-full rounded-md border border-border bg-background px-4 py-3 cursor-pointer", e.disabled ? "opacity-50 pointer-events-none" : ""]),
|
|
32
32
|
onClick: r
|
|
33
33
|
}, [
|
|
34
34
|
o("div", w, [
|
|
@@ -48,7 +48,10 @@ const w = { class: "flex flex-col gap-0.5 min-w-0" }, p = {
|
|
|
48
48
|
}, [
|
|
49
49
|
o("span", {
|
|
50
50
|
"aria-hidden": "true",
|
|
51
|
-
class: i([
|
|
51
|
+
class: i([
|
|
52
|
+
"pointer-events-none inline-block h-4.5 w-4.5 transform rounded-full bg-background shadow-lg ring-0 transition duration-200 ease-in-out",
|
|
53
|
+
e.modelValue ? "translate-x-5 rtl:translate-x-0" : "translate-x-0 rtl:-translate-x-5"
|
|
54
|
+
])
|
|
52
55
|
}, null, 2)
|
|
53
56
|
], 10, y)
|
|
54
57
|
], 2)) : (n(), s("div", {
|
|
@@ -68,7 +71,10 @@ const w = { class: "flex flex-col gap-0.5 min-w-0" }, p = {
|
|
|
68
71
|
}, [
|
|
69
72
|
o("span", {
|
|
70
73
|
"aria-hidden": "true",
|
|
71
|
-
class: i([
|
|
74
|
+
class: i([
|
|
75
|
+
"pointer-events-none inline-block h-4.5 w-4.5 transform rounded-full bg-background shadow-lg ring-0 transition duration-200 ease-in-out",
|
|
76
|
+
e.modelValue ? "translate-x-5 rtl:translate-x-0" : "translate-x-0 rtl:-translate-x-5"
|
|
77
|
+
])
|
|
72
78
|
}, null, 2)
|
|
73
79
|
], 10, x),
|
|
74
80
|
t.value ? (n(), s("label", {
|
|
@@ -25,6 +25,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
25
25
|
block: boolean;
|
|
26
26
|
wrap: boolean;
|
|
27
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
|
+
scrollRef: HTMLDivElement;
|
|
28
29
|
containerRef: HTMLDivElement;
|
|
29
|
-
},
|
|
30
|
+
}, HTMLDivElement>;
|
|
30
31
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Tabes.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d8420cf9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|