@aeria-ui/ui 0.0.158 → 0.0.160
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_-8077e901.js → _id_-27a53395.js} +1 -1
- package/dist/{activation-07331948.js → activation-d4f6bfd3.js} +1 -1
- package/dist/{index-4c54d181.js → index-1254b96e.js} +1 -1
- package/dist/{index-2e73f15f.js → index-344010b1.js} +579 -572
- package/dist/{index-4317eca9.js → index-778db0f9.js} +1 -1
- package/dist/{index-54d393cd.js → index-b72557b8.js} +1 -1
- package/dist/{redefine-password-8c66b2ed.js → redefine-password-d30a850b.js} +1 -1
- package/dist/{signin-1ee6c180.js → signin-0f3fd855.js} +16 -16
- package/dist/{signup-84e9a86f.js → signup-a6e0d10a.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
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 l, normalizeClass as W, Fragment as Z, renderList as D, withDirectives as P, toDisplayString as C, createCommentVNode as g, createTextVNode as G, unref as e, renderSlot as I, withModifiers as Re, inject as fe, computed as X, createElementVNode as B, mergeProps as z, createBlock as V, withCtx as h, resolveDynamicComponent as be, useCssVars as gt, normalizeProps as de, guardReactiveProps as Ce, Teleport as We, createVNode as L, onMounted as Ye, watch as ue, vModelDynamic as $t, onBeforeMount as vt, 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
3
|
import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ke, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as yt, request as jt, useDebounce as ht, convertToSearchQuery as Rt, useParentCollectionStore as je, useCollectionStore as qt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as zt } from "@aeria-ui/core";
|
|
4
4
|
import { arraysIntersect as Ge, deepClone as Ae, getReferenceProperty as me, freshItem as Ft, isRequired as dt, evaluateCondition as Ee, deepMerge as qe } from "@aeriajs/common";
|
|
@@ -16,30 +16,30 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
16
16
|
headers: {}
|
|
17
17
|
},
|
|
18
18
|
setup(p) {
|
|
19
|
-
const r = ee(null),
|
|
20
|
-
return (
|
|
19
|
+
const r = ee(null), n = (o) => typeof o == "string" ? o : o.title;
|
|
20
|
+
return (o, a) => {
|
|
21
21
|
const c = ne("clickable");
|
|
22
|
-
return t(),
|
|
22
|
+
return t(), l("div", {
|
|
23
23
|
class: W({
|
|
24
24
|
accordion: !0,
|
|
25
|
-
"accordion--padded": !
|
|
25
|
+
"accordion--padded": !o.noPadding
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
|
-
(t(!0),
|
|
28
|
+
(t(!0), l(Z, null, D(Object.keys(o.$slots).filter((u) => u !== "default"), (u, m) => (t(), l("div", {
|
|
29
29
|
key: u,
|
|
30
30
|
class: "accordion__slot"
|
|
31
31
|
}, [
|
|
32
|
-
|
|
32
|
+
P((t(), l("div", {
|
|
33
33
|
class: "accordion__header",
|
|
34
34
|
onClick: (d) => r.value === u ? r.value = null : r.value = u
|
|
35
35
|
}, [
|
|
36
|
-
|
|
37
|
-
G(" " + C(
|
|
36
|
+
o.enumerate ? (t(), l("span", Qt, C(m + 1) + ". ", 1)) : g("", !0),
|
|
37
|
+
G(" " + C(o.headers[u] ? n(o.headers[u]) : e(q)(u)), 1)
|
|
38
38
|
], 8, Dt)), [
|
|
39
39
|
[c]
|
|
40
40
|
]),
|
|
41
|
-
r.value === u ? (t(),
|
|
42
|
-
I(
|
|
41
|
+
r.value === u ? (t(), l("div", Gt, [
|
|
42
|
+
I(o.$slots, u, {}, void 0, !0)
|
|
43
43
|
])) : g("", !0)
|
|
44
44
|
]))), 128))
|
|
45
45
|
], 2);
|
|
@@ -47,18 +47,18 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
const Q = (p, r) => {
|
|
50
|
-
const
|
|
51
|
-
for (const [
|
|
52
|
-
o
|
|
53
|
-
return
|
|
54
|
-
},
|
|
50
|
+
const n = p.__vccOpts || p;
|
|
51
|
+
for (const [o, a] of r)
|
|
52
|
+
n[o] = a;
|
|
53
|
+
return n;
|
|
54
|
+
}, Al = /* @__PURE__ */ Q(Wt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ F({
|
|
55
55
|
__name: "aeria-badge",
|
|
56
56
|
props: {
|
|
57
57
|
large: { type: Boolean },
|
|
58
58
|
alt: { type: Boolean }
|
|
59
59
|
},
|
|
60
60
|
setup(p) {
|
|
61
|
-
return (r,
|
|
61
|
+
return (r, n) => (t(), l("div", {
|
|
62
62
|
class: W([
|
|
63
63
|
"badge",
|
|
64
64
|
{ "badge--large": r.large },
|
|
@@ -76,10 +76,10 @@ const Ve = /* @__PURE__ */ Q(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @_
|
|
|
76
76
|
},
|
|
77
77
|
emits: ["click"],
|
|
78
78
|
setup(p, { emit: r }) {
|
|
79
|
-
const
|
|
80
|
-
|
|
79
|
+
const n = p, o = r, a = (c) => {
|
|
80
|
+
n.disabled || o("click", c);
|
|
81
81
|
};
|
|
82
|
-
return (c, u) => (t(),
|
|
82
|
+
return (c, u) => (t(), l("button", {
|
|
83
83
|
class: W([
|
|
84
84
|
"barebutton",
|
|
85
85
|
`barebutton--${c.disabled ? "disabled" : "enabled"}`
|
|
@@ -104,14 +104,14 @@ const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
104
104
|
active: { type: Boolean }
|
|
105
105
|
},
|
|
106
106
|
setup(p) {
|
|
107
|
-
const r = p,
|
|
107
|
+
const r = p, n = fe(St, {}), o = typeof r.reactive == "boolean" ? r.reactive : fe("iconReactive", !1), a = X(() => {
|
|
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(), l("a", {
|
|
112
112
|
class: W([
|
|
113
113
|
"icon",
|
|
114
|
-
{ "icon--reactive": e(
|
|
114
|
+
{ "icon--reactive": e(o) },
|
|
115
115
|
{ "icon--active": c.active },
|
|
116
116
|
c.$slots.default ? "icon--centered" : "icon--standalone"
|
|
117
117
|
])
|
|
@@ -122,7 +122,7 @@ const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
122
122
|
{ "icon__icon--right": c.iconRight }
|
|
123
123
|
])
|
|
124
124
|
}, [
|
|
125
|
-
(t(),
|
|
125
|
+
(t(), l("svg", z({
|
|
126
126
|
width: "24",
|
|
127
127
|
height: "24",
|
|
128
128
|
viewBox: "0 0 256 256",
|
|
@@ -131,11 +131,11 @@ const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
131
131
|
...c.fill ? { fill: c.fill } : {}
|
|
132
132
|
}), [
|
|
133
133
|
B("use", {
|
|
134
|
-
href: `${e(
|
|
134
|
+
href: `${e(n).base || "/"}assets/icons.svg#${a.value}`
|
|
135
135
|
}, null, 8, Xt)
|
|
136
136
|
], 16))
|
|
137
137
|
], 2),
|
|
138
|
-
c.$slots.default ? (t(),
|
|
138
|
+
c.$slots.default ? (t(), l("div", Jt, [
|
|
139
139
|
I(c.$slots, "default", {}, void 0, !0)
|
|
140
140
|
])) : g("", !0)
|
|
141
141
|
], 2));
|
|
@@ -156,7 +156,7 @@ const Y = /* @__PURE__ */ Q(Zt, [["__scopeId", "data-v-263a2782"]]), Pt = { clas
|
|
|
156
156
|
loading: { type: Boolean }
|
|
157
157
|
},
|
|
158
158
|
setup(p) {
|
|
159
|
-
const r = p,
|
|
159
|
+
const r = p, n = fe("buttonVariant", r.variant) || "primary", o = (() => {
|
|
160
160
|
switch (!0) {
|
|
161
161
|
case r.small:
|
|
162
162
|
return "small";
|
|
@@ -168,8 +168,8 @@ const Y = /* @__PURE__ */ Q(Zt, [["__scopeId", "data-v-263a2782"]]), Pt = { clas
|
|
|
168
168
|
return (a, c) => (t(), V(ye, {
|
|
169
169
|
class: W([
|
|
170
170
|
"button",
|
|
171
|
-
`button--${e(o)}`,
|
|
172
171
|
`button--${e(n)}`,
|
|
172
|
+
`button--${e(o)}`,
|
|
173
173
|
{ "button--loading": a.loading }
|
|
174
174
|
]),
|
|
175
175
|
disabled: a.disabled || a.loading
|
|
@@ -185,7 +185,7 @@ const Y = /* @__PURE__ */ Q(Zt, [["__scopeId", "data-v-263a2782"]]), Pt = { clas
|
|
|
185
185
|
])
|
|
186
186
|
]),
|
|
187
187
|
_: 3
|
|
188
|
-
}, 8, ["icon"])) : (t(),
|
|
188
|
+
}, 8, ["icon"])) : (t(), l("div", Nt, [
|
|
189
189
|
I(a.$slots, "default", {}, void 0, !0)
|
|
190
190
|
]))
|
|
191
191
|
]),
|
|
@@ -200,7 +200,7 @@ const pe = /* @__PURE__ */ Q(xt, [["__scopeId", "data-v-e9f582db"]]), en = { cla
|
|
|
200
200
|
horizontal: { type: Boolean }
|
|
201
201
|
},
|
|
202
202
|
setup(p) {
|
|
203
|
-
return (r,
|
|
203
|
+
return (r, n) => (t(), l("div", {
|
|
204
204
|
class: W([
|
|
205
205
|
"card",
|
|
206
206
|
{ "card--inactive": r.inactive },
|
|
@@ -252,68 +252,68 @@ const sn = /* @__PURE__ */ Q(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
|
|
256
|
-
|
|
255
|
+
const n = p, o = r, a = ee(n.collapsed), c = ee(null), { reachedEnd: u } = Ke(c), m = () => {
|
|
256
|
+
o("update:modelValue", !1), o("close");
|
|
257
257
|
}, d = () => {
|
|
258
|
-
|
|
259
|
-
}, v = (
|
|
260
|
-
|
|
258
|
+
o("overlayClick");
|
|
259
|
+
}, v = (s) => {
|
|
260
|
+
o("update:collapsed", s), a.value = s;
|
|
261
261
|
};
|
|
262
|
-
return (
|
|
262
|
+
return (s, y) => {
|
|
263
263
|
const $ = ne("clickable"), f = ne("loading"), A = ne("overlay");
|
|
264
|
-
return
|
|
264
|
+
return s.modelValue ? P((t(), l("div", {
|
|
265
265
|
key: 0,
|
|
266
266
|
class: W([
|
|
267
267
|
"panel",
|
|
268
|
-
{ "panel--fixed":
|
|
268
|
+
{ "panel--fixed": s.fixedRight }
|
|
269
269
|
])
|
|
270
270
|
}, [
|
|
271
271
|
(t(), V(be(
|
|
272
|
-
|
|
272
|
+
s.float || s.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": s.float },
|
|
279
|
+
{ "panel__content--bordered": s.bordered },
|
|
280
|
+
{ "panel__content--fixed-right": s.fixedRight },
|
|
281
|
+
{ "panel__content--transparent": s.transparent },
|
|
282
|
+
{ "panel__content--transparent-mobile": s.transparentMobile },
|
|
283
|
+
{ "panel__content--outer-header": s.outerHeader }
|
|
284
284
|
]),
|
|
285
285
|
onClick: y[2] || (y[2] = (i) => i.stopPropagation())
|
|
286
286
|
}, {
|
|
287
287
|
default: h(() => [
|
|
288
|
-
|
|
288
|
+
s.$slots.header || s.title ? (t(), l("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": s.outerHeader }
|
|
294
294
|
])
|
|
295
295
|
}, [
|
|
296
296
|
B("div", rn, [
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
I(
|
|
297
|
+
s.$slots.header ? I(s.$slots, "header", { key: 0 }, void 0, !0) : s.title ? (t(), l("div", un, C(s.title), 1)) : g("", !0),
|
|
298
|
+
s.$slots.extra ? (t(), l("div", cn, [
|
|
299
|
+
I(s.$slots, "extra", {}, void 0, !0)
|
|
300
300
|
])) : g("", !0)
|
|
301
301
|
]),
|
|
302
|
-
|
|
302
|
+
s.collapsible && a.value ? P((t(), V(Y, {
|
|
303
303
|
key: 0,
|
|
304
304
|
reactive: "",
|
|
305
305
|
icon: "plus",
|
|
306
306
|
onClick: y[0] || (y[0] = (i) => v(!a.value))
|
|
307
307
|
}, null, 512)), [
|
|
308
308
|
[$]
|
|
309
|
-
]) :
|
|
309
|
+
]) : s.collapsible && !a.value ? P((t(), V(Y, {
|
|
310
310
|
key: 1,
|
|
311
311
|
reactive: "",
|
|
312
312
|
icon: "minus",
|
|
313
313
|
onClick: y[1] || (y[1] = (i) => v(!a.value))
|
|
314
314
|
}, null, 512)), [
|
|
315
315
|
[$]
|
|
316
|
-
]) :
|
|
316
|
+
]) : s.closeHint ? P((t(), V(Y, {
|
|
317
317
|
key: 2,
|
|
318
318
|
reactive: "",
|
|
319
319
|
icon: "x",
|
|
@@ -322,39 +322,39 @@ const sn = /* @__PURE__ */ Q(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
|
|
|
322
322
|
[$]
|
|
323
323
|
]) : g("", !0)
|
|
324
324
|
], 2)) : g("", !0),
|
|
325
|
-
a.value ? g("", !0) :
|
|
325
|
+
a.value ? g("", !0) : P((t(), l("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": !s.fill }
|
|
333
333
|
])
|
|
334
334
|
}, [
|
|
335
|
-
I(
|
|
335
|
+
I(s.$slots, "default", {}, void 0, !0)
|
|
336
336
|
], 2)), [
|
|
337
|
-
[f,
|
|
337
|
+
[f, s.loading]
|
|
338
338
|
]),
|
|
339
|
-
|
|
339
|
+
s.$slots.footer ? (t(), l("div", {
|
|
340
340
|
key: 2,
|
|
341
341
|
class: W([
|
|
342
342
|
"panel__footer",
|
|
343
|
-
{ "panel__footer--padded": !
|
|
343
|
+
{ "panel__footer--padded": !s.fillFooter },
|
|
344
344
|
{ "panel__footer--shadowed": !e(u) }
|
|
345
345
|
])
|
|
346
346
|
}, [
|
|
347
|
-
I(
|
|
347
|
+
I(s.$slots, "footer", {}, void 0, !0)
|
|
348
348
|
], 2)) : g("", !0)
|
|
349
349
|
]),
|
|
350
350
|
_: 3
|
|
351
351
|
}, 8, ["class"]))
|
|
352
352
|
], 2)), [
|
|
353
353
|
[A, {
|
|
354
|
-
condition:
|
|
355
|
-
invisible:
|
|
354
|
+
condition: s.overlay || s.fixedRight || s.float,
|
|
355
|
+
invisible: s.invisibleOverlay,
|
|
356
356
|
click: d,
|
|
357
|
-
layer:
|
|
357
|
+
layer: s.overlayLayer || (s.float ? 60 : s.fixedRight ? 50 : 0)
|
|
358
358
|
}]
|
|
359
359
|
]) : g("", !0);
|
|
360
360
|
};
|
|
@@ -376,38 +376,38 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
376
376
|
"4078ef85": m.value.x,
|
|
377
377
|
"4078ef86": m.value.y
|
|
378
378
|
}));
|
|
379
|
-
const
|
|
379
|
+
const n = r, o = ee(null), a = ee(!1), c = (d) => d == null ? void 0 : d.filter((v) => {
|
|
380
380
|
if (v.roles) {
|
|
381
|
-
const
|
|
382
|
-
return Ge(v.roles,
|
|
381
|
+
const s = ie("user");
|
|
382
|
+
return Ge(v.roles, s.currentUser.roles);
|
|
383
383
|
}
|
|
384
384
|
return !0;
|
|
385
385
|
}), u = (d, v) => {
|
|
386
|
-
const
|
|
387
|
-
d.click && d.click(
|
|
386
|
+
const s = v && Ae(v);
|
|
387
|
+
d.click && d.click(s), n("actionClick", {
|
|
388
388
|
action: d,
|
|
389
|
-
subject:
|
|
389
|
+
subject: s
|
|
390
390
|
}), a.value = !1;
|
|
391
391
|
}, m = X(() => {
|
|
392
|
-
if (!
|
|
392
|
+
if (!o.value)
|
|
393
393
|
return {
|
|
394
394
|
x: 0,
|
|
395
395
|
y: 0
|
|
396
396
|
};
|
|
397
|
-
const d =
|
|
397
|
+
const d = o.value.getBoundingClientRect().top, v = o.value.getBoundingClientRect().left, s = o.value.offsetHeight;
|
|
398
398
|
return {
|
|
399
399
|
_: a.value,
|
|
400
400
|
x: Math.floor(v) + "px",
|
|
401
|
-
y: Math.floor(d +
|
|
401
|
+
y: Math.floor(d + s) + "px"
|
|
402
402
|
};
|
|
403
403
|
});
|
|
404
404
|
return (d, v) => {
|
|
405
|
-
const
|
|
406
|
-
return t(),
|
|
407
|
-
Object.keys(d.$slots).some((y) => y !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(),
|
|
405
|
+
const s = ne("overlay");
|
|
406
|
+
return t(), l(Z, null, [
|
|
407
|
+
Object.keys(d.$slots).some((y) => y !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
|
|
408
408
|
key: 0,
|
|
409
409
|
ref_key: "contextmenu",
|
|
410
|
-
ref:
|
|
410
|
+
ref: o,
|
|
411
411
|
class: "contextmenu"
|
|
412
412
|
}, [
|
|
413
413
|
B("a", {
|
|
@@ -423,7 +423,7 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
423
423
|
key: 1,
|
|
424
424
|
to: "main"
|
|
425
425
|
}, [
|
|
426
|
-
|
|
426
|
+
P((t(), V(Se, {
|
|
427
427
|
modelValue: a.value,
|
|
428
428
|
"onUpdate:modelValue": v[4] || (v[4] = (y) => a.value = y),
|
|
429
429
|
fill: "",
|
|
@@ -433,15 +433,15 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
433
433
|
}, {
|
|
434
434
|
default: h(() => [
|
|
435
435
|
B("div", pn, [
|
|
436
|
-
d.$slots.header ? (t(),
|
|
436
|
+
d.$slots.header ? (t(), l("div", _n, [
|
|
437
437
|
I(d.$slots, "header", {}, void 0, !0)
|
|
438
438
|
])) : g("", !0),
|
|
439
|
-
Object.keys(d.$slots).filter((y) => !["default", "extra", "header"].includes(y)).length > 0 ? (t(),
|
|
439
|
+
Object.keys(d.$slots).filter((y) => !["default", "extra", "header"].includes(y)).length > 0 ? (t(), l("div", {
|
|
440
440
|
key: 1,
|
|
441
441
|
class: "content__section",
|
|
442
442
|
onClick: v[1] || (v[1] = (y) => a.value = !1)
|
|
443
443
|
}, [
|
|
444
|
-
(t(!0),
|
|
444
|
+
(t(!0), l(Z, null, D(Object.keys(d.$slots).filter((y) => !["default", "extra", "header"].includes(y)), (y, $) => (t(), V(ye, {
|
|
445
445
|
key: `slot-${$}`,
|
|
446
446
|
class: "content__item content__item--reactive"
|
|
447
447
|
}, {
|
|
@@ -451,12 +451,12 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
451
451
|
_: 2
|
|
452
452
|
}, 1024))), 128))
|
|
453
453
|
])) : g("", !0),
|
|
454
|
-
d.actions !== void 0 && d.actions.length > 0 ? (t(),
|
|
454
|
+
d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
|
|
455
455
|
key: 2,
|
|
456
456
|
class: "content__section",
|
|
457
457
|
onClick: v[2] || (v[2] = (y) => a.value = !1)
|
|
458
458
|
}, [
|
|
459
|
-
(t(!0),
|
|
459
|
+
(t(!0), l(Z, null, D(c(d.actions), (y, $) => (t(), V(ye, {
|
|
460
460
|
key: `action-${$}`,
|
|
461
461
|
class: "content__item content__item--reactive",
|
|
462
462
|
onClick: (f) => u(y, d.subject)
|
|
@@ -474,7 +474,7 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
474
474
|
_: 2
|
|
475
475
|
}, 1032, ["onClick"]))), 128))
|
|
476
476
|
])) : g("", !0),
|
|
477
|
-
d.$slots.extra ? (t(),
|
|
477
|
+
d.$slots.extra ? (t(), l("div", {
|
|
478
478
|
key: 3,
|
|
479
479
|
class: "content__section",
|
|
480
480
|
onClick: v[3] || (v[3] = (y) => a.value = !1)
|
|
@@ -488,7 +488,7 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
488
488
|
_: 3
|
|
489
489
|
}, 8, ["modelValue"])), [
|
|
490
490
|
[
|
|
491
|
-
|
|
491
|
+
s,
|
|
492
492
|
{
|
|
493
493
|
layer: d.overlayLayer,
|
|
494
494
|
click: () => {
|
|
@@ -510,29 +510,29 @@ const Ie = /* @__PURE__ */ Q(fn, [["__scopeId", "data-v-ee3ea72f"]]), vn = { cla
|
|
|
510
510
|
where: { default: "top" }
|
|
511
511
|
},
|
|
512
512
|
setup(p) {
|
|
513
|
-
const r = Le(),
|
|
514
|
-
return (
|
|
513
|
+
const r = Le(), n = ee(!1);
|
|
514
|
+
return (o, a) => e(r).md ? (t(), l("div", {
|
|
515
515
|
key: 0,
|
|
516
516
|
class: "info",
|
|
517
|
-
onMouseleave: a[1] || (a[1] = (c) =>
|
|
517
|
+
onMouseleave: a[1] || (a[1] = (c) => n.value = !1)
|
|
518
518
|
}, [
|
|
519
|
-
|
|
519
|
+
n.value ? (t(), l("div", {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: W([
|
|
522
522
|
"info__bubble",
|
|
523
|
-
`info__bubble--${
|
|
523
|
+
`info__bubble--${o.where}`
|
|
524
524
|
])
|
|
525
525
|
}, [
|
|
526
526
|
B("div", vn, [
|
|
527
|
-
I(
|
|
527
|
+
I(o.$slots, "text", {}, void 0, !0)
|
|
528
528
|
])
|
|
529
529
|
], 2)) : g("", !0),
|
|
530
530
|
B("div", {
|
|
531
|
-
onMouseover: a[0] || (a[0] = (c) =>
|
|
531
|
+
onMouseover: a[0] || (a[0] = (c) => n.value = !0)
|
|
532
532
|
}, [
|
|
533
|
-
I(
|
|
533
|
+
I(o.$slots, "default", {}, void 0, !0)
|
|
534
534
|
], 32)
|
|
535
|
-
], 32)) : I(
|
|
535
|
+
], 32)) : I(o.$slots, "default", { key: 1 }, void 0, !0);
|
|
536
536
|
}
|
|
537
537
|
});
|
|
538
538
|
const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { class: "input" }, gn = {
|
|
@@ -559,8 +559,8 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
559
559
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
560
560
|
setup(p, { emit: r }) {
|
|
561
561
|
var K;
|
|
562
|
-
const
|
|
563
|
-
name:
|
|
562
|
+
const n = p, o = r, a = n.property || {}, c = "icon" in a || "inputType" in a && a.inputType === "search", u = fe("searchOnly", !1), m = fe("innerInputLabel", !1), d = !u && (n.readOnly || a.readOnly), v = (b) => (o("clipboardCopy", b), navigator.clipboard.writeText(b)), s = fe("inputVariant", n.variant) || "normal", y = Object.assign(Object.assign({}, n), {
|
|
563
|
+
name: n.propertyName,
|
|
564
564
|
readonly: d,
|
|
565
565
|
type: (() => {
|
|
566
566
|
if ("type" in a)
|
|
@@ -571,7 +571,7 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
571
571
|
}
|
|
572
572
|
if (a.inputType)
|
|
573
573
|
return a.inputType;
|
|
574
|
-
switch (typeof
|
|
574
|
+
switch (typeof n.modelValue) {
|
|
575
575
|
case "string":
|
|
576
576
|
return "text";
|
|
577
577
|
case "number":
|
|
@@ -580,10 +580,10 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
580
580
|
return "text";
|
|
581
581
|
}
|
|
582
582
|
})(),
|
|
583
|
-
placeholder: m ? a.description ||
|
|
583
|
+
placeholder: m ? a.description || n.propertyName : a.placeholder
|
|
584
584
|
});
|
|
585
585
|
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (y.min = a.minimum), a.exclusiveMinimum && (y.min = a.exclusiveMinimum + 1), a.maximum && (y.max = a.maximum), a.exclusiveMaximum && (y.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (y.type = !u && a.format === "date-time" ? "datetime-local" : "date"), y.minlength = a.minLength, y.maxlength = a.maxLength)), y.type === "text" && u && (y.type = "search"), Ye(() => {
|
|
586
|
-
|
|
586
|
+
n.modelValue !== null && M(n.modelValue);
|
|
587
587
|
});
|
|
588
588
|
const $ = (b) => {
|
|
589
589
|
let U;
|
|
@@ -601,8 +601,8 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
601
601
|
default:
|
|
602
602
|
throw new Error();
|
|
603
603
|
}
|
|
604
|
-
}, f = ee(""), A = ((K =
|
|
605
|
-
ue(() =>
|
|
604
|
+
}, f = ee(""), A = ((K = n.property) == null ? void 0 : K.type) === "string" && n.property.mask ? wt(n.property.mask) : null;
|
|
605
|
+
ue(() => n.modelValue, (b) => {
|
|
606
606
|
f.value = (() => {
|
|
607
607
|
if (A)
|
|
608
608
|
return b ? A.enmask(String(b), void 0, {
|
|
@@ -626,9 +626,9 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
626
626
|
});
|
|
627
627
|
const i = (b) => {
|
|
628
628
|
var U;
|
|
629
|
-
return typeof f.value == "string" && ((U =
|
|
629
|
+
return typeof f.value == "string" && ((U = n.property) == null ? void 0 : U.type) === "string" && A !== null ? (f.value = A.enmask(f.value, void 0, {
|
|
630
630
|
defaultValue: !0
|
|
631
|
-
}),
|
|
631
|
+
}), n.property.maskedValue === !0 ? f.value : A.unmask(f.value)) : b;
|
|
632
632
|
}, M = (b) => {
|
|
633
633
|
const U = (() => {
|
|
634
634
|
if (!b || typeof b != "string")
|
|
@@ -644,58 +644,58 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
644
644
|
return i(b);
|
|
645
645
|
}
|
|
646
646
|
})();
|
|
647
|
-
|
|
647
|
+
o("input", U), o("update:modelValue", U);
|
|
648
648
|
}, E = (b) => {
|
|
649
649
|
const U = b.target.value;
|
|
650
650
|
f.value = U, M(U);
|
|
651
651
|
};
|
|
652
652
|
return (b, U) => {
|
|
653
653
|
const oe = ne("focus"), w = ne("clickable");
|
|
654
|
-
return t(),
|
|
655
|
-
e(m) ? g("", !0) : (t(),
|
|
654
|
+
return t(), l("label", bn, [
|
|
655
|
+
e(m) ? g("", !0) : (t(), l("div", gn, [
|
|
656
656
|
b.$slots.default ? I(b.$slots, "default", { key: 0 }, void 0, !0) : I(b.$slots, "description", { key: 1 }, void 0, !0)
|
|
657
657
|
])),
|
|
658
|
-
b.$slots.hint ? (t(),
|
|
658
|
+
b.$slots.hint ? (t(), l("div", $n, [
|
|
659
659
|
I(b.$slots, "hint", {}, void 0, !0)
|
|
660
660
|
])) : g("", !0),
|
|
661
|
-
"element" in e(a) && e(a).element === "textarea" ? (t(),
|
|
661
|
+
"element" in e(a) && e(a).element === "textarea" ? (t(), l("div", {
|
|
662
662
|
key: 2,
|
|
663
663
|
class: W([
|
|
664
664
|
"input__container",
|
|
665
665
|
"input__container--textarea",
|
|
666
|
-
`input__container--${e(
|
|
666
|
+
`input__container--${e(s)}`
|
|
667
667
|
])
|
|
668
668
|
}, [
|
|
669
|
-
|
|
669
|
+
P(B("textarea", {
|
|
670
670
|
placeholder: e(y).placeholder,
|
|
671
671
|
readonly: e(y).readonly,
|
|
672
672
|
value: b.modelValue,
|
|
673
673
|
class: W([
|
|
674
674
|
"input__textarea",
|
|
675
|
-
`input__input--${e(
|
|
675
|
+
`input__input--${e(s)}`
|
|
676
676
|
]),
|
|
677
677
|
onInput: E
|
|
678
678
|
}, null, 42, kn), [
|
|
679
679
|
[oe, e(a).focus]
|
|
680
680
|
])
|
|
681
|
-
], 2)) : (t(),
|
|
681
|
+
], 2)) : (t(), l("div", {
|
|
682
682
|
key: 3,
|
|
683
683
|
class: W([
|
|
684
684
|
"input__container",
|
|
685
|
-
`input__container--${e(
|
|
685
|
+
`input__container--${e(s)}`
|
|
686
686
|
])
|
|
687
687
|
}, [
|
|
688
|
-
|
|
688
|
+
P(B("input", z(e(y), {
|
|
689
689
|
value: f.value,
|
|
690
690
|
"data-component": "input",
|
|
691
691
|
class: [
|
|
692
692
|
"input__input",
|
|
693
|
-
`input__input--${e(
|
|
693
|
+
`input__input--${e(s)}`,
|
|
694
694
|
{ "input__input--icon": e(c) },
|
|
695
695
|
{ "input__input--readOnly": e(d) }
|
|
696
696
|
],
|
|
697
697
|
onInput: E,
|
|
698
|
-
onChange: U[0] || (U[0] = (te) =>
|
|
698
|
+
onChange: U[0] || (U[0] = (te) => o("change", te))
|
|
699
699
|
}), null, 16, Vn), [
|
|
700
700
|
[oe, e(a).focus]
|
|
701
701
|
]),
|
|
@@ -704,16 +704,16 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
704
704
|
icon: e(a).icon || "magnifying-glass",
|
|
705
705
|
class: W([
|
|
706
706
|
"input__icon",
|
|
707
|
-
`input__icon--${e(
|
|
707
|
+
`input__icon--${e(s)}`
|
|
708
708
|
])
|
|
709
709
|
}, null, 8, ["icon", "class"])) : g("", !0),
|
|
710
|
-
e(d) ? (t(),
|
|
710
|
+
e(d) ? (t(), l("div", Cn, [
|
|
711
711
|
L(hn, null, {
|
|
712
712
|
text: h(() => U[2] || (U[2] = [
|
|
713
713
|
G("Copiar")
|
|
714
714
|
])),
|
|
715
715
|
default: h(() => [
|
|
716
|
-
|
|
716
|
+
P(L(Y, {
|
|
717
717
|
reactive: "",
|
|
718
718
|
icon: "clipboard",
|
|
719
719
|
onClick: U[1] || (U[1] = Re((te) => v(String(b.modelValue || "")), ["prevent"]))
|
|
@@ -748,31 +748,31 @@ const Oe = /* @__PURE__ */ Q(On, [["__scopeId", "data-v-31001eea"]]), An = {
|
|
|
748
748
|
},
|
|
749
749
|
emits: ["update:modelValue", "change"],
|
|
750
750
|
setup(p, { emit: r }) {
|
|
751
|
-
const
|
|
752
|
-
|
|
753
|
-
}, m = (
|
|
754
|
-
|
|
755
|
-
}, d = (
|
|
756
|
-
return
|
|
751
|
+
const n = p, o = r, a = ee(null), c = n.property, u = (s) => {
|
|
752
|
+
o("update:modelValue", s), o("change", s);
|
|
753
|
+
}, m = (s) => {
|
|
754
|
+
s === "" || s === null ? u(null) : n.booleanRef ? u(s === "true") : u(s);
|
|
755
|
+
}, d = (s) => Array.isArray(n.modelValue) ? n.modelValue.includes(s) : n.modelValue === s, v = X(() => n.multiple ? typeof n.multiple == "number" ? n.multiple : 5 : 1);
|
|
756
|
+
return n.multiple && ue(() => n.modelValue, (s) => {
|
|
757
757
|
var $;
|
|
758
758
|
if (!a.value)
|
|
759
759
|
return;
|
|
760
760
|
const y = a.value.querySelector('option[data-selected="true"]');
|
|
761
|
-
y && y.removeAttribute("data-selected"), ($ = a.value.querySelector(`option[value="${
|
|
762
|
-
}), (
|
|
761
|
+
y && y.removeAttribute("data-selected"), ($ = a.value.querySelector(`option[value="${s}"]`)) == null || $.setAttribute("data-selected", "true");
|
|
762
|
+
}), (s, y) => s.readOnly ? (t(), V(Oe, {
|
|
763
763
|
key: 1,
|
|
764
764
|
"read-only": "",
|
|
765
|
-
"model-value":
|
|
766
|
-
}, null, 8, ["model-value"])) : (t(),
|
|
765
|
+
"model-value": s.modelValue
|
|
766
|
+
}, null, 8, ["model-value"])) : (t(), l("select", z({ key: 0 }, {
|
|
767
767
|
size: v.value,
|
|
768
|
-
value:
|
|
768
|
+
value: s.modelValue
|
|
769
769
|
}, {
|
|
770
770
|
ref_key: "select",
|
|
771
771
|
ref: a,
|
|
772
772
|
class: {
|
|
773
773
|
select: !0,
|
|
774
774
|
"select--multiple": !!v.value,
|
|
775
|
-
"select--outline": !
|
|
775
|
+
"select--outline": !s.noOutline
|
|
776
776
|
},
|
|
777
777
|
onChange: y[0] || (y[0] = ($) => m($.target.value))
|
|
778
778
|
}), [
|
|
@@ -780,16 +780,16 @@ const Oe = /* @__PURE__ */ Q(On, [["__scopeId", "data-v-31001eea"]]), An = {
|
|
|
780
780
|
key: 0,
|
|
781
781
|
icon: e(c).icon
|
|
782
782
|
}, null, 8, ["icon"])) : g("", !0),
|
|
783
|
-
!
|
|
784
|
-
(t(!0),
|
|
783
|
+
!n.multiple && !s.required ? (t(), l("option", An, C(e(q)("none")), 1)) : g("", !0),
|
|
784
|
+
(t(!0), l(Z, null, D(e(c) && "enum" in e(c) ? e(c).enum : [], ($) => {
|
|
785
785
|
var f;
|
|
786
|
-
return t(),
|
|
786
|
+
return t(), l("option", {
|
|
787
787
|
key: String($),
|
|
788
788
|
value: $,
|
|
789
789
|
"data-selected": d($)
|
|
790
790
|
}, C((f = e(c)) != null && f.translate ? e(q)($) : $), 9, In);
|
|
791
791
|
}), 128)),
|
|
792
|
-
I(
|
|
792
|
+
I(s.$slots, "default", {}, void 0, !0)
|
|
793
793
|
], 16));
|
|
794
794
|
}
|
|
795
795
|
});
|
|
@@ -804,32 +804,32 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
804
804
|
},
|
|
805
805
|
emits: ["paginate"],
|
|
806
806
|
setup(p, { emit: r }) {
|
|
807
|
-
const
|
|
808
|
-
get: () => Math.floor(
|
|
807
|
+
const n = p, o = r, a = X({
|
|
808
|
+
get: () => Math.floor(n.pagination.offset / n.pagination.limit),
|
|
809
809
|
set: (v) => {
|
|
810
|
-
|
|
810
|
+
n.pagination.offset = v * n.pagination.limit;
|
|
811
811
|
}
|
|
812
812
|
}), c = X({
|
|
813
|
-
get: () =>
|
|
813
|
+
get: () => n.pagination.limit,
|
|
814
814
|
set: (v) => {
|
|
815
|
-
|
|
815
|
+
n.pagination.limit = Number(v);
|
|
816
816
|
}
|
|
817
|
-
}), u = ee(a.value ? a.value + 1 : 1), m = X(() => Math.ceil(
|
|
817
|
+
}), u = ee(a.value ? a.value + 1 : 1), m = X(() => Math.ceil(n.pagination.recordsTotal / n.pagination.limit)), d = (v) => {
|
|
818
818
|
a.value = v === "previous" ? a.value - 1 : a.value + 1;
|
|
819
819
|
};
|
|
820
820
|
return ue([
|
|
821
821
|
a,
|
|
822
822
|
c
|
|
823
823
|
], ([v]) => {
|
|
824
|
-
u.value = v + 1,
|
|
824
|
+
u.value = v + 1, o("paginate", {
|
|
825
825
|
offset: a.value * c.value,
|
|
826
826
|
limit: c.value
|
|
827
827
|
});
|
|
828
|
-
}), (v,
|
|
828
|
+
}), (v, s) => (t(), l("div", Sn, [
|
|
829
829
|
B("div", wn, [
|
|
830
830
|
L(ye, {
|
|
831
831
|
disabled: a.value === 0,
|
|
832
|
-
onClick:
|
|
832
|
+
onClick: s[0] || (s[0] = (y) => a.value = 0)
|
|
833
833
|
}, {
|
|
834
834
|
default: h(() => [
|
|
835
835
|
L(Y, { icon: "caret-double-left" })
|
|
@@ -838,7 +838,7 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
838
838
|
}, 8, ["disabled"]),
|
|
839
839
|
L(ye, {
|
|
840
840
|
disabled: a.value === 0,
|
|
841
|
-
onClick:
|
|
841
|
+
onClick: s[1] || (s[1] = (y) => d("previous"))
|
|
842
842
|
}, {
|
|
843
843
|
default: h(() => [
|
|
844
844
|
L(Y, { icon: "caret-left" })
|
|
@@ -847,7 +847,7 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
847
847
|
}, 8, ["disabled"]),
|
|
848
848
|
L(ye, {
|
|
849
849
|
disabled: a.value === m.value - 1,
|
|
850
|
-
onClick:
|
|
850
|
+
onClick: s[2] || (s[2] = (y) => d("next"))
|
|
851
851
|
}, {
|
|
852
852
|
default: h(() => [
|
|
853
853
|
L(Y, { icon: "caret-right" })
|
|
@@ -856,7 +856,7 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
856
856
|
}, 8, ["disabled"]),
|
|
857
857
|
L(ye, {
|
|
858
858
|
disabled: a.value === m.value - 1,
|
|
859
|
-
onClick:
|
|
859
|
+
onClick: s[3] || (s[3] = (y) => a.value = m.value - 1)
|
|
860
860
|
}, {
|
|
861
861
|
default: h(() => [
|
|
862
862
|
L(Y, { icon: "caret-double-right" })
|
|
@@ -865,7 +865,7 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
865
865
|
}, 8, ["disabled"]),
|
|
866
866
|
L(Je, {
|
|
867
867
|
modelValue: c.value,
|
|
868
|
-
"onUpdate:modelValue":
|
|
868
|
+
"onUpdate:modelValue": s[4] || (s[4] = (y) => c.value = y),
|
|
869
869
|
property: {
|
|
870
870
|
enum: [],
|
|
871
871
|
icon: "list"
|
|
@@ -873,7 +873,7 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
873
873
|
class: "pagination__control"
|
|
874
874
|
}, {
|
|
875
875
|
default: h(() => [
|
|
876
|
-
(t(!0),
|
|
876
|
+
(t(!0), l(Z, null, D(e(Tt), (y) => (t(), l("option", {
|
|
877
877
|
key: `limit-${y}`,
|
|
878
878
|
value: y
|
|
879
879
|
}, C(y), 9, Tn))), 128))
|
|
@@ -881,18 +881,18 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
881
881
|
_: 1
|
|
882
882
|
}, 8, ["modelValue"])
|
|
883
883
|
]),
|
|
884
|
-
v.noSummary ? g("", !0) : (t(),
|
|
884
|
+
v.noSummary ? g("", !0) : (t(), l("div", jn, [
|
|
885
885
|
G(C(e(q)("Page")) + " ", 1),
|
|
886
886
|
(t(), V(Oe, {
|
|
887
887
|
key: a.value,
|
|
888
888
|
modelValue: u.value,
|
|
889
|
-
"onUpdate:modelValue":
|
|
889
|
+
"onUpdate:modelValue": s[5] || (s[5] = (y) => u.value = y),
|
|
890
890
|
property: {
|
|
891
891
|
type: "number",
|
|
892
892
|
minimum: 1
|
|
893
893
|
},
|
|
894
894
|
style: { height: "100%" },
|
|
895
|
-
onChange:
|
|
895
|
+
onChange: s[6] || (s[6] = (y) => {
|
|
896
896
|
a.value = u.value === 0 ? 0 : u.value - 1;
|
|
897
897
|
})
|
|
898
898
|
}, null, 8, ["modelValue"])),
|
|
@@ -919,58 +919,58 @@ const qn = /* @__PURE__ */ Q(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
919
919
|
},
|
|
920
920
|
emits: ["update:modelValue", "change"],
|
|
921
921
|
setup(p, { emit: r }) {
|
|
922
|
-
const
|
|
923
|
-
if (
|
|
924
|
-
switch (
|
|
922
|
+
const n = p, o = n.property, a = n.readOnly || (o == null ? void 0 : o.readOnly), c = (() => {
|
|
923
|
+
if (o && "type" in o)
|
|
924
|
+
switch (o.type) {
|
|
925
925
|
case "array":
|
|
926
926
|
case "boolean":
|
|
927
927
|
return "checkbox";
|
|
928
928
|
}
|
|
929
929
|
return "radio";
|
|
930
|
-
})(), u = r, m =
|
|
930
|
+
})(), u = r, m = n.value || !1, d = X({
|
|
931
931
|
get: () => {
|
|
932
|
-
var
|
|
933
|
-
if (
|
|
934
|
-
if ("type" in
|
|
935
|
-
return !!
|
|
936
|
-
if ("items" in
|
|
937
|
-
return (
|
|
932
|
+
var s;
|
|
933
|
+
if (o) {
|
|
934
|
+
if ("type" in o && o.type === "boolean")
|
|
935
|
+
return !!n.value;
|
|
936
|
+
if ("items" in o)
|
|
937
|
+
return (s = n.modelValue) == null ? void 0 : s.includes(n.value);
|
|
938
938
|
}
|
|
939
|
-
return
|
|
939
|
+
return n.modelValue === n.value;
|
|
940
940
|
},
|
|
941
941
|
set: () => {
|
|
942
|
-
var
|
|
942
|
+
var s;
|
|
943
943
|
if (!a) {
|
|
944
|
-
if (
|
|
945
|
-
if ("type" in
|
|
946
|
-
u("update:modelValue", !
|
|
944
|
+
if (o) {
|
|
945
|
+
if ("type" in o && o.type === "boolean") {
|
|
946
|
+
u("update:modelValue", !n.modelValue);
|
|
947
947
|
return;
|
|
948
948
|
}
|
|
949
|
-
if ("items" in
|
|
950
|
-
if ((
|
|
951
|
-
u("update:modelValue",
|
|
949
|
+
if ("items" in o) {
|
|
950
|
+
if ((s = n.modelValue) != null && s.includes(m)) {
|
|
951
|
+
u("update:modelValue", n.modelValue.filter((y) => y !== m));
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
|
-
u("update:modelValue", [m].concat(
|
|
954
|
+
u("update:modelValue", [m].concat(n.modelValue || []));
|
|
955
955
|
return;
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
u("update:modelValue",
|
|
958
|
+
u("update:modelValue", n.value);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
}), v = (
|
|
962
|
-
a &&
|
|
961
|
+
}), v = (s) => {
|
|
962
|
+
a && s.preventDefault();
|
|
963
963
|
};
|
|
964
|
-
return (
|
|
964
|
+
return (s, y) => {
|
|
965
965
|
var f, A;
|
|
966
966
|
const $ = ne("clickable");
|
|
967
|
-
return
|
|
967
|
+
return P((t(), l("label", {
|
|
968
968
|
class: W([
|
|
969
969
|
"checkbox",
|
|
970
970
|
{ "checkbox--readOnly": e(a) }
|
|
971
971
|
])
|
|
972
972
|
}, [
|
|
973
|
-
|
|
973
|
+
P(B("input", z({
|
|
974
974
|
"onUpdate:modelValue": y[0] || (y[0] = (i) => d.value = i)
|
|
975
975
|
}, {
|
|
976
976
|
type: e(c),
|
|
@@ -984,15 +984,15 @@ const qn = /* @__PURE__ */ Q(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
984
984
|
]),
|
|
985
985
|
B("div", Ln, [
|
|
986
986
|
B("div", null, [
|
|
987
|
-
|
|
987
|
+
s.$slots.description ? I(s.$slots, "description", { key: 0 }, void 0, !0) : e(m) ? (t(), l("div", {
|
|
988
988
|
key: 1,
|
|
989
|
-
innerHTML: (f = e(
|
|
990
|
-
}, null, 8, Mn)) : I(
|
|
989
|
+
innerHTML: (f = e(o)) != null && f.translate ? e(q)(e(m)) : e(m)
|
|
990
|
+
}, null, 8, Mn)) : I(s.$slots, "default", { key: 2 }, void 0, !0)
|
|
991
991
|
]),
|
|
992
992
|
B("div", zn, [
|
|
993
|
-
|
|
993
|
+
s.$slots.hint ? I(s.$slots, "hint", { key: 0 }, void 0, !0) : (A = e(o)) != null && A.hint ? (t(), l("div", {
|
|
994
994
|
key: 1,
|
|
995
|
-
innerHTML: e(
|
|
995
|
+
innerHTML: e(o).hint
|
|
996
996
|
}, null, 8, Fn)) : g("", !0)
|
|
997
997
|
])
|
|
998
998
|
])
|
|
@@ -1019,22 +1019,22 @@ const Hn = /* @__PURE__ */ Q(Un, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
|
|
|
1019
1019
|
},
|
|
1020
1020
|
emits: ["update:modelValue"],
|
|
1021
1021
|
setup(p, { emit: r }) {
|
|
1022
|
-
const
|
|
1023
|
-
|
|
1022
|
+
const n = p, o = r, a = n.readOnly || n.property.readOnly, c = "items" in n.property ? n.property.items.enum : n.property.enum, u = (m) => {
|
|
1023
|
+
o("update:modelValue", m);
|
|
1024
1024
|
};
|
|
1025
1025
|
return vt(() => {
|
|
1026
|
-
|
|
1026
|
+
n.modelValue || o(
|
|
1027
1027
|
"update:modelValue",
|
|
1028
|
-
"items" in
|
|
1028
|
+
"items" in n.property ? [] : ""
|
|
1029
1029
|
);
|
|
1030
|
-
}), (m, d) => (t(),
|
|
1030
|
+
}), (m, d) => (t(), l("div", {
|
|
1031
1031
|
class: "options",
|
|
1032
1032
|
style: $e(`
|
|
1033
1033
|
--columns: ${m.columns};
|
|
1034
1034
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1035
1035
|
`)
|
|
1036
1036
|
}, [
|
|
1037
|
-
(t(!0),
|
|
1037
|
+
(t(!0), l(Z, null, D(e(c), (v) => (t(), l("div", {
|
|
1038
1038
|
key: `option-${v}`,
|
|
1039
1039
|
class: "options__checkbox"
|
|
1040
1040
|
}, [
|
|
@@ -1066,14 +1066,14 @@ const Gn = /* @__PURE__ */ Q(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { cla
|
|
|
1066
1066
|
},
|
|
1067
1067
|
emits: ["update:modelValue", "change"],
|
|
1068
1068
|
setup(p, { emit: r }) {
|
|
1069
|
-
const
|
|
1070
|
-
c || (
|
|
1069
|
+
const n = p, o = r, a = n.property, c = n.readOnly || (a == null ? void 0 : a.readOnly), u = () => {
|
|
1070
|
+
c || (o("change", !n.modelValue), o("update:modelValue", !n.modelValue));
|
|
1071
1071
|
};
|
|
1072
1072
|
return (m, d) => {
|
|
1073
|
-
var
|
|
1073
|
+
var s;
|
|
1074
1074
|
const v = ne("clickable");
|
|
1075
|
-
return t(),
|
|
1076
|
-
|
|
1075
|
+
return t(), l("div", Wn, [
|
|
1076
|
+
P((t(), l("a", {
|
|
1077
1077
|
class: W([
|
|
1078
1078
|
"switch",
|
|
1079
1079
|
{ "switch--active": m.modelValue },
|
|
@@ -1093,7 +1093,7 @@ const Gn = /* @__PURE__ */ Q(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { cla
|
|
|
1093
1093
|
blocked: e(c)
|
|
1094
1094
|
}]
|
|
1095
1095
|
]),
|
|
1096
|
-
m.$slots.default ? I(m.$slots, "default", { key: 0 }, void 0, !0) : (t(),
|
|
1096
|
+
m.$slots.default ? I(m.$slots, "default", { key: 0 }, void 0, !0) : (t(), l("div", Yn, C(((s = e(a)) == null ? void 0 : s.description) || m.propertyName), 1))
|
|
1097
1097
|
]);
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
@@ -1116,38 +1116,38 @@ const Jn = /* @__PURE__ */ Q(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1116
1116
|
meta: {}
|
|
1117
1117
|
},
|
|
1118
1118
|
setup(p) {
|
|
1119
|
-
const r = p,
|
|
1119
|
+
const r = p, n = X(() => r.fileId ? `${yt}/file/${r.fileId}/picture` : r.url || r.modelValue), o = ee(!1);
|
|
1120
1120
|
return (a, c) => {
|
|
1121
1121
|
var m;
|
|
1122
1122
|
const u = ne("overlay");
|
|
1123
|
-
return t(),
|
|
1124
|
-
|
|
1123
|
+
return t(), l("figure", Zn, [
|
|
1124
|
+
n.value && o.value ? (t(), V(We, {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
to: "main"
|
|
1127
1127
|
}, [
|
|
1128
|
-
|
|
1128
|
+
P((t(), l("div", Pn, [
|
|
1129
1129
|
B("img", {
|
|
1130
|
-
src:
|
|
1130
|
+
src: n.value,
|
|
1131
1131
|
alt: a.alt,
|
|
1132
1132
|
style: `
|
|
1133
1133
|
max-height: 60vh;
|
|
1134
1134
|
object-fit: contain;
|
|
1135
1135
|
`,
|
|
1136
|
-
onClick: c[0] || (c[0] = (d) =>
|
|
1136
|
+
onClick: c[0] || (c[0] = (d) => o.value = !0)
|
|
1137
1137
|
}, null, 8, Nn),
|
|
1138
|
-
(m = a.meta) != null && m.owner ? (t(),
|
|
1138
|
+
(m = a.meta) != null && m.owner ? (t(), l("div", xn, C(a.t("created_by")) + " " + C(a.meta.owner.name) + " em " + C(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : g("", !0)
|
|
1139
1139
|
])), [
|
|
1140
1140
|
[u, {
|
|
1141
1141
|
layer: 60,
|
|
1142
1142
|
click: () => {
|
|
1143
|
-
|
|
1143
|
+
o.value = !1;
|
|
1144
1144
|
}
|
|
1145
1145
|
}]
|
|
1146
1146
|
])
|
|
1147
1147
|
])) : g("", !0),
|
|
1148
|
-
|
|
1148
|
+
n.value ? (t(), l("img", {
|
|
1149
1149
|
key: 1,
|
|
1150
|
-
src:
|
|
1150
|
+
src: n.value,
|
|
1151
1151
|
class: W([
|
|
1152
1152
|
"picture__image",
|
|
1153
1153
|
{ "picture__image--bordered": a.bordered },
|
|
@@ -1159,9 +1159,9 @@ const Jn = /* @__PURE__ */ Q(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1159
1159
|
height: ${a.height || "100%"};
|
|
1160
1160
|
`),
|
|
1161
1161
|
onClick: c[1] || (c[1] = () => {
|
|
1162
|
-
a.expandable && (
|
|
1162
|
+
a.expandable && (o.value = !0);
|
|
1163
1163
|
})
|
|
1164
|
-
}, null, 14, eo)) : a.$slots.fallback ? I(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? I(a.$slots, "default", { key: 3 }, void 0, !0) : (t(),
|
|
1164
|
+
}, null, 14, eo)) : a.$slots.fallback ? I(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? I(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), l("svg", {
|
|
1165
1165
|
key: 4,
|
|
1166
1166
|
class: W(["picture__background", [
|
|
1167
1167
|
{ "picture__image--bordered": a.bordered }
|
|
@@ -1192,7 +1192,7 @@ const Jn = /* @__PURE__ */ Q(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1192
1192
|
"vector-effect": "non-scaling-stroke"
|
|
1193
1193
|
}, null, -1)
|
|
1194
1194
|
]), 6)),
|
|
1195
|
-
a.$slots.caption ? (t(),
|
|
1195
|
+
a.$slots.caption ? (t(), l("figcaption", to, [
|
|
1196
1196
|
I(a.$slots, "caption", {}, void 0, !0)
|
|
1197
1197
|
])) : g("", !0)
|
|
1198
1198
|
]);
|
|
@@ -1208,7 +1208,7 @@ const Ue = /* @__PURE__ */ Q(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { cla
|
|
|
1208
1208
|
modelValue: {}
|
|
1209
1209
|
},
|
|
1210
1210
|
setup(p) {
|
|
1211
|
-
const r = p,
|
|
1211
|
+
const r = p, n = "_id" in r.modelValue ? r.modelValue : r.modelValue.file, o = (a) => {
|
|
1212
1212
|
const c = a === 0 ? 0 : Math.floor(Math.log(a) / Math.log(1024));
|
|
1213
1213
|
return `${(a / Math.pow(1024, c)).toFixed(2)} ${[
|
|
1214
1214
|
"B",
|
|
@@ -1218,29 +1218,29 @@ const Ue = /* @__PURE__ */ Q(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { cla
|
|
|
1218
1218
|
"TB"
|
|
1219
1219
|
][c]}`;
|
|
1220
1220
|
};
|
|
1221
|
-
return (a, c) => (t(),
|
|
1222
|
-
"_id" in e(
|
|
1221
|
+
return (a, c) => (t(), l("div", oo, [
|
|
1222
|
+
"_id" in e(n) && e(n).type.startsWith("image/") ? (t(), V(Ue, {
|
|
1223
1223
|
key: 0,
|
|
1224
1224
|
bordered: "",
|
|
1225
1225
|
expandable: "",
|
|
1226
|
-
alt: e(
|
|
1227
|
-
url: e(
|
|
1226
|
+
alt: e(n).name,
|
|
1227
|
+
url: e(n).link,
|
|
1228
1228
|
class: "item__picture"
|
|
1229
1229
|
}, null, 8, ["alt", "url"])) : g("", !0),
|
|
1230
1230
|
B("div", ao, [
|
|
1231
|
-
"_id" in e(
|
|
1231
|
+
"_id" in e(n) ? (t(), V(Y, {
|
|
1232
1232
|
key: 0,
|
|
1233
1233
|
icon: "arrow-square-out",
|
|
1234
|
-
href: e(
|
|
1234
|
+
href: e(n).link,
|
|
1235
1235
|
target: "_blank",
|
|
1236
1236
|
class: "item__name item__name--link"
|
|
1237
1237
|
}, {
|
|
1238
1238
|
default: h(() => [
|
|
1239
|
-
G(C(e(
|
|
1239
|
+
G(C(e(n).name), 1)
|
|
1240
1240
|
]),
|
|
1241
1241
|
_: 1
|
|
1242
|
-
}, 8, ["href"])) : (t(),
|
|
1243
|
-
B("div", so, C(
|
|
1242
|
+
}, 8, ["href"])) : (t(), l("div", lo, C(e(n).name), 1)),
|
|
1243
|
+
B("div", so, C(o(e(n).size)), 1)
|
|
1244
1244
|
]),
|
|
1245
1245
|
B("div", null, [
|
|
1246
1246
|
I(a.$slots, "default", {}, void 0, !0)
|
|
@@ -1267,13 +1267,13 @@ const ro = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1267
1267
|
},
|
|
1268
1268
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1269
1269
|
setup(p, { emit: r }) {
|
|
1270
|
-
const
|
|
1271
|
-
if (
|
|
1272
|
-
return Array.isArray(
|
|
1270
|
+
const n = p, o = n.property && me(n.property), a = r, u = Me() ? He() : null, m = n.multiple || n.property && "type" in n.property && n.property.type === "array", d = X(() => {
|
|
1271
|
+
if (n.modelValue)
|
|
1272
|
+
return Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue];
|
|
1273
1273
|
}), v = ($) => new Promise((f) => {
|
|
1274
1274
|
const A = new FileReader();
|
|
1275
1275
|
A.onload = () => f(A.result), A.readAsArrayBuffer($);
|
|
1276
|
-
}),
|
|
1276
|
+
}), s = async ($) => {
|
|
1277
1277
|
const f = $.target.files;
|
|
1278
1278
|
if (!f)
|
|
1279
1279
|
return;
|
|
@@ -1301,32 +1301,32 @@ const ro = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1301
1301
|
file: i
|
|
1302
1302
|
});
|
|
1303
1303
|
}
|
|
1304
|
-
m ? a("update:modelValue", Array.isArray(
|
|
1304
|
+
m ? a("update:modelValue", Array.isArray(n.modelValue) ? A.concat(n.modelValue) : A) : a("update:modelValue", A[0]), a("update:content", A), a("change", A);
|
|
1305
1305
|
}, y = async ($) => {
|
|
1306
|
-
if (!
|
|
1306
|
+
if (!n.modelValue)
|
|
1307
1307
|
throw new Error();
|
|
1308
|
-
const f = Array.isArray(
|
|
1308
|
+
const f = Array.isArray(n.modelValue) ? n.modelValue.filter((A, i) => i !== $) : [];
|
|
1309
1309
|
m ? a("update:modelValue", f) : a("update:modelValue", null), a("update:content", f), a("change", f);
|
|
1310
1310
|
};
|
|
1311
1311
|
return ($, f) => {
|
|
1312
1312
|
var i, M;
|
|
1313
1313
|
const A = ne("clickable");
|
|
1314
|
-
return t(),
|
|
1315
|
-
$.readOnly ? g("", !0) : (t(),
|
|
1314
|
+
return t(), l("div", uo, [
|
|
1315
|
+
$.readOnly ? g("", !0) : (t(), l("input", {
|
|
1316
1316
|
key: 0,
|
|
1317
1317
|
ref: "file",
|
|
1318
1318
|
type: "file",
|
|
1319
|
-
accept: (M = (i = e(
|
|
1319
|
+
accept: (M = (i = e(o)) == null ? void 0 : i.accept) == null ? void 0 : M.join(","),
|
|
1320
1320
|
multiple: e(m),
|
|
1321
|
-
onChange:
|
|
1321
|
+
onChange: s
|
|
1322
1322
|
}, null, 40, co)),
|
|
1323
|
-
d.value && d.value.length > 0 ? (t(),
|
|
1324
|
-
(t(!0),
|
|
1323
|
+
d.value && d.value.length > 0 ? (t(), l("div", po, [
|
|
1324
|
+
(t(!0), l(Z, null, D(d.value, (E, K) => (t(), V(ro, {
|
|
1325
1325
|
key: "_id" in E ? String(E._id) : E.file.name,
|
|
1326
1326
|
"model-value": E
|
|
1327
1327
|
}, {
|
|
1328
1328
|
default: h(() => [
|
|
1329
|
-
$.readOnly ? g("", !0) :
|
|
1329
|
+
$.readOnly ? g("", !0) : P((t(), V(Y, {
|
|
1330
1330
|
key: 0,
|
|
1331
1331
|
reactive: "",
|
|
1332
1332
|
icon: "trash",
|
|
@@ -1352,13 +1352,13 @@ const mo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-9950a715"]]), fo = { cla
|
|
|
1352
1352
|
},
|
|
1353
1353
|
emits: ["endReached"],
|
|
1354
1354
|
setup(p, { emit: r }) {
|
|
1355
|
-
const
|
|
1355
|
+
const n = p, o = r, a = ee(null), c = n.observeScroll ? Ke(a, {
|
|
1356
1356
|
antecipate: 100
|
|
1357
1357
|
}).reachedEnd : null;
|
|
1358
1358
|
return c !== null && ue(c, (u) => {
|
|
1359
|
-
u &&
|
|
1360
|
-
}), (u, m) => (t(),
|
|
1361
|
-
u.$slots.default ? (t(),
|
|
1359
|
+
u && o("endReached", u);
|
|
1360
|
+
}), (u, m) => (t(), l("div", fo, [
|
|
1361
|
+
u.$slots.default ? (t(), l("div", {
|
|
1362
1362
|
key: 0,
|
|
1363
1363
|
ref_key: "containerEl",
|
|
1364
1364
|
ref: a,
|
|
@@ -1366,7 +1366,7 @@ const mo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-9950a715"]]), fo = { cla
|
|
|
1366
1366
|
}, [
|
|
1367
1367
|
I(u.$slots, "default", {}, void 0, !0)
|
|
1368
1368
|
], 512)) : g("", !0),
|
|
1369
|
-
u.$slots.footer ? (t(),
|
|
1369
|
+
u.$slots.footer ? (t(), l("div", vo, [
|
|
1370
1370
|
I(u.$slots, "footer", {}, void 0, !0)
|
|
1371
1371
|
])) : g("", !0)
|
|
1372
1372
|
]));
|
|
@@ -1383,15 +1383,15 @@ const pt = /* @__PURE__ */ Q(yo, [["__scopeId", "data-v-c86e2d2a"]]), ho = { cla
|
|
|
1383
1383
|
},
|
|
1384
1384
|
emits: ["update:modelValue", "change"],
|
|
1385
1385
|
setup(p, { emit: r }) {
|
|
1386
|
-
const
|
|
1386
|
+
const n = Be(), o = p, a = r, c = o.property, u = me(c), m = He(), d = X(() => o.modelValue ? Array.isArray(o.modelValue) ? Array.isArray(o.modelValue) && Object.values(o.modelValue).some(({ _id: $ }) => o.item._id === $) : o.modelValue._id === o.item._id : !1), v = () => {
|
|
1387
1387
|
if (d.value)
|
|
1388
1388
|
return;
|
|
1389
1389
|
const $ = (A) => A.filter((i) => !!i._id);
|
|
1390
1390
|
let f;
|
|
1391
|
-
"items" in c ?
|
|
1392
|
-
},
|
|
1391
|
+
"items" in c ? o.modelValue ? f = $(Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue]) : f = [] : f = o.modelValue, Array.isArray(f) ? a("update:modelValue", f.concat([o.item])) : a("update:modelValue", o.item), a("change", o.item);
|
|
1392
|
+
}, s = async ($) => {
|
|
1393
1393
|
if (u.purge && ($ != null && $.purge)) {
|
|
1394
|
-
const { _id: A } =
|
|
1394
|
+
const { _id: A } = o.item;
|
|
1395
1395
|
await m.$actions.remove({
|
|
1396
1396
|
filters: {
|
|
1397
1397
|
_id: A
|
|
@@ -1399,22 +1399,22 @@ const pt = /* @__PURE__ */ Q(yo, [["__scopeId", "data-v-c86e2d2a"]]), ho = { cla
|
|
|
1399
1399
|
});
|
|
1400
1400
|
}
|
|
1401
1401
|
const f = () => {
|
|
1402
|
-
const A = Array.isArray(
|
|
1402
|
+
const A = Array.isArray(o.modelValue) ? Array.from(o.modelValue) : [], i = A.findIndex((M) => M._id === o.item._id);
|
|
1403
1403
|
return A.splice(i, 1), A;
|
|
1404
1404
|
};
|
|
1405
1405
|
a("update:modelValue", "items" in c ? f() : null);
|
|
1406
1406
|
}, y = () => {
|
|
1407
|
-
if (
|
|
1408
|
-
|
|
1409
|
-
path: `/dashboard/c/${u.$ref}/${
|
|
1407
|
+
if (o.readOnly) {
|
|
1408
|
+
n.push({
|
|
1409
|
+
path: `/dashboard/c/${u.$ref}/${o.item._id}`
|
|
1410
1410
|
});
|
|
1411
1411
|
return;
|
|
1412
1412
|
}
|
|
1413
|
-
return d.value ?
|
|
1413
|
+
return d.value ? s() : v();
|
|
1414
1414
|
};
|
|
1415
1415
|
return ($, f) => {
|
|
1416
1416
|
const A = ne("clickable");
|
|
1417
|
-
return
|
|
1417
|
+
return P((t(), l("div", {
|
|
1418
1418
|
class: W({
|
|
1419
1419
|
item: !0,
|
|
1420
1420
|
"item--selected": d.value
|
|
@@ -1423,7 +1423,7 @@ const pt = /* @__PURE__ */ Q(yo, [["__scopeId", "data-v-c86e2d2a"]]), ho = { cla
|
|
|
1423
1423
|
}, [
|
|
1424
1424
|
I($.$slots, "default", {}, void 0, !0),
|
|
1425
1425
|
B("div", ho, [
|
|
1426
|
-
(t(!0),
|
|
1426
|
+
(t(!0), l(Z, null, D($.indexes, (i, M) => (t(), l("div", {
|
|
1427
1427
|
key: `index-${$.item._id}-${M}`,
|
|
1428
1428
|
class: "item__value"
|
|
1429
1429
|
}, C($.item[i]), 1))), 128))
|
|
@@ -1457,9 +1457,9 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1457
1457
|
},
|
|
1458
1458
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1459
1459
|
setup(p, { emit: r }) {
|
|
1460
|
-
const
|
|
1461
|
-
ge(ze, me(
|
|
1462
|
-
const y = ee(
|
|
1460
|
+
const n = p, o = ie("meta"), a = me(n.property), c = n.panel !== void 0 ? X(() => n.panel) : ee(!1), u = r, m = ie(me(n.property).$ref), d = Me(), v = d ? He() : null, s = a.indexes;
|
|
1461
|
+
ge(ze, me(n.property).$ref), ge("innerInputLabel", !0), ge("omitInputLabels", !0);
|
|
1462
|
+
const y = ee(n.modelValue), $ = ee({
|
|
1463
1463
|
data: [],
|
|
1464
1464
|
pagination: {}
|
|
1465
1465
|
}), f = X(() => $.value.data), A = X(() => $.value.pagination), i = ee(0), M = ee(!1), E = ee(""), K = () => {
|
|
@@ -1490,7 +1490,7 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1490
1490
|
return;
|
|
1491
1491
|
const { error: k, result: N } = await U();
|
|
1492
1492
|
if (k) {
|
|
1493
|
-
|
|
1493
|
+
o.$actions.spawnToast({
|
|
1494
1494
|
text: "Request failed",
|
|
1495
1495
|
icon: "warning"
|
|
1496
1496
|
});
|
|
@@ -1511,16 +1511,16 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1511
1511
|
ue(() => E.value.length, (k, N) => {
|
|
1512
1512
|
k && !N && oe();
|
|
1513
1513
|
}), Ye(() => {
|
|
1514
|
-
|
|
1514
|
+
n.selectOnly && oe();
|
|
1515
1515
|
});
|
|
1516
1516
|
const ae = (k) => {
|
|
1517
|
-
y.value = k,
|
|
1517
|
+
y.value = k, n.selectOnly || u("update:modelValue", k);
|
|
1518
1518
|
}, O = () => {
|
|
1519
1519
|
ce(), u("update:modelValue", y.value);
|
|
1520
1520
|
};
|
|
1521
1521
|
return (k, N) => {
|
|
1522
1522
|
const le = ne("clickable");
|
|
1523
|
-
return t(),
|
|
1523
|
+
return t(), l("div", null, [
|
|
1524
1524
|
e(c) ? (t(), V(We, {
|
|
1525
1525
|
key: 0,
|
|
1526
1526
|
to: "main"
|
|
@@ -1566,9 +1566,9 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1566
1566
|
onEndReached: b
|
|
1567
1567
|
}, {
|
|
1568
1568
|
default: h(() => [
|
|
1569
|
-
(t(!0),
|
|
1569
|
+
(t(!0), l(Z, null, D(f.value, (H) => (t(), V(Qe, z({ ref_for: !0 }, {
|
|
1570
1570
|
item: H,
|
|
1571
|
-
indexes: e(
|
|
1571
|
+
indexes: e(s),
|
|
1572
1572
|
property: k.property
|
|
1573
1573
|
}, {
|
|
1574
1574
|
key: `matching-${H._id}`,
|
|
@@ -1577,8 +1577,8 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1577
1577
|
}), null, 16, ["modelValue"]))), 128))
|
|
1578
1578
|
]),
|
|
1579
1579
|
_: 1
|
|
1580
|
-
})) : (t(),
|
|
1581
|
-
M.value ? (t(),
|
|
1580
|
+
})) : (t(), l("div", $o, [
|
|
1581
|
+
M.value ? (t(), l("div", ko, C(e(q)("searching", { capitalize: !0 })) + "... ", 1)) : !e(m).loading.getAll && Object.values(E.value).filter((H) => !!H).length > 0 && !("items" in k.property && ((_ = k.modelValue) != null && _.length) || !Array.isArray(k.modelValue) && ((T = k.modelValue) != null && T._id)) ? (t(), l("div", Vo, C(e(q)("no_results", { capitalize: !0 })), 1)) : g("", !0)
|
|
1582
1582
|
]))
|
|
1583
1583
|
]),
|
|
1584
1584
|
B("div", Co, C(e(q)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(q)("of")) + " " + C(A.value.recordsTotal), 1)
|
|
@@ -1587,15 +1587,15 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1587
1587
|
_: 1
|
|
1588
1588
|
}, 8, ["title", "model-value"])
|
|
1589
1589
|
])) : g("", !0),
|
|
1590
|
-
k.selectOnly ? g("", !0) : (t(),
|
|
1590
|
+
k.selectOnly ? g("", !0) : (t(), l("div", Oo, [
|
|
1591
1591
|
L(pt, null, _e({
|
|
1592
1592
|
default: h(() => {
|
|
1593
1593
|
var _;
|
|
1594
1594
|
return [
|
|
1595
|
-
"items" in k.property ? (t(),
|
|
1596
|
-
(t(!0),
|
|
1595
|
+
"items" in k.property ? (t(), l("div", Ao, [
|
|
1596
|
+
(t(!0), l(Z, null, D(k.modelValue, (T) => (t(), V(Qe, z({ ref_for: !0 }, {
|
|
1597
1597
|
item: T,
|
|
1598
|
-
indexes: e(
|
|
1598
|
+
indexes: e(s),
|
|
1599
1599
|
property: k.property,
|
|
1600
1600
|
readOnly: k.readOnly,
|
|
1601
1601
|
modelValue: k.modelValue
|
|
@@ -1605,7 +1605,7 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1605
1605
|
}), null, 16))), 128))
|
|
1606
1606
|
])) : (_ = k.modelValue) != null && _._id ? (t(), V(Qe, z({ key: 1 }, {
|
|
1607
1607
|
item: k.modelValue,
|
|
1608
|
-
indexes: e(
|
|
1608
|
+
indexes: e(s),
|
|
1609
1609
|
property: e(a),
|
|
1610
1610
|
readOnly: k.readOnly,
|
|
1611
1611
|
modelValue: k.modelValue
|
|
@@ -1617,7 +1617,7 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1617
1617
|
k.readOnly ? void 0 : {
|
|
1618
1618
|
name: "footer",
|
|
1619
1619
|
fn: h(() => [
|
|
1620
|
-
|
|
1620
|
+
P((t(), V(Y, {
|
|
1621
1621
|
icon: "plus",
|
|
1622
1622
|
onClick: ke
|
|
1623
1623
|
}, {
|
|
@@ -1638,7 +1638,7 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1638
1638
|
}
|
|
1639
1639
|
});
|
|
1640
1640
|
const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r) => {
|
|
1641
|
-
const
|
|
1641
|
+
const n = "items" in p ? p.items : p, o = {
|
|
1642
1642
|
options: Gn,
|
|
1643
1643
|
select: Je,
|
|
1644
1644
|
switch: Jn,
|
|
@@ -1647,10 +1647,10 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1647
1647
|
input: Oe,
|
|
1648
1648
|
form: De
|
|
1649
1649
|
}, a = (() => {
|
|
1650
|
-
if ("type" in
|
|
1651
|
-
if (
|
|
1650
|
+
if ("type" in n) {
|
|
1651
|
+
if (n.type === "object")
|
|
1652
1652
|
return "form";
|
|
1653
|
-
if (
|
|
1653
|
+
if (n.type === "boolean")
|
|
1654
1654
|
return "switch";
|
|
1655
1655
|
}
|
|
1656
1656
|
if ("element" in p) {
|
|
@@ -1660,17 +1660,17 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1660
1660
|
return "select";
|
|
1661
1661
|
}
|
|
1662
1662
|
const c = me(p);
|
|
1663
|
-
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in p && p.uniqueItems ? "options" : "enum" in
|
|
1663
|
+
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in p && p.uniqueItems ? "options" : "enum" in n ? "select" : "input";
|
|
1664
1664
|
})();
|
|
1665
|
-
return r[a] ? r[a] :
|
|
1666
|
-
}, So = (p, r,
|
|
1665
|
+
return r[a] ? r[a] : o[a];
|
|
1666
|
+
}, So = (p, r, n) => {
|
|
1667
1667
|
p ?? (p = []);
|
|
1668
|
-
const
|
|
1669
|
-
if ("$ref" in
|
|
1670
|
-
const a = ie(
|
|
1668
|
+
const o = "items" in r ? r.items : r;
|
|
1669
|
+
if ("$ref" in o) {
|
|
1670
|
+
const a = ie(o.$ref, n), c = Ae(a.$freshItem);
|
|
1671
1671
|
return p.push(c);
|
|
1672
1672
|
}
|
|
1673
|
-
return "properties" in
|
|
1673
|
+
return "properties" in o ? p.push(Ft(o)) : "type" in o && o.type === "boolean" ? p.push({}) : p.push(null);
|
|
1674
1674
|
}, wo = (p, r) => {
|
|
1675
1675
|
p.splice(r, 1);
|
|
1676
1676
|
}, To = {
|
|
@@ -1717,21 +1717,21 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1717
1717
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
1718
1718
|
setup(p, { emit: r }) {
|
|
1719
1719
|
var le;
|
|
1720
|
-
const
|
|
1720
|
+
const n = Xe(), o = p, a = r;
|
|
1721
1721
|
vt(() => {
|
|
1722
|
-
|
|
1722
|
+
o.modelValue || a("update:modelValue", o.property && "items" in o.property ? [] : {});
|
|
1723
1723
|
});
|
|
1724
|
-
const c =
|
|
1724
|
+
const c = o.property && me(o.property), u = c ? c.$ref : o.collection || Me(), m = o.readOnly || ((le = o.property) == null ? void 0 : le.readOnly), d = u ? ie(e(u)) : null;
|
|
1725
1725
|
!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");
|
|
1726
|
-
const v = ee(!1),
|
|
1727
|
-
const _ = (() => !
|
|
1726
|
+
const v = ee(!1), s = X(() => {
|
|
1727
|
+
const _ = (() => !o.form && o.property ? "type" in o.property && o.property.type === "object" ? "properties" in o.property ? o.property.properties : void 0 : d == null ? void 0 : d.properties : o.form)();
|
|
1728
1728
|
if (!_)
|
|
1729
1729
|
return;
|
|
1730
1730
|
const T = {};
|
|
1731
|
-
if (
|
|
1731
|
+
if (o.includeId && (T._id = {
|
|
1732
1732
|
type: "string",
|
|
1733
1733
|
readOnly: !0
|
|
1734
|
-
}),
|
|
1734
|
+
}), o.includeTimestamps) {
|
|
1735
1735
|
const H = {
|
|
1736
1736
|
type: "string",
|
|
1737
1737
|
format: "date-time",
|
|
@@ -1741,34 +1741,34 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1741
1741
|
_.created_at || (T.created_at = H), _.created_at || (T.updated_at = H);
|
|
1742
1742
|
}
|
|
1743
1743
|
return Object.assign(T, _), T;
|
|
1744
|
-
}), y = X(() =>
|
|
1745
|
-
const T = fe(_,
|
|
1746
|
-
return
|
|
1747
|
-
}, f = X(() =>
|
|
1748
|
-
u && ge(ze, u), ge("searchOnly",
|
|
1749
|
-
const b = (_) =>
|
|
1744
|
+
}), y = X(() => o.layout || (d == null ? void 0 : d.description.formLayout)), $ = (_) => {
|
|
1745
|
+
const T = fe(_, o[_]);
|
|
1746
|
+
return o[_] && ge(_, o[_]), T;
|
|
1747
|
+
}, f = X(() => o.validationErrors !== null ? o.validationErrors : d == null ? void 0 : d.validationErrors), A = $("formComponents") || {}, i = $("propertyComponents") || {}, M = $("omitFormHeader"), E = $("omitInputLabels"), K = $("innerInputLabel");
|
|
1748
|
+
u && ge(ze, u), ge("searchOnly", o.searchOnly);
|
|
1749
|
+
const b = (_) => s.value ? Object.entries(s.value).filter(([T, H]) => !H.noForm && _([
|
|
1750
1750
|
T,
|
|
1751
1751
|
H
|
|
1752
1752
|
])) : null, U = (_, T) => {
|
|
1753
1753
|
var J;
|
|
1754
|
-
if (
|
|
1754
|
+
if (o.searchOnly || !u || o.includeId && _ === "_id" || o.includeTimestamps && T.isTimestamp)
|
|
1755
1755
|
return !0;
|
|
1756
|
-
const H =
|
|
1756
|
+
const H = o.property && "properties" in o.property ? o.property.form : (J = d == null ? void 0 : d.description) == null ? void 0 : J.form;
|
|
1757
1757
|
return !H || H.includes(_);
|
|
1758
1758
|
}, oe = b(([_, T]) => U(_, T)), w = Le(), te = {}, ke = (_, T) => {
|
|
1759
1759
|
var R, re, j, se;
|
|
1760
1760
|
const H = [], J = ((re = (R = y.value) == null ? void 0 : R.fields) == null ? void 0 : re[_]) || ((se = (j = y.value) == null ? void 0 : j.fields) == null ? void 0 : se.$default);
|
|
1761
1761
|
if (!T)
|
|
1762
1762
|
return;
|
|
1763
|
-
if (J != null && J.if && !
|
|
1763
|
+
if (J != null && J.if && !o.searchOnly) {
|
|
1764
1764
|
const ve = Ee(
|
|
1765
|
-
|
|
1765
|
+
o.modelValue,
|
|
1766
1766
|
J.if
|
|
1767
1767
|
);
|
|
1768
|
-
ve.satisfied || (te[_] && (d ?
|
|
1768
|
+
ve.satisfied || (te[_] && (d ? o.modelValue[_] = typeof d.$freshItem[_] == "object" ? Ae(d.$freshItem[_]) : d.$freshItem[_] : o.modelValue[_] = [
|
|
1769
1769
|
void 0,
|
|
1770
1770
|
null
|
|
1771
|
-
].includes(
|
|
1771
|
+
].includes(o.modelValue[_]) ? null : o.modelValue[_].constructor()), H.push("display: none;")), te[_] = ve.satisfied;
|
|
1772
1772
|
}
|
|
1773
1773
|
const S = w.value.md && (J == null ? void 0 : J.span) || 6;
|
|
1774
1774
|
return H.push(`
|
|
@@ -1783,32 +1783,32 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1783
1783
|
padding: 1rem 0;
|
|
1784
1784
|
margin: 1rem 0;
|
|
1785
1785
|
`)), H.join("");
|
|
1786
|
-
}, ce = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, ae = X(() =>
|
|
1787
|
-
|
|
1788
|
-
|
|
1786
|
+
}, ce = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, ae = X(() => o.required ? o.required : o.property && "required" in o.property ? o.property.required : d == null ? void 0 : d.description.required), O = X(() => o.form ? Ut(
|
|
1787
|
+
o.modelValue,
|
|
1788
|
+
o.form,
|
|
1789
1789
|
ae.value,
|
|
1790
1790
|
d == null ? void 0 : d.description
|
|
1791
1791
|
) : !0), k = (_, T) => {
|
|
1792
1792
|
var H;
|
|
1793
1793
|
return (H = f.value) != null && H[_] && (typeof f.value[_].index != "number" || f.value[_].index === T) ? f.value[_].errors : null;
|
|
1794
1794
|
}, N = (_) => {
|
|
1795
|
-
if (!(m || _.readOnly) && !
|
|
1795
|
+
if (!(m || _.readOnly) && !o.parentPropertyName && !o.parentCollection && !v.value)
|
|
1796
1796
|
return v.value = !0, !0;
|
|
1797
1797
|
};
|
|
1798
1798
|
return (_, T) => {
|
|
1799
1799
|
const H = ne("clickable"), J = ne("focus");
|
|
1800
|
-
return t(),
|
|
1800
|
+
return t(), l("form", {
|
|
1801
1801
|
class: "form",
|
|
1802
1802
|
style: $e(`row-gap: ${e(M) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1803
1803
|
}, [
|
|
1804
|
-
_.$slots.header && !e(M) ? (t(),
|
|
1804
|
+
_.$slots.header && !e(M) ? (t(), l("header", To, [
|
|
1805
1805
|
I(_.$slots, "header", {}, void 0, !0)
|
|
1806
1806
|
])) : g("", !0),
|
|
1807
1807
|
I(_.$slots, "default", {}, void 0, !0),
|
|
1808
1808
|
B("fieldset", jo, [
|
|
1809
|
-
(t(!0),
|
|
1809
|
+
(t(!0), l(Z, null, D(e(oe), ([S, R]) => {
|
|
1810
1810
|
var re, j, se, ve, he, Ze, Pe, Ne, xe, et, tt, nt, ot, at;
|
|
1811
|
-
return t(),
|
|
1811
|
+
return t(), l("div", {
|
|
1812
1812
|
key: `field-${S}`,
|
|
1813
1813
|
style: $e(ke(S, R)),
|
|
1814
1814
|
class: W({
|
|
@@ -1816,7 +1816,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1816
1816
|
"form__field--form": "properties" in R
|
|
1817
1817
|
})
|
|
1818
1818
|
}, [
|
|
1819
|
-
(!("type" in R) || R.type !== "boolean" || _.searchOnly) && !R.noLabel && !e(E) && !e(K) ? (t(),
|
|
1819
|
+
(!("type" in R) || R.type !== "boolean" || _.searchOnly) && !R.noLabel && !e(E) && !e(K) ? (t(), l("label", Ro, [
|
|
1820
1820
|
B("div", {
|
|
1821
1821
|
class: W({
|
|
1822
1822
|
"form__field-label": !0,
|
|
@@ -1824,7 +1824,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1824
1824
|
"form__field-required-hint": _.highlightRequired && !e(m) && !_.searchOnly && (!ae.value || e(dt)(S, ae.value, _.modelValue))
|
|
1825
1825
|
})
|
|
1826
1826
|
}, C(R.description || e(q)(S)), 3),
|
|
1827
|
-
R.hint ? (t(),
|
|
1827
|
+
R.hint ? (t(), l("div", {
|
|
1828
1828
|
key: 0,
|
|
1829
1829
|
innerHTML: R.hint
|
|
1830
1830
|
}, null, 8, qo)) : g("", !0)
|
|
@@ -1851,7 +1851,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1851
1851
|
}, {
|
|
1852
1852
|
onInput: (x) => a("input", S),
|
|
1853
1853
|
onChange: T[0] || (T[0] = (x) => a("change", x))
|
|
1854
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) && _.searchOnly ? (t(),
|
|
1854
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) && _.searchOnly ? (t(), l("div", {
|
|
1855
1855
|
key: 3,
|
|
1856
1856
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1857
1857
|
onInput: (x) => a("input", S),
|
|
@@ -1873,7 +1873,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1873
1873
|
property: R,
|
|
1874
1874
|
propertyName: S
|
|
1875
1875
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1876
|
-
], 40, Lo)) : "type" in R && R.type === "boolean" && _.searchOnly ? (t(),
|
|
1876
|
+
], 40, Lo)) : "type" in R && R.type === "boolean" && _.searchOnly ? (t(), l("div", Mo, [
|
|
1877
1877
|
L(Je, z({ ref_for: !0 }, {
|
|
1878
1878
|
property: R,
|
|
1879
1879
|
propertyName: S
|
|
@@ -1891,15 +1891,15 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1891
1891
|
]),
|
|
1892
1892
|
_: 2
|
|
1893
1893
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1894
|
-
])) : _.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(),
|
|
1895
|
-
e(m) ? g("", !0) : (t(),
|
|
1894
|
+
])) : _.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), l("div", Eo, [
|
|
1895
|
+
e(m) ? g("", !0) : (t(), l("div", Uo, [
|
|
1896
1896
|
L(pe, {
|
|
1897
1897
|
small: "",
|
|
1898
1898
|
variant: "alt",
|
|
1899
1899
|
icon: "plus",
|
|
1900
1900
|
disabled: !("inline" in R.items && R.items.inline) && (((ve = _.modelValue[S]) == null ? void 0 : ve.length) >= R.maxItems || ce((Ze = _.modelValue[S]) == null ? void 0 : Ze[((he = _.modelValue[S]) == null ? void 0 : he.length) - 1])),
|
|
1901
1901
|
onClick: Re((x) => {
|
|
1902
|
-
_.modelValue[S] || (_.modelValue[S] = []), e(So)(_.modelValue[S], R, e(
|
|
1902
|
+
_.modelValue[S] || (_.modelValue[S] = []), e(So)(_.modelValue[S], R, e(n));
|
|
1903
1903
|
}, ["prevent"])
|
|
1904
1904
|
}, {
|
|
1905
1905
|
default: h(() => [
|
|
@@ -1908,14 +1908,14 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1908
1908
|
_: 2
|
|
1909
1909
|
}, 1032, ["disabled", "onClick"])
|
|
1910
1910
|
])),
|
|
1911
|
-
((Pe = _.modelValue[S]) == null ? void 0 : Pe.length) > 0 ? (t(),
|
|
1912
|
-
(t(!0),
|
|
1911
|
+
((Pe = _.modelValue[S]) == null ? void 0 : Pe.length) > 0 ? (t(), l("div", Ho, [
|
|
1912
|
+
(t(!0), l(Z, null, D(_.modelValue[S], (x, we) => {
|
|
1913
1913
|
var lt, st, it, rt, ut, ct;
|
|
1914
|
-
return t(),
|
|
1914
|
+
return t(), l("div", {
|
|
1915
1915
|
key: `rep-${S}-${e(Ht)(x, we)}`,
|
|
1916
1916
|
class: "form__array-item"
|
|
1917
1917
|
}, [
|
|
1918
|
-
e(m) ? g("", !0) :
|
|
1918
|
+
e(m) ? g("", !0) : P((t(), V(Y, {
|
|
1919
1919
|
key: 0,
|
|
1920
1920
|
icon: "trash",
|
|
1921
1921
|
class: "form__array-remove",
|
|
@@ -1948,7 +1948,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1948
1948
|
]);
|
|
1949
1949
|
}), 128))
|
|
1950
1950
|
])) : g("", !0)
|
|
1951
|
-
])) : _.modelValue ?
|
|
1951
|
+
])) : _.modelValue ? P((t(), V(be(e(_t)(R, e(A))), z({
|
|
1952
1952
|
key: 6,
|
|
1953
1953
|
modelValue: _.modelValue[S],
|
|
1954
1954
|
"onUpdate:modelValue": (x) => _.modelValue[S] = x,
|
|
@@ -1969,15 +1969,15 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1969
1969
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1970
1970
|
[J, N(R)]
|
|
1971
1971
|
]) : g("", !0),
|
|
1972
|
-
(at = f.value) != null && at[S] ? (t(),
|
|
1973
|
-
f.value[S].type ? (t(),
|
|
1974
|
-
f.value[S].detail ? (t(),
|
|
1972
|
+
(at = f.value) != null && at[S] ? (t(), l("div", Do, [
|
|
1973
|
+
f.value[S].type ? (t(), l("span", Qo, C(e(q)(`validation_error.${f.value[S].type}`)), 1)) : g("", !0),
|
|
1974
|
+
f.value[S].detail ? (t(), l("span", Go, C(e(q)(f.value[S].detail)), 1)) : g("", !0)
|
|
1975
1975
|
])) : g("", !0)
|
|
1976
1976
|
], 6);
|
|
1977
1977
|
}), 128))
|
|
1978
1978
|
]),
|
|
1979
1979
|
_.$slots.after ? I(_.$slots, "after", { key: 1 }, void 0, !0) : g("", !0),
|
|
1980
|
-
_.$slots.footer ? (t(),
|
|
1980
|
+
_.$slots.footer ? (t(), l("div", Wo, [
|
|
1981
1981
|
I(_.$slots, "footer", de(Ce({
|
|
1982
1982
|
isInsertReady: O.value
|
|
1983
1983
|
})), void 0, !0)
|
|
@@ -1990,37 +1990,37 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
1990
1990
|
__name: "aeria-filter-panel",
|
|
1991
1991
|
emits: ["update:modelValue"],
|
|
1992
1992
|
setup(p, { emit: r }) {
|
|
1993
|
-
const
|
|
1994
|
-
if (
|
|
1993
|
+
const n = r, o = He(), a = Be(), c = e(fe(ze)), u = () => {
|
|
1994
|
+
if (o.pagination.offset = 0, o.$actions.filter(), n("update:modelValue", !1), "query" in a.currentRoute && a.currentRoute.query && typeof a.currentRoute.query == "object") {
|
|
1995
1995
|
const v = a.currentRoute.query;
|
|
1996
|
-
for (const
|
|
1997
|
-
|
|
1996
|
+
for (const s of Object.keys(v))
|
|
1997
|
+
s.startsWith(`${c}.`) && delete v[s];
|
|
1998
1998
|
}
|
|
1999
1999
|
const { query: m, ...d } = a.currentRoute.value;
|
|
2000
2000
|
a.push(qe(d, {
|
|
2001
|
-
query: Rt(
|
|
2001
|
+
query: Rt(o)
|
|
2002
2002
|
}));
|
|
2003
2003
|
};
|
|
2004
2004
|
return (m, d) => (t(), V(Se, {
|
|
2005
2005
|
"close-hint": "",
|
|
2006
2006
|
"fixed-right": "",
|
|
2007
2007
|
title: m.t("filter_by", { capitalize: !0 }),
|
|
2008
|
-
onClose: d[2] || (d[2] = (v) =>
|
|
2009
|
-
onOverlayClick: d[3] || (d[3] = (v) =>
|
|
2008
|
+
onClose: d[2] || (d[2] = (v) => n("update:modelValue", !1)),
|
|
2009
|
+
onOverlayClick: d[3] || (d[3] = (v) => n("update:modelValue", !1))
|
|
2010
2010
|
}, {
|
|
2011
2011
|
footer: h(() => [
|
|
2012
|
-
e(
|
|
2012
|
+
e(o).filtersCount > 0 ? (t(), V(pe, {
|
|
2013
2013
|
key: 0,
|
|
2014
2014
|
variant: "transparent",
|
|
2015
2015
|
onClick: d[1] || (d[1] = (v) => {
|
|
2016
|
-
e(
|
|
2016
|
+
e(o).$actions.clearFilters(), u(), n("update:modelValue", !1);
|
|
2017
2017
|
})
|
|
2018
2018
|
}, {
|
|
2019
2019
|
default: h(() => [
|
|
2020
2020
|
G(C(m.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
2021
2021
|
L(Ve, null, {
|
|
2022
2022
|
default: h(() => [
|
|
2023
|
-
G(C(e(
|
|
2023
|
+
G(C(e(o).filtersCount), 1)
|
|
2024
2024
|
]),
|
|
2025
2025
|
_: 1
|
|
2026
2026
|
})
|
|
@@ -2030,7 +2030,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2030
2030
|
L(pe, {
|
|
2031
2031
|
large: "",
|
|
2032
2032
|
icon: "funnel",
|
|
2033
|
-
disabled: !e(
|
|
2033
|
+
disabled: !e(o).hasActiveFilters,
|
|
2034
2034
|
onClick: u
|
|
2035
2035
|
}, {
|
|
2036
2036
|
default: h(() => [
|
|
@@ -2041,12 +2041,12 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2041
2041
|
]),
|
|
2042
2042
|
default: h(() => [
|
|
2043
2043
|
L(De, z({
|
|
2044
|
-
modelValue: e(
|
|
2045
|
-
"onUpdate:modelValue": d[0] || (d[0] = (v) => e(
|
|
2044
|
+
modelValue: e(o).filters,
|
|
2045
|
+
"onUpdate:modelValue": d[0] || (d[0] = (v) => e(o).filters = v)
|
|
2046
2046
|
}, {
|
|
2047
2047
|
searchOnly: !0,
|
|
2048
|
-
form: e(
|
|
2049
|
-
layout: e(
|
|
2048
|
+
form: e(o).availableFilters,
|
|
2049
|
+
layout: e(o).description.formLayout
|
|
2050
2050
|
}, { focus: "" }), null, 16, ["modelValue"])
|
|
2051
2051
|
]),
|
|
2052
2052
|
_: 1
|
|
@@ -2068,11 +2068,11 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2068
2068
|
},
|
|
2069
2069
|
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2070
2070
|
setup(p, { emit: r }) {
|
|
2071
|
-
const
|
|
2071
|
+
const n = p, o = r, a = ie("meta"), c = n.collection, u = ie(c);
|
|
2072
2072
|
Ye(() => {
|
|
2073
|
-
|
|
2073
|
+
n.modelValue && u.$actions.setItem(n.modelValue);
|
|
2074
2074
|
});
|
|
2075
|
-
const m = X(() =>
|
|
2075
|
+
const m = X(() => n.form ? u.$actions.useProperties(n.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
|
|
2076
2076
|
const { error: $, result: f } = await u.$actions.deepInsert();
|
|
2077
2077
|
if ($) {
|
|
2078
2078
|
if ("code" in $)
|
|
@@ -2092,11 +2092,11 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2092
2092
|
}
|
|
2093
2093
|
return;
|
|
2094
2094
|
}
|
|
2095
|
-
|
|
2096
|
-
}, { t: v } = Bt(),
|
|
2095
|
+
o("update:visible", !1), o("update:modelValue", f), o("insert", f), u.$actions.clearItem();
|
|
2096
|
+
}, { t: v } = Bt(), s = () => {
|
|
2097
2097
|
a.$actions.ask({
|
|
2098
2098
|
action: () => {
|
|
2099
|
-
u.$actions.clearItem(), u.validationErrors = {},
|
|
2099
|
+
u.$actions.clearItem(), u.validationErrors = {}, o("cancel");
|
|
2100
2100
|
},
|
|
2101
2101
|
body: v("prompt.close_panel")
|
|
2102
2102
|
});
|
|
@@ -2105,7 +2105,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2105
2105
|
text: v("copied_to_clipboard")
|
|
2106
2106
|
});
|
|
2107
2107
|
return ue(() => u.item._id, ($) => {
|
|
2108
|
-
$ === null &&
|
|
2108
|
+
$ === null && o("update:visible", !1);
|
|
2109
2109
|
}), ($, f) => {
|
|
2110
2110
|
const A = ne("clickable");
|
|
2111
2111
|
return t(), V(Se, z({
|
|
@@ -2113,19 +2113,19 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2113
2113
|
loading: e(u).loading.get,
|
|
2114
2114
|
float: $.float,
|
|
2115
2115
|
fixedRight: $.fixedRight
|
|
2116
|
-
}, { onOverlayClick:
|
|
2116
|
+
}, { onOverlayClick: s }), _e({
|
|
2117
2117
|
extra: h(() => [
|
|
2118
2118
|
$.individualActions ? (t(), V(Ie, z({ key: 0 }, {
|
|
2119
2119
|
subject: e(u).item,
|
|
2120
2120
|
actions: $.individualActions.filter(({ action: i }) => i !== "spawnEdit"),
|
|
2121
2121
|
overlayLayer: 60
|
|
2122
2122
|
}, {
|
|
2123
|
-
onActionClick: f[2] || (f[2] = (i) =>
|
|
2123
|
+
onActionClick: f[2] || (f[2] = (i) => o("update:visible", !1))
|
|
2124
2124
|
}), {
|
|
2125
2125
|
default: h(({
|
|
2126
2126
|
visible: i
|
|
2127
2127
|
}) => [
|
|
2128
|
-
e(u).item._id ?
|
|
2128
|
+
e(u).item._id ? P((t(), V(Y, {
|
|
2129
2129
|
key: 0,
|
|
2130
2130
|
reactive: "",
|
|
2131
2131
|
active: i,
|
|
@@ -2176,7 +2176,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2176
2176
|
$.float || $.fixedRight ? (t(), V(pe, {
|
|
2177
2177
|
key: 0,
|
|
2178
2178
|
variant: "transparent",
|
|
2179
|
-
onClick:
|
|
2179
|
+
onClick: s
|
|
2180
2180
|
}, {
|
|
2181
2181
|
default: h(() => [
|
|
2182
2182
|
G(C(e(v)("action.cancel", { capitalize: !0 })), 1)
|
|
@@ -2211,15 +2211,15 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2211
2211
|
}, Jo = (p, r = {
|
|
2212
2212
|
persistInQuery: !0
|
|
2213
2213
|
}) => {
|
|
2214
|
-
const
|
|
2215
|
-
return ue(() =>
|
|
2214
|
+
const o = Be().currentRoute;
|
|
2215
|
+
return ue(() => o.value.query.section, (a) => {
|
|
2216
2216
|
if (p) {
|
|
2217
2217
|
if (p.description.filtersPresets) {
|
|
2218
2218
|
const c = a || Object.keys(p.description.filtersPresets)[0];
|
|
2219
2219
|
bt(p.description.filtersPresets[c], p);
|
|
2220
2220
|
}
|
|
2221
2221
|
if (r.persistInQuery) {
|
|
2222
|
-
const c =
|
|
2222
|
+
const c = o.value.query;
|
|
2223
2223
|
c.offset && (p.pagination.offset = +c.offset), c.limit && (p.pagination.limit = +c.limit), c.search && (p.textQuery = c.search, p.filters.$text = {
|
|
2224
2224
|
$search: `"${c.search}"`,
|
|
2225
2225
|
$caseSensitive: !1
|
|
@@ -2259,13 +2259,13 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2259
2259
|
},
|
|
2260
2260
|
emits: ["itemClick"],
|
|
2261
2261
|
setup(p, { emit: r }) {
|
|
2262
|
-
const
|
|
2262
|
+
const n = p, o = r, a = Le(), c = n.collection || Me(), u = c ? ie(typeof c == "string" ? c : c.value) : null, m = X({
|
|
2263
2263
|
get: () => u == null ? void 0 : u.selected,
|
|
2264
2264
|
set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
|
|
2265
|
-
}), d = X(() =>
|
|
2265
|
+
}), d = X(() => n.columns ? Object.keys(n.columns).length + Number(n.checkbox) : 0), v = (f, A) => f.button ? typeof f.button == "object" ? Ee(A, f.button).satisfied : f.button : !1, s = (f) => {
|
|
2266
2266
|
var i;
|
|
2267
|
-
const A = (i =
|
|
2268
|
-
return !a.value.xl || !A || !
|
|
2267
|
+
const A = (i = n.layout) == null ? void 0 : i.actions;
|
|
2268
|
+
return !a.value.xl || !A || !n.actions ? [] : n.actions.filter((M) => {
|
|
2269
2269
|
if (M.roles) {
|
|
2270
2270
|
const K = ie("user");
|
|
2271
2271
|
if (!Ge(M.roles, K.currentUser.roles))
|
|
@@ -2276,10 +2276,10 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2276
2276
|
});
|
|
2277
2277
|
}, y = (f) => {
|
|
2278
2278
|
var i;
|
|
2279
|
-
if (!
|
|
2279
|
+
if (!n.actions)
|
|
2280
2280
|
return [];
|
|
2281
|
-
const A = (i =
|
|
2282
|
-
return !a.value.xl || !A ?
|
|
2281
|
+
const A = (i = n.layout) == null ? void 0 : i.actions;
|
|
2282
|
+
return !a.value.xl || !A ? n.actions : n.actions.filter((M) => {
|
|
2283
2283
|
const E = A[M.action];
|
|
2284
2284
|
if (M.roles) {
|
|
2285
2285
|
const K = ie("user");
|
|
@@ -2293,7 +2293,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2293
2293
|
});
|
|
2294
2294
|
}, $ = (f, A) => {
|
|
2295
2295
|
var E, K;
|
|
2296
|
-
const i = [], M = (K = (E =
|
|
2296
|
+
const i = [], M = (K = (E = n.layout) == null ? void 0 : E.actions) == null ? void 0 : K[A.action];
|
|
2297
2297
|
return M != null && M.if && (Ee(
|
|
2298
2298
|
f,
|
|
2299
2299
|
M.if
|
|
@@ -2302,36 +2302,36 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2302
2302
|
return (f, A) => {
|
|
2303
2303
|
var M, E, K;
|
|
2304
2304
|
const i = ne("clickable");
|
|
2305
|
-
return d.value > 0 || f.$slots.thead ? (t(),
|
|
2306
|
-
f.$slots.thead ? (t(),
|
|
2305
|
+
return d.value > 0 || f.$slots.thead ? (t(), l("table", Zo, [
|
|
2306
|
+
f.$slots.thead ? (t(), l("thead", Po, [
|
|
2307
2307
|
I(f.$slots, "thead", {}, void 0, !0)
|
|
2308
|
-
])) : (t(),
|
|
2308
|
+
])) : (t(), l("thead", No, [
|
|
2309
2309
|
B("tr", null, [
|
|
2310
|
-
f.checkbox && e(u) && e(a).md ? (t(),
|
|
2310
|
+
f.checkbox && e(u) && e(a).md ? (t(), l("th", xo, [
|
|
2311
2311
|
B("input", {
|
|
2312
2312
|
type: "checkbox",
|
|
2313
2313
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2314
2314
|
onChange: A[0] || (A[0] = (b) => e(u).$actions.selectAllItems(b.target.checked))
|
|
2315
2315
|
}, null, 40, ea)
|
|
2316
2316
|
])) : g("", !0),
|
|
2317
|
-
(t(!0),
|
|
2317
|
+
(t(!0), l(Z, null, D(Object.entries(f.columns), ([b, U], oe) => (t(), l("th", {
|
|
2318
2318
|
key: `header-${oe}`,
|
|
2319
2319
|
class: "table__header"
|
|
2320
2320
|
}, C(U.description || e(q)(b)), 1))), 128)),
|
|
2321
|
-
(M = f.actions) != null && M.length ? (t(),
|
|
2321
|
+
(M = f.actions) != null && M.length ? (t(), l("th", ta)) : g("", !0)
|
|
2322
2322
|
])
|
|
2323
2323
|
])),
|
|
2324
|
-
f.$slots.tbody ? (t(),
|
|
2324
|
+
f.$slots.tbody ? (t(), l("tbody", na, [
|
|
2325
2325
|
I(f.$slots, "tbody", {}, void 0, !0)
|
|
2326
|
-
])) : (t(),
|
|
2327
|
-
(t(!0),
|
|
2326
|
+
])) : (t(), l("tbody", oa, [
|
|
2327
|
+
(t(!0), l(Z, null, D(f.rows, (b) => {
|
|
2328
2328
|
var U, oe;
|
|
2329
|
-
return t(),
|
|
2329
|
+
return t(), l("tr", {
|
|
2330
2330
|
key: b._id,
|
|
2331
|
-
onClick: (w) =>
|
|
2331
|
+
onClick: (w) => o("itemClick", b)
|
|
2332
2332
|
}, [
|
|
2333
|
-
e(u) && f.checkbox && e(a).md ? (t(),
|
|
2334
|
-
|
|
2333
|
+
e(u) && f.checkbox && e(a).md ? (t(), l("td", la, [
|
|
2334
|
+
P(B("input", {
|
|
2335
2335
|
"onUpdate:modelValue": A[1] || (A[1] = (w) => m.value = w),
|
|
2336
2336
|
type: "checkbox",
|
|
2337
2337
|
value: b._id
|
|
@@ -2339,22 +2339,22 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2339
2339
|
[kt, m.value]
|
|
2340
2340
|
])
|
|
2341
2341
|
])) : g("", !0),
|
|
2342
|
-
(t(!0),
|
|
2342
|
+
(t(!0), l(Z, null, D(Object.entries(f.columns), ([w, te], ke) => {
|
|
2343
2343
|
var ce, ae, O;
|
|
2344
|
-
return t(),
|
|
2344
|
+
return t(), l("td", {
|
|
2345
2345
|
key: `column-${b._id}-${ke}`
|
|
2346
2346
|
}, [
|
|
2347
2347
|
B("div", ia, C(te.description || e(q)(w)), 1),
|
|
2348
|
-
`row-${w}` in f.$slots ? (t(),
|
|
2348
|
+
`row-${w}` in f.$slots ? (t(), l("div", ra, [
|
|
2349
2349
|
I(f.$slots, `row-${w}`, z({ ref_for: !0 }, {
|
|
2350
2350
|
store: e(u),
|
|
2351
2351
|
column: w,
|
|
2352
2352
|
property: te,
|
|
2353
2353
|
row: b
|
|
2354
2354
|
}), void 0, !0)
|
|
2355
|
-
])) : (t(),
|
|
2355
|
+
])) : (t(), l("div", ua, [
|
|
2356
2356
|
B("div", ca, [
|
|
2357
|
-
"type" in te && te.type === "boolean" ? (t(),
|
|
2357
|
+
"type" in te && te.type === "boolean" ? (t(), l("div", da, [
|
|
2358
2358
|
b[w] ? (t(), V(Y, {
|
|
2359
2359
|
key: 0,
|
|
2360
2360
|
icon: "check",
|
|
@@ -2374,8 +2374,8 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2374
2374
|
]),
|
|
2375
2375
|
_: 1
|
|
2376
2376
|
}))
|
|
2377
|
-
])) : ((ce = e(me)(te)) == null ? void 0 : ce.$ref) === "file" ? (t(),
|
|
2378
|
-
b[w] ? (t(),
|
|
2377
|
+
])) : ((ce = e(me)(te)) == null ? void 0 : ce.$ref) === "file" ? (t(), l("div", pa, [
|
|
2378
|
+
b[w] ? (t(), l("div", _a, [
|
|
2379
2379
|
"items" in te && b[w][0] && /^image/.test(b[w][0].type) ? (t(), V(Ue, {
|
|
2380
2380
|
key: 0,
|
|
2381
2381
|
modelValue: b[w][0].link,
|
|
@@ -2392,20 +2392,20 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2392
2392
|
meta: b[w],
|
|
2393
2393
|
alt: "Row image",
|
|
2394
2394
|
class: "table__picture"
|
|
2395
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : b[w].link ? (t(),
|
|
2395
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : b[w].link ? (t(), l("a", {
|
|
2396
2396
|
key: 2,
|
|
2397
2397
|
href: b[w].link,
|
|
2398
2398
|
style: { "font-size": "10pt" }
|
|
2399
|
-
}, C(b[w].filename), 9, ma)) : (t(),
|
|
2400
|
-
])) : (t(),
|
|
2401
|
-
])) : (t(),
|
|
2402
|
-
e(u) ? (t(),
|
|
2399
|
+
}, C(b[w].filename), 9, ma)) : (t(), l("div", fa, " - "))
|
|
2400
|
+
])) : (t(), l("div", va, " - "))
|
|
2401
|
+
])) : (t(), l("div", ya, [
|
|
2402
|
+
e(u) ? (t(), l("span", ha, C(e(u).$actions.formatValue({
|
|
2403
2403
|
value: b[w],
|
|
2404
2404
|
key: w,
|
|
2405
2405
|
property: te
|
|
2406
|
-
})), 1)) : (t(),
|
|
2407
|
-
((O = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : O.length) > 1 ? (t(),
|
|
2408
|
-
(t(!0),
|
|
2406
|
+
})), 1)) : (t(), l("span", ba, C(Array.isArray(b[w]) ? b[w].filter((k) => !!k).join(", ") : [void 0, null].includes(b[w]) ? "-" : b[w]), 1)),
|
|
2407
|
+
((O = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : O.length) > 1 ? (t(), l("div", ga, [
|
|
2408
|
+
(t(!0), l(Z, null, D(e(me)(te).indexes.slice(1, 2), (k, N) => (t(), l("div", {
|
|
2409
2409
|
key: `subvalue-${N}`,
|
|
2410
2410
|
class: "table__cell-subvalue"
|
|
2411
2411
|
}, C(e(u).$actions.formatValue({
|
|
@@ -2420,9 +2420,9 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2420
2420
|
]))
|
|
2421
2421
|
]);
|
|
2422
2422
|
}), 128)),
|
|
2423
|
-
(U = f.actions) != null && U.length && e(a).md ? (t(),
|
|
2423
|
+
(U = f.actions) != null && U.length && e(a).md ? (t(), l("td", $a, [
|
|
2424
2424
|
B("div", ka, [
|
|
2425
|
-
(t(!0),
|
|
2425
|
+
(t(!0), l(Z, null, D(s(b), (w) => (t(), V(pe, {
|
|
2426
2426
|
key: `action-${w.action}`,
|
|
2427
2427
|
small: "",
|
|
2428
2428
|
variant: "alt",
|
|
@@ -2445,7 +2445,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2445
2445
|
default: h(({
|
|
2446
2446
|
visible: w
|
|
2447
2447
|
}) => [
|
|
2448
|
-
|
|
2448
|
+
P(L(Y, {
|
|
2449
2449
|
reactive: "",
|
|
2450
2450
|
active: w,
|
|
2451
2451
|
icon: "dots-three"
|
|
@@ -2456,12 +2456,12 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2456
2456
|
_: 2
|
|
2457
2457
|
}, 1040)) : g("", !0)
|
|
2458
2458
|
])
|
|
2459
|
-
])) : (oe = f.actions) != null && oe.length ? (t(),
|
|
2459
|
+
])) : (oe = f.actions) != null && oe.length ? (t(), l("td", Va, [
|
|
2460
2460
|
B("div", {
|
|
2461
2461
|
class: "table__mobile-actions-grid",
|
|
2462
|
-
style: $e(`grid-template-columns: repeat(${
|
|
2462
|
+
style: $e(`grid-template-columns: repeat(${s(b).length + (y(b).length ? 1 : 0)}, 1fr);`)
|
|
2463
2463
|
}, [
|
|
2464
|
-
(t(!0),
|
|
2464
|
+
(t(!0), l(Z, null, D(s(b), (w) => (t(), V(ye, {
|
|
2465
2465
|
key: `action-${w.action}`,
|
|
2466
2466
|
class: "table__mobile-actions-button",
|
|
2467
2467
|
onClick: (te) => w.click(b)
|
|
@@ -2502,7 +2502,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2502
2502
|
}), 128))
|
|
2503
2503
|
])),
|
|
2504
2504
|
B("tfoot", null, [
|
|
2505
|
-
f.$slots.tfoot ? I(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((K = e(u)) != null && K.loading.getAll) ? (t(),
|
|
2505
|
+
f.$slots.tfoot ? I(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((K = e(u)) != null && K.loading.getAll) ? (t(), l("tr", Oa, [
|
|
2506
2506
|
B("td", {
|
|
2507
2507
|
colspan: d.value + 1
|
|
2508
2508
|
}, [
|
|
@@ -2522,21 +2522,21 @@ const Sa = /* @__PURE__ */ Q(Ba, [["__scopeId", "data-v-660daba6"]]), wa = /* @_
|
|
|
2522
2522
|
componentProps: {}
|
|
2523
2523
|
},
|
|
2524
2524
|
setup(p) {
|
|
2525
|
-
const r = p,
|
|
2525
|
+
const r = p, n = je(), o = Me(), a = X(() => {
|
|
2526
2526
|
const c = {
|
|
2527
|
-
collection:
|
|
2528
|
-
checkbox:
|
|
2529
|
-
columns:
|
|
2530
|
-
rows:
|
|
2527
|
+
collection: o,
|
|
2528
|
+
checkbox: n.hasSelectionActions,
|
|
2529
|
+
columns: n.tableProperties,
|
|
2530
|
+
rows: n.items,
|
|
2531
2531
|
actions: r.individualActions,
|
|
2532
|
-
layout:
|
|
2532
|
+
layout: n.tableLayout
|
|
2533
2533
|
};
|
|
2534
2534
|
return Object.assign(c, r.componentProps);
|
|
2535
2535
|
});
|
|
2536
|
-
return (c, u) => (t(),
|
|
2536
|
+
return (c, u) => (t(), l("div", null, [
|
|
2537
2537
|
c.$slots.inner ? I(c.$slots, "inner", { key: 0 }) : g("", !0),
|
|
2538
|
-
e(
|
|
2539
|
-
key: e(
|
|
2538
|
+
e(n).properties ? (t(), V(Sa, z({ key: 1 }, a.value, {
|
|
2539
|
+
key: e(n).$id
|
|
2540
2540
|
}), _e({ _: 2 }, [
|
|
2541
2541
|
D(Object.keys(c.$slots).filter((m) => !["inner"].includes(m)), (m) => ({
|
|
2542
2542
|
name: m,
|
|
@@ -2553,7 +2553,7 @@ const Sa = /* @__PURE__ */ Q(Ba, [["__scopeId", "data-v-660daba6"]]), wa = /* @_
|
|
|
2553
2553
|
list: { type: Boolean }
|
|
2554
2554
|
},
|
|
2555
2555
|
setup(p) {
|
|
2556
|
-
return (r,
|
|
2556
|
+
return (r, n) => (t(), l("div", {
|
|
2557
2557
|
class: W([
|
|
2558
2558
|
"grid",
|
|
2559
2559
|
{ "grid--list": r.list }
|
|
@@ -2566,7 +2566,10 @@ const Sa = /* @__PURE__ */ Q(Ba, [["__scopeId", "data-v-660daba6"]]), wa = /* @_
|
|
|
2566
2566
|
const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key: 0 }, qa = {
|
|
2567
2567
|
key: 1,
|
|
2568
2568
|
class: "card__information"
|
|
2569
|
-
}, La =
|
|
2569
|
+
}, La = {
|
|
2570
|
+
key: 2,
|
|
2571
|
+
class: "card__information"
|
|
2572
|
+
}, Ma = /* @__PURE__ */ F({
|
|
2570
2573
|
__name: "aeria-grid",
|
|
2571
2574
|
props: {
|
|
2572
2575
|
individualActions: {},
|
|
@@ -2575,21 +2578,25 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2575
2578
|
componentName: {}
|
|
2576
2579
|
},
|
|
2577
2580
|
setup(p) {
|
|
2578
|
-
const
|
|
2581
|
+
const n = p.layoutOptions, o = je(), a = (c) => Array.isArray(c) ? c[0] : c;
|
|
2579
2582
|
return (c, u) => {
|
|
2580
2583
|
const m = ne("clickable");
|
|
2581
2584
|
return t(), V(ja, {
|
|
2582
2585
|
list: c.componentName === "list"
|
|
2583
2586
|
}, {
|
|
2584
2587
|
default: h(() => [
|
|
2585
|
-
(t(!0),
|
|
2588
|
+
(t(!0), l(Z, null, D(e(o).items, (d) => (t(), V(sn, {
|
|
2586
2589
|
key: d._id,
|
|
2587
|
-
inactive: !!(e(
|
|
2590
|
+
inactive: !!(e(n).active && !d[e(n).active]),
|
|
2588
2591
|
horizontal: c.componentName === "list"
|
|
2589
2592
|
}, _e({
|
|
2590
2593
|
footer: h(() => [
|
|
2591
|
-
e(
|
|
2592
|
-
e(
|
|
2594
|
+
e(n).title ? (t(), l("div", Ra, C(d[e(n).title]), 1)) : g("", !0),
|
|
2595
|
+
Array.isArray(e(n).information) ? (t(), l("div", qa, [
|
|
2596
|
+
(t(!0), l(Z, null, D(e(n).information, (v) => (t(), l("div", {
|
|
2597
|
+
key: `info-${v}`
|
|
2598
|
+
}, C(d[v]), 1))), 128))
|
|
2599
|
+
])) : e(n).information ? (t(), l("div", La, C(d[e(n).information]), 1)) : g("", !0)
|
|
2593
2600
|
]),
|
|
2594
2601
|
actions: h(() => {
|
|
2595
2602
|
var v;
|
|
@@ -2602,11 +2609,11 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2602
2609
|
actions: c.individualActions
|
|
2603
2610
|
}), {
|
|
2604
2611
|
default: h(({
|
|
2605
|
-
visible:
|
|
2612
|
+
visible: s
|
|
2606
2613
|
}) => [
|
|
2607
|
-
|
|
2614
|
+
P(L(Y, {
|
|
2608
2615
|
reactive: "",
|
|
2609
|
-
active:
|
|
2616
|
+
active: s,
|
|
2610
2617
|
icon: "dots-three-vertical"
|
|
2611
2618
|
}, null, 8, ["active"]), [
|
|
2612
2619
|
[m]
|
|
@@ -2617,41 +2624,41 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2617
2624
|
];
|
|
2618
2625
|
}),
|
|
2619
2626
|
default: h(() => {
|
|
2620
|
-
var v,
|
|
2627
|
+
var v, s;
|
|
2621
2628
|
return [
|
|
2622
2629
|
L(Ue, z({
|
|
2623
2630
|
expandable: "",
|
|
2624
2631
|
ref_for: !0
|
|
2625
2632
|
}, {
|
|
2626
|
-
url: (v = a(d[e(
|
|
2627
|
-
meta: a(d[e(
|
|
2633
|
+
url: (v = a(d[e(n).picture])) == null ? void 0 : v.link,
|
|
2634
|
+
meta: a(d[e(n).picture]),
|
|
2628
2635
|
height: "16rem",
|
|
2629
|
-
alt: e(
|
|
2636
|
+
alt: e(n).title ? (s = a(d[e(n).title])) == null ? void 0 : s.link : "Item picture"
|
|
2630
2637
|
}), null, 16)
|
|
2631
2638
|
];
|
|
2632
2639
|
}),
|
|
2633
2640
|
_: 2
|
|
2634
2641
|
}, [
|
|
2635
|
-
e(
|
|
2642
|
+
e(n).badge && Array.isArray(d[e(n).badge]) ? {
|
|
2636
2643
|
name: "badge",
|
|
2637
2644
|
fn: h(() => [
|
|
2638
|
-
(t(!0),
|
|
2645
|
+
(t(!0), l(Z, null, D(d[e(n).badge], (v) => (t(), V(Ve, {
|
|
2639
2646
|
key: `${d._id}-${v}`,
|
|
2640
2647
|
large: ""
|
|
2641
2648
|
}, {
|
|
2642
2649
|
default: h(() => [
|
|
2643
|
-
G(C(e(
|
|
2650
|
+
G(C(e(n).translateBadge ? e(q)(v) : v), 1)
|
|
2644
2651
|
]),
|
|
2645
2652
|
_: 2
|
|
2646
2653
|
}, 1024))), 128))
|
|
2647
2654
|
]),
|
|
2648
2655
|
key: "0"
|
|
2649
|
-
} : e(
|
|
2656
|
+
} : e(n).badge ? {
|
|
2650
2657
|
name: "badge",
|
|
2651
2658
|
fn: h(() => [
|
|
2652
2659
|
L(Ve, null, {
|
|
2653
2660
|
default: h(() => [
|
|
2654
|
-
G(C(e(
|
|
2661
|
+
G(C(e(n).translateBadge ? e(q)(d[e(n).badge]) : d[e(n).badge]), 1)
|
|
2655
2662
|
]),
|
|
2656
2663
|
_: 2
|
|
2657
2664
|
}, 1024)
|
|
@@ -2665,20 +2672,20 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2665
2672
|
};
|
|
2666
2673
|
}
|
|
2667
2674
|
});
|
|
2668
|
-
const mt = /* @__PURE__ */ Q(
|
|
2675
|
+
const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) => ({
|
|
2669
2676
|
tabular: wa,
|
|
2670
2677
|
grid: mt,
|
|
2671
2678
|
list: mt
|
|
2672
|
-
})[p],
|
|
2679
|
+
})[p], Fa = {
|
|
2673
2680
|
key: 2,
|
|
2674
2681
|
class: "crud__controls"
|
|
2675
|
-
},
|
|
2682
|
+
}, Ea = {
|
|
2676
2683
|
key: 0,
|
|
2677
2684
|
class: "crud__search"
|
|
2678
|
-
},
|
|
2685
|
+
}, Ua = { class: "crud__actions" }, Ha = { class: "crud__context-badge" }, Da = { key: 0 }, Qa = {
|
|
2679
2686
|
key: 3,
|
|
2680
2687
|
class: "crud__pagination"
|
|
2681
|
-
}, ft = 30,
|
|
2688
|
+
}, ft = 30, Ga = /* @__PURE__ */ F({
|
|
2682
2689
|
__name: "aeria-crud",
|
|
2683
2690
|
props: {
|
|
2684
2691
|
collection: {},
|
|
@@ -2694,9 +2701,9 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2694
2701
|
},
|
|
2695
2702
|
emits: ["uiEvent"],
|
|
2696
2703
|
setup(p, { emit: r }) {
|
|
2697
|
-
const
|
|
2704
|
+
const n = ee(!1), o = ee(!1), a = ee((...O) => null), c = ee(), u = p, m = r, d = Be(), v = ht({
|
|
2698
2705
|
delay: 600
|
|
2699
|
-
}),
|
|
2706
|
+
}), s = ie("meta"), y = Le(), { reachedEnd: $, detach: f } = Ke(null, {
|
|
2700
2707
|
antecipate: 600
|
|
2701
2708
|
}), A = !y.value.md || u.scrollPagination;
|
|
2702
2709
|
A && ue($, (O) => {
|
|
@@ -2737,7 +2744,7 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2737
2744
|
if (k && k[0] === O[0] && k[1] === O[1])
|
|
2738
2745
|
return;
|
|
2739
2746
|
const N = d.currentRoute.value;
|
|
2740
|
-
if (
|
|
2747
|
+
if (s.view.title = u.collection, !u.noFetch && (!N.query._popstate || i.itemsCount === 0)) {
|
|
2741
2748
|
const le = Mt(i, N.query);
|
|
2742
2749
|
Object.keys(le).length > 0 && Object.assign(i.filters, le), await U();
|
|
2743
2750
|
}
|
|
@@ -2777,9 +2784,9 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2777
2784
|
})), k.name === "spawnAdd")
|
|
2778
2785
|
i.$actions.clearItem(), (le = k.params) != null && le.item && (i.$actions.setItem(k.params.item), Object.keys(k.params.item).forEach((_) => {
|
|
2779
2786
|
delete i.referenceItem[_];
|
|
2780
|
-
})),
|
|
2787
|
+
})), n.value = "add";
|
|
2781
2788
|
else if (k.name === "spawnEdit")
|
|
2782
|
-
i.$actions.setItem(k.params),
|
|
2789
|
+
i.$actions.setItem(k.params), n.value = "edit";
|
|
2783
2790
|
else if (k.name === "duplicate") {
|
|
2784
2791
|
await N;
|
|
2785
2792
|
const _ = Object.entries(i.item).reduce((T, [H, J]) => {
|
|
@@ -2808,12 +2815,12 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2808
2815
|
[H]: J
|
|
2809
2816
|
};
|
|
2810
2817
|
}, {});
|
|
2811
|
-
i.$actions.setItem(_), delete i.item._id, i.referenceItem = {},
|
|
2818
|
+
i.$actions.setItem(_), delete i.item._id, i.referenceItem = {}, n.value = "duplicate";
|
|
2812
2819
|
} else
|
|
2813
2820
|
m("uiEvent", k);
|
|
2814
2821
|
}, {
|
|
2815
2822
|
deep: !0
|
|
2816
|
-
}), ue(() =>
|
|
2823
|
+
}), ue(() => n, ({ value: O }) => {
|
|
2817
2824
|
O === !1 && i.$actions.clearItem();
|
|
2818
2825
|
});
|
|
2819
2826
|
const ce = X(() => {
|
|
@@ -2826,26 +2833,26 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2826
2833
|
return ge(ze, X(() => u.collection)), (O, k) => {
|
|
2827
2834
|
var _, T, H, J, S, R, re;
|
|
2828
2835
|
const N = ne("clickable"), le = ne("loading");
|
|
2829
|
-
return t(),
|
|
2830
|
-
|
|
2836
|
+
return t(), l(Z, null, [
|
|
2837
|
+
o.value ? (t(), V(Ko, {
|
|
2831
2838
|
key: e(i).$id,
|
|
2832
|
-
modelValue:
|
|
2833
|
-
"onUpdate:modelValue": k[0] || (k[0] = (j) =>
|
|
2839
|
+
modelValue: o.value,
|
|
2840
|
+
"onUpdate:modelValue": k[0] || (k[0] = (j) => o.value = j)
|
|
2834
2841
|
}, null, 8, ["modelValue"])) : g("", !0),
|
|
2835
|
-
|
|
2842
|
+
n.value ? (t(), V(Xo, z({
|
|
2836
2843
|
key: 1,
|
|
2837
|
-
visible:
|
|
2838
|
-
"onUpdate:visible": k[1] || (k[1] = (j) =>
|
|
2844
|
+
visible: n.value,
|
|
2845
|
+
"onUpdate:visible": k[1] || (k[1] = (j) => n.value = j),
|
|
2839
2846
|
"fixed-right": ""
|
|
2840
2847
|
}, {
|
|
2841
2848
|
collection: O.collection,
|
|
2842
2849
|
individualActions: ce.value
|
|
2843
2850
|
}, {
|
|
2844
|
-
onCancel: k[2] || (k[2] = (j) =>
|
|
2851
|
+
onCancel: k[2] || (k[2] = (j) => n.value = !1)
|
|
2845
2852
|
}), _e({
|
|
2846
2853
|
header: h(() => [
|
|
2847
2854
|
B("span", null, C((() => {
|
|
2848
|
-
switch (
|
|
2855
|
+
switch (n.value) {
|
|
2849
2856
|
case "add":
|
|
2850
2857
|
return e(q)("action.add", { capitalize: !0 });
|
|
2851
2858
|
case "duplicate":
|
|
@@ -2866,8 +2873,8 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2866
2873
|
])
|
|
2867
2874
|
}))
|
|
2868
2875
|
]), 1040, ["visible"])) : g("", !0),
|
|
2869
|
-
!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(),
|
|
2870
|
-
e(i).description.search ? (t(),
|
|
2876
|
+
!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(), l("div", Fa, [
|
|
2877
|
+
e(i).description.search ? (t(), l("div", Ea, [
|
|
2871
2878
|
L(Oe, z({
|
|
2872
2879
|
modelValue: e(i).textQuery,
|
|
2873
2880
|
"onUpdate:modelValue": k[3] || (k[3] = (j) => e(i).textQuery = j)
|
|
@@ -2879,7 +2886,7 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2879
2886
|
}
|
|
2880
2887
|
}), null, 16, ["modelValue"])
|
|
2881
2888
|
])) : g("", !0),
|
|
2882
|
-
B("div",
|
|
2889
|
+
B("div", Ua, [
|
|
2883
2890
|
ae.value.length > 0 || !O.noLayoutToggle && e(i).description.layout && ((H = e(i).description.layout) == null ? void 0 : H.name) !== "tabular" ? (t(), V(Ie, { key: 0 }, _e({
|
|
2884
2891
|
default: h(() => [
|
|
2885
2892
|
L(pe, {
|
|
@@ -2902,9 +2909,9 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2902
2909
|
Object.keys(e(i).availableFilters).length > 0 ? {
|
|
2903
2910
|
name: "filter",
|
|
2904
2911
|
fn: h(() => [
|
|
2905
|
-
|
|
2912
|
+
P((t(), V(Y, {
|
|
2906
2913
|
icon: "funnel",
|
|
2907
|
-
onClick: k[4] || (k[4] = (j) =>
|
|
2914
|
+
onClick: k[4] || (k[4] = (j) => o.value = !0)
|
|
2908
2915
|
}, {
|
|
2909
2916
|
default: h(() => [
|
|
2910
2917
|
G(C(e(q)("filters", { capitalize: !0 })), 1)
|
|
@@ -2913,7 +2920,7 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2913
2920
|
})), [
|
|
2914
2921
|
[N]
|
|
2915
2922
|
]),
|
|
2916
|
-
B("div",
|
|
2923
|
+
B("div", Ha, [
|
|
2917
2924
|
e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2918
2925
|
default: h(() => [
|
|
2919
2926
|
G(C(e(i).filtersCount), 1)
|
|
@@ -2927,7 +2934,7 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2927
2934
|
!O.noLayoutToggle && e(i).description.layout && ((J = e(i).description.layout) == null ? void 0 : J.name) !== "tabular" ? {
|
|
2928
2935
|
name: "layout-toggle",
|
|
2929
2936
|
fn: h(() => [
|
|
2930
|
-
|
|
2937
|
+
P((t(), V(Y, {
|
|
2931
2938
|
icon: "table",
|
|
2932
2939
|
onClick: k[5] || (k[5] = (j) => ke(e(i)))
|
|
2933
2940
|
}, {
|
|
@@ -2961,7 +2968,7 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2961
2968
|
key: 1,
|
|
2962
2969
|
variant: "alt",
|
|
2963
2970
|
icon: "funnel",
|
|
2964
|
-
onClick: k[6] || (k[6] = (j) =>
|
|
2971
|
+
onClick: k[6] || (k[6] = (j) => o.value = !0)
|
|
2965
2972
|
}, {
|
|
2966
2973
|
default: h(() => [
|
|
2967
2974
|
k[8] || (k[8] = B("div", null, "Filtros", -1)),
|
|
@@ -2974,7 +2981,7 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2974
2981
|
]),
|
|
2975
2982
|
_: 1
|
|
2976
2983
|
})) : g("", !0),
|
|
2977
|
-
(t(!0),
|
|
2984
|
+
(t(!0), l(Z, null, D(e(i).actions.filter((j) => j.button), (j, se) => (t(), V(pe, {
|
|
2978
2985
|
key: `action-${se}`,
|
|
2979
2986
|
icon: j.icon,
|
|
2980
2987
|
disabled: e(i).selected.length === 0 && "selection" in j && j.selection,
|
|
@@ -2988,8 +2995,8 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
2988
2995
|
O.$slots.actions ? I(O.$slots, "actions", { key: 2 }, void 0, !0) : g("", !0)
|
|
2989
2996
|
])
|
|
2990
2997
|
])) : g("", !0),
|
|
2991
|
-
|
|
2992
|
-
e(i).itemsCount === 0 && !e(i).loading.getAll && b.value && (e(w) || O.$slots.empty) ? (t(),
|
|
2998
|
+
P((t(), l("div", null, [
|
|
2999
|
+
e(i).itemsCount === 0 && !e(i).loading.getAll && b.value && (e(w) || O.$slots.empty) ? (t(), l("div", Da, [
|
|
2993
3000
|
e(w) ? (t(), V(be(e(w)), de(z({ key: 0 }, {
|
|
2994
3001
|
collection: e(i).$id
|
|
2995
3002
|
})), {
|
|
@@ -3014,7 +3021,7 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
3014
3021
|
})), void 0, !0)
|
|
3015
3022
|
])) : O.$slots.component ? I(O.$slots, "component", de(z({ key: 1 }, {
|
|
3016
3023
|
store: e(i)
|
|
3017
|
-
})), void 0, !0) : (t(), V(be(e(
|
|
3024
|
+
})), void 0, !0) : (t(), V(be(e(za)(((S = O.layout) == null ? void 0 : S.name) || e(i).$currentLayout)), z({ key: 2 }, {
|
|
3018
3025
|
individualActions: ce.value,
|
|
3019
3026
|
layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(i).layout.options,
|
|
3020
3027
|
componentProps: O.componentProps
|
|
@@ -3038,7 +3045,7 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
3038
3045
|
])), [
|
|
3039
3046
|
[le, (!e(A) || K.value === ft) && e(i).loading.getAll]
|
|
3040
3047
|
]),
|
|
3041
|
-
!e(A) && !O.noControls && !e(i).loading.getAll && e(i).itemsCount > 0 ? (t(),
|
|
3048
|
+
!e(A) && !O.noControls && !e(i).loading.getAll && e(i).itemsCount > 0 ? (t(), l("div", Qa, [
|
|
3042
3049
|
L(qn, {
|
|
3043
3050
|
pagination: e(i).pagination,
|
|
3044
3051
|
onPaginate: oe
|
|
@@ -3048,35 +3055,35 @@ const mt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-dbd3ccb5"]]), Ma = (p) =
|
|
|
3048
3055
|
};
|
|
3049
3056
|
}
|
|
3050
3057
|
});
|
|
3051
|
-
const
|
|
3058
|
+
const Il = /* @__PURE__ */ Q(Ga, [["__scopeId", "data-v-d64cb42a"]]), Wa = { class: "prompt" }, Ya = /* @__PURE__ */ F({
|
|
3052
3059
|
__name: "aeria-prompt",
|
|
3053
3060
|
props: {
|
|
3054
3061
|
title: {},
|
|
3055
3062
|
options: {}
|
|
3056
3063
|
},
|
|
3057
3064
|
setup(p) {
|
|
3058
|
-
const r = ie("meta"),
|
|
3059
|
-
r.$actions.fulfillPrompt(
|
|
3065
|
+
const r = ie("meta"), n = (o, a) => {
|
|
3066
|
+
r.$actions.fulfillPrompt(o, a);
|
|
3060
3067
|
};
|
|
3061
|
-
return (
|
|
3068
|
+
return (o, a) => (t(), V(Se, {
|
|
3062
3069
|
float: "",
|
|
3063
3070
|
"fill-footer": "",
|
|
3064
3071
|
"close-hint": !1,
|
|
3065
|
-
title:
|
|
3072
|
+
title: o.title,
|
|
3066
3073
|
style: { "--panel-min-width": "32rem" }
|
|
3067
3074
|
}, {
|
|
3068
3075
|
footer: h(() => [
|
|
3069
3076
|
B("div", {
|
|
3070
3077
|
class: "prompt__options",
|
|
3071
|
-
style: $e(`grid-template-columns: repeat(${Object.keys(
|
|
3078
|
+
style: $e(`grid-template-columns: repeat(${Object.keys(o.options).length}, 1fr)`)
|
|
3072
3079
|
}, [
|
|
3073
|
-
(t(!0),
|
|
3080
|
+
(t(!0), l(Z, null, D(Object.entries(o.options), ([c, u], m) => (t(), V(ye, {
|
|
3074
3081
|
key: `option-${m}`,
|
|
3075
3082
|
class: W([
|
|
3076
3083
|
"prompt__option",
|
|
3077
3084
|
`prompt__option--${u.variant || "primary"}`
|
|
3078
3085
|
]),
|
|
3079
|
-
onClick: (d) => u.click ? u.click(c, u) :
|
|
3086
|
+
onClick: (d) => u.click ? u.click(c, u) : n(c, u)
|
|
3080
3087
|
}, {
|
|
3081
3088
|
default: h(() => [
|
|
3082
3089
|
G(C(u.title), 1)
|
|
@@ -3086,15 +3093,15 @@ const Al = /* @__PURE__ */ Q(Qa, [["__scopeId", "data-v-d64cb42a"]]), Ga = { cla
|
|
|
3086
3093
|
], 4)
|
|
3087
3094
|
]),
|
|
3088
3095
|
default: h(() => [
|
|
3089
|
-
B("div",
|
|
3090
|
-
I(
|
|
3096
|
+
B("div", Wa, [
|
|
3097
|
+
I(o.$slots, "default", {}, void 0, !0)
|
|
3091
3098
|
])
|
|
3092
3099
|
]),
|
|
3093
3100
|
_: 3
|
|
3094
3101
|
}, 8, ["title"]));
|
|
3095
3102
|
}
|
|
3096
3103
|
});
|
|
3097
|
-
const
|
|
3104
|
+
const Ka = /* @__PURE__ */ Q(Ya, [["__scopeId", "data-v-4cbfd28f"]]), Xa = { class: "toast__content" }, Ja = { class: "toast__time" }, Za = /* @__PURE__ */ F({
|
|
3098
3105
|
__name: "aeria-toast",
|
|
3099
3106
|
props: {
|
|
3100
3107
|
idx: {},
|
|
@@ -3104,23 +3111,23 @@ const Ya = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-4cbfd28f"]]), Ka = { cla
|
|
|
3104
3111
|
},
|
|
3105
3112
|
setup(p) {
|
|
3106
3113
|
const r = ie("meta");
|
|
3107
|
-
return (
|
|
3114
|
+
return (n, o) => {
|
|
3108
3115
|
const a = ne("clickable");
|
|
3109
|
-
return
|
|
3116
|
+
return P((t(), l("div", {
|
|
3110
3117
|
class: W({
|
|
3111
3118
|
toast: !0,
|
|
3112
|
-
"toast--animate": e(r).toasts[0].itr ===
|
|
3119
|
+
"toast--animate": e(r).toasts[0].itr === n.itr
|
|
3113
3120
|
}),
|
|
3114
|
-
onAnimationend:
|
|
3115
|
-
onClick:
|
|
3121
|
+
onAnimationend: o[0] || (o[0] = (c) => e(r).$actions.popToast()),
|
|
3122
|
+
onClick: o[1] || (o[1] = (c) => e(r).$actions.popToast(n.itr))
|
|
3116
3123
|
}, [
|
|
3117
3124
|
L(Y, z(
|
|
3118
|
-
|
|
3125
|
+
n.icon ? { icon: n.icon } : { icon: "warning-circle" },
|
|
3119
3126
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3120
3127
|
), null, 16),
|
|
3121
|
-
B("div",
|
|
3122
|
-
I(
|
|
3123
|
-
B("div",
|
|
3128
|
+
B("div", Xa, [
|
|
3129
|
+
I(n.$slots, "default", {}, void 0, !0),
|
|
3130
|
+
B("div", Ja, C(n.formatDateTime(n.date, { hoursOnly: !0 })), 1)
|
|
3124
3131
|
])
|
|
3125
3132
|
], 34)), [
|
|
3126
3133
|
[a]
|
|
@@ -3128,18 +3135,18 @@ const Ya = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-4cbfd28f"]]), Ka = { cla
|
|
|
3128
3135
|
};
|
|
3129
3136
|
}
|
|
3130
3137
|
});
|
|
3131
|
-
const
|
|
3138
|
+
const Pa = /* @__PURE__ */ Q(Za, [["__scopeId", "data-v-606d47bf"]]), Na = ["innerHTML"], xa = { class: "main__toasts" }, el = ["innerHTML"], tl = /* @__PURE__ */ F({
|
|
3132
3139
|
__name: "aeria-main",
|
|
3133
3140
|
setup(p) {
|
|
3134
|
-
const r = ie("meta"),
|
|
3135
|
-
return (
|
|
3141
|
+
const r = ie("meta"), n = X(() => r.themeOverride || r.theme);
|
|
3142
|
+
return (o, a) => {
|
|
3136
3143
|
const c = Ct("router-view");
|
|
3137
|
-
return t(),
|
|
3144
|
+
return t(), l("main", {
|
|
3138
3145
|
id: "main",
|
|
3139
3146
|
class: W([
|
|
3140
3147
|
"main",
|
|
3141
|
-
`main--${
|
|
3142
|
-
{ dark:
|
|
3148
|
+
`main--${n.value}`,
|
|
3149
|
+
{ dark: n.value === "dark" }
|
|
3143
3150
|
])
|
|
3144
3151
|
}, [
|
|
3145
3152
|
(t(), V(Ot, null, {
|
|
@@ -3147,10 +3154,10 @@ const Za = /* @__PURE__ */ Q(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
|
|
|
3147
3154
|
L(c, null, {
|
|
3148
3155
|
default: h(({ Component: u }) => [
|
|
3149
3156
|
(t(), V(be(u), null, _e({ _: 2 }, [
|
|
3150
|
-
D(Object.keys(
|
|
3157
|
+
D(Object.keys(o.$slots), (m) => ({
|
|
3151
3158
|
name: m,
|
|
3152
3159
|
fn: h(() => [
|
|
3153
|
-
I(
|
|
3160
|
+
I(o.$slots, m, {}, void 0, !0)
|
|
3154
3161
|
])
|
|
3155
3162
|
}))
|
|
3156
3163
|
]), 1024))
|
|
@@ -3160,7 +3167,7 @@ const Za = /* @__PURE__ */ Q(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
|
|
|
3160
3167
|
]),
|
|
3161
3168
|
_: 3
|
|
3162
3169
|
})),
|
|
3163
|
-
I(
|
|
3170
|
+
I(o.$slots, "default", {}, void 0, !0),
|
|
3164
3171
|
L(Se, z({
|
|
3165
3172
|
modelValue: e(r).modal.visible,
|
|
3166
3173
|
"onUpdate:modelValue": a[0] || (a[0] = (u) => e(r).modal.visible = u),
|
|
@@ -3171,29 +3178,29 @@ const Za = /* @__PURE__ */ Q(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
|
|
|
3171
3178
|
onOverlayClick: a[1] || (a[1] = (u) => e(r).modal.visible = !1)
|
|
3172
3179
|
}), {
|
|
3173
3180
|
default: h(() => [
|
|
3174
|
-
e(r).modal.body ? (t(),
|
|
3181
|
+
e(r).modal.body ? (t(), l("div", {
|
|
3175
3182
|
key: 0,
|
|
3176
3183
|
style: { "white-space": "pre-wrap" },
|
|
3177
3184
|
innerHTML: e(r).modal.body
|
|
3178
|
-
}, null, 8,
|
|
3185
|
+
}, null, 8, Na)) : g("", !0),
|
|
3179
3186
|
e(r).modal.component ? (t(), V(be(e(r).modal.component), { key: 1 })) : g("", !0)
|
|
3180
3187
|
]),
|
|
3181
3188
|
_: 1
|
|
3182
3189
|
}, 16, ["modelValue"]),
|
|
3183
|
-
e(r).prompt.visible ? (t(), V(
|
|
3190
|
+
e(r).prompt.visible ? (t(), V(Ka, de(z({ key: 0 }, e(r).prompt)), {
|
|
3184
3191
|
default: h(() => [
|
|
3185
3192
|
G(C(e(r).prompt.body), 1)
|
|
3186
3193
|
]),
|
|
3187
3194
|
_: 1
|
|
3188
3195
|
}, 16)) : g("", !0),
|
|
3189
|
-
B("div",
|
|
3190
|
-
(t(!0),
|
|
3196
|
+
B("div", xa, [
|
|
3197
|
+
(t(!0), l(Z, null, D(e(r).toasts, (u) => (t(), V(Pa, z({ ref_for: !0 }, u, {
|
|
3191
3198
|
key: `toast-${u.itr}`
|
|
3192
3199
|
}), {
|
|
3193
3200
|
default: h(() => [
|
|
3194
3201
|
B("div", {
|
|
3195
3202
|
innerHTML: e(q)(u.text)
|
|
3196
|
-
}, null, 8,
|
|
3203
|
+
}, null, 8, el)
|
|
3197
3204
|
]),
|
|
3198
3205
|
_: 2
|
|
3199
3206
|
}, 1040))), 128))
|
|
@@ -3202,28 +3209,28 @@ const Za = /* @__PURE__ */ Q(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["inn
|
|
|
3202
3209
|
};
|
|
3203
3210
|
}
|
|
3204
3211
|
});
|
|
3205
|
-
const
|
|
3206
|
-
const
|
|
3207
|
-
function
|
|
3208
|
-
return t(),
|
|
3209
|
-
(t(!0),
|
|
3210
|
-
key:
|
|
3212
|
+
const Bl = /* @__PURE__ */ Q(tl, [["__scopeId", "data-v-09c961fa"]]);
|
|
3213
|
+
const nl = {}, ol = { class: "menu" };
|
|
3214
|
+
function al(p, r) {
|
|
3215
|
+
return t(), l("menu", ol, [
|
|
3216
|
+
(t(!0), l(Z, null, D(Object.keys(p.$slots), (n) => (t(), l("div", {
|
|
3217
|
+
key: n,
|
|
3211
3218
|
class: "menu__entry"
|
|
3212
3219
|
}, [
|
|
3213
|
-
I(p.$slots,
|
|
3220
|
+
I(p.$slots, n, {}, void 0, !0)
|
|
3214
3221
|
]))), 128))
|
|
3215
3222
|
]);
|
|
3216
3223
|
}
|
|
3217
|
-
const
|
|
3224
|
+
const Sl = /* @__PURE__ */ Q(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb"]]), ll = { class: "tabs" }, sl = {
|
|
3218
3225
|
key: 0,
|
|
3219
3226
|
class: "tabs__horizontal"
|
|
3220
|
-
},
|
|
3227
|
+
}, il = {
|
|
3221
3228
|
key: 0,
|
|
3222
3229
|
class: "tabs__tab tabs__tab--info"
|
|
3223
|
-
},
|
|
3230
|
+
}, rl = ["onClick"], ul = {
|
|
3224
3231
|
key: 1,
|
|
3225
3232
|
class: "tabs__context-menu"
|
|
3226
|
-
},
|
|
3233
|
+
}, cl = ["onClick"], dl = /* @__PURE__ */ F({
|
|
3227
3234
|
__name: "aeria-tabs",
|
|
3228
3235
|
props: {
|
|
3229
3236
|
query: {},
|
|
@@ -3231,23 +3238,23 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3231
3238
|
dropdown: { type: Boolean }
|
|
3232
3239
|
},
|
|
3233
3240
|
setup(p) {
|
|
3234
|
-
const r = p,
|
|
3241
|
+
const r = p, n = At(), o = Be(), a = Le(), c = X(() => {
|
|
3235
3242
|
if (r.query) {
|
|
3236
|
-
const m =
|
|
3243
|
+
const m = o.currentRoute.value.query[r.query];
|
|
3237
3244
|
if (m)
|
|
3238
3245
|
return m;
|
|
3239
3246
|
} else if (r.param) {
|
|
3240
|
-
const m =
|
|
3247
|
+
const m = o.currentRoute.value.params[r.param];
|
|
3241
3248
|
if (m)
|
|
3242
3249
|
return m;
|
|
3243
3250
|
}
|
|
3244
|
-
return Object.keys(
|
|
3251
|
+
return Object.keys(n)[0];
|
|
3245
3252
|
}), u = (m) => {
|
|
3246
|
-
r.query &&
|
|
3253
|
+
r.query && o.push(qe(o.currentRoute.value, {
|
|
3247
3254
|
query: {
|
|
3248
3255
|
[r.query]: m
|
|
3249
3256
|
}
|
|
3250
|
-
})), r.param &&
|
|
3257
|
+
})), r.param && o.push(qe(o.currentRoute.value, {
|
|
3251
3258
|
params: {
|
|
3252
3259
|
[r.param]: m
|
|
3253
3260
|
}
|
|
@@ -3255,27 +3262,27 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3255
3262
|
};
|
|
3256
3263
|
return (m, d) => {
|
|
3257
3264
|
const v = ne("clickable");
|
|
3258
|
-
return t(),
|
|
3259
|
-
e(a).md && !m.dropdown ? (t(),
|
|
3260
|
-
m.$slots.default ? (t(),
|
|
3265
|
+
return t(), l("div", ll, [
|
|
3266
|
+
e(a).md && !m.dropdown ? (t(), l("div", sl, [
|
|
3267
|
+
m.$slots.default ? (t(), l("div", il, [
|
|
3261
3268
|
I(m.$slots, "default", {}, void 0, !0)
|
|
3262
3269
|
])) : g("", !0),
|
|
3263
|
-
(t(!0),
|
|
3264
|
-
key:
|
|
3270
|
+
(t(!0), l(Z, null, D(Object.keys(m.$slots).filter((s) => s !== "default"), (s, y) => (t(), l("div", {
|
|
3271
|
+
key: s,
|
|
3265
3272
|
class: W({
|
|
3266
3273
|
tabs__tab: !0,
|
|
3267
|
-
"tabs__tab--current":
|
|
3274
|
+
"tabs__tab--current": s === c.value || !c.value && y === 0
|
|
3268
3275
|
}),
|
|
3269
|
-
onClick: ($) => u(
|
|
3276
|
+
onClick: ($) => u(s)
|
|
3270
3277
|
}, [
|
|
3271
|
-
I(m.$slots,
|
|
3272
|
-
], 10,
|
|
3273
|
-
])) : (t(),
|
|
3278
|
+
I(m.$slots, s, {}, void 0, !0)
|
|
3279
|
+
], 10, rl))), 128))
|
|
3280
|
+
])) : (t(), l("div", ul, [
|
|
3274
3281
|
L(Ie, null, _e({
|
|
3275
|
-
default: h(({ visible:
|
|
3276
|
-
|
|
3282
|
+
default: h(({ visible: s }) => [
|
|
3283
|
+
P((t(), V(Y, {
|
|
3277
3284
|
"icon-right": "",
|
|
3278
|
-
active:
|
|
3285
|
+
active: s,
|
|
3279
3286
|
icon: "caret-down",
|
|
3280
3287
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
3281
3288
|
class: "tabs__context-menu-icon"
|
|
@@ -3290,14 +3297,14 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3290
3297
|
]),
|
|
3291
3298
|
_: 2
|
|
3292
3299
|
}, [
|
|
3293
|
-
D(Object.keys(m.$slots).filter((
|
|
3294
|
-
name:
|
|
3300
|
+
D(Object.keys(m.$slots).filter((s) => s !== "default"), (s) => ({
|
|
3301
|
+
name: s,
|
|
3295
3302
|
fn: h(() => [
|
|
3296
3303
|
B("div", {
|
|
3297
|
-
onClick: (y) => u(
|
|
3304
|
+
onClick: (y) => u(s)
|
|
3298
3305
|
}, [
|
|
3299
|
-
I(m.$slots,
|
|
3300
|
-
], 8,
|
|
3306
|
+
I(m.$slots, s, {}, void 0, !0)
|
|
3307
|
+
], 8, cl)
|
|
3301
3308
|
])
|
|
3302
3309
|
}))
|
|
3303
3310
|
]), 1024)
|
|
@@ -3306,69 +3313,69 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3306
3313
|
};
|
|
3307
3314
|
}
|
|
3308
3315
|
});
|
|
3309
|
-
const
|
|
3316
|
+
const pl = /* @__PURE__ */ Q(dl, [["__scopeId", "data-v-a20914ab"]]), _l = F({
|
|
3310
3317
|
props: {
|
|
3311
3318
|
initialValue: String,
|
|
3312
3319
|
promise: Promise
|
|
3313
3320
|
},
|
|
3314
3321
|
setup(p) {
|
|
3315
3322
|
const r = ee(p.initialValue);
|
|
3316
|
-
return p.promise instanceof Promise && p.promise.then((
|
|
3317
|
-
r.value =
|
|
3323
|
+
return p.promise instanceof Promise && p.promise.then((n) => {
|
|
3324
|
+
r.value = n;
|
|
3318
3325
|
}), () => It("div", String(r.value));
|
|
3319
3326
|
}
|
|
3320
|
-
}),
|
|
3327
|
+
}), ml = ["onClick"], fl = { key: 1 }, vl = /* @__PURE__ */ F({
|
|
3321
3328
|
__name: "aeria-crud-topbar",
|
|
3322
3329
|
props: {
|
|
3323
3330
|
collection: {}
|
|
3324
3331
|
},
|
|
3325
3332
|
setup(p) {
|
|
3326
|
-
const r = p,
|
|
3327
|
-
const { error: v, result:
|
|
3333
|
+
const r = p, o = Be().currentRoute, a = Xe(), c = X(() => r.collection ? je(r.collection, a) : typeof o.value.meta.collection == "string" ? je(o.value.meta.collection, a) : typeof o.value.params.collection == "string" ? je(o.value.params.collection, a) : null), u = async (m, d) => {
|
|
3334
|
+
const { error: v, result: s } = await d.$functions[m.badgeFunction]({
|
|
3328
3335
|
filters: m.filters
|
|
3329
3336
|
});
|
|
3330
|
-
return v ? 0 :
|
|
3337
|
+
return v ? 0 : s;
|
|
3331
3338
|
};
|
|
3332
|
-
return (m, d) => c.value && c.value.description.filtersPresets ? (t(), V(
|
|
3339
|
+
return (m, d) => c.value && c.value.description.filtersPresets ? (t(), V(pl, {
|
|
3333
3340
|
key: 0,
|
|
3334
3341
|
dropdown: "",
|
|
3335
3342
|
query: "section"
|
|
3336
3343
|
}, _e({ _: 2 }, [
|
|
3337
|
-
D(Object.entries(c.value.description.filtersPresets), ([v,
|
|
3344
|
+
D(Object.entries(c.value.description.filtersPresets), ([v, s]) => ({
|
|
3338
3345
|
name: v,
|
|
3339
3346
|
fn: h(() => [
|
|
3340
3347
|
B("div", {
|
|
3341
3348
|
class: "topbar__preset",
|
|
3342
|
-
onClick: (y) => e(bt)(
|
|
3349
|
+
onClick: (y) => e(bt)(s, c.value)
|
|
3343
3350
|
}, [
|
|
3344
|
-
|
|
3351
|
+
s.icon ? (t(), V(Y, {
|
|
3345
3352
|
key: 0,
|
|
3346
|
-
icon:
|
|
3353
|
+
icon: s.icon
|
|
3347
3354
|
}, {
|
|
3348
3355
|
default: h(() => [
|
|
3349
|
-
G(C(
|
|
3356
|
+
G(C(s.label || e(q)(v, { plural: !0 })), 1)
|
|
3350
3357
|
]),
|
|
3351
3358
|
_: 2
|
|
3352
|
-
}, 1032, ["icon"])) : (t(),
|
|
3353
|
-
|
|
3359
|
+
}, 1032, ["icon"])) : (t(), l("div", fl, C(s.label || e(q)(v, { plural: !0 })), 1)),
|
|
3360
|
+
s.badgeFunction ? (t(), V(Ve, { key: 2 }, {
|
|
3354
3361
|
default: h(() => [
|
|
3355
|
-
L(e(
|
|
3362
|
+
L(e(_l), {
|
|
3356
3363
|
"initial-value": "0",
|
|
3357
|
-
promise: u(
|
|
3364
|
+
promise: u(s, c.value)
|
|
3358
3365
|
}, null, 8, ["promise"])
|
|
3359
3366
|
]),
|
|
3360
3367
|
_: 2
|
|
3361
3368
|
}, 1024)) : g("", !0)
|
|
3362
|
-
], 8,
|
|
3369
|
+
], 8, ml)
|
|
3363
3370
|
])
|
|
3364
3371
|
}))
|
|
3365
3372
|
]), 1024)) : g("", !0);
|
|
3366
3373
|
}
|
|
3367
3374
|
});
|
|
3368
|
-
const
|
|
3375
|
+
const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3369
3376
|
__proto__: null,
|
|
3370
|
-
default:
|
|
3371
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3377
|
+
default: yl
|
|
3378
|
+
}, Symbol.toStringTag, { value: "Module" })), wl = /* @__PURE__ */ F({
|
|
3372
3379
|
__name: "aeria-password-form",
|
|
3373
3380
|
props: {
|
|
3374
3381
|
modelValue: {}
|
|
@@ -3377,7 +3384,7 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3377
3384
|
setup(p) {
|
|
3378
3385
|
const r = p;
|
|
3379
3386
|
ge(ze, null);
|
|
3380
|
-
const
|
|
3387
|
+
const n = zt(), o = X(() => n(
|
|
3381
3388
|
r.modelValue.password,
|
|
3382
3389
|
r.modelValue.confirmation
|
|
3383
3390
|
));
|
|
@@ -3398,13 +3405,13 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3398
3405
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => a.$emit("update:modelValue", u))
|
|
3399
3406
|
}, {
|
|
3400
3407
|
after: h(() => [
|
|
3401
|
-
B("div", null, C(
|
|
3402
|
-
I(a.$slots, "default", de(Ce({ passwordError:
|
|
3408
|
+
B("div", null, C(o.value || "Senhas conferem"), 1),
|
|
3409
|
+
I(a.$slots, "default", de(Ce({ passwordError: o.value })))
|
|
3403
3410
|
]),
|
|
3404
3411
|
_: 3
|
|
3405
3412
|
}, 8, ["model-value"]));
|
|
3406
3413
|
}
|
|
3407
|
-
}),
|
|
3414
|
+
}), Tl = (p, r = []) => ({
|
|
3408
3415
|
path: "/user",
|
|
3409
3416
|
name: "/builtin:user",
|
|
3410
3417
|
component: p,
|
|
@@ -3412,17 +3419,17 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3412
3419
|
{
|
|
3413
3420
|
path: "invite/:id",
|
|
3414
3421
|
name: "/user/invite/:id",
|
|
3415
|
-
redirect: (
|
|
3422
|
+
redirect: (n) => ({
|
|
3416
3423
|
path: "/user/signup",
|
|
3417
3424
|
params: {
|
|
3418
|
-
inviteId:
|
|
3425
|
+
inviteId: n.params.id
|
|
3419
3426
|
}
|
|
3420
3427
|
})
|
|
3421
3428
|
},
|
|
3422
3429
|
{
|
|
3423
3430
|
path: "signin",
|
|
3424
3431
|
name: "/user/signin",
|
|
3425
|
-
component: () => import("./signin-
|
|
3432
|
+
component: () => import("./signin-0f3fd855.js"),
|
|
3426
3433
|
meta: {
|
|
3427
3434
|
title: "Sign in"
|
|
3428
3435
|
}
|
|
@@ -3430,7 +3437,7 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3430
3437
|
{
|
|
3431
3438
|
path: "signup",
|
|
3432
3439
|
name: "/user/signup",
|
|
3433
|
-
component: () => import("./signup-
|
|
3440
|
+
component: () => import("./signup-a6e0d10a.js"),
|
|
3434
3441
|
meta: {
|
|
3435
3442
|
title: "Sign up"
|
|
3436
3443
|
}
|
|
@@ -3438,7 +3445,7 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3438
3445
|
{
|
|
3439
3446
|
path: "redefine-password",
|
|
3440
3447
|
name: "/user/redefine-password",
|
|
3441
|
-
component: () => import("./redefine-password-
|
|
3448
|
+
component: () => import("./redefine-password-d30a850b.js"),
|
|
3442
3449
|
meta: {
|
|
3443
3450
|
title: "Redefine password"
|
|
3444
3451
|
}
|
|
@@ -3446,13 +3453,13 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3446
3453
|
{
|
|
3447
3454
|
path: "activation",
|
|
3448
3455
|
name: "/user/activation",
|
|
3449
|
-
component: () => import("./activation-
|
|
3456
|
+
component: () => import("./activation-d4f6bfd3.js"),
|
|
3450
3457
|
meta: {
|
|
3451
3458
|
title: "Activate user"
|
|
3452
3459
|
}
|
|
3453
3460
|
}
|
|
3454
3461
|
])
|
|
3455
|
-
}),
|
|
3462
|
+
}), jl = (p, r = []) => ({
|
|
3456
3463
|
path: "/dashboard",
|
|
3457
3464
|
name: "/builtin:dashboard",
|
|
3458
3465
|
component: p,
|
|
@@ -3468,11 +3475,11 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3468
3475
|
name: "/dashboard/:collection",
|
|
3469
3476
|
props: !0,
|
|
3470
3477
|
components: {
|
|
3471
|
-
default: () => import("./index-
|
|
3472
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3478
|
+
default: () => import("./index-778db0f9.js"),
|
|
3479
|
+
topbar: () => Promise.resolve().then(() => hl)
|
|
3473
3480
|
},
|
|
3474
3481
|
meta: {
|
|
3475
|
-
title: ({ collectionName:
|
|
3482
|
+
title: ({ collectionName: n, t: o }) => o(n, {
|
|
3476
3483
|
plural: !0
|
|
3477
3484
|
})
|
|
3478
3485
|
}
|
|
@@ -3482,10 +3489,10 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3482
3489
|
name: "/dashboard/:collection/:id",
|
|
3483
3490
|
props: !0,
|
|
3484
3491
|
components: {
|
|
3485
|
-
default: () => import("./_id_-
|
|
3492
|
+
default: () => import("./_id_-27a53395.js")
|
|
3486
3493
|
},
|
|
3487
3494
|
meta: {
|
|
3488
|
-
title: ({ collectionName:
|
|
3495
|
+
title: ({ collectionName: n, t: o }) => o(n, {
|
|
3489
3496
|
plural: !0
|
|
3490
3497
|
})
|
|
3491
3498
|
}
|
|
@@ -3502,7 +3509,7 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3502
3509
|
children: [
|
|
3503
3510
|
{
|
|
3504
3511
|
path: "profile",
|
|
3505
|
-
component: () => import("./index-
|
|
3512
|
+
component: () => import("./index-b72557b8.js"),
|
|
3506
3513
|
meta: {
|
|
3507
3514
|
title: "User profile",
|
|
3508
3515
|
icon: "user-square"
|
|
@@ -3511,7 +3518,7 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3511
3518
|
{
|
|
3512
3519
|
path: "changepass",
|
|
3513
3520
|
name: "/dashboard/user/changepass",
|
|
3514
|
-
component: () => import("./index-
|
|
3521
|
+
component: () => import("./index-1254b96e.js"),
|
|
3515
3522
|
meta: {
|
|
3516
3523
|
title: "Change password",
|
|
3517
3524
|
icon: "lock"
|
|
@@ -3524,23 +3531,23 @@ const vl = /* @__PURE__ */ Q(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @_
|
|
|
3524
3531
|
export {
|
|
3525
3532
|
De as A,
|
|
3526
3533
|
Jn as B,
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3534
|
+
_l as C,
|
|
3535
|
+
Ka as D,
|
|
3536
|
+
Pa as E,
|
|
3537
|
+
yl as F,
|
|
3538
|
+
Tl as G,
|
|
3539
|
+
jl as H,
|
|
3533
3540
|
Q as _,
|
|
3534
3541
|
pe as a,
|
|
3535
3542
|
Y as b,
|
|
3536
|
-
|
|
3543
|
+
wl as c,
|
|
3537
3544
|
Hn as d,
|
|
3538
|
-
|
|
3545
|
+
Il as e,
|
|
3539
3546
|
Xo as f,
|
|
3540
3547
|
Ue as g,
|
|
3541
|
-
|
|
3548
|
+
Sl as h,
|
|
3542
3549
|
Se as i,
|
|
3543
|
-
|
|
3550
|
+
Al as j,
|
|
3544
3551
|
Ve as k,
|
|
3545
3552
|
ye as l,
|
|
3546
3553
|
sn as m,
|
|
@@ -3548,10 +3555,10 @@ export {
|
|
|
3548
3555
|
ja as o,
|
|
3549
3556
|
Ko as p,
|
|
3550
3557
|
hn as q,
|
|
3551
|
-
|
|
3558
|
+
Bl as r,
|
|
3552
3559
|
qn as s,
|
|
3553
3560
|
Sa as t,
|
|
3554
|
-
|
|
3561
|
+
pl as u,
|
|
3555
3562
|
mo as v,
|
|
3556
3563
|
Oe as w,
|
|
3557
3564
|
Gn as x,
|