@aeria-ui/ui 0.0.47 → 0.0.49
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/dist/{activation-9175ca29.js → activation-855b78be.js} +1 -1
- package/dist/{crud-view-9de59251.js → crud-view-644dd64f.js} +1 -1
- package/dist/{index-5752c74c.js → index-01a0d031.js} +550 -543
- package/dist/{password-change-a5d9035a.js → password-change-b4db19a6.js} +1 -1
- package/dist/{profile-13d77c21.js → profile-8baa89be.js} +1 -1
- package/dist/{signin-2686bca6.js → signin-aebed8c0.js} +1 -1
- package/dist/{signup-6d72b6a0.js → signup-91d24668.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, ref as Y, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as Q, Fragment as J, renderList as U, withDirectives as
|
|
1
|
+
import { defineComponent as q, ref as Y, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as Q, Fragment as J, renderList as U, withDirectives as P, toDisplayString as b, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as I, inject as ve, computed as H, createElementVNode as g, mergeProps as E, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as Vt, Teleport as Ge, onMounted as mt, watch as re, createVNode as z, vModelDynamic as Ct, onBeforeMount as ft, normalizeStyle as $e, withModifiers as ze, pushScopeId as Fe, popScopeId as qe, provide as ye, normalizeProps as ce, guardReactiveProps as Ve, isRef as vt, createSlots as de, vModelCheckbox as It, onUnmounted as At, resolveComponent as Ot, Suspense as wt, useSlots as Bt, h as St } from "vue";
|
|
2
2
|
import { t as F, useI18n as jt } from "@aeria-ui/i18n";
|
|
3
3
|
import { useScrollObserver as We, useBreakpoints as je, useClipboard as Tt, useMask as Rt, PAGINATION_PER_PAGE_DEFAULTS as Lt, API_URL as yt, request as zt, useDebounce as ht, isDocumentComplete as Mt, convertToSearchQuery as Ft, useAction as qt, convertFromSearchQuery as Ut, usePasswordPolicy as Et } from "@aeria-ui/core";
|
|
4
4
|
import { useStore as ue, getStoreId as Te, useParentStore as ge, STORE_ID as Ue, getGlobalStateManager as $t } from "@aeria-ui/state-management";
|
|
@@ -28,17 +28,17 @@ const Gt = ["onClick"], Wt = { key: 0 }, Xt = {
|
|
|
28
28
|
key: u,
|
|
29
29
|
class: "accordion__slot"
|
|
30
30
|
}, [
|
|
31
|
-
|
|
31
|
+
P((o(), s("div", {
|
|
32
32
|
class: "accordion__header",
|
|
33
33
|
onClick: (d) => i.value === u ? i.value = null : i.value = u
|
|
34
34
|
}, [
|
|
35
|
-
a.enumerate ? (o(), s("span", Wt,
|
|
36
|
-
D(" " +
|
|
35
|
+
a.enumerate ? (o(), s("span", Wt, b(p + 1) + ". ", 1)) : y("", !0),
|
|
36
|
+
D(" " + b(a.headers[u] ? t(a.headers[u]) : e(F)(u)), 1)
|
|
37
37
|
], 8, Gt)), [
|
|
38
38
|
[r]
|
|
39
39
|
]),
|
|
40
40
|
i.value === u ? (o(), s("div", Xt, [
|
|
41
|
-
|
|
41
|
+
I(a.$slots, u, {}, void 0, !0)
|
|
42
42
|
])) : y("", !0)
|
|
43
43
|
]))), 128))
|
|
44
44
|
], 2);
|
|
@@ -64,7 +64,7 @@ const G = (c, i) => {
|
|
|
64
64
|
${i.alt && "badge--alt"}
|
|
65
65
|
`)
|
|
66
66
|
}, [
|
|
67
|
-
|
|
67
|
+
I(i.$slots, "default", {}, void 0, !0)
|
|
68
68
|
], 2));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -85,7 +85,7 @@ const be = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-47f92648"]]), Kt = /* @_
|
|
|
85
85
|
`),
|
|
86
86
|
onClick: l
|
|
87
87
|
}, [
|
|
88
|
-
|
|
88
|
+
I(r.$slots, "default", {}, void 0, !0)
|
|
89
89
|
], 2));
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -114,7 +114,7 @@ const fe = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["hre
|
|
|
114
114
|
${l.$slots.default ? "icon--centered" : "icon--standalone"}
|
|
115
115
|
`)
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
g("div", {
|
|
118
118
|
class: Q(`
|
|
119
119
|
icon__icon
|
|
120
120
|
${l.size && `icon__icon--${l.size}`}
|
|
@@ -129,18 +129,18 @@ const fe = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["hre
|
|
|
129
129
|
}, {
|
|
130
130
|
...l.fill ? { fill: l.fill } : {}
|
|
131
131
|
}), [
|
|
132
|
-
|
|
132
|
+
g("use", {
|
|
133
133
|
href: `/assets/icons.svg#${a.value}`
|
|
134
134
|
}, null, 8, Zt)
|
|
135
135
|
], 16))
|
|
136
136
|
], 2),
|
|
137
137
|
l.$slots.default ? (o(), s("div", Pt, [
|
|
138
|
-
|
|
138
|
+
I(l.$slots, "default", {}, void 0, !0)
|
|
139
139
|
])) : y("", !0)
|
|
140
140
|
], 2));
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
const
|
|
143
|
+
const Z = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { class: "panel__header-left" }, en = { key: 1 }, tn = {
|
|
144
144
|
key: 2,
|
|
145
145
|
style: { "margin-left": "auto" }
|
|
146
146
|
}, nn = /* @__PURE__ */ q({
|
|
@@ -175,8 +175,8 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
175
175
|
a("update:collapsed", n), r.value = n;
|
|
176
176
|
};
|
|
177
177
|
return (n, f) => {
|
|
178
|
-
const
|
|
179
|
-
return n.modelValue ?
|
|
178
|
+
const k = ne("clickable"), j = ne("loading"), L = ne("overlay");
|
|
179
|
+
return n.modelValue ? P((o(), s("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: Q(`
|
|
182
182
|
panel
|
|
@@ -209,29 +209,29 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
209
209
|
${n.outerHeader && "panel__header--outer"}
|
|
210
210
|
`)
|
|
211
211
|
}, [
|
|
212
|
-
|
|
213
|
-
n.$slots.header ?
|
|
212
|
+
g("div", xt, [
|
|
213
|
+
n.$slots.header ? I(n.$slots, "header", { key: 0 }, void 0, !0) : n.title ? (o(), s("div", en, b(n.title), 1)) : y("", !0),
|
|
214
214
|
n.$slots.extra ? (o(), s("div", tn, [
|
|
215
|
-
|
|
215
|
+
I(n.$slots, "extra", {}, void 0, !0)
|
|
216
216
|
])) : y("", !0)
|
|
217
217
|
]),
|
|
218
|
-
n.collapsible ?
|
|
218
|
+
n.collapsible ? P((o(), $(Z, {
|
|
219
219
|
key: 0,
|
|
220
220
|
reactive: "",
|
|
221
221
|
icon: r.value ? "plus" : "minus",
|
|
222
222
|
onClick: f[0] || (f[0] = (W) => _(!r.value))
|
|
223
223
|
}, null, 8, ["icon"])), [
|
|
224
|
-
[
|
|
225
|
-
]) : n.closeHint ?
|
|
224
|
+
[k]
|
|
225
|
+
]) : n.closeHint ? P((o(), $(Z, {
|
|
226
226
|
key: 1,
|
|
227
227
|
reactive: "",
|
|
228
228
|
icon: "x",
|
|
229
229
|
onClick: d
|
|
230
230
|
}, null, 512)), [
|
|
231
|
-
[
|
|
231
|
+
[k]
|
|
232
232
|
]) : y("", !0)
|
|
233
233
|
], 2)) : y("", !0),
|
|
234
|
-
r.value ? y("", !0) :
|
|
234
|
+
r.value ? y("", !0) : P((o(), s("div", {
|
|
235
235
|
key: 1,
|
|
236
236
|
ref_key: "body",
|
|
237
237
|
ref: u,
|
|
@@ -240,9 +240,9 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
240
240
|
${n.fill || "panel__body--padded"}
|
|
241
241
|
`)
|
|
242
242
|
}, [
|
|
243
|
-
|
|
243
|
+
I(n.$slots, "default", {}, void 0, !0)
|
|
244
244
|
], 2)), [
|
|
245
|
-
[
|
|
245
|
+
[j, n.loading]
|
|
246
246
|
]),
|
|
247
247
|
n.$slots.footer ? (o(), s("div", {
|
|
248
248
|
key: 2,
|
|
@@ -252,7 +252,7 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
252
252
|
${e(p) || "panel__footer--shadowed"}
|
|
253
253
|
`)
|
|
254
254
|
}, [
|
|
255
|
-
|
|
255
|
+
I(n.$slots, "footer", {}, void 0, !0)
|
|
256
256
|
], 2)) : y("", !0)
|
|
257
257
|
]),
|
|
258
258
|
_: 3
|
|
@@ -302,18 +302,18 @@ const Ae = /* @__PURE__ */ G(nn, [["__scopeId", "data-v-6fdc75a0"]]), on = { cla
|
|
|
302
302
|
disabled: l.disabled
|
|
303
303
|
}, {
|
|
304
304
|
default: v(() => [
|
|
305
|
-
l.icon ? (o(), $(
|
|
305
|
+
l.icon ? (o(), $(Z, {
|
|
306
306
|
key: 0,
|
|
307
307
|
icon: l.icon
|
|
308
308
|
}, {
|
|
309
309
|
default: v(() => [
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
g("div", on, [
|
|
311
|
+
I(l.$slots, "default", {}, void 0, !0)
|
|
312
312
|
])
|
|
313
313
|
]),
|
|
314
314
|
_: 3
|
|
315
315
|
}, 8, ["icon"])) : (o(), s("div", an, [
|
|
316
|
-
|
|
316
|
+
I(l.$slots, "default", {}, void 0, !0)
|
|
317
317
|
]))
|
|
318
318
|
]),
|
|
319
319
|
_: 3
|
|
@@ -334,18 +334,18 @@ const ie = /* @__PURE__ */ G(ln, [["__scopeId", "data-v-c328251b"]]), sn = { cla
|
|
|
334
334
|
${i.horizontal && "card--horizontal"}
|
|
335
335
|
`)
|
|
336
336
|
}, [
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
g("div", sn, [
|
|
338
|
+
I(i.$slots, "default", {}, void 0, !0)
|
|
339
339
|
]),
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
g("div", rn, [
|
|
341
|
+
g("div", un, [
|
|
342
|
+
g("div", null, [
|
|
343
|
+
I(i.$slots, "footer", {}, void 0, !0)
|
|
344
344
|
]),
|
|
345
|
-
i.$slots.actions ?
|
|
345
|
+
i.$slots.actions ? I(i.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
|
|
346
346
|
]),
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
g("div", cn, [
|
|
348
|
+
I(i.$slots, "badge", {}, void 0, !0)
|
|
349
349
|
])
|
|
350
350
|
])
|
|
351
351
|
], 2));
|
|
@@ -364,13 +364,13 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
364
364
|
emits: ["actionClick"],
|
|
365
365
|
setup(c, { emit: i }) {
|
|
366
366
|
Vt((d) => ({
|
|
367
|
-
"
|
|
368
|
-
"
|
|
367
|
+
"1d40442a": p.value.x,
|
|
368
|
+
"1d40442b": p.value.y
|
|
369
369
|
}));
|
|
370
370
|
const t = i, a = Y(null), l = Y(!1), r = (d) => d == null ? void 0 : d.filter((h) => {
|
|
371
371
|
if (h.roles) {
|
|
372
372
|
const _ = ue("user");
|
|
373
|
-
return h.roles.
|
|
373
|
+
return h.roles.some((n) => _.currentUser.roles.includes(n));
|
|
374
374
|
}
|
|
375
375
|
return !!h.click;
|
|
376
376
|
}), u = (d, h) => {
|
|
@@ -400,27 +400,27 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
400
400
|
ref: a,
|
|
401
401
|
class: "contextmenu"
|
|
402
402
|
}, [
|
|
403
|
-
|
|
403
|
+
g("a", {
|
|
404
404
|
class: "contextmenu__trigger",
|
|
405
405
|
onClick: h[0] || (h[0] = (n) => l.value = !0)
|
|
406
406
|
}, [
|
|
407
|
-
|
|
407
|
+
I(d.$slots, "default", {}, void 0, !0)
|
|
408
408
|
])
|
|
409
409
|
], 512)) : y("", !0),
|
|
410
410
|
l.value ? (o(), $(Ge, {
|
|
411
411
|
key: 1,
|
|
412
412
|
to: "main"
|
|
413
413
|
}, [
|
|
414
|
-
|
|
414
|
+
P((o(), $(Ae, {
|
|
415
415
|
modelValue: l.value,
|
|
416
416
|
"onUpdate:modelValue": h[4] || (h[4] = (n) => l.value = n),
|
|
417
417
|
fill: "",
|
|
418
418
|
class: "content"
|
|
419
419
|
}, {
|
|
420
420
|
default: v(() => [
|
|
421
|
-
|
|
421
|
+
g("div", _n, [
|
|
422
422
|
d.$slots.header ? (o(), s("div", mn, [
|
|
423
|
-
|
|
423
|
+
I(d.$slots, "header", {}, void 0, !0)
|
|
424
424
|
])) : y("", !0),
|
|
425
425
|
Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)).length > 0 ? (o(), s("div", {
|
|
426
426
|
key: 1,
|
|
@@ -432,7 +432,7 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
432
432
|
class: "content__item content__item--reactive"
|
|
433
433
|
}, {
|
|
434
434
|
default: v(() => [
|
|
435
|
-
|
|
435
|
+
I(d.$slots, n, {}, void 0, !0)
|
|
436
436
|
]),
|
|
437
437
|
_: 2
|
|
438
438
|
}, 1024))), 128))
|
|
@@ -445,15 +445,15 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
445
445
|
(o(!0), s(J, null, U(r(d.actions), (n, f) => (o(), $(fe, {
|
|
446
446
|
key: `action-${f}`,
|
|
447
447
|
class: "content__item content__item--reactive",
|
|
448
|
-
onClick: (
|
|
448
|
+
onClick: (k) => u(n, d.subject)
|
|
449
449
|
}, {
|
|
450
450
|
default: v(() => [
|
|
451
|
-
n.icon ? (o(), $(
|
|
451
|
+
n.icon ? (o(), $(Z, {
|
|
452
452
|
key: 0,
|
|
453
453
|
icon: n.icon
|
|
454
454
|
}, {
|
|
455
455
|
default: v(() => [
|
|
456
|
-
D(
|
|
456
|
+
D(b(n.translate ? e(F)(n.label, { capitalize: !0 }) : n.label), 1)
|
|
457
457
|
]),
|
|
458
458
|
_: 2
|
|
459
459
|
}, 1032, ["icon"])) : y("", !0)
|
|
@@ -466,8 +466,8 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
466
466
|
class: "content__section",
|
|
467
467
|
onClick: h[3] || (h[3] = (n) => l.value = !1)
|
|
468
468
|
}, [
|
|
469
|
-
|
|
470
|
-
d.$slots.extra ?
|
|
469
|
+
g("div", fn, [
|
|
470
|
+
d.$slots.extra ? I(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
|
|
471
471
|
])
|
|
472
472
|
])) : y("", !0)
|
|
473
473
|
])
|
|
@@ -491,7 +491,7 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
});
|
|
494
|
-
const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-
|
|
494
|
+
const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-5ad42e0b"]]), yn = { class: "info__content" }, hn = /* @__PURE__ */ q({
|
|
495
495
|
__name: "aeria-info",
|
|
496
496
|
props: {
|
|
497
497
|
where: {}
|
|
@@ -510,16 +510,16 @@ const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-58c1c08c"]]), yn = { cla
|
|
|
510
510
|
info__bubble--${e(l)}
|
|
511
511
|
`)
|
|
512
512
|
}, [
|
|
513
|
-
|
|
514
|
-
|
|
513
|
+
g("div", yn, [
|
|
514
|
+
I(r.$slots, "text", {}, void 0, !0)
|
|
515
515
|
])
|
|
516
516
|
], 2)) : y("", !0),
|
|
517
|
-
|
|
517
|
+
g("div", {
|
|
518
518
|
onMouseover: u[0] || (u[0] = (p) => a.value = !0)
|
|
519
519
|
}, [
|
|
520
|
-
|
|
520
|
+
I(r.$slots, "default", {}, void 0, !0)
|
|
521
521
|
], 32)
|
|
522
|
-
], 32)) :
|
|
522
|
+
], 32)) : I(r.$slots, "default", { key: 1 }, void 0, !0);
|
|
523
523
|
}
|
|
524
524
|
});
|
|
525
525
|
const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { class: "input" }, gn = {
|
|
@@ -576,14 +576,14 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
576
576
|
} catch {
|
|
577
577
|
return "";
|
|
578
578
|
}
|
|
579
|
-
},
|
|
579
|
+
}, k = Y([
|
|
580
580
|
"date",
|
|
581
581
|
"date-time"
|
|
582
|
-
].includes(n.type) ? f() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue),
|
|
582
|
+
].includes(n.type) ? f() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), j = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ? Rt(t.property.mask) : null, L = (M) => {
|
|
583
583
|
var X;
|
|
584
|
-
return typeof
|
|
584
|
+
return typeof k.value == "string" && ((X = t.property) == null ? void 0 : X.type) === "string" && j !== null ? (k.value = j.enmask(k.value, void 0, {
|
|
585
585
|
defaultValue: !0
|
|
586
|
-
}), t.property.maskedValue === !0 ?
|
|
586
|
+
}), t.property.maskedValue === !0 ? k.value : j.unmask(k.value)) : M;
|
|
587
587
|
}, W = (M) => {
|
|
588
588
|
const X = (() => {
|
|
589
589
|
if (!M || typeof M != "string")
|
|
@@ -601,22 +601,22 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
601
601
|
}
|
|
602
602
|
})();
|
|
603
603
|
h("input", X), h("update:modelValue", X);
|
|
604
|
-
},
|
|
604
|
+
}, N = (M) => {
|
|
605
605
|
const X = M.target.value;
|
|
606
|
-
|
|
606
|
+
k.value = X, W(X);
|
|
607
607
|
};
|
|
608
608
|
return re(() => t.modelValue, (M, X) => {
|
|
609
|
-
M instanceof Date || (X && !M ?
|
|
609
|
+
M instanceof Date || (X && !M ? k.value = void 0 : k.value = j ? j.enmask(String(M), void 0, {
|
|
610
610
|
defaultValue: !0
|
|
611
611
|
}) : String(M));
|
|
612
612
|
}), (M, X) => {
|
|
613
|
-
const
|
|
613
|
+
const B = ne("focus"), ee = ne("clickable");
|
|
614
614
|
return o(), s("label", bn, [
|
|
615
615
|
e(u) ? y("", !0) : (o(), s("div", gn, [
|
|
616
|
-
M.$slots.default ?
|
|
616
|
+
M.$slots.default ? I(M.$slots, "default", { key: 0 }, void 0, !0) : I(M.$slots, "description", { key: 1 }, void 0, !0)
|
|
617
617
|
])),
|
|
618
618
|
M.$slots.hint ? (o(), s("div", kn, [
|
|
619
|
-
|
|
619
|
+
I(M.$slots, "hint", {}, void 0, !0)
|
|
620
620
|
])) : y("", !0),
|
|
621
621
|
"element" in e(a) && e(a).element === "textarea" ? (o(), s("div", {
|
|
622
622
|
key: 2,
|
|
@@ -625,7 +625,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
625
625
|
input__container--${e(_)}
|
|
626
626
|
`)
|
|
627
627
|
}, [
|
|
628
|
-
|
|
628
|
+
P(g("textarea", {
|
|
629
629
|
placeholder: n.placeholder,
|
|
630
630
|
readonly: n.readonly,
|
|
631
631
|
value: M.modelValue,
|
|
@@ -633,9 +633,9 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
633
633
|
input__textarea
|
|
634
634
|
input__input--${e(_)}
|
|
635
635
|
`),
|
|
636
|
-
onInput:
|
|
636
|
+
onInput: N
|
|
637
637
|
}, null, 42, Vn), [
|
|
638
|
-
[
|
|
638
|
+
[B, e(a).focus]
|
|
639
639
|
])
|
|
640
640
|
], 2)) : (o(), s("div", {
|
|
641
641
|
key: 3,
|
|
@@ -644,8 +644,8 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
644
644
|
input__container--${e(_)}
|
|
645
645
|
`)
|
|
646
646
|
}, [
|
|
647
|
-
|
|
648
|
-
value:
|
|
647
|
+
P(g("input", E(n, {
|
|
648
|
+
value: k.value,
|
|
649
649
|
"data-component": "input",
|
|
650
650
|
class: `
|
|
651
651
|
input__input
|
|
@@ -653,12 +653,12 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
653
653
|
${e(l) && "input__input--icon"}
|
|
654
654
|
${e(p) && "input__input--readOnly"}
|
|
655
655
|
`,
|
|
656
|
-
onInput:
|
|
657
|
-
onChange: X[0] || (X[0] = (
|
|
656
|
+
onInput: N,
|
|
657
|
+
onChange: X[0] || (X[0] = (V) => h("change", V))
|
|
658
658
|
}), null, 16, Cn), [
|
|
659
|
-
[
|
|
659
|
+
[B, e(a).focus]
|
|
660
660
|
]),
|
|
661
|
-
e(l) ? (o(), $(
|
|
661
|
+
e(l) ? (o(), $(Z, {
|
|
662
662
|
key: 0,
|
|
663
663
|
icon: e(a).icon || "magnifying-glass",
|
|
664
664
|
class: Q(`
|
|
@@ -672,9 +672,9 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
672
672
|
D("Copiar")
|
|
673
673
|
]),
|
|
674
674
|
default: v(() => [
|
|
675
|
-
|
|
675
|
+
P(z(Z, {
|
|
676
676
|
icon: "clipboard",
|
|
677
|
-
onClick: X[1] || (X[1] = (
|
|
677
|
+
onClick: X[1] || (X[1] = (V) => e(d)(String(M.modelValue || "")))
|
|
678
678
|
}, null, 512), [
|
|
679
679
|
[ee]
|
|
680
680
|
])
|
|
@@ -730,7 +730,7 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-4bdda204"]]), On = ["val
|
|
|
730
730
|
"select--outline": !_.noOutline
|
|
731
731
|
})
|
|
732
732
|
}, [
|
|
733
|
-
|
|
733
|
+
g("select", E({
|
|
734
734
|
ref_key: "select",
|
|
735
735
|
ref: l,
|
|
736
736
|
value: e(p)
|
|
@@ -743,17 +743,17 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-4bdda204"]]), On = ["val
|
|
|
743
743
|
},
|
|
744
744
|
onChange: n[0] || (n[0] = (f) => u(f.target.value))
|
|
745
745
|
}), [
|
|
746
|
-
e(r).icon ? (o(), $(
|
|
746
|
+
e(r).icon ? (o(), $(Z, {
|
|
747
747
|
key: 0,
|
|
748
748
|
icon: e(r).icon
|
|
749
749
|
}, null, 8, ["icon"])) : y("", !0),
|
|
750
|
-
t.multiple ? y("", !0) : (o(), s("option", wn,
|
|
750
|
+
t.multiple ? y("", !0) : (o(), s("option", wn, b(e(F)("none")), 1)),
|
|
751
751
|
(o(!0), s(J, null, U("enum" in e(r) ? e(r).enum : [], (f) => (o(), s("option", {
|
|
752
752
|
key: f,
|
|
753
753
|
value: f,
|
|
754
754
|
"data-selected": d(f)
|
|
755
|
-
},
|
|
756
|
-
|
|
755
|
+
}, b(e(r).translate ? e(F)(f) : f), 9, Bn))), 128)),
|
|
756
|
+
I(_.$slots, "default", {}, void 0, !0)
|
|
757
757
|
], 16, On)
|
|
758
758
|
], 2));
|
|
759
759
|
}
|
|
@@ -800,16 +800,16 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
800
800
|
(o(!0), s(J, null, U(e(Lt), (n) => (o(), s("option", {
|
|
801
801
|
key: `limit-${n}`,
|
|
802
802
|
value: n
|
|
803
|
-
},
|
|
803
|
+
}, b(n), 9, Tn))), 128))
|
|
804
804
|
]),
|
|
805
805
|
_: 1
|
|
806
806
|
}, 8, ["modelValue"]),
|
|
807
|
-
|
|
807
|
+
g("div", Rn, [
|
|
808
808
|
z(fe, {
|
|
809
809
|
onClick: _[1] || (_[1] = (n) => l.value = 0)
|
|
810
810
|
}, {
|
|
811
811
|
default: v(() => [
|
|
812
|
-
z(
|
|
812
|
+
z(Z, {
|
|
813
813
|
reactive: "",
|
|
814
814
|
icon: "caret-double-left"
|
|
815
815
|
})
|
|
@@ -821,14 +821,14 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
821
821
|
onClick: _[2] || (_[2] = (n) => d("previous"))
|
|
822
822
|
}, {
|
|
823
823
|
default: v(() => [
|
|
824
|
-
z(
|
|
824
|
+
z(Z, {
|
|
825
825
|
reactive: "",
|
|
826
826
|
icon: "caret-left"
|
|
827
827
|
})
|
|
828
828
|
]),
|
|
829
829
|
_: 1
|
|
830
830
|
}, 8, ["disabled"]),
|
|
831
|
-
|
|
831
|
+
g("div", Ln, [
|
|
832
832
|
(o(), $(Ie, {
|
|
833
833
|
key: l.value,
|
|
834
834
|
modelValue: u.value,
|
|
@@ -841,14 +841,14 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
841
841
|
l.value = u.value === 0 ? 0 : u.value - 1;
|
|
842
842
|
})
|
|
843
843
|
}, null, 8, ["modelValue"])),
|
|
844
|
-
|
|
844
|
+
g("span", null, b(e(F)("of")) + " " + b(p.value), 1)
|
|
845
845
|
]),
|
|
846
846
|
z(fe, {
|
|
847
847
|
disabled: l.value === p.value - 1,
|
|
848
848
|
onClick: _[5] || (_[5] = (n) => d("next"))
|
|
849
849
|
}, {
|
|
850
850
|
default: v(() => [
|
|
851
|
-
z(
|
|
851
|
+
z(Z, {
|
|
852
852
|
reactive: "",
|
|
853
853
|
icon: "caret-right"
|
|
854
854
|
})
|
|
@@ -859,7 +859,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
859
859
|
onClick: _[6] || (_[6] = (n) => l.value = p.value - 1)
|
|
860
860
|
}, {
|
|
861
861
|
default: v(() => [
|
|
862
|
-
z(
|
|
862
|
+
z(Z, {
|
|
863
863
|
reactive: "",
|
|
864
864
|
icon: "caret-double-right"
|
|
865
865
|
})
|
|
@@ -914,13 +914,13 @@ const Mn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-41aa1ffc"]]), Fn = { cla
|
|
|
914
914
|
});
|
|
915
915
|
return (d, h) => {
|
|
916
916
|
const _ = ne("clickable");
|
|
917
|
-
return
|
|
917
|
+
return P((o(), s("label", {
|
|
918
918
|
class: Q(`
|
|
919
919
|
checkbox
|
|
920
920
|
${e(a).readOnly && "checkbox--readOnly"}
|
|
921
921
|
`)
|
|
922
922
|
}, [
|
|
923
|
-
|
|
923
|
+
P(g("input", E({
|
|
924
924
|
"onUpdate:modelValue": h[0] || (h[0] = (n) => p.value = n)
|
|
925
925
|
}, {
|
|
926
926
|
type: e(l),
|
|
@@ -929,15 +929,15 @@ const Mn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-41aa1ffc"]]), Fn = { cla
|
|
|
929
929
|
}, { class: "checkbox__input" }), null, 16), [
|
|
930
930
|
[Ct, p.value]
|
|
931
931
|
]),
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
d.$slots.description ?
|
|
932
|
+
g("div", Fn, [
|
|
933
|
+
g("div", null, [
|
|
934
|
+
d.$slots.description ? I(d.$slots, "description", { key: 0 }, void 0, !0) : e(u) ? (o(), s("div", {
|
|
935
935
|
key: 1,
|
|
936
936
|
innerHTML: e(a).translate ? e(F)(e(u)) : e(u)
|
|
937
|
-
}, null, 8, qn)) :
|
|
937
|
+
}, null, 8, qn)) : I(d.$slots, "default", { key: 2 }, void 0, !0)
|
|
938
938
|
]),
|
|
939
|
-
|
|
940
|
-
d.$slots.hint ?
|
|
939
|
+
g("div", Un, [
|
|
940
|
+
d.$slots.hint ? I(d.$slots, "hint", { key: 0 }, void 0, !0) : e(a).hint ? (o(), s("div", {
|
|
941
941
|
key: 1,
|
|
942
942
|
innerHTML: e(a).hint
|
|
943
943
|
}, null, 8, En)) : y("", !0)
|
|
@@ -994,7 +994,7 @@ const Qn = /* @__PURE__ */ G(Dn, [["__scopeId", "data-v-256eb557"]]), Gn = {
|
|
|
994
994
|
], 4));
|
|
995
995
|
}
|
|
996
996
|
});
|
|
997
|
-
const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) => (Fe("data-v-30f5a5ca"), c = c(), qe(), c), Jn = { class: "switch-wrapper" }, Kn = /* @__PURE__ */ Yn(() => /* @__PURE__ */
|
|
997
|
+
const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) => (Fe("data-v-30f5a5ca"), c = c(), qe(), c), Jn = { class: "switch-wrapper" }, Kn = /* @__PURE__ */ Yn(() => /* @__PURE__ */ g("div", { class: "switch__slider" }, null, -1)), Zn = { key: 1 }, Pn = {
|
|
998
998
|
inheritAttrs: !1
|
|
999
999
|
}, Nn = /* @__PURE__ */ q({
|
|
1000
1000
|
...Pn,
|
|
@@ -1014,7 +1014,7 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
1014
1014
|
return (u, p) => {
|
|
1015
1015
|
const d = ne("clickable");
|
|
1016
1016
|
return o(), s("div", Jn, [
|
|
1017
|
-
|
|
1017
|
+
P((o(), s("a", {
|
|
1018
1018
|
class: Q(`
|
|
1019
1019
|
switch
|
|
1020
1020
|
${u.modelValue && "switch--active"}
|
|
@@ -1023,7 +1023,7 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
1023
1023
|
onClick: ze(r, ["stop"])
|
|
1024
1024
|
}, [
|
|
1025
1025
|
Kn,
|
|
1026
|
-
|
|
1026
|
+
g("div", {
|
|
1027
1027
|
class: Q(`
|
|
1028
1028
|
switch__dummy
|
|
1029
1029
|
${!u.modelValue && "switch__dummy--flex"}
|
|
@@ -1034,7 +1034,7 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
1034
1034
|
blocked: e(l).readOnly
|
|
1035
1035
|
}]
|
|
1036
1036
|
]),
|
|
1037
|
-
u.$slots.default ?
|
|
1037
|
+
u.$slots.default ? I(u.$slots, "default", { key: 0 }, void 0, !0) : (o(), s("div", Zn, b(e(l).description || u.propertyName), 1))
|
|
1038
1038
|
]);
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
@@ -1045,14 +1045,14 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
|
|
|
1045
1045
|
}, no = ["src", "alt"], oo = {
|
|
1046
1046
|
key: 0,
|
|
1047
1047
|
class: "picture__meta"
|
|
1048
|
-
}, ao = ["src"], lo = /* @__PURE__ */ gt(() => /* @__PURE__ */
|
|
1048
|
+
}, ao = ["src"], lo = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
|
|
1049
1049
|
x1: "0",
|
|
1050
1050
|
y1: "0",
|
|
1051
1051
|
x2: "200",
|
|
1052
1052
|
y2: "200",
|
|
1053
1053
|
stroke: "#000",
|
|
1054
1054
|
"vector-effect": "non-scaling-stroke"
|
|
1055
|
-
}, null, -1)), so = /* @__PURE__ */ gt(() => /* @__PURE__ */
|
|
1055
|
+
}, null, -1)), so = /* @__PURE__ */ gt(() => /* @__PURE__ */ g("line", {
|
|
1056
1056
|
x1: "200",
|
|
1057
1057
|
y1: "0",
|
|
1058
1058
|
x2: "0",
|
|
@@ -1086,8 +1086,8 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
|
|
|
1086
1086
|
key: 0,
|
|
1087
1087
|
to: "main"
|
|
1088
1088
|
}, [
|
|
1089
|
-
a.value ?
|
|
1090
|
-
|
|
1089
|
+
a.value ? P((o(), s("div", to, [
|
|
1090
|
+
g("img", {
|
|
1091
1091
|
src: t.value,
|
|
1092
1092
|
alt: l.alt,
|
|
1093
1093
|
style: `
|
|
@@ -1096,7 +1096,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
|
|
|
1096
1096
|
`,
|
|
1097
1097
|
onClick: r[0] || (r[0] = (d) => a.value = !0)
|
|
1098
1098
|
}, null, 8, no),
|
|
1099
|
-
(p = l.meta) != null && p.owner ? (o(), s("div", oo, " Criado por " +
|
|
1099
|
+
(p = l.meta) != null && p.owner ? (o(), s("div", oo, " Criado por " + b(l.meta.owner.name) + " em " + b(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : y("", !0)
|
|
1100
1100
|
])), [
|
|
1101
1101
|
[u, {
|
|
1102
1102
|
click: () => {
|
|
@@ -1121,7 +1121,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
|
|
|
1121
1121
|
onClick: r[1] || (r[1] = () => {
|
|
1122
1122
|
l.expandable && (a.value = !0);
|
|
1123
1123
|
})
|
|
1124
|
-
}, null, 14, ao)) : l.$slots.fallback ?
|
|
1124
|
+
}, null, 14, ao)) : l.$slots.fallback ? I(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? I(l.$slots, "default", { key: 3 }, void 0, !0) : (o(), s("svg", {
|
|
1125
1125
|
key: 4,
|
|
1126
1126
|
class: Q(["picture__background", `
|
|
1127
1127
|
${l.bordered && "picture__image--bordered"}
|
|
@@ -1136,7 +1136,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
|
|
|
1136
1136
|
`)
|
|
1137
1137
|
}, io, 6)),
|
|
1138
1138
|
l.$slots.caption ? (o(), s("figcaption", ro, [
|
|
1139
|
-
|
|
1139
|
+
I(l.$slots, "caption", {}, void 0, !0)
|
|
1140
1140
|
])) : y("", !0)
|
|
1141
1141
|
]);
|
|
1142
1142
|
};
|
|
@@ -1162,25 +1162,25 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1162
1162
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1163
1163
|
setup(c, { emit: i }) {
|
|
1164
1164
|
const t = c, a = i, r = Te() ? ge() : null, u = Y(null), p = H(() => {
|
|
1165
|
-
var
|
|
1166
|
-
return u.value ? URL.createObjectURL(u.value) : (
|
|
1165
|
+
var k;
|
|
1166
|
+
return u.value ? URL.createObjectURL(u.value) : (k = t.modelValue) == null ? void 0 : k.link;
|
|
1167
1167
|
}), d = H(() => {
|
|
1168
|
-
var
|
|
1169
|
-
return /^image\//.test((
|
|
1170
|
-
}), h = (
|
|
1168
|
+
var k, j, L;
|
|
1169
|
+
return /^image\//.test((k = t.modelValue) == null ? void 0 : k.type) && !((j = u.value) != null && j.type) || /^image\//.test((L = u.value) == null ? void 0 : L.type);
|
|
1170
|
+
}), h = (k) => new Promise((j) => {
|
|
1171
1171
|
const L = new FileReader();
|
|
1172
|
-
L.onload = () =>
|
|
1172
|
+
L.onload = () => j(L.result), L.readAsArrayBuffer(k);
|
|
1173
1173
|
}), _ = () => {
|
|
1174
1174
|
u.value = null;
|
|
1175
|
-
}, n = async (
|
|
1176
|
-
u.value =
|
|
1177
|
-
const
|
|
1175
|
+
}, n = async (k) => {
|
|
1176
|
+
u.value = k.target.files[0];
|
|
1177
|
+
const j = u.value, L = await h(j);
|
|
1178
1178
|
if (r) {
|
|
1179
|
-
const { data: W } = await zt(`${yt}/${r.$id}/upload?name=${
|
|
1179
|
+
const { data: W } = await zt(`${yt}/${r.$id}/upload?name=${j.name}`, L, {
|
|
1180
1180
|
params: {
|
|
1181
1181
|
method: "POST",
|
|
1182
1182
|
headers: {
|
|
1183
|
-
"content-type":
|
|
1183
|
+
"content-type": j.type || "application/octet-stream",
|
|
1184
1184
|
"x-stream-request": "1"
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
@@ -1189,35 +1189,35 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1189
1189
|
return;
|
|
1190
1190
|
a("update:modelValue", W);
|
|
1191
1191
|
} else
|
|
1192
|
-
a("update:modelValue",
|
|
1192
|
+
a("update:modelValue", j);
|
|
1193
1193
|
a("update:content", L), a("change", L);
|
|
1194
1194
|
}, f = async () => {
|
|
1195
1195
|
a("update:modelValue", null);
|
|
1196
1196
|
};
|
|
1197
|
-
return (
|
|
1198
|
-
var L, W,
|
|
1197
|
+
return (k, j) => {
|
|
1198
|
+
var L, W, N, O, M, X;
|
|
1199
1199
|
return o(), s("div", co, [
|
|
1200
|
-
u.value || (L =
|
|
1200
|
+
u.value || (L = k.modelValue) != null && L._id ? (o(), s("div", po, [
|
|
1201
1201
|
d.value ? (o(), $(Me, {
|
|
1202
1202
|
key: 0,
|
|
1203
1203
|
modelValue: p.value,
|
|
1204
|
-
"onUpdate:modelValue":
|
|
1204
|
+
"onUpdate:modelValue": j[0] || (j[0] = (B) => p.value = B),
|
|
1205
1205
|
alt: "Image preview",
|
|
1206
1206
|
class: Q(`
|
|
1207
1207
|
file__image
|
|
1208
|
-
${!e(r) || ((W =
|
|
1208
|
+
${!e(r) || ((W = k.modelValue) == null ? void 0 : W._id) || "file__image--unsent"}
|
|
1209
1209
|
`)
|
|
1210
1210
|
}, null, 8, ["modelValue", "class"])) : y("", !0),
|
|
1211
|
-
(
|
|
1211
|
+
(N = k.modelValue) != null && N._id ? (o(), s("a", {
|
|
1212
1212
|
key: 1,
|
|
1213
|
-
href:
|
|
1214
|
-
},
|
|
1213
|
+
href: k.modelValue.download_link
|
|
1214
|
+
}, b(k.modelValue.filename), 9, _o)) : y("", !0)
|
|
1215
1215
|
])) : y("", !0),
|
|
1216
|
-
|
|
1217
|
-
|
|
1216
|
+
g("div", mo, [
|
|
1217
|
+
g("input", {
|
|
1218
1218
|
ref: "file",
|
|
1219
1219
|
type: "file",
|
|
1220
|
-
accept: (M = (O =
|
|
1220
|
+
accept: (M = (O = k.property) == null ? void 0 : O.accept) == null ? void 0 : M.join(","),
|
|
1221
1221
|
onChange: n
|
|
1222
1222
|
}, null, 40, fo),
|
|
1223
1223
|
u.value ? (o(), s("div", vo, [
|
|
@@ -1226,17 +1226,17 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1226
1226
|
onClick: ze(_, ["prevent"])
|
|
1227
1227
|
}, {
|
|
1228
1228
|
default: v(() => [
|
|
1229
|
-
D(
|
|
1229
|
+
D(b(e(F)("action.clear", { capitalize: !0 })), 1)
|
|
1230
1230
|
]),
|
|
1231
1231
|
_: 1
|
|
1232
1232
|
})
|
|
1233
|
-
])) : (X =
|
|
1233
|
+
])) : (X = k.modelValue) != null && X._id ? (o(), s("div", yo, [
|
|
1234
1234
|
z(ie, {
|
|
1235
1235
|
small: "",
|
|
1236
1236
|
onClick: ze(f, ["prevent"])
|
|
1237
1237
|
}, {
|
|
1238
1238
|
default: v(() => [
|
|
1239
|
-
D(
|
|
1239
|
+
D(b(e(F)("action.remove", { capitalize: !0 })), 1)
|
|
1240
1240
|
]),
|
|
1241
1241
|
_: 1
|
|
1242
1242
|
})
|
|
@@ -1268,10 +1268,10 @@ const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-69b23965"]]), bo = { cla
|
|
|
1268
1268
|
ref: l,
|
|
1269
1269
|
class: "container__content"
|
|
1270
1270
|
}, [
|
|
1271
|
-
|
|
1271
|
+
I(u.$slots, "default", {}, void 0, !0)
|
|
1272
1272
|
], 512)) : y("", !0),
|
|
1273
1273
|
u.$slots.footer ? (o(), s("div", go, [
|
|
1274
|
-
|
|
1274
|
+
I(u.$slots, "footer", {}, void 0, !0)
|
|
1275
1275
|
])) : y("", !0)
|
|
1276
1276
|
]));
|
|
1277
1277
|
}
|
|
@@ -1289,7 +1289,7 @@ const it = /* @__PURE__ */ G(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { cla
|
|
|
1289
1289
|
const t = c, a = i, l = t.property, r = pe(l), u = ge(), p = H(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: _ }) => t.item._id === _) : t.modelValue && t.modelValue._id === t.item._id), d = () => {
|
|
1290
1290
|
if (p.value)
|
|
1291
1291
|
return;
|
|
1292
|
-
const _ = (f) => f.filter((
|
|
1292
|
+
const _ = (f) => f.filter((k) => !!(k != null && k._id)), n = "items" in l ? _(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
|
|
1293
1293
|
a("update:modelValue", Array.isArray(n) ? [
|
|
1294
1294
|
...n,
|
|
1295
1295
|
t.item
|
|
@@ -1304,26 +1304,26 @@ const it = /* @__PURE__ */ G(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { cla
|
|
|
1304
1304
|
});
|
|
1305
1305
|
}
|
|
1306
1306
|
const n = () => {
|
|
1307
|
-
const f = [...t.modelValue],
|
|
1308
|
-
return f.splice(
|
|
1307
|
+
const f = [...t.modelValue], k = f.findIndex((j) => j._id === t.item._id);
|
|
1308
|
+
return f.splice(k, 1), f;
|
|
1309
1309
|
};
|
|
1310
1310
|
a("update:modelValue", "items" in l ? n() : null);
|
|
1311
1311
|
};
|
|
1312
1312
|
return (_, n) => {
|
|
1313
1313
|
const f = ne("clickable");
|
|
1314
|
-
return
|
|
1314
|
+
return P((o(), s("div", {
|
|
1315
1315
|
class: Q({
|
|
1316
1316
|
item: !0,
|
|
1317
1317
|
"item--selected": p.value
|
|
1318
1318
|
}),
|
|
1319
|
-
onClick: n[0] || (n[0] = (
|
|
1319
|
+
onClick: n[0] || (n[0] = (k) => p.value ? h() : d())
|
|
1320
1320
|
}, [
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
(o(!0), s(J, null, U(_.indexes, (
|
|
1324
|
-
key: `index-${_.item._id}-${
|
|
1321
|
+
I(_.$slots, "default", {}, void 0, !0),
|
|
1322
|
+
g("div", Vo, [
|
|
1323
|
+
(o(!0), s(J, null, U(_.indexes, (k, j) => (o(), s("div", {
|
|
1324
|
+
key: `index-${_.item._id}-${j}`,
|
|
1325
1325
|
class: "item__value"
|
|
1326
|
-
},
|
|
1326
|
+
}, b(_.item[k]), 1))), 128))
|
|
1327
1327
|
])
|
|
1328
1328
|
], 2)), [
|
|
1329
1329
|
[f]
|
|
@@ -1352,62 +1352,69 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1352
1352
|
const _ = Y(t.modelValue), n = Y({
|
|
1353
1353
|
data: [],
|
|
1354
1354
|
pagination: {}
|
|
1355
|
-
}), f = H(() => n.value.data),
|
|
1356
|
-
const
|
|
1355
|
+
}), f = H(() => n.value.data), k = H(() => n.value.pagination), j = Y(0), L = Y(h[0]), W = Y(!1), N = Y({}), O = () => {
|
|
1356
|
+
const A = {};
|
|
1357
1357
|
if (p) {
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1358
|
+
const w = e(p);
|
|
1359
|
+
A[w] = d;
|
|
1360
1360
|
}
|
|
1361
|
-
return a.constraints ? Ht(a.constraints,
|
|
1361
|
+
return a.constraints ? Ht(a.constraints, A) : {};
|
|
1362
1362
|
}, M = () => {
|
|
1363
|
-
f.value.length <
|
|
1364
|
-
}, X = async () =>
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1363
|
+
f.value.length < k.value.recordsTotal && (j.value += 1, B());
|
|
1364
|
+
}, X = async () => {
|
|
1365
|
+
if (Object.values(N.value).every((w) => !(String(w).length > 0)))
|
|
1366
|
+
return u.$actions.custom("getAll", {
|
|
1367
|
+
limit: Le,
|
|
1368
|
+
offset: j.value * Le,
|
|
1369
|
+
filters: O()
|
|
1370
|
+
});
|
|
1371
|
+
const A = h.filter((w) => {
|
|
1372
|
+
var K;
|
|
1373
|
+
return ((K = N.value[w]) == null ? void 0 : K.length) > 0;
|
|
1374
|
+
}).map((w) => ({
|
|
1375
|
+
[w]: {
|
|
1376
|
+
$regex: N.value[w].trim().replace("(", "\\(").replace(")", "\\)"),
|
|
1377
|
+
$options: "i"
|
|
1378
|
+
}
|
|
1379
|
+
}));
|
|
1380
|
+
return u.$actions.custom("getAll", {
|
|
1381
|
+
limit: Le,
|
|
1382
|
+
offset: j.value * Le,
|
|
1383
|
+
filters: {
|
|
1384
|
+
...O(),
|
|
1385
|
+
...A.length > 0 && {
|
|
1386
|
+
$or: A
|
|
1380
1387
|
}
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1388
|
+
}
|
|
1389
|
+
});
|
|
1390
|
+
}, B = async () => {
|
|
1384
1391
|
if (u.loading.getAll)
|
|
1385
1392
|
return;
|
|
1386
|
-
const
|
|
1387
|
-
n.value.pagination =
|
|
1393
|
+
const A = await X();
|
|
1394
|
+
n.value.pagination = A.pagination, j.value === 0 && n.value.data.splice(0), n.value.data.push(...A.data);
|
|
1388
1395
|
}, [ee] = ht({
|
|
1389
1396
|
delay: 800
|
|
1390
1397
|
})(() => {
|
|
1391
|
-
|
|
1392
|
-
}),
|
|
1398
|
+
j.value = 0, B(), W.value = !1;
|
|
1399
|
+
}), V = () => {
|
|
1393
1400
|
W.value = !0, ee();
|
|
1394
1401
|
}, R = () => {
|
|
1395
|
-
"effect" in l ? r("update:panel", !0) : l.value = !0,
|
|
1402
|
+
"effect" in l ? r("update:panel", !0) : l.value = !0, B();
|
|
1396
1403
|
}, te = () => {
|
|
1397
|
-
|
|
1398
|
-
}, oe = H(() => !Object.values(
|
|
1399
|
-
re(oe, (
|
|
1400
|
-
|
|
1404
|
+
j.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
|
|
1405
|
+
}, oe = H(() => !Object.values(N.value).some((A) => !!A));
|
|
1406
|
+
re(oe, (A, w) => {
|
|
1407
|
+
A && !w && B();
|
|
1401
1408
|
}), mt(() => {
|
|
1402
|
-
t.selectOnly &&
|
|
1409
|
+
t.selectOnly && B();
|
|
1403
1410
|
});
|
|
1404
|
-
const le = (
|
|
1405
|
-
_.value =
|
|
1411
|
+
const le = (A) => {
|
|
1412
|
+
_.value = A, t.selectOnly || r("update:modelValue", A);
|
|
1406
1413
|
}, m = () => {
|
|
1407
1414
|
te(), r("update:modelValue", _.value);
|
|
1408
1415
|
};
|
|
1409
|
-
return (
|
|
1410
|
-
const
|
|
1416
|
+
return (A, w) => {
|
|
1417
|
+
const K = ne("clickable");
|
|
1411
1418
|
return o(), s("div", null, [
|
|
1412
1419
|
e(l) ? (o(), $(Ge, {
|
|
1413
1420
|
key: 0,
|
|
@@ -1416,7 +1423,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1416
1423
|
z(Ae, {
|
|
1417
1424
|
float: "",
|
|
1418
1425
|
"close-hint": "",
|
|
1419
|
-
title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(
|
|
1426
|
+
title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(A.propertyName)}`,
|
|
1420
1427
|
"overlay-layer": 65,
|
|
1421
1428
|
"model-value": e(l),
|
|
1422
1429
|
style: { "--panel-max-width": "36rem" },
|
|
@@ -1429,40 +1436,40 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1429
1436
|
onClick: m
|
|
1430
1437
|
}, {
|
|
1431
1438
|
default: v(() => [
|
|
1432
|
-
D(
|
|
1439
|
+
D(b(e(F)("action.save", { capitalize: !0 })), 1)
|
|
1433
1440
|
]),
|
|
1434
1441
|
_: 1
|
|
1435
1442
|
})
|
|
1436
1443
|
]),
|
|
1437
1444
|
default: v(() => {
|
|
1438
|
-
var
|
|
1445
|
+
var C, T;
|
|
1439
1446
|
return [
|
|
1440
|
-
|
|
1441
|
-
|
|
1447
|
+
g("div", Io, [
|
|
1448
|
+
g("div", Ao, [
|
|
1442
1449
|
e(h).length > 1 ? (o(), $(Ee, {
|
|
1443
1450
|
key: 0,
|
|
1444
1451
|
modelValue: L.value,
|
|
1445
|
-
"onUpdate:modelValue":
|
|
1446
|
-
onChange:
|
|
1452
|
+
"onUpdate:modelValue": w[0] || (w[0] = (S) => L.value = S),
|
|
1453
|
+
onChange: w[1] || (w[1] = (S) => N.value = {})
|
|
1447
1454
|
}, {
|
|
1448
1455
|
default: v(() => [
|
|
1449
|
-
(o(!0), s(J, null, U(e(h), (
|
|
1450
|
-
key: `searchfield-${
|
|
1451
|
-
value:
|
|
1452
|
-
},
|
|
1456
|
+
(o(!0), s(J, null, U(e(h), (S) => (o(), s("option", {
|
|
1457
|
+
key: `searchfield-${S}`,
|
|
1458
|
+
value: S
|
|
1459
|
+
}, b(e(F)(S)), 9, Oo))), 128))
|
|
1453
1460
|
]),
|
|
1454
1461
|
_: 1
|
|
1455
1462
|
}, 8, ["modelValue"])) : y("", !0),
|
|
1456
|
-
|
|
1463
|
+
g("div", wo, [
|
|
1457
1464
|
(o(), $(Ie, {
|
|
1458
1465
|
key: `field-${L.value}`,
|
|
1459
|
-
modelValue:
|
|
1460
|
-
"onUpdate:modelValue":
|
|
1466
|
+
modelValue: N.value[L.value],
|
|
1467
|
+
"onUpdate:modelValue": w[2] || (w[2] = (S) => N.value[L.value] = S),
|
|
1461
1468
|
property: {
|
|
1462
1469
|
...e(u).properties[L.value],
|
|
1463
1470
|
inputType: "search"
|
|
1464
1471
|
},
|
|
1465
|
-
onInput:
|
|
1472
|
+
onInput: V
|
|
1466
1473
|
}, null, 8, ["modelValue", "property"]))
|
|
1467
1474
|
])
|
|
1468
1475
|
]),
|
|
@@ -1472,60 +1479,60 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1472
1479
|
onEndReached: M
|
|
1473
1480
|
}, {
|
|
1474
1481
|
default: v(() => [
|
|
1475
|
-
(o(!0), s(J, null, U(f.value, (
|
|
1476
|
-
item:
|
|
1482
|
+
(o(!0), s(J, null, U(f.value, (S) => (o(), $(De, E({ ref_for: !0 }, {
|
|
1483
|
+
item: S,
|
|
1477
1484
|
indexes: e(h),
|
|
1478
|
-
property:
|
|
1485
|
+
property: A.property
|
|
1479
1486
|
}, {
|
|
1480
|
-
key: `matching-${
|
|
1487
|
+
key: `matching-${S._id}`,
|
|
1481
1488
|
modelValue: _.value,
|
|
1482
|
-
"onUpdate:modelValue":
|
|
1489
|
+
"onUpdate:modelValue": w[3] || (w[3] = (ae) => _.value = ae)
|
|
1483
1490
|
}), null, 16, ["modelValue"]))), 128))
|
|
1484
1491
|
]),
|
|
1485
1492
|
_: 1
|
|
1486
1493
|
})) : (o(), s("div", Bo, [
|
|
1487
|
-
W.value ? (o(), s("div", So,
|
|
1494
|
+
W.value ? (o(), s("div", So, b(e(F)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(N.value).filter((S) => !!S).length > 0 && !("items" in A.property && ((C = A.modelValue) != null && C.length) || !Array.isArray(A.modelValue) && ((T = A.modelValue) != null && T._id)) ? (o(), s("div", jo, b(e(F)("no_results", { capitalize: !0 })), 1)) : y("", !0)
|
|
1488
1495
|
]))
|
|
1489
1496
|
]),
|
|
1490
|
-
|
|
1497
|
+
g("div", To, b(e(F)("showing", { capitalize: !0 })) + " " + b(f.value.length) + " " + b(e(F)("of")) + " " + b(k.value.recordsTotal), 1)
|
|
1491
1498
|
];
|
|
1492
1499
|
}),
|
|
1493
1500
|
_: 1
|
|
1494
1501
|
}, 8, ["title", "model-value"])
|
|
1495
1502
|
])) : y("", !0),
|
|
1496
|
-
|
|
1503
|
+
A.selectOnly ? y("", !0) : (o(), s("div", Ro, [
|
|
1497
1504
|
z(it, null, {
|
|
1498
1505
|
footer: v(() => [
|
|
1499
|
-
|
|
1506
|
+
P((o(), $(Z, {
|
|
1500
1507
|
icon: "plus",
|
|
1501
1508
|
onClick: R
|
|
1502
1509
|
}, {
|
|
1503
1510
|
default: v(() => [
|
|
1504
|
-
D(
|
|
1511
|
+
D(b(e(F)("action.select", { capitalize: !0 })), 1)
|
|
1505
1512
|
]),
|
|
1506
1513
|
_: 1
|
|
1507
1514
|
})), [
|
|
1508
|
-
[
|
|
1515
|
+
[K]
|
|
1509
1516
|
])
|
|
1510
1517
|
]),
|
|
1511
1518
|
default: v(() => {
|
|
1512
|
-
var
|
|
1519
|
+
var C;
|
|
1513
1520
|
return [
|
|
1514
|
-
"items" in
|
|
1515
|
-
(o(!0), s(J, null, U(
|
|
1521
|
+
"items" in A.property ? (o(), s("div", Lo, [
|
|
1522
|
+
(o(!0), s(J, null, U(A.modelValue, (T) => (o(), $(De, E({ ref_for: !0 }, {
|
|
1516
1523
|
item: T,
|
|
1517
1524
|
indexes: e(h),
|
|
1518
|
-
property:
|
|
1519
|
-
modelValue:
|
|
1525
|
+
property: A.property,
|
|
1526
|
+
modelValue: A.modelValue
|
|
1520
1527
|
}, {
|
|
1521
1528
|
key: `selected-${T._id}`,
|
|
1522
1529
|
"onUpdate:modelValue": le
|
|
1523
1530
|
}), null, 16))), 128))
|
|
1524
|
-
])) : (
|
|
1525
|
-
item:
|
|
1531
|
+
])) : (C = A.modelValue) != null && C._id ? (o(), $(De, E({ key: 1 }, {
|
|
1532
|
+
item: A.modelValue,
|
|
1526
1533
|
indexes: e(h),
|
|
1527
1534
|
property: e(a),
|
|
1528
|
-
modelValue:
|
|
1535
|
+
modelValue: A.modelValue
|
|
1529
1536
|
}, { "onUpdate:modelValue": le }), null, 16)) : y("", !0)
|
|
1530
1537
|
];
|
|
1531
1538
|
}),
|
|
@@ -1536,7 +1543,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1536
1543
|
};
|
|
1537
1544
|
}
|
|
1538
1545
|
});
|
|
1539
|
-
const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-
|
|
1546
|
+
const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i) => {
|
|
1540
1547
|
const t = "items" in c ? c.items : c, a = {
|
|
1541
1548
|
options: Xn,
|
|
1542
1549
|
select: Ee,
|
|
@@ -1620,225 +1627,225 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, i
|
|
|
1620
1627
|
!u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1621
1628
|
collection prop, some features may not work as intended`);
|
|
1622
1629
|
const d = Y(!1), h = H(() => !a.form && a.property ? "properties" in a.property ? a.property.properties : p == null ? void 0 : p.properties : a.form), _ = H(() => a.layout || (p == null ? void 0 : p.description.formLayout)), n = (m) => {
|
|
1623
|
-
const
|
|
1624
|
-
return a[m] && ye(m, a[m]),
|
|
1625
|
-
}, f = H(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors),
|
|
1630
|
+
const A = ve(m, a[m]);
|
|
1631
|
+
return a[m] && ye(m, a[m]), A;
|
|
1632
|
+
}, f = H(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors), k = n("formComponents") || {}, j = n("propertyComponents") || {}, L = n("omitFormHeader"), W = n("omitInputLabels"), N = n("innerInputLabel");
|
|
1626
1633
|
u && ye(Ue, u), ye("searchOnly", a.searchOnly);
|
|
1627
|
-
const O = (m) => h.value ? Object.entries(h.value).filter(([
|
|
1628
|
-
|
|
1629
|
-
|
|
1634
|
+
const O = (m) => h.value ? Object.entries(h.value).filter(([A, w]) => !w.noForm && m([
|
|
1635
|
+
A,
|
|
1636
|
+
w
|
|
1630
1637
|
])) : null, M = (m) => {
|
|
1631
|
-
var
|
|
1638
|
+
var w;
|
|
1632
1639
|
if (a.searchOnly || !u)
|
|
1633
1640
|
return !0;
|
|
1634
|
-
const
|
|
1635
|
-
return !
|
|
1636
|
-
}, X = O(([m]) => M(m)),
|
|
1637
|
-
var T,
|
|
1638
|
-
const
|
|
1639
|
-
if (!
|
|
1641
|
+
const A = a.property && "properties" in a.property ? a.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
|
|
1642
|
+
return !A || A.includes(m);
|
|
1643
|
+
}, X = O(([m]) => M(m)), B = je(), ee = {}, V = (m, A) => {
|
|
1644
|
+
var T, S, ae, _e;
|
|
1645
|
+
const w = [], K = ((S = (T = _.value) == null ? void 0 : T.fields) == null ? void 0 : S[m]) || ((_e = (ae = _.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
|
|
1646
|
+
if (!A)
|
|
1640
1647
|
return;
|
|
1641
|
-
if (
|
|
1648
|
+
if (K != null && K.if && !a.searchOnly) {
|
|
1642
1649
|
const me = Qe(
|
|
1643
1650
|
a.modelValue,
|
|
1644
|
-
|
|
1651
|
+
K.if
|
|
1645
1652
|
);
|
|
1646
1653
|
me.satisfied || (ee[m] && (p ? a.modelValue[m] = typeof p.$freshItem[m] == "object" ? Se(p.$freshItem[m]) : p.$freshItem[m] : a.modelValue[m] = [
|
|
1647
1654
|
void 0,
|
|
1648
1655
|
null
|
|
1649
|
-
].includes(a.modelValue[m]) ? null : a.modelValue[m].constructor()),
|
|
1656
|
+
].includes(a.modelValue[m]) ? null : a.modelValue[m].constructor()), w.push("display: none;")), ee[m] = me.satisfied;
|
|
1650
1657
|
}
|
|
1651
|
-
const
|
|
1652
|
-
return
|
|
1653
|
-
--field-span: ${
|
|
1658
|
+
const C = B.value.md && (K == null ? void 0 : K.span) || 6;
|
|
1659
|
+
return w.push(`
|
|
1660
|
+
--field-span: ${C};
|
|
1654
1661
|
grid-column: span var(--field-span) / span var(--field-span);
|
|
1655
|
-
`),
|
|
1656
|
-
--vertical-spacing: ${
|
|
1662
|
+
`), K && (K.verticalSpacing && w.push(`
|
|
1663
|
+
--vertical-spacing: ${K.verticalSpacing};
|
|
1657
1664
|
padding: var(--vertical-spacing) 0;
|
|
1658
|
-
`),
|
|
1665
|
+
`), K.separator && w.push(`
|
|
1659
1666
|
border-top: 1px solid var(--theme-border-color);
|
|
1660
1667
|
border-width: 1px 0 1px 0;
|
|
1661
1668
|
padding: 1rem 0;
|
|
1662
1669
|
margin: 1rem 0;
|
|
1663
|
-
`)),
|
|
1670
|
+
`)), w.join("");
|
|
1664
1671
|
}, R = (m) => m === null || m instanceof Object && !Object.keys(m).length, te = H(() => a.required ? a.required : a.property && "required" in a.property ? a.property.required : p == null ? void 0 : p.description.required), oe = H(() => a.form ? Mt(
|
|
1665
1672
|
a.modelValue,
|
|
1666
1673
|
a.form,
|
|
1667
1674
|
te.value,
|
|
1668
1675
|
p == null ? void 0 : p.description
|
|
1669
|
-
) : !0), le = (m,
|
|
1670
|
-
var
|
|
1671
|
-
return (
|
|
1676
|
+
) : !0), le = (m, A) => {
|
|
1677
|
+
var w;
|
|
1678
|
+
return (w = f.value) != null && w[m] && (typeof f.value[m].index != "number" || f.value[m].index === A) ? f.value[m].errors : null;
|
|
1672
1679
|
};
|
|
1673
|
-
return (m,
|
|
1674
|
-
const
|
|
1680
|
+
return (m, A) => {
|
|
1681
|
+
const w = ne("clickable"), K = ne("focus");
|
|
1675
1682
|
return o(), s("form", {
|
|
1676
1683
|
class: "form",
|
|
1677
1684
|
style: $e(`row-gap: ${e(L) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1678
1685
|
}, [
|
|
1679
1686
|
m.$slots.header && !e(L) ? (o(), s("header", Uo, [
|
|
1680
|
-
|
|
1687
|
+
I(m.$slots, "header", {}, void 0, !0)
|
|
1681
1688
|
])) : y("", !0),
|
|
1682
|
-
|
|
1689
|
+
I(m.$slots, "default", {}, void 0, !0),
|
|
1683
1690
|
m.isReadOnly ? y("", !0) : (o(), s("fieldset", Eo, [
|
|
1684
|
-
(o(!0), s(J, null, U(e(X), ([
|
|
1685
|
-
var
|
|
1691
|
+
(o(!0), s(J, null, U(e(X), ([C, T]) => {
|
|
1692
|
+
var S, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
|
|
1686
1693
|
return o(), s("div", {
|
|
1687
|
-
key: `field-${
|
|
1688
|
-
style: $e(C
|
|
1694
|
+
key: `field-${C}`,
|
|
1695
|
+
style: $e(V(C, T)),
|
|
1689
1696
|
class: "form__field"
|
|
1690
1697
|
}, [
|
|
1691
|
-
(!("type" in T) || T.type !== "boolean" || m.searchOnly) && !T.noLabel && !e(W) && !e(
|
|
1692
|
-
|
|
1698
|
+
(!("type" in T) || T.type !== "boolean" || m.searchOnly) && !T.noLabel && !e(W) && !e(N) ? (o(), s("label", Ho, [
|
|
1699
|
+
g("div", {
|
|
1693
1700
|
class: Q({
|
|
1694
1701
|
"form__field-label": !0,
|
|
1695
1702
|
"form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
|
|
1696
|
-
"form__field-required-hint": m.highlightRequired && !m.searchOnly && (!te.value || e(Qt)(
|
|
1703
|
+
"form__field-required-hint": m.highlightRequired && !m.searchOnly && (!te.value || e(Qt)(C, te.value, m.modelValue))
|
|
1697
1704
|
})
|
|
1698
|
-
},
|
|
1705
|
+
}, b(T.description || e(F)(C)), 3),
|
|
1699
1706
|
T.hint ? (o(), s("div", {
|
|
1700
1707
|
key: 0,
|
|
1701
1708
|
innerHTML: T.hint
|
|
1702
1709
|
}, null, 8, Do)) : y("", !0)
|
|
1703
1710
|
])) : y("", !0),
|
|
1704
|
-
m.$slots[`field-${
|
|
1711
|
+
m.$slots[`field-${C}`] ? I(m.$slots, `field-${C}`, E({
|
|
1705
1712
|
key: 1,
|
|
1706
1713
|
ref_for: !0
|
|
1707
1714
|
}, {
|
|
1708
1715
|
propery: T,
|
|
1709
|
-
properyName:
|
|
1716
|
+
properyName: C,
|
|
1710
1717
|
modelValue: m.modelValue
|
|
1711
|
-
}), void 0, !0) : (_e = (ae = (
|
|
1718
|
+
}), void 0, !0) : (_e = (ae = (S = m.layout) == null ? void 0 : S.fields) == null ? void 0 : ae[C]) != null && _e.component && e(j)[m.layout.fields[C].component.name] ? (o(), $(he(e(j)[m.layout.fields[C].component.name]), E({
|
|
1712
1719
|
key: 2,
|
|
1713
|
-
modelValue: m.modelValue[
|
|
1714
|
-
"onUpdate:modelValue": (x) => m.modelValue[
|
|
1720
|
+
modelValue: m.modelValue[C],
|
|
1721
|
+
"onUpdate:modelValue": (x) => m.modelValue[C] = x,
|
|
1715
1722
|
ref_for: !0
|
|
1716
1723
|
}, {
|
|
1717
1724
|
property: T,
|
|
1718
|
-
propertyName:
|
|
1719
|
-
...m.layout.fields[
|
|
1725
|
+
propertyName: C,
|
|
1726
|
+
...m.layout.fields[C].component.props || {}
|
|
1720
1727
|
}, {
|
|
1721
|
-
onInput: (x) => l("input",
|
|
1722
|
-
onChange:
|
|
1728
|
+
onInput: (x) => l("input", C),
|
|
1729
|
+
onChange: A[0] || (A[0] = (x) => l("change", x))
|
|
1723
1730
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && m.searchOnly ? (o(), s("div", {
|
|
1724
1731
|
key: 3,
|
|
1725
1732
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1726
|
-
onInput: (x) => l("input",
|
|
1727
|
-
onChange:
|
|
1733
|
+
onInput: (x) => l("input", C),
|
|
1734
|
+
onChange: A[1] || (A[1] = (x) => l("change", x))
|
|
1728
1735
|
}, [
|
|
1729
1736
|
z(Ie, E({
|
|
1730
|
-
modelValue: m.modelValue[
|
|
1731
|
-
"onUpdate:modelValue": (x) => m.modelValue[
|
|
1737
|
+
modelValue: m.modelValue[C].$gte,
|
|
1738
|
+
"onUpdate:modelValue": (x) => m.modelValue[C].$gte = x,
|
|
1732
1739
|
ref_for: !0
|
|
1733
1740
|
}, {
|
|
1734
1741
|
property: T,
|
|
1735
|
-
propertyName:
|
|
1742
|
+
propertyName: C
|
|
1736
1743
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1737
1744
|
z(Ie, E({
|
|
1738
|
-
modelValue: m.modelValue[
|
|
1739
|
-
"onUpdate:modelValue": (x) => m.modelValue[
|
|
1745
|
+
modelValue: m.modelValue[C].$lte,
|
|
1746
|
+
"onUpdate:modelValue": (x) => m.modelValue[C].$lte = x,
|
|
1740
1747
|
ref_for: !0
|
|
1741
1748
|
}, {
|
|
1742
1749
|
property: T,
|
|
1743
|
-
propertyName:
|
|
1750
|
+
propertyName: C
|
|
1744
1751
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1745
1752
|
], 40, Qo)) : "type" in T && T.type === "boolean" && m.searchOnly ? (o(), s("div", Go, [
|
|
1746
1753
|
z(Ee, E({ ref_for: !0 }, {
|
|
1747
1754
|
property: T,
|
|
1748
|
-
propertyName:
|
|
1755
|
+
propertyName: C
|
|
1749
1756
|
}, {
|
|
1750
1757
|
"boolean-ref": "",
|
|
1751
|
-
"model-value": m.modelValue[
|
|
1752
|
-
onChange:
|
|
1758
|
+
"model-value": m.modelValue[C],
|
|
1759
|
+
onChange: A[2] || (A[2] = (x) => l("change", x)),
|
|
1753
1760
|
"onUpdate:modelValue": (x) => {
|
|
1754
|
-
m.modelValue[
|
|
1761
|
+
m.modelValue[C] = x == "true" ? !0 : x == "false" ? !1 : null;
|
|
1755
1762
|
}
|
|
1756
1763
|
}), {
|
|
1757
1764
|
default: v(() => [
|
|
1758
|
-
|
|
1759
|
-
|
|
1765
|
+
g("option", Wo, b(e(F)("yes")), 1),
|
|
1766
|
+
g("option", Xo, b(e(F)("no")), 1)
|
|
1760
1767
|
]),
|
|
1761
1768
|
_: 2
|
|
1762
1769
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1763
1770
|
])) : m.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (o(), s("div", Yo, [
|
|
1764
|
-
|
|
1771
|
+
g("div", null, [
|
|
1765
1772
|
z(ie, {
|
|
1766
1773
|
small: "",
|
|
1767
1774
|
variant: "alt",
|
|
1768
1775
|
icon: "plus",
|
|
1769
|
-
disabled: !("inline" in T.items && T.items.inline) && (((me = m.modelValue[
|
|
1776
|
+
disabled: !("inline" in T.items && T.items.inline) && (((me = m.modelValue[C]) == null ? void 0 : me.length) >= T.maxItems || R((Ye = m.modelValue[C]) == null ? void 0 : Ye[((Xe = m.modelValue[C]) == null ? void 0 : Xe.length) - 1])),
|
|
1770
1777
|
onClick: ze((x) => {
|
|
1771
|
-
m.modelValue[
|
|
1778
|
+
m.modelValue[C] || (m.modelValue[C] = []), e(Fo)(m.modelValue[C], T, e(t));
|
|
1772
1779
|
}, ["prevent"])
|
|
1773
1780
|
}, {
|
|
1774
1781
|
default: v(() => [
|
|
1775
|
-
D(
|
|
1782
|
+
D(b(e(F)("action.add", { capitalize: !0 })), 1)
|
|
1776
1783
|
]),
|
|
1777
1784
|
_: 2
|
|
1778
1785
|
}, 1032, ["disabled", "onClick"])
|
|
1779
1786
|
]),
|
|
1780
|
-
(o(!0), s(J, null, U(m.modelValue[
|
|
1787
|
+
(o(!0), s(J, null, U(m.modelValue[C], (x, Oe) => {
|
|
1781
1788
|
var tt, nt, ot, at, lt, st;
|
|
1782
1789
|
return o(), s("div", {
|
|
1783
|
-
key: `rep-${
|
|
1790
|
+
key: `rep-${C}-${Oe}`,
|
|
1784
1791
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
1785
1792
|
}, [
|
|
1786
|
-
|
|
1787
|
-
(o(), $(he(e(rt)(T, e(
|
|
1788
|
-
modelValue: m.modelValue[
|
|
1789
|
-
"onUpdate:modelValue": (we) => m.modelValue[
|
|
1793
|
+
g("div", Jo, [
|
|
1794
|
+
(o(), $(he(e(rt)(T, e(k))), E({
|
|
1795
|
+
modelValue: m.modelValue[C][Oe],
|
|
1796
|
+
"onUpdate:modelValue": (we) => m.modelValue[C][Oe] = we,
|
|
1790
1797
|
ref_for: !0
|
|
1791
1798
|
}, {
|
|
1792
1799
|
property: T.items,
|
|
1793
|
-
propertyName:
|
|
1800
|
+
propertyName: C,
|
|
1794
1801
|
parentCollection: e(u),
|
|
1795
1802
|
parentPropertyName: m.parentPropertyName,
|
|
1796
|
-
columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[
|
|
1797
|
-
validationErrors: le(
|
|
1803
|
+
columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[C]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
|
|
1804
|
+
validationErrors: le(C, Oe),
|
|
1798
1805
|
...T.componentProps || {}
|
|
1799
1806
|
}, {
|
|
1800
|
-
onInput: (we) => l("input",
|
|
1801
|
-
onChange:
|
|
1807
|
+
onInput: (we) => l("input", C),
|
|
1808
|
+
onChange: A[3] || (A[3] = (we) => l("change", we))
|
|
1802
1809
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1803
1810
|
]),
|
|
1804
|
-
|
|
1811
|
+
P(z(Z, {
|
|
1805
1812
|
reactive: "",
|
|
1806
1813
|
icon: "trash",
|
|
1807
|
-
onClick: (we) => e(qo)(m.modelValue[
|
|
1814
|
+
onClick: (we) => e(qo)(m.modelValue[C], Oe)
|
|
1808
1815
|
}, null, 8, ["onClick"]), [
|
|
1809
|
-
[
|
|
1816
|
+
[w]
|
|
1810
1817
|
])
|
|
1811
1818
|
]);
|
|
1812
1819
|
}), 128))
|
|
1813
|
-
])) : m.modelValue ?
|
|
1820
|
+
])) : m.modelValue ? P((o(), $(he(e(rt)(T, e(k))), E({
|
|
1814
1821
|
key: 6,
|
|
1815
|
-
modelValue: m.modelValue[
|
|
1816
|
-
"onUpdate:modelValue": (x) => m.modelValue[
|
|
1822
|
+
modelValue: m.modelValue[C],
|
|
1823
|
+
"onUpdate:modelValue": (x) => m.modelValue[C] = x,
|
|
1817
1824
|
ref_for: !0
|
|
1818
1825
|
}, {
|
|
1819
1826
|
property: T,
|
|
1820
|
-
propertyName:
|
|
1827
|
+
propertyName: C,
|
|
1821
1828
|
parentPropertyName: m.parentPropertyName,
|
|
1822
1829
|
parentCollection: e(u),
|
|
1823
|
-
columns: ((Ze = (Ke = (Je = m.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[
|
|
1830
|
+
columns: ((Ze = (Ke = (Je = m.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[C]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
|
|
1824
1831
|
...T.componentProps || {},
|
|
1825
|
-
validationErrors: le(
|
|
1832
|
+
validationErrors: le(C)
|
|
1826
1833
|
}, {
|
|
1827
|
-
onInput: (x) => l("input",
|
|
1828
|
-
onChange:
|
|
1834
|
+
onInput: (x) => l("input", C),
|
|
1835
|
+
onChange: A[4] || (A[4] = (x) => l("change", x))
|
|
1829
1836
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1830
|
-
[
|
|
1837
|
+
[K, !d.value && (d.value = !!m.focus)]
|
|
1831
1838
|
]) : y("", !0),
|
|
1832
|
-
(et = f.value) != null && et[
|
|
1833
|
-
f.value[
|
|
1834
|
-
f.value[
|
|
1839
|
+
(et = f.value) != null && et[C] ? (o(), s("div", Ko, [
|
|
1840
|
+
f.value[C].type ? (o(), s("span", Zo, b(e(F)(`validation_error.${f.value[C].type}`)), 1)) : y("", !0),
|
|
1841
|
+
f.value[C].detail ? (o(), s("span", Po, b(e(F)(f.value[C].detail)), 1)) : y("", !0)
|
|
1835
1842
|
])) : y("", !0)
|
|
1836
1843
|
], 4);
|
|
1837
1844
|
}), 128))
|
|
1838
1845
|
])),
|
|
1839
|
-
m.$slots.after ?
|
|
1846
|
+
m.$slots.after ? I(m.$slots, "after", { key: 2 }, void 0, !0) : y("", !0),
|
|
1840
1847
|
m.$slots.footer ? (o(), s("div", No, [
|
|
1841
|
-
|
|
1848
|
+
I(m.$slots, "footer", ce(Ve({
|
|
1842
1849
|
isInsertReady: oe.value
|
|
1843
1850
|
})), void 0, !0)
|
|
1844
1851
|
])) : y("", !0)
|
|
@@ -1871,10 +1878,10 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1871
1878
|
})
|
|
1872
1879
|
}, {
|
|
1873
1880
|
default: v(() => [
|
|
1874
|
-
D(
|
|
1881
|
+
D(b(u.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1875
1882
|
z(be, null, {
|
|
1876
1883
|
default: v(() => [
|
|
1877
|
-
D(
|
|
1884
|
+
D(b(e(a).filtersCount), 1)
|
|
1878
1885
|
]),
|
|
1879
1886
|
_: 1
|
|
1880
1887
|
})
|
|
@@ -1888,7 +1895,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1888
1895
|
onClick: r
|
|
1889
1896
|
}, {
|
|
1890
1897
|
default: v(() => [
|
|
1891
|
-
D(
|
|
1898
|
+
D(b(u.t("action.filter", { capitalize: !0 })), 1)
|
|
1892
1899
|
]),
|
|
1893
1900
|
_: 1
|
|
1894
1901
|
}, 8, ["disabled"])
|
|
@@ -1932,7 +1939,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1932
1939
|
onOverlayClick: u
|
|
1933
1940
|
}, {
|
|
1934
1941
|
header: v(() => [
|
|
1935
|
-
|
|
1942
|
+
g("span", null, b((() => {
|
|
1936
1943
|
switch (e(se)) {
|
|
1937
1944
|
case "add":
|
|
1938
1945
|
return e(r)("action.add", { capitalize: !0 });
|
|
@@ -1943,7 +1950,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1943
1950
|
return e(r)("action.edit", { capitalize: !0 });
|
|
1944
1951
|
}
|
|
1945
1952
|
})()), 1),
|
|
1946
|
-
|
|
1953
|
+
g("span", null, " " + b(e(r)(e(i).view.collection)), 1)
|
|
1947
1954
|
]),
|
|
1948
1955
|
extra: v(() => [
|
|
1949
1956
|
z(Ce, E({
|
|
@@ -1953,7 +1960,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1953
1960
|
onActionClick: d[2] || (d[2] = (_) => se.value = !1)
|
|
1954
1961
|
}), {
|
|
1955
1962
|
default: v(() => [
|
|
1956
|
-
e(t).item._id ?
|
|
1963
|
+
e(t).item._id ? P((o(), $(Z, {
|
|
1957
1964
|
key: 0,
|
|
1958
1965
|
reactive: "",
|
|
1959
1966
|
icon: "dots-three"
|
|
@@ -1970,7 +1977,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1970
1977
|
onClick: u
|
|
1971
1978
|
}, {
|
|
1972
1979
|
default: v(() => [
|
|
1973
|
-
D(
|
|
1980
|
+
D(b(e(r)("action.cancel", { capitalize: !0 })), 1)
|
|
1974
1981
|
]),
|
|
1975
1982
|
_: 1
|
|
1976
1983
|
}),
|
|
@@ -1981,7 +1988,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1981
1988
|
onClick: l
|
|
1982
1989
|
}, {
|
|
1983
1990
|
default: v(() => [
|
|
1984
|
-
D(
|
|
1991
|
+
D(b(e(r)("action.insert", { capitalize: !0 })), 1)
|
|
1985
1992
|
]),
|
|
1986
1993
|
_: 1
|
|
1987
1994
|
}, 8, ["disabled", "loading"])
|
|
@@ -2002,7 +2009,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2002
2009
|
U(Object.keys(p.$slots).filter((_) => _.startsWith("field-")), (_) => ({
|
|
2003
2010
|
name: _,
|
|
2004
2011
|
fn: v((n) => [
|
|
2005
|
-
|
|
2012
|
+
I(p.$slots, _, ce(Ve(n)))
|
|
2006
2013
|
])
|
|
2007
2014
|
}))
|
|
2008
2015
|
]), 1040, ["modelValue"])
|
|
@@ -2058,8 +2065,8 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2058
2065
|
}, wa = { class: "table__cell-actions" }, Ba = {
|
|
2059
2066
|
key: 2,
|
|
2060
2067
|
class: "no-print table__mobile-actions"
|
|
2061
|
-
}, Sa = ["id"], ja = { key: 1 }, Ta = /* @__PURE__ */ oa(() => /* @__PURE__ */
|
|
2062
|
-
/* @__PURE__ */
|
|
2068
|
+
}, Sa = ["id"], ja = { key: 1 }, Ta = /* @__PURE__ */ oa(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
|
|
2069
|
+
/* @__PURE__ */ g("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
|
|
2063
2070
|
], -1)), Ra = [
|
|
2064
2071
|
Ta
|
|
2065
2072
|
], La = /* @__PURE__ */ q({
|
|
@@ -2077,138 +2084,138 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2077
2084
|
const t = c, a = i, l = je(), r = t.collection || Te(), u = r ? ue(typeof r == "string" ? r : r.value) : null, p = H({
|
|
2078
2085
|
get: () => u == null ? void 0 : u.selected,
|
|
2079
2086
|
set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
|
|
2080
|
-
}), d = (f,
|
|
2081
|
-
var
|
|
2082
|
-
return !l.value.xl || !((
|
|
2083
|
-
const L = t.layout.actions[
|
|
2087
|
+
}), d = (f, k) => f != null && f.button ? typeof f.button == "object" ? Qe(k, f.button).satisfied : f.button : !1, h = (f) => {
|
|
2088
|
+
var k;
|
|
2089
|
+
return !l.value.xl || !((k = t.layout) != null && k.actions) || !t.actions ? [] : t.actions.filter((j) => {
|
|
2090
|
+
const L = t.layout.actions[j.action];
|
|
2084
2091
|
return d(L, f);
|
|
2085
2092
|
});
|
|
2086
2093
|
}, _ = (f) => {
|
|
2087
|
-
var
|
|
2088
|
-
return t.actions ? !l.value.xl || !((
|
|
2089
|
-
const L = t.layout.actions[
|
|
2094
|
+
var k;
|
|
2095
|
+
return t.actions ? !l.value.xl || !((k = t.layout) != null && k.actions) ? t.actions : t.actions.filter((j) => {
|
|
2096
|
+
const L = t.layout.actions[j.action];
|
|
2090
2097
|
return !d(L, f);
|
|
2091
2098
|
}) : [];
|
|
2092
|
-
}, n = (f,
|
|
2093
|
-
var W,
|
|
2094
|
-
const
|
|
2099
|
+
}, n = (f, k) => {
|
|
2100
|
+
var W, N;
|
|
2101
|
+
const j = [], L = (N = (W = t.layout) == null ? void 0 : W.actions) == null ? void 0 : N[k.action];
|
|
2095
2102
|
return L != null && L.if && (Qe(
|
|
2096
2103
|
f,
|
|
2097
2104
|
L.if
|
|
2098
|
-
).satisfied ||
|
|
2105
|
+
).satisfied || j.push("display: none;")), j.join("");
|
|
2099
2106
|
};
|
|
2100
|
-
return (f,
|
|
2101
|
-
var L, W,
|
|
2102
|
-
const
|
|
2107
|
+
return (f, k) => {
|
|
2108
|
+
var L, W, N;
|
|
2109
|
+
const j = ne("clickable");
|
|
2103
2110
|
return f.columns && Object.keys(f.columns).length > 0 || f.$slots.thead ? (o(), s("table", aa, [
|
|
2104
2111
|
f.$slots.thead ? (o(), s("thead", la, [
|
|
2105
|
-
|
|
2112
|
+
I(f.$slots, "thead", {}, void 0, !0)
|
|
2106
2113
|
])) : (o(), s("thead", sa, [
|
|
2107
|
-
|
|
2114
|
+
g("tr", null, [
|
|
2108
2115
|
f.checkbox && e(u) && e(l).md ? (o(), s("th", ia, [
|
|
2109
|
-
|
|
2116
|
+
g("input", {
|
|
2110
2117
|
type: "checkbox",
|
|
2111
2118
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2112
|
-
onChange:
|
|
2119
|
+
onChange: k[0] || (k[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
|
|
2113
2120
|
}, null, 40, ra)
|
|
2114
2121
|
])) : y("", !0),
|
|
2115
2122
|
(o(!0), s(J, null, U(Object.entries(f.columns), ([O, M], X) => (o(), s("th", {
|
|
2116
2123
|
key: `header-${X}`,
|
|
2117
2124
|
class: "table__header"
|
|
2118
|
-
},
|
|
2125
|
+
}, b(M.description || e(F)(O)), 1))), 128)),
|
|
2119
2126
|
(L = f.actions) != null && L.length ? (o(), s("th", ua)) : y("", !0)
|
|
2120
2127
|
])
|
|
2121
2128
|
])),
|
|
2122
2129
|
f.$slots.tbody ? (o(), s("tbody", ca, [
|
|
2123
|
-
|
|
2130
|
+
I(f.$slots, "tbody", {}, void 0, !0)
|
|
2124
2131
|
])) : (o(), s("tbody", da, [
|
|
2125
2132
|
(o(!0), s(J, null, U(f.rows, (O) => {
|
|
2126
2133
|
var M, X;
|
|
2127
2134
|
return o(), s("tr", {
|
|
2128
2135
|
key: O._id,
|
|
2129
|
-
onClick: (
|
|
2136
|
+
onClick: (B) => a("itemClick", O)
|
|
2130
2137
|
}, [
|
|
2131
2138
|
e(u) && f.checkbox && e(l).md ? (o(), s("td", _a, [
|
|
2132
|
-
|
|
2133
|
-
"onUpdate:modelValue":
|
|
2139
|
+
P(g("input", {
|
|
2140
|
+
"onUpdate:modelValue": k[1] || (k[1] = (B) => p.value = B),
|
|
2134
2141
|
type: "checkbox",
|
|
2135
2142
|
value: O._id
|
|
2136
2143
|
}, null, 8, ma), [
|
|
2137
2144
|
[It, p.value]
|
|
2138
2145
|
])
|
|
2139
2146
|
])) : y("", !0),
|
|
2140
|
-
(o(!0), s(J, null, U(Object.entries(f.columns), ([
|
|
2141
|
-
var R, te, oe, le, m,
|
|
2147
|
+
(o(!0), s(J, null, U(Object.entries(f.columns), ([B, ee], V) => {
|
|
2148
|
+
var R, te, oe, le, m, A;
|
|
2142
2149
|
return o(), s("td", {
|
|
2143
|
-
key: `column-${O._id}-${
|
|
2150
|
+
key: `column-${O._id}-${V}`
|
|
2144
2151
|
}, [
|
|
2145
|
-
|
|
2146
|
-
`row-${
|
|
2147
|
-
|
|
2152
|
+
g("div", fa, b(ee.description || e(F)(B)), 1),
|
|
2153
|
+
`row-${B}` in f.$slots ? (o(), s("div", va, [
|
|
2154
|
+
I(f.$slots, `row-${B}`, E({ ref_for: !0 }, {
|
|
2148
2155
|
store: e(u),
|
|
2149
|
-
column:
|
|
2156
|
+
column: B,
|
|
2150
2157
|
property: ee,
|
|
2151
2158
|
row: O
|
|
2152
2159
|
}), void 0, !0)
|
|
2153
2160
|
])) : (o(), s("div", ya, [
|
|
2154
|
-
|
|
2161
|
+
g("div", ha, [
|
|
2155
2162
|
"type" in ee && ee.type === "boolean" ? (o(), s("div", $a, [
|
|
2156
|
-
O[
|
|
2163
|
+
O[B] ? (o(), $(Z, {
|
|
2157
2164
|
key: 0,
|
|
2158
2165
|
icon: "check",
|
|
2159
2166
|
"icon-classes": "aeria-blueish"
|
|
2160
2167
|
}, {
|
|
2161
2168
|
default: v(() => [
|
|
2162
|
-
D(
|
|
2169
|
+
D(b(e(F)("yes")), 1)
|
|
2163
2170
|
]),
|
|
2164
2171
|
_: 1
|
|
2165
|
-
})) : (o(), $(
|
|
2172
|
+
})) : (o(), $(Z, {
|
|
2166
2173
|
key: 1,
|
|
2167
2174
|
icon: "x",
|
|
2168
2175
|
"icon-classes": "aeria-redish"
|
|
2169
2176
|
}, {
|
|
2170
2177
|
default: v(() => [
|
|
2171
|
-
D(
|
|
2178
|
+
D(b(e(F)("no")), 1)
|
|
2172
2179
|
]),
|
|
2173
2180
|
_: 1
|
|
2174
2181
|
}))
|
|
2175
2182
|
])) : ((R = e(pe)(ee)) == null ? void 0 : R.$ref) === "file" ? (o(), s("div", ba, [
|
|
2176
|
-
/^image/.test((te = O[
|
|
2183
|
+
/^image/.test((te = O[B][0]) == null ? void 0 : te.type) && "items" in ee ? (o(), $(Me, {
|
|
2177
2184
|
key: 0,
|
|
2178
|
-
modelValue: O[
|
|
2179
|
-
"onUpdate:modelValue": (
|
|
2185
|
+
modelValue: O[B][0].link,
|
|
2186
|
+
"onUpdate:modelValue": (w) => O[B][0].link = w,
|
|
2180
2187
|
expandable: "",
|
|
2181
|
-
meta: O[
|
|
2188
|
+
meta: O[B][0],
|
|
2182
2189
|
alt: "Row image",
|
|
2183
2190
|
class: "table__picture"
|
|
2184
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[
|
|
2191
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[B]) == null ? void 0 : oe.type) ? (o(), $(Me, {
|
|
2185
2192
|
key: 1,
|
|
2186
|
-
modelValue: O[
|
|
2187
|
-
"onUpdate:modelValue": (
|
|
2193
|
+
modelValue: O[B].link,
|
|
2194
|
+
"onUpdate:modelValue": (w) => O[B].link = w,
|
|
2188
2195
|
expandable: "",
|
|
2189
|
-
meta: O[
|
|
2196
|
+
meta: O[B],
|
|
2190
2197
|
alt: "Row image",
|
|
2191
2198
|
class: "table__picture"
|
|
2192
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[
|
|
2199
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[B]) != null && le.link ? (o(), s("a", {
|
|
2193
2200
|
key: 2,
|
|
2194
|
-
href: O[
|
|
2201
|
+
href: O[B].link,
|
|
2195
2202
|
style: { "font-size": "10pt" }
|
|
2196
|
-
},
|
|
2203
|
+
}, b(O[B].filename), 9, ga)) : (o(), s("div", ka, " - "))
|
|
2197
2204
|
])) : (o(), s("div", Va, [
|
|
2198
|
-
e(u) ? (o(), s("span", Ca,
|
|
2199
|
-
value: O[
|
|
2200
|
-
key:
|
|
2205
|
+
e(u) ? (o(), s("span", Ca, b(e(u).$actions.formatValue({
|
|
2206
|
+
value: O[B],
|
|
2207
|
+
key: B,
|
|
2201
2208
|
property: ee
|
|
2202
|
-
})), 1)) : (o(), s("span", Ia,
|
|
2203
|
-
((
|
|
2204
|
-
(o(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (
|
|
2205
|
-
key: `subvalue-${
|
|
2209
|
+
})), 1)) : (o(), s("span", Ia, b(Array.isArray(O[B]) ? O[B].filter((w) => !!w).join(", ") : [void 0, null].includes(O[B]) ? "-" : O[B]), 1)),
|
|
2210
|
+
((A = (m = e(pe)(ee)) == null ? void 0 : m.indexes) == null ? void 0 : A.length) > 1 ? (o(), s("div", Aa, [
|
|
2211
|
+
(o(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (w, K) => (o(), s("div", {
|
|
2212
|
+
key: `subvalue-${K}`,
|
|
2206
2213
|
class: "table__cell-subvalue"
|
|
2207
|
-
},
|
|
2208
|
-
value: O[
|
|
2209
|
-
key:
|
|
2214
|
+
}, b(e(u).$actions.formatValue({
|
|
2215
|
+
value: O[B],
|
|
2216
|
+
key: B,
|
|
2210
2217
|
property: ee,
|
|
2211
|
-
index:
|
|
2218
|
+
index: w
|
|
2212
2219
|
})), 1))), 128))
|
|
2213
2220
|
])) : y("", !0)
|
|
2214
2221
|
]))
|
|
@@ -2217,17 +2224,17 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2217
2224
|
]);
|
|
2218
2225
|
}), 128)),
|
|
2219
2226
|
(M = f.actions) != null && M.length && e(l).md ? (o(), s("td", Oa, [
|
|
2220
|
-
|
|
2221
|
-
(o(!0), s(J, null, U(h(O), (
|
|
2222
|
-
key: `action-${
|
|
2227
|
+
g("div", wa, [
|
|
2228
|
+
(o(!0), s(J, null, U(h(O), (B) => (o(), $(ie, {
|
|
2229
|
+
key: `action-${B.action}`,
|
|
2223
2230
|
small: "",
|
|
2224
2231
|
variant: "transparent",
|
|
2225
|
-
icon:
|
|
2226
|
-
style: $e(n(O,
|
|
2227
|
-
onClick: (ee) =>
|
|
2232
|
+
icon: B.icon,
|
|
2233
|
+
style: $e(n(O, B)),
|
|
2234
|
+
onClick: (ee) => B.click(O)
|
|
2228
2235
|
}, {
|
|
2229
2236
|
default: v(() => [
|
|
2230
|
-
D(
|
|
2237
|
+
D(b(e(F)(B.label)), 1)
|
|
2231
2238
|
]),
|
|
2232
2239
|
_: 2
|
|
2233
2240
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
@@ -2239,32 +2246,32 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2239
2246
|
actions: _(O)
|
|
2240
2247
|
}), {
|
|
2241
2248
|
default: v(() => [
|
|
2242
|
-
|
|
2249
|
+
P(z(Z, {
|
|
2243
2250
|
reactive: "",
|
|
2244
2251
|
icon: "dots-three"
|
|
2245
2252
|
}, null, 512), [
|
|
2246
|
-
[
|
|
2253
|
+
[j]
|
|
2247
2254
|
])
|
|
2248
2255
|
]),
|
|
2249
2256
|
_: 2
|
|
2250
2257
|
}, 1040)) : y("", !0)
|
|
2251
2258
|
])
|
|
2252
2259
|
])) : (X = f.actions) != null && X.length ? (o(), s("td", Ba, [
|
|
2253
|
-
|
|
2260
|
+
g("div", {
|
|
2254
2261
|
class: "table__mobile-actions-grid",
|
|
2255
2262
|
style: $e(`grid-template-columns: repeat(${h(O).length + (_(O).length ? 1 : 0)}, 1fr);`)
|
|
2256
2263
|
}, [
|
|
2257
|
-
(o(!0), s(J, null, U(h(O), (
|
|
2258
|
-
key: `action-${
|
|
2264
|
+
(o(!0), s(J, null, U(h(O), (B) => (o(), $(fe, {
|
|
2265
|
+
key: `action-${B.action}`,
|
|
2259
2266
|
class: "table__mobile-actions-button",
|
|
2260
|
-
onClick: (ee) =>
|
|
2267
|
+
onClick: (ee) => B.click(O)
|
|
2261
2268
|
}, {
|
|
2262
2269
|
default: v(() => [
|
|
2263
|
-
z(
|
|
2264
|
-
icon:
|
|
2270
|
+
z(Z, {
|
|
2271
|
+
icon: B.icon || "gear"
|
|
2265
2272
|
}, {
|
|
2266
2273
|
default: v(() => [
|
|
2267
|
-
D(
|
|
2274
|
+
D(b(e(F)(B.label)), 1)
|
|
2268
2275
|
]),
|
|
2269
2276
|
_: 2
|
|
2270
2277
|
}, 1032, ["icon"])
|
|
@@ -2279,7 +2286,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2279
2286
|
actions: _(O)
|
|
2280
2287
|
}), {
|
|
2281
2288
|
default: v(() => [
|
|
2282
|
-
z(
|
|
2289
|
+
z(Z, {
|
|
2283
2290
|
icon: "dots-three",
|
|
2284
2291
|
class: "table__mobile-actions-button"
|
|
2285
2292
|
})
|
|
@@ -2288,14 +2295,14 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2288
2295
|
}, 1040)) : y("", !0)
|
|
2289
2296
|
], 4)
|
|
2290
2297
|
])) : y("", !0),
|
|
2291
|
-
|
|
2298
|
+
g("div", {
|
|
2292
2299
|
id: `dropdown-${O._id}`
|
|
2293
2300
|
}, null, 8, Sa)
|
|
2294
2301
|
], 8, pa);
|
|
2295
2302
|
}), 128))
|
|
2296
2303
|
])),
|
|
2297
|
-
|
|
2298
|
-
f.$slots.tfoot ?
|
|
2304
|
+
g("tfoot", null, [
|
|
2305
|
+
f.$slots.tfoot ? I(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((W = f.rows) != null && W.length) && !((N = e(u)) != null && N.loading.getAll) ? (o(), s("tr", ja, Ra)) : y("", !0)
|
|
2299
2306
|
])
|
|
2300
2307
|
])) : y("", !0);
|
|
2301
2308
|
};
|
|
@@ -2321,14 +2328,14 @@ const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
|
|
|
2321
2328
|
return Object.assign(r, i.componentProps);
|
|
2322
2329
|
});
|
|
2323
2330
|
return (r, u) => (o(), s("div", null, [
|
|
2324
|
-
r.$slots.inner ?
|
|
2331
|
+
r.$slots.inner ? I(r.$slots, "inner", { key: 0 }) : y("", !0),
|
|
2325
2332
|
e(t).properties ? (o(), $(za, E({ key: 1 }, l.value, {
|
|
2326
2333
|
key: e(t).$id
|
|
2327
2334
|
}), de({ _: 2 }, [
|
|
2328
2335
|
U(Object.keys(r.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
|
|
2329
2336
|
name: p,
|
|
2330
2337
|
fn: v((d) => [
|
|
2331
|
-
|
|
2338
|
+
I(r.$slots, p, ce(Ve(d)))
|
|
2332
2339
|
])
|
|
2333
2340
|
}))
|
|
2334
2341
|
]), 1040)) : y("", !0)
|
|
@@ -2346,7 +2353,7 @@ const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
|
|
|
2346
2353
|
${i.list && "grid--list"}
|
|
2347
2354
|
`)
|
|
2348
2355
|
}, [
|
|
2349
|
-
|
|
2356
|
+
I(i.$slots, "default", {}, void 0, !0)
|
|
2350
2357
|
], 2));
|
|
2351
2358
|
}
|
|
2352
2359
|
});
|
|
@@ -2375,8 +2382,8 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2375
2382
|
horizontal: r.componentName === "list"
|
|
2376
2383
|
}, de({
|
|
2377
2384
|
footer: v(() => [
|
|
2378
|
-
e(t).title ? (o(), s("div", Ua,
|
|
2379
|
-
e(t).information ? (o(), s("div", Ea,
|
|
2385
|
+
e(t).title ? (o(), s("div", Ua, b(d[e(t).title]), 1)) : y("", !0),
|
|
2386
|
+
e(t).information ? (o(), s("div", Ea, b(d[e(t).information]), 1)) : y("", !0)
|
|
2380
2387
|
]),
|
|
2381
2388
|
actions: v(() => [
|
|
2382
2389
|
r.individualActions.length > 0 ? (o(), $(Ce, E({
|
|
@@ -2387,7 +2394,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2387
2394
|
actions: r.individualActions
|
|
2388
2395
|
}), {
|
|
2389
2396
|
default: v(() => [
|
|
2390
|
-
|
|
2397
|
+
P(z(Z, {
|
|
2391
2398
|
reactive: "",
|
|
2392
2399
|
icon: "dots-three-vertical"
|
|
2393
2400
|
}, null, 512), [
|
|
@@ -2418,7 +2425,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2418
2425
|
large: ""
|
|
2419
2426
|
}, {
|
|
2420
2427
|
default: v(() => [
|
|
2421
|
-
D(
|
|
2428
|
+
D(b(e(t).translateBadge ? e(F)(h) : h), 1)
|
|
2422
2429
|
]),
|
|
2423
2430
|
_: 2
|
|
2424
2431
|
}, 1024))), 128))
|
|
@@ -2429,7 +2436,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2429
2436
|
fn: v(() => [
|
|
2430
2437
|
z(be, null, {
|
|
2431
2438
|
default: v(() => [
|
|
2432
|
-
D(
|
|
2439
|
+
D(b(e(t).translateBadge ? e(F)(d[e(t).badge]) : d[e(t)[r.badge]]), 1)
|
|
2433
2440
|
]),
|
|
2434
2441
|
_: 2
|
|
2435
2442
|
}, 1024)
|
|
@@ -2453,7 +2460,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2453
2460
|
}, Wa = {
|
|
2454
2461
|
key: 0,
|
|
2455
2462
|
class: "crud__search"
|
|
2456
|
-
}, Xa = { class: "crud__actions" }, Ya = { class: "crud__context-badge" }, Ja = /* @__PURE__ */ Qa(() => /* @__PURE__ */
|
|
2463
|
+
}, Xa = { class: "crud__actions" }, Ya = { class: "crud__context-badge" }, Ja = /* @__PURE__ */ Qa(() => /* @__PURE__ */ g("div", null, "Filtros", -1)), Ka = { key: 0 }, Za = {
|
|
2457
2464
|
key: 3,
|
|
2458
2465
|
class: "crud__pagination"
|
|
2459
2466
|
}, _t = 30, Pa = /* @__PURE__ */ q({
|
|
@@ -2477,40 +2484,40 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2477
2484
|
}), u = ue("meta"), p = je(), { reachedEnd: d, detach: h } = We(null, {
|
|
2478
2485
|
antecipate: 600
|
|
2479
2486
|
}), _ = !p.value.md || t.scrollPagination;
|
|
2480
|
-
_ && re(d, (
|
|
2481
|
-
|
|
2487
|
+
_ && re(d, (V) => {
|
|
2488
|
+
V && n.pagination.recordsTotal > n.items.length && j.value < _t && (j.value += 1, W());
|
|
2482
2489
|
});
|
|
2483
2490
|
const n = ue(t.collection);
|
|
2484
2491
|
na(n, {
|
|
2485
2492
|
persistInQuery: !t.noQueryPersistence
|
|
2486
2493
|
});
|
|
2487
|
-
const f = $t(),
|
|
2488
|
-
Be.value =
|
|
2489
|
-
const
|
|
2490
|
-
n.activeFilters = Object.assign({}, (
|
|
2494
|
+
const f = $t(), k = t.action ? e(t.action) : qt(n, l, f);
|
|
2495
|
+
Be.value = k[0], ct.value = k[1];
|
|
2496
|
+
const j = Y(0), L = Y(!1), W = async (V) => {
|
|
2497
|
+
n.activeFilters = Object.assign({}, (V == null ? void 0 : V.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
|
|
2491
2498
|
const R = {
|
|
2492
2499
|
filters: n.activeFilters,
|
|
2493
2500
|
limit: n.pagination.limit,
|
|
2494
2501
|
offset: n.pagination.offset,
|
|
2495
2502
|
project: n.preferredTableProperties.length > 0 ? n.preferredTableProperties : n.description.table || Object.keys(n.properties)
|
|
2496
2503
|
};
|
|
2497
|
-
|
|
2504
|
+
j.value > 0 && (R.limit = 15, R.offset = j.value * R.limit), n.description.tableMeta && (R.project = R.project.concat(n.description.tableMeta)), V && Object.assign(R, V), n.loading.getAll = !0;
|
|
2498
2505
|
const { data: te, pagination: oe } = await n.$actions.retrieveItems(R);
|
|
2499
|
-
n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal,
|
|
2500
|
-
},
|
|
2506
|
+
n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal, j.value === 0 && n.items.splice(0), n.items.push(...te), n.loading.getAll = !1, L.value = !0;
|
|
2507
|
+
}, N = async (V) => {
|
|
2501
2508
|
l.push({
|
|
2502
2509
|
query: {
|
|
2503
2510
|
...l.currentRoute.value.query,
|
|
2504
|
-
offset:
|
|
2505
|
-
limit:
|
|
2511
|
+
offset: V.offset,
|
|
2512
|
+
limit: V.limit
|
|
2506
2513
|
}
|
|
2507
|
-
}), n.pagination.offset =
|
|
2514
|
+
}), n.pagination.offset = V.offset, n.pagination.limit = V.limit, W();
|
|
2508
2515
|
}, O = ve("noResultsComponent", null);
|
|
2509
2516
|
re(() => [
|
|
2510
2517
|
l.currentRoute.value.path,
|
|
2511
2518
|
l.currentRoute.value.query.section
|
|
2512
|
-
], async (
|
|
2513
|
-
if (R && R[0] ===
|
|
2519
|
+
], async (V, R) => {
|
|
2520
|
+
if (R && R[0] === V[0] && R[1] === V[1])
|
|
2514
2521
|
return;
|
|
2515
2522
|
const te = l.currentRoute.value;
|
|
2516
2523
|
if (u.view.title = t.collection, u.view.collection = t.collection, ut.value = !1, !t.noFetch && !te.query._popstate) {
|
|
@@ -2521,29 +2528,29 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2521
2528
|
immediate: !0,
|
|
2522
2529
|
flush: "post"
|
|
2523
2530
|
});
|
|
2524
|
-
const [M] = r((
|
|
2531
|
+
const [M] = r((V) => (l.push({
|
|
2525
2532
|
query: {
|
|
2526
|
-
search:
|
|
2533
|
+
search: V || void 0
|
|
2527
2534
|
}
|
|
2528
|
-
}),
|
|
2535
|
+
}), V ? (n.filters = Object.assign(Se(n.freshFilters), {
|
|
2529
2536
|
$text: {
|
|
2530
|
-
$search: `"${
|
|
2537
|
+
$search: `"${V}"`,
|
|
2531
2538
|
$caseSensitive: !1
|
|
2532
2539
|
}
|
|
2533
2540
|
}), W({
|
|
2534
2541
|
offset: 0
|
|
2535
|
-
})) : (n.filters = Se(n.freshFilters),
|
|
2536
|
-
re(() => n.textQuery, (
|
|
2537
|
-
M(
|
|
2542
|
+
})) : (n.filters = Se(n.freshFilters), j.value = 0, W())));
|
|
2543
|
+
re(() => n.textQuery, (V) => {
|
|
2544
|
+
M(V);
|
|
2538
2545
|
});
|
|
2539
|
-
const X = (
|
|
2540
|
-
|
|
2546
|
+
const X = (V) => {
|
|
2547
|
+
V.currentLayout = V.currentLayout === "tabular" ? V.description.layout.name : "tabular";
|
|
2541
2548
|
};
|
|
2542
2549
|
At(() => {
|
|
2543
2550
|
n.$actions.clearFilters(), n.textQuery = "", h();
|
|
2544
|
-
}), re(() => ct.value, async (
|
|
2551
|
+
}), re(() => ct.value, async (V) => {
|
|
2545
2552
|
var oe;
|
|
2546
|
-
const R = Se(
|
|
2553
|
+
const R = Se(V);
|
|
2547
2554
|
let te;
|
|
2548
2555
|
if (R)
|
|
2549
2556
|
if ([
|
|
@@ -2564,30 +2571,30 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2564
2571
|
ut.value = !0, se.value = "view";
|
|
2565
2572
|
else if (R.name === "duplicate") {
|
|
2566
2573
|
await te;
|
|
2567
|
-
const le = Object.entries(n.item).reduce((m, [
|
|
2568
|
-
if (!(
|
|
2574
|
+
const le = Object.entries(n.item).reduce((m, [A, w]) => {
|
|
2575
|
+
if (!(A in n.properties))
|
|
2569
2576
|
return {
|
|
2570
2577
|
...m,
|
|
2571
|
-
[
|
|
2578
|
+
[A]: w
|
|
2572
2579
|
};
|
|
2573
|
-
const
|
|
2574
|
-
if (
|
|
2580
|
+
const K = n.properties[A];
|
|
2581
|
+
if (K.readOnly)
|
|
2575
2582
|
return m;
|
|
2576
|
-
const
|
|
2577
|
-
const
|
|
2578
|
-
if (!
|
|
2583
|
+
const C = (T) => {
|
|
2584
|
+
const S = pe(K);
|
|
2585
|
+
if (!S)
|
|
2579
2586
|
return T;
|
|
2580
|
-
if (
|
|
2587
|
+
if (S.$ref === "file")
|
|
2581
2588
|
return {};
|
|
2582
|
-
if (
|
|
2589
|
+
if (S.inline && T) {
|
|
2583
2590
|
const { _id: ae, ..._e } = T;
|
|
2584
2591
|
return _e;
|
|
2585
2592
|
}
|
|
2586
2593
|
return T;
|
|
2587
2594
|
};
|
|
2588
|
-
return
|
|
2595
|
+
return w = Array.isArray(w) ? w.map(C) : C(w), {
|
|
2589
2596
|
...m,
|
|
2590
|
-
[
|
|
2597
|
+
[A]: w
|
|
2591
2598
|
};
|
|
2592
2599
|
}, {});
|
|
2593
2600
|
n.$actions.setItem(le), delete n.item._id, n.referenceItem = {}, se.value = "duplicate";
|
|
@@ -2595,35 +2602,35 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2595
2602
|
a("uiEvent", R);
|
|
2596
2603
|
}, {
|
|
2597
2604
|
deep: !0
|
|
2598
|
-
}), re(() => se, (
|
|
2599
|
-
|
|
2605
|
+
}), re(() => se, (V) => {
|
|
2606
|
+
V.value === !1 && (u.view.collection = t.collection, n.$actions.clearItem());
|
|
2600
2607
|
});
|
|
2601
|
-
const
|
|
2602
|
-
click: Be.value(
|
|
2603
|
-
...
|
|
2604
|
-
}))), ee = H(() => n.actions.filter((
|
|
2605
|
-
return ye(Ue, H(() => t.collection)), ye("individualActions",
|
|
2606
|
-
var le, m,
|
|
2608
|
+
const B = H(() => n.individualActions.map((V) => ({
|
|
2609
|
+
click: Be.value(V),
|
|
2610
|
+
...V
|
|
2611
|
+
}))), ee = H(() => n.actions.filter((V) => !V.button));
|
|
2612
|
+
return ye(Ue, H(() => t.collection)), ye("individualActions", B), (V, R) => {
|
|
2613
|
+
var le, m, A, w, K, C, T;
|
|
2607
2614
|
const te = ne("clickable"), oe = ne("loading");
|
|
2608
2615
|
return o(), s(J, null, [
|
|
2609
2616
|
e(ke) ? (o(), $(ea, {
|
|
2610
2617
|
key: e(n).$id,
|
|
2611
2618
|
modelValue: e(ke),
|
|
2612
|
-
"onUpdate:modelValue": R[0] || (R[0] = (
|
|
2619
|
+
"onUpdate:modelValue": R[0] || (R[0] = (S) => vt(ke) ? ke.value = S : null)
|
|
2613
2620
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2614
2621
|
e(se) ? (o(), $(ta, { key: 1 }, de({ _: 2 }, [
|
|
2615
|
-
U(Object.keys(
|
|
2616
|
-
name:
|
|
2622
|
+
U(Object.keys(V.$slots).filter((S) => S.startsWith("field-")), (S) => ({
|
|
2623
|
+
name: S,
|
|
2617
2624
|
fn: v((ae) => [
|
|
2618
|
-
|
|
2625
|
+
I(V.$slots, S, ce(Ve(ae)), void 0, !0)
|
|
2619
2626
|
])
|
|
2620
2627
|
}))
|
|
2621
2628
|
]), 1024)) : y("", !0),
|
|
2622
|
-
!
|
|
2629
|
+
!V.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((le = e(n)) == null ? void 0 : le.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(n).description.layout && ((m = e(n).description.layout) == null ? void 0 : m.name) !== "tabular") ? (o(), s("div", Ga, [
|
|
2623
2630
|
e(n).description.search ? (o(), s("div", Wa, [
|
|
2624
2631
|
z(Ie, E({
|
|
2625
2632
|
modelValue: e(n).textQuery,
|
|
2626
|
-
"onUpdate:modelValue": R[1] || (R[1] = (
|
|
2633
|
+
"onUpdate:modelValue": R[1] || (R[1] = (S) => e(n).textQuery = S)
|
|
2627
2634
|
}, {
|
|
2628
2635
|
property: {
|
|
2629
2636
|
type: "string",
|
|
@@ -2632,8 +2639,8 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2632
2639
|
}
|
|
2633
2640
|
}), null, 16, ["modelValue"])
|
|
2634
2641
|
])) : y("", !0),
|
|
2635
|
-
|
|
2636
|
-
ee.value.length > 0 || !
|
|
2642
|
+
g("div", Xa, [
|
|
2643
|
+
ee.value.length > 0 || !V.noLayoutToggle && e(n).description.layout && ((A = e(n).description.layout) == null ? void 0 : A.name) !== "tabular" ? (o(), $(Ce, { key: 0 }, de({
|
|
2637
2644
|
default: v(() => [
|
|
2638
2645
|
z(ie, {
|
|
2639
2646
|
variant: "alt",
|
|
@@ -2642,7 +2649,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2642
2649
|
default: v(() => [
|
|
2643
2650
|
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2644
2651
|
default: v(() => [
|
|
2645
|
-
D(
|
|
2652
|
+
D(b(e(n).filtersCount), 1)
|
|
2646
2653
|
]),
|
|
2647
2654
|
_: 1
|
|
2648
2655
|
})) : y("", !0)
|
|
@@ -2655,21 +2662,21 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2655
2662
|
Object.keys(e(n).availableFilters).length > 0 ? {
|
|
2656
2663
|
name: "filter",
|
|
2657
2664
|
fn: v(() => [
|
|
2658
|
-
|
|
2665
|
+
P((o(), $(Z, {
|
|
2659
2666
|
icon: "funnel",
|
|
2660
|
-
onClick: R[2] || (R[2] = (
|
|
2667
|
+
onClick: R[2] || (R[2] = (S) => ke.value = !0)
|
|
2661
2668
|
}, {
|
|
2662
2669
|
default: v(() => [
|
|
2663
|
-
D(
|
|
2670
|
+
D(b(e(F)("filters", { capitalize: !0 })), 1)
|
|
2664
2671
|
]),
|
|
2665
2672
|
_: 1
|
|
2666
2673
|
})), [
|
|
2667
2674
|
[te]
|
|
2668
2675
|
]),
|
|
2669
|
-
|
|
2676
|
+
g("div", Ya, [
|
|
2670
2677
|
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2671
2678
|
default: v(() => [
|
|
2672
|
-
D(
|
|
2679
|
+
D(b(e(n).filtersCount), 1)
|
|
2673
2680
|
]),
|
|
2674
2681
|
_: 1
|
|
2675
2682
|
})) : y("", !0)
|
|
@@ -2677,15 +2684,15 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2677
2684
|
]),
|
|
2678
2685
|
key: "0"
|
|
2679
2686
|
} : void 0,
|
|
2680
|
-
!
|
|
2687
|
+
!V.noLayoutToggle && e(n).description.layout && ((w = e(n).description.layout) == null ? void 0 : w.name) !== "tabular" ? {
|
|
2681
2688
|
name: "layout-toggle",
|
|
2682
2689
|
fn: v(() => [
|
|
2683
|
-
|
|
2690
|
+
P((o(), $(Z, {
|
|
2684
2691
|
icon: "table",
|
|
2685
|
-
onClick: R[3] || (R[3] = (
|
|
2692
|
+
onClick: R[3] || (R[3] = (S) => X(e(n)))
|
|
2686
2693
|
}, {
|
|
2687
2694
|
default: v(() => [
|
|
2688
|
-
D(
|
|
2695
|
+
D(b(e(F)("change_layout", { capitalize: !0 })), 1)
|
|
2689
2696
|
]),
|
|
2690
2697
|
_: 1
|
|
2691
2698
|
})), [
|
|
@@ -2694,17 +2701,17 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2694
2701
|
]),
|
|
2695
2702
|
key: "1"
|
|
2696
2703
|
} : void 0,
|
|
2697
|
-
U(ee.value, (
|
|
2704
|
+
U(ee.value, (S, ae) => ({
|
|
2698
2705
|
name: `action-${ae}`,
|
|
2699
2706
|
fn: v(() => [
|
|
2700
|
-
|
|
2707
|
+
S ? (o(), $(Z, {
|
|
2701
2708
|
key: 0,
|
|
2702
|
-
icon:
|
|
2703
|
-
disabled: e(n).selected.length === 0 &&
|
|
2704
|
-
onClick: (_e) => e(Be)(
|
|
2709
|
+
icon: S.icon || "gear",
|
|
2710
|
+
disabled: e(n).selected.length === 0 && S.selection,
|
|
2711
|
+
onClick: (_e) => e(Be)(S)({ _id: e(n).selected.map((me) => me._id) })
|
|
2705
2712
|
}, {
|
|
2706
2713
|
default: v(() => [
|
|
2707
|
-
D(
|
|
2714
|
+
D(b(e(F)(S.label, { capitalize: !0 })), 1)
|
|
2708
2715
|
]),
|
|
2709
2716
|
_: 2
|
|
2710
2717
|
}, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
|
|
@@ -2714,35 +2721,35 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2714
2721
|
key: 1,
|
|
2715
2722
|
variant: "alt",
|
|
2716
2723
|
icon: "funnel",
|
|
2717
|
-
onClick: R[4] || (R[4] = (
|
|
2724
|
+
onClick: R[4] || (R[4] = (S) => ke.value = !0)
|
|
2718
2725
|
}, {
|
|
2719
2726
|
default: v(() => [
|
|
2720
2727
|
Ja,
|
|
2721
2728
|
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2722
2729
|
default: v(() => [
|
|
2723
|
-
D(
|
|
2730
|
+
D(b(e(n).filtersCount), 1)
|
|
2724
2731
|
]),
|
|
2725
2732
|
_: 1
|
|
2726
2733
|
})) : y("", !0)
|
|
2727
2734
|
]),
|
|
2728
2735
|
_: 1
|
|
2729
2736
|
})) : y("", !0),
|
|
2730
|
-
(o(!0), s(J, null, U(e(n).actions.filter((
|
|
2737
|
+
(o(!0), s(J, null, U(e(n).actions.filter((S) => S.button), (S, ae) => (o(), $(ie, {
|
|
2731
2738
|
key: `action-${ae}`,
|
|
2732
|
-
icon:
|
|
2733
|
-
disabled: e(n).selected.length === 0 &&
|
|
2734
|
-
onClick: (_e) => e(Be)(
|
|
2739
|
+
icon: S.icon,
|
|
2740
|
+
disabled: e(n).selected.length === 0 && S.selection,
|
|
2741
|
+
onClick: (_e) => e(Be)(S)({ _id: e(n).selected.map((me) => me._id) })
|
|
2735
2742
|
}, {
|
|
2736
2743
|
default: v(() => [
|
|
2737
|
-
D(
|
|
2744
|
+
D(b(e(F)(S.label, { capitalize: !0 })), 1)
|
|
2738
2745
|
]),
|
|
2739
2746
|
_: 2
|
|
2740
2747
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2741
|
-
|
|
2748
|
+
V.$slots.actions ? I(V.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
|
|
2742
2749
|
])
|
|
2743
2750
|
])) : y("", !0),
|
|
2744
|
-
|
|
2745
|
-
e(n).itemsCount === 0 && !e(n).loading.getAll && L.value && (e(O) ||
|
|
2751
|
+
P((o(), s("div", null, [
|
|
2752
|
+
e(n).itemsCount === 0 && !e(n).loading.getAll && L.value && (e(O) || V.$slots.empty) ? (o(), s("div", Ka, [
|
|
2746
2753
|
e(O) ? (o(), $(he(e(O)), ce(E({ key: 0 }, {
|
|
2747
2754
|
collection: e(n).$id
|
|
2748
2755
|
})), {
|
|
@@ -2750,50 +2757,50 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2750
2757
|
e(n).filtersCount === 0 && e(n).description.actions && "ui:spawnAdd" in e(n).description.actions ? (o(), $(ie, {
|
|
2751
2758
|
key: 0,
|
|
2752
2759
|
icon: "plus",
|
|
2753
|
-
onClick: R[5] || (R[5] = (
|
|
2760
|
+
onClick: R[5] || (R[5] = (S) => e(Be)({
|
|
2754
2761
|
action: "ui:spawnAdd"
|
|
2755
2762
|
})())
|
|
2756
2763
|
}, {
|
|
2757
2764
|
default: v(() => [
|
|
2758
|
-
D(
|
|
2765
|
+
D(b(e(F)("add_first_item", { capitalize: !0 })), 1)
|
|
2759
2766
|
]),
|
|
2760
2767
|
_: 1
|
|
2761
2768
|
})) : y("", !0)
|
|
2762
2769
|
]),
|
|
2763
2770
|
_: 1
|
|
2764
|
-
}, 16)) :
|
|
2771
|
+
}, 16)) : I(V.$slots, "empty", ce(E({ key: 1 }, {
|
|
2765
2772
|
collection: e(n).$id
|
|
2766
2773
|
})), void 0, !0)
|
|
2767
|
-
])) :
|
|
2774
|
+
])) : V.$slots.component ? I(V.$slots, "component", ce(E({ key: 1 }, {
|
|
2768
2775
|
store: e(n)
|
|
2769
|
-
})), void 0, !0) : (o(), $(he(e(Da)(((
|
|
2770
|
-
individualActions:
|
|
2771
|
-
layoutOptions: ((
|
|
2772
|
-
componentProps:
|
|
2776
|
+
})), void 0, !0) : (o(), $(he(e(Da)(((K = V.layout) == null ? void 0 : K.name) || e(n).$currentLayout)), E({ key: 2 }, {
|
|
2777
|
+
individualActions: B.value,
|
|
2778
|
+
layoutOptions: ((C = V.layout) == null ? void 0 : C.options) || e(n).layout.options,
|
|
2779
|
+
componentProps: V.componentProps
|
|
2773
2780
|
}, {
|
|
2774
|
-
"component-name": ((T =
|
|
2781
|
+
"component-name": ((T = V.layout) == null ? void 0 : T.name) || e(n).$currentLayout
|
|
2775
2782
|
}), de({ _: 2 }, [
|
|
2776
|
-
U(Object.keys(
|
|
2777
|
-
name:
|
|
2783
|
+
U(Object.keys(V.$slots).filter((S) => S.startsWith("row-")), (S) => ({
|
|
2784
|
+
name: S,
|
|
2778
2785
|
fn: v((ae) => [
|
|
2779
|
-
|
|
2786
|
+
I(V.$slots, S, ce(Ve(ae)), void 0, !0)
|
|
2780
2787
|
])
|
|
2781
2788
|
})),
|
|
2782
|
-
|
|
2789
|
+
V.$slots.tfoot ? {
|
|
2783
2790
|
name: "tfoot",
|
|
2784
2791
|
fn: v(() => [
|
|
2785
|
-
|
|
2792
|
+
I(V.$slots, "tfoot", {}, void 0, !0)
|
|
2786
2793
|
]),
|
|
2787
2794
|
key: "0"
|
|
2788
2795
|
} : void 0
|
|
2789
2796
|
]), 1040, ["component-name"]))
|
|
2790
2797
|
])), [
|
|
2791
|
-
[oe, (!e(_) ||
|
|
2798
|
+
[oe, (!e(_) || j.value === _t) && e(n).loading.getAll]
|
|
2792
2799
|
]),
|
|
2793
2800
|
!e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div", Za, [
|
|
2794
2801
|
z(Mn, {
|
|
2795
2802
|
pagination: e(n).pagination,
|
|
2796
|
-
onPaginate:
|
|
2803
|
+
onPaginate: N
|
|
2797
2804
|
}, null, 8, ["pagination"])
|
|
2798
2805
|
])) : y("", !0)
|
|
2799
2806
|
], 64);
|
|
@@ -2817,7 +2824,7 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2817
2824
|
style: { "--panel-min-width": "32rem" }
|
|
2818
2825
|
}, de({
|
|
2819
2826
|
footer: v(() => [
|
|
2820
|
-
|
|
2827
|
+
g("div", {
|
|
2821
2828
|
class: "prompt__actions",
|
|
2822
2829
|
style: $e(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
|
|
2823
2830
|
}, [
|
|
@@ -2830,15 +2837,15 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2830
2837
|
onClick: (p) => r.click ? r.click(r) : t(r)
|
|
2831
2838
|
}, {
|
|
2832
2839
|
default: v(() => [
|
|
2833
|
-
D(
|
|
2840
|
+
D(b(r.title || r.name), 1)
|
|
2834
2841
|
]),
|
|
2835
2842
|
_: 2
|
|
2836
2843
|
}, 1032, ["class", "onClick"]))), 128))
|
|
2837
2844
|
], 4)
|
|
2838
2845
|
]),
|
|
2839
2846
|
default: v(() => [
|
|
2840
|
-
|
|
2841
|
-
|
|
2847
|
+
g("div", Na, [
|
|
2848
|
+
I(a.$slots, "default", {}, void 0, !0)
|
|
2842
2849
|
])
|
|
2843
2850
|
]),
|
|
2844
2851
|
_: 2
|
|
@@ -2846,7 +2853,7 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2846
2853
|
a.title ? {
|
|
2847
2854
|
name: "title",
|
|
2848
2855
|
fn: v(() => [
|
|
2849
|
-
D(
|
|
2856
|
+
D(b(a.title), 1)
|
|
2850
2857
|
]),
|
|
2851
2858
|
key: "0"
|
|
2852
2859
|
} : void 0
|
|
@@ -2865,7 +2872,7 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2865
2872
|
const i = ue("meta");
|
|
2866
2873
|
return (t, a) => {
|
|
2867
2874
|
const l = ne("clickable");
|
|
2868
|
-
return
|
|
2875
|
+
return P((o(), s("div", {
|
|
2869
2876
|
class: Q({
|
|
2870
2877
|
toast: !0,
|
|
2871
2878
|
"toast--animate": e(i).toasts[0].itr === t.itr
|
|
@@ -2873,13 +2880,13 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2873
2880
|
onAnimationend: a[0] || (a[0] = (r) => e(i).$actions.popToast()),
|
|
2874
2881
|
onClick: a[1] || (a[1] = (r) => e(i).$actions.popToast(t.itr))
|
|
2875
2882
|
}, [
|
|
2876
|
-
z(
|
|
2883
|
+
z(Z, E(
|
|
2877
2884
|
t.icon ? { icon: t.icon } : { icon: "warning-circle" },
|
|
2878
2885
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
2879
2886
|
), null, 16),
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2887
|
+
g("div", tl, [
|
|
2888
|
+
I(t.$slots, "default", {}, void 0, !0),
|
|
2889
|
+
g("div", nl, b(t.formatDateTime(t.date, { hoursOnly: !0 })), 1)
|
|
2883
2890
|
])
|
|
2884
2891
|
], 34)), [
|
|
2885
2892
|
[l]
|
|
@@ -2909,7 +2916,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2909
2916
|
U(Object.keys(a.$slots), (p) => ({
|
|
2910
2917
|
name: p,
|
|
2911
2918
|
fn: v(() => [
|
|
2912
|
-
|
|
2919
|
+
I(a.$slots, p, {}, void 0, !0)
|
|
2913
2920
|
])
|
|
2914
2921
|
}))
|
|
2915
2922
|
]), 1024))
|
|
@@ -2919,7 +2926,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2919
2926
|
]),
|
|
2920
2927
|
_: 3
|
|
2921
2928
|
})),
|
|
2922
|
-
|
|
2929
|
+
I(a.$slots, "default", {}, void 0, !0),
|
|
2923
2930
|
z(Ae, E({
|
|
2924
2931
|
modelValue: e(i).modal.visible,
|
|
2925
2932
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => e(i).modal.visible = u),
|
|
@@ -2941,16 +2948,16 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2941
2948
|
}, 16, ["modelValue"]),
|
|
2942
2949
|
e(i).prompt.visible ? (o(), $(el, ce(E({ key: 0 }, e(i).prompt)), {
|
|
2943
2950
|
default: v(() => [
|
|
2944
|
-
D(
|
|
2951
|
+
D(b(e(i).prompt.body), 1)
|
|
2945
2952
|
]),
|
|
2946
2953
|
_: 1
|
|
2947
2954
|
}, 16)) : y("", !0),
|
|
2948
|
-
|
|
2955
|
+
g("div", sl, [
|
|
2949
2956
|
(o(!0), s(J, null, U(e(i).toasts, (u) => (o(), $(al, E({ ref_for: !0 }, u, {
|
|
2950
2957
|
key: `toast-${u.itr}`
|
|
2951
2958
|
}), {
|
|
2952
2959
|
default: v(() => [
|
|
2953
|
-
|
|
2960
|
+
g("div", {
|
|
2954
2961
|
innerHTML: e(F)(u.text)
|
|
2955
2962
|
}, null, 8, il)
|
|
2956
2963
|
]),
|
|
@@ -2969,7 +2976,7 @@ function dl(c, i) {
|
|
|
2969
2976
|
key: t,
|
|
2970
2977
|
class: "menu__entry"
|
|
2971
2978
|
}, [
|
|
2972
|
-
|
|
2979
|
+
I(c.$slots, t, {}, void 0, !0)
|
|
2973
2980
|
]))), 128))
|
|
2974
2981
|
]);
|
|
2975
2982
|
}
|
|
@@ -3014,7 +3021,7 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3014
3021
|
return o(), s("div", pl, [
|
|
3015
3022
|
e(l).md && !d.dropdown ? (o(), s("div", _l, [
|
|
3016
3023
|
d.$slots.default ? (o(), s("div", ml, [
|
|
3017
|
-
|
|
3024
|
+
I(d.$slots, "default", {}, void 0, !0)
|
|
3018
3025
|
])) : y("", !0),
|
|
3019
3026
|
(o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => n !== "default"), (n, f) => (o(), s("div", {
|
|
3020
3027
|
key: n,
|
|
@@ -3022,21 +3029,21 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3022
3029
|
tabs__tab: !0,
|
|
3023
3030
|
"tabs__tab--current": n === u.value || !u.value && f === 0
|
|
3024
3031
|
}),
|
|
3025
|
-
onClick: (
|
|
3032
|
+
onClick: (k) => p(n)
|
|
3026
3033
|
}, [
|
|
3027
|
-
|
|
3034
|
+
I(d.$slots, n, {}, void 0, !0)
|
|
3028
3035
|
], 10, fl))), 128))
|
|
3029
3036
|
])) : (o(), s("div", vl, [
|
|
3030
3037
|
z(Ce, null, de({
|
|
3031
3038
|
default: v(() => [
|
|
3032
|
-
|
|
3039
|
+
P((o(), $(Z, {
|
|
3033
3040
|
"icon-right": "",
|
|
3034
3041
|
icon: "caret-down",
|
|
3035
3042
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
3036
3043
|
class: "tabs__context-menu-icon"
|
|
3037
3044
|
}, {
|
|
3038
3045
|
default: v(() => [
|
|
3039
|
-
|
|
3046
|
+
I(d.$slots, u.value, {}, void 0, !0)
|
|
3040
3047
|
]),
|
|
3041
3048
|
_: 3
|
|
3042
3049
|
})), [
|
|
@@ -3048,10 +3055,10 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3048
3055
|
U(Object.keys(d.$slots).filter((n) => n !== "default"), (n) => ({
|
|
3049
3056
|
name: n,
|
|
3050
3057
|
fn: v(() => [
|
|
3051
|
-
|
|
3058
|
+
g("div", {
|
|
3052
3059
|
onClick: (f) => p(n)
|
|
3053
3060
|
}, [
|
|
3054
|
-
|
|
3061
|
+
I(d.$slots, n, {}, void 0, !0)
|
|
3055
3062
|
], 8, yl)
|
|
3056
3063
|
])
|
|
3057
3064
|
}))
|
|
@@ -3094,19 +3101,19 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3094
3101
|
U(Object.entries(l.value.description.filtersPresets), ([p, d]) => ({
|
|
3095
3102
|
name: p,
|
|
3096
3103
|
fn: v(() => [
|
|
3097
|
-
|
|
3104
|
+
g("div", {
|
|
3098
3105
|
class: "topbar__preset",
|
|
3099
3106
|
onClick: (h) => e(kt)(d, l.value)
|
|
3100
3107
|
}, [
|
|
3101
|
-
d.icon ? (o(), $(
|
|
3108
|
+
d.icon ? (o(), $(Z, {
|
|
3102
3109
|
key: 0,
|
|
3103
3110
|
icon: d.icon
|
|
3104
3111
|
}, {
|
|
3105
3112
|
default: v(() => [
|
|
3106
|
-
D(
|
|
3113
|
+
D(b(d.label || e(F)(p, { plural: !0 })), 1)
|
|
3107
3114
|
]),
|
|
3108
3115
|
_: 2
|
|
3109
|
-
}, 1032, ["icon"])) : (o(), s("div", kl,
|
|
3116
|
+
}, 1032, ["icon"])) : (o(), s("div", kl, b(d.label || e(F)(p, { plural: !0 })), 1)),
|
|
3110
3117
|
d.badgeFunction ? (o(), $(be, { key: 2 }, {
|
|
3111
3118
|
default: v(() => [
|
|
3112
3119
|
z(e(bl), {
|
|
@@ -3155,8 +3162,8 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3155
3162
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => l.$emit("update:modelValue", u))
|
|
3156
3163
|
}, {
|
|
3157
3164
|
after: v(() => [
|
|
3158
|
-
|
|
3159
|
-
|
|
3165
|
+
g("div", null, b(a.value || "Senhas conferem"), 1),
|
|
3166
|
+
I(l.$slots, "default", ce(Ve({ passwordError: a.value })))
|
|
3160
3167
|
]),
|
|
3161
3168
|
_: 3
|
|
3162
3169
|
}, 8, ["model-value"]));
|
|
@@ -3179,7 +3186,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3179
3186
|
{
|
|
3180
3187
|
path: "signin",
|
|
3181
3188
|
name: "/user/signin",
|
|
3182
|
-
component: () => import("./signin-
|
|
3189
|
+
component: () => import("./signin-aebed8c0.js"),
|
|
3183
3190
|
meta: {
|
|
3184
3191
|
title: "Autenticação"
|
|
3185
3192
|
}
|
|
@@ -3187,7 +3194,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3187
3194
|
{
|
|
3188
3195
|
path: "signup",
|
|
3189
3196
|
name: "/user/signup",
|
|
3190
|
-
component: () => import("./signup-
|
|
3197
|
+
component: () => import("./signup-91d24668.js"),
|
|
3191
3198
|
meta: {
|
|
3192
3199
|
title: "Registro"
|
|
3193
3200
|
}
|
|
@@ -3195,7 +3202,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3195
3202
|
{
|
|
3196
3203
|
path: "activation",
|
|
3197
3204
|
name: "/user/activation",
|
|
3198
|
-
component: () => import("./activation-
|
|
3205
|
+
component: () => import("./activation-855b78be.js"),
|
|
3199
3206
|
meta: {
|
|
3200
3207
|
title: "Ativação"
|
|
3201
3208
|
}
|
|
@@ -3217,7 +3224,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3217
3224
|
name: "/dashboard/crud",
|
|
3218
3225
|
props: !0,
|
|
3219
3226
|
components: {
|
|
3220
|
-
default: () => import("./crud-view-
|
|
3227
|
+
default: () => import("./crud-view-644dd64f.js"),
|
|
3221
3228
|
topbar: () => Promise.resolve().then(() => Il)
|
|
3222
3229
|
},
|
|
3223
3230
|
meta: {
|
|
@@ -3235,7 +3242,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3235
3242
|
children: [
|
|
3236
3243
|
{
|
|
3237
3244
|
path: "profile",
|
|
3238
|
-
component: () => import("./profile-
|
|
3245
|
+
component: () => import("./profile-8baa89be.js"),
|
|
3239
3246
|
meta: {
|
|
3240
3247
|
title: "Meu perfil",
|
|
3241
3248
|
icon: "user-square"
|
|
@@ -3244,7 +3251,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3244
3251
|
{
|
|
3245
3252
|
path: "changepass",
|
|
3246
3253
|
name: "/dashboard/user/changepass",
|
|
3247
|
-
component: () => import("./password-change-
|
|
3254
|
+
component: () => import("./password-change-b4db19a6.js"),
|
|
3248
3255
|
meta: {
|
|
3249
3256
|
title: "Mudar senha",
|
|
3250
3257
|
icon: "lock"
|
|
@@ -3263,7 +3270,7 @@ export {
|
|
|
3263
3270
|
ql as F,
|
|
3264
3271
|
Ml as _,
|
|
3265
3272
|
ie as a,
|
|
3266
|
-
|
|
3273
|
+
Z as b,
|
|
3267
3274
|
Qn as c,
|
|
3268
3275
|
Rl as d,
|
|
3269
3276
|
Me as e,
|