@ghentcdh/ui 0.2.0 → 0.2.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/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.js +3 -3
- package/index.mjs +176 -162
- package/loading/index.d.ts +1 -0
- package/loading/loading.vue.d.ts +5 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as g, createElementBlock as u, openBlock as l, unref as h, normalizeClass as
|
|
2
|
-
import { RouterLink as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as g, createElementBlock as u, openBlock as l, unref as h, normalizeClass as w, createElementVNode as c, createBlock as f, createCommentVNode as y, toDisplayString as v, Fragment as k, renderList as x, mergeProps as P, computed as $, resolveComponent as oe, withCtx as T, createTextVNode as U, ref as R, watch as ne, onMounted as ke, renderSlot as z, resolveDynamicComponent as se, createVNode as B, normalizeStyle as J, getCurrentInstance as $e, toHandlerKey as me, camelize as Ce, mergeDefaults as X, mergeModels as E, useModel as le, normalizeProps as ae, guardReactiveProps as re, withDirectives as Q, vModelSelect as Le, inject as Me, resolveDirective as fe, vModelText as xe } from "vue";
|
|
2
|
+
import { RouterLink as Be } from "vue-router";
|
|
3
|
+
const M = (...e) => `<svg
|
|
4
4
|
xmlns="http://www.w3.org/2000/svg"
|
|
5
5
|
fill="none"
|
|
6
6
|
viewBox="0 0 24 24"
|
|
@@ -16,46 +16,46 @@ const L = (...e) => `<svg
|
|
|
16
16
|
`)}
|
|
17
17
|
</svg>`;
|
|
18
18
|
var V = /* @__PURE__ */ ((e) => (e.Edit = "Edit", e.Delete = "Delete", e.BarsArrowDown = "BarsArrowDown", e.BarsArrowUp = "BarsArrowUp", e.Funnel = "Funnel", e.Close = "Close", e.Plus = "Plus", e.PaperClip = "PaperClip", e.Hamburger = "Hamburger", e.ChevronRight = "ChevronRight", e.ChevronLeft = "ChevronLeft", e.ChevronDown = "ChevronDown", e.ChevronUp = "ChevronUp", e.DblChevronLeft = "DblChevronLeft", e.DblChevronRight = "DblChevronRight", e.Check = "Check", e.View = "View", e.Text = "Text", e))(V || {});
|
|
19
|
-
const
|
|
20
|
-
Edit:
|
|
19
|
+
const Pe = {
|
|
20
|
+
Edit: M(
|
|
21
21
|
"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"
|
|
22
22
|
),
|
|
23
|
-
Delete:
|
|
23
|
+
Delete: M(
|
|
24
24
|
"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
|
|
25
25
|
),
|
|
26
|
-
BarsArrowDown:
|
|
26
|
+
BarsArrowDown: M(
|
|
27
27
|
"M3 4.5h14.25M3 9h9.75M3 13.5h9.75m4.5-4.5v12m0 0-3.75-3.75M17.25 21 21 17.25"
|
|
28
28
|
),
|
|
29
|
-
BarsArrowUp:
|
|
29
|
+
BarsArrowUp: M(
|
|
30
30
|
"M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"
|
|
31
31
|
),
|
|
32
|
-
Funnel:
|
|
32
|
+
Funnel: M(
|
|
33
33
|
"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"
|
|
34
34
|
),
|
|
35
|
-
Close:
|
|
36
|
-
Plus:
|
|
37
|
-
PaperClip:
|
|
35
|
+
Close: M("M6 18 18 6M6 6l12 12"),
|
|
36
|
+
Plus: M("M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"),
|
|
37
|
+
PaperClip: M(
|
|
38
38
|
"m18.375 12.739-7.693 7.693a4.5 4.5 0 0 1-6.364-6.364l10.94-10.94A3 3 0 1 1 19.5 7.372L8.552 18.32m.009-.01-.01.01m5.699-9.941-7.81 7.81a1.5 1.5 0 0 0 2.112 2.13"
|
|
39
39
|
),
|
|
40
|
-
Hamburger:
|
|
41
|
-
ChevronDown:
|
|
40
|
+
Hamburger: M("M4 6h16M4 12h16M4 18h16"),
|
|
41
|
+
ChevronDown: M(
|
|
42
42
|
"M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z"
|
|
43
43
|
),
|
|
44
|
-
ChevronUp:
|
|
44
|
+
ChevronUp: M(
|
|
45
45
|
"M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z"
|
|
46
46
|
),
|
|
47
|
-
Check:
|
|
48
|
-
View:
|
|
47
|
+
Check: M("m4.5 12.75 6 6 9-13.5"),
|
|
48
|
+
View: M(
|
|
49
49
|
"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z",
|
|
50
50
|
"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
51
51
|
),
|
|
52
|
-
Text:
|
|
52
|
+
Text: M(
|
|
53
53
|
"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"
|
|
54
54
|
),
|
|
55
|
-
DblChevronLeft:
|
|
55
|
+
DblChevronLeft: M(
|
|
56
56
|
"m18.75 4.5-7.5 7.5 7.5 7.5m-6-15L5.25 12l7.5 7.5"
|
|
57
57
|
),
|
|
58
|
-
DblChevronRight:
|
|
58
|
+
DblChevronRight: M("m5.25 4.5 7.5 7.5-7.5 7.5m6-15 7.5 7.5-7.5 7.5")
|
|
59
59
|
}, De = ["innerHTML"], K = /* @__PURE__ */ g({
|
|
60
60
|
__name: "icon",
|
|
61
61
|
props: {
|
|
@@ -64,14 +64,14 @@ const Be = {
|
|
|
64
64
|
},
|
|
65
65
|
setup(e) {
|
|
66
66
|
return (t, o) => (l(), u("div", {
|
|
67
|
-
class:
|
|
67
|
+
class: w([
|
|
68
68
|
{
|
|
69
69
|
"w-full h-full": !t.size,
|
|
70
70
|
"w-2 h-2": t.size === "xs",
|
|
71
71
|
"w-4 h-4": t.size === "sm"
|
|
72
72
|
}
|
|
73
73
|
]),
|
|
74
|
-
innerHTML: h(
|
|
74
|
+
innerHTML: h(Pe)[t.icon]
|
|
75
75
|
}, null, 10, De));
|
|
76
76
|
}
|
|
77
77
|
}), Ae = { class: "dropdown dropdown-end" }, Te = {
|
|
@@ -92,7 +92,7 @@ const Be = {
|
|
|
92
92
|
c("div", {
|
|
93
93
|
tabindex: "0",
|
|
94
94
|
role: "button",
|
|
95
|
-
class:
|
|
95
|
+
class: w([t.btnClass, "btn btn-ghost text-right flex-nowrap flex"])
|
|
96
96
|
}, [
|
|
97
97
|
c("span", null, v(t.label), 1),
|
|
98
98
|
t.disableArrow ? y("", !0) : (l(), f(h(K), {
|
|
@@ -103,7 +103,7 @@ const Be = {
|
|
|
103
103
|
], 2),
|
|
104
104
|
c("ul", Te, [
|
|
105
105
|
c("li", ze, [
|
|
106
|
-
(l(!0), u(k, null, x(t.items, (s) => (l(), f(ve,
|
|
106
|
+
(l(!0), u(k, null, x(t.items, (s) => (l(), f(ve, P({
|
|
107
107
|
key: s.label
|
|
108
108
|
}, { ref_for: !0 }, s), null, 16))), 128))
|
|
109
109
|
])
|
|
@@ -119,10 +119,10 @@ const Be = {
|
|
|
119
119
|
disabled: { type: Boolean, default: !1 }
|
|
120
120
|
},
|
|
121
121
|
setup(e) {
|
|
122
|
-
const t = e, o =
|
|
122
|
+
const t = e, o = $(() => !t.disabled && t.action && "routerLink" in t.action), s = $(() => !t.disabled && t.action), n = $(() => {
|
|
123
123
|
var r;
|
|
124
124
|
return (r = t.items) == null ? void 0 : r.length;
|
|
125
|
-
}), a =
|
|
125
|
+
}), a = $(() => {
|
|
126
126
|
const r = t.action;
|
|
127
127
|
return r && "routerLink" in r && "params" in r ? {
|
|
128
128
|
name: r.routerLink,
|
|
@@ -134,10 +134,10 @@ const Be = {
|
|
|
134
134
|
};
|
|
135
135
|
return (r, d) => {
|
|
136
136
|
const p = oe("RouterLink");
|
|
137
|
-
return n.value ? (l(), f(ie,
|
|
137
|
+
return n.value ? (l(), f(ie, P({ key: 0 }, t, { "btn-class": G }), null, 16)) : o.value ? (l(), f(p, {
|
|
138
138
|
key: 1,
|
|
139
139
|
to: a.value,
|
|
140
|
-
class:
|
|
140
|
+
class: w(G),
|
|
141
141
|
onClick: b
|
|
142
142
|
}, {
|
|
143
143
|
default: T(() => [
|
|
@@ -146,18 +146,18 @@ const Be = {
|
|
|
146
146
|
_: 1
|
|
147
147
|
}, 8, ["to"])) : s.value ? (l(), u("button", {
|
|
148
148
|
key: 2,
|
|
149
|
-
class:
|
|
149
|
+
class: w(G),
|
|
150
150
|
onClick: b
|
|
151
151
|
}, v(r.label), 1)) : (l(), u("div", {
|
|
152
152
|
key: 3,
|
|
153
|
-
class:
|
|
153
|
+
class: w([G, { "btn-disabled": r.disabled }])
|
|
154
154
|
}, v(r.label), 3));
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
}), Se = { class: "navbar bg-base-100 shadow-sm" }, Ve = { class: "flex-1" }, Ne = {
|
|
158
158
|
key: 0,
|
|
159
159
|
class: "breadcrumbs text-sm"
|
|
160
|
-
}, Ue = { class: "flex grow justify-end px-2" }, Re = { class: "flex items-stretch" },
|
|
160
|
+
}, Ue = { class: "flex grow justify-end px-2" }, Re = { class: "flex items-stretch" }, pn = /* @__PURE__ */ g({
|
|
161
161
|
__name: "menu",
|
|
162
162
|
props: {
|
|
163
163
|
menu: {},
|
|
@@ -190,7 +190,7 @@ const Be = {
|
|
|
190
190
|
]),
|
|
191
191
|
c("div", Ue, [
|
|
192
192
|
c("div", Re, [
|
|
193
|
-
(l(!0), u(k, null, x(t.menu, (n) => (l(), f(ve,
|
|
193
|
+
(l(!0), u(k, null, x(t.menu, (n) => (l(), f(ve, P({
|
|
194
194
|
key: n.label
|
|
195
195
|
}, { ref_for: !0 }, n), null, 16))), 128))
|
|
196
196
|
])
|
|
@@ -198,7 +198,7 @@ const Be = {
|
|
|
198
198
|
]);
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
}),
|
|
201
|
+
}), mn = /* @__PURE__ */ g({
|
|
202
202
|
__name: "dropdown",
|
|
203
203
|
props: {
|
|
204
204
|
items: {}
|
|
@@ -213,11 +213,11 @@ const Be = {
|
|
|
213
213
|
"disable-arrow": !0
|
|
214
214
|
}, null, 8, ["items", "open"]));
|
|
215
215
|
}
|
|
216
|
-
}),
|
|
216
|
+
}), L = [];
|
|
217
217
|
for (let e = 0; e < 256; ++e)
|
|
218
|
-
|
|
218
|
+
L.push((e + 256).toString(16).slice(1));
|
|
219
219
|
function Fe(e, t = 0) {
|
|
220
|
-
return (
|
|
220
|
+
return (L[e[t + 0]] + L[e[t + 1]] + L[e[t + 2]] + L[e[t + 3]] + "-" + L[e[t + 4]] + L[e[t + 5]] + "-" + L[e[t + 6]] + L[e[t + 7]] + "-" + L[e[t + 8]] + L[e[t + 9]] + "-" + L[e[t + 10]] + L[e[t + 11]] + L[e[t + 12]] + L[e[t + 13]] + L[e[t + 14]] + L[e[t + 15]]).toLowerCase();
|
|
221
221
|
}
|
|
222
222
|
let te;
|
|
223
223
|
const He = new Uint8Array(16);
|
|
@@ -229,7 +229,7 @@ function Ke() {
|
|
|
229
229
|
}
|
|
230
230
|
return te(He);
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const je = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), be = { randomUUID: je };
|
|
233
233
|
function Y(e, t, o) {
|
|
234
234
|
var n;
|
|
235
235
|
if (be.randomUUID && !e)
|
|
@@ -240,7 +240,7 @@ function Y(e, t, o) {
|
|
|
240
240
|
throw new Error("Random bytes length must be >= 16");
|
|
241
241
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Fe(s);
|
|
242
242
|
}
|
|
243
|
-
const
|
|
243
|
+
const Oe = { class: "font-bold" }, Ie = { class: "pt-4" }, qe = { class: "modal-action" }, Ee = /* @__PURE__ */ g({
|
|
244
244
|
__name: "modal",
|
|
245
245
|
props: {
|
|
246
246
|
modalTitle: {},
|
|
@@ -277,7 +277,7 @@ const je = { class: "font-bold" }, Ie = { class: "pt-4" }, qe = { class: "modal-
|
|
|
277
277
|
class: "modal"
|
|
278
278
|
}, [
|
|
279
279
|
c("div", {
|
|
280
|
-
class:
|
|
280
|
+
class: w(["modal-box bg-white", s[p.width]])
|
|
281
281
|
}, [
|
|
282
282
|
p.disableClose ? y("", !0) : (l(), u("button", {
|
|
283
283
|
key: 0,
|
|
@@ -285,7 +285,7 @@ const je = { class: "font-bold" }, Ie = { class: "pt-4" }, qe = { class: "modal-
|
|
|
285
285
|
class: "btn btn-sm btn-circle btn-ghost absolute right-2 top-2",
|
|
286
286
|
onClick: d
|
|
287
287
|
}, " ✕ ")),
|
|
288
|
-
c("h3",
|
|
288
|
+
c("h3", Oe, v(p.modalTitle), 1),
|
|
289
289
|
c("div", Ie, [
|
|
290
290
|
z(p.$slots, "content")
|
|
291
291
|
]),
|
|
@@ -333,7 +333,7 @@ const Ze = {
|
|
|
333
333
|
emits: ["click"],
|
|
334
334
|
setup(e, { emit: t }) {
|
|
335
335
|
const o = e, s = t;
|
|
336
|
-
return (n, a) => (l(), f(se(n.as),
|
|
336
|
+
return (n, a) => (l(), f(se(n.as), P({
|
|
337
337
|
class: [
|
|
338
338
|
"btn p-1 flex justify-center flex-nowrap",
|
|
339
339
|
h(Ze)[n.color],
|
|
@@ -354,7 +354,7 @@ const Ze = {
|
|
|
354
354
|
_: 3
|
|
355
355
|
}, 16, ["class"]));
|
|
356
356
|
}
|
|
357
|
-
}), Qe = ["type", "disabled"],
|
|
357
|
+
}), Qe = ["type", "disabled"], bn = /* @__PURE__ */ g({
|
|
358
358
|
__name: "btn-badge",
|
|
359
359
|
props: {
|
|
360
360
|
icon: { default: void 0 },
|
|
@@ -367,7 +367,7 @@ const Ze = {
|
|
|
367
367
|
setup(e, { emit: t }) {
|
|
368
368
|
const o = t;
|
|
369
369
|
return (s, n) => (l(), u("button", {
|
|
370
|
-
class:
|
|
370
|
+
class: w(["badge gap-1", h(Je)[s.size], h(We)[s.color]]),
|
|
371
371
|
type: s.type,
|
|
372
372
|
disabled: s.disabled,
|
|
373
373
|
onClick: n[0] || (n[0] = (a) => o("click"))
|
|
@@ -402,7 +402,7 @@ const Ze = {
|
|
|
402
402
|
U(v(n.message), 1)
|
|
403
403
|
]),
|
|
404
404
|
actions: T(() => [
|
|
405
|
-
|
|
405
|
+
B(h(q), {
|
|
406
406
|
color: h(I).secondary,
|
|
407
407
|
outline: !0,
|
|
408
408
|
onClick: a[0] || (a[0] = (b) => s(!1))
|
|
@@ -412,7 +412,7 @@ const Ze = {
|
|
|
412
412
|
]),
|
|
413
413
|
_: 1
|
|
414
414
|
}, 8, ["color"]),
|
|
415
|
-
|
|
415
|
+
B(h(q), {
|
|
416
416
|
onClick: a[1] || (a[1] = (b) => s(!0))
|
|
417
417
|
}, {
|
|
418
418
|
default: T(() => [
|
|
@@ -460,10 +460,10 @@ class ce {
|
|
|
460
460
|
const Ye = /* @__PURE__ */ g({
|
|
461
461
|
__name: "modalWrapper",
|
|
462
462
|
setup(e) {
|
|
463
|
-
const t = ce.getInstance(), o =
|
|
463
|
+
const t = ce.getInstance(), o = $(() => t.showModal.value ? t.modals : []);
|
|
464
464
|
return (s, n) => (l(!0), u(k, null, x(o.value, (a) => {
|
|
465
465
|
var b;
|
|
466
|
-
return l(), f(se(a == null ? void 0 : a.component),
|
|
466
|
+
return l(), f(se(a == null ? void 0 : a.component), P({
|
|
467
467
|
key: a.id,
|
|
468
468
|
ref_for: !0
|
|
469
469
|
}, a == null ? void 0 : a.props, {
|
|
@@ -487,7 +487,7 @@ const Ye = /* @__PURE__ */ g({
|
|
|
487
487
|
};
|
|
488
488
|
return (o, s) => (l(), u("div", {
|
|
489
489
|
role: "alert",
|
|
490
|
-
class:
|
|
490
|
+
class: w(`alert ${t[o.type]} `)
|
|
491
491
|
}, [
|
|
492
492
|
c("span", null, v(o.message), 1)
|
|
493
493
|
], 2));
|
|
@@ -535,12 +535,12 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
535
535
|
setup(e) {
|
|
536
536
|
const t = de.getInstance();
|
|
537
537
|
return (o, s) => (l(), u("div", nt, [
|
|
538
|
-
(l(!0), u(k, null, x(h(t).notifications.value, (n) => (l(), f(et,
|
|
538
|
+
(l(!0), u(k, null, x(h(t).notifications.value, (n) => (l(), f(et, P({
|
|
539
539
|
key: n.id
|
|
540
540
|
}, { ref_for: !0 }, n), null, 16))), 128))
|
|
541
541
|
]));
|
|
542
542
|
}
|
|
543
|
-
}), st = { class: "h-screen" }, lt = { class: "navbar bg-primary text-primary-content w-full z-100 sticky" }, at = { class: "navbar-start" }, rt = { class: "navbar-center" }, it = ["href"], ut = { class: "navbar-end" }, ct = { class: "menu h-full flex-col space-between m-0 overflow-y-auto" }, dt = { class: "flex-grow-1" }, pt = { class: "bg-base-200 p-4" }, mt = { class: "h-full" }, he = 64,
|
|
543
|
+
}), st = { class: "h-screen" }, lt = { class: "navbar bg-primary text-primary-content w-full z-100 sticky" }, at = { class: "navbar-start" }, rt = { class: "navbar-center" }, it = ["href"], ut = { class: "navbar-end" }, ct = { class: "menu h-full flex-col space-between m-0 overflow-y-auto" }, dt = { class: "flex-grow-1" }, pt = { class: "bg-base-200 p-4" }, mt = { class: "h-full" }, he = 64, hn = /* @__PURE__ */ g({
|
|
544
544
|
__name: "shell.component",
|
|
545
545
|
props: {
|
|
546
546
|
title: {},
|
|
@@ -553,7 +553,7 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
553
553
|
setup(e, { emit: t }) {
|
|
554
554
|
const s = e, n = R(!1), a = () => {
|
|
555
555
|
n.value = !n.value;
|
|
556
|
-
}, b = t, r =
|
|
556
|
+
}, b = t, r = $(() => s.user ? {
|
|
557
557
|
label: s.user.name,
|
|
558
558
|
items: [
|
|
559
559
|
{
|
|
@@ -565,18 +565,18 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
565
565
|
]
|
|
566
566
|
} : null);
|
|
567
567
|
return (d, p) => (l(), u(k, null, [
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
B(ot),
|
|
569
|
+
B(h(Ye)),
|
|
570
570
|
c("div", st, [
|
|
571
571
|
c("header", null, [
|
|
572
572
|
c("nav", lt, [
|
|
573
573
|
c("div", at, [
|
|
574
574
|
c("button", {
|
|
575
|
-
onClick: a,
|
|
576
575
|
"aria-label": "open sidebar",
|
|
577
|
-
class: "btn btn-square btn-ghost p-1"
|
|
576
|
+
class: "btn btn-square btn-ghost p-1",
|
|
577
|
+
onClick: a
|
|
578
578
|
}, [
|
|
579
|
-
|
|
579
|
+
B(h(K), {
|
|
580
580
|
icon: h(V).Hamburger
|
|
581
581
|
}, null, 8, ["icon"])
|
|
582
582
|
])
|
|
@@ -588,7 +588,7 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
588
588
|
}, v(d.title), 9, it)
|
|
589
589
|
]),
|
|
590
590
|
c("div", ut, [
|
|
591
|
-
r.value ? (l(), f(h(ie),
|
|
591
|
+
r.value ? (l(), f(h(ie), P({ key: 0 }, r.value, { "btn-class": "" }), null, 16)) : y("", !0)
|
|
592
592
|
])
|
|
593
593
|
])
|
|
594
594
|
]),
|
|
@@ -606,7 +606,7 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
606
606
|
(l(!0), u(k, null, x(d.menu, (i) => (l(), u("li", {
|
|
607
607
|
key: i.label
|
|
608
608
|
}, [
|
|
609
|
-
|
|
609
|
+
B(h(Be), {
|
|
610
610
|
to: { name: i.routerLink, params: i.params }
|
|
611
611
|
}, {
|
|
612
612
|
default: T(() => [
|
|
@@ -616,11 +616,11 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
616
616
|
}, 1032, ["to"])
|
|
617
617
|
]))), 128))
|
|
618
618
|
]),
|
|
619
|
-
c("div", pt, "version: " + v(d.version), 1)
|
|
619
|
+
c("div", pt, " version: " + v(d.version), 1)
|
|
620
620
|
])
|
|
621
621
|
], 4)) : y("", !0),
|
|
622
622
|
c("main", {
|
|
623
|
-
class:
|
|
623
|
+
class: w("overflow-hidden fixed border-red bg-white p-4 mx-auto max-h-full shadow-sm "),
|
|
624
624
|
style: J({
|
|
625
625
|
top: `${he}px`,
|
|
626
626
|
bottom: "2px",
|
|
@@ -646,9 +646,9 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
646
646
|
},
|
|
647
647
|
emits: ["updatePage", "updatePageSize"],
|
|
648
648
|
setup(e, { emit: t }) {
|
|
649
|
-
const o = e, s = t, n =
|
|
649
|
+
const o = e, s = t, n = $(
|
|
650
650
|
() => o.neverActive ? !1 : o.page === o.currentPage
|
|
651
|
-
), a =
|
|
651
|
+
), a = $(() => o.neverActive ? I.blank : n.value ? I.primary : I.secondary), b = () => {
|
|
652
652
|
s("updatePage", o.page);
|
|
653
653
|
};
|
|
654
654
|
return (r, d) => (l(), f(h(q), {
|
|
@@ -673,10 +673,10 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
673
673
|
},
|
|
674
674
|
emits: ["updatePage", "updatePageSize"],
|
|
675
675
|
setup(e, { emit: t }) {
|
|
676
|
-
const o = e, s = t, n =
|
|
676
|
+
const o = e, s = t, n = $(() => {
|
|
677
677
|
let i = Math.ceil(o.totalItems / o.itemsPerPage);
|
|
678
678
|
return i < 1 ? 1 : i;
|
|
679
|
-
}), a = W / 2, b =
|
|
679
|
+
}), a = W / 2, b = $(() => {
|
|
680
680
|
if (n.value <= W)
|
|
681
681
|
return {
|
|
682
682
|
min: 1,
|
|
@@ -695,13 +695,13 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
695
695
|
page: -10,
|
|
696
696
|
disabled: !0,
|
|
697
697
|
neverActive: !0
|
|
698
|
-
}), d =
|
|
698
|
+
}), d = $(() => {
|
|
699
699
|
let i = n.value;
|
|
700
700
|
i < 1 && (i = 1);
|
|
701
|
-
const D = o.currentPage, S = [], { min: F, max:
|
|
702
|
-
return Array.from({ length: i }, (
|
|
701
|
+
const D = o.currentPage, S = [], { min: F, max: j } = b.value;
|
|
702
|
+
return Array.from({ length: i }, (_, N) => {
|
|
703
703
|
const m = N + 1;
|
|
704
|
-
m !== 1 && m !== i && (m >
|
|
704
|
+
m !== 1 && m !== i && (m > j || m < F) || (m === i && i > 1 && j < i && S.push(r(D)), S.push({
|
|
705
705
|
label: `${m}`,
|
|
706
706
|
totalPages: i,
|
|
707
707
|
currentPage: D,
|
|
@@ -714,7 +714,7 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
714
714
|
return (i, D) => (l(), u("div", bt, [
|
|
715
715
|
c("div", ht, [
|
|
716
716
|
c("div", ft, [
|
|
717
|
-
|
|
717
|
+
B(Z, P(o, {
|
|
718
718
|
page: 1,
|
|
719
719
|
label: "<<",
|
|
720
720
|
"current-page": e.currentPage,
|
|
@@ -722,7 +722,7 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
722
722
|
disabled: e.currentPage === 1,
|
|
723
723
|
onUpdatePage: p
|
|
724
724
|
}), null, 16, ["current-page", "disabled"]),
|
|
725
|
-
|
|
725
|
+
B(Z, P(o, {
|
|
726
726
|
page: e.currentPage - 1,
|
|
727
727
|
label: "<",
|
|
728
728
|
"current-page": e.currentPage,
|
|
@@ -730,11 +730,11 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
730
730
|
disabled: e.currentPage === 1,
|
|
731
731
|
onUpdatePage: p
|
|
732
732
|
}), null, 16, ["page", "current-page", "disabled"]),
|
|
733
|
-
(l(!0), u(k, null, x(d.value, (S) => (l(), f(Z,
|
|
733
|
+
(l(!0), u(k, null, x(d.value, (S) => (l(), f(Z, P({
|
|
734
734
|
key: S.page,
|
|
735
735
|
ref_for: !0
|
|
736
736
|
}, S, { onUpdatePage: p }), null, 16))), 128)),
|
|
737
|
-
|
|
737
|
+
B(Z, P(o, {
|
|
738
738
|
page: e.currentPage + 1,
|
|
739
739
|
label: ">",
|
|
740
740
|
"current-page": e.currentPage,
|
|
@@ -742,7 +742,7 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
742
742
|
disabled: o.currentPage === n.value,
|
|
743
743
|
onUpdatePage: p
|
|
744
744
|
}), null, 16, ["page", "current-page", "disabled"]),
|
|
745
|
-
|
|
745
|
+
B(Z, P(o, {
|
|
746
746
|
page: n.value,
|
|
747
747
|
label: ">>",
|
|
748
748
|
"current-page": e.currentPage,
|
|
@@ -773,7 +773,7 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
773
773
|
type: Object,
|
|
774
774
|
required: !1
|
|
775
775
|
}
|
|
776
|
-
}),
|
|
776
|
+
}), _t = g({
|
|
777
777
|
name: "TextCell",
|
|
778
778
|
props: {
|
|
779
779
|
...yt()
|
|
@@ -785,11 +785,11 @@ const nt = { class: "toast toast-top toast-center z-[999]" }, ot = /* @__PURE__
|
|
|
785
785
|
return e ? ((t = this.column.options) == null ? void 0 : t.format) === "keyValue" ? e[this.column.options.key] : e : null;
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
}),
|
|
788
|
+
}), wt = _t;
|
|
789
789
|
function kt(e, t, o, s, n, a) {
|
|
790
790
|
return v(e.value);
|
|
791
791
|
}
|
|
792
|
-
const
|
|
792
|
+
const fn = /* @__PURE__ */ ye(wt, [["render", kt]]), $t = { class: "flex-grow pr-2" }, Ct = { class: "h-4 w-4" }, Lt = /* @__PURE__ */ g({
|
|
793
793
|
__name: "sort.header",
|
|
794
794
|
props: {
|
|
795
795
|
column: {},
|
|
@@ -798,9 +798,9 @@ const hn = /* @__PURE__ */ ye(_t, [["render", kt]]), Ct = { class: "flex-grow pr
|
|
|
798
798
|
},
|
|
799
799
|
emits: ["sort"],
|
|
800
800
|
setup(e, { emit: t }) {
|
|
801
|
-
const o = e, s =
|
|
801
|
+
const o = e, s = $(
|
|
802
802
|
() => o.sortDirection === "asc" ? V.BarsArrowUp : V.BarsArrowDown
|
|
803
|
-
), n =
|
|
803
|
+
), n = $(() => {
|
|
804
804
|
var r;
|
|
805
805
|
return ((r = o.column.options) == null ? void 0 : r.sortId) ?? o.column.id;
|
|
806
806
|
}), a = () => {
|
|
@@ -810,8 +810,8 @@ const hn = /* @__PURE__ */ ye(_t, [["render", kt]]), Ct = { class: "flex-grow pr
|
|
|
810
810
|
class: "flex items-center",
|
|
811
811
|
onClick: a
|
|
812
812
|
}, [
|
|
813
|
-
c("span",
|
|
814
|
-
c("div",
|
|
813
|
+
c("span", $t, v(r.column.label), 1),
|
|
814
|
+
c("div", Ct, [
|
|
815
815
|
r.sortColumn === n.value ? (l(), f(h(K), {
|
|
816
816
|
key: 0,
|
|
817
817
|
icon: s.value
|
|
@@ -819,7 +819,7 @@ const hn = /* @__PURE__ */ ye(_t, [["render", kt]]), Ct = { class: "flex-grow pr
|
|
|
819
819
|
])
|
|
820
820
|
]));
|
|
821
821
|
}
|
|
822
|
-
}),
|
|
822
|
+
}), Mt = { class: "table w-full" }, xt = { key: 0 }, Bt = ["colspan"], Pt = { class: "flex gap-2" }, vn = /* @__PURE__ */ g({
|
|
823
823
|
__name: "table.component",
|
|
824
824
|
props: {
|
|
825
825
|
loading: { type: Boolean },
|
|
@@ -841,13 +841,13 @@ const hn = /* @__PURE__ */ ye(_t, [["render", kt]]), Ct = { class: "flex-grow pr
|
|
|
841
841
|
o("sort", r);
|
|
842
842
|
};
|
|
843
843
|
return (r, d) => (l(), u(k, null, [
|
|
844
|
-
c("table",
|
|
844
|
+
c("table", Mt, [
|
|
845
845
|
c("thead", null, [
|
|
846
846
|
c("tr", null, [
|
|
847
847
|
(l(!0), u(k, null, x(r.displayColumns, (p) => (l(), u("th", {
|
|
848
848
|
key: p.scope
|
|
849
849
|
}, [
|
|
850
|
-
|
|
850
|
+
B(Lt, P({ column: p }, { ref_for: !0 }, r.sort, { onSort: b }), null, 16, ["column"])
|
|
851
851
|
]))), 128)),
|
|
852
852
|
d[0] || (d[0] = c("th", null, null, -1))
|
|
853
853
|
])
|
|
@@ -859,7 +859,7 @@ const hn = /* @__PURE__ */ ye(_t, [["render", kt]]), Ct = { class: "flex-grow pr
|
|
|
859
859
|
class: "text-center"
|
|
860
860
|
}, d[1] || (d[1] = [
|
|
861
861
|
c("span", { class: "loading loading-bars loading-xs" }, null, -1)
|
|
862
|
-
]), 8,
|
|
862
|
+
]), 8, Bt)
|
|
863
863
|
])) : y("", !0),
|
|
864
864
|
(l(!0), u(k, null, x(r.data, (p) => (l(), u("tr", {
|
|
865
865
|
key: p.id
|
|
@@ -867,13 +867,13 @@ const hn = /* @__PURE__ */ ye(_t, [["render", kt]]), Ct = { class: "flex-grow pr
|
|
|
867
867
|
(l(!0), u(k, null, x(r.displayColumns, (i) => (l(), u("td", {
|
|
868
868
|
key: i.scope
|
|
869
869
|
}, [
|
|
870
|
-
(l(), f(se(i.component),
|
|
870
|
+
(l(), f(se(i.component), P({ ref_for: !0 }, i, {
|
|
871
871
|
data: p,
|
|
872
872
|
column: i
|
|
873
873
|
}), null, 16, ["data", "column"]))
|
|
874
874
|
]))), 128)),
|
|
875
875
|
c("td", null, [
|
|
876
|
-
c("span",
|
|
876
|
+
c("span", Pt, [
|
|
877
877
|
(l(!0), u(k, null, x(r.actions, (i) => (l(), f(q, {
|
|
878
878
|
key: i.label,
|
|
879
879
|
icon: i.icon,
|
|
@@ -885,12 +885,12 @@ const hn = /* @__PURE__ */ ye(_t, [["render", kt]]), Ct = { class: "flex-grow pr
|
|
|
885
885
|
]),
|
|
886
886
|
_: 2
|
|
887
887
|
}, 1032, ["icon", "onClick"]))), 128)),
|
|
888
|
-
|
|
888
|
+
B(q, {
|
|
889
889
|
icon: h(V).Edit,
|
|
890
890
|
outline: !0,
|
|
891
891
|
onClick: (i) => s(p)
|
|
892
892
|
}, null, 8, ["icon", "onClick"]),
|
|
893
|
-
|
|
893
|
+
B(q, {
|
|
894
894
|
icon: h(V).Delete,
|
|
895
895
|
outline: !0,
|
|
896
896
|
onClick: (i) => n(p)
|
|
@@ -933,13 +933,13 @@ function Vt(e, t) {
|
|
|
933
933
|
])
|
|
934
934
|
]);
|
|
935
935
|
}
|
|
936
|
-
const
|
|
936
|
+
const gn = /* @__PURE__ */ ye(Dt, [["render", Vt]]), yn = (e, t) => {
|
|
937
937
|
if (!e) return null;
|
|
938
938
|
const o = (s) => {
|
|
939
939
|
e.contains(s.target) || t();
|
|
940
940
|
};
|
|
941
941
|
return document.addEventListener("click", o), o;
|
|
942
|
-
},
|
|
942
|
+
}, _n = (e) => {
|
|
943
943
|
document.removeEventListener("click", e);
|
|
944
944
|
}, wn = {
|
|
945
945
|
beforeMount(e, t) {
|
|
@@ -951,13 +951,13 @@ const vn = /* @__PURE__ */ ye(Dt, [["render", Vt]]), gn = (e, t) => {
|
|
|
951
951
|
document.removeEventListener("click", e.clickOutsideEvent);
|
|
952
952
|
}
|
|
953
953
|
};
|
|
954
|
-
function
|
|
955
|
-
const t =
|
|
954
|
+
function kn(e) {
|
|
955
|
+
const t = $e();
|
|
956
956
|
if (!t)
|
|
957
957
|
return !1;
|
|
958
958
|
const o = t.vnode.props;
|
|
959
959
|
return o ? !!(o[me(e)] || // also try camelCase event handler (#2249)
|
|
960
|
-
o[me(
|
|
960
|
+
o[me(Ce(e))]) : !1;
|
|
961
961
|
}
|
|
962
962
|
const Nt = {
|
|
963
963
|
group: {
|
|
@@ -1020,33 +1020,33 @@ const Nt = {
|
|
|
1020
1020
|
styles: {}
|
|
1021
1021
|
}, ee()),
|
|
1022
1022
|
setup(e) {
|
|
1023
|
-
const t = e, o =
|
|
1023
|
+
const t = e, o = $(() => !Ft(
|
|
1024
1024
|
t.visible,
|
|
1025
1025
|
t.description,
|
|
1026
1026
|
t.isFocused,
|
|
1027
1027
|
!0
|
|
1028
|
-
)), s =
|
|
1028
|
+
)), s = $(() => t.required), n = $(() => Rt(
|
|
1029
1029
|
t.isTouched,
|
|
1030
1030
|
t.isFocused,
|
|
1031
1031
|
t.errors
|
|
1032
1032
|
));
|
|
1033
1033
|
return (a, b) => (l(), u("fieldset", {
|
|
1034
|
-
class:
|
|
1034
|
+
class: w(a.styles.control.wrapper)
|
|
1035
1035
|
}, [
|
|
1036
1036
|
a.hideLabel ? y("", !0) : (l(), u("legend", {
|
|
1037
1037
|
key: 0,
|
|
1038
|
-
class:
|
|
1038
|
+
class: w(a.styles.control.label)
|
|
1039
1039
|
}, [
|
|
1040
1040
|
U(v(a.label) + " ", 1),
|
|
1041
1041
|
s.value ? (l(), u("span", Ht, "*")) : y("", !0)
|
|
1042
1042
|
], 2)),
|
|
1043
1043
|
z(a.$slots, "default"),
|
|
1044
1044
|
c("p", {
|
|
1045
|
-
class:
|
|
1045
|
+
class: w(["fieldset-label h-4", { "text-error": n.value }])
|
|
1046
1046
|
}, v(n.value ? a.errors : o.value ? a.description : null), 3)
|
|
1047
1047
|
], 2));
|
|
1048
1048
|
}
|
|
1049
|
-
}), Kt = ["disabled"],
|
|
1049
|
+
}), Kt = ["disabled"], jt = ["value"], $n = /* @__PURE__ */ g({
|
|
1050
1050
|
__name: "SelectComponent",
|
|
1051
1051
|
props: /* @__PURE__ */ E(/* @__PURE__ */ X({
|
|
1052
1052
|
id: {},
|
|
@@ -1086,7 +1086,7 @@ const Nt = {
|
|
|
1086
1086
|
Q(c("select", {
|
|
1087
1087
|
"onUpdate:modelValue": p[0] || (p[0] = (i) => n.value = i),
|
|
1088
1088
|
disabled: !d.enabled,
|
|
1089
|
-
class:
|
|
1089
|
+
class: w(["select select-bordered", d.styles.control.select]),
|
|
1090
1090
|
onChange: a,
|
|
1091
1091
|
onFocus: b,
|
|
1092
1092
|
onBlur: r
|
|
@@ -1094,16 +1094,16 @@ const Nt = {
|
|
|
1094
1094
|
(l(!0), u(k, null, x(d.options, (i) => (l(), u("option", {
|
|
1095
1095
|
key: i[d.valueKey],
|
|
1096
1096
|
value: i
|
|
1097
|
-
}, v(i[d.labelKey]), 9,
|
|
1097
|
+
}, v(i[d.labelKey]), 9, jt))), 128))
|
|
1098
1098
|
], 42, Kt), [
|
|
1099
|
-
[
|
|
1099
|
+
[Le, n.value]
|
|
1100
1100
|
])
|
|
1101
1101
|
]),
|
|
1102
1102
|
_: 1
|
|
1103
1103
|
}, 16));
|
|
1104
1104
|
}
|
|
1105
|
-
}),
|
|
1106
|
-
const e =
|
|
1105
|
+
}), Ot = "GHENTCDH_AUTHENTICATION", It = () => {
|
|
1106
|
+
const e = Me(Ot);
|
|
1107
1107
|
e || console.warn("No auth provided, authorized calls may not work");
|
|
1108
1108
|
const t = async (o, s, n = { contentType: "application/json" }) => {
|
|
1109
1109
|
const a = (n == null ? void 0 : n.skipAuth) ?? (e == null ? void 0 : e.options.skipAuthentication), b = {
|
|
@@ -1166,7 +1166,7 @@ const Nt = {
|
|
|
1166
1166
|
};
|
|
1167
1167
|
}, qt = ["disabled"], Et = {
|
|
1168
1168
|
key: 0,
|
|
1169
|
-
class: /* @__PURE__ */
|
|
1169
|
+
class: /* @__PURE__ */ w([
|
|
1170
1170
|
`bg-base-100 w-52 shadow -mt-5
|
|
1171
1171
|
absolute z-50`
|
|
1172
1172
|
])
|
|
@@ -1205,13 +1205,13 @@ const Nt = {
|
|
|
1205
1205
|
}, S = (m) => {
|
|
1206
1206
|
n.value = m, b(m);
|
|
1207
1207
|
}, F = (m) => {
|
|
1208
|
-
var
|
|
1209
|
-
((
|
|
1210
|
-
},
|
|
1208
|
+
var C;
|
|
1209
|
+
((C = i.value) == null ? void 0 : C.length) === m + 1 && (i.value = []);
|
|
1210
|
+
}, j = It(), _ = (m) => m[o.valueKey], N = (m) => (m == null ? void 0 : m[o.labelKey]) ?? "";
|
|
1211
1211
|
return ne(
|
|
1212
1212
|
() => n.value,
|
|
1213
1213
|
(m) => {
|
|
1214
|
-
m && !
|
|
1214
|
+
m && !_(m) || (p.value = !0, i.value = [], a.value = N(m));
|
|
1215
1215
|
},
|
|
1216
1216
|
{ immediate: !0 }
|
|
1217
1217
|
), ne(
|
|
@@ -1222,23 +1222,23 @@ const Nt = {
|
|
|
1222
1222
|
return;
|
|
1223
1223
|
}
|
|
1224
1224
|
if (S({ [o.labelKey]: m }), o.config) {
|
|
1225
|
-
const { uri:
|
|
1226
|
-
|
|
1225
|
+
const { uri: C, skipAuth: O, dataField: A } = o.config;
|
|
1226
|
+
j.get(`${C}${m}`, { skipAuth: O }).then((H) => {
|
|
1227
1227
|
i.value = H[A];
|
|
1228
1228
|
});
|
|
1229
|
-
} else o.options && (i.value = o.options.filter((
|
|
1229
|
+
} else o.options && (i.value = o.options.filter((C) => N(C).toLowerCase().includes(m)).slice(0, 10));
|
|
1230
1230
|
}
|
|
1231
|
-
), (m,
|
|
1232
|
-
const
|
|
1231
|
+
), (m, C) => {
|
|
1232
|
+
const O = fe("click-outside");
|
|
1233
1233
|
return l(), f(pe, ae(re(o)), {
|
|
1234
1234
|
default: T(() => {
|
|
1235
1235
|
var A;
|
|
1236
1236
|
return [
|
|
1237
1237
|
Q(c("input", {
|
|
1238
|
-
"onUpdate:modelValue":
|
|
1238
|
+
"onUpdate:modelValue": C[0] || (C[0] = (H) => a.value = H),
|
|
1239
1239
|
autocomplete: "off",
|
|
1240
1240
|
type: "text",
|
|
1241
|
-
class:
|
|
1241
|
+
class: w([m.styles.control.select]),
|
|
1242
1242
|
disabled: !m.enabled,
|
|
1243
1243
|
onFocus: r,
|
|
1244
1244
|
onBlur: d
|
|
@@ -1247,19 +1247,19 @@ const Nt = {
|
|
|
1247
1247
|
]),
|
|
1248
1248
|
Q((l(), u("div", null, [
|
|
1249
1249
|
(A = i.value) != null && A.length ? (l(), u("ul", Et, [
|
|
1250
|
-
(l(!0), u(k, null, x(i.value, (H,
|
|
1250
|
+
(l(!0), u(k, null, x(i.value, (H, _e) => (l(), u("li", {
|
|
1251
1251
|
key: H[m.valueKey]
|
|
1252
1252
|
}, [
|
|
1253
1253
|
c("button", {
|
|
1254
1254
|
class: "w-full h-8 border-b-1 border-gray-200 border-x-0 border-t-0 px-4 py-2 text-left hover:bg-primary-content cursor-pointer",
|
|
1255
1255
|
type: "button",
|
|
1256
|
-
onClick: (
|
|
1257
|
-
onBlur: (
|
|
1256
|
+
onClick: (we) => D(H),
|
|
1257
|
+
onBlur: (we) => F(_e)
|
|
1258
1258
|
}, v(N(H)), 41, Zt)
|
|
1259
1259
|
]))), 128))
|
|
1260
1260
|
])) : y("", !0)
|
|
1261
1261
|
])), [
|
|
1262
|
-
[
|
|
1262
|
+
[O, () => i.value = []]
|
|
1263
1263
|
])
|
|
1264
1264
|
];
|
|
1265
1265
|
}),
|
|
@@ -1269,11 +1269,11 @@ const Nt = {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
}), Wt = {
|
|
1271
1271
|
key: 0,
|
|
1272
|
-
class: /* @__PURE__ */
|
|
1272
|
+
class: /* @__PURE__ */ w([
|
|
1273
1273
|
`bg-base-100 w-52 shadow -mt-5
|
|
1274
1274
|
absolute z-50 p-0`
|
|
1275
1275
|
])
|
|
1276
|
-
}, Gt = ["onClick"], Jt = { class: "w-4 mr-2" },
|
|
1276
|
+
}, Gt = ["onClick"], Jt = { class: "w-4 mr-2" }, Ln = /* @__PURE__ */ g({
|
|
1277
1277
|
__name: "MultiSelect",
|
|
1278
1278
|
props: /* @__PURE__ */ E(/* @__PURE__ */ X({
|
|
1279
1279
|
id: {},
|
|
@@ -1302,38 +1302,38 @@ const Nt = {
|
|
|
1302
1302
|
setup(e, { emit: t }) {
|
|
1303
1303
|
const o = e, s = t, n = le(e, "modelValue");
|
|
1304
1304
|
let a = !1;
|
|
1305
|
-
const b = (
|
|
1306
|
-
s("change",
|
|
1305
|
+
const b = (_) => {
|
|
1306
|
+
s("change", _);
|
|
1307
1307
|
}, r = R(!1), d = () => {
|
|
1308
1308
|
r.value = !r.value, a = !0;
|
|
1309
1309
|
}, p = () => {
|
|
1310
1310
|
a || (r.value = !1), a = !1;
|
|
1311
|
-
}, i =
|
|
1311
|
+
}, i = $(
|
|
1312
1312
|
() => {
|
|
1313
|
-
var
|
|
1314
|
-
return ((
|
|
1313
|
+
var _;
|
|
1314
|
+
return ((_ = n.value) == null ? void 0 : _.map((N) => F(N))) ?? [];
|
|
1315
1315
|
}
|
|
1316
|
-
), D = (
|
|
1317
|
-
|
|
1316
|
+
), D = (_) => i.value.includes(_), S = (_, N) => {
|
|
1317
|
+
_.preventDefault();
|
|
1318
1318
|
let m = n.value ?? [];
|
|
1319
|
-
const
|
|
1320
|
-
D(
|
|
1321
|
-
}, F = (
|
|
1322
|
-
return (
|
|
1319
|
+
const C = F(N);
|
|
1320
|
+
D(C) ? m = m.filter((A) => F(A) !== C) : m.push(N), n.value = m, b(m);
|
|
1321
|
+
}, F = (_) => _[o.valueKey], j = (_) => (_ == null ? void 0 : _[o.labelKey]) ?? "";
|
|
1322
|
+
return (_, N) => {
|
|
1323
1323
|
const m = fe("click-outside");
|
|
1324
1324
|
return l(), f(pe, ae(re(o)), {
|
|
1325
1325
|
default: T(() => {
|
|
1326
|
-
var
|
|
1326
|
+
var C, O;
|
|
1327
1327
|
return [
|
|
1328
1328
|
c("button", {
|
|
1329
1329
|
type: "button",
|
|
1330
|
-
class:
|
|
1330
|
+
class: w([_.styles.control.select, "w-full truncate block"]),
|
|
1331
1331
|
onClick: d
|
|
1332
|
-
}, v(((
|
|
1332
|
+
}, v(((O = (C = n.value) == null ? void 0 : C.map) == null ? void 0 : O.call(C, (A) => j(A)).join(", ")) ?? "Select value"), 3),
|
|
1333
1333
|
Q((l(), u("div", null, [
|
|
1334
1334
|
r.value ? (l(), u("ul", Wt, [
|
|
1335
|
-
(l(!0), u(k, null, x(
|
|
1336
|
-
key: A[
|
|
1335
|
+
(l(!0), u(k, null, x(_.options, (A) => (l(), u("li", {
|
|
1336
|
+
key: A[_.valueKey]
|
|
1337
1337
|
}, [
|
|
1338
1338
|
c("button", {
|
|
1339
1339
|
class: "w-full flex h-8 border-b-1 border-gray-200 border-x-0 border-t-0 p-2 text-left hover:bg-primary-content cursor-pointer",
|
|
@@ -1347,7 +1347,7 @@ const Nt = {
|
|
|
1347
1347
|
size: "sm"
|
|
1348
1348
|
}, null, 8, ["icon"])) : y("", !0)
|
|
1349
1349
|
]),
|
|
1350
|
-
U(" " + v(
|
|
1350
|
+
U(" " + v(j(A)), 1)
|
|
1351
1351
|
], 8, Gt)
|
|
1352
1352
|
]))), 128))
|
|
1353
1353
|
])) : y("", !0)
|
|
@@ -1376,13 +1376,13 @@ const Nt = {
|
|
|
1376
1376
|
return (s, n) => (l(), u("main", Qt, [
|
|
1377
1377
|
c("aside", Xt, [
|
|
1378
1378
|
c("div", {
|
|
1379
|
-
class:
|
|
1379
|
+
class: w(["absolute top-0 z-20", t.value.left ? "-right-0" : "-right-2"])
|
|
1380
1380
|
}, [
|
|
1381
1381
|
c("button", {
|
|
1382
1382
|
class: "btn btn-ghost btn-circle",
|
|
1383
1383
|
onClick: n[0] || (n[0] = (a) => o("left"))
|
|
1384
1384
|
}, [
|
|
1385
|
-
|
|
1385
|
+
B(h(K), {
|
|
1386
1386
|
size: "sm",
|
|
1387
1387
|
icon: t.value.left ? h(V).DblChevronLeft : h(V).DblChevronRight
|
|
1388
1388
|
}, null, 8, ["icon"])
|
|
@@ -1408,13 +1408,13 @@ const Nt = {
|
|
|
1408
1408
|
z(s.$slots, "right-drawer")
|
|
1409
1409
|
], 4)) : y("", !0),
|
|
1410
1410
|
c("div", {
|
|
1411
|
-
class:
|
|
1411
|
+
class: w(["absolute top-0 z-20", t.value.right ? "-left-0" : "-left-2"])
|
|
1412
1412
|
}, [
|
|
1413
1413
|
c("button", {
|
|
1414
1414
|
class: "btn btn-ghost btn-circle",
|
|
1415
1415
|
onClick: n[1] || (n[1] = (a) => o("right"))
|
|
1416
1416
|
}, [
|
|
1417
|
-
|
|
1417
|
+
B(h(K), {
|
|
1418
1418
|
size: "sm",
|
|
1419
1419
|
icon: t.value.right ? h(V).DblChevronRight : h(V).DblChevronLeft
|
|
1420
1420
|
}, null, 8, ["icon"])
|
|
@@ -1467,13 +1467,13 @@ const on = { class: "ml-1" }, sn = { class: "truncate flex-1 min-w-0 text-left"
|
|
|
1467
1467
|
},
|
|
1468
1468
|
emits: ["toggle", "select"],
|
|
1469
1469
|
setup(e, { emit: t }) {
|
|
1470
|
-
const o = e, s = t, n =
|
|
1470
|
+
const o = e, s = t, n = $(() => o.active === o.node.id);
|
|
1471
1471
|
return (a, b) => {
|
|
1472
1472
|
var d;
|
|
1473
1473
|
const r = oe("TreeItem", !0);
|
|
1474
1474
|
return l(), u("li", on, [
|
|
1475
1475
|
c("div", {
|
|
1476
|
-
class:
|
|
1476
|
+
class: w([
|
|
1477
1477
|
`flex items-center gap-1 cursor-pointer rounded-md px-1 py-0.5
|
|
1478
1478
|
hover:bg-gray-100`,
|
|
1479
1479
|
n.value ? "text-primary" : ""
|
|
@@ -1502,7 +1502,7 @@ const on = { class: "ml-1" }, sn = { class: "truncate flex-1 min-w-0 text-left"
|
|
|
1502
1502
|
], 2),
|
|
1503
1503
|
a.node.children && a.isExpanded(a.node.id) ? (l(), u("ul", {
|
|
1504
1504
|
key: 0,
|
|
1505
|
-
class:
|
|
1505
|
+
class: w([
|
|
1506
1506
|
"ml-4 border-l pl-2",
|
|
1507
1507
|
{ "border-gray-200": !n.value, "border-primary": n.value }
|
|
1508
1508
|
])
|
|
@@ -1520,7 +1520,7 @@ const on = { class: "ml-1" }, sn = { class: "truncate flex-1 min-w-0 text-left"
|
|
|
1520
1520
|
]);
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
|
-
}), rn = { class: "select-none text-sm" },
|
|
1523
|
+
}), rn = { class: "select-none text-sm" }, xn = /* @__PURE__ */ g({
|
|
1524
1524
|
__name: "TreeView",
|
|
1525
1525
|
props: {
|
|
1526
1526
|
data: {},
|
|
@@ -1550,14 +1550,27 @@ const on = { class: "ml-1" }, sn = { class: "truncate flex-1 min-w-0 text-left"
|
|
|
1550
1550
|
}, null, 8, ["node", "expanded", "active"]))), 128))
|
|
1551
1551
|
]));
|
|
1552
1552
|
}
|
|
1553
|
+
}), un = {
|
|
1554
|
+
key: 0,
|
|
1555
|
+
class: "flex items-center justify-center h-20"
|
|
1556
|
+
}, Bn = /* @__PURE__ */ g({
|
|
1557
|
+
__name: "loading",
|
|
1558
|
+
props: {
|
|
1559
|
+
loading: { type: Boolean }
|
|
1560
|
+
},
|
|
1561
|
+
setup(e) {
|
|
1562
|
+
return (t, o) => t.loading ? (l(), u("div", un, o[0] || (o[0] = [
|
|
1563
|
+
c("span", { class: "loading loading-bars loading-md text-primary" }, null, -1)
|
|
1564
|
+
]))) : y("", !0);
|
|
1565
|
+
}
|
|
1553
1566
|
});
|
|
1554
1567
|
export {
|
|
1555
1568
|
Cn as Autocomplete,
|
|
1556
1569
|
Je as BadgeSize,
|
|
1557
1570
|
q as Btn,
|
|
1558
|
-
|
|
1571
|
+
bn as BtnBadge,
|
|
1559
1572
|
Ge as ButtonSize,
|
|
1560
|
-
|
|
1573
|
+
gn as Card,
|
|
1561
1574
|
wn as ClickOutside,
|
|
1562
1575
|
I as Color,
|
|
1563
1576
|
Xe as ConfirmModal,
|
|
@@ -1565,30 +1578,31 @@ export {
|
|
|
1565
1578
|
Ut as DefaultAutoCompleteProperties,
|
|
1566
1579
|
ee as DefaultControlProperties,
|
|
1567
1580
|
Mn as Drawer,
|
|
1568
|
-
|
|
1581
|
+
mn as Dropdown,
|
|
1569
1582
|
K as Icon,
|
|
1570
1583
|
V as IconEnum,
|
|
1571
|
-
|
|
1572
|
-
|
|
1584
|
+
Pe as IconMap,
|
|
1585
|
+
Bn as Loading,
|
|
1586
|
+
pn as Menu,
|
|
1573
1587
|
Ee as Modal,
|
|
1574
1588
|
ce as ModalService,
|
|
1575
1589
|
Ye as ModalWrapper,
|
|
1576
|
-
|
|
1590
|
+
Ln as MultiSelect,
|
|
1577
1591
|
et as NotificationMessage,
|
|
1578
1592
|
de as NotificationService,
|
|
1579
1593
|
ot as Notifications,
|
|
1580
1594
|
gt as PaginationComponent,
|
|
1581
|
-
|
|
1582
|
-
|
|
1595
|
+
$n as SelectComponent,
|
|
1596
|
+
hn as ShellComponent,
|
|
1583
1597
|
ie as SubMenu,
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1598
|
+
vn as Table,
|
|
1599
|
+
vn as TableComponent,
|
|
1600
|
+
fn as TextCell,
|
|
1601
|
+
xn as TreeView,
|
|
1602
|
+
yn as addClickOutsideEventListener,
|
|
1603
|
+
kn as hasCustomEventListener,
|
|
1590
1604
|
Ft as isDescriptionHidden,
|
|
1591
1605
|
Nt as myStyles,
|
|
1592
|
-
|
|
1606
|
+
_n as removeClickOutsideEventListener,
|
|
1593
1607
|
Rt as showErrors
|
|
1594
1608
|
};
|