@aeria-ui/ui 0.0.150 → 0.0.151
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/{_id_-34d00aae.js → _id_-96b01051.js} +1 -1
- package/dist/{activation-6f8407cf.js → activation-54b1d9a6.js} +1 -1
- package/dist/{index-11e4a76f.js → index-84b8a1c7.js} +1 -1
- package/dist/{index-99f53a7b.js → index-bf5f293f.js} +747 -734
- package/dist/{index-ca9d143d.js → index-cb00ac25.js} +1 -1
- package/dist/{index-4fe17c52.js → index-dca59f5a.js} +1 -1
- package/dist/{redefine-password-dcd5ab19.js → redefine-password-266c2bb6.js} +1 -1
- package/dist/{signin-8b3c96f2.js → signin-46fed036.js} +1 -1
- package/dist/{signup-f7628f48.js → signup-23919639.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as F, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as
|
|
1
|
+
import { defineComponent as F, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as s, normalizeClass as W, Fragment as P, renderList as H, withDirectives as J, toDisplayString as C, createCommentVNode as h, createTextVNode as Q, unref as e, renderSlot as A, withModifiers as Re, inject as fe, computed as K, createElementVNode as I, mergeProps as z, createBlock as V, withCtx as y, resolveDynamicComponent as he, useCssVars as gt, normalizeProps as de, guardReactiveProps as Ce, Teleport as Ge, createVNode as L, onMounted as We, watch as ue, vModelDynamic as $t, onBeforeMount as ft, normalizeStyle as $e, provide as ge, createSlots as _e, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as Ot, useSlots as At, h as It } from "vue";
|
|
2
2
|
import { t as q, useI18n as Bt } from "@aeria-ui/i18n";
|
|
3
|
-
import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ye, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as vt, request as jt, useDebounce as yt, convertToSearchQuery as Rt, useParentCollectionStore as je, useCollectionStore as qt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as
|
|
4
|
-
import { arraysIntersect as bt, deepClone as Ae, getReferenceProperty as me, freshItem as
|
|
5
|
-
import { useStore as re, getStoreId as Me, useParentStore as Ee, STORE_ID as
|
|
3
|
+
import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ye, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as vt, request as jt, useDebounce as yt, convertToSearchQuery as Rt, useParentCollectionStore as je, useCollectionStore as qt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as zt } from "@aeria-ui/core";
|
|
4
|
+
import { arraysIntersect as bt, deepClone as Ae, getReferenceProperty as me, freshItem as Ft, isRequired as ct, evaluateCondition as Qe, deepMerge as qe } from "@aeriajs/common";
|
|
5
|
+
import { useStore as re, getStoreId as Me, useParentStore as Ee, STORE_ID as ze, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
|
|
6
6
|
import { useRouter as Be } from "vue-router";
|
|
7
7
|
import { convertConditionToQuery as Ut, isDocumentComplete as Et, getObjectKey as Ht } from "@aeria-ui/utils";
|
|
8
8
|
const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
@@ -19,28 +19,28 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
19
19
|
const r = ee(null), o = (n) => typeof n == "string" ? n : n.title;
|
|
20
20
|
return (n, a) => {
|
|
21
21
|
const c = ne("clickable");
|
|
22
|
-
return t(),
|
|
22
|
+
return t(), s("div", {
|
|
23
23
|
class: W({
|
|
24
24
|
accordion: !0,
|
|
25
25
|
"accordion--padded": !n.noPadding
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
|
-
(t(!0),
|
|
28
|
+
(t(!0), s(P, null, H(Object.keys(n.$slots).filter((u) => u !== "default"), (u, m) => (t(), s("div", {
|
|
29
29
|
key: u,
|
|
30
30
|
class: "accordion__slot"
|
|
31
31
|
}, [
|
|
32
|
-
J((t(),
|
|
32
|
+
J((t(), s("div", {
|
|
33
33
|
class: "accordion__header",
|
|
34
34
|
onClick: (d) => r.value === u ? r.value = null : r.value = u
|
|
35
35
|
}, [
|
|
36
|
-
n.enumerate ? (t(),
|
|
36
|
+
n.enumerate ? (t(), s("span", Qt, C(m + 1) + ". ", 1)) : h("", !0),
|
|
37
37
|
Q(" " + C(n.headers[u] ? o(n.headers[u]) : e(q)(u)), 1)
|
|
38
38
|
], 8, Dt)), [
|
|
39
39
|
[c]
|
|
40
40
|
]),
|
|
41
|
-
r.value === u ? (t(),
|
|
41
|
+
r.value === u ? (t(), s("div", Gt, [
|
|
42
42
|
A(n.$slots, u, {}, void 0, !0)
|
|
43
|
-
])) :
|
|
43
|
+
])) : h("", !0)
|
|
44
44
|
]))), 128))
|
|
45
45
|
], 2);
|
|
46
46
|
};
|
|
@@ -58,7 +58,7 @@ const D = (p, r) => {
|
|
|
58
58
|
alt: { type: Boolean }
|
|
59
59
|
},
|
|
60
60
|
setup(p) {
|
|
61
|
-
return (r, o) => (t(),
|
|
61
|
+
return (r, o) => (t(), s("div", {
|
|
62
62
|
class: W([
|
|
63
63
|
"badge",
|
|
64
64
|
{ "badge--large": r.large },
|
|
@@ -79,7 +79,7 @@ const Ve = /* @__PURE__ */ D(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @_
|
|
|
79
79
|
const o = p, n = r, a = (c) => {
|
|
80
80
|
o.disabled || n("click", c);
|
|
81
81
|
};
|
|
82
|
-
return (c, u) => (t(),
|
|
82
|
+
return (c, u) => (t(), s("button", {
|
|
83
83
|
class: W([
|
|
84
84
|
"barebutton",
|
|
85
85
|
`barebutton--${c.disabled ? "disabled" : "enabled"}`
|
|
@@ -108,7 +108,7 @@ const ye = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
108
108
|
var c;
|
|
109
109
|
return (c = r.icon) != null && c.includes(":") ? r.icon : `regular:${r.icon}`;
|
|
110
110
|
});
|
|
111
|
-
return (c, u) => (t(),
|
|
111
|
+
return (c, u) => (t(), s("a", {
|
|
112
112
|
class: W([
|
|
113
113
|
"icon",
|
|
114
114
|
{ "icon--reactive": e(n) },
|
|
@@ -122,7 +122,7 @@ const ye = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
122
122
|
{ "icon__icon--right": c.iconRight }
|
|
123
123
|
])
|
|
124
124
|
}, [
|
|
125
|
-
(t(),
|
|
125
|
+
(t(), s("svg", z({
|
|
126
126
|
width: "24",
|
|
127
127
|
height: "24",
|
|
128
128
|
viewBox: "0 0 256 256",
|
|
@@ -135,9 +135,9 @@ const ye = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
135
135
|
}, null, 8, Xt)
|
|
136
136
|
], 16))
|
|
137
137
|
], 2),
|
|
138
|
-
c.$slots.default ? (t(),
|
|
138
|
+
c.$slots.default ? (t(), s("div", Jt, [
|
|
139
139
|
A(c.$slots, "default", {}, void 0, !0)
|
|
140
|
-
])) :
|
|
140
|
+
])) : h("", !0)
|
|
141
141
|
], 2));
|
|
142
142
|
}
|
|
143
143
|
});
|
|
@@ -185,7 +185,7 @@ const Y = /* @__PURE__ */ D(Zt, [["__scopeId", "data-v-263a2782"]]), Pt = { clas
|
|
|
185
185
|
])
|
|
186
186
|
]),
|
|
187
187
|
_: 3
|
|
188
|
-
}, 8, ["icon"])) : (t(),
|
|
188
|
+
}, 8, ["icon"])) : (t(), s("div", Nt, [
|
|
189
189
|
A(a.$slots, "default", {}, void 0, !0)
|
|
190
190
|
]))
|
|
191
191
|
]),
|
|
@@ -200,7 +200,7 @@ const pe = /* @__PURE__ */ D(xt, [["__scopeId", "data-v-e9f582db"]]), en = { cla
|
|
|
200
200
|
horizontal: { type: Boolean }
|
|
201
201
|
},
|
|
202
202
|
setup(p) {
|
|
203
|
-
return (r, o) => (t(),
|
|
203
|
+
return (r, o) => (t(), s("div", {
|
|
204
204
|
class: W([
|
|
205
205
|
"card",
|
|
206
206
|
{ "card--inactive": r.inactive },
|
|
@@ -216,7 +216,7 @@ const pe = /* @__PURE__ */ D(xt, [["__scopeId", "data-v-e9f582db"]]), en = { cla
|
|
|
216
216
|
A(r.$slots, "footer", {}, void 0, !0)
|
|
217
217
|
]),
|
|
218
218
|
I("div", on, [
|
|
219
|
-
r.$slots.actions ? A(r.$slots, "actions", { key: 0 }, void 0, !0) :
|
|
219
|
+
r.$slots.actions ? A(r.$slots, "actions", { key: 0 }, void 0, !0) : h("", !0)
|
|
220
220
|
])
|
|
221
221
|
]),
|
|
222
222
|
I("div", an, [
|
|
@@ -252,111 +252,111 @@ const sn = /* @__PURE__ */ D(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
|
|
|
252
252
|
},
|
|
253
253
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
254
254
|
setup(p, { emit: r }) {
|
|
255
|
-
const o = p, n = r, a = ee(o.collapsed), c = ee(null), { reachedEnd: u } = Ye(c),
|
|
255
|
+
const o = p, n = r, a = ee(o.collapsed), c = ee(null), { reachedEnd: u } = Ye(c), m = () => {
|
|
256
256
|
n("update:modelValue", !1), n("close");
|
|
257
257
|
}, d = () => {
|
|
258
258
|
n("overlayClick");
|
|
259
|
-
},
|
|
260
|
-
n("update:collapsed",
|
|
259
|
+
}, b = (l) => {
|
|
260
|
+
n("update:collapsed", l), a.value = l;
|
|
261
261
|
};
|
|
262
|
-
return (
|
|
262
|
+
return (l, v) => {
|
|
263
263
|
const $ = ne("clickable"), f = ne("loading"), B = ne("overlay");
|
|
264
|
-
return
|
|
264
|
+
return l.modelValue ? J((t(), s("div", {
|
|
265
265
|
key: 0,
|
|
266
266
|
class: W([
|
|
267
267
|
"panel",
|
|
268
|
-
{ "panel--fixed":
|
|
268
|
+
{ "panel--fixed": l.fixedRight }
|
|
269
269
|
])
|
|
270
270
|
}, [
|
|
271
271
|
(t(), V(he(
|
|
272
|
-
|
|
272
|
+
l.float || l.fixedRight ? "dialog" : "div"
|
|
273
273
|
), {
|
|
274
274
|
"data-component": "panel",
|
|
275
275
|
class: W([
|
|
276
276
|
"aeria-surface",
|
|
277
277
|
"panel__content",
|
|
278
|
-
{ "panel__content--float":
|
|
279
|
-
{ "panel__content--bordered":
|
|
280
|
-
{ "panel__content--fixed-right":
|
|
281
|
-
{ "panel__content--transparent":
|
|
282
|
-
{ "panel__content--transparent-mobile":
|
|
283
|
-
{ "panel__content--outer-header":
|
|
278
|
+
{ "panel__content--float": l.float },
|
|
279
|
+
{ "panel__content--bordered": l.bordered },
|
|
280
|
+
{ "panel__content--fixed-right": l.fixedRight },
|
|
281
|
+
{ "panel__content--transparent": l.transparent },
|
|
282
|
+
{ "panel__content--transparent-mobile": l.transparentMobile },
|
|
283
|
+
{ "panel__content--outer-header": l.outerHeader }
|
|
284
284
|
]),
|
|
285
|
-
onClick: v[2] || (v[2] = (
|
|
285
|
+
onClick: v[2] || (v[2] = (i) => i.stopPropagation())
|
|
286
286
|
}, {
|
|
287
287
|
default: y(() => [
|
|
288
|
-
|
|
288
|
+
l.$slots.header || l.title ? (t(), s("div", {
|
|
289
289
|
key: 0,
|
|
290
290
|
class: W([
|
|
291
291
|
"panel__header",
|
|
292
292
|
{ "panel__header--collapsed": a.value },
|
|
293
|
-
{ "panel__header--outer":
|
|
293
|
+
{ "panel__header--outer": l.outerHeader }
|
|
294
294
|
])
|
|
295
295
|
}, [
|
|
296
296
|
I("div", rn, [
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
A(
|
|
300
|
-
])) :
|
|
297
|
+
l.$slots.header ? A(l.$slots, "header", { key: 0 }, void 0, !0) : l.title ? (t(), s("div", un, C(l.title), 1)) : h("", !0),
|
|
298
|
+
l.$slots.extra ? (t(), s("div", cn, [
|
|
299
|
+
A(l.$slots, "extra", {}, void 0, !0)
|
|
300
|
+
])) : h("", !0)
|
|
301
301
|
]),
|
|
302
|
-
|
|
302
|
+
l.collapsible && a.value ? J((t(), V(Y, {
|
|
303
303
|
key: 0,
|
|
304
304
|
reactive: "",
|
|
305
305
|
icon: "plus",
|
|
306
|
-
onClick: v[0] || (v[0] = (
|
|
306
|
+
onClick: v[0] || (v[0] = (i) => b(!a.value))
|
|
307
307
|
}, null, 512)), [
|
|
308
308
|
[$]
|
|
309
|
-
]) :
|
|
309
|
+
]) : l.collapsible && !a.value ? J((t(), V(Y, {
|
|
310
310
|
key: 1,
|
|
311
311
|
reactive: "",
|
|
312
312
|
icon: "minus",
|
|
313
|
-
onClick: v[1] || (v[1] = (
|
|
313
|
+
onClick: v[1] || (v[1] = (i) => b(!a.value))
|
|
314
314
|
}, null, 512)), [
|
|
315
315
|
[$]
|
|
316
|
-
]) :
|
|
316
|
+
]) : l.closeHint ? J((t(), V(Y, {
|
|
317
317
|
key: 2,
|
|
318
318
|
reactive: "",
|
|
319
319
|
icon: "x",
|
|
320
|
-
onClick:
|
|
320
|
+
onClick: m
|
|
321
321
|
}, null, 512)), [
|
|
322
322
|
[$]
|
|
323
|
-
]) :
|
|
324
|
-
], 2)) :
|
|
325
|
-
a.value ?
|
|
323
|
+
]) : h("", !0)
|
|
324
|
+
], 2)) : h("", !0),
|
|
325
|
+
a.value ? h("", !0) : J((t(), s("div", {
|
|
326
326
|
key: 1,
|
|
327
327
|
ref_key: "body",
|
|
328
328
|
ref: c,
|
|
329
329
|
tabindex: "0",
|
|
330
330
|
class: W([
|
|
331
331
|
"panel__body",
|
|
332
|
-
{ "panel__body--padded": !
|
|
332
|
+
{ "panel__body--padded": !l.fill }
|
|
333
333
|
])
|
|
334
334
|
}, [
|
|
335
|
-
A(
|
|
335
|
+
A(l.$slots, "default", {}, void 0, !0)
|
|
336
336
|
], 2)), [
|
|
337
|
-
[f,
|
|
337
|
+
[f, l.loading]
|
|
338
338
|
]),
|
|
339
|
-
|
|
339
|
+
l.$slots.footer ? (t(), s("div", {
|
|
340
340
|
key: 2,
|
|
341
341
|
class: W([
|
|
342
342
|
"panel__footer",
|
|
343
|
-
{ "panel__footer--padded": !
|
|
343
|
+
{ "panel__footer--padded": !l.fillFooter },
|
|
344
344
|
{ "panel__footer--shadowed": !e(u) }
|
|
345
345
|
])
|
|
346
346
|
}, [
|
|
347
|
-
A(
|
|
348
|
-
], 2)) :
|
|
347
|
+
A(l.$slots, "footer", {}, void 0, !0)
|
|
348
|
+
], 2)) : h("", !0)
|
|
349
349
|
]),
|
|
350
350
|
_: 3
|
|
351
351
|
}, 8, ["class"]))
|
|
352
352
|
], 2)), [
|
|
353
353
|
[B, {
|
|
354
|
-
condition:
|
|
355
|
-
invisible:
|
|
354
|
+
condition: l.overlay || l.fixedRight || l.float,
|
|
355
|
+
invisible: l.invisibleOverlay,
|
|
356
356
|
click: d,
|
|
357
|
-
layer:
|
|
357
|
+
layer: l.overlayLayer || (l.float ? 60 : l.fixedRight ? 50 : 0)
|
|
358
358
|
}]
|
|
359
|
-
]) :
|
|
359
|
+
]) : h("", !0);
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
362
|
});
|
|
@@ -373,38 +373,38 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
|
|
|
373
373
|
emits: ["actionClick"],
|
|
374
374
|
setup(p, { emit: r }) {
|
|
375
375
|
gt((d) => ({
|
|
376
|
-
"4393a358":
|
|
377
|
-
"4393a359":
|
|
376
|
+
"4393a358": m.value.x,
|
|
377
|
+
"4393a359": m.value.y
|
|
378
378
|
}));
|
|
379
|
-
const o = r, n = ee(null), a = ee(!1), c = (d) => d == null ? void 0 : d.filter((
|
|
380
|
-
if (
|
|
381
|
-
const
|
|
382
|
-
return bt(
|
|
379
|
+
const o = r, n = ee(null), a = ee(!1), c = (d) => d == null ? void 0 : d.filter((b) => {
|
|
380
|
+
if (b.roles) {
|
|
381
|
+
const l = re("user");
|
|
382
|
+
return bt(b.roles, l.currentUser.roles);
|
|
383
383
|
}
|
|
384
384
|
return !0;
|
|
385
|
-
}), u = (d,
|
|
386
|
-
const
|
|
387
|
-
d.click && d.click(
|
|
385
|
+
}), u = (d, b) => {
|
|
386
|
+
const l = b && Ae(b);
|
|
387
|
+
d.click && d.click(l), o("actionClick", {
|
|
388
388
|
action: d,
|
|
389
|
-
subject:
|
|
389
|
+
subject: l
|
|
390
390
|
}), a.value = !1;
|
|
391
|
-
},
|
|
391
|
+
}, m = K(() => {
|
|
392
392
|
if (!n.value)
|
|
393
393
|
return {
|
|
394
394
|
x: 0,
|
|
395
395
|
y: 0
|
|
396
396
|
};
|
|
397
|
-
const d = n.value.getBoundingClientRect().top,
|
|
397
|
+
const d = n.value.getBoundingClientRect().top, b = n.value.getBoundingClientRect().left, l = n.value.offsetHeight;
|
|
398
398
|
return {
|
|
399
399
|
_: a.value,
|
|
400
|
-
x: Math.floor(
|
|
401
|
-
y: Math.floor(d +
|
|
400
|
+
x: Math.floor(b) + "px",
|
|
401
|
+
y: Math.floor(d + l) + "px"
|
|
402
402
|
};
|
|
403
403
|
});
|
|
404
|
-
return (d,
|
|
405
|
-
const
|
|
406
|
-
return t(),
|
|
407
|
-
Object.keys(d.$slots).some((v) => v !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(),
|
|
404
|
+
return (d, b) => {
|
|
405
|
+
const l = ne("overlay");
|
|
406
|
+
return t(), s(P, null, [
|
|
407
|
+
Object.keys(d.$slots).some((v) => v !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
|
|
408
408
|
key: 0,
|
|
409
409
|
ref_key: "contextmenu",
|
|
410
410
|
ref: n,
|
|
@@ -412,20 +412,20 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
|
|
|
412
412
|
}, [
|
|
413
413
|
I("a", {
|
|
414
414
|
class: "contextmenu__trigger",
|
|
415
|
-
onClick:
|
|
415
|
+
onClick: b[0] || (b[0] = (v) => a.value = !0)
|
|
416
416
|
}, [
|
|
417
417
|
A(d.$slots, "default", de(Ce({
|
|
418
418
|
visible: a.value
|
|
419
419
|
})), void 0, !0)
|
|
420
420
|
])
|
|
421
|
-
], 512)) :
|
|
421
|
+
], 512)) : h("", !0),
|
|
422
422
|
a.value ? (t(), V(Ge, {
|
|
423
423
|
key: 1,
|
|
424
424
|
to: "main"
|
|
425
425
|
}, [
|
|
426
426
|
J((t(), V(Se, {
|
|
427
427
|
modelValue: a.value,
|
|
428
|
-
"onUpdate:modelValue":
|
|
428
|
+
"onUpdate:modelValue": b[4] || (b[4] = (v) => a.value = v),
|
|
429
429
|
fill: "",
|
|
430
430
|
bordered: "",
|
|
431
431
|
class: "content",
|
|
@@ -433,15 +433,15 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
|
|
|
433
433
|
}, {
|
|
434
434
|
default: y(() => [
|
|
435
435
|
I("div", pn, [
|
|
436
|
-
d.$slots.header ? (t(),
|
|
436
|
+
d.$slots.header ? (t(), s("div", _n, [
|
|
437
437
|
A(d.$slots, "header", {}, void 0, !0)
|
|
438
|
-
])) :
|
|
439
|
-
Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)).length > 0 ? (t(),
|
|
438
|
+
])) : h("", !0),
|
|
439
|
+
Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)).length > 0 ? (t(), s("div", {
|
|
440
440
|
key: 1,
|
|
441
441
|
class: "content__section",
|
|
442
|
-
onClick:
|
|
442
|
+
onClick: b[1] || (b[1] = (v) => a.value = !1)
|
|
443
443
|
}, [
|
|
444
|
-
(t(!0),
|
|
444
|
+
(t(!0), s(P, null, H(Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)), (v, $) => (t(), V(ye, {
|
|
445
445
|
key: `slot-${$}`,
|
|
446
446
|
class: "content__item content__item--reactive"
|
|
447
447
|
}, {
|
|
@@ -450,13 +450,13 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
|
|
|
450
450
|
]),
|
|
451
451
|
_: 2
|
|
452
452
|
}, 1024))), 128))
|
|
453
|
-
])) :
|
|
454
|
-
d.actions !== void 0 && d.actions.length > 0 ? (t(),
|
|
453
|
+
])) : h("", !0),
|
|
454
|
+
d.actions !== void 0 && d.actions.length > 0 ? (t(), s("div", {
|
|
455
455
|
key: 2,
|
|
456
456
|
class: "content__section",
|
|
457
|
-
onClick:
|
|
457
|
+
onClick: b[2] || (b[2] = (v) => a.value = !1)
|
|
458
458
|
}, [
|
|
459
|
-
(t(!0),
|
|
459
|
+
(t(!0), s(P, null, H(c(d.actions), (v, $) => (t(), V(ye, {
|
|
460
460
|
key: `action-${$}`,
|
|
461
461
|
class: "content__item content__item--reactive",
|
|
462
462
|
onClick: (f) => u(v, d.subject)
|
|
@@ -473,22 +473,22 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
|
|
|
473
473
|
]),
|
|
474
474
|
_: 2
|
|
475
475
|
}, 1032, ["onClick"]))), 128))
|
|
476
|
-
])) :
|
|
477
|
-
d.$slots.extra ? (t(),
|
|
476
|
+
])) : h("", !0),
|
|
477
|
+
d.$slots.extra ? (t(), s("div", {
|
|
478
478
|
key: 3,
|
|
479
479
|
class: "content__section",
|
|
480
|
-
onClick:
|
|
480
|
+
onClick: b[3] || (b[3] = (v) => a.value = !1)
|
|
481
481
|
}, [
|
|
482
482
|
I("div", mn, [
|
|
483
|
-
d.$slots.extra ? A(d.$slots, "extra", { key: 0 }, void 0, !0) :
|
|
483
|
+
d.$slots.extra ? A(d.$slots, "extra", { key: 0 }, void 0, !0) : h("", !0)
|
|
484
484
|
])
|
|
485
|
-
])) :
|
|
485
|
+
])) : h("", !0)
|
|
486
486
|
])
|
|
487
487
|
]),
|
|
488
488
|
_: 3
|
|
489
489
|
}, 8, ["modelValue"])), [
|
|
490
490
|
[
|
|
491
|
-
|
|
491
|
+
l,
|
|
492
492
|
{
|
|
493
493
|
layer: d.overlayLayer,
|
|
494
494
|
click: () => {
|
|
@@ -499,7 +499,7 @@ const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { cla
|
|
|
499
499
|
{ invisibleOnLarge: !0 }
|
|
500
500
|
]
|
|
501
501
|
])
|
|
502
|
-
])) :
|
|
502
|
+
])) : h("", !0)
|
|
503
503
|
], 64);
|
|
504
504
|
};
|
|
505
505
|
}
|
|
@@ -511,12 +511,12 @@ const Ie = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-34fb8e38"]]), vn = { cla
|
|
|
511
511
|
},
|
|
512
512
|
setup(p) {
|
|
513
513
|
const r = Le(), o = ee(!1);
|
|
514
|
-
return (n, a) => e(r).md ? (t(),
|
|
514
|
+
return (n, a) => e(r).md ? (t(), s("div", {
|
|
515
515
|
key: 0,
|
|
516
516
|
class: "info",
|
|
517
517
|
onMouseleave: a[1] || (a[1] = (c) => o.value = !1)
|
|
518
518
|
}, [
|
|
519
|
-
o.value ? (t(),
|
|
519
|
+
o.value ? (t(), s("div", {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: W([
|
|
522
522
|
"info__bubble",
|
|
@@ -526,7 +526,7 @@ const Ie = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-34fb8e38"]]), vn = { cla
|
|
|
526
526
|
I("div", vn, [
|
|
527
527
|
A(n.$slots, "text", {}, void 0, !0)
|
|
528
528
|
])
|
|
529
|
-
], 2)) :
|
|
529
|
+
], 2)) : h("", !0),
|
|
530
530
|
I("div", {
|
|
531
531
|
onMouseover: a[0] || (a[0] = (c) => o.value = !0)
|
|
532
532
|
}, [
|
|
@@ -559,7 +559,7 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
|
|
|
559
559
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
560
560
|
setup(p, { emit: r }) {
|
|
561
561
|
var Z;
|
|
562
|
-
const o = p, n = r, a = o.property || {}, c = "icon" in a || "inputType" in a && a.inputType === "search", u = fe("searchOnly", !1),
|
|
562
|
+
const o = p, n = r, a = o.property || {}, c = "icon" in a || "inputType" in a && a.inputType === "search", u = fe("searchOnly", !1), m = fe("innerInputLabel", !1), d = !u && (o.readOnly || a.readOnly), b = (g) => (n("clipboardCopy", g), navigator.clipboard.writeText(g)), l = fe("inputVariant", o.variant) || "normal", v = Object.assign(Object.assign({}, o), {
|
|
563
563
|
name: o.propertyName,
|
|
564
564
|
readonly: d,
|
|
565
565
|
type: (() => {
|
|
@@ -580,114 +580,114 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
|
|
|
580
580
|
return "text";
|
|
581
581
|
}
|
|
582
582
|
})(),
|
|
583
|
-
placeholder:
|
|
583
|
+
placeholder: m ? a.description || o.propertyName : a.placeholder
|
|
584
584
|
});
|
|
585
585
|
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (v.min = a.minimum), a.exclusiveMinimum && (v.min = a.exclusiveMinimum + 1), a.maximum && (v.max = a.maximum), a.exclusiveMaximum && (v.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (v.type = !u && a.format === "date-time" ? "datetime-local" : "date"), v.minlength = a.minLength, v.maxlength = a.maxLength)), v.type === "text" && u && (v.type = "search"), We(() => {
|
|
586
586
|
o.modelValue !== null && M(o.modelValue);
|
|
587
587
|
});
|
|
588
|
-
const $ = (
|
|
589
|
-
if (typeof
|
|
590
|
-
return
|
|
591
|
-
if (!(
|
|
588
|
+
const $ = (g) => {
|
|
589
|
+
if (typeof g == "string")
|
|
590
|
+
return g;
|
|
591
|
+
if (!(g instanceof Date))
|
|
592
592
|
return "";
|
|
593
593
|
switch (v.type) {
|
|
594
594
|
case "date":
|
|
595
|
-
return
|
|
595
|
+
return g.toISOString().slice(0, 10);
|
|
596
596
|
case "datetime-local":
|
|
597
|
-
return
|
|
597
|
+
return g.toISOString().slice(0, 19);
|
|
598
598
|
default:
|
|
599
599
|
throw new Error();
|
|
600
600
|
}
|
|
601
601
|
}, f = ee(""), B = ((Z = o.property) == null ? void 0 : Z.type) === "string" && o.property.mask ? wt(o.property.mask) : null;
|
|
602
|
-
ue(() => o.modelValue, (
|
|
602
|
+
ue(() => o.modelValue, (g) => {
|
|
603
603
|
f.value = (() => {
|
|
604
604
|
if (B)
|
|
605
|
-
return
|
|
605
|
+
return g ? B.enmask(String(g), void 0, {
|
|
606
606
|
defaultValue: !0
|
|
607
607
|
}) : "";
|
|
608
608
|
switch (v.type) {
|
|
609
609
|
case "date":
|
|
610
610
|
case "datetime-local":
|
|
611
|
-
return $(
|
|
611
|
+
return $(g);
|
|
612
612
|
}
|
|
613
|
-
switch (
|
|
613
|
+
switch (g) {
|
|
614
614
|
case null:
|
|
615
615
|
case void 0:
|
|
616
616
|
return "";
|
|
617
617
|
default:
|
|
618
|
-
return
|
|
618
|
+
return g;
|
|
619
619
|
}
|
|
620
620
|
})();
|
|
621
621
|
}, {
|
|
622
622
|
immediate: !0
|
|
623
623
|
});
|
|
624
|
-
const
|
|
624
|
+
const i = (g) => {
|
|
625
625
|
var G;
|
|
626
626
|
return typeof f.value == "string" && ((G = o.property) == null ? void 0 : G.type) === "string" && B !== null ? (f.value = B.enmask(f.value, void 0, {
|
|
627
627
|
defaultValue: !0
|
|
628
|
-
}), o.property.maskedValue === !0 ? f.value : B.unmask(f.value)) :
|
|
629
|
-
}, M = (
|
|
628
|
+
}), o.property.maskedValue === !0 ? f.value : B.unmask(f.value)) : g;
|
|
629
|
+
}, M = (g) => {
|
|
630
630
|
const G = (() => {
|
|
631
|
-
if (!
|
|
632
|
-
return
|
|
631
|
+
if (!g || typeof g != "string")
|
|
632
|
+
return g;
|
|
633
633
|
switch (v.type) {
|
|
634
634
|
case "number":
|
|
635
635
|
case "integer":
|
|
636
|
-
return Number(
|
|
636
|
+
return Number(g);
|
|
637
637
|
case "date":
|
|
638
638
|
case "date-time":
|
|
639
|
-
return
|
|
639
|
+
return g;
|
|
640
640
|
default:
|
|
641
|
-
return
|
|
641
|
+
return i(g);
|
|
642
642
|
}
|
|
643
643
|
})();
|
|
644
644
|
n("input", G), n("update:modelValue", G);
|
|
645
|
-
}, E = (
|
|
646
|
-
const G =
|
|
645
|
+
}, E = (g) => {
|
|
646
|
+
const G = g.target.value;
|
|
647
647
|
f.value = G, M(G);
|
|
648
648
|
};
|
|
649
|
-
return (
|
|
649
|
+
return (g, G) => {
|
|
650
650
|
const oe = ne("focus"), w = ne("clickable");
|
|
651
|
-
return t(),
|
|
652
|
-
e(
|
|
653
|
-
|
|
651
|
+
return t(), s("label", hn, [
|
|
652
|
+
e(m) ? h("", !0) : (t(), s("div", gn, [
|
|
653
|
+
g.$slots.default ? A(g.$slots, "default", { key: 0 }, void 0, !0) : A(g.$slots, "description", { key: 1 }, void 0, !0)
|
|
654
654
|
])),
|
|
655
|
-
|
|
656
|
-
A(
|
|
657
|
-
])) :
|
|
658
|
-
"element" in e(a) && e(a).element === "textarea" ? (t(),
|
|
655
|
+
g.$slots.hint ? (t(), s("div", $n, [
|
|
656
|
+
A(g.$slots, "hint", {}, void 0, !0)
|
|
657
|
+
])) : h("", !0),
|
|
658
|
+
"element" in e(a) && e(a).element === "textarea" ? (t(), s("div", {
|
|
659
659
|
key: 2,
|
|
660
660
|
class: W([
|
|
661
661
|
"input__container",
|
|
662
662
|
"input__container--textarea",
|
|
663
|
-
`input__container--${e(
|
|
663
|
+
`input__container--${e(l)}`
|
|
664
664
|
])
|
|
665
665
|
}, [
|
|
666
666
|
J(I("textarea", {
|
|
667
667
|
placeholder: e(v).placeholder,
|
|
668
668
|
readonly: e(v).readonly,
|
|
669
|
-
value:
|
|
669
|
+
value: g.modelValue,
|
|
670
670
|
class: W([
|
|
671
671
|
"input__textarea",
|
|
672
|
-
`input__input--${e(
|
|
672
|
+
`input__input--${e(l)}`
|
|
673
673
|
]),
|
|
674
674
|
onInput: E
|
|
675
675
|
}, null, 42, kn), [
|
|
676
676
|
[oe, e(a).focus]
|
|
677
677
|
])
|
|
678
|
-
], 2)) : (t(),
|
|
678
|
+
], 2)) : (t(), s("div", {
|
|
679
679
|
key: 3,
|
|
680
680
|
class: W([
|
|
681
681
|
"input__container",
|
|
682
|
-
`input__container--${e(
|
|
682
|
+
`input__container--${e(l)}`
|
|
683
683
|
])
|
|
684
684
|
}, [
|
|
685
|
-
J(I("input",
|
|
685
|
+
J(I("input", z(e(v), {
|
|
686
686
|
value: f.value,
|
|
687
687
|
"data-component": "input",
|
|
688
688
|
class: [
|
|
689
689
|
"input__input",
|
|
690
|
-
`input__input--${e(
|
|
690
|
+
`input__input--${e(l)}`,
|
|
691
691
|
{ "input__input--icon": e(c) },
|
|
692
692
|
{ "input__input--readOnly": e(d) }
|
|
693
693
|
],
|
|
@@ -701,10 +701,10 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
|
|
|
701
701
|
icon: e(a).icon || "magnifying-glass",
|
|
702
702
|
class: W([
|
|
703
703
|
"input__icon",
|
|
704
|
-
`input__icon--${e(
|
|
704
|
+
`input__icon--${e(l)}`
|
|
705
705
|
])
|
|
706
|
-
}, null, 8, ["icon", "class"])) :
|
|
707
|
-
e(d) ? (t(),
|
|
706
|
+
}, null, 8, ["icon", "class"])) : h("", !0),
|
|
707
|
+
e(d) ? (t(), s("div", Cn, [
|
|
708
708
|
L(bn, null, {
|
|
709
709
|
text: y(() => G[2] || (G[2] = [
|
|
710
710
|
Q("Copiar")
|
|
@@ -713,14 +713,14 @@ const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { cla
|
|
|
713
713
|
J(L(Y, {
|
|
714
714
|
reactive: "",
|
|
715
715
|
icon: "clipboard",
|
|
716
|
-
onClick: G[1] || (G[1] = Re((te) =>
|
|
716
|
+
onClick: G[1] || (G[1] = Re((te) => b(String(g.modelValue || "")), ["prevent"]))
|
|
717
717
|
}, null, 512), [
|
|
718
718
|
[w]
|
|
719
719
|
])
|
|
720
720
|
]),
|
|
721
721
|
_: 1
|
|
722
722
|
})
|
|
723
|
-
])) :
|
|
723
|
+
])) : h("", !0)
|
|
724
724
|
], 2))
|
|
725
725
|
]);
|
|
726
726
|
};
|
|
@@ -745,48 +745,48 @@ const Oe = /* @__PURE__ */ D(On, [["__scopeId", "data-v-b4ebd684"]]), An = {
|
|
|
745
745
|
},
|
|
746
746
|
emits: ["update:modelValue", "change"],
|
|
747
747
|
setup(p, { emit: r }) {
|
|
748
|
-
const o = p, n = r, a = ee(null), c = o.property, u = (
|
|
749
|
-
n("update:modelValue",
|
|
750
|
-
},
|
|
751
|
-
|
|
752
|
-
}, d = (
|
|
753
|
-
return o.multiple && ue(() => o.modelValue, (
|
|
748
|
+
const o = p, n = r, a = ee(null), c = o.property, u = (l) => {
|
|
749
|
+
n("update:modelValue", l), n("change", l);
|
|
750
|
+
}, m = (l) => {
|
|
751
|
+
l === "" || l === null ? u(null) : o.booleanRef ? u(l === "true") : u(l);
|
|
752
|
+
}, d = (l) => Array.isArray(o.modelValue) ? o.modelValue.includes(l) : o.modelValue === l, b = K(() => o.multiple ? typeof o.multiple == "number" ? o.multiple : 5 : 1);
|
|
753
|
+
return o.multiple && ue(() => o.modelValue, (l) => {
|
|
754
754
|
var $;
|
|
755
755
|
if (!a.value)
|
|
756
756
|
return;
|
|
757
757
|
const v = a.value.querySelector('option[data-selected="true"]');
|
|
758
|
-
v && v.removeAttribute("data-selected"), ($ = a.value.querySelector(`option[value="${
|
|
759
|
-
}), (
|
|
758
|
+
v && v.removeAttribute("data-selected"), ($ = a.value.querySelector(`option[value="${l}"]`)) == null || $.setAttribute("data-selected", "true");
|
|
759
|
+
}), (l, v) => l.readOnly ? (t(), V(Oe, {
|
|
760
760
|
key: 1,
|
|
761
761
|
"read-only": "",
|
|
762
|
-
"model-value":
|
|
763
|
-
}, null, 8, ["model-value"])) : (t(),
|
|
764
|
-
size:
|
|
765
|
-
value:
|
|
762
|
+
"model-value": l.modelValue
|
|
763
|
+
}, null, 8, ["model-value"])) : (t(), s("select", z({ key: 0 }, {
|
|
764
|
+
size: b.value,
|
|
765
|
+
value: l.modelValue
|
|
766
766
|
}, {
|
|
767
767
|
ref_key: "select",
|
|
768
768
|
ref: a,
|
|
769
769
|
class: {
|
|
770
770
|
select: !0,
|
|
771
|
-
"select--multiple": !!
|
|
772
|
-
"select--outline": !
|
|
771
|
+
"select--multiple": !!b.value,
|
|
772
|
+
"select--outline": !l.noOutline
|
|
773
773
|
},
|
|
774
|
-
onChange: v[0] || (v[0] = ($) =>
|
|
774
|
+
onChange: v[0] || (v[0] = ($) => m($.target.value))
|
|
775
775
|
}), [
|
|
776
776
|
e(c) && e(c).icon ? (t(), V(Y, {
|
|
777
777
|
key: 0,
|
|
778
778
|
icon: e(c).icon
|
|
779
|
-
}, null, 8, ["icon"])) :
|
|
780
|
-
!o.multiple && !
|
|
781
|
-
(t(!0),
|
|
779
|
+
}, null, 8, ["icon"])) : h("", !0),
|
|
780
|
+
!o.multiple && !l.required ? (t(), s("option", An, C(e(q)("none")), 1)) : h("", !0),
|
|
781
|
+
(t(!0), s(P, null, H(e(c) && "enum" in e(c) ? e(c).enum : [], ($) => {
|
|
782
782
|
var f;
|
|
783
|
-
return t(),
|
|
783
|
+
return t(), s("option", {
|
|
784
784
|
key: String($),
|
|
785
785
|
value: $,
|
|
786
786
|
"data-selected": d($)
|
|
787
787
|
}, C((f = e(c)) != null && f.translate ? e(q)($) : $), 9, In);
|
|
788
788
|
}), 128)),
|
|
789
|
-
A(
|
|
789
|
+
A(l.$slots, "default", {}, void 0, !0)
|
|
790
790
|
], 16));
|
|
791
791
|
}
|
|
792
792
|
});
|
|
@@ -803,30 +803,30 @@ const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
803
803
|
setup(p, { emit: r }) {
|
|
804
804
|
const o = p, n = r, a = K({
|
|
805
805
|
get: () => Math.floor(o.pagination.offset / o.pagination.limit),
|
|
806
|
-
set: (
|
|
807
|
-
o.pagination.offset =
|
|
806
|
+
set: (b) => {
|
|
807
|
+
o.pagination.offset = b * o.pagination.limit;
|
|
808
808
|
}
|
|
809
809
|
}), c = K({
|
|
810
810
|
get: () => o.pagination.limit,
|
|
811
|
-
set: (
|
|
812
|
-
o.pagination.limit = Number(
|
|
811
|
+
set: (b) => {
|
|
812
|
+
o.pagination.limit = Number(b);
|
|
813
813
|
}
|
|
814
|
-
}), u = ee(a.value ? a.value + 1 : 1),
|
|
815
|
-
a.value =
|
|
814
|
+
}), u = ee(a.value ? a.value + 1 : 1), m = K(() => Math.ceil(o.pagination.recordsTotal / o.pagination.limit)), d = (b) => {
|
|
815
|
+
a.value = b === "previous" ? a.value - 1 : a.value + 1;
|
|
816
816
|
};
|
|
817
817
|
return ue([
|
|
818
818
|
a,
|
|
819
819
|
c
|
|
820
|
-
], ([
|
|
821
|
-
u.value =
|
|
820
|
+
], ([b]) => {
|
|
821
|
+
u.value = b + 1, n("paginate", {
|
|
822
822
|
offset: a.value * c.value,
|
|
823
823
|
limit: c.value
|
|
824
824
|
});
|
|
825
|
-
}), (
|
|
825
|
+
}), (b, l) => (t(), s("div", Sn, [
|
|
826
826
|
I("div", wn, [
|
|
827
827
|
L(ye, {
|
|
828
828
|
disabled: a.value === 0,
|
|
829
|
-
onClick:
|
|
829
|
+
onClick: l[0] || (l[0] = (v) => a.value = 0)
|
|
830
830
|
}, {
|
|
831
831
|
default: y(() => [
|
|
832
832
|
L(Y, { icon: "caret-double-left" })
|
|
@@ -835,7 +835,7 @@ const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
835
835
|
}, 8, ["disabled"]),
|
|
836
836
|
L(ye, {
|
|
837
837
|
disabled: a.value === 0,
|
|
838
|
-
onClick:
|
|
838
|
+
onClick: l[1] || (l[1] = (v) => d("previous"))
|
|
839
839
|
}, {
|
|
840
840
|
default: y(() => [
|
|
841
841
|
L(Y, { icon: "caret-left" })
|
|
@@ -843,8 +843,8 @@ const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
843
843
|
_: 1
|
|
844
844
|
}, 8, ["disabled"]),
|
|
845
845
|
L(ye, {
|
|
846
|
-
disabled: a.value ===
|
|
847
|
-
onClick:
|
|
846
|
+
disabled: a.value === m.value - 1,
|
|
847
|
+
onClick: l[2] || (l[2] = (v) => d("next"))
|
|
848
848
|
}, {
|
|
849
849
|
default: y(() => [
|
|
850
850
|
L(Y, { icon: "caret-right" })
|
|
@@ -852,8 +852,8 @@ const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
852
852
|
_: 1
|
|
853
853
|
}, 8, ["disabled"]),
|
|
854
854
|
L(ye, {
|
|
855
|
-
disabled: a.value ===
|
|
856
|
-
onClick:
|
|
855
|
+
disabled: a.value === m.value - 1,
|
|
856
|
+
onClick: l[3] || (l[3] = (v) => a.value = m.value - 1)
|
|
857
857
|
}, {
|
|
858
858
|
default: y(() => [
|
|
859
859
|
L(Y, { icon: "caret-double-right" })
|
|
@@ -862,7 +862,7 @@ const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
862
862
|
}, 8, ["disabled"]),
|
|
863
863
|
L(Xe, {
|
|
864
864
|
modelValue: c.value,
|
|
865
|
-
"onUpdate:modelValue":
|
|
865
|
+
"onUpdate:modelValue": l[4] || (l[4] = (v) => c.value = v),
|
|
866
866
|
property: {
|
|
867
867
|
enum: [],
|
|
868
868
|
icon: "list"
|
|
@@ -870,7 +870,7 @@ const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
870
870
|
class: "pagination__control"
|
|
871
871
|
}, {
|
|
872
872
|
default: y(() => [
|
|
873
|
-
(t(!0),
|
|
873
|
+
(t(!0), s(P, null, H(e(Tt), (v) => (t(), s("option", {
|
|
874
874
|
key: `limit-${v}`,
|
|
875
875
|
value: v
|
|
876
876
|
}, C(v), 9, Tn))), 128))
|
|
@@ -878,27 +878,27 @@ const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
878
878
|
_: 1
|
|
879
879
|
}, 8, ["modelValue"])
|
|
880
880
|
]),
|
|
881
|
-
|
|
881
|
+
b.noSummary ? h("", !0) : (t(), s("div", jn, [
|
|
882
882
|
Q(C(e(q)("Page")) + " ", 1),
|
|
883
883
|
(t(), V(Oe, {
|
|
884
884
|
key: a.value,
|
|
885
885
|
modelValue: u.value,
|
|
886
|
-
"onUpdate:modelValue":
|
|
886
|
+
"onUpdate:modelValue": l[5] || (l[5] = (v) => u.value = v),
|
|
887
887
|
property: {
|
|
888
888
|
type: "number",
|
|
889
889
|
minimum: 1
|
|
890
890
|
},
|
|
891
891
|
style: { height: "100%" },
|
|
892
|
-
onChange:
|
|
892
|
+
onChange: l[6] || (l[6] = (v) => {
|
|
893
893
|
a.value = u.value === 0 ? 0 : u.value - 1;
|
|
894
894
|
})
|
|
895
895
|
}, null, 8, ["modelValue"])),
|
|
896
|
-
I("span", null, C(e(q)("of")) + " " + C(
|
|
896
|
+
I("span", null, C(e(q)("of")) + " " + C(m.value), 1)
|
|
897
897
|
]))
|
|
898
898
|
]));
|
|
899
899
|
}
|
|
900
900
|
});
|
|
901
|
-
const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { class: "checkbox__text" }, Mn = ["innerHTML"],
|
|
901
|
+
const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { class: "checkbox__text" }, Mn = ["innerHTML"], zn = { class: "checkbox__hint" }, Fn = ["innerHTML"], Un = {
|
|
902
902
|
inheritAttrs: !1
|
|
903
903
|
}, En = /* @__PURE__ */ F({
|
|
904
904
|
...Un,
|
|
@@ -924,19 +924,19 @@ const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
924
924
|
return "checkbox";
|
|
925
925
|
}
|
|
926
926
|
return "radio";
|
|
927
|
-
})(), u = r,
|
|
927
|
+
})(), u = r, m = o.value || !1, d = K({
|
|
928
928
|
get: () => {
|
|
929
|
-
var
|
|
929
|
+
var l;
|
|
930
930
|
if (n) {
|
|
931
931
|
if ("type" in n && n.type === "boolean")
|
|
932
932
|
return !!o.value;
|
|
933
933
|
if ("items" in n)
|
|
934
|
-
return (
|
|
934
|
+
return (l = o.modelValue) == null ? void 0 : l.includes(o.value);
|
|
935
935
|
}
|
|
936
936
|
return o.modelValue === o.value;
|
|
937
937
|
},
|
|
938
938
|
set: () => {
|
|
939
|
-
var
|
|
939
|
+
var l;
|
|
940
940
|
if (!a) {
|
|
941
941
|
if (n) {
|
|
942
942
|
if ("type" in n && n.type === "boolean") {
|
|
@@ -944,53 +944,53 @@ const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
946
946
|
if ("items" in n) {
|
|
947
|
-
if ((
|
|
948
|
-
u("update:modelValue", o.modelValue.filter((v) => v !==
|
|
947
|
+
if ((l = o.modelValue) != null && l.includes(m)) {
|
|
948
|
+
u("update:modelValue", o.modelValue.filter((v) => v !== m));
|
|
949
949
|
return;
|
|
950
950
|
}
|
|
951
|
-
u("update:modelValue", [
|
|
951
|
+
u("update:modelValue", [m].concat(o.modelValue || []));
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
955
|
u("update:modelValue", o.value);
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
}),
|
|
959
|
-
a &&
|
|
958
|
+
}), b = (l) => {
|
|
959
|
+
a && l.preventDefault();
|
|
960
960
|
};
|
|
961
|
-
return (
|
|
961
|
+
return (l, v) => {
|
|
962
962
|
var f, B;
|
|
963
963
|
const $ = ne("clickable");
|
|
964
|
-
return J((t(),
|
|
964
|
+
return J((t(), s("label", {
|
|
965
965
|
class: W([
|
|
966
966
|
"checkbox",
|
|
967
967
|
{ "checkbox--readOnly": e(a) }
|
|
968
968
|
])
|
|
969
969
|
}, [
|
|
970
|
-
J(I("input",
|
|
971
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
970
|
+
J(I("input", z({
|
|
971
|
+
"onUpdate:modelValue": v[0] || (v[0] = (i) => d.value = i)
|
|
972
972
|
}, {
|
|
973
973
|
type: e(c),
|
|
974
974
|
readOnly: e(a),
|
|
975
975
|
checked: d.value
|
|
976
976
|
}, {
|
|
977
977
|
class: "checkbox__input",
|
|
978
|
-
onClick:
|
|
978
|
+
onClick: b
|
|
979
979
|
}), null, 16), [
|
|
980
980
|
[$t, d.value]
|
|
981
981
|
]),
|
|
982
982
|
I("div", Ln, [
|
|
983
983
|
I("div", null, [
|
|
984
|
-
|
|
984
|
+
l.$slots.description ? A(l.$slots, "description", { key: 0 }, void 0, !0) : e(m) ? (t(), s("div", {
|
|
985
985
|
key: 1,
|
|
986
|
-
innerHTML: (f = e(n)) != null && f.translate ? e(q)(e(
|
|
987
|
-
}, null, 8, Mn)) : A(
|
|
986
|
+
innerHTML: (f = e(n)) != null && f.translate ? e(q)(e(m)) : e(m)
|
|
987
|
+
}, null, 8, Mn)) : A(l.$slots, "default", { key: 2 }, void 0, !0)
|
|
988
988
|
]),
|
|
989
|
-
I("div",
|
|
990
|
-
|
|
989
|
+
I("div", zn, [
|
|
990
|
+
l.$slots.hint ? A(l.$slots, "hint", { key: 0 }, void 0, !0) : (B = e(n)) != null && B.hint ? (t(), s("div", {
|
|
991
991
|
key: 1,
|
|
992
992
|
innerHTML: e(n).hint
|
|
993
|
-
}, null, 8,
|
|
993
|
+
}, null, 8, Fn)) : h("", !0)
|
|
994
994
|
])
|
|
995
995
|
])
|
|
996
996
|
], 2)), [
|
|
@@ -1016,31 +1016,31 @@ const Hn = /* @__PURE__ */ D(En, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
|
|
|
1016
1016
|
},
|
|
1017
1017
|
emits: ["update:modelValue"],
|
|
1018
1018
|
setup(p, { emit: r }) {
|
|
1019
|
-
const o = p, n = r, a = o.readOnly || o.property.readOnly, c = "items" in o.property ? o.property.items.enum : o.property.enum, u = (
|
|
1020
|
-
n("update:modelValue",
|
|
1019
|
+
const o = p, n = r, a = o.readOnly || o.property.readOnly, c = "items" in o.property ? o.property.items.enum : o.property.enum, u = (m) => {
|
|
1020
|
+
n("update:modelValue", m);
|
|
1021
1021
|
};
|
|
1022
1022
|
return ft(() => {
|
|
1023
1023
|
o.modelValue || n(
|
|
1024
1024
|
"update:modelValue",
|
|
1025
1025
|
"items" in o.property ? [] : ""
|
|
1026
1026
|
);
|
|
1027
|
-
}), (
|
|
1027
|
+
}), (m, d) => (t(), s("div", {
|
|
1028
1028
|
class: "options",
|
|
1029
1029
|
style: $e(`
|
|
1030
|
-
--columns: ${
|
|
1030
|
+
--columns: ${m.columns};
|
|
1031
1031
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1032
1032
|
`)
|
|
1033
1033
|
}, [
|
|
1034
|
-
(t(!0),
|
|
1035
|
-
key: `option-${
|
|
1034
|
+
(t(!0), s(P, null, H(e(c), (b) => (t(), s("div", {
|
|
1035
|
+
key: `option-${b}`,
|
|
1036
1036
|
class: "options__checkbox"
|
|
1037
1037
|
}, [
|
|
1038
|
-
L(Hn,
|
|
1039
|
-
value:
|
|
1038
|
+
L(Hn, z({ ref_for: !0 }, {
|
|
1039
|
+
value: b,
|
|
1040
1040
|
readOnly: e(a),
|
|
1041
|
-
property:
|
|
1041
|
+
property: m.property
|
|
1042
1042
|
}, {
|
|
1043
|
-
"model-value":
|
|
1043
|
+
"model-value": m.modelValue,
|
|
1044
1044
|
"onUpdate:modelValue": u
|
|
1045
1045
|
}), null, 16, ["model-value"])
|
|
1046
1046
|
]))), 128))
|
|
@@ -1066,14 +1066,14 @@ const Gn = /* @__PURE__ */ D(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { cla
|
|
|
1066
1066
|
const o = p, n = r, a = o.property, c = o.readOnly || (a == null ? void 0 : a.readOnly), u = () => {
|
|
1067
1067
|
c || (n("change", !o.modelValue), n("update:modelValue", !o.modelValue));
|
|
1068
1068
|
};
|
|
1069
|
-
return (
|
|
1070
|
-
var
|
|
1071
|
-
const
|
|
1072
|
-
return t(),
|
|
1073
|
-
J((t(),
|
|
1069
|
+
return (m, d) => {
|
|
1070
|
+
var l;
|
|
1071
|
+
const b = ne("clickable");
|
|
1072
|
+
return t(), s("div", Wn, [
|
|
1073
|
+
J((t(), s("a", {
|
|
1074
1074
|
class: W([
|
|
1075
1075
|
"switch",
|
|
1076
|
-
{ "switch--active":
|
|
1076
|
+
{ "switch--active": m.modelValue },
|
|
1077
1077
|
{ "switch--readOnly": e(c) }
|
|
1078
1078
|
]),
|
|
1079
1079
|
onClick: Re(u, ["stop"])
|
|
@@ -1082,15 +1082,15 @@ const Gn = /* @__PURE__ */ D(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { cla
|
|
|
1082
1082
|
I("div", {
|
|
1083
1083
|
class: W([
|
|
1084
1084
|
"switch__dummy",
|
|
1085
|
-
{ "switch__dummy--flex": !
|
|
1085
|
+
{ "switch__dummy--flex": !m.modelValue }
|
|
1086
1086
|
])
|
|
1087
1087
|
}, null, 2)
|
|
1088
1088
|
], 2)), [
|
|
1089
|
-
[
|
|
1089
|
+
[b, {
|
|
1090
1090
|
blocked: e(c)
|
|
1091
1091
|
}]
|
|
1092
1092
|
]),
|
|
1093
|
-
|
|
1093
|
+
m.$slots.default ? A(m.$slots, "default", { key: 0 }, void 0, !0) : (t(), s("div", Yn, C(((l = e(a)) == null ? void 0 : l.description) || m.propertyName), 1))
|
|
1094
1094
|
]);
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
@@ -1115,14 +1115,14 @@ const Jn = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1115
1115
|
setup(p) {
|
|
1116
1116
|
const r = p, o = K(() => r.fileId ? `${vt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = ee(!1);
|
|
1117
1117
|
return (a, c) => {
|
|
1118
|
-
var
|
|
1118
|
+
var m;
|
|
1119
1119
|
const u = ne("overlay");
|
|
1120
|
-
return t(),
|
|
1120
|
+
return t(), s("figure", Zn, [
|
|
1121
1121
|
o.value && n.value ? (t(), V(Ge, {
|
|
1122
1122
|
key: 0,
|
|
1123
1123
|
to: "main"
|
|
1124
1124
|
}, [
|
|
1125
|
-
J((t(),
|
|
1125
|
+
J((t(), s("div", Pn, [
|
|
1126
1126
|
I("img", {
|
|
1127
1127
|
src: o.value,
|
|
1128
1128
|
alt: a.alt,
|
|
@@ -1132,7 +1132,7 @@ const Jn = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1132
1132
|
`,
|
|
1133
1133
|
onClick: c[0] || (c[0] = (d) => n.value = !0)
|
|
1134
1134
|
}, null, 8, Nn),
|
|
1135
|
-
(
|
|
1135
|
+
(m = a.meta) != null && m.owner ? (t(), s("div", xn, C(a.t("created_by")) + " " + C(a.meta.owner.name) + " em " + C(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : h("", !0)
|
|
1136
1136
|
])), [
|
|
1137
1137
|
[u, {
|
|
1138
1138
|
layer: 60,
|
|
@@ -1141,8 +1141,8 @@ const Jn = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1141
1141
|
}
|
|
1142
1142
|
}]
|
|
1143
1143
|
])
|
|
1144
|
-
])) :
|
|
1145
|
-
o.value ? (t(),
|
|
1144
|
+
])) : h("", !0),
|
|
1145
|
+
o.value ? (t(), s("img", {
|
|
1146
1146
|
key: 1,
|
|
1147
1147
|
src: o.value,
|
|
1148
1148
|
class: W([
|
|
@@ -1158,7 +1158,7 @@ const Jn = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1158
1158
|
onClick: c[1] || (c[1] = () => {
|
|
1159
1159
|
a.expandable && (n.value = !0);
|
|
1160
1160
|
})
|
|
1161
|
-
}, null, 14, eo)) : a.$slots.fallback ? A(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? A(a.$slots, "default", { key: 3 }, void 0, !0) : (t(),
|
|
1161
|
+
}, null, 14, eo)) : a.$slots.fallback ? A(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? A(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), s("svg", {
|
|
1162
1162
|
key: 4,
|
|
1163
1163
|
class: W(["picture__background", [
|
|
1164
1164
|
{ "picture__image--bordered": a.bordered }
|
|
@@ -1189,9 +1189,9 @@ const Jn = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1189
1189
|
"vector-effect": "non-scaling-stroke"
|
|
1190
1190
|
}, null, -1)
|
|
1191
1191
|
]), 6)),
|
|
1192
|
-
a.$slots.caption ? (t(),
|
|
1192
|
+
a.$slots.caption ? (t(), s("figcaption", to, [
|
|
1193
1193
|
A(a.$slots, "caption", {}, void 0, !0)
|
|
1194
|
-
])) :
|
|
1194
|
+
])) : h("", !0)
|
|
1195
1195
|
]);
|
|
1196
1196
|
};
|
|
1197
1197
|
}
|
|
@@ -1215,7 +1215,7 @@ const Ue = /* @__PURE__ */ D(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { cla
|
|
|
1215
1215
|
"TB"
|
|
1216
1216
|
][c]}`;
|
|
1217
1217
|
};
|
|
1218
|
-
return (a, c) => (t(),
|
|
1218
|
+
return (a, c) => (t(), s("div", oo, [
|
|
1219
1219
|
"_id" in e(o) && e(o).type.startsWith("image/") ? (t(), V(Ue, {
|
|
1220
1220
|
key: 0,
|
|
1221
1221
|
bordered: "",
|
|
@@ -1223,7 +1223,7 @@ const Ue = /* @__PURE__ */ D(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { cla
|
|
|
1223
1223
|
alt: e(o).name,
|
|
1224
1224
|
url: e(o).link,
|
|
1225
1225
|
class: "item__picture"
|
|
1226
|
-
}, null, 8, ["alt", "url"])) :
|
|
1226
|
+
}, null, 8, ["alt", "url"])) : h("", !0),
|
|
1227
1227
|
I("div", ao, [
|
|
1228
1228
|
"_id" in e(o) ? (t(), V(Y, {
|
|
1229
1229
|
key: 0,
|
|
@@ -1236,7 +1236,7 @@ const Ue = /* @__PURE__ */ D(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { cla
|
|
|
1236
1236
|
Q(C(e(o).name), 1)
|
|
1237
1237
|
]),
|
|
1238
1238
|
_: 1
|
|
1239
|
-
}, 8, ["href"])) : (t(),
|
|
1239
|
+
}, 8, ["href"])) : (t(), s("div", lo, C(e(o).name), 1)),
|
|
1240
1240
|
I("div", so, C(n(e(o).size)), 1)
|
|
1241
1241
|
]),
|
|
1242
1242
|
I("div", null, [
|
|
@@ -1264,25 +1264,25 @@ const ro = /* @__PURE__ */ D(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1264
1264
|
},
|
|
1265
1265
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1266
1266
|
setup(p, { emit: r }) {
|
|
1267
|
-
const o = p, n = o.property && me(o.property), a = r, u = Me() ? Ee() : null,
|
|
1267
|
+
const o = p, n = o.property && me(o.property), a = r, u = Me() ? Ee() : null, m = o.multiple || o.property && "type" in o.property && o.property.type === "array", d = K(() => {
|
|
1268
1268
|
if (o.modelValue)
|
|
1269
1269
|
return Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue];
|
|
1270
|
-
}),
|
|
1270
|
+
}), b = ($) => new Promise((f) => {
|
|
1271
1271
|
const B = new FileReader();
|
|
1272
1272
|
B.onload = () => f(B.result), B.readAsArrayBuffer($);
|
|
1273
|
-
}),
|
|
1273
|
+
}), l = async ($) => {
|
|
1274
1274
|
const f = $.target.files;
|
|
1275
1275
|
if (!f)
|
|
1276
1276
|
return;
|
|
1277
1277
|
const B = [];
|
|
1278
|
-
for (const
|
|
1279
|
-
const M = await
|
|
1278
|
+
for (const i of f) {
|
|
1279
|
+
const M = await b(i);
|
|
1280
1280
|
if (u) {
|
|
1281
|
-
const { data: { error: E, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${
|
|
1281
|
+
const { data: { error: E, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${i.name}`, M, {
|
|
1282
1282
|
params: {
|
|
1283
1283
|
method: "POST",
|
|
1284
1284
|
headers: {
|
|
1285
|
-
"content-type":
|
|
1285
|
+
"content-type": i.type || "application/octet-stream",
|
|
1286
1286
|
"x-stream-request": "1"
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
@@ -1291,50 +1291,50 @@ const ro = /* @__PURE__ */ D(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1291
1291
|
return;
|
|
1292
1292
|
B.unshift({
|
|
1293
1293
|
tempId: Z.tempId,
|
|
1294
|
-
file:
|
|
1294
|
+
file: i
|
|
1295
1295
|
});
|
|
1296
1296
|
} else
|
|
1297
1297
|
B.unshift({
|
|
1298
|
-
file:
|
|
1298
|
+
file: i
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
|
-
|
|
1301
|
+
m ? a("update:modelValue", Array.isArray(o.modelValue) ? B.concat(o.modelValue) : B) : a("update:modelValue", B[0]), a("update:content", B), a("change", B);
|
|
1302
1302
|
}, v = async ($) => {
|
|
1303
1303
|
if (!o.modelValue)
|
|
1304
1304
|
throw new Error();
|
|
1305
|
-
const f = Array.isArray(o.modelValue) ? o.modelValue.filter((B,
|
|
1306
|
-
|
|
1305
|
+
const f = Array.isArray(o.modelValue) ? o.modelValue.filter((B, i) => i !== $) : [];
|
|
1306
|
+
m ? a("update:modelValue", f) : a("update:modelValue", null), a("update:content", f), a("change", f);
|
|
1307
1307
|
};
|
|
1308
1308
|
return ($, f) => {
|
|
1309
|
-
var
|
|
1309
|
+
var i, M;
|
|
1310
1310
|
const B = ne("clickable");
|
|
1311
|
-
return t(),
|
|
1312
|
-
$.readOnly ?
|
|
1311
|
+
return t(), s("div", uo, [
|
|
1312
|
+
$.readOnly ? h("", !0) : (t(), s("input", {
|
|
1313
1313
|
key: 0,
|
|
1314
1314
|
ref: "file",
|
|
1315
1315
|
type: "file",
|
|
1316
|
-
accept: (M = (
|
|
1317
|
-
multiple: e(
|
|
1318
|
-
onChange:
|
|
1316
|
+
accept: (M = (i = e(n)) == null ? void 0 : i.accept) == null ? void 0 : M.join(","),
|
|
1317
|
+
multiple: e(m),
|
|
1318
|
+
onChange: l
|
|
1319
1319
|
}, null, 40, co)),
|
|
1320
|
-
d.value && d.value.length > 0 ? (t(),
|
|
1321
|
-
(t(!0),
|
|
1320
|
+
d.value && d.value.length > 0 ? (t(), s("div", po, [
|
|
1321
|
+
(t(!0), s(P, null, H(d.value, (E, Z) => (t(), V(ro, {
|
|
1322
1322
|
key: "_id" in E ? String(E._id) : E.file.name,
|
|
1323
1323
|
"model-value": E
|
|
1324
1324
|
}, {
|
|
1325
1325
|
default: y(() => [
|
|
1326
|
-
$.readOnly ?
|
|
1326
|
+
$.readOnly ? h("", !0) : J((t(), V(Y, {
|
|
1327
1327
|
key: 0,
|
|
1328
1328
|
reactive: "",
|
|
1329
1329
|
icon: "trash",
|
|
1330
|
-
onClick: (
|
|
1330
|
+
onClick: (g) => v(Z)
|
|
1331
1331
|
}, null, 8, ["onClick"])), [
|
|
1332
1332
|
[B]
|
|
1333
1333
|
])
|
|
1334
1334
|
]),
|
|
1335
1335
|
_: 2
|
|
1336
1336
|
}, 1032, ["model-value"]))), 128))
|
|
1337
|
-
])) :
|
|
1337
|
+
])) : h("", !0)
|
|
1338
1338
|
]);
|
|
1339
1339
|
};
|
|
1340
1340
|
}
|
|
@@ -1354,18 +1354,18 @@ const mo = /* @__PURE__ */ D(_o, [["__scopeId", "data-v-9950a715"]]), fo = { cla
|
|
|
1354
1354
|
}).reachedEnd : null;
|
|
1355
1355
|
return c !== null && ue(c, (u) => {
|
|
1356
1356
|
u && n("endReached", u);
|
|
1357
|
-
}), (u,
|
|
1358
|
-
u.$slots.default ? (t(),
|
|
1357
|
+
}), (u, m) => (t(), s("div", fo, [
|
|
1358
|
+
u.$slots.default ? (t(), s("div", {
|
|
1359
1359
|
key: 0,
|
|
1360
1360
|
ref_key: "containerEl",
|
|
1361
1361
|
ref: a,
|
|
1362
1362
|
class: "container__content"
|
|
1363
1363
|
}, [
|
|
1364
1364
|
A(u.$slots, "default", {}, void 0, !0)
|
|
1365
|
-
], 512)) :
|
|
1366
|
-
u.$slots.footer ? (t(),
|
|
1365
|
+
], 512)) : h("", !0),
|
|
1366
|
+
u.$slots.footer ? (t(), s("div", vo, [
|
|
1367
1367
|
A(u.$slots, "footer", {}, void 0, !0)
|
|
1368
|
-
])) :
|
|
1368
|
+
])) : h("", !0)
|
|
1369
1369
|
]));
|
|
1370
1370
|
}
|
|
1371
1371
|
});
|
|
@@ -1380,24 +1380,24 @@ const dt = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { cla
|
|
|
1380
1380
|
},
|
|
1381
1381
|
emits: ["update:modelValue", "change"],
|
|
1382
1382
|
setup(p, { emit: r }) {
|
|
1383
|
-
const o = Be(), n = p, a = r, c = n.property, u = me(c),
|
|
1383
|
+
const o = Be(), n = p, a = r, c = n.property, u = me(c), m = Ee(), d = K(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: $ }) => n.item._id === $) : n.modelValue._id === n.item._id : !1), b = () => {
|
|
1384
1384
|
if (d.value)
|
|
1385
1385
|
return;
|
|
1386
|
-
const $ = (B) => B.filter((
|
|
1386
|
+
const $ = (B) => B.filter((i) => !!i._id);
|
|
1387
1387
|
let f;
|
|
1388
1388
|
"items" in c ? n.modelValue ? f = $(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : f = [] : f = n.modelValue, Array.isArray(f) ? a("update:modelValue", f.concat([n.item])) : a("update:modelValue", n.item), a("change", n.item);
|
|
1389
|
-
},
|
|
1389
|
+
}, l = async ($) => {
|
|
1390
1390
|
if (u.purge && ($ != null && $.purge)) {
|
|
1391
1391
|
const { _id: B } = n.item;
|
|
1392
|
-
await
|
|
1392
|
+
await m.$actions.remove({
|
|
1393
1393
|
filters: {
|
|
1394
1394
|
_id: B
|
|
1395
1395
|
}
|
|
1396
1396
|
});
|
|
1397
1397
|
}
|
|
1398
1398
|
const f = () => {
|
|
1399
|
-
const B = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [],
|
|
1400
|
-
return B.splice(
|
|
1399
|
+
const B = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [], i = B.findIndex((M) => M._id === n.item._id);
|
|
1400
|
+
return B.splice(i, 1), B;
|
|
1401
1401
|
};
|
|
1402
1402
|
a("update:modelValue", "items" in c ? f() : null);
|
|
1403
1403
|
}, v = () => {
|
|
@@ -1407,11 +1407,11 @@ const dt = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { cla
|
|
|
1407
1407
|
});
|
|
1408
1408
|
return;
|
|
1409
1409
|
}
|
|
1410
|
-
return d.value ?
|
|
1410
|
+
return d.value ? l() : b();
|
|
1411
1411
|
};
|
|
1412
1412
|
return ($, f) => {
|
|
1413
1413
|
const B = ne("clickable");
|
|
1414
|
-
return J((t(),
|
|
1414
|
+
return J((t(), s("div", {
|
|
1415
1415
|
class: W({
|
|
1416
1416
|
item: !0,
|
|
1417
1417
|
"item--selected": d.value
|
|
@@ -1420,16 +1420,16 @@ const dt = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { cla
|
|
|
1420
1420
|
}, [
|
|
1421
1421
|
A($.$slots, "default", {}, void 0, !0),
|
|
1422
1422
|
I("div", bo, [
|
|
1423
|
-
(t(!0),
|
|
1423
|
+
(t(!0), s(P, null, H($.indexes, (i, M) => (t(), s("div", {
|
|
1424
1424
|
key: `index-${$.item._id}-${M}`,
|
|
1425
1425
|
class: "item__value"
|
|
1426
|
-
}, C($.item[
|
|
1426
|
+
}, C($.item[i]), 1))), 128))
|
|
1427
1427
|
]),
|
|
1428
1428
|
$.readOnly ? (t(), V(Y, {
|
|
1429
1429
|
key: 0,
|
|
1430
1430
|
icon: "arrow-square-out",
|
|
1431
1431
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
1432
|
-
})) :
|
|
1432
|
+
})) : h("", !0)
|
|
1433
1433
|
], 2)), [
|
|
1434
1434
|
[B]
|
|
1435
1435
|
]);
|
|
@@ -1439,7 +1439,7 @@ const dt = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { cla
|
|
|
1439
1439
|
const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { class: "search__panel" }, $o = { key: 1 }, ko = { key: 0 }, Vo = { key: 1 }, Co = { class: "search__summary" }, Oo = {
|
|
1440
1440
|
key: 1,
|
|
1441
1441
|
class: "search"
|
|
1442
|
-
}, Ao = { key: 0 },
|
|
1442
|
+
}, Ao = { key: 0 }, Fe = 10, Io = /* @__PURE__ */ F({
|
|
1443
1443
|
__name: "aeria-search",
|
|
1444
1444
|
props: {
|
|
1445
1445
|
modelValue: {},
|
|
@@ -1454,27 +1454,27 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1454
1454
|
},
|
|
1455
1455
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1456
1456
|
setup(p, { emit: r }) {
|
|
1457
|
-
const o = p, n = re("meta"), a = me(o.property), c = o.panel !== void 0 ? K(() => o.panel) : ee(!1), u = r,
|
|
1458
|
-
ge(
|
|
1457
|
+
const o = p, n = re("meta"), a = me(o.property), c = o.panel !== void 0 ? K(() => o.panel) : ee(!1), u = r, m = re(me(o.property).$ref), d = Me(), b = d ? Ee() : null, l = a.indexes;
|
|
1458
|
+
ge(ze, me(o.property).$ref), ge("innerInputLabel", !0), ge("omitInputLabels", !0);
|
|
1459
1459
|
const v = ee(o.modelValue), $ = ee({
|
|
1460
1460
|
data: [],
|
|
1461
1461
|
pagination: {}
|
|
1462
|
-
}), f = K(() => $.value.data), B = K(() => $.value.pagination),
|
|
1462
|
+
}), f = K(() => $.value.data), B = K(() => $.value.pagination), i = ee(0), M = ee(!1), E = ee(""), Z = () => {
|
|
1463
1463
|
const k = {};
|
|
1464
1464
|
if (d) {
|
|
1465
1465
|
const N = e(d);
|
|
1466
|
-
k[N] =
|
|
1466
|
+
k[N] = b;
|
|
1467
1467
|
}
|
|
1468
1468
|
return a.constraints ? Ut(a.constraints, k) : {};
|
|
1469
|
-
},
|
|
1470
|
-
f.value.length < B.value.recordsTotal && (
|
|
1471
|
-
}, G = async () => E.value.length === 0 ?
|
|
1472
|
-
limit:
|
|
1473
|
-
offset:
|
|
1469
|
+
}, g = () => {
|
|
1470
|
+
f.value.length < B.value.recordsTotal && (i.value += 1, oe());
|
|
1471
|
+
}, G = async () => E.value.length === 0 ? m.$actions.custom("getAll", {
|
|
1472
|
+
limit: Fe,
|
|
1473
|
+
offset: i.value * Fe,
|
|
1474
1474
|
filters: Z()
|
|
1475
|
-
}) :
|
|
1476
|
-
limit:
|
|
1477
|
-
offset:
|
|
1475
|
+
}) : m.$actions.custom("getAll", {
|
|
1476
|
+
limit: Fe,
|
|
1477
|
+
offset: i.value * Fe,
|
|
1478
1478
|
filters: {
|
|
1479
1479
|
$text: {
|
|
1480
1480
|
$search: `"${E.value}"`,
|
|
@@ -1483,7 +1483,7 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1483
1483
|
...Z()
|
|
1484
1484
|
}
|
|
1485
1485
|
}), oe = async () => {
|
|
1486
|
-
if (
|
|
1486
|
+
if (m.loading.getAll)
|
|
1487
1487
|
return;
|
|
1488
1488
|
const { error: k, result: N } = await G();
|
|
1489
1489
|
if (k) {
|
|
@@ -1493,17 +1493,17 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1493
1493
|
});
|
|
1494
1494
|
return;
|
|
1495
1495
|
}
|
|
1496
|
-
$.value.pagination = N.pagination,
|
|
1496
|
+
$.value.pagination = N.pagination, i.value === 0 && $.value.data.splice(0), $.value.data.push(...N.data);
|
|
1497
1497
|
}, [w] = yt({
|
|
1498
1498
|
delay: 800
|
|
1499
1499
|
})(() => {
|
|
1500
|
-
|
|
1500
|
+
i.value = 0, oe(), M.value = !1;
|
|
1501
1501
|
}), te = () => {
|
|
1502
1502
|
M.value = !0, w();
|
|
1503
1503
|
}, ke = () => {
|
|
1504
1504
|
"effect" in c ? u("update:panel", !0) : c.value = !0, oe();
|
|
1505
1505
|
}, ce = () => {
|
|
1506
|
-
|
|
1506
|
+
i.value = 0, $.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
|
|
1507
1507
|
};
|
|
1508
1508
|
ue(() => E.value.length, (k, N) => {
|
|
1509
1509
|
k && !N && oe();
|
|
@@ -1517,7 +1517,7 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1517
1517
|
};
|
|
1518
1518
|
return (k, N) => {
|
|
1519
1519
|
const le = ne("clickable");
|
|
1520
|
-
return t(),
|
|
1520
|
+
return t(), s("div", null, [
|
|
1521
1521
|
e(c) ? (t(), V(Ge, {
|
|
1522
1522
|
key: 0,
|
|
1523
1523
|
to: "main"
|
|
@@ -1544,12 +1544,12 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1544
1544
|
})
|
|
1545
1545
|
]),
|
|
1546
1546
|
default: y(() => {
|
|
1547
|
-
var
|
|
1547
|
+
var _, T;
|
|
1548
1548
|
return [
|
|
1549
1549
|
I("div", go, [
|
|
1550
|
-
L(Oe,
|
|
1550
|
+
L(Oe, z({
|
|
1551
1551
|
modelValue: E.value,
|
|
1552
|
-
"onUpdate:modelValue": N[0] || (N[0] = (
|
|
1552
|
+
"onUpdate:modelValue": N[0] || (N[0] = (U) => E.value = U)
|
|
1553
1553
|
}, {
|
|
1554
1554
|
property: {
|
|
1555
1555
|
type: "string",
|
|
@@ -1560,22 +1560,22 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1560
1560
|
f.value.length ? (t(), V(dt, {
|
|
1561
1561
|
key: 0,
|
|
1562
1562
|
"observe-scroll": "",
|
|
1563
|
-
onEndReached:
|
|
1563
|
+
onEndReached: g
|
|
1564
1564
|
}, {
|
|
1565
1565
|
default: y(() => [
|
|
1566
|
-
(t(!0),
|
|
1567
|
-
item:
|
|
1568
|
-
indexes: e(
|
|
1566
|
+
(t(!0), s(P, null, H(f.value, (U) => (t(), V(De, z({ ref_for: !0 }, {
|
|
1567
|
+
item: U,
|
|
1568
|
+
indexes: e(l),
|
|
1569
1569
|
property: k.property
|
|
1570
1570
|
}, {
|
|
1571
|
-
key: `matching-${
|
|
1571
|
+
key: `matching-${U._id}`,
|
|
1572
1572
|
modelValue: v.value,
|
|
1573
1573
|
"onUpdate:modelValue": N[1] || (N[1] = (X) => v.value = X)
|
|
1574
1574
|
}), null, 16, ["modelValue"]))), 128))
|
|
1575
1575
|
]),
|
|
1576
1576
|
_: 1
|
|
1577
|
-
})) : (t(),
|
|
1578
|
-
M.value ? (t(),
|
|
1577
|
+
})) : (t(), s("div", $o, [
|
|
1578
|
+
M.value ? (t(), s("div", ko, C(e(q)("searching", { capitalize: !0 })) + "... ", 1)) : !e(m).loading.getAll && Object.values(E.value).filter((U) => !!U).length > 0 && !("items" in k.property && ((_ = k.modelValue) != null && _.length) || !Array.isArray(k.modelValue) && ((T = k.modelValue) != null && T._id)) ? (t(), s("div", Vo, C(e(q)("no_results", { capitalize: !0 })), 1)) : h("", !0)
|
|
1579
1579
|
]))
|
|
1580
1580
|
]),
|
|
1581
1581
|
I("div", Co, C(e(q)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(q)("of")) + " " + C(B.value.recordsTotal), 1)
|
|
@@ -1583,16 +1583,16 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1583
1583
|
}),
|
|
1584
1584
|
_: 1
|
|
1585
1585
|
}, 8, ["title", "model-value"])
|
|
1586
|
-
])) :
|
|
1587
|
-
k.selectOnly ?
|
|
1586
|
+
])) : h("", !0),
|
|
1587
|
+
k.selectOnly ? h("", !0) : (t(), s("div", Oo, [
|
|
1588
1588
|
L(dt, null, _e({
|
|
1589
1589
|
default: y(() => {
|
|
1590
|
-
var
|
|
1590
|
+
var _;
|
|
1591
1591
|
return [
|
|
1592
|
-
"items" in k.property ? (t(),
|
|
1593
|
-
(t(!0),
|
|
1592
|
+
"items" in k.property ? (t(), s("div", Ao, [
|
|
1593
|
+
(t(!0), s(P, null, H(k.modelValue, (T) => (t(), V(De, z({ ref_for: !0 }, {
|
|
1594
1594
|
item: T,
|
|
1595
|
-
indexes: e(
|
|
1595
|
+
indexes: e(l),
|
|
1596
1596
|
property: k.property,
|
|
1597
1597
|
readOnly: k.readOnly,
|
|
1598
1598
|
modelValue: k.modelValue
|
|
@@ -1600,13 +1600,13 @@ const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1600
1600
|
key: `selected-${T._id}`,
|
|
1601
1601
|
"onUpdate:modelValue": ae
|
|
1602
1602
|
}), null, 16))), 128))
|
|
1603
|
-
])) : (
|
|
1603
|
+
])) : (_ = k.modelValue) != null && _._id ? (t(), V(De, z({ key: 1 }, {
|
|
1604
1604
|
item: k.modelValue,
|
|
1605
|
-
indexes: e(
|
|
1605
|
+
indexes: e(l),
|
|
1606
1606
|
property: e(a),
|
|
1607
1607
|
readOnly: k.readOnly,
|
|
1608
1608
|
modelValue: k.modelValue
|
|
1609
|
-
}, { "onUpdate:modelValue": ae }), null, 16)) :
|
|
1609
|
+
}, { "onUpdate:modelValue": ae }), null, 16)) : h("", !0)
|
|
1610
1610
|
];
|
|
1611
1611
|
}),
|
|
1612
1612
|
_: 2
|
|
@@ -1667,13 +1667,13 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
|
|
|
1667
1667
|
const a = re(n.$ref, o), c = Ae(a.$freshItem);
|
|
1668
1668
|
return p.push(c);
|
|
1669
1669
|
}
|
|
1670
|
-
return "properties" in n ? p.push(
|
|
1670
|
+
return "properties" in n ? p.push(Ft(n)) : "type" in n && n.type === "boolean" ? p.push({}) : p.push(null);
|
|
1671
1671
|
}, wo = (p, r) => {
|
|
1672
1672
|
p.splice(r, 1);
|
|
1673
1673
|
}, To = {
|
|
1674
1674
|
key: 0,
|
|
1675
1675
|
class: "form__header"
|
|
1676
|
-
}, jo = { class: "form__fieldset" }, Ro = { key: 0 }, qo = ["innerHTML"], Lo = ["onInput"], Mo = { key: 4 },
|
|
1676
|
+
}, jo = { class: "form__fieldset" }, Ro = { key: 0 }, qo = ["innerHTML"], Lo = ["onInput"], Mo = { key: 4 }, zo = { value: "true" }, Fo = { value: "false" }, Uo = {
|
|
1677
1677
|
key: 5,
|
|
1678
1678
|
style: { display: "grid", "row-gap": ".4rem" }
|
|
1679
1679
|
}, Eo = { key: 0 }, Ho = {
|
|
@@ -1718,43 +1718,43 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
|
|
|
1718
1718
|
ft(() => {
|
|
1719
1719
|
n.modelValue || a("update:modelValue", n.property && "items" in n.property ? [] : {});
|
|
1720
1720
|
});
|
|
1721
|
-
const c = n.property && me(n.property), u = c ? c.$ref : n.collection || Me(),
|
|
1721
|
+
const c = n.property && me(n.property), u = c ? c.$ref : n.collection || Me(), m = n.readOnly || ((le = n.property) == null ? void 0 : le.readOnly), d = u ? re(e(u)) : null;
|
|
1722
1722
|
!u && process.env.NODE_ENV !== "production" && console.warn("aeria-form was used without providing storeId or specifying collection prop, some features may not work as intended");
|
|
1723
|
-
const
|
|
1724
|
-
const
|
|
1725
|
-
if (!
|
|
1723
|
+
const b = ee(!1), l = K(() => {
|
|
1724
|
+
const _ = (() => !n.form && n.property ? "type" in n.property && n.property.type === "object" ? "properties" in n.property ? n.property.properties : void 0 : d == null ? void 0 : d.properties : n.form)();
|
|
1725
|
+
if (!_)
|
|
1726
1726
|
return;
|
|
1727
1727
|
const T = {};
|
|
1728
1728
|
if (n.includeId && (T._id = {
|
|
1729
1729
|
type: "string",
|
|
1730
1730
|
readOnly: !0
|
|
1731
1731
|
}), n.includeTimestamps) {
|
|
1732
|
-
const
|
|
1732
|
+
const U = {
|
|
1733
1733
|
type: "string",
|
|
1734
1734
|
format: "date-time",
|
|
1735
1735
|
readOnly: !0,
|
|
1736
1736
|
isTimestamp: !0
|
|
1737
1737
|
};
|
|
1738
|
-
|
|
1738
|
+
_.created_at || (T.created_at = U), _.created_at || (T.updated_at = U);
|
|
1739
1739
|
}
|
|
1740
|
-
return Object.assign(T,
|
|
1741
|
-
}), v = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), $ = (
|
|
1742
|
-
const T = fe(
|
|
1743
|
-
return n[
|
|
1744
|
-
}, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), B = $("formComponents") || {},
|
|
1745
|
-
u && ge(
|
|
1746
|
-
const
|
|
1740
|
+
return Object.assign(T, _), T;
|
|
1741
|
+
}), v = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), $ = (_) => {
|
|
1742
|
+
const T = fe(_, n[_]);
|
|
1743
|
+
return n[_] && ge(_, n[_]), T;
|
|
1744
|
+
}, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), B = $("formComponents") || {}, i = $("propertyComponents") || {}, M = $("omitFormHeader"), E = $("omitInputLabels"), Z = $("innerInputLabel");
|
|
1745
|
+
u && ge(ze, u), ge("searchOnly", n.searchOnly);
|
|
1746
|
+
const g = (_) => l.value ? Object.entries(l.value).filter(([T, U]) => !U.noForm && _([
|
|
1747
1747
|
T,
|
|
1748
|
-
|
|
1749
|
-
])) : null, G = (
|
|
1748
|
+
U
|
|
1749
|
+
])) : null, G = (_, T) => {
|
|
1750
1750
|
var X;
|
|
1751
|
-
if (n.searchOnly || !u || n.includeId &&
|
|
1751
|
+
if (n.searchOnly || !u || n.includeId && _ === "_id" || n.includeTimestamps && T.isTimestamp)
|
|
1752
1752
|
return !0;
|
|
1753
|
-
const
|
|
1754
|
-
return !
|
|
1755
|
-
}, oe =
|
|
1753
|
+
const U = n.property && "properties" in n.property ? n.property.form : (X = d == null ? void 0 : d.description) == null ? void 0 : X.form;
|
|
1754
|
+
return !U || U.includes(_);
|
|
1755
|
+
}, oe = g(([_, T]) => G(_, T)), w = Le(), te = {}, ke = (_, T) => {
|
|
1756
1756
|
var R, ie, j, se;
|
|
1757
|
-
const
|
|
1757
|
+
const U = [], X = ((ie = (R = v.value) == null ? void 0 : R.fields) == null ? void 0 : ie[_]) || ((se = (j = v.value) == null ? void 0 : j.fields) == null ? void 0 : se.$default);
|
|
1758
1758
|
if (!T)
|
|
1759
1759
|
return;
|
|
1760
1760
|
if (X != null && X.if && !n.searchOnly) {
|
|
@@ -1762,50 +1762,50 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
|
|
|
1762
1762
|
n.modelValue,
|
|
1763
1763
|
X.if
|
|
1764
1764
|
);
|
|
1765
|
-
ve.satisfied || (te[
|
|
1765
|
+
ve.satisfied || (te[_] && (d ? n.modelValue[_] = typeof d.$freshItem[_] == "object" ? Ae(d.$freshItem[_]) : d.$freshItem[_] : n.modelValue[_] = [
|
|
1766
1766
|
void 0,
|
|
1767
1767
|
null
|
|
1768
|
-
].includes(n.modelValue[
|
|
1768
|
+
].includes(n.modelValue[_]) ? null : n.modelValue[_].constructor()), U.push("display: none;")), te[_] = ve.satisfied;
|
|
1769
1769
|
}
|
|
1770
1770
|
const S = w.value.md && (X == null ? void 0 : X.span) || 6;
|
|
1771
|
-
return
|
|
1771
|
+
return U.push(`
|
|
1772
1772
|
--field-span: ${S};
|
|
1773
1773
|
grid-column: span var(--field-span) / span var(--field-span);
|
|
1774
|
-
`), X && (X.verticalSpacing &&
|
|
1774
|
+
`), X && (X.verticalSpacing && U.push(`
|
|
1775
1775
|
--vertical-spacing: ${X.verticalSpacing};
|
|
1776
1776
|
padding: var(--vertical-spacing) 0;
|
|
1777
|
-
`), X.separator &&
|
|
1777
|
+
`), X.separator && U.push(`
|
|
1778
1778
|
border-top: 1px solid var(--theme-border-color);
|
|
1779
1779
|
border-width: 1px 0 1px 0;
|
|
1780
1780
|
padding: 1rem 0;
|
|
1781
1781
|
margin: 1rem 0;
|
|
1782
|
-
`)),
|
|
1783
|
-
}, ce = (
|
|
1782
|
+
`)), U.join("");
|
|
1783
|
+
}, ce = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, ae = K(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), O = K(() => n.form ? Et(
|
|
1784
1784
|
n.modelValue,
|
|
1785
1785
|
n.form,
|
|
1786
1786
|
ae.value,
|
|
1787
1787
|
d == null ? void 0 : d.description
|
|
1788
|
-
) : !0), k = (
|
|
1789
|
-
var
|
|
1790
|
-
return (
|
|
1791
|
-
}, N = (
|
|
1792
|
-
if (!(
|
|
1793
|
-
return
|
|
1788
|
+
) : !0), k = (_, T) => {
|
|
1789
|
+
var U;
|
|
1790
|
+
return (U = f.value) != null && U[_] && (typeof f.value[_].index != "number" || f.value[_].index === T) ? f.value[_].errors : null;
|
|
1791
|
+
}, N = (_) => {
|
|
1792
|
+
if (!(m || _.readOnly) && !n.parentPropertyName && !n.parentCollection && !b.value)
|
|
1793
|
+
return b.value = !0, !0;
|
|
1794
1794
|
};
|
|
1795
|
-
return (
|
|
1796
|
-
const
|
|
1797
|
-
return t(),
|
|
1795
|
+
return (_, T) => {
|
|
1796
|
+
const U = ne("clickable"), X = ne("focus");
|
|
1797
|
+
return t(), s("form", {
|
|
1798
1798
|
class: "form",
|
|
1799
1799
|
style: $e(`row-gap: ${e(M) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1800
1800
|
}, [
|
|
1801
|
-
|
|
1802
|
-
A(
|
|
1803
|
-
])) :
|
|
1804
|
-
A(
|
|
1801
|
+
_.$slots.header && !e(M) ? (t(), s("header", To, [
|
|
1802
|
+
A(_.$slots, "header", {}, void 0, !0)
|
|
1803
|
+
])) : h("", !0),
|
|
1804
|
+
A(_.$slots, "default", {}, void 0, !0),
|
|
1805
1805
|
I("fieldset", jo, [
|
|
1806
|
-
(t(!0),
|
|
1806
|
+
(t(!0), s(P, null, H(e(oe), ([S, R]) => {
|
|
1807
1807
|
var ie, j, se, ve, be, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
|
|
1808
|
-
return t(),
|
|
1808
|
+
return t(), s("div", {
|
|
1809
1809
|
key: `field-${S}`,
|
|
1810
1810
|
style: $e(ke(S, R)),
|
|
1811
1811
|
class: W({
|
|
@@ -1813,90 +1813,90 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
|
|
|
1813
1813
|
"form__field--form": "properties" in R
|
|
1814
1814
|
})
|
|
1815
1815
|
}, [
|
|
1816
|
-
(!("type" in R) || R.type !== "boolean" ||
|
|
1816
|
+
(!("type" in R) || R.type !== "boolean" || _.searchOnly) && !R.noLabel && !e(E) && !e(Z) ? (t(), s("label", Ro, [
|
|
1817
1817
|
I("div", {
|
|
1818
1818
|
class: W({
|
|
1819
1819
|
"form__field-label": !0,
|
|
1820
1820
|
"form__field-label--section": "items" in R ? "properties" in R.items : "properties" in R,
|
|
1821
|
-
"form__field-required-hint":
|
|
1821
|
+
"form__field-required-hint": _.highlightRequired && !e(m) && !_.searchOnly && (!ae.value || e(ct)(S, ae.value, _.modelValue))
|
|
1822
1822
|
})
|
|
1823
1823
|
}, C(R.description || e(q)(S)), 3),
|
|
1824
|
-
R.hint ? (t(),
|
|
1824
|
+
R.hint ? (t(), s("div", {
|
|
1825
1825
|
key: 0,
|
|
1826
1826
|
innerHTML: R.hint
|
|
1827
|
-
}, null, 8, qo)) :
|
|
1828
|
-
])) :
|
|
1829
|
-
|
|
1827
|
+
}, null, 8, qo)) : h("", !0)
|
|
1828
|
+
])) : h("", !0),
|
|
1829
|
+
_.$slots[`field-${S}`] ? A(_.$slots, `field-${S}`, z({
|
|
1830
1830
|
key: 1,
|
|
1831
1831
|
ref_for: !0
|
|
1832
1832
|
}, {
|
|
1833
|
-
readOnly: e(
|
|
1833
|
+
readOnly: e(m),
|
|
1834
1834
|
property: R,
|
|
1835
1835
|
propertyName: S,
|
|
1836
|
-
modelValue:
|
|
1837
|
-
}), void 0, !0) : (se = (j = (ie =
|
|
1836
|
+
modelValue: _.modelValue
|
|
1837
|
+
}), void 0, !0) : (se = (j = (ie = _.layout) == null ? void 0 : ie.fields) == null ? void 0 : j[S]) != null && se.component && e(i)[_.layout.fields[S].component.name] ? (t(), V(he(e(i)[_.layout.fields[S].component.name]), z({
|
|
1838
1838
|
key: 2,
|
|
1839
|
-
modelValue:
|
|
1840
|
-
"onUpdate:modelValue": (x) =>
|
|
1839
|
+
modelValue: _.modelValue[S],
|
|
1840
|
+
"onUpdate:modelValue": (x) => _.modelValue[S] = x,
|
|
1841
1841
|
ref_for: !0
|
|
1842
1842
|
}, {
|
|
1843
|
-
readOnly: e(
|
|
1843
|
+
readOnly: e(m),
|
|
1844
1844
|
property: R,
|
|
1845
1845
|
propertyName: S,
|
|
1846
|
-
required: !
|
|
1847
|
-
...
|
|
1846
|
+
required: !_.searchOnly && (!ae.value || e(ct)(S, ae.value, _.modelValue)),
|
|
1847
|
+
..._.layout.fields[S].component.props || {}
|
|
1848
1848
|
}, {
|
|
1849
1849
|
onInput: (x) => a("input", S),
|
|
1850
1850
|
onChange: T[0] || (T[0] = (x) => a("change", x))
|
|
1851
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) &&
|
|
1851
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) && _.searchOnly ? (t(), s("div", {
|
|
1852
1852
|
key: 3,
|
|
1853
1853
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1854
1854
|
onInput: (x) => a("input", S),
|
|
1855
1855
|
onChange: T[1] || (T[1] = (x) => a("change", x))
|
|
1856
1856
|
}, [
|
|
1857
|
-
L(Oe,
|
|
1858
|
-
modelValue:
|
|
1859
|
-
"onUpdate:modelValue": (x) =>
|
|
1857
|
+
L(Oe, z({
|
|
1858
|
+
modelValue: _.modelValue[S].$gte,
|
|
1859
|
+
"onUpdate:modelValue": (x) => _.modelValue[S].$gte = x,
|
|
1860
1860
|
ref_for: !0
|
|
1861
1861
|
}, {
|
|
1862
1862
|
property: R,
|
|
1863
1863
|
propertyName: S
|
|
1864
1864
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1865
|
-
L(Oe,
|
|
1866
|
-
modelValue:
|
|
1867
|
-
"onUpdate:modelValue": (x) =>
|
|
1865
|
+
L(Oe, z({
|
|
1866
|
+
modelValue: _.modelValue[S].$lte,
|
|
1867
|
+
"onUpdate:modelValue": (x) => _.modelValue[S].$lte = x,
|
|
1868
1868
|
ref_for: !0
|
|
1869
1869
|
}, {
|
|
1870
1870
|
property: R,
|
|
1871
1871
|
propertyName: S
|
|
1872
1872
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1873
|
-
], 40, Lo)) : "type" in R && R.type === "boolean" &&
|
|
1874
|
-
L(Xe,
|
|
1873
|
+
], 40, Lo)) : "type" in R && R.type === "boolean" && _.searchOnly ? (t(), s("div", Mo, [
|
|
1874
|
+
L(Xe, z({ ref_for: !0 }, {
|
|
1875
1875
|
property: R,
|
|
1876
1876
|
propertyName: S
|
|
1877
1877
|
}, {
|
|
1878
1878
|
"boolean-ref": "",
|
|
1879
|
-
"model-value":
|
|
1879
|
+
"model-value": _.modelValue[S],
|
|
1880
1880
|
onChange: T[2] || (T[2] = (x) => a("change", x)),
|
|
1881
1881
|
"onUpdate:modelValue": (x) => {
|
|
1882
|
-
|
|
1882
|
+
_.modelValue[S] = x;
|
|
1883
1883
|
}
|
|
1884
1884
|
}), {
|
|
1885
1885
|
default: y(() => [
|
|
1886
|
-
I("option",
|
|
1887
|
-
I("option",
|
|
1886
|
+
I("option", zo, C(e(q)("yes")), 1),
|
|
1887
|
+
I("option", Fo, C(e(q)("no")), 1)
|
|
1888
1888
|
]),
|
|
1889
1889
|
_: 2
|
|
1890
1890
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1891
|
-
])) :
|
|
1892
|
-
e(
|
|
1891
|
+
])) : _.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), s("div", Uo, [
|
|
1892
|
+
e(m) ? h("", !0) : (t(), s("div", Eo, [
|
|
1893
1893
|
L(pe, {
|
|
1894
1894
|
small: "",
|
|
1895
1895
|
variant: "alt",
|
|
1896
1896
|
icon: "plus",
|
|
1897
|
-
disabled: !("inline" in R.items && R.items.inline) && (((ve =
|
|
1897
|
+
disabled: !("inline" in R.items && R.items.inline) && (((ve = _.modelValue[S]) == null ? void 0 : ve.length) >= R.maxItems || ce((Je = _.modelValue[S]) == null ? void 0 : Je[((be = _.modelValue[S]) == null ? void 0 : be.length) - 1])),
|
|
1898
1898
|
onClick: Re((x) => {
|
|
1899
|
-
|
|
1899
|
+
_.modelValue[S] || (_.modelValue[S] = []), e(So)(_.modelValue[S], R, e(o));
|
|
1900
1900
|
}, ["prevent"])
|
|
1901
1901
|
}, {
|
|
1902
1902
|
default: y(() => [
|
|
@@ -1905,37 +1905,37 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
|
|
|
1905
1905
|
_: 2
|
|
1906
1906
|
}, 1032, ["disabled", "onClick"])
|
|
1907
1907
|
])),
|
|
1908
|
-
((Ze =
|
|
1909
|
-
(t(!0),
|
|
1908
|
+
((Ze = _.modelValue[S]) == null ? void 0 : Ze.length) > 0 ? (t(), s("div", Ho, [
|
|
1909
|
+
(t(!0), s(P, null, H(_.modelValue[S], (x, we) => {
|
|
1910
1910
|
var at, lt, st, it, rt, ut;
|
|
1911
|
-
return t(),
|
|
1911
|
+
return t(), s("div", {
|
|
1912
1912
|
key: `rep-${S}-${e(Ht)(x, we)}`,
|
|
1913
1913
|
class: "form__array-item"
|
|
1914
1914
|
}, [
|
|
1915
|
-
e(
|
|
1915
|
+
e(m) ? h("", !0) : J((t(), V(Y, {
|
|
1916
1916
|
key: 0,
|
|
1917
1917
|
icon: "trash",
|
|
1918
1918
|
class: "form__array-remove",
|
|
1919
|
-
onClick: Re((Te) => e(wo)(
|
|
1919
|
+
onClick: Re((Te) => e(wo)(_.modelValue[S], we), ["prevent"])
|
|
1920
1920
|
}, {
|
|
1921
1921
|
default: y(() => [
|
|
1922
1922
|
Q(C(e(q)("action.remove", { capitalize: !0 })), 1)
|
|
1923
1923
|
]),
|
|
1924
1924
|
_: 2
|
|
1925
1925
|
}, 1032, ["onClick"])), [
|
|
1926
|
-
[
|
|
1926
|
+
[U]
|
|
1927
1927
|
]),
|
|
1928
|
-
(t(), V(he(e(pt)(R, e(B))),
|
|
1929
|
-
modelValue:
|
|
1930
|
-
"onUpdate:modelValue": (Te) =>
|
|
1928
|
+
(t(), V(he(e(pt)(R, e(B))), z({
|
|
1929
|
+
modelValue: _.modelValue[S][we],
|
|
1930
|
+
"onUpdate:modelValue": (Te) => _.modelValue[S][we] = Te,
|
|
1931
1931
|
ref_for: !0
|
|
1932
1932
|
}, {
|
|
1933
|
-
readOnly: e(
|
|
1933
|
+
readOnly: e(m),
|
|
1934
1934
|
property: R.items,
|
|
1935
1935
|
propertyName: S,
|
|
1936
1936
|
parentCollection: e(u),
|
|
1937
|
-
parentPropertyName:
|
|
1938
|
-
columns: ((st = (lt = (at =
|
|
1937
|
+
parentPropertyName: _.parentPropertyName,
|
|
1938
|
+
columns: ((st = (lt = (at = _.layout) == null ? void 0 : at.fields) == null ? void 0 : lt[S]) == null ? void 0 : st.optionsColumns) || ((ut = (rt = (it = _.layout) == null ? void 0 : it.fields) == null ? void 0 : rt.$default) == null ? void 0 : ut.optionsColumns),
|
|
1939
1939
|
validationErrors: k(S, we),
|
|
1940
1940
|
...R.componentProps || {}
|
|
1941
1941
|
}, {
|
|
@@ -1944,19 +1944,19 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
|
|
|
1944
1944
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1945
1945
|
]);
|
|
1946
1946
|
}), 128))
|
|
1947
|
-
])) :
|
|
1948
|
-
])) :
|
|
1947
|
+
])) : h("", !0)
|
|
1948
|
+
])) : _.modelValue ? J((t(), V(he(e(pt)(R, e(B))), z({
|
|
1949
1949
|
key: 6,
|
|
1950
|
-
modelValue:
|
|
1951
|
-
"onUpdate:modelValue": (x) =>
|
|
1950
|
+
modelValue: _.modelValue[S],
|
|
1951
|
+
"onUpdate:modelValue": (x) => _.modelValue[S] = x,
|
|
1952
1952
|
ref_for: !0
|
|
1953
1953
|
}, {
|
|
1954
|
-
readOnly: e(
|
|
1954
|
+
readOnly: e(m),
|
|
1955
1955
|
property: R,
|
|
1956
1956
|
propertyName: S,
|
|
1957
|
-
parentPropertyName:
|
|
1957
|
+
parentPropertyName: _.parentPropertyName,
|
|
1958
1958
|
parentCollection: e(u),
|
|
1959
|
-
columns: ((xe = (Ne = (Pe =
|
|
1959
|
+
columns: ((xe = (Ne = (Pe = _.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne[S]) == null ? void 0 : xe.optionsColumns) || ((nt = (tt = (et = _.layout) == null ? void 0 : et.fields) == null ? void 0 : tt.$default) == null ? void 0 : nt.optionsColumns),
|
|
1960
1960
|
...R.componentProps || {},
|
|
1961
1961
|
validationErrors: k(S)
|
|
1962
1962
|
}, {
|
|
@@ -1965,20 +1965,20 @@ const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
|
|
|
1965
1965
|
onClipboardCopy: T[5] || (T[5] = (x) => a("clipboardCopy", x))
|
|
1966
1966
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1967
1967
|
[X, N(R)]
|
|
1968
|
-
]) :
|
|
1969
|
-
(ot = f.value) != null && ot[S] ? (t(),
|
|
1970
|
-
f.value[S].type ? (t(),
|
|
1971
|
-
f.value[S].detail ? (t(),
|
|
1972
|
-
])) :
|
|
1968
|
+
]) : h("", !0),
|
|
1969
|
+
(ot = f.value) != null && ot[S] ? (t(), s("div", Do, [
|
|
1970
|
+
f.value[S].type ? (t(), s("span", Qo, C(e(q)(`validation_error.${f.value[S].type}`)), 1)) : h("", !0),
|
|
1971
|
+
f.value[S].detail ? (t(), s("span", Go, C(e(q)(f.value[S].detail)), 1)) : h("", !0)
|
|
1972
|
+
])) : h("", !0)
|
|
1973
1973
|
], 6);
|
|
1974
1974
|
}), 128))
|
|
1975
1975
|
]),
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
A(
|
|
1976
|
+
_.$slots.after ? A(_.$slots, "after", { key: 1 }, void 0, !0) : h("", !0),
|
|
1977
|
+
_.$slots.footer ? (t(), s("div", Wo, [
|
|
1978
|
+
A(_.$slots, "footer", de(Ce({
|
|
1979
1979
|
isInsertReady: O.value
|
|
1980
1980
|
})), void 0, !0)
|
|
1981
|
-
])) :
|
|
1981
|
+
])) : h("", !0)
|
|
1982
1982
|
], 4);
|
|
1983
1983
|
};
|
|
1984
1984
|
}
|
|
@@ -1987,33 +1987,34 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
1987
1987
|
__name: "aeria-filter-panel",
|
|
1988
1988
|
emits: ["update:modelValue"],
|
|
1989
1989
|
setup(p, { emit: r }) {
|
|
1990
|
-
const o = r, n = Ee(), a = Be(), c = e(fe(
|
|
1990
|
+
const o = r, n = Ee(), a = Be(), c = e(fe(ze)), u = () => {
|
|
1991
1991
|
if (n.pagination.offset = 0, n.$actions.filter(), o("update:modelValue", !1), "query" in a.currentRoute && a.currentRoute.query && typeof a.currentRoute.query == "object") {
|
|
1992
|
-
const
|
|
1993
|
-
for (const
|
|
1994
|
-
|
|
1992
|
+
const b = a.currentRoute.query;
|
|
1993
|
+
for (const l of Object.keys(b))
|
|
1994
|
+
l.startsWith(`${c}.`) && delete b[l];
|
|
1995
1995
|
}
|
|
1996
|
-
a.
|
|
1996
|
+
const { query: m, ...d } = a.currentRoute.value;
|
|
1997
|
+
a.push(qe(d, {
|
|
1997
1998
|
query: Rt(n)
|
|
1998
1999
|
}));
|
|
1999
2000
|
};
|
|
2000
|
-
return (
|
|
2001
|
+
return (m, d) => (t(), V(Se, {
|
|
2001
2002
|
"close-hint": "",
|
|
2002
2003
|
"fixed-right": "",
|
|
2003
|
-
title:
|
|
2004
|
-
onClose: d[2] || (d[2] = (
|
|
2005
|
-
onOverlayClick: d[3] || (d[3] = (
|
|
2004
|
+
title: m.t("filter_by", { capitalize: !0 }),
|
|
2005
|
+
onClose: d[2] || (d[2] = (b) => o("update:modelValue", !1)),
|
|
2006
|
+
onOverlayClick: d[3] || (d[3] = (b) => o("update:modelValue", !1))
|
|
2006
2007
|
}, {
|
|
2007
2008
|
footer: y(() => [
|
|
2008
2009
|
e(n).filtersCount > 0 ? (t(), V(pe, {
|
|
2009
2010
|
key: 0,
|
|
2010
2011
|
variant: "transparent",
|
|
2011
|
-
onClick: d[1] || (d[1] = (
|
|
2012
|
+
onClick: d[1] || (d[1] = (b) => {
|
|
2012
2013
|
e(n).$actions.clearFilters(), u(), o("update:modelValue", !1);
|
|
2013
2014
|
})
|
|
2014
2015
|
}, {
|
|
2015
2016
|
default: y(() => [
|
|
2016
|
-
Q(C(
|
|
2017
|
+
Q(C(m.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
2017
2018
|
L(Ve, null, {
|
|
2018
2019
|
default: y(() => [
|
|
2019
2020
|
Q(C(e(n).filtersCount), 1)
|
|
@@ -2022,7 +2023,7 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2022
2023
|
})
|
|
2023
2024
|
]),
|
|
2024
2025
|
_: 1
|
|
2025
|
-
})) :
|
|
2026
|
+
})) : h("", !0),
|
|
2026
2027
|
L(pe, {
|
|
2027
2028
|
large: "",
|
|
2028
2029
|
icon: "funnel",
|
|
@@ -2030,15 +2031,15 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2030
2031
|
onClick: u
|
|
2031
2032
|
}, {
|
|
2032
2033
|
default: y(() => [
|
|
2033
|
-
Q(C(
|
|
2034
|
+
Q(C(m.t("action.filter", { capitalize: !0 })), 1)
|
|
2034
2035
|
]),
|
|
2035
2036
|
_: 1
|
|
2036
2037
|
}, 8, ["disabled"])
|
|
2037
2038
|
]),
|
|
2038
2039
|
default: y(() => [
|
|
2039
|
-
L(He,
|
|
2040
|
+
L(He, z({
|
|
2040
2041
|
modelValue: e(n).filters,
|
|
2041
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2042
|
+
"onUpdate:modelValue": d[0] || (d[0] = (b) => e(n).filters = b)
|
|
2042
2043
|
}, {
|
|
2043
2044
|
searchOnly: !0,
|
|
2044
2045
|
form: e(n).availableFilters,
|
|
@@ -2068,73 +2069,82 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2068
2069
|
We(() => {
|
|
2069
2070
|
o.modelValue && u.$actions.setItem(o.modelValue);
|
|
2070
2071
|
});
|
|
2071
|
-
const
|
|
2072
|
+
const m = K(() => o.form ? u.$actions.useProperties(o.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
|
|
2072
2073
|
const { error: $, result: f } = await u.$actions.deepInsert();
|
|
2073
|
-
|
|
2074
|
-
|
|
2074
|
+
if ($) {
|
|
2075
|
+
a.$actions.spawnToast({
|
|
2076
|
+
text: `${b("error", {
|
|
2077
|
+
capitalize: !0
|
|
2078
|
+
})}: ${$.code}`,
|
|
2079
|
+
icon: "warning"
|
|
2080
|
+
});
|
|
2081
|
+
return;
|
|
2082
|
+
}
|
|
2083
|
+
n("update:visible", !1), n("update:modelValue", f), n("insert", f), u.$actions.clearItem();
|
|
2084
|
+
}, { t: b } = Bt(), l = () => {
|
|
2075
2085
|
a.$actions.ask({
|
|
2076
2086
|
action: () => {
|
|
2077
2087
|
u.$actions.clearItem(), u.validationErrors = {}, n("cancel");
|
|
2078
2088
|
},
|
|
2079
|
-
body:
|
|
2089
|
+
body: b("prompt.close_panel")
|
|
2080
2090
|
});
|
|
2081
2091
|
}, v = () => a.$actions.spawnToast({
|
|
2082
2092
|
icon: "info",
|
|
2083
|
-
text:
|
|
2093
|
+
text: b("copied_to_clipboard")
|
|
2084
2094
|
});
|
|
2085
2095
|
return ue(() => u.item._id, ($) => {
|
|
2086
2096
|
$ === null && n("update:visible", !1);
|
|
2087
2097
|
}), ($, f) => {
|
|
2088
2098
|
const B = ne("clickable");
|
|
2089
|
-
return t(), V(Se,
|
|
2099
|
+
return t(), V(Se, z({
|
|
2090
2100
|
modelValue: $.visible,
|
|
2091
2101
|
loading: e(u).loading.get,
|
|
2092
2102
|
float: $.float,
|
|
2093
2103
|
fixedRight: $.fixedRight
|
|
2094
|
-
}, { onOverlayClick:
|
|
2104
|
+
}, { onOverlayClick: l }), _e({
|
|
2095
2105
|
extra: y(() => [
|
|
2096
|
-
$.individualActions ? (t(), V(Ie,
|
|
2106
|
+
$.individualActions ? (t(), V(Ie, z({ key: 0 }, {
|
|
2097
2107
|
subject: e(u).item,
|
|
2098
|
-
actions: $.individualActions.filter(({ action:
|
|
2108
|
+
actions: $.individualActions.filter(({ action: i }) => i !== "spawnEdit"),
|
|
2099
2109
|
overlayLayer: 60
|
|
2100
2110
|
}, {
|
|
2101
|
-
onActionClick: f[2] || (f[2] = (
|
|
2111
|
+
onActionClick: f[2] || (f[2] = (i) => n("update:visible", !1))
|
|
2102
2112
|
}), {
|
|
2103
2113
|
default: y(({
|
|
2104
|
-
visible:
|
|
2114
|
+
visible: i
|
|
2105
2115
|
}) => [
|
|
2106
2116
|
e(u).item._id ? J((t(), V(Y, {
|
|
2107
2117
|
key: 0,
|
|
2108
2118
|
reactive: "",
|
|
2109
|
-
active:
|
|
2119
|
+
active: i,
|
|
2110
2120
|
icon: "dots-three"
|
|
2111
2121
|
}, null, 8, ["active"])), [
|
|
2112
2122
|
[B]
|
|
2113
|
-
]) :
|
|
2123
|
+
]) : h("", !0)
|
|
2114
2124
|
]),
|
|
2115
2125
|
_: 1
|
|
2116
|
-
}, 16)) :
|
|
2126
|
+
}, 16)) : h("", !0)
|
|
2117
2127
|
]),
|
|
2118
2128
|
default: y(() => [
|
|
2119
|
-
L(He,
|
|
2129
|
+
L(He, z({
|
|
2120
2130
|
modelValue: e(u).item,
|
|
2121
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
2131
|
+
"onUpdate:modelValue": f[0] || (f[0] = (i) => e(u).item = i)
|
|
2122
2132
|
}, {
|
|
2123
2133
|
collection: e(c),
|
|
2124
2134
|
readOnly: $.readOnly,
|
|
2125
2135
|
includeId: $.includeId,
|
|
2126
2136
|
includeTimestamps: $.includeTimestamps,
|
|
2127
|
-
form:
|
|
2137
|
+
form: m.value,
|
|
2128
2138
|
layout: e(u).description.formLayout || {}
|
|
2129
2139
|
}, {
|
|
2130
2140
|
focus: "",
|
|
2131
2141
|
onClipboardCopy: v,
|
|
2132
|
-
onAdd: f[1] || (f[1] = (
|
|
2142
|
+
onAdd: f[1] || (f[1] = (i) => i.preventDefault())
|
|
2133
2143
|
}), _e({ _: 2 }, [
|
|
2134
|
-
H(Object.keys($.$slots).filter((
|
|
2135
|
-
name:
|
|
2144
|
+
H(Object.keys($.$slots).filter((i) => i.startsWith("field-")), (i) => ({
|
|
2145
|
+
name: i,
|
|
2136
2146
|
fn: y((M) => [
|
|
2137
|
-
A($.$slots,
|
|
2147
|
+
A($.$slots, i, de(Ce(M)))
|
|
2138
2148
|
])
|
|
2139
2149
|
}))
|
|
2140
2150
|
]), 1040, ["modelValue"])
|
|
@@ -2154,13 +2164,13 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2154
2164
|
$.float || $.fixedRight ? (t(), V(pe, {
|
|
2155
2165
|
key: 0,
|
|
2156
2166
|
variant: "transparent",
|
|
2157
|
-
onClick:
|
|
2167
|
+
onClick: l
|
|
2158
2168
|
}, {
|
|
2159
2169
|
default: y(() => [
|
|
2160
|
-
Q(C(e(
|
|
2170
|
+
Q(C(e(b)("action.cancel", { capitalize: !0 })), 1)
|
|
2161
2171
|
]),
|
|
2162
2172
|
_: 1
|
|
2163
|
-
})) :
|
|
2173
|
+
})) : h("", !0),
|
|
2164
2174
|
L(pe, {
|
|
2165
2175
|
large: "",
|
|
2166
2176
|
disabled: !e(u).isInsertReady || e(u).loading.get,
|
|
@@ -2168,7 +2178,7 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2168
2178
|
onClick: d
|
|
2169
2179
|
}, {
|
|
2170
2180
|
default: y(() => [
|
|
2171
|
-
Q(C(e(
|
|
2181
|
+
Q(C(e(b)("action.insert", { capitalize: !0 })), 1)
|
|
2172
2182
|
]),
|
|
2173
2183
|
_: 1
|
|
2174
2184
|
}, 8, ["disabled", "loading"])
|
|
@@ -2237,21 +2247,21 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2237
2247
|
},
|
|
2238
2248
|
emits: ["itemClick"],
|
|
2239
2249
|
setup(p, { emit: r }) {
|
|
2240
|
-
const o = p, n = r, a = Le(), c = o.collection || Me(), u = c ? re(typeof c == "string" ? c : c.value) : null,
|
|
2250
|
+
const o = p, n = r, a = Le(), c = o.collection || Me(), u = c ? re(typeof c == "string" ? c : c.value) : null, m = K({
|
|
2241
2251
|
get: () => u == null ? void 0 : u.selected,
|
|
2242
2252
|
set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
|
|
2243
|
-
}), d = K(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0),
|
|
2244
|
-
var
|
|
2245
|
-
const B = (
|
|
2253
|
+
}), d = K(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), b = (f, B) => f.button ? typeof f.button == "object" ? Qe(B, f.button).satisfied : f.button : !1, l = (f) => {
|
|
2254
|
+
var i;
|
|
2255
|
+
const B = (i = o.layout) == null ? void 0 : i.actions;
|
|
2246
2256
|
return !a.value.xl || !B || !o.actions ? [] : o.actions.filter((M) => {
|
|
2247
2257
|
const E = B[M.action];
|
|
2248
|
-
return E &&
|
|
2258
|
+
return E && b(E, f);
|
|
2249
2259
|
});
|
|
2250
2260
|
}, v = (f) => {
|
|
2251
|
-
var
|
|
2261
|
+
var i;
|
|
2252
2262
|
if (!o.actions)
|
|
2253
2263
|
return [];
|
|
2254
|
-
const B = (
|
|
2264
|
+
const B = (i = o.layout) == null ? void 0 : i.actions;
|
|
2255
2265
|
return !a.value.xl || !B ? o.actions : o.actions.filter((M) => {
|
|
2256
2266
|
const E = B[M.action];
|
|
2257
2267
|
if (M.roles) {
|
|
@@ -2259,73 +2269,73 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2259
2269
|
if (!bt(M.roles, Z.currentUser.roles))
|
|
2260
2270
|
return !1;
|
|
2261
2271
|
}
|
|
2262
|
-
return !E || !
|
|
2272
|
+
return !E || !b(E, f);
|
|
2263
2273
|
});
|
|
2264
2274
|
}, $ = (f, B) => {
|
|
2265
2275
|
var E, Z;
|
|
2266
|
-
const
|
|
2276
|
+
const i = [], M = (Z = (E = o.layout) == null ? void 0 : E.actions) == null ? void 0 : Z[B.action];
|
|
2267
2277
|
return M != null && M.if && (Qe(
|
|
2268
2278
|
f,
|
|
2269
2279
|
M.if
|
|
2270
|
-
).satisfied ||
|
|
2280
|
+
).satisfied || i.push("display: none;")), i.join("");
|
|
2271
2281
|
};
|
|
2272
2282
|
return (f, B) => {
|
|
2273
2283
|
var M, E, Z;
|
|
2274
|
-
const
|
|
2275
|
-
return d.value > 0 || f.$slots.thead ? (t(),
|
|
2276
|
-
f.$slots.thead ? (t(),
|
|
2284
|
+
const i = ne("clickable");
|
|
2285
|
+
return d.value > 0 || f.$slots.thead ? (t(), s("table", Zo, [
|
|
2286
|
+
f.$slots.thead ? (t(), s("thead", Po, [
|
|
2277
2287
|
A(f.$slots, "thead", {}, void 0, !0)
|
|
2278
|
-
])) : (t(),
|
|
2288
|
+
])) : (t(), s("thead", No, [
|
|
2279
2289
|
I("tr", null, [
|
|
2280
|
-
f.checkbox && e(u) && e(a).md ? (t(),
|
|
2290
|
+
f.checkbox && e(u) && e(a).md ? (t(), s("th", xo, [
|
|
2281
2291
|
I("input", {
|
|
2282
2292
|
type: "checkbox",
|
|
2283
2293
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2284
|
-
onChange: B[0] || (B[0] = (
|
|
2294
|
+
onChange: B[0] || (B[0] = (g) => e(u).$actions.selectAllItems(g.target.checked))
|
|
2285
2295
|
}, null, 40, ea)
|
|
2286
|
-
])) :
|
|
2287
|
-
(t(!0),
|
|
2296
|
+
])) : h("", !0),
|
|
2297
|
+
(t(!0), s(P, null, H(Object.entries(f.columns), ([g, G], oe) => (t(), s("th", {
|
|
2288
2298
|
key: `header-${oe}`,
|
|
2289
2299
|
class: "table__header"
|
|
2290
|
-
}, C(G.description || e(q)(
|
|
2291
|
-
(M = f.actions) != null && M.length ? (t(),
|
|
2300
|
+
}, C(G.description || e(q)(g)), 1))), 128)),
|
|
2301
|
+
(M = f.actions) != null && M.length ? (t(), s("th", ta)) : h("", !0)
|
|
2292
2302
|
])
|
|
2293
2303
|
])),
|
|
2294
|
-
f.$slots.tbody ? (t(),
|
|
2304
|
+
f.$slots.tbody ? (t(), s("tbody", na, [
|
|
2295
2305
|
A(f.$slots, "tbody", {}, void 0, !0)
|
|
2296
|
-
])) : (t(),
|
|
2297
|
-
(t(!0),
|
|
2306
|
+
])) : (t(), s("tbody", oa, [
|
|
2307
|
+
(t(!0), s(P, null, H(f.rows, (g) => {
|
|
2298
2308
|
var G, oe;
|
|
2299
|
-
return t(),
|
|
2300
|
-
key:
|
|
2301
|
-
onClick: (w) => n("itemClick",
|
|
2309
|
+
return t(), s("tr", {
|
|
2310
|
+
key: g._id,
|
|
2311
|
+
onClick: (w) => n("itemClick", g)
|
|
2302
2312
|
}, [
|
|
2303
|
-
e(u) && f.checkbox && e(a).md ? (t(),
|
|
2313
|
+
e(u) && f.checkbox && e(a).md ? (t(), s("td", la, [
|
|
2304
2314
|
J(I("input", {
|
|
2305
|
-
"onUpdate:modelValue": B[1] || (B[1] = (w) =>
|
|
2315
|
+
"onUpdate:modelValue": B[1] || (B[1] = (w) => m.value = w),
|
|
2306
2316
|
type: "checkbox",
|
|
2307
|
-
value:
|
|
2317
|
+
value: g._id
|
|
2308
2318
|
}, null, 8, sa), [
|
|
2309
|
-
[kt,
|
|
2319
|
+
[kt, m.value]
|
|
2310
2320
|
])
|
|
2311
|
-
])) :
|
|
2312
|
-
(t(!0),
|
|
2321
|
+
])) : h("", !0),
|
|
2322
|
+
(t(!0), s(P, null, H(Object.entries(f.columns), ([w, te], ke) => {
|
|
2313
2323
|
var ce, ae, O;
|
|
2314
|
-
return t(),
|
|
2315
|
-
key: `column-${
|
|
2324
|
+
return t(), s("td", {
|
|
2325
|
+
key: `column-${g._id}-${ke}`
|
|
2316
2326
|
}, [
|
|
2317
2327
|
I("div", ia, C(te.description || e(q)(w)), 1),
|
|
2318
|
-
`row-${w}` in f.$slots ? (t(),
|
|
2319
|
-
A(f.$slots, `row-${w}`,
|
|
2328
|
+
`row-${w}` in f.$slots ? (t(), s("div", ra, [
|
|
2329
|
+
A(f.$slots, `row-${w}`, z({ ref_for: !0 }, {
|
|
2320
2330
|
store: e(u),
|
|
2321
2331
|
column: w,
|
|
2322
2332
|
property: te,
|
|
2323
|
-
row:
|
|
2333
|
+
row: g
|
|
2324
2334
|
}), void 0, !0)
|
|
2325
|
-
])) : (t(),
|
|
2335
|
+
])) : (t(), s("div", ua, [
|
|
2326
2336
|
I("div", ca, [
|
|
2327
|
-
"type" in te && te.type === "boolean" ? (t(),
|
|
2328
|
-
|
|
2337
|
+
"type" in te && te.type === "boolean" ? (t(), s("div", da, [
|
|
2338
|
+
g[w] ? (t(), V(Y, {
|
|
2329
2339
|
key: 0,
|
|
2330
2340
|
icon: "check",
|
|
2331
2341
|
"icon-classes": "aeria-blueish"
|
|
@@ -2344,73 +2354,73 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2344
2354
|
]),
|
|
2345
2355
|
_: 1
|
|
2346
2356
|
}))
|
|
2347
|
-
])) : ((ce = e(me)(te)) == null ? void 0 : ce.$ref) === "file" ? (t(),
|
|
2348
|
-
|
|
2349
|
-
"items" in te &&
|
|
2357
|
+
])) : ((ce = e(me)(te)) == null ? void 0 : ce.$ref) === "file" ? (t(), s("div", pa, [
|
|
2358
|
+
g[w] ? (t(), s("div", _a, [
|
|
2359
|
+
"items" in te && g[w][0] && /^image/.test(g[w][0].type) ? (t(), V(Ue, {
|
|
2350
2360
|
key: 0,
|
|
2351
|
-
modelValue:
|
|
2352
|
-
"onUpdate:modelValue": (k) =>
|
|
2361
|
+
modelValue: g[w][0].link,
|
|
2362
|
+
"onUpdate:modelValue": (k) => g[w][0].link = k,
|
|
2353
2363
|
expandable: "",
|
|
2354
|
-
meta:
|
|
2364
|
+
meta: g[w][0],
|
|
2355
2365
|
alt: "Row image",
|
|
2356
2366
|
class: "table__picture"
|
|
2357
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(
|
|
2367
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(g[w].type) ? (t(), V(Ue, {
|
|
2358
2368
|
key: 1,
|
|
2359
|
-
modelValue:
|
|
2360
|
-
"onUpdate:modelValue": (k) =>
|
|
2369
|
+
modelValue: g[w].link,
|
|
2370
|
+
"onUpdate:modelValue": (k) => g[w].link = k,
|
|
2361
2371
|
expandable: "",
|
|
2362
|
-
meta:
|
|
2372
|
+
meta: g[w],
|
|
2363
2373
|
alt: "Row image",
|
|
2364
2374
|
class: "table__picture"
|
|
2365
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) :
|
|
2375
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : g[w].link ? (t(), s("a", {
|
|
2366
2376
|
key: 2,
|
|
2367
|
-
href:
|
|
2377
|
+
href: g[w].link,
|
|
2368
2378
|
style: { "font-size": "10pt" }
|
|
2369
|
-
}, C(
|
|
2370
|
-
])) : (t(),
|
|
2371
|
-
])) : (t(),
|
|
2372
|
-
e(u) ? (t(),
|
|
2373
|
-
value:
|
|
2379
|
+
}, C(g[w].filename), 9, ma)) : (t(), s("div", fa, " - "))
|
|
2380
|
+
])) : (t(), s("div", va, " - "))
|
|
2381
|
+
])) : (t(), s("div", ya, [
|
|
2382
|
+
e(u) ? (t(), s("span", ba, C(e(u).$actions.formatValue({
|
|
2383
|
+
value: g[w],
|
|
2374
2384
|
key: w,
|
|
2375
2385
|
property: te
|
|
2376
|
-
})), 1)) : (t(),
|
|
2377
|
-
((O = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : O.length) > 1 ? (t(),
|
|
2378
|
-
(t(!0),
|
|
2386
|
+
})), 1)) : (t(), s("span", ha, C(Array.isArray(g[w]) ? g[w].filter((k) => !!k).join(", ") : [void 0, null].includes(g[w]) ? "-" : g[w]), 1)),
|
|
2387
|
+
((O = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : O.length) > 1 ? (t(), s("div", ga, [
|
|
2388
|
+
(t(!0), s(P, null, H(e(me)(te).indexes.slice(1, 2), (k, N) => (t(), s("div", {
|
|
2379
2389
|
key: `subvalue-${N}`,
|
|
2380
2390
|
class: "table__cell-subvalue"
|
|
2381
2391
|
}, C(e(u).$actions.formatValue({
|
|
2382
|
-
value:
|
|
2392
|
+
value: g[w],
|
|
2383
2393
|
key: w,
|
|
2384
2394
|
property: te,
|
|
2385
2395
|
index: k
|
|
2386
2396
|
})), 1))), 128))
|
|
2387
|
-
])) :
|
|
2397
|
+
])) : h("", !0)
|
|
2388
2398
|
]))
|
|
2389
2399
|
])
|
|
2390
2400
|
]))
|
|
2391
2401
|
]);
|
|
2392
2402
|
}), 128)),
|
|
2393
|
-
(G = f.actions) != null && G.length && e(a).md ? (t(),
|
|
2403
|
+
(G = f.actions) != null && G.length && e(a).md ? (t(), s("td", $a, [
|
|
2394
2404
|
I("div", ka, [
|
|
2395
|
-
(t(!0),
|
|
2405
|
+
(t(!0), s(P, null, H(l(g), (w) => (t(), V(pe, {
|
|
2396
2406
|
key: `action-${w.action}`,
|
|
2397
2407
|
small: "",
|
|
2398
2408
|
variant: "alt",
|
|
2399
2409
|
icon: w.icon,
|
|
2400
|
-
style: $e($(
|
|
2401
|
-
onClick: (te) => w.click(
|
|
2410
|
+
style: $e($(g, w)),
|
|
2411
|
+
onClick: (te) => w.click(g)
|
|
2402
2412
|
}, {
|
|
2403
2413
|
default: y(() => [
|
|
2404
2414
|
Q(C(e(q)(w.label)), 1)
|
|
2405
2415
|
]),
|
|
2406
2416
|
_: 2
|
|
2407
2417
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2408
|
-
v(
|
|
2418
|
+
v(g).length > 0 ? (t(), V(Ie, z({
|
|
2409
2419
|
key: 0,
|
|
2410
2420
|
ref_for: !0
|
|
2411
2421
|
}, {
|
|
2412
|
-
subject:
|
|
2413
|
-
actions: v(
|
|
2422
|
+
subject: g,
|
|
2423
|
+
actions: v(g)
|
|
2414
2424
|
}), {
|
|
2415
2425
|
default: y(({
|
|
2416
2426
|
visible: w
|
|
@@ -2420,21 +2430,21 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2420
2430
|
active: w,
|
|
2421
2431
|
icon: "dots-three"
|
|
2422
2432
|
}, null, 8, ["active"]), [
|
|
2423
|
-
[
|
|
2433
|
+
[i]
|
|
2424
2434
|
])
|
|
2425
2435
|
]),
|
|
2426
2436
|
_: 2
|
|
2427
|
-
}, 1040)) :
|
|
2437
|
+
}, 1040)) : h("", !0)
|
|
2428
2438
|
])
|
|
2429
|
-
])) : (oe = f.actions) != null && oe.length ? (t(),
|
|
2439
|
+
])) : (oe = f.actions) != null && oe.length ? (t(), s("td", Va, [
|
|
2430
2440
|
I("div", {
|
|
2431
2441
|
class: "table__mobile-actions-grid",
|
|
2432
|
-
style: $e(`grid-template-columns: repeat(${
|
|
2442
|
+
style: $e(`grid-template-columns: repeat(${l(g).length + (v(g).length ? 1 : 0)}, 1fr);`)
|
|
2433
2443
|
}, [
|
|
2434
|
-
(t(!0),
|
|
2444
|
+
(t(!0), s(P, null, H(l(g), (w) => (t(), V(ye, {
|
|
2435
2445
|
key: `action-${w.action}`,
|
|
2436
2446
|
class: "table__mobile-actions-button",
|
|
2437
|
-
onClick: (te) => w.click(
|
|
2447
|
+
onClick: (te) => w.click(g)
|
|
2438
2448
|
}, {
|
|
2439
2449
|
default: y(() => [
|
|
2440
2450
|
L(Y, {
|
|
@@ -2448,12 +2458,12 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2448
2458
|
]),
|
|
2449
2459
|
_: 2
|
|
2450
2460
|
}, 1032, ["onClick"]))), 128)),
|
|
2451
|
-
v(
|
|
2461
|
+
v(g).length > 0 ? (t(), V(Ie, z({
|
|
2452
2462
|
key: 0,
|
|
2453
2463
|
ref_for: !0
|
|
2454
2464
|
}, {
|
|
2455
|
-
subject:
|
|
2456
|
-
actions: v(
|
|
2465
|
+
subject: g,
|
|
2466
|
+
actions: v(g)
|
|
2457
2467
|
}), {
|
|
2458
2468
|
default: y(() => [
|
|
2459
2469
|
L(Y, {
|
|
@@ -2462,25 +2472,25 @@ const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2462
2472
|
})
|
|
2463
2473
|
]),
|
|
2464
2474
|
_: 2
|
|
2465
|
-
}, 1040)) :
|
|
2475
|
+
}, 1040)) : h("", !0)
|
|
2466
2476
|
], 4),
|
|
2467
2477
|
I("div", {
|
|
2468
|
-
id: `dropdown-${
|
|
2478
|
+
id: `dropdown-${g._id}`
|
|
2469
2479
|
}, null, 8, Ca)
|
|
2470
|
-
])) :
|
|
2480
|
+
])) : h("", !0)
|
|
2471
2481
|
], 8, aa);
|
|
2472
2482
|
}), 128))
|
|
2473
2483
|
])),
|
|
2474
2484
|
I("tfoot", null, [
|
|
2475
|
-
f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (t(),
|
|
2485
|
+
f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (t(), s("tr", Oa, [
|
|
2476
2486
|
I("td", {
|
|
2477
2487
|
colspan: d.value + 1
|
|
2478
2488
|
}, [
|
|
2479
2489
|
I("div", Ia, C(e(q)("no_results", { capitalize: !0 })) + ". ", 1)
|
|
2480
2490
|
], 8, Aa)
|
|
2481
|
-
])) :
|
|
2491
|
+
])) : h("", !0)
|
|
2482
2492
|
])
|
|
2483
|
-
])) :
|
|
2493
|
+
])) : h("", !0);
|
|
2484
2494
|
};
|
|
2485
2495
|
}
|
|
2486
2496
|
});
|
|
@@ -2503,18 +2513,18 @@ const Sa = /* @__PURE__ */ D(Ba, [["__scopeId", "data-v-89303bb6"]]), wa = /* @_
|
|
|
2503
2513
|
};
|
|
2504
2514
|
return Object.assign(c, r.componentProps);
|
|
2505
2515
|
});
|
|
2506
|
-
return (c, u) => (t(),
|
|
2507
|
-
c.$slots.inner ? A(c.$slots, "inner", { key: 0 }) :
|
|
2508
|
-
e(o).properties ? (t(), V(Sa,
|
|
2516
|
+
return (c, u) => (t(), s("div", null, [
|
|
2517
|
+
c.$slots.inner ? A(c.$slots, "inner", { key: 0 }) : h("", !0),
|
|
2518
|
+
e(o).properties ? (t(), V(Sa, z({ key: 1 }, a.value, {
|
|
2509
2519
|
key: e(o).$id
|
|
2510
2520
|
}), _e({ _: 2 }, [
|
|
2511
|
-
H(Object.keys(c.$slots).filter((
|
|
2512
|
-
name:
|
|
2521
|
+
H(Object.keys(c.$slots).filter((m) => !["inner"].includes(m)), (m) => ({
|
|
2522
|
+
name: m,
|
|
2513
2523
|
fn: y((d) => [
|
|
2514
|
-
A(c.$slots,
|
|
2524
|
+
A(c.$slots, m, de(Ce(d)))
|
|
2515
2525
|
])
|
|
2516
2526
|
}))
|
|
2517
|
-
]), 1040)) :
|
|
2527
|
+
]), 1040)) : h("", !0)
|
|
2518
2528
|
]));
|
|
2519
2529
|
}
|
|
2520
2530
|
}), Ta = /* @__PURE__ */ F({
|
|
@@ -2523,7 +2533,7 @@ const Sa = /* @__PURE__ */ D(Ba, [["__scopeId", "data-v-89303bb6"]]), wa = /* @_
|
|
|
2523
2533
|
list: { type: Boolean }
|
|
2524
2534
|
},
|
|
2525
2535
|
setup(p) {
|
|
2526
|
-
return (r, o) => (t(),
|
|
2536
|
+
return (r, o) => (t(), s("div", {
|
|
2527
2537
|
class: W([
|
|
2528
2538
|
"grid",
|
|
2529
2539
|
{ "grid--list": r.list }
|
|
@@ -2547,24 +2557,24 @@ const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2547
2557
|
setup(p) {
|
|
2548
2558
|
const o = p.layoutOptions, n = je(), a = (c) => Array.isArray(c) ? c[0] : c;
|
|
2549
2559
|
return (c, u) => {
|
|
2550
|
-
const
|
|
2560
|
+
const m = ne("clickable");
|
|
2551
2561
|
return t(), V(ja, {
|
|
2552
2562
|
list: c.componentName === "list"
|
|
2553
2563
|
}, {
|
|
2554
2564
|
default: y(() => [
|
|
2555
|
-
(t(!0),
|
|
2565
|
+
(t(!0), s(P, null, H(e(n).items, (d) => (t(), V(sn, {
|
|
2556
2566
|
key: d._id,
|
|
2557
2567
|
inactive: !!(e(o).active && !d[e(o).active]),
|
|
2558
2568
|
horizontal: c.componentName === "list"
|
|
2559
2569
|
}, _e({
|
|
2560
2570
|
footer: y(() => [
|
|
2561
|
-
e(o).title ? (t(),
|
|
2562
|
-
e(o).information ? (t(),
|
|
2571
|
+
e(o).title ? (t(), s("div", Ra, C(d[e(o).title]), 1)) : h("", !0),
|
|
2572
|
+
e(o).information ? (t(), s("div", qa, C(d[e(o).information]), 1)) : h("", !0)
|
|
2563
2573
|
]),
|
|
2564
2574
|
actions: y(() => {
|
|
2565
|
-
var
|
|
2575
|
+
var b;
|
|
2566
2576
|
return [
|
|
2567
|
-
(
|
|
2577
|
+
(b = c.individualActions) != null && b.length ? (t(), V(Ie, z({
|
|
2568
2578
|
key: 0,
|
|
2569
2579
|
ref_for: !0
|
|
2570
2580
|
}, {
|
|
@@ -2572,29 +2582,32 @@ const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2572
2582
|
actions: c.individualActions
|
|
2573
2583
|
}), {
|
|
2574
2584
|
default: y(({
|
|
2575
|
-
visible:
|
|
2585
|
+
visible: l
|
|
2576
2586
|
}) => [
|
|
2577
2587
|
J(L(Y, {
|
|
2578
2588
|
reactive: "",
|
|
2579
|
-
active:
|
|
2589
|
+
active: l,
|
|
2580
2590
|
icon: "dots-three-vertical"
|
|
2581
2591
|
}, null, 8, ["active"]), [
|
|
2582
|
-
[
|
|
2592
|
+
[m]
|
|
2583
2593
|
])
|
|
2584
2594
|
]),
|
|
2585
2595
|
_: 2
|
|
2586
|
-
}, 1040)) :
|
|
2596
|
+
}, 1040)) : h("", !0)
|
|
2587
2597
|
];
|
|
2588
2598
|
}),
|
|
2589
2599
|
default: y(() => {
|
|
2590
|
-
var
|
|
2600
|
+
var b, l;
|
|
2591
2601
|
return [
|
|
2592
|
-
L(Ue, {
|
|
2593
|
-
alt: "Item picture",
|
|
2602
|
+
L(Ue, z({
|
|
2594
2603
|
expandable: "",
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2604
|
+
ref_for: !0
|
|
2605
|
+
}, {
|
|
2606
|
+
url: (b = a(d[e(o).picture])) == null ? void 0 : b.link,
|
|
2607
|
+
meta: a(d[e(o).picture]),
|
|
2608
|
+
height: "16rem",
|
|
2609
|
+
alt: e(o).title ? (l = a(d[e(o).title])) == null ? void 0 : l.link : "Item picture"
|
|
2610
|
+
}), null, 16)
|
|
2598
2611
|
];
|
|
2599
2612
|
}),
|
|
2600
2613
|
_: 2
|
|
@@ -2602,12 +2615,12 @@ const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2602
2615
|
e(o).badge && Array.isArray(d[e(o).badge]) ? {
|
|
2603
2616
|
name: "badge",
|
|
2604
2617
|
fn: y(() => [
|
|
2605
|
-
(t(!0),
|
|
2606
|
-
key: `${d._id}-${
|
|
2618
|
+
(t(!0), s(P, null, H(d[e(o).badge], (b) => (t(), V(Ve, {
|
|
2619
|
+
key: `${d._id}-${b}`,
|
|
2607
2620
|
large: ""
|
|
2608
2621
|
}, {
|
|
2609
2622
|
default: y(() => [
|
|
2610
|
-
Q(C(e(o).translateBadge ? e(q)(
|
|
2623
|
+
Q(C(e(o).translateBadge ? e(q)(b) : b), 1)
|
|
2611
2624
|
]),
|
|
2612
2625
|
_: 2
|
|
2613
2626
|
}, 1024))), 128))
|
|
@@ -2632,14 +2645,14 @@ const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2632
2645
|
};
|
|
2633
2646
|
}
|
|
2634
2647
|
});
|
|
2635
|
-
const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-
|
|
2648
|
+
const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-8073c2ca"]]), Ma = (p) => ({
|
|
2636
2649
|
tabular: wa,
|
|
2637
2650
|
grid: _t,
|
|
2638
2651
|
list: _t
|
|
2639
|
-
})[p],
|
|
2652
|
+
})[p], za = {
|
|
2640
2653
|
key: 2,
|
|
2641
2654
|
class: "crud__controls"
|
|
2642
|
-
},
|
|
2655
|
+
}, Fa = {
|
|
2643
2656
|
key: 0,
|
|
2644
2657
|
class: "crud__search"
|
|
2645
2658
|
}, Ua = { class: "crud__actions" }, Ea = { class: "crud__context-badge" }, Ha = { key: 0 }, Da = {
|
|
@@ -2661,41 +2674,41 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) =
|
|
|
2661
2674
|
},
|
|
2662
2675
|
emits: ["uiEvent"],
|
|
2663
2676
|
setup(p, { emit: r }) {
|
|
2664
|
-
const o = ee(!1), n = ee(!1), a = ee((...O) => null), c = ee(), u = p,
|
|
2677
|
+
const o = ee(!1), n = ee(!1), a = ee((...O) => null), c = ee(), u = p, m = r, d = Be(), b = yt({
|
|
2665
2678
|
delay: 600
|
|
2666
|
-
}),
|
|
2679
|
+
}), l = re("meta"), v = Le(), { reachedEnd: $, detach: f } = Ye(null, {
|
|
2667
2680
|
antecipate: 600
|
|
2668
2681
|
}), B = !v.value.md || u.scrollPagination;
|
|
2669
2682
|
B && ue($, (O) => {
|
|
2670
|
-
O &&
|
|
2683
|
+
O && i.pagination.recordsTotal > i.items.length && Z.value < mt && (Z.value += 1, G());
|
|
2671
2684
|
});
|
|
2672
|
-
const
|
|
2673
|
-
Jo(
|
|
2685
|
+
const i = qt(u.collection);
|
|
2686
|
+
Jo(i, {
|
|
2674
2687
|
persistInQuery: !u.noQueryPersistence
|
|
2675
2688
|
});
|
|
2676
|
-
const M = Ke(), E = u.action ? e(u.action) : Lt(
|
|
2689
|
+
const M = Ke(), E = u.action ? e(u.action) : Lt(i, d, M);
|
|
2677
2690
|
a.value = E[0], c.value = E[1];
|
|
2678
|
-
const Z = ee(0),
|
|
2679
|
-
|
|
2691
|
+
const Z = ee(0), g = ee(!1), G = async (O) => {
|
|
2692
|
+
i.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || i.$filters), Object.assign(i.activeFilters, i.filtersPreset);
|
|
2680
2693
|
const k = {
|
|
2681
|
-
filters:
|
|
2682
|
-
limit:
|
|
2683
|
-
offset:
|
|
2684
|
-
project:
|
|
2694
|
+
filters: i.activeFilters,
|
|
2695
|
+
limit: i.pagination.limit,
|
|
2696
|
+
offset: i.pagination.offset,
|
|
2697
|
+
project: i.preferredTableProperties.length > 0 ? i.preferredTableProperties : i.description.table || Object.keys(i.properties)
|
|
2685
2698
|
};
|
|
2686
|
-
Z.value > 0 && (k.limit = 15, k.offset = Z.value * k.limit),
|
|
2687
|
-
const { error: N, result: le } = await
|
|
2699
|
+
Z.value > 0 && (k.limit = 15, k.offset = Z.value * k.limit), i.description.tableMeta && (k.project = k.project.concat(i.description.tableMeta)), O && Object.assign(k, O), i.loading.getAll = !0;
|
|
2700
|
+
const { error: N, result: le } = await i.$actions.retrieveItems(k);
|
|
2688
2701
|
if (N)
|
|
2689
2702
|
return;
|
|
2690
|
-
const { data:
|
|
2691
|
-
|
|
2703
|
+
const { data: _, pagination: T } = le;
|
|
2704
|
+
i.pagination.recordsCount = T.recordsCount, i.pagination.recordsTotal = T.recordsTotal, Z.value === 0 && i.items.splice(0), i.items.push(..._), i.loading.getAll = !1, g.value = !0;
|
|
2692
2705
|
}, oe = async (O) => {
|
|
2693
2706
|
d.push(qe(d.currentRoute.value, {
|
|
2694
2707
|
query: {
|
|
2695
2708
|
offset: O.offset,
|
|
2696
2709
|
limit: O.limit
|
|
2697
2710
|
}
|
|
2698
|
-
})),
|
|
2711
|
+
})), i.pagination.offset = O.offset, i.pagination.limit = O.limit, G();
|
|
2699
2712
|
}, w = fe("noResultsComponent", null);
|
|
2700
2713
|
ue(() => [
|
|
2701
2714
|
d.currentRoute.value.path,
|
|
@@ -2704,58 +2717,58 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) =
|
|
|
2704
2717
|
if (k && k[0] === O[0] && k[1] === O[1])
|
|
2705
2718
|
return;
|
|
2706
2719
|
const N = d.currentRoute.value;
|
|
2707
|
-
if (
|
|
2708
|
-
const le = Mt(
|
|
2709
|
-
Object.keys(le).length > 0 && Object.assign(
|
|
2720
|
+
if (l.view.title = u.collection, !u.noFetch && (!N.query._popstate || i.itemsCount === 0)) {
|
|
2721
|
+
const le = Mt(i, N.query);
|
|
2722
|
+
Object.keys(le).length > 0 && Object.assign(i.filters, le), await G();
|
|
2710
2723
|
}
|
|
2711
2724
|
}, {
|
|
2712
2725
|
immediate: !0,
|
|
2713
2726
|
flush: "post"
|
|
2714
2727
|
});
|
|
2715
|
-
const [te] =
|
|
2728
|
+
const [te] = b((O) => (d.push(qe(d.currentRoute.value, {
|
|
2716
2729
|
query: {
|
|
2717
2730
|
search: O || void 0
|
|
2718
2731
|
}
|
|
2719
|
-
})), O ? (
|
|
2732
|
+
})), O ? (i.filters = Object.assign(Ae(i.freshFilters), {
|
|
2720
2733
|
$text: {
|
|
2721
2734
|
$search: `"${O}"`,
|
|
2722
2735
|
$caseSensitive: !1
|
|
2723
2736
|
}
|
|
2724
2737
|
}), G({
|
|
2725
2738
|
offset: 0
|
|
2726
|
-
})) : (
|
|
2727
|
-
ue(() =>
|
|
2739
|
+
})) : (i.filters = Ae(i.freshFilters), Z.value = 0, G())));
|
|
2740
|
+
ue(() => i.textQuery, (O) => {
|
|
2728
2741
|
te(O);
|
|
2729
2742
|
});
|
|
2730
2743
|
const ke = (O) => {
|
|
2731
2744
|
O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
|
|
2732
2745
|
};
|
|
2733
2746
|
Vt(() => {
|
|
2734
|
-
|
|
2747
|
+
i.$actions.clearFilters(), i.textQuery = "", f();
|
|
2735
2748
|
}), ue(() => c.value, async (O) => {
|
|
2736
2749
|
var le;
|
|
2737
2750
|
const k = Ae(O);
|
|
2738
2751
|
let N;
|
|
2739
2752
|
if (k)
|
|
2740
|
-
if ((k.name === "spawnEdit" || k.name === "duplicate") && (N =
|
|
2753
|
+
if ((k.name === "spawnEdit" || k.name === "duplicate") && (N = i.$actions.get({
|
|
2741
2754
|
filters: {
|
|
2742
2755
|
_id: k.params._id
|
|
2743
2756
|
}
|
|
2744
2757
|
})), k.name === "spawnAdd")
|
|
2745
|
-
|
|
2746
|
-
delete
|
|
2758
|
+
i.$actions.clearItem(), (le = k.params) != null && le.item && (i.$actions.setItem(k.params.item), Object.keys(k.params.item).forEach((_) => {
|
|
2759
|
+
delete i.referenceItem[_];
|
|
2747
2760
|
})), o.value = "add";
|
|
2748
2761
|
else if (k.name === "spawnEdit")
|
|
2749
|
-
|
|
2762
|
+
i.$actions.setItem(k.params), o.value = "edit";
|
|
2750
2763
|
else if (k.name === "duplicate") {
|
|
2751
2764
|
await N;
|
|
2752
|
-
const
|
|
2753
|
-
if (!(
|
|
2765
|
+
const _ = Object.entries(i.item).reduce((T, [U, X]) => {
|
|
2766
|
+
if (!(U in i.properties))
|
|
2754
2767
|
return {
|
|
2755
2768
|
...T,
|
|
2756
|
-
[
|
|
2769
|
+
[U]: X
|
|
2757
2770
|
};
|
|
2758
|
-
const S =
|
|
2771
|
+
const S = i.properties[U];
|
|
2759
2772
|
if (S.readOnly)
|
|
2760
2773
|
return T;
|
|
2761
2774
|
const R = (ie) => {
|
|
@@ -2772,34 +2785,34 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) =
|
|
|
2772
2785
|
};
|
|
2773
2786
|
return X = Array.isArray(X) ? X.map(R) : R(X), {
|
|
2774
2787
|
...T,
|
|
2775
|
-
[
|
|
2788
|
+
[U]: X
|
|
2776
2789
|
};
|
|
2777
2790
|
}, {});
|
|
2778
|
-
|
|
2791
|
+
i.$actions.setItem(_), delete i.item._id, i.referenceItem = {}, o.value = "duplicate";
|
|
2779
2792
|
} else
|
|
2780
|
-
|
|
2793
|
+
m("uiEvent", k);
|
|
2781
2794
|
}, {
|
|
2782
2795
|
deep: !0
|
|
2783
2796
|
}), ue(() => o, ({ value: O }) => {
|
|
2784
|
-
O === !1 &&
|
|
2797
|
+
O === !1 && i.$actions.clearItem();
|
|
2785
2798
|
});
|
|
2786
2799
|
const ce = K(() => {
|
|
2787
2800
|
if (!u.noActions)
|
|
2788
|
-
return
|
|
2801
|
+
return i.individualActions.map((O) => ({
|
|
2789
2802
|
click: a.value(O),
|
|
2790
2803
|
...O
|
|
2791
2804
|
}));
|
|
2792
|
-
}), ae = K(() =>
|
|
2793
|
-
return ge(
|
|
2794
|
-
var
|
|
2805
|
+
}), ae = K(() => i.actions.filter((O) => !O.button));
|
|
2806
|
+
return ge(ze, K(() => u.collection)), (O, k) => {
|
|
2807
|
+
var _, T, U, X, S, R, ie;
|
|
2795
2808
|
const N = ne("clickable"), le = ne("loading");
|
|
2796
|
-
return t(),
|
|
2809
|
+
return t(), s(P, null, [
|
|
2797
2810
|
n.value ? (t(), V(Ko, {
|
|
2798
|
-
key: e(
|
|
2811
|
+
key: e(i).$id,
|
|
2799
2812
|
modelValue: n.value,
|
|
2800
2813
|
"onUpdate:modelValue": k[0] || (k[0] = (j) => n.value = j)
|
|
2801
|
-
}, null, 8, ["modelValue"])) :
|
|
2802
|
-
o.value ? (t(), V(Xo,
|
|
2814
|
+
}, null, 8, ["modelValue"])) : h("", !0),
|
|
2815
|
+
o.value ? (t(), V(Xo, z({
|
|
2803
2816
|
key: 1,
|
|
2804
2817
|
visible: o.value,
|
|
2805
2818
|
"onUpdate:visible": k[1] || (k[1] = (j) => o.value = j),
|
|
@@ -2832,41 +2845,41 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) =
|
|
|
2832
2845
|
A(O.$slots, j, de(Ce(se)), void 0, !0)
|
|
2833
2846
|
])
|
|
2834
2847
|
}))
|
|
2835
|
-
]), 1040, ["visible"])) :
|
|
2836
|
-
!O.noActions && (e(
|
|
2837
|
-
e(
|
|
2838
|
-
L(Oe,
|
|
2839
|
-
modelValue: e(
|
|
2840
|
-
"onUpdate:modelValue": k[3] || (k[3] = (j) => e(
|
|
2848
|
+
]), 1040, ["visible"])) : h("", !0),
|
|
2849
|
+
!O.noActions && (e(i).description.search || Object.keys(e(i).availableFilters).length > 0 || ((_ = e(i)) == null ? void 0 : _.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && e(i).description.layout && ((T = e(i).description.layout) == null ? void 0 : T.name) !== "tabular") ? (t(), s("div", za, [
|
|
2850
|
+
e(i).description.search ? (t(), s("div", Fa, [
|
|
2851
|
+
L(Oe, z({
|
|
2852
|
+
modelValue: e(i).textQuery,
|
|
2853
|
+
"onUpdate:modelValue": k[3] || (k[3] = (j) => e(i).textQuery = j)
|
|
2841
2854
|
}, {
|
|
2842
2855
|
property: {
|
|
2843
2856
|
type: "string",
|
|
2844
|
-
placeholder: e(
|
|
2857
|
+
placeholder: e(i).description.search.placeholder || "Pesquise aqui",
|
|
2845
2858
|
inputType: "search"
|
|
2846
2859
|
}
|
|
2847
2860
|
}), null, 16, ["modelValue"])
|
|
2848
|
-
])) :
|
|
2861
|
+
])) : h("", !0),
|
|
2849
2862
|
I("div", Ua, [
|
|
2850
|
-
ae.value.length > 0 || !O.noLayoutToggle && e(
|
|
2863
|
+
ae.value.length > 0 || !O.noLayoutToggle && e(i).description.layout && ((U = e(i).description.layout) == null ? void 0 : U.name) !== "tabular" ? (t(), V(Ie, { key: 0 }, _e({
|
|
2851
2864
|
default: y(() => [
|
|
2852
2865
|
L(pe, {
|
|
2853
2866
|
variant: "alt",
|
|
2854
2867
|
icon: "sliders"
|
|
2855
2868
|
}, {
|
|
2856
2869
|
default: y(() => [
|
|
2857
|
-
e(
|
|
2870
|
+
e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2858
2871
|
default: y(() => [
|
|
2859
|
-
Q(C(e(
|
|
2872
|
+
Q(C(e(i).filtersCount), 1)
|
|
2860
2873
|
]),
|
|
2861
2874
|
_: 1
|
|
2862
|
-
})) :
|
|
2875
|
+
})) : h("", !0)
|
|
2863
2876
|
]),
|
|
2864
2877
|
_: 1
|
|
2865
2878
|
})
|
|
2866
2879
|
]),
|
|
2867
2880
|
_: 2
|
|
2868
2881
|
}, [
|
|
2869
|
-
Object.keys(e(
|
|
2882
|
+
Object.keys(e(i).availableFilters).length > 0 ? {
|
|
2870
2883
|
name: "filter",
|
|
2871
2884
|
fn: y(() => [
|
|
2872
2885
|
J((t(), V(Y, {
|
|
@@ -2881,22 +2894,22 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) =
|
|
|
2881
2894
|
[N]
|
|
2882
2895
|
]),
|
|
2883
2896
|
I("div", Ea, [
|
|
2884
|
-
e(
|
|
2897
|
+
e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2885
2898
|
default: y(() => [
|
|
2886
|
-
Q(C(e(
|
|
2899
|
+
Q(C(e(i).filtersCount), 1)
|
|
2887
2900
|
]),
|
|
2888
2901
|
_: 1
|
|
2889
|
-
})) :
|
|
2902
|
+
})) : h("", !0)
|
|
2890
2903
|
])
|
|
2891
2904
|
]),
|
|
2892
2905
|
key: "0"
|
|
2893
2906
|
} : void 0,
|
|
2894
|
-
!O.noLayoutToggle && e(
|
|
2907
|
+
!O.noLayoutToggle && e(i).description.layout && ((X = e(i).description.layout) == null ? void 0 : X.name) !== "tabular" ? {
|
|
2895
2908
|
name: "layout-toggle",
|
|
2896
2909
|
fn: y(() => [
|
|
2897
2910
|
J((t(), V(Y, {
|
|
2898
2911
|
icon: "table",
|
|
2899
|
-
onClick: k[5] || (k[5] = (j) => ke(e(
|
|
2912
|
+
onClick: k[5] || (k[5] = (j) => ke(e(i)))
|
|
2900
2913
|
}, {
|
|
2901
2914
|
default: y(() => [
|
|
2902
2915
|
Q(C(e(q)("change_layout", { capitalize: !0 })), 1)
|
|
@@ -2914,17 +2927,17 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) =
|
|
|
2914
2927
|
j ? (t(), V(Y, {
|
|
2915
2928
|
key: 0,
|
|
2916
2929
|
icon: j.icon || "gear",
|
|
2917
|
-
disabled: e(
|
|
2918
|
-
onClick: (ve) => a.value(j)({ _id: e(
|
|
2930
|
+
disabled: e(i).selected.length === 0 && "selection" in j && j.selection,
|
|
2931
|
+
onClick: (ve) => a.value(j)({ _id: e(i).selected.map((be) => typeof be == "string" || be._id) })
|
|
2919
2932
|
}, {
|
|
2920
2933
|
default: y(() => [
|
|
2921
2934
|
Q(C(e(q)(j.label, { capitalize: !0 })), 1)
|
|
2922
2935
|
]),
|
|
2923
2936
|
_: 2
|
|
2924
|
-
}, 1032, ["icon", "disabled", "onClick"])) :
|
|
2937
|
+
}, 1032, ["icon", "disabled", "onClick"])) : h("", !0)
|
|
2925
2938
|
])
|
|
2926
2939
|
}))
|
|
2927
|
-
]), 1024)) : Object.keys(e(
|
|
2940
|
+
]), 1024)) : Object.keys(e(i).availableFilters).length > 0 ? (t(), V(pe, {
|
|
2928
2941
|
key: 1,
|
|
2929
2942
|
variant: "alt",
|
|
2930
2943
|
icon: "funnel",
|
|
@@ -2932,36 +2945,36 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) =
|
|
|
2932
2945
|
}, {
|
|
2933
2946
|
default: y(() => [
|
|
2934
2947
|
k[8] || (k[8] = I("div", null, "Filtros", -1)),
|
|
2935
|
-
e(
|
|
2948
|
+
e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2936
2949
|
default: y(() => [
|
|
2937
|
-
Q(C(e(
|
|
2950
|
+
Q(C(e(i).filtersCount), 1)
|
|
2938
2951
|
]),
|
|
2939
2952
|
_: 1
|
|
2940
|
-
})) :
|
|
2953
|
+
})) : h("", !0)
|
|
2941
2954
|
]),
|
|
2942
2955
|
_: 1
|
|
2943
|
-
})) :
|
|
2944
|
-
(t(!0),
|
|
2956
|
+
})) : h("", !0),
|
|
2957
|
+
(t(!0), s(P, null, H(e(i).actions.filter((j) => j.button), (j, se) => (t(), V(pe, {
|
|
2945
2958
|
key: `action-${se}`,
|
|
2946
2959
|
icon: j.icon,
|
|
2947
|
-
disabled: e(
|
|
2948
|
-
onClick: (ve) => a.value(j)({ _id: e(
|
|
2960
|
+
disabled: e(i).selected.length === 0 && "selection" in j && j.selection,
|
|
2961
|
+
onClick: (ve) => a.value(j)({ _id: e(i).selected.map((be) => typeof be == "string" || be._id) })
|
|
2949
2962
|
}, {
|
|
2950
2963
|
default: y(() => [
|
|
2951
2964
|
Q(C(e(q)(j.label, { capitalize: !0 })), 1)
|
|
2952
2965
|
]),
|
|
2953
2966
|
_: 2
|
|
2954
2967
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2955
|
-
O.$slots.actions ? A(O.$slots, "actions", { key: 2 }, void 0, !0) :
|
|
2968
|
+
O.$slots.actions ? A(O.$slots, "actions", { key: 2 }, void 0, !0) : h("", !0)
|
|
2956
2969
|
])
|
|
2957
|
-
])) :
|
|
2958
|
-
J((t(),
|
|
2959
|
-
e(
|
|
2960
|
-
e(w) ? (t(), V(he(e(w)), de(
|
|
2961
|
-
collection: e(
|
|
2970
|
+
])) : h("", !0),
|
|
2971
|
+
J((t(), s("div", null, [
|
|
2972
|
+
e(i).itemsCount === 0 && !e(i).loading.getAll && g.value && (e(w) || O.$slots.empty) ? (t(), s("div", Ha, [
|
|
2973
|
+
e(w) ? (t(), V(he(e(w)), de(z({ key: 0 }, {
|
|
2974
|
+
collection: e(i).$id
|
|
2962
2975
|
})), {
|
|
2963
2976
|
default: y(() => [
|
|
2964
|
-
e(
|
|
2977
|
+
e(i).filtersCount === 0 && e(i).description.actions && "spawnAdd" in e(i).description.actions ? (t(), V(pe, {
|
|
2965
2978
|
key: 0,
|
|
2966
2979
|
icon: "plus",
|
|
2967
2980
|
onClick: k[7] || (k[7] = (j) => a.value({
|
|
@@ -2973,20 +2986,20 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) =
|
|
|
2973
2986
|
Q(C(e(q)("add_first_item", { capitalize: !0 })), 1)
|
|
2974
2987
|
]),
|
|
2975
2988
|
_: 1
|
|
2976
|
-
})) :
|
|
2989
|
+
})) : h("", !0)
|
|
2977
2990
|
]),
|
|
2978
2991
|
_: 1
|
|
2979
|
-
}, 16)) : A(O.$slots, "empty", de(
|
|
2980
|
-
collection: e(
|
|
2992
|
+
}, 16)) : A(O.$slots, "empty", de(z({ key: 1 }, {
|
|
2993
|
+
collection: e(i).$id
|
|
2981
2994
|
})), void 0, !0)
|
|
2982
|
-
])) : O.$slots.component ? A(O.$slots, "component", de(
|
|
2983
|
-
store: e(
|
|
2984
|
-
})), void 0, !0) : (t(), V(he(e(Ma)(((S = O.layout) == null ? void 0 : S.name) || e(
|
|
2995
|
+
])) : O.$slots.component ? A(O.$slots, "component", de(z({ key: 1 }, {
|
|
2996
|
+
store: e(i)
|
|
2997
|
+
})), void 0, !0) : (t(), V(he(e(Ma)(((S = O.layout) == null ? void 0 : S.name) || e(i).$currentLayout)), z({ key: 2 }, {
|
|
2985
2998
|
individualActions: ce.value,
|
|
2986
|
-
layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(
|
|
2999
|
+
layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(i).layout.options,
|
|
2987
3000
|
componentProps: O.componentProps
|
|
2988
3001
|
}, {
|
|
2989
|
-
"component-name": ((ie = O.layout) == null ? void 0 : ie.name) || e(
|
|
3002
|
+
"component-name": ((ie = O.layout) == null ? void 0 : ie.name) || e(i).$currentLayout
|
|
2990
3003
|
}), _e({ _: 2 }, [
|
|
2991
3004
|
H(Object.keys(O.$slots).filter((j) => j.startsWith("row-")), (j) => ({
|
|
2992
3005
|
name: j,
|
|
@@ -3003,14 +3016,14 @@ const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) =
|
|
|
3003
3016
|
} : void 0
|
|
3004
3017
|
]), 1040, ["component-name"]))
|
|
3005
3018
|
])), [
|
|
3006
|
-
[le, (!e(B) || Z.value === mt) && e(
|
|
3019
|
+
[le, (!e(B) || Z.value === mt) && e(i).loading.getAll]
|
|
3007
3020
|
]),
|
|
3008
|
-
!e(B) && !O.noControls && !e(
|
|
3021
|
+
!e(B) && !O.noControls && !e(i).loading.getAll && e(i).itemsCount > 0 ? (t(), s("div", Da, [
|
|
3009
3022
|
L(qn, {
|
|
3010
|
-
pagination: e(
|
|
3023
|
+
pagination: e(i).pagination,
|
|
3011
3024
|
onPaginate: oe
|
|
3012
3025
|
}, null, 8, ["pagination"])
|
|
3013
|
-
])) :
|
|
3026
|
+
])) : h("", !0)
|
|
3014
3027
|
], 64);
|
|
3015
3028
|
};
|
|
3016
3029
|
}
|
|
@@ -3037,8 +3050,8 @@ const Al = /* @__PURE__ */ D(Qa, [["__scopeId", "data-v-d64cb42a"]]), Ga = { cla
|
|
|
3037
3050
|
class: "prompt__options",
|
|
3038
3051
|
style: $e(`grid-template-columns: repeat(${Object.keys(n.options).length}, 1fr)`)
|
|
3039
3052
|
}, [
|
|
3040
|
-
(t(!0),
|
|
3041
|
-
key: `option-${
|
|
3053
|
+
(t(!0), s(P, null, H(Object.entries(n.options), ([c, u], m) => (t(), V(ye, {
|
|
3054
|
+
key: `option-${m}`,
|
|
3042
3055
|
class: W([
|
|
3043
3056
|
"prompt__option",
|
|
3044
3057
|
`prompt__option--${u.variant || "primary"}`
|
|
@@ -3073,7 +3086,7 @@ const Ya = /* @__PURE__ */ D(Wa, [["__scopeId", "data-v-4cbfd28f"]]), Ka = { cla
|
|
|
3073
3086
|
const r = re("meta");
|
|
3074
3087
|
return (o, n) => {
|
|
3075
3088
|
const a = ne("clickable");
|
|
3076
|
-
return J((t(),
|
|
3089
|
+
return J((t(), s("div", {
|
|
3077
3090
|
class: W({
|
|
3078
3091
|
toast: !0,
|
|
3079
3092
|
"toast--animate": e(r).toasts[0].itr === o.itr
|
|
@@ -3081,7 +3094,7 @@ const Ya = /* @__PURE__ */ D(Wa, [["__scopeId", "data-v-4cbfd28f"]]), Ka = { cla
|
|
|
3081
3094
|
onAnimationend: n[0] || (n[0] = (c) => e(r).$actions.popToast()),
|
|
3082
3095
|
onClick: n[1] || (n[1] = (c) => e(r).$actions.popToast(o.itr))
|
|
3083
3096
|
}, [
|
|
3084
|
-
L(Y,
|
|
3097
|
+
L(Y, z(
|
|
3085
3098
|
o.icon ? { icon: o.icon } : { icon: "warning-circle" },
|
|
3086
3099
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3087
3100
|
), null, 16),
|
|
@@ -3101,7 +3114,7 @@ const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
|
|
|
3101
3114
|
const r = re("meta"), o = K(() => r.themeOverride || r.theme);
|
|
3102
3115
|
return (n, a) => {
|
|
3103
3116
|
const c = Ct("router-view");
|
|
3104
|
-
return t(),
|
|
3117
|
+
return t(), s("main", {
|
|
3105
3118
|
id: "main",
|
|
3106
3119
|
class: W([
|
|
3107
3120
|
"main",
|
|
@@ -3114,10 +3127,10 @@ const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
|
|
|
3114
3127
|
L(c, null, {
|
|
3115
3128
|
default: y(({ Component: u }) => [
|
|
3116
3129
|
(t(), V(he(u), null, _e({ _: 2 }, [
|
|
3117
|
-
H(Object.keys(n.$slots), (
|
|
3118
|
-
name:
|
|
3130
|
+
H(Object.keys(n.$slots), (m) => ({
|
|
3131
|
+
name: m,
|
|
3119
3132
|
fn: y(() => [
|
|
3120
|
-
A(n.$slots,
|
|
3133
|
+
A(n.$slots, m, {}, void 0, !0)
|
|
3121
3134
|
])
|
|
3122
3135
|
}))
|
|
3123
3136
|
]), 1024))
|
|
@@ -3128,7 +3141,7 @@ const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
|
|
|
3128
3141
|
_: 3
|
|
3129
3142
|
})),
|
|
3130
3143
|
A(n.$slots, "default", {}, void 0, !0),
|
|
3131
|
-
L(Se,
|
|
3144
|
+
L(Se, z({
|
|
3132
3145
|
modelValue: e(r).modal.visible,
|
|
3133
3146
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => e(r).modal.visible = u),
|
|
3134
3147
|
float: "",
|
|
@@ -3138,23 +3151,23 @@ const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
|
|
|
3138
3151
|
onOverlayClick: a[1] || (a[1] = (u) => e(r).modal.visible = !1)
|
|
3139
3152
|
}), {
|
|
3140
3153
|
default: y(() => [
|
|
3141
|
-
e(r).modal.body ? (t(),
|
|
3154
|
+
e(r).modal.body ? (t(), s("div", {
|
|
3142
3155
|
key: 0,
|
|
3143
3156
|
style: { "white-space": "pre-wrap" },
|
|
3144
3157
|
innerHTML: e(r).modal.body
|
|
3145
|
-
}, null, 8, Pa)) :
|
|
3146
|
-
e(r).modal.component ? (t(), V(he(e(r).modal.component), { key: 1 })) :
|
|
3158
|
+
}, null, 8, Pa)) : h("", !0),
|
|
3159
|
+
e(r).modal.component ? (t(), V(he(e(r).modal.component), { key: 1 })) : h("", !0)
|
|
3147
3160
|
]),
|
|
3148
3161
|
_: 1
|
|
3149
3162
|
}, 16, ["modelValue"]),
|
|
3150
|
-
e(r).prompt.visible ? (t(), V(Ya, de(
|
|
3163
|
+
e(r).prompt.visible ? (t(), V(Ya, de(z({ key: 0 }, e(r).prompt)), {
|
|
3151
3164
|
default: y(() => [
|
|
3152
3165
|
Q(C(e(r).prompt.body), 1)
|
|
3153
3166
|
]),
|
|
3154
3167
|
_: 1
|
|
3155
|
-
}, 16)) :
|
|
3168
|
+
}, 16)) : h("", !0),
|
|
3156
3169
|
I("div", Na, [
|
|
3157
|
-
(t(!0),
|
|
3170
|
+
(t(!0), s(P, null, H(e(r).toasts, (u) => (t(), V(Za, z({ ref_for: !0 }, u, {
|
|
3158
3171
|
key: `toast-${u.itr}`
|
|
3159
3172
|
}), {
|
|
3160
3173
|
default: y(() => [
|
|
@@ -3172,8 +3185,8 @@ const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
|
|
|
3172
3185
|
const Il = /* @__PURE__ */ D(el, [["__scopeId", "data-v-8f232683"]]);
|
|
3173
3186
|
const tl = {}, nl = { class: "menu" };
|
|
3174
3187
|
function ol(p, r) {
|
|
3175
|
-
return t(),
|
|
3176
|
-
(t(!0),
|
|
3188
|
+
return t(), s("menu", nl, [
|
|
3189
|
+
(t(!0), s(P, null, H(Object.keys(p.$slots), (o) => (t(), s("div", {
|
|
3177
3190
|
key: o,
|
|
3178
3191
|
class: "menu__entry"
|
|
3179
3192
|
}, [
|
|
@@ -3200,70 +3213,70 @@ const Bl = /* @__PURE__ */ D(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3200
3213
|
setup(p) {
|
|
3201
3214
|
const r = p, o = At(), n = Be(), a = Le(), c = K(() => {
|
|
3202
3215
|
if (r.query) {
|
|
3203
|
-
const
|
|
3204
|
-
if (
|
|
3205
|
-
return
|
|
3216
|
+
const m = n.currentRoute.value.query[r.query];
|
|
3217
|
+
if (m)
|
|
3218
|
+
return m;
|
|
3206
3219
|
} else if (r.param) {
|
|
3207
|
-
const
|
|
3208
|
-
if (
|
|
3209
|
-
return
|
|
3220
|
+
const m = n.currentRoute.value.params[r.param];
|
|
3221
|
+
if (m)
|
|
3222
|
+
return m;
|
|
3210
3223
|
}
|
|
3211
3224
|
return Object.keys(o)[0];
|
|
3212
|
-
}), u = (
|
|
3225
|
+
}), u = (m) => {
|
|
3213
3226
|
r.query && n.push(qe(n.currentRoute.value, {
|
|
3214
3227
|
query: {
|
|
3215
|
-
[r.query]:
|
|
3228
|
+
[r.query]: m
|
|
3216
3229
|
}
|
|
3217
3230
|
})), r.param && n.push(qe(n.currentRoute.value, {
|
|
3218
3231
|
params: {
|
|
3219
|
-
[r.param]:
|
|
3232
|
+
[r.param]: m
|
|
3220
3233
|
}
|
|
3221
3234
|
}));
|
|
3222
3235
|
};
|
|
3223
|
-
return (
|
|
3224
|
-
const
|
|
3225
|
-
return t(),
|
|
3226
|
-
e(a).md && !
|
|
3227
|
-
|
|
3228
|
-
A(
|
|
3229
|
-
])) :
|
|
3230
|
-
(t(!0),
|
|
3231
|
-
key:
|
|
3236
|
+
return (m, d) => {
|
|
3237
|
+
const b = ne("clickable");
|
|
3238
|
+
return t(), s("div", al, [
|
|
3239
|
+
e(a).md && !m.dropdown ? (t(), s("div", ll, [
|
|
3240
|
+
m.$slots.default ? (t(), s("div", sl, [
|
|
3241
|
+
A(m.$slots, "default", {}, void 0, !0)
|
|
3242
|
+
])) : h("", !0),
|
|
3243
|
+
(t(!0), s(P, null, H(Object.keys(m.$slots).filter((l) => l !== "default"), (l, v) => (t(), s("div", {
|
|
3244
|
+
key: l,
|
|
3232
3245
|
class: W({
|
|
3233
3246
|
tabs__tab: !0,
|
|
3234
|
-
"tabs__tab--current":
|
|
3247
|
+
"tabs__tab--current": l === c.value || !c.value && v === 0
|
|
3235
3248
|
}),
|
|
3236
|
-
onClick: ($) => u(
|
|
3249
|
+
onClick: ($) => u(l)
|
|
3237
3250
|
}, [
|
|
3238
|
-
A(
|
|
3251
|
+
A(m.$slots, l, {}, void 0, !0)
|
|
3239
3252
|
], 10, il))), 128))
|
|
3240
|
-
])) : (t(),
|
|
3253
|
+
])) : (t(), s("div", rl, [
|
|
3241
3254
|
L(Ie, null, _e({
|
|
3242
|
-
default: y(({ visible:
|
|
3255
|
+
default: y(({ visible: l }) => [
|
|
3243
3256
|
J((t(), V(Y, {
|
|
3244
3257
|
"icon-right": "",
|
|
3245
|
-
active:
|
|
3258
|
+
active: l,
|
|
3246
3259
|
icon: "caret-down",
|
|
3247
3260
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
3248
3261
|
class: "tabs__context-menu-icon"
|
|
3249
3262
|
}, {
|
|
3250
3263
|
default: y(() => [
|
|
3251
|
-
A(
|
|
3264
|
+
A(m.$slots, c.value, {}, void 0, !0)
|
|
3252
3265
|
]),
|
|
3253
3266
|
_: 2
|
|
3254
3267
|
}, 1032, ["active"])), [
|
|
3255
|
-
[
|
|
3268
|
+
[b]
|
|
3256
3269
|
])
|
|
3257
3270
|
]),
|
|
3258
3271
|
_: 2
|
|
3259
3272
|
}, [
|
|
3260
|
-
H(Object.keys(
|
|
3261
|
-
name:
|
|
3273
|
+
H(Object.keys(m.$slots).filter((l) => l !== "default"), (l) => ({
|
|
3274
|
+
name: l,
|
|
3262
3275
|
fn: y(() => [
|
|
3263
3276
|
I("div", {
|
|
3264
|
-
onClick: (v) => u(
|
|
3277
|
+
onClick: (v) => u(l)
|
|
3265
3278
|
}, [
|
|
3266
|
-
A(
|
|
3279
|
+
A(m.$slots, l, {}, void 0, !0)
|
|
3267
3280
|
], 8, ul)
|
|
3268
3281
|
])
|
|
3269
3282
|
}))
|
|
@@ -3290,46 +3303,46 @@ const dl = /* @__PURE__ */ D(cl, [["__scopeId", "data-v-a20914ab"]]), pl = F({
|
|
|
3290
3303
|
collection: {}
|
|
3291
3304
|
},
|
|
3292
3305
|
setup(p) {
|
|
3293
|
-
const r = p, n = Be().currentRoute, a = Ke(), c = K(() => r.collection ? je(r.collection, a) : typeof n.value.meta.collection == "string" ? je(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? je(n.value.params.collection, a) : null), u = async (
|
|
3294
|
-
const { error:
|
|
3295
|
-
filters:
|
|
3306
|
+
const r = p, n = Be().currentRoute, a = Ke(), c = K(() => r.collection ? je(r.collection, a) : typeof n.value.meta.collection == "string" ? je(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? je(n.value.params.collection, a) : null), u = async (m, d) => {
|
|
3307
|
+
const { error: b, result: l } = await d.$functions[m.badgeFunction]({
|
|
3308
|
+
filters: m.filters
|
|
3296
3309
|
});
|
|
3297
|
-
return
|
|
3310
|
+
return b ? 0 : l;
|
|
3298
3311
|
};
|
|
3299
|
-
return (
|
|
3312
|
+
return (m, d) => c.value && c.value.description.filtersPresets ? (t(), V(dl, {
|
|
3300
3313
|
key: 0,
|
|
3301
3314
|
dropdown: "",
|
|
3302
3315
|
query: "section"
|
|
3303
3316
|
}, _e({ _: 2 }, [
|
|
3304
|
-
H(Object.entries(c.value.description.filtersPresets), ([
|
|
3305
|
-
name:
|
|
3317
|
+
H(Object.entries(c.value.description.filtersPresets), ([b, l]) => ({
|
|
3318
|
+
name: b,
|
|
3306
3319
|
fn: y(() => [
|
|
3307
3320
|
I("div", {
|
|
3308
3321
|
class: "topbar__preset",
|
|
3309
|
-
onClick: (v) => e(ht)(
|
|
3322
|
+
onClick: (v) => e(ht)(l, c.value)
|
|
3310
3323
|
}, [
|
|
3311
|
-
|
|
3324
|
+
l.icon ? (t(), V(Y, {
|
|
3312
3325
|
key: 0,
|
|
3313
|
-
icon:
|
|
3326
|
+
icon: l.icon
|
|
3314
3327
|
}, {
|
|
3315
3328
|
default: y(() => [
|
|
3316
|
-
Q(C(
|
|
3329
|
+
Q(C(l.label || e(q)(b, { plural: !0 })), 1)
|
|
3317
3330
|
]),
|
|
3318
3331
|
_: 2
|
|
3319
|
-
}, 1032, ["icon"])) : (t(),
|
|
3320
|
-
|
|
3332
|
+
}, 1032, ["icon"])) : (t(), s("div", ml, C(l.label || e(q)(b, { plural: !0 })), 1)),
|
|
3333
|
+
l.badgeFunction ? (t(), V(Ve, { key: 2 }, {
|
|
3321
3334
|
default: y(() => [
|
|
3322
3335
|
L(e(pl), {
|
|
3323
3336
|
"initial-value": "0",
|
|
3324
|
-
promise: u(
|
|
3337
|
+
promise: u(l, c.value)
|
|
3325
3338
|
}, null, 8, ["promise"])
|
|
3326
3339
|
]),
|
|
3327
3340
|
_: 2
|
|
3328
|
-
}, 1024)) :
|
|
3341
|
+
}, 1024)) : h("", !0)
|
|
3329
3342
|
], 8, _l)
|
|
3330
3343
|
])
|
|
3331
3344
|
}))
|
|
3332
|
-
]), 1024)) :
|
|
3345
|
+
]), 1024)) : h("", !0);
|
|
3333
3346
|
}
|
|
3334
3347
|
});
|
|
3335
3348
|
const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3343,8 +3356,8 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3343
3356
|
emits: ["update:modelValue"],
|
|
3344
3357
|
setup(p) {
|
|
3345
3358
|
const r = p;
|
|
3346
|
-
ge(
|
|
3347
|
-
const o =
|
|
3359
|
+
ge(ze, null);
|
|
3360
|
+
const o = zt(), n = K(() => o(
|
|
3348
3361
|
r.modelValue.password,
|
|
3349
3362
|
r.modelValue.confirmation
|
|
3350
3363
|
));
|
|
@@ -3389,7 +3402,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3389
3402
|
{
|
|
3390
3403
|
path: "signin",
|
|
3391
3404
|
name: "/user/signin",
|
|
3392
|
-
component: () => import("./signin-
|
|
3405
|
+
component: () => import("./signin-46fed036.js"),
|
|
3393
3406
|
meta: {
|
|
3394
3407
|
title: "Sign in"
|
|
3395
3408
|
}
|
|
@@ -3397,7 +3410,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3397
3410
|
{
|
|
3398
3411
|
path: "signup",
|
|
3399
3412
|
name: "/user/signup",
|
|
3400
|
-
component: () => import("./signup-
|
|
3413
|
+
component: () => import("./signup-23919639.js"),
|
|
3401
3414
|
meta: {
|
|
3402
3415
|
title: "Sign up"
|
|
3403
3416
|
}
|
|
@@ -3405,7 +3418,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3405
3418
|
{
|
|
3406
3419
|
path: "redefine-password",
|
|
3407
3420
|
name: "/user/redefine-password",
|
|
3408
|
-
component: () => import("./redefine-password-
|
|
3421
|
+
component: () => import("./redefine-password-266c2bb6.js"),
|
|
3409
3422
|
meta: {
|
|
3410
3423
|
title: "Redefine password"
|
|
3411
3424
|
}
|
|
@@ -3413,7 +3426,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3413
3426
|
{
|
|
3414
3427
|
path: "activation",
|
|
3415
3428
|
name: "/user/activation",
|
|
3416
|
-
component: () => import("./activation-
|
|
3429
|
+
component: () => import("./activation-54b1d9a6.js"),
|
|
3417
3430
|
meta: {
|
|
3418
3431
|
title: "Activate user"
|
|
3419
3432
|
}
|
|
@@ -3435,7 +3448,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3435
3448
|
name: "/dashboard/:collection",
|
|
3436
3449
|
props: !0,
|
|
3437
3450
|
components: {
|
|
3438
|
-
default: () => import("./index-
|
|
3451
|
+
default: () => import("./index-cb00ac25.js"),
|
|
3439
3452
|
topbar: () => Promise.resolve().then(() => yl)
|
|
3440
3453
|
},
|
|
3441
3454
|
meta: {
|
|
@@ -3449,7 +3462,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3449
3462
|
name: "/dashboard/:collection/:id",
|
|
3450
3463
|
props: !0,
|
|
3451
3464
|
components: {
|
|
3452
|
-
default: () => import("./_id_-
|
|
3465
|
+
default: () => import("./_id_-96b01051.js")
|
|
3453
3466
|
},
|
|
3454
3467
|
meta: {
|
|
3455
3468
|
title: ({ collectionName: o, t: n }) => n(o, {
|
|
@@ -3469,7 +3482,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3469
3482
|
children: [
|
|
3470
3483
|
{
|
|
3471
3484
|
path: "profile",
|
|
3472
|
-
component: () => import("./index-
|
|
3485
|
+
component: () => import("./index-84b8a1c7.js"),
|
|
3473
3486
|
meta: {
|
|
3474
3487
|
title: "User profile",
|
|
3475
3488
|
icon: "user-square"
|
|
@@ -3478,7 +3491,7 @@ const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3478
3491
|
{
|
|
3479
3492
|
path: "changepass",
|
|
3480
3493
|
name: "/dashboard/user/changepass",
|
|
3481
|
-
component: () => import("./index-
|
|
3494
|
+
component: () => import("./index-dca59f5a.js"),
|
|
3482
3495
|
meta: {
|
|
3483
3496
|
title: "Change password",
|
|
3484
3497
|
icon: "lock"
|