vlite3 1.2.16 → 1.3.1
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/Button.vue.d.ts +2 -0
- package/components/Button.vue.js +66 -55
- package/components/Carousel/Carousel.vue.d.ts +210 -240
- package/components/Carousel/Carousel.vue.js +2 -2
- package/components/Carousel/Carousel.vue2.js +31 -21
- package/components/Carousel/types.d.ts +76 -14
- 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/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/FadeOverlay/FadeOverlay.vue.d.ts +13 -0
- package/components/FadeOverlay/FadeOverlay.vue.js +59 -0
- package/components/FadeOverlay/FadeOverlay.vue2.js +4 -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.d.ts +4 -4
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +56 -56
- package/components/Screen/Screen.vue.js +51 -51
- package/components/Screen/ScreenFilter.vue.js +2 -2
- 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/Workbook/WorkbookAddButton.vue.js +4 -4
- package/components/index.d.ts +1 -0
- package/index.d.ts +1 -0
- package/index.js +76 -74
- package/package.json +2 -2
- package/style.css +33 -32
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as E, ref as
|
|
1
|
+
import { defineComponent as E, ref as C, watch as q, computed as u, onBeforeUnmount as L, openBlock as f, createElementBlock as y, normalizeClass as r, withModifiers as i, createVNode as g, createCommentVNode as P, createElementVNode as h, withKeys as z } from "vue";
|
|
2
2
|
import w from "./Icon.vue.js";
|
|
3
|
-
const
|
|
3
|
+
const M = ["disabled", "data-testid"], U = ["value", "placeholder", "disabled", "readonly", "onKeydown", "data-testid"], W = ["disabled", "data-testid"], A = {
|
|
4
4
|
key: 2,
|
|
5
|
-
class: "flex flex-col justify-center h-full py-[
|
|
6
|
-
},
|
|
5
|
+
class: "flex flex-col justify-center h-full py-[2px] pr-[2px]"
|
|
6
|
+
}, D = { class: "flex flex-col h-full w-6 scale-85" }, G = ["disabled", "data-testid"], H = ["disabled", "data-testid"], Q = /* @__PURE__ */ E({
|
|
7
7
|
__name: "NumberInput",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { default: void 0 },
|
|
10
10
|
min: {},
|
|
11
11
|
max: {},
|
|
12
12
|
step: { default: 1 },
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
layout: { default: "split" },
|
|
14
|
+
variant: { default: "outline" },
|
|
15
15
|
size: { default: "md" },
|
|
16
16
|
disabled: { type: Boolean, default: !1 },
|
|
17
17
|
placeholder: {},
|
|
@@ -22,14 +22,14 @@ const L = ["disabled", "data-testid"], M = ["value", "placeholder", "disabled",
|
|
|
22
22
|
},
|
|
23
23
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
24
24
|
setup(e, { emit: V }) {
|
|
25
|
-
const n = e, m = V, a =
|
|
26
|
-
|
|
25
|
+
const n = e, m = V, a = C(n.modelValue ?? "");
|
|
26
|
+
q(
|
|
27
27
|
() => n.modelValue,
|
|
28
28
|
(d) => {
|
|
29
29
|
d !== void 0 && (a.value = d);
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
const B =
|
|
32
|
+
const B = C(null), c = u(() => {
|
|
33
33
|
const d = {
|
|
34
34
|
xs: { h: "h-7", text: "text-xs", px: "px-2", icon: "w-3 h-3" },
|
|
35
35
|
sm: { h: "h-8", text: "text-xs", px: "px-2", icon: "w-3.5 h-3.5" },
|
|
@@ -63,26 +63,26 @@ const L = ["disabled", "data-testid"], M = ["value", "placeholder", "disabled",
|
|
|
63
63
|
"2xl": "rounded-r-2xl",
|
|
64
64
|
full: "rounded-r-full"
|
|
65
65
|
})[n.rounded] || "rounded-r-md"), F = u(() => [
|
|
66
|
-
"flex items-center w-full relative transition-all duration-200",
|
|
66
|
+
"flex items-center w-full relative transition-all duration-200 text-foreground",
|
|
67
67
|
n.disabled ? "opacity-50 cursor-not-allowed" : "",
|
|
68
|
-
n.
|
|
69
|
-
n.
|
|
70
|
-
n.
|
|
68
|
+
n.variant === "solid" ? "bg-gray-100" : "",
|
|
69
|
+
n.variant === "outline" ? "border border-input bg-background" : "",
|
|
70
|
+
n.variant === "transparent" ? "bg-transparent" : "",
|
|
71
71
|
c.value.h,
|
|
72
72
|
I.value
|
|
73
73
|
]), K = u(() => [
|
|
74
|
-
"flex-1 w-full bg-transparent focus:outline-none appearance-none",
|
|
75
|
-
n.
|
|
74
|
+
"flex-1 w-full bg-transparent focus:outline-none appearance-none text-foreground",
|
|
75
|
+
n.layout === "split" ? "text-center" : "text-left pl-3 pr-2",
|
|
76
76
|
"placeholder:text-muted-foreground/50",
|
|
77
77
|
c.value.text,
|
|
78
78
|
n.disabled ? "cursor-not-allowed" : ""
|
|
79
|
-
]),
|
|
80
|
-
const d = "flex items-center justify-center transition-colors active:scale-95 shrink-0 select-none", t = n.disabled ? "" : "hover:text-primary hover:bg-
|
|
81
|
-
return n.size === "xs" || n.size, n.
|
|
79
|
+
]), k = u(() => {
|
|
80
|
+
const d = "flex items-center justify-center transition-colors active:scale-95 shrink-0 select-none", t = n.disabled ? "" : "hover:text-primary hover:bg-accent";
|
|
81
|
+
return n.size === "xs" || n.size, n.layout === "split" ? n.variant === "solid" ? [
|
|
82
82
|
d,
|
|
83
|
-
n.disabled ? "" : "hover:text-primary hover:bg-
|
|
84
|
-
"bg-background
|
|
85
|
-
] : [d, t, "h-full", "px-
|
|
83
|
+
n.disabled ? "" : "hover:text-primary hover:bg-gray-100 shadow-sm",
|
|
84
|
+
"bg-background rounded-md mx-1 my-0.5 aspect-square self-center h-[calc(100%-8px)] w-auto max-w-[calc(100%-8px)] flex items-center justify-center text-foreground"
|
|
85
|
+
] : [d, t, "h-full", "px-3", "text-gray-600 hover:text-gray-900"] : [d, t, "h-1/2 w-8 border-l border-input text-muted-foreground"];
|
|
86
86
|
}), s = (d) => {
|
|
87
87
|
if (n.disabled || n.readonly) return;
|
|
88
88
|
let t = d;
|
|
@@ -123,34 +123,34 @@ const L = ["disabled", "data-testid"], M = ["value", "placeholder", "disabled",
|
|
|
123
123
|
const t = parseFloat(String(a.value));
|
|
124
124
|
isNaN(t) ? s(n.min || 0) : s(t);
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return L(() => {
|
|
127
127
|
l();
|
|
128
128
|
}), (d, t) => (f(), y("div", {
|
|
129
|
-
class:
|
|
129
|
+
class: r([F.value, "overflow-hidden"])
|
|
130
130
|
}, [
|
|
131
|
-
e.
|
|
131
|
+
e.layout === "split" && !e.disabled && !e.readonly ? (f(), y("button", {
|
|
132
132
|
key: 0,
|
|
133
133
|
tabindex: "-1",
|
|
134
134
|
type: "button",
|
|
135
|
-
class:
|
|
136
|
-
|
|
137
|
-
e.
|
|
138
|
-
e.
|
|
135
|
+
class: r([
|
|
136
|
+
k.value,
|
|
137
|
+
e.variant === "outline" ? "border-r border-input" : "",
|
|
138
|
+
e.layout === "split" && e.variant !== "solid" ? j.value : ""
|
|
139
139
|
]),
|
|
140
140
|
disabled: e.disabled || e.min !== void 0 && Number(a.value) <= e.min,
|
|
141
141
|
onPointerdown: t[0] || (t[0] = (o) => v("dec", o)),
|
|
142
142
|
onPointerup: l,
|
|
143
143
|
onPointerleave: l,
|
|
144
144
|
onPointercancel: l,
|
|
145
|
-
onContextmenu: t[1] || (t[1] =
|
|
145
|
+
onContextmenu: t[1] || (t[1] = i(() => {
|
|
146
146
|
}, ["prevent"])),
|
|
147
147
|
"data-testid": d.$attrs["data-testid"] ? `${d.$attrs["data-testid"]}-dec` : e.name ? `number-${e.name}-dec` : e.id ? `number-${e.id}-dec` : "number-input-dec"
|
|
148
148
|
}, [
|
|
149
149
|
g(w, {
|
|
150
150
|
icon: "lucide:minus",
|
|
151
|
-
class:
|
|
151
|
+
class: r(c.value.icon)
|
|
152
152
|
}, null, 8, ["class"])
|
|
153
|
-
], 42,
|
|
153
|
+
], 42, M)) : P("", !0),
|
|
154
154
|
h("input", {
|
|
155
155
|
ref_key: "inputRef",
|
|
156
156
|
ref: B,
|
|
@@ -159,86 +159,86 @@ const L = ["disabled", "data-testid"], M = ["value", "placeholder", "disabled",
|
|
|
159
159
|
placeholder: e.placeholder,
|
|
160
160
|
disabled: e.disabled,
|
|
161
161
|
readonly: e.readonly,
|
|
162
|
-
class:
|
|
162
|
+
class: r(K.value),
|
|
163
163
|
onInput: R,
|
|
164
164
|
onFocus: t[2] || (t[2] = (o) => m("focus", o)),
|
|
165
165
|
onBlur: T,
|
|
166
166
|
onKeydown: [
|
|
167
|
-
z(
|
|
168
|
-
z(
|
|
167
|
+
z(i($, ["prevent"]), ["up"]),
|
|
168
|
+
z(i(N, ["prevent"]), ["down"])
|
|
169
169
|
],
|
|
170
|
-
onWheel: t[3] || (t[3] =
|
|
170
|
+
onWheel: t[3] || (t[3] = i(() => {
|
|
171
171
|
}, ["prevent"])),
|
|
172
|
-
onInvalid: t[4] || (t[4] =
|
|
172
|
+
onInvalid: t[4] || (t[4] = i(() => {
|
|
173
173
|
}, ["prevent"])),
|
|
174
174
|
"data-testid": d.$attrs["data-testid"] || (e.name ? `number-${e.name}` : e.id ? `number-${e.id}` : "number-input")
|
|
175
|
-
}, null, 42,
|
|
176
|
-
e.
|
|
175
|
+
}, null, 42, U),
|
|
176
|
+
e.layout === "split" && !e.disabled && !e.readonly ? (f(), y("button", {
|
|
177
177
|
key: 1,
|
|
178
178
|
tabindex: "-1",
|
|
179
179
|
type: "button",
|
|
180
|
-
class:
|
|
181
|
-
|
|
182
|
-
e.
|
|
183
|
-
e.
|
|
180
|
+
class: r([
|
|
181
|
+
k.value,
|
|
182
|
+
e.variant === "outline" ? "border-l border-input" : "",
|
|
183
|
+
e.layout === "split" && e.variant !== "solid" ? S.value : ""
|
|
184
184
|
]),
|
|
185
185
|
disabled: e.disabled || e.max !== void 0 && Number(a.value) >= e.max,
|
|
186
186
|
onPointerdown: t[5] || (t[5] = (o) => v("inc", o)),
|
|
187
187
|
onPointerup: l,
|
|
188
188
|
onPointerleave: l,
|
|
189
189
|
onPointercancel: l,
|
|
190
|
-
onContextmenu: t[6] || (t[6] =
|
|
190
|
+
onContextmenu: t[6] || (t[6] = i(() => {
|
|
191
191
|
}, ["prevent"])),
|
|
192
192
|
"data-testid": d.$attrs["data-testid"] ? `${d.$attrs["data-testid"]}-inc` : e.name ? `number-${e.name}-inc` : e.id ? `number-${e.id}-inc` : "number-input-inc"
|
|
193
193
|
}, [
|
|
194
194
|
g(w, {
|
|
195
195
|
icon: "lucide:plus",
|
|
196
|
-
class:
|
|
196
|
+
class: r(c.value.icon)
|
|
197
197
|
}, null, 8, ["class"])
|
|
198
|
-
], 42,
|
|
199
|
-
e.
|
|
200
|
-
h("div",
|
|
198
|
+
], 42, W)) : P("", !0),
|
|
199
|
+
e.layout === "stacked" && !e.disabled && !e.readonly ? (f(), y("div", A, [
|
|
200
|
+
h("div", D, [
|
|
201
201
|
h("button", {
|
|
202
202
|
tabindex: "-1",
|
|
203
203
|
type: "button",
|
|
204
|
-
class: "flex-1 flex items-center justify-center
|
|
204
|
+
class: r(["flex-1 flex items-center justify-center hover:text-foreground rounded-t-[3px] border-b border-input transition-colors disabled:cursor-not-allowed", e.variant === "solid" ? "bg-background hover:bg-gray-100 text-foreground" : "bg-gray-100 hover:bg-gray-200 text-gray-600"]),
|
|
205
205
|
disabled: e.disabled || e.max !== void 0 && Number(a.value) >= e.max,
|
|
206
206
|
onPointerdown: t[7] || (t[7] = (o) => v("inc", o)),
|
|
207
207
|
onPointerup: l,
|
|
208
208
|
onPointerleave: l,
|
|
209
209
|
onPointercancel: l,
|
|
210
|
-
onContextmenu: t[8] || (t[8] =
|
|
210
|
+
onContextmenu: t[8] || (t[8] = i(() => {
|
|
211
211
|
}, ["prevent"])),
|
|
212
212
|
"data-testid": d.$attrs["data-testid"] ? `${d.$attrs["data-testid"]}-inc` : e.name ? `number-${e.name}-inc` : e.id ? `number-${e.id}-inc` : "number-input-inc"
|
|
213
213
|
}, [
|
|
214
214
|
g(w, {
|
|
215
|
-
class:
|
|
215
|
+
class: r(["text-current", e.size === "xs" || e.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5"]),
|
|
216
216
|
icon: "mynaui:chevron-up-solid"
|
|
217
217
|
}, null, 8, ["class"])
|
|
218
|
-
],
|
|
218
|
+
], 42, G),
|
|
219
219
|
h("button", {
|
|
220
220
|
tabindex: "-1",
|
|
221
221
|
type: "button",
|
|
222
|
-
class: "flex-1 flex items-center justify-center
|
|
222
|
+
class: r(["flex-1 flex items-center justify-center hover:text-foreground rounded-b-[3px] transition-colors disabled:cursor-not-allowed", e.variant === "solid" ? "bg-background hover:bg-gray-100 text-foreground" : "bg-gray-100 hover:bg-gray-200 text-gray-600"]),
|
|
223
223
|
disabled: e.disabled || e.min !== void 0 && Number(a.value) <= e.min,
|
|
224
224
|
onPointerdown: t[9] || (t[9] = (o) => v("dec", o)),
|
|
225
225
|
onPointerup: l,
|
|
226
226
|
onPointerleave: l,
|
|
227
227
|
onPointercancel: l,
|
|
228
|
-
onContextmenu: t[10] || (t[10] =
|
|
228
|
+
onContextmenu: t[10] || (t[10] = i(() => {
|
|
229
229
|
}, ["prevent"])),
|
|
230
230
|
"data-testid": d.$attrs["data-testid"] ? `${d.$attrs["data-testid"]}-dec` : e.name ? `number-${e.name}-dec` : e.id ? `number-${e.id}-dec` : "number-input-dec"
|
|
231
231
|
}, [
|
|
232
232
|
g(w, {
|
|
233
|
-
class:
|
|
233
|
+
class: r(["text-current", e.size === "xs" || e.size === "sm" ? "w-3 h-3" : "w-3.5 h-3.5"]),
|
|
234
234
|
icon: "mynaui:chevron-down-solid"
|
|
235
235
|
}, null, 8, ["class"])
|
|
236
|
-
],
|
|
236
|
+
], 42, H)
|
|
237
237
|
])
|
|
238
238
|
])) : P("", !0)
|
|
239
239
|
], 2));
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
242
|
export {
|
|
243
|
-
|
|
243
|
+
Q as default
|
|
244
244
|
};
|
|
@@ -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
|
};
|
|
@@ -14,7 +14,7 @@ import "v-datepicker-lite";
|
|
|
14
14
|
import "v-datepicker-lite/style.css";
|
|
15
15
|
import "@jaames/iro";
|
|
16
16
|
import "@vueuse/core";
|
|
17
|
-
/* empty css
|
|
17
|
+
/* empty css */
|
|
18
18
|
import "iconify-icon-picker";
|
|
19
19
|
import "iconify-icon-picker/style.css";
|
|
20
20
|
/* empty css */
|
|
@@ -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
|
};
|