@aeria-ui/ui 0.0.70 → 0.0.72
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_-40081dd3.js → _id_-e914392e.js} +1 -1
- package/dist/{activation-61e31282.js → activation-9003ac87.js} +1 -1
- package/dist/{index-a545c009.js → index-905a7c02.js} +716 -714
- package/dist/{index-a894a613.js → index-c1378bc0.js} +1 -1
- package/dist/{index-db508988.js → index-f497bcc3.js} +1 -1
- package/dist/{index-03dc0973.js → index-f5d58bec.js} +1 -1
- package/dist/{signin-3552a02c.js → signin-69462b08.js} +1 -1
- package/dist/{signup-f20f958a.js → signup-85beefa8.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as U, ref as J, resolveDirective as
|
|
2
|
-
import { t as
|
|
1
|
+
import { defineComponent as U, ref as J, resolveDirective as oe, openBlock as n, createElementBlock as s, normalizeClass as K, Fragment as N, renderList as D, withDirectives as x, toDisplayString as k, createCommentVNode as y, createTextVNode as W, unref as e, renderSlot as I, inject as ve, computed as Q, createElementVNode as V, mergeProps as H, createBlock as g, resolveDynamicComponent as he, withCtx as f, useCssVars as Ct, Teleport as Xe, onMounted as vt, watch as ue, createVNode as L, vModelDynamic as Ot, onBeforeMount as yt, normalizeStyle as $e, withModifiers as qe, pushScopeId as Ee, popScopeId as De, provide as ye, createSlots as ce, normalizeProps as pe, guardReactiveProps as Ce, vModelCheckbox as It, onUnmounted as At, isRef as ct, resolveComponent as Bt, Suspense as wt, useSlots as St, h as jt } from "vue";
|
|
2
|
+
import { t as R, useI18n as Tt } from "@aeria-ui/i18n";
|
|
3
3
|
import { useScrollObserver as Ye, useBreakpoints as ze, useMask as Lt, PAGINATION_PER_PAGE_DEFAULTS as Rt, API_URL as ht, request as zt, useDebounce as $t, isDocumentComplete as Mt, getObjectKey as Ft, convertToSearchQuery as qt, useAction as Ut, convertFromSearchQuery as Et, usePasswordPolicy as Dt } from "@aeria-ui/core";
|
|
4
4
|
import { arraysIntersect as bt, deepClone as Ve, getReferenceProperty as _e, convertConditionToQuery as Ht, freshItem as Qt, isRequired as Gt, evaluateCondition as Ke } from "@aeriajs/common";
|
|
5
5
|
import { useStore as ie, getStoreId as Me, useParentStore as ge, STORE_ID as He, getGlobalStateManager as gt } from "@aeria-ui/state-management";
|
|
@@ -17,27 +17,27 @@ const Wt = ["onClick"], Kt = { key: 0 }, Xt = {
|
|
|
17
17
|
setup(d) {
|
|
18
18
|
const r = J(null), a = (t) => typeof t == "string" ? t : t.title;
|
|
19
19
|
return (t, l) => {
|
|
20
|
-
const
|
|
21
|
-
return
|
|
20
|
+
const i = oe("clickable");
|
|
21
|
+
return n(), s("div", {
|
|
22
22
|
class: K({
|
|
23
23
|
accordion: !0,
|
|
24
24
|
"accordion--padded": !t.noPadding
|
|
25
25
|
})
|
|
26
26
|
}, [
|
|
27
|
-
(
|
|
27
|
+
(n(!0), s(N, null, D(Object.keys(t.$slots).filter((u) => u !== "default"), (u, v) => (n(), s("div", {
|
|
28
28
|
key: u,
|
|
29
29
|
class: "accordion__slot"
|
|
30
30
|
}, [
|
|
31
|
-
x((
|
|
31
|
+
x((n(), s("div", {
|
|
32
32
|
class: "accordion__header",
|
|
33
33
|
onClick: (c) => r.value === u ? r.value = null : r.value = u
|
|
34
34
|
}, [
|
|
35
|
-
t.enumerate ? (
|
|
36
|
-
W(" " + k(t.headers[u] ? a(t.headers[u]) : e(
|
|
35
|
+
t.enumerate ? (n(), s("span", Kt, k(v + 1) + ". ", 1)) : y("", !0),
|
|
36
|
+
W(" " + k(t.headers[u] ? a(t.headers[u]) : e(R)(u)), 1)
|
|
37
37
|
], 8, Wt)), [
|
|
38
|
-
[
|
|
38
|
+
[i]
|
|
39
39
|
]),
|
|
40
|
-
r.value === u ? (
|
|
40
|
+
r.value === u ? (n(), s("div", Xt, [
|
|
41
41
|
I(t.$slots, u, {}, void 0, !0)
|
|
42
42
|
])) : y("", !0)
|
|
43
43
|
]))), 128))
|
|
@@ -50,14 +50,14 @@ const X = (d, r) => {
|
|
|
50
50
|
for (const [t, l] of r)
|
|
51
51
|
a[t] = l;
|
|
52
52
|
return a;
|
|
53
|
-
},
|
|
53
|
+
}, Ml = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-3ea933d4"]]), Jt = /* @__PURE__ */ U({
|
|
54
54
|
__name: "aeria-badge",
|
|
55
55
|
props: {
|
|
56
56
|
large: { type: Boolean },
|
|
57
57
|
alt: { type: Boolean }
|
|
58
58
|
},
|
|
59
59
|
setup(d) {
|
|
60
|
-
return (r, a) => (
|
|
60
|
+
return (r, a) => (n(), s("div", {
|
|
61
61
|
class: K(`
|
|
62
62
|
badge
|
|
63
63
|
${r.large && "badge--large"}
|
|
@@ -75,17 +75,17 @@ const be = /* @__PURE__ */ X(Jt, [["__scopeId", "data-v-47f92648"]]), Zt = /* @_
|
|
|
75
75
|
},
|
|
76
76
|
emits: ["click"],
|
|
77
77
|
setup(d, { emit: r }) {
|
|
78
|
-
const a = d, t = r, l = (
|
|
79
|
-
a.disabled || t("click",
|
|
78
|
+
const a = d, t = r, l = (i) => {
|
|
79
|
+
a.disabled || t("click", i);
|
|
80
80
|
};
|
|
81
|
-
return (
|
|
81
|
+
return (i, u) => (n(), s("button", {
|
|
82
82
|
class: K(`
|
|
83
83
|
barebutton
|
|
84
|
-
barebutton--${
|
|
84
|
+
barebutton--${i.disabled ? "disabled" : "enabled"}
|
|
85
85
|
`),
|
|
86
86
|
onClick: l
|
|
87
87
|
}, [
|
|
88
|
-
I(
|
|
88
|
+
I(i.$slots, "default", {}, void 0, !0)
|
|
89
89
|
], 2));
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -107,7 +107,7 @@ const fe = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-35bc81ae"]]), Pt = ["hre
|
|
|
107
107
|
var l;
|
|
108
108
|
return (l = r.icon) != null && l.includes(":") ? r.icon : `regular:${r.icon}`;
|
|
109
109
|
});
|
|
110
|
-
return (l,
|
|
110
|
+
return (l, i) => (n(), s("a", {
|
|
111
111
|
class: K(`
|
|
112
112
|
icon
|
|
113
113
|
${e(a) && "icon--reactive"}
|
|
@@ -121,7 +121,7 @@ const fe = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-35bc81ae"]]), Pt = ["hre
|
|
|
121
121
|
${l.iconRight && "icon__icon--right"}
|
|
122
122
|
`)
|
|
123
123
|
}, [
|
|
124
|
-
(
|
|
124
|
+
(n(), s("svg", H({
|
|
125
125
|
width: "24",
|
|
126
126
|
height: "24",
|
|
127
127
|
viewBox: "0 0 256 256",
|
|
@@ -134,7 +134,7 @@ const fe = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-35bc81ae"]]), Pt = ["hre
|
|
|
134
134
|
}, null, 8, Pt)
|
|
135
135
|
], 16))
|
|
136
136
|
], 2),
|
|
137
|
-
l.$slots.default ? (
|
|
137
|
+
l.$slots.default ? (n(), s("div", Nt, [
|
|
138
138
|
I(l.$slots, "default", {}, void 0, !0)
|
|
139
139
|
])) : y("", !0)
|
|
140
140
|
], 2));
|
|
@@ -167,23 +167,23 @@ const Z = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4b763bd3"]]), en = { clas
|
|
|
167
167
|
},
|
|
168
168
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
169
169
|
setup(d, { emit: r }) {
|
|
170
|
-
const a = d, t = r, l = Q(() => a.floating || a.float),
|
|
170
|
+
const a = d, t = r, l = Q(() => a.floating || a.float), i = J(a.collapsed), u = J(null), { reachedEnd: v } = Ye(u), c = () => {
|
|
171
171
|
t("update:modelValue", !1), t("close");
|
|
172
172
|
}, h = () => {
|
|
173
173
|
t("overlayClick");
|
|
174
|
-
}, p = (
|
|
175
|
-
t("update:collapsed",
|
|
174
|
+
}, p = (o) => {
|
|
175
|
+
t("update:collapsed", o), i.value = o;
|
|
176
176
|
};
|
|
177
|
-
return (
|
|
178
|
-
const $ =
|
|
179
|
-
return
|
|
177
|
+
return (o, _) => {
|
|
178
|
+
const $ = oe("clickable"), b = oe("loading"), S = oe("overlay");
|
|
179
|
+
return o.modelValue ? x((n(), s("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: K(`
|
|
182
182
|
panel
|
|
183
|
-
${
|
|
183
|
+
${o.fixedRight && "panel--fixed"}
|
|
184
184
|
`)
|
|
185
185
|
}, [
|
|
186
|
-
(
|
|
186
|
+
(n(), g(he(
|
|
187
187
|
l.value ? "dialog" : "div"
|
|
188
188
|
), {
|
|
189
189
|
"data-component": "panel",
|
|
@@ -191,44 +191,44 @@ const Z = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4b763bd3"]]), en = { clas
|
|
|
191
191
|
aeria-surface
|
|
192
192
|
panel__content
|
|
193
193
|
${l.value && "panel__content--floating"}
|
|
194
|
-
${
|
|
195
|
-
${
|
|
196
|
-
${
|
|
197
|
-
${
|
|
198
|
-
${
|
|
194
|
+
${o.bordered && "panel__content--bordered"}
|
|
195
|
+
${o.fixedRight && "panel__content--fixed-right"}
|
|
196
|
+
${o.transparent && "panel__content--transparent"}
|
|
197
|
+
${o.transparentMobile && "panel__content--transparent-mobile"}
|
|
198
|
+
${o.outerHeader && "panel__content--outer-header"}
|
|
199
199
|
`),
|
|
200
200
|
onClick: _[2] || (_[2] = (T) => T.stopPropagation())
|
|
201
201
|
}, {
|
|
202
202
|
default: f(() => [
|
|
203
|
-
|
|
203
|
+
o.$slots.header || o.title ? (n(), s("div", {
|
|
204
204
|
key: 0,
|
|
205
205
|
class: K(`
|
|
206
206
|
panel__header
|
|
207
|
-
${
|
|
208
|
-
${
|
|
207
|
+
${i.value && "panel__header--collapsed"}
|
|
208
|
+
${o.outerHeader && "panel__header--outer"}
|
|
209
209
|
`)
|
|
210
210
|
}, [
|
|
211
211
|
V("div", en, [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
I(
|
|
212
|
+
o.$slots.header ? I(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), s("div", tn, k(o.title), 1)) : y("", !0),
|
|
213
|
+
o.$slots.extra ? (n(), s("div", nn, [
|
|
214
|
+
I(o.$slots, "extra", {}, void 0, !0)
|
|
215
215
|
])) : y("", !0)
|
|
216
216
|
]),
|
|
217
|
-
|
|
217
|
+
o.collapsible && i.value ? x((n(), g(Z, {
|
|
218
218
|
key: 0,
|
|
219
219
|
reactive: "",
|
|
220
220
|
icon: "plus",
|
|
221
|
-
onClick: _[0] || (_[0] = (T) => p(!
|
|
221
|
+
onClick: _[0] || (_[0] = (T) => p(!i.value))
|
|
222
222
|
}, null, 512)), [
|
|
223
223
|
[$]
|
|
224
|
-
]) :
|
|
224
|
+
]) : o.collapsible && !i.value ? x((n(), g(Z, {
|
|
225
225
|
key: 1,
|
|
226
226
|
reactive: "",
|
|
227
227
|
icon: "minus",
|
|
228
|
-
onClick: _[1] || (_[1] = (T) => p(!
|
|
228
|
+
onClick: _[1] || (_[1] = (T) => p(!i.value))
|
|
229
229
|
}, null, 512)), [
|
|
230
230
|
[$]
|
|
231
|
-
]) :
|
|
231
|
+
]) : o.closeHint ? x((n(), g(Z, {
|
|
232
232
|
key: 2,
|
|
233
233
|
reactive: "",
|
|
234
234
|
icon: "x",
|
|
@@ -237,38 +237,38 @@ const Z = /* @__PURE__ */ X(xt, [["__scopeId", "data-v-4b763bd3"]]), en = { clas
|
|
|
237
237
|
[$]
|
|
238
238
|
]) : y("", !0)
|
|
239
239
|
], 2)) : y("", !0),
|
|
240
|
-
|
|
240
|
+
i.value ? y("", !0) : x((n(), s("div", {
|
|
241
241
|
key: 1,
|
|
242
242
|
ref_key: "body",
|
|
243
243
|
ref: u,
|
|
244
244
|
class: K(`
|
|
245
245
|
panel__body
|
|
246
|
-
${
|
|
246
|
+
${o.fill || "panel__body--padded"}
|
|
247
247
|
`)
|
|
248
248
|
}, [
|
|
249
|
-
I(
|
|
249
|
+
I(o.$slots, "default", {}, void 0, !0)
|
|
250
250
|
], 2)), [
|
|
251
|
-
[b,
|
|
251
|
+
[b, o.loading]
|
|
252
252
|
]),
|
|
253
|
-
|
|
253
|
+
o.$slots.footer ? (n(), s("div", {
|
|
254
254
|
key: 2,
|
|
255
255
|
class: K(`
|
|
256
256
|
panel__footer
|
|
257
|
-
${
|
|
257
|
+
${o.fillFooter || "panel__footer--padded"}
|
|
258
258
|
${e(v) || "panel__footer--shadowed"}
|
|
259
259
|
`)
|
|
260
260
|
}, [
|
|
261
|
-
I(
|
|
261
|
+
I(o.$slots, "footer", {}, void 0, !0)
|
|
262
262
|
], 2)) : y("", !0)
|
|
263
263
|
]),
|
|
264
264
|
_: 3
|
|
265
265
|
}, 8, ["class"]))
|
|
266
266
|
], 2)), [
|
|
267
267
|
[S, {
|
|
268
|
-
condition:
|
|
269
|
-
invisible:
|
|
268
|
+
condition: o.overlay || o.fixedRight || l.value,
|
|
269
|
+
invisible: o.invisibleOverlay,
|
|
270
270
|
click: h,
|
|
271
|
-
layer:
|
|
271
|
+
layer: o.overlayLayer || (l.value ? 60 : o.fixedRight ? 50 : 0)
|
|
272
272
|
}]
|
|
273
273
|
]) : y("", !0);
|
|
274
274
|
};
|
|
@@ -298,7 +298,7 @@ const Be = /* @__PURE__ */ X(on, [["__scopeId", "data-v-73b47cf0"]]), an = { cla
|
|
|
298
298
|
}
|
|
299
299
|
return ve("buttonSize", r.size) || "medium";
|
|
300
300
|
})();
|
|
301
|
-
return (l,
|
|
301
|
+
return (l, i) => (n(), g(fe, {
|
|
302
302
|
class: K(`
|
|
303
303
|
button
|
|
304
304
|
button--${e(a)}
|
|
@@ -308,7 +308,7 @@ const Be = /* @__PURE__ */ X(on, [["__scopeId", "data-v-73b47cf0"]]), an = { cla
|
|
|
308
308
|
disabled: l.disabled
|
|
309
309
|
}, {
|
|
310
310
|
default: f(() => [
|
|
311
|
-
l.icon ? (
|
|
311
|
+
l.icon ? (n(), g(Z, {
|
|
312
312
|
key: 0,
|
|
313
313
|
icon: l.icon
|
|
314
314
|
}, {
|
|
@@ -318,7 +318,7 @@ const Be = /* @__PURE__ */ X(on, [["__scopeId", "data-v-73b47cf0"]]), an = { cla
|
|
|
318
318
|
])
|
|
319
319
|
]),
|
|
320
320
|
_: 3
|
|
321
|
-
}, 8, ["icon"])) : (
|
|
321
|
+
}, 8, ["icon"])) : (n(), s("div", ln, [
|
|
322
322
|
I(l.$slots, "default", {}, void 0, !0)
|
|
323
323
|
]))
|
|
324
324
|
]),
|
|
@@ -333,7 +333,7 @@ const re = /* @__PURE__ */ X(sn, [["__scopeId", "data-v-c328251b"]]), rn = { cla
|
|
|
333
333
|
horizontal: { type: Boolean }
|
|
334
334
|
},
|
|
335
335
|
setup(d) {
|
|
336
|
-
return (r, a) => (
|
|
336
|
+
return (r, a) => (n(), s("div", {
|
|
337
337
|
class: K(`
|
|
338
338
|
card
|
|
339
339
|
${r.inactive && "card--inactive"}
|
|
@@ -373,7 +373,7 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
|
|
|
373
373
|
"0cfe51de": v.value.x,
|
|
374
374
|
"0cfe51df": v.value.y
|
|
375
375
|
}));
|
|
376
|
-
const a = r, t = J(null), l = J(!1),
|
|
376
|
+
const a = r, t = J(null), l = J(!1), i = (c) => c == null ? void 0 : c.filter((h) => {
|
|
377
377
|
if (h.roles) {
|
|
378
378
|
const p = ie("user");
|
|
379
379
|
return bt(h.roles, p.currentUser.roles);
|
|
@@ -399,9 +399,9 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
|
|
|
399
399
|
};
|
|
400
400
|
});
|
|
401
401
|
return (c, h) => {
|
|
402
|
-
const p =
|
|
403
|
-
return
|
|
404
|
-
Object.keys(c.$slots).some((
|
|
402
|
+
const p = oe("overlay");
|
|
403
|
+
return n(), s(N, null, [
|
|
404
|
+
Object.keys(c.$slots).some((o) => o !== "default") || c.actions !== void 0 && c.actions.length > 0 ? (n(), s("div", {
|
|
405
405
|
key: 0,
|
|
406
406
|
ref_key: "contextmenu",
|
|
407
407
|
ref: t,
|
|
@@ -409,18 +409,18 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
|
|
|
409
409
|
}, [
|
|
410
410
|
V("a", {
|
|
411
411
|
class: "contextmenu__trigger",
|
|
412
|
-
onClick: h[0] || (h[0] = (
|
|
412
|
+
onClick: h[0] || (h[0] = (o) => l.value = !0)
|
|
413
413
|
}, [
|
|
414
414
|
I(c.$slots, "default", {}, void 0, !0)
|
|
415
415
|
])
|
|
416
416
|
], 512)) : y("", !0),
|
|
417
|
-
l.value ? (
|
|
417
|
+
l.value ? (n(), g(Xe, {
|
|
418
418
|
key: 1,
|
|
419
419
|
to: "main"
|
|
420
420
|
}, [
|
|
421
|
-
x((
|
|
421
|
+
x((n(), g(Be, {
|
|
422
422
|
modelValue: l.value,
|
|
423
|
-
"onUpdate:modelValue": h[4] || (h[4] = (
|
|
423
|
+
"onUpdate:modelValue": h[4] || (h[4] = (o) => l.value = o),
|
|
424
424
|
fill: "",
|
|
425
425
|
bordered: "",
|
|
426
426
|
class: "content",
|
|
@@ -428,41 +428,41 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
|
|
|
428
428
|
}, {
|
|
429
429
|
default: f(() => [
|
|
430
430
|
V("div", mn, [
|
|
431
|
-
c.$slots.header ? (
|
|
431
|
+
c.$slots.header ? (n(), s("div", fn, [
|
|
432
432
|
I(c.$slots, "header", {}, void 0, !0)
|
|
433
433
|
])) : y("", !0),
|
|
434
|
-
Object.keys(c.$slots).filter((
|
|
434
|
+
Object.keys(c.$slots).filter((o) => !["default", "extra", "header"].includes(o)).length > 0 ? (n(), s("div", {
|
|
435
435
|
key: 1,
|
|
436
436
|
class: "content__section",
|
|
437
|
-
onClick: h[1] || (h[1] = (
|
|
437
|
+
onClick: h[1] || (h[1] = (o) => l.value = !1)
|
|
438
438
|
}, [
|
|
439
|
-
(
|
|
439
|
+
(n(!0), s(N, null, D(Object.keys(c.$slots).filter((o) => !["default", "extra", "header"].includes(o)), (o, _) => (n(), g(fe, {
|
|
440
440
|
key: `slot-${_}`,
|
|
441
441
|
class: "content__item content__item--reactive"
|
|
442
442
|
}, {
|
|
443
443
|
default: f(() => [
|
|
444
|
-
I(c.$slots,
|
|
444
|
+
I(c.$slots, o, {}, void 0, !0)
|
|
445
445
|
]),
|
|
446
446
|
_: 2
|
|
447
447
|
}, 1024))), 128))
|
|
448
448
|
])) : y("", !0),
|
|
449
|
-
c.actions !== void 0 && c.actions.length > 0 ? (
|
|
449
|
+
c.actions !== void 0 && c.actions.length > 0 ? (n(), s("div", {
|
|
450
450
|
key: 2,
|
|
451
451
|
class: "content__section",
|
|
452
|
-
onClick: h[2] || (h[2] = (
|
|
452
|
+
onClick: h[2] || (h[2] = (o) => l.value = !1)
|
|
453
453
|
}, [
|
|
454
|
-
(
|
|
454
|
+
(n(!0), s(N, null, D(i(c.actions), (o, _) => (n(), g(fe, {
|
|
455
455
|
key: `action-${_}`,
|
|
456
456
|
class: "content__item content__item--reactive",
|
|
457
|
-
onClick: ($) => u(
|
|
457
|
+
onClick: ($) => u(o, c.subject)
|
|
458
458
|
}, {
|
|
459
459
|
default: f(() => [
|
|
460
|
-
|
|
460
|
+
o.icon ? (n(), g(Z, {
|
|
461
461
|
key: 0,
|
|
462
|
-
icon:
|
|
462
|
+
icon: o.icon
|
|
463
463
|
}, {
|
|
464
464
|
default: f(() => [
|
|
465
|
-
W(k(
|
|
465
|
+
W(k(o.translate ? e(R)(o.label, { capitalize: !0 }) : o.label), 1)
|
|
466
466
|
]),
|
|
467
467
|
_: 2
|
|
468
468
|
}, 1032, ["icon"])) : y("", !0)
|
|
@@ -470,10 +470,10 @@ const _n = /* @__PURE__ */ X(pn, [["__scopeId", "data-v-c1a322df"]]), mn = { cla
|
|
|
470
470
|
_: 2
|
|
471
471
|
}, 1032, ["onClick"]))), 128))
|
|
472
472
|
])) : y("", !0),
|
|
473
|
-
c.$slots.extra ? (
|
|
473
|
+
c.$slots.extra ? (n(), s("div", {
|
|
474
474
|
key: 3,
|
|
475
475
|
class: "content__section",
|
|
476
|
-
onClick: h[3] || (h[3] = (
|
|
476
|
+
onClick: h[3] || (h[3] = (o) => l.value = !1)
|
|
477
477
|
}, [
|
|
478
478
|
V("div", vn, [
|
|
479
479
|
c.$slots.extra ? I(c.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
|
|
@@ -507,12 +507,12 @@ const Oe = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-66a4ee79"]]), hn = { cla
|
|
|
507
507
|
},
|
|
508
508
|
setup(d) {
|
|
509
509
|
const r = d, a = ze(), t = J(!1), l = r.where || "top";
|
|
510
|
-
return (
|
|
510
|
+
return (i, u) => e(a).md ? (n(), s("div", {
|
|
511
511
|
key: 0,
|
|
512
512
|
class: "info",
|
|
513
513
|
onMouseleave: u[1] || (u[1] = (v) => t.value = !1)
|
|
514
514
|
}, [
|
|
515
|
-
t.value ? (
|
|
515
|
+
t.value ? (n(), s("div", {
|
|
516
516
|
key: 0,
|
|
517
517
|
class: K(`
|
|
518
518
|
info__bubble
|
|
@@ -520,15 +520,15 @@ const Oe = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-66a4ee79"]]), hn = { cla
|
|
|
520
520
|
`)
|
|
521
521
|
}, [
|
|
522
522
|
V("div", hn, [
|
|
523
|
-
I(
|
|
523
|
+
I(i.$slots, "text", {}, void 0, !0)
|
|
524
524
|
])
|
|
525
525
|
], 2)) : y("", !0),
|
|
526
526
|
V("div", {
|
|
527
527
|
onMouseover: u[0] || (u[0] = (v) => t.value = !0)
|
|
528
528
|
}, [
|
|
529
|
-
I(
|
|
529
|
+
I(i.$slots, "default", {}, void 0, !0)
|
|
530
530
|
], 32)
|
|
531
|
-
], 32)) : I(
|
|
531
|
+
], 32)) : I(i.$slots, "default", { key: 1 }, void 0, !0);
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
534
|
const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { class: "input" }, kn = {
|
|
@@ -554,7 +554,7 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
|
|
|
554
554
|
emits: ["update:modelValue", "input", "change"],
|
|
555
555
|
setup(d, { emit: r }) {
|
|
556
556
|
var B;
|
|
557
|
-
const a = d, t = a.property || {}, l = "icon" in t || "inputType" in t && t.inputType === "search",
|
|
557
|
+
const a = d, t = a.property || {}, l = "icon" in t || "inputType" in t && t.inputType === "search", i = ve("searchOnly", !1), u = ve("innerInputLabel", !1), v = !i && (a.readOnly || t.readOnly), c = (z) => navigator.clipboard.writeText(z), h = r, p = ve("inputVariant", a.variant) || "normal", o = {
|
|
558
558
|
name: a.propertyName,
|
|
559
559
|
readonly: v,
|
|
560
560
|
type: (() => {
|
|
@@ -577,7 +577,7 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
|
|
|
577
577
|
})(),
|
|
578
578
|
placeholder: u ? t.description || a.propertyName : t.placeholder
|
|
579
579
|
};
|
|
580
|
-
"type" in t && ((t.type === "number" || t.type === "integer") && (t.minimum && (
|
|
580
|
+
"type" in t && ((t.type === "number" || t.type === "integer") && (t.minimum && (o.min = t.minimum), t.exclusiveMinimum && (o.min = t.exclusiveMinimum + 1), t.maximum && (o.max = t.maximum), t.exclusiveMaximum && (o.max = t.exclusiveMaximum - 1)), t.type === "string" && ((t.format === "date" || t.format === "date-time") && (o.type = !i && t.format === "date-time" ? "datetime-local" : "date"), o.minlength = t.minLength, o.maxlength = t.maxLength)), o.type === "text" && i && (o.type = "search"), vt(() => {
|
|
581
581
|
a.modelValue !== null && T(a.modelValue);
|
|
582
582
|
});
|
|
583
583
|
const _ = () => {
|
|
@@ -589,46 +589,46 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
|
|
|
589
589
|
}, $ = J([
|
|
590
590
|
"date",
|
|
591
591
|
"date-time"
|
|
592
|
-
].includes(
|
|
592
|
+
].includes(o.type) ? _() : a.modelValue === null || a.modelValue === void 0 ? "" : a.modelValue), b = ((B = a.property) == null ? void 0 : B.type) === "string" && a.property.mask ? Lt(a.property.mask) : null, S = (z) => {
|
|
593
593
|
var Y;
|
|
594
594
|
return typeof $.value == "string" && ((Y = a.property) == null ? void 0 : Y.type) === "string" && b !== null ? ($.value = b.enmask($.value, void 0, {
|
|
595
595
|
defaultValue: !0
|
|
596
|
-
}), a.property.maskedValue === !0 ? $.value : b.unmask($.value)) :
|
|
597
|
-
}, T = (
|
|
596
|
+
}), a.property.maskedValue === !0 ? $.value : b.unmask($.value)) : z;
|
|
597
|
+
}, T = (z) => {
|
|
598
598
|
const Y = (() => {
|
|
599
|
-
if (!
|
|
600
|
-
return
|
|
601
|
-
if (
|
|
602
|
-
return Number(
|
|
599
|
+
if (!z || typeof z != "string")
|
|
600
|
+
return z;
|
|
601
|
+
if (o.type === "number" || o.type === "integer")
|
|
602
|
+
return Number(z);
|
|
603
603
|
if (!("type" in t && t.type === "string"))
|
|
604
|
-
return S(
|
|
604
|
+
return S(z);
|
|
605
605
|
switch (t.format) {
|
|
606
606
|
case "date":
|
|
607
607
|
case "date-time":
|
|
608
|
-
return new Date(
|
|
608
|
+
return new Date(z);
|
|
609
609
|
default:
|
|
610
|
-
return S(
|
|
610
|
+
return S(z);
|
|
611
611
|
}
|
|
612
612
|
})();
|
|
613
613
|
h("input", Y), h("update:modelValue", Y);
|
|
614
|
-
}, P = (
|
|
615
|
-
const Y =
|
|
614
|
+
}, P = (z) => {
|
|
615
|
+
const Y = z.target.value;
|
|
616
616
|
$.value = Y, T(Y);
|
|
617
617
|
};
|
|
618
|
-
return ue(() => a.modelValue, (
|
|
619
|
-
|
|
618
|
+
return ue(() => a.modelValue, (z, Y) => {
|
|
619
|
+
z instanceof Date || (Y && !z ? $.value = void 0 : $.value = b ? b.enmask(String(z), void 0, {
|
|
620
620
|
defaultValue: !0
|
|
621
|
-
}) : String(
|
|
622
|
-
}), (
|
|
623
|
-
const w =
|
|
624
|
-
return
|
|
625
|
-
e(u) ? y("", !0) : (
|
|
626
|
-
|
|
621
|
+
}) : String(z));
|
|
622
|
+
}), (z, Y) => {
|
|
623
|
+
const w = oe("focus"), te = oe("clickable");
|
|
624
|
+
return n(), s("label", gn, [
|
|
625
|
+
e(u) ? y("", !0) : (n(), s("div", kn, [
|
|
626
|
+
z.$slots.default ? I(z.$slots, "default", { key: 0 }, void 0, !0) : I(z.$slots, "description", { key: 1 }, void 0, !0)
|
|
627
627
|
])),
|
|
628
|
-
|
|
629
|
-
I(
|
|
628
|
+
z.$slots.hint ? (n(), s("div", Vn, [
|
|
629
|
+
I(z.$slots, "hint", {}, void 0, !0)
|
|
630
630
|
])) : y("", !0),
|
|
631
|
-
"element" in e(t) && e(t).element === "textarea" ? (
|
|
631
|
+
"element" in e(t) && e(t).element === "textarea" ? (n(), s("div", {
|
|
632
632
|
key: 2,
|
|
633
633
|
class: K(`
|
|
634
634
|
input__container
|
|
@@ -636,9 +636,9 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
|
|
|
636
636
|
`)
|
|
637
637
|
}, [
|
|
638
638
|
x(V("textarea", {
|
|
639
|
-
placeholder:
|
|
640
|
-
readonly:
|
|
641
|
-
value:
|
|
639
|
+
placeholder: o.placeholder,
|
|
640
|
+
readonly: o.readonly,
|
|
641
|
+
value: z.modelValue,
|
|
642
642
|
class: K(`
|
|
643
643
|
input__textarea
|
|
644
644
|
input__input--${e(p)}
|
|
@@ -647,14 +647,14 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
|
|
|
647
647
|
}, null, 42, Cn), [
|
|
648
648
|
[w, e(t).focus]
|
|
649
649
|
])
|
|
650
|
-
], 2)) : (
|
|
650
|
+
], 2)) : (n(), s("div", {
|
|
651
651
|
key: 3,
|
|
652
652
|
class: K(`
|
|
653
653
|
input__container
|
|
654
654
|
input__container--${e(p)}
|
|
655
655
|
`)
|
|
656
656
|
}, [
|
|
657
|
-
x(V("input", H(
|
|
657
|
+
x(V("input", H(o, {
|
|
658
658
|
value: $.value,
|
|
659
659
|
"data-component": "input",
|
|
660
660
|
class: `
|
|
@@ -668,7 +668,7 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
|
|
|
668
668
|
}), null, 16, On), [
|
|
669
669
|
[w, e(t).focus]
|
|
670
670
|
]),
|
|
671
|
-
e(l) ? (
|
|
671
|
+
e(l) ? (n(), g(Z, {
|
|
672
672
|
key: 0,
|
|
673
673
|
icon: e(t).icon || "magnifying-glass",
|
|
674
674
|
class: K(`
|
|
@@ -676,15 +676,15 @@ const bn = /* @__PURE__ */ X($n, [["__scopeId", "data-v-76defa0b"]]), gn = { cla
|
|
|
676
676
|
input__icon--${e(p)}
|
|
677
677
|
`)
|
|
678
678
|
}, null, 8, ["icon", "class"])) : y("", !0),
|
|
679
|
-
e(v) ? (
|
|
680
|
-
|
|
679
|
+
e(v) ? (n(), s("div", In, [
|
|
680
|
+
L(bn, null, {
|
|
681
681
|
text: f(() => [
|
|
682
682
|
W("Copiar")
|
|
683
683
|
]),
|
|
684
684
|
default: f(() => [
|
|
685
|
-
x(
|
|
685
|
+
x(L(Z, {
|
|
686
686
|
icon: "clipboard",
|
|
687
|
-
onClick: Y[1] || (Y[1] = (C) => c(String(
|
|
687
|
+
onClick: Y[1] || (Y[1] = (C) => c(String(z.modelValue || "")))
|
|
688
688
|
}, null, 512), [
|
|
689
689
|
[te]
|
|
690
690
|
])
|
|
@@ -715,7 +715,7 @@ const Ie = /* @__PURE__ */ X(An, [["__scopeId", "data-v-fa830575"]]), Bn = ["val
|
|
|
715
715
|
},
|
|
716
716
|
emits: ["update:modelValue", "change"],
|
|
717
717
|
setup(d, { emit: r }) {
|
|
718
|
-
const a = d, t = r, l = J(null),
|
|
718
|
+
const a = d, t = r, l = J(null), i = a.property, u = (p) => {
|
|
719
719
|
a.booleanRef && (v.value = p), t("update:modelValue", (p == null ? void 0 : p._id) || p), t("change", (p == null ? void 0 : p._id) || p);
|
|
720
720
|
}, v = a.booleanRef ? (() => {
|
|
721
721
|
const p = J(a.modelValue);
|
|
@@ -742,9 +742,9 @@ const Ie = /* @__PURE__ */ X(An, [["__scopeId", "data-v-fa830575"]]), Bn = ["val
|
|
|
742
742
|
var _;
|
|
743
743
|
if (!l.value)
|
|
744
744
|
return;
|
|
745
|
-
const
|
|
746
|
-
|
|
747
|
-
}), (p,
|
|
745
|
+
const o = l.value.querySelector('option[data-selected="true"]');
|
|
746
|
+
o && o.removeAttribute("data-selected"), (_ = l.value.querySelector(`option[value="${p}"]`)) == null || _.setAttribute("data-selected", "true");
|
|
747
|
+
}), (p, o) => (n(), s("div", {
|
|
748
748
|
class: K({
|
|
749
749
|
select: !0,
|
|
750
750
|
"select--outline": !p.noOutline
|
|
@@ -761,20 +761,20 @@ const Ie = /* @__PURE__ */ X(An, [["__scopeId", "data-v-fa830575"]]), Bn = ["val
|
|
|
761
761
|
select__select: !0,
|
|
762
762
|
"select__select--multiple": !!a.multiple
|
|
763
763
|
},
|
|
764
|
-
onChange:
|
|
764
|
+
onChange: o[0] || (o[0] = (_) => u(_.target.value))
|
|
765
765
|
}), [
|
|
766
|
-
e(
|
|
766
|
+
e(i) && e(i).icon ? (n(), g(Z, {
|
|
767
767
|
key: 0,
|
|
768
|
-
icon: e(
|
|
768
|
+
icon: e(i).icon
|
|
769
769
|
}, null, 8, ["icon"])) : y("", !0),
|
|
770
|
-
a.multiple ? y("", !0) : (
|
|
771
|
-
(
|
|
770
|
+
a.multiple ? y("", !0) : (n(), s("option", wn, k(e(R)("none")), 1)),
|
|
771
|
+
(n(!0), s(N, null, D(e(i) && "enum" in e(i) ? e(i).enum : [], (_) => {
|
|
772
772
|
var $;
|
|
773
|
-
return
|
|
773
|
+
return n(), s("option", {
|
|
774
774
|
key: _,
|
|
775
775
|
value: _,
|
|
776
776
|
"data-selected": c(_)
|
|
777
|
-
}, k(($ = e(
|
|
777
|
+
}, k(($ = e(i)) != null && $.translate ? e(R)(_) : _), 9, Sn);
|
|
778
778
|
}), 128)),
|
|
779
779
|
I(p.$slots, "default", {}, void 0, !0)
|
|
780
780
|
], 16, Bn)
|
|
@@ -793,7 +793,7 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
|
|
|
793
793
|
set: (h) => {
|
|
794
794
|
a.pagination.offset = h * a.pagination.limit;
|
|
795
795
|
}
|
|
796
|
-
}),
|
|
796
|
+
}), i = Q({
|
|
797
797
|
get: () => a.pagination.limit,
|
|
798
798
|
set: (h) => {
|
|
799
799
|
a.pagination.limit = Number(h);
|
|
@@ -803,16 +803,16 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
|
|
|
803
803
|
};
|
|
804
804
|
return ue([
|
|
805
805
|
l,
|
|
806
|
-
|
|
806
|
+
i
|
|
807
807
|
], ([h]) => {
|
|
808
808
|
u.value = h + 1, t("paginate", {
|
|
809
|
-
offset: l.value *
|
|
810
|
-
limit:
|
|
809
|
+
offset: l.value * i.value,
|
|
810
|
+
limit: i.value
|
|
811
811
|
});
|
|
812
|
-
}), (h, p) => (
|
|
813
|
-
|
|
814
|
-
modelValue:
|
|
815
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
812
|
+
}), (h, p) => (n(), s("div", Tn, [
|
|
813
|
+
L(Qe, {
|
|
814
|
+
modelValue: i.value,
|
|
815
|
+
"onUpdate:modelValue": p[0] || (p[0] = (o) => i.value = o),
|
|
816
816
|
property: {
|
|
817
817
|
enum: [],
|
|
818
818
|
icon: "list"
|
|
@@ -820,31 +820,31 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
|
|
|
820
820
|
class: "pagination__control"
|
|
821
821
|
}, {
|
|
822
822
|
default: f(() => [
|
|
823
|
-
(
|
|
824
|
-
key: `limit-${
|
|
825
|
-
value:
|
|
826
|
-
}, k(
|
|
823
|
+
(n(!0), s(N, null, D(e(Rt), (o) => (n(), s("option", {
|
|
824
|
+
key: `limit-${o}`,
|
|
825
|
+
value: o
|
|
826
|
+
}, k(o), 9, Ln))), 128))
|
|
827
827
|
]),
|
|
828
828
|
_: 1
|
|
829
829
|
}, 8, ["modelValue"]),
|
|
830
830
|
V("div", Rn, [
|
|
831
|
-
|
|
832
|
-
onClick: p[1] || (p[1] = (
|
|
831
|
+
L(fe, {
|
|
832
|
+
onClick: p[1] || (p[1] = (o) => l.value = 0)
|
|
833
833
|
}, {
|
|
834
834
|
default: f(() => [
|
|
835
|
-
|
|
835
|
+
L(Z, {
|
|
836
836
|
reactive: "",
|
|
837
837
|
icon: "caret-double-left"
|
|
838
838
|
})
|
|
839
839
|
]),
|
|
840
840
|
_: 1
|
|
841
841
|
}),
|
|
842
|
-
|
|
842
|
+
L(fe, {
|
|
843
843
|
disabled: l.value === 0,
|
|
844
|
-
onClick: p[2] || (p[2] = (
|
|
844
|
+
onClick: p[2] || (p[2] = (o) => c("previous"))
|
|
845
845
|
}, {
|
|
846
846
|
default: f(() => [
|
|
847
|
-
|
|
847
|
+
L(Z, {
|
|
848
848
|
reactive: "",
|
|
849
849
|
icon: "caret-left"
|
|
850
850
|
})
|
|
@@ -852,37 +852,37 @@ const Qe = /* @__PURE__ */ X(jn, [["__scopeId", "data-v-1f76ec88"]]), Tn = { cla
|
|
|
852
852
|
_: 1
|
|
853
853
|
}, 8, ["disabled"]),
|
|
854
854
|
V("div", zn, [
|
|
855
|
-
(
|
|
855
|
+
(n(), g(Ie, {
|
|
856
856
|
key: l.value,
|
|
857
857
|
modelValue: u.value,
|
|
858
|
-
"onUpdate:modelValue": p[3] || (p[3] = (
|
|
858
|
+
"onUpdate:modelValue": p[3] || (p[3] = (o) => u.value = o),
|
|
859
859
|
property: {
|
|
860
860
|
type: "number",
|
|
861
861
|
minimum: 1
|
|
862
862
|
},
|
|
863
|
-
onChange: p[4] || (p[4] = (
|
|
863
|
+
onChange: p[4] || (p[4] = (o) => {
|
|
864
864
|
l.value = u.value === 0 ? 0 : u.value - 1;
|
|
865
865
|
})
|
|
866
866
|
}, null, 8, ["modelValue"])),
|
|
867
|
-
V("span", null, k(e(
|
|
867
|
+
V("span", null, k(e(R)("of")) + " " + k(v.value), 1)
|
|
868
868
|
]),
|
|
869
|
-
|
|
869
|
+
L(fe, {
|
|
870
870
|
disabled: l.value === v.value - 1,
|
|
871
|
-
onClick: p[5] || (p[5] = (
|
|
871
|
+
onClick: p[5] || (p[5] = (o) => c("next"))
|
|
872
872
|
}, {
|
|
873
873
|
default: f(() => [
|
|
874
|
-
|
|
874
|
+
L(Z, {
|
|
875
875
|
reactive: "",
|
|
876
876
|
icon: "caret-right"
|
|
877
877
|
})
|
|
878
878
|
]),
|
|
879
879
|
_: 1
|
|
880
880
|
}, 8, ["disabled"]),
|
|
881
|
-
|
|
882
|
-
onClick: p[6] || (p[6] = (
|
|
881
|
+
L(fe, {
|
|
882
|
+
onClick: p[6] || (p[6] = (o) => l.value = v.value - 1)
|
|
883
883
|
}, {
|
|
884
884
|
default: f(() => [
|
|
885
|
-
|
|
885
|
+
L(Z, {
|
|
886
886
|
reactive: "",
|
|
887
887
|
icon: "caret-double-right"
|
|
888
888
|
})
|
|
@@ -910,7 +910,7 @@ const Fn = /* @__PURE__ */ X(Mn, [["__scopeId", "data-v-41aa1ffc"]]), qn = { cla
|
|
|
910
910
|
},
|
|
911
911
|
emits: ["update:modelValue", "change"],
|
|
912
912
|
setup(d, { emit: r }) {
|
|
913
|
-
const a = d, t = a.property, l = a.readOnly || (t == null ? void 0 : t.readOnly),
|
|
913
|
+
const a = d, t = a.property, l = a.readOnly || (t == null ? void 0 : t.readOnly), i = (() => {
|
|
914
914
|
if (t && "type" in t)
|
|
915
915
|
switch (t.type) {
|
|
916
916
|
case "array":
|
|
@@ -939,7 +939,7 @@ const Fn = /* @__PURE__ */ X(Mn, [["__scopeId", "data-v-41aa1ffc"]]), qn = { cla
|
|
|
939
939
|
}
|
|
940
940
|
if ("items" in t) {
|
|
941
941
|
if ((p = a.modelValue) != null && p.includes(v)) {
|
|
942
|
-
u("update:modelValue", a.modelValue.filter((
|
|
942
|
+
u("update:modelValue", a.modelValue.filter((o) => o !== v));
|
|
943
943
|
return;
|
|
944
944
|
}
|
|
945
945
|
u("update:modelValue", [v].concat(a.modelValue || []));
|
|
@@ -952,19 +952,19 @@ const Fn = /* @__PURE__ */ X(Mn, [["__scopeId", "data-v-41aa1ffc"]]), qn = { cla
|
|
|
952
952
|
}), h = (p) => {
|
|
953
953
|
l && p.preventDefault();
|
|
954
954
|
};
|
|
955
|
-
return (p,
|
|
955
|
+
return (p, o) => {
|
|
956
956
|
var $, b;
|
|
957
|
-
const _ =
|
|
958
|
-
return x((
|
|
957
|
+
const _ = oe("clickable");
|
|
958
|
+
return x((n(), s("label", {
|
|
959
959
|
class: K(`
|
|
960
960
|
checkbox
|
|
961
961
|
${e(l) && "checkbox--readOnly"}
|
|
962
962
|
`)
|
|
963
963
|
}, [
|
|
964
964
|
x(V("input", H({
|
|
965
|
-
"onUpdate:modelValue":
|
|
965
|
+
"onUpdate:modelValue": o[0] || (o[0] = (S) => c.value = S)
|
|
966
966
|
}, {
|
|
967
|
-
type: e(
|
|
967
|
+
type: e(i),
|
|
968
968
|
readOnly: e(l),
|
|
969
969
|
checked: c.value
|
|
970
970
|
}, {
|
|
@@ -975,13 +975,13 @@ const Fn = /* @__PURE__ */ X(Mn, [["__scopeId", "data-v-41aa1ffc"]]), qn = { cla
|
|
|
975
975
|
]),
|
|
976
976
|
V("div", qn, [
|
|
977
977
|
V("div", null, [
|
|
978
|
-
p.$slots.description ? I(p.$slots, "description", { key: 0 }, void 0, !0) : e(v) ? (
|
|
978
|
+
p.$slots.description ? I(p.$slots, "description", { key: 0 }, void 0, !0) : e(v) ? (n(), s("div", {
|
|
979
979
|
key: 1,
|
|
980
|
-
innerHTML: ($ = e(t)) != null && $.translate ? e(
|
|
980
|
+
innerHTML: ($ = e(t)) != null && $.translate ? e(R)(e(v)) : e(v)
|
|
981
981
|
}, null, 8, Un)) : I(p.$slots, "default", { key: 2 }, void 0, !0)
|
|
982
982
|
]),
|
|
983
983
|
V("div", En, [
|
|
984
|
-
p.$slots.hint ? I(p.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(t)) != null && b.hint ? (
|
|
984
|
+
p.$slots.hint ? I(p.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(t)) != null && b.hint ? (n(), s("div", {
|
|
985
985
|
key: 1,
|
|
986
986
|
innerHTML: e(t).hint
|
|
987
987
|
}, null, 8, Dn)) : y("", !0)
|
|
@@ -1009,7 +1009,7 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-db5fafae"]]), Wn = {
|
|
|
1009
1009
|
},
|
|
1010
1010
|
emits: ["update:modelValue"],
|
|
1011
1011
|
setup(d, { emit: r }) {
|
|
1012
|
-
const a = d, t = r, l = a.readOnly || a.property.readOnly,
|
|
1012
|
+
const a = d, t = r, l = a.readOnly || a.property.readOnly, i = "items" in a.property ? a.property.items.enum : a.property.enum, u = (v) => {
|
|
1013
1013
|
t("update:modelValue", v);
|
|
1014
1014
|
};
|
|
1015
1015
|
return yt(() => {
|
|
@@ -1017,18 +1017,18 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-db5fafae"]]), Wn = {
|
|
|
1017
1017
|
"update:modelValue",
|
|
1018
1018
|
"items" in a.property ? [] : ""
|
|
1019
1019
|
);
|
|
1020
|
-
}), (v, c) => (
|
|
1020
|
+
}), (v, c) => (n(), s("div", {
|
|
1021
1021
|
class: "options",
|
|
1022
1022
|
style: $e(`
|
|
1023
1023
|
--columns: ${v.columns};
|
|
1024
1024
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1025
1025
|
`)
|
|
1026
1026
|
}, [
|
|
1027
|
-
(
|
|
1027
|
+
(n(!0), s(N, null, D(e(i), (h) => (n(), s("div", {
|
|
1028
1028
|
key: `option-${h}`,
|
|
1029
1029
|
class: "options__checkbox"
|
|
1030
1030
|
}, [
|
|
1031
|
-
|
|
1031
|
+
L(Gn, H({ ref_for: !0 }, {
|
|
1032
1032
|
value: h,
|
|
1033
1033
|
readOnly: e(l),
|
|
1034
1034
|
property: v.property
|
|
@@ -1055,18 +1055,18 @@ const Xn = /* @__PURE__ */ X(Kn, [["__scopeId", "data-v-39b61318"]]), Yn = (d) =
|
|
|
1055
1055
|
},
|
|
1056
1056
|
emits: ["update:modelValue", "change"],
|
|
1057
1057
|
setup(d, { emit: r }) {
|
|
1058
|
-
const a = d, t = r, l = a.property,
|
|
1059
|
-
|
|
1058
|
+
const a = d, t = r, l = a.property, i = a.readOnly || (l == null ? void 0 : l.readOnly), u = () => {
|
|
1059
|
+
i || (t("change", !a.modelValue), t("update:modelValue", !a.modelValue));
|
|
1060
1060
|
};
|
|
1061
1061
|
return (v, c) => {
|
|
1062
1062
|
var p;
|
|
1063
|
-
const h =
|
|
1064
|
-
return
|
|
1065
|
-
x((
|
|
1063
|
+
const h = oe("clickable");
|
|
1064
|
+
return n(), s("div", Jn, [
|
|
1065
|
+
x((n(), s("a", {
|
|
1066
1066
|
class: K(`
|
|
1067
1067
|
switch
|
|
1068
1068
|
${v.modelValue && "switch--active"}
|
|
1069
|
-
${e(
|
|
1069
|
+
${e(i) && "switch--readOnly"}
|
|
1070
1070
|
`),
|
|
1071
1071
|
onClick: qe(u, ["stop"])
|
|
1072
1072
|
}, [
|
|
@@ -1079,10 +1079,10 @@ const Xn = /* @__PURE__ */ X(Kn, [["__scopeId", "data-v-39b61318"]]), Yn = (d) =
|
|
|
1079
1079
|
}, null, 2)
|
|
1080
1080
|
], 2)), [
|
|
1081
1081
|
[h, {
|
|
1082
|
-
blocked: e(
|
|
1082
|
+
blocked: e(i)
|
|
1083
1083
|
}]
|
|
1084
1084
|
]),
|
|
1085
|
-
v.$slots.default ? I(v.$slots, "default", { key: 0 }, void 0, !0) : (
|
|
1085
|
+
v.$slots.default ? I(v.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div", Pn, k(((p = e(l)) == null ? void 0 : p.description) || v.propertyName), 1))
|
|
1086
1086
|
]);
|
|
1087
1087
|
};
|
|
1088
1088
|
}
|
|
@@ -1126,15 +1126,15 @@ const eo = /* @__PURE__ */ X(xn, [["__scopeId", "data-v-220b2101"]]), kt = (d) =
|
|
|
1126
1126
|
},
|
|
1127
1127
|
setup(d) {
|
|
1128
1128
|
const r = d, a = Q(() => r.fileId ? `${ht}/file/${r.fileId}/picture` : r.url || r.modelValue), t = J(!1);
|
|
1129
|
-
return (l,
|
|
1129
|
+
return (l, i) => {
|
|
1130
1130
|
var v;
|
|
1131
|
-
const u =
|
|
1132
|
-
return
|
|
1133
|
-
a.value ? (
|
|
1131
|
+
const u = oe("overlay");
|
|
1132
|
+
return n(), s("figure", to, [
|
|
1133
|
+
a.value ? (n(), g(Xe, {
|
|
1134
1134
|
key: 0,
|
|
1135
1135
|
to: "main"
|
|
1136
1136
|
}, [
|
|
1137
|
-
t.value ? x((
|
|
1137
|
+
t.value ? x((n(), s("div", no, [
|
|
1138
1138
|
V("img", {
|
|
1139
1139
|
src: a.value,
|
|
1140
1140
|
alt: l.alt,
|
|
@@ -1142,9 +1142,9 @@ const eo = /* @__PURE__ */ X(xn, [["__scopeId", "data-v-220b2101"]]), kt = (d) =
|
|
|
1142
1142
|
max-height: 60vh;
|
|
1143
1143
|
object-fit: contain;
|
|
1144
1144
|
`,
|
|
1145
|
-
onClick:
|
|
1145
|
+
onClick: i[0] || (i[0] = (c) => t.value = !0)
|
|
1146
1146
|
}, null, 8, oo),
|
|
1147
|
-
(v = l.meta) != null && v.owner ? (
|
|
1147
|
+
(v = l.meta) != null && v.owner ? (n(), s("div", ao, " Criado por " + k(l.meta.owner.name) + " em " + k(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : y("", !0)
|
|
1148
1148
|
])), [
|
|
1149
1149
|
[u, {
|
|
1150
1150
|
click: () => {
|
|
@@ -1153,7 +1153,7 @@ const eo = /* @__PURE__ */ X(xn, [["__scopeId", "data-v-220b2101"]]), kt = (d) =
|
|
|
1153
1153
|
}]
|
|
1154
1154
|
]) : y("", !0)
|
|
1155
1155
|
])) : y("", !0),
|
|
1156
|
-
a.value ? (
|
|
1156
|
+
a.value ? (n(), s("img", {
|
|
1157
1157
|
key: 1,
|
|
1158
1158
|
src: a.value,
|
|
1159
1159
|
class: K(`
|
|
@@ -1166,10 +1166,10 @@ const eo = /* @__PURE__ */ X(xn, [["__scopeId", "data-v-220b2101"]]), kt = (d) =
|
|
|
1166
1166
|
width: ${l.width || "100%"};
|
|
1167
1167
|
height: ${l.height || "100%"};
|
|
1168
1168
|
`),
|
|
1169
|
-
onClick:
|
|
1169
|
+
onClick: i[1] || (i[1] = () => {
|
|
1170
1170
|
l.expandable && (t.value = !0);
|
|
1171
1171
|
})
|
|
1172
|
-
}, null, 14, lo)) : l.$slots.fallback ? I(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? I(l.$slots, "default", { key: 3 }, void 0, !0) : (
|
|
1172
|
+
}, null, 14, lo)) : l.$slots.fallback ? I(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? I(l.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
|
|
1173
1173
|
key: 4,
|
|
1174
1174
|
class: K(["picture__background", `
|
|
1175
1175
|
${l.bordered && "picture__image--bordered"}
|
|
@@ -1183,7 +1183,7 @@ const eo = /* @__PURE__ */ X(xn, [["__scopeId", "data-v-220b2101"]]), kt = (d) =
|
|
|
1183
1183
|
height: ${l.height || "100%"};
|
|
1184
1184
|
`)
|
|
1185
1185
|
}, ro, 6)),
|
|
1186
|
-
l.$slots.caption ? (
|
|
1186
|
+
l.$slots.caption ? (n(), s("figcaption", uo, [
|
|
1187
1187
|
I(l.$slots, "caption", {}, void 0, !0)
|
|
1188
1188
|
])) : y("", !0)
|
|
1189
1189
|
]);
|
|
@@ -1214,7 +1214,7 @@ const Ue = /* @__PURE__ */ X(co, [["__scopeId", "data-v-153a2e0f"]]), po = { cla
|
|
|
1214
1214
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1215
1215
|
setup(d, { emit: r }) {
|
|
1216
1216
|
var $;
|
|
1217
|
-
const a = d, t = r,
|
|
1217
|
+
const a = d, t = r, i = Me() ? ge() : null, u = J((($ = a.modelValue) == null ? void 0 : $.file) || null), v = Q(() => {
|
|
1218
1218
|
var b;
|
|
1219
1219
|
return u.value ? URL.createObjectURL(u.value) : (b = a.modelValue) == null ? void 0 : b.link;
|
|
1220
1220
|
}), c = Q(() => {
|
|
@@ -1225,11 +1225,11 @@ const Ue = /* @__PURE__ */ X(co, [["__scopeId", "data-v-153a2e0f"]]), po = { cla
|
|
|
1225
1225
|
T.onload = () => S(T.result), T.readAsArrayBuffer(b);
|
|
1226
1226
|
}), p = () => {
|
|
1227
1227
|
a.modelValue.tempId && t("update:modelValue", null), u.value = null;
|
|
1228
|
-
},
|
|
1228
|
+
}, o = async (b) => {
|
|
1229
1229
|
u.value = b.target.files[0];
|
|
1230
1230
|
const S = u.value, T = await h(S);
|
|
1231
|
-
if (
|
|
1232
|
-
const { data: { error: P, result: B } } = await zt(`${ht}/${
|
|
1231
|
+
if (i) {
|
|
1232
|
+
const { data: { error: P, result: B } } = await zt(`${ht}/${i.$id}/upload?name=${S.name}`, T, {
|
|
1233
1233
|
params: {
|
|
1234
1234
|
method: "POST",
|
|
1235
1235
|
headers: {
|
|
@@ -1251,10 +1251,10 @@ const Ue = /* @__PURE__ */ X(co, [["__scopeId", "data-v-153a2e0f"]]), po = { cla
|
|
|
1251
1251
|
t("update:modelValue", null);
|
|
1252
1252
|
};
|
|
1253
1253
|
return (b, S) => {
|
|
1254
|
-
var T, P, B,
|
|
1255
|
-
return
|
|
1256
|
-
u.value || (T = b.modelValue) != null && T._id ? (
|
|
1257
|
-
c.value ? (
|
|
1254
|
+
var T, P, B, z, Y, w;
|
|
1255
|
+
return n(), s("div", po, [
|
|
1256
|
+
u.value || (T = b.modelValue) != null && T._id ? (n(), s("div", _o, [
|
|
1257
|
+
c.value ? (n(), g(Ue, {
|
|
1258
1258
|
key: 0,
|
|
1259
1259
|
modelValue: v.value,
|
|
1260
1260
|
"onUpdate:modelValue": S[0] || (S[0] = (te) => v.value = te),
|
|
@@ -1262,38 +1262,38 @@ const Ue = /* @__PURE__ */ X(co, [["__scopeId", "data-v-153a2e0f"]]), po = { cla
|
|
|
1262
1262
|
expandable: b.readOnly,
|
|
1263
1263
|
class: K(`
|
|
1264
1264
|
file__image
|
|
1265
|
-
${!e(
|
|
1265
|
+
${!e(i) || ((P = b.modelValue) == null ? void 0 : P._id) || "file__image--unsent"}
|
|
1266
1266
|
`)
|
|
1267
1267
|
}, null, 8, ["modelValue", "expandable", "class"])) : y("", !0),
|
|
1268
|
-
(B = b.modelValue) != null && B._id ? (
|
|
1268
|
+
(B = b.modelValue) != null && B._id ? (n(), s("a", {
|
|
1269
1269
|
key: 1,
|
|
1270
1270
|
href: b.modelValue.download_link
|
|
1271
1271
|
}, k(b.modelValue.filename), 9, mo)) : y("", !0)
|
|
1272
1272
|
])) : y("", !0),
|
|
1273
|
-
b.readOnly ? y("", !0) : (
|
|
1273
|
+
b.readOnly ? y("", !0) : (n(), s("div", fo, [
|
|
1274
1274
|
V("input", {
|
|
1275
1275
|
ref: "file",
|
|
1276
1276
|
type: "file",
|
|
1277
|
-
accept: (Y = (
|
|
1278
|
-
onChange:
|
|
1277
|
+
accept: (Y = (z = b.property) == null ? void 0 : z.accept) == null ? void 0 : Y.join(","),
|
|
1278
|
+
onChange: o
|
|
1279
1279
|
}, null, 40, vo),
|
|
1280
|
-
u.value ? (
|
|
1281
|
-
|
|
1280
|
+
u.value ? (n(), s("div", yo, [
|
|
1281
|
+
L(re, {
|
|
1282
1282
|
small: "",
|
|
1283
1283
|
onClick: qe(p, ["prevent"])
|
|
1284
1284
|
}, {
|
|
1285
1285
|
default: f(() => [
|
|
1286
|
-
W(k(e(
|
|
1286
|
+
W(k(e(R)("action.clear", { capitalize: !0 })), 1)
|
|
1287
1287
|
]),
|
|
1288
1288
|
_: 1
|
|
1289
1289
|
})
|
|
1290
|
-
])) : (w = b.modelValue) != null && w._id ? (
|
|
1291
|
-
|
|
1290
|
+
])) : (w = b.modelValue) != null && w._id ? (n(), s("div", ho, [
|
|
1291
|
+
L(re, {
|
|
1292
1292
|
small: "",
|
|
1293
1293
|
onClick: qe(_, ["prevent"])
|
|
1294
1294
|
}, {
|
|
1295
1295
|
default: f(() => [
|
|
1296
|
-
W(k(e(
|
|
1296
|
+
W(k(e(R)("action.remove", { capitalize: !0 })), 1)
|
|
1297
1297
|
]),
|
|
1298
1298
|
_: 1
|
|
1299
1299
|
})
|
|
@@ -1313,13 +1313,13 @@ const bo = /* @__PURE__ */ X($o, [["__scopeId", "data-v-aeeec9a8"]]), go = { cla
|
|
|
1313
1313
|
},
|
|
1314
1314
|
emits: ["endReached"],
|
|
1315
1315
|
setup(d, { emit: r }) {
|
|
1316
|
-
const a = d, t = r, l = J(null),
|
|
1316
|
+
const a = d, t = r, l = J(null), i = a.observeScroll ? Ye(l, {
|
|
1317
1317
|
antecipate: 100
|
|
1318
1318
|
}).reachedEnd : null;
|
|
1319
|
-
return
|
|
1319
|
+
return i !== null && ue(i, (u) => {
|
|
1320
1320
|
u && t("endReached", u);
|
|
1321
|
-
}), (u, v) => (
|
|
1322
|
-
u.$slots.default ? (
|
|
1321
|
+
}), (u, v) => (n(), s("div", go, [
|
|
1322
|
+
u.$slots.default ? (n(), s("div", {
|
|
1323
1323
|
key: 0,
|
|
1324
1324
|
ref_key: "containerEl",
|
|
1325
1325
|
ref: l,
|
|
@@ -1327,7 +1327,7 @@ const bo = /* @__PURE__ */ X($o, [["__scopeId", "data-v-aeeec9a8"]]), go = { cla
|
|
|
1327
1327
|
}, [
|
|
1328
1328
|
I(u.$slots, "default", {}, void 0, !0)
|
|
1329
1329
|
], 512)) : y("", !0),
|
|
1330
|
-
u.$slots.footer ? (
|
|
1330
|
+
u.$slots.footer ? (n(), s("div", ko, [
|
|
1331
1331
|
I(u.$slots, "footer", {}, void 0, !0)
|
|
1332
1332
|
])) : y("", !0)
|
|
1333
1333
|
]));
|
|
@@ -1344,10 +1344,10 @@ const dt = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-c86e2d2a"]]), Co = { cla
|
|
|
1344
1344
|
},
|
|
1345
1345
|
emits: ["update:modelValue", "change"],
|
|
1346
1346
|
setup(d, { emit: r }) {
|
|
1347
|
-
const a = Ae(), t = d, l = r,
|
|
1347
|
+
const a = Ae(), t = d, l = r, i = t.property, u = _e(i), v = ge(), c = Q(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: _ }) => t.item._id === _) : t.modelValue && t.modelValue._id === t.item._id), h = () => {
|
|
1348
1348
|
if (c.value)
|
|
1349
1349
|
return;
|
|
1350
|
-
const _ = (b) => b.filter((S) => !!(S != null && S._id)), $ = "items" in
|
|
1350
|
+
const _ = (b) => b.filter((S) => !!(S != null && S._id)), $ = "items" in i ? _(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
|
|
1351
1351
|
Array.isArray($) ? l("update:modelValue", $.concat([t.item])) : l("update:modelValue", t.item), l("change", t.item);
|
|
1352
1352
|
}, p = async (_) => {
|
|
1353
1353
|
if (u.purge && (_ != null && _.purge)) {
|
|
@@ -1362,8 +1362,8 @@ const dt = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-c86e2d2a"]]), Co = { cla
|
|
|
1362
1362
|
const b = [...t.modelValue], S = b.findIndex((T) => T._id === t.item._id);
|
|
1363
1363
|
return b.splice(S, 1), b;
|
|
1364
1364
|
};
|
|
1365
|
-
l("update:modelValue", "items" in
|
|
1366
|
-
},
|
|
1365
|
+
l("update:modelValue", "items" in i ? $() : null);
|
|
1366
|
+
}, o = () => {
|
|
1367
1367
|
if (t.readOnly) {
|
|
1368
1368
|
a.push({
|
|
1369
1369
|
name: "/dashboard/crud/:id",
|
|
@@ -1377,22 +1377,22 @@ const dt = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-c86e2d2a"]]), Co = { cla
|
|
|
1377
1377
|
return c.value ? p() : h();
|
|
1378
1378
|
};
|
|
1379
1379
|
return (_, $) => {
|
|
1380
|
-
const b =
|
|
1381
|
-
return x((
|
|
1380
|
+
const b = oe("clickable");
|
|
1381
|
+
return x((n(), s("div", {
|
|
1382
1382
|
class: K({
|
|
1383
1383
|
item: !0,
|
|
1384
1384
|
"item--selected": c.value
|
|
1385
1385
|
}),
|
|
1386
|
-
onClick:
|
|
1386
|
+
onClick: o
|
|
1387
1387
|
}, [
|
|
1388
1388
|
I(_.$slots, "default", {}, void 0, !0),
|
|
1389
1389
|
V("div", Co, [
|
|
1390
|
-
(
|
|
1390
|
+
(n(!0), s(N, null, D(_.indexes, (S, T) => (n(), s("div", {
|
|
1391
1391
|
key: `index-${_.item._id}-${T}`,
|
|
1392
1392
|
class: "item__value"
|
|
1393
1393
|
}, k(_.item[S]), 1))), 128))
|
|
1394
1394
|
]),
|
|
1395
|
-
_.readOnly ? (
|
|
1395
|
+
_.readOnly ? (n(), g(Z, {
|
|
1396
1396
|
key: 0,
|
|
1397
1397
|
icon: "arrow-square-out",
|
|
1398
1398
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
@@ -1420,33 +1420,33 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-5e6ec702"]]), Io = { cla
|
|
|
1420
1420
|
},
|
|
1421
1421
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1422
1422
|
setup(d, { emit: r }) {
|
|
1423
|
-
const a = d, t = _e(a.property), l = a.panel !== void 0 ? Q(() => a.panel) : J(!1),
|
|
1423
|
+
const a = d, t = _e(a.property), l = a.panel !== void 0 ? Q(() => a.panel) : J(!1), i = r, u = ie(_e(a.property).$ref), v = Me(), c = v ? ge() : null, h = t.indexes;
|
|
1424
1424
|
ye(He, _e(a.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
|
|
1425
|
-
const p = J(a.modelValue),
|
|
1425
|
+
const p = J(a.modelValue), o = J({
|
|
1426
1426
|
data: [],
|
|
1427
1427
|
pagination: {}
|
|
1428
|
-
}), _ = Q(() =>
|
|
1429
|
-
const
|
|
1428
|
+
}), _ = Q(() => o.value.data), $ = Q(() => o.value.pagination), b = J(0), S = J(h[0]), T = J(!1), P = J({}), B = () => {
|
|
1429
|
+
const M = {};
|
|
1430
1430
|
if (v) {
|
|
1431
|
-
const
|
|
1432
|
-
|
|
1431
|
+
const q = e(v);
|
|
1432
|
+
M[q] = c;
|
|
1433
1433
|
}
|
|
1434
|
-
return t.constraints ? Ht(t.constraints,
|
|
1435
|
-
},
|
|
1434
|
+
return t.constraints ? Ht(t.constraints, M) : {};
|
|
1435
|
+
}, z = () => {
|
|
1436
1436
|
_.value.length < $.value.recordsTotal && (b.value += 1, w());
|
|
1437
1437
|
}, Y = async () => {
|
|
1438
|
-
if (Object.values(P.value).every((
|
|
1438
|
+
if (Object.values(P.value).every((q) => !(String(q).length > 0)))
|
|
1439
1439
|
return u.$actions.custom("getAll", {
|
|
1440
1440
|
limit: Fe,
|
|
1441
1441
|
offset: b.value * Fe,
|
|
1442
1442
|
filters: B()
|
|
1443
1443
|
});
|
|
1444
|
-
const
|
|
1444
|
+
const M = h.filter((q) => {
|
|
1445
1445
|
var m;
|
|
1446
|
-
return ((m = P.value[
|
|
1447
|
-
}).map((
|
|
1448
|
-
[
|
|
1449
|
-
$regex: P.value[
|
|
1446
|
+
return ((m = P.value[q]) == null ? void 0 : m.length) > 0;
|
|
1447
|
+
}).map((q) => ({
|
|
1448
|
+
[q]: {
|
|
1449
|
+
$regex: P.value[q].trim().replace("(", "\\(").replace(")", "\\)"),
|
|
1450
1450
|
$options: "i"
|
|
1451
1451
|
}
|
|
1452
1452
|
}));
|
|
@@ -1455,23 +1455,23 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-5e6ec702"]]), Io = { cla
|
|
|
1455
1455
|
offset: b.value * Fe,
|
|
1456
1456
|
filters: {
|
|
1457
1457
|
...B(),
|
|
1458
|
-
...
|
|
1459
|
-
$or:
|
|
1458
|
+
...M.length > 0 && {
|
|
1459
|
+
$or: M
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
1462
|
});
|
|
1463
1463
|
}, w = async () => {
|
|
1464
1464
|
if (u.loading.getAll)
|
|
1465
1465
|
return;
|
|
1466
|
-
const { error:
|
|
1467
|
-
if (
|
|
1466
|
+
const { error: M, result: q } = await Y();
|
|
1467
|
+
if (M) {
|
|
1468
1468
|
ie("meta").$actions.spawnToast({
|
|
1469
1469
|
text: "Request failed",
|
|
1470
1470
|
icon: "warning"
|
|
1471
1471
|
});
|
|
1472
1472
|
return;
|
|
1473
1473
|
}
|
|
1474
|
-
|
|
1474
|
+
o.value.pagination = q.pagination, b.value === 0 && o.value.data.splice(0), o.value.data.push(...q.data);
|
|
1475
1475
|
}, [te] = $t({
|
|
1476
1476
|
delay: 800
|
|
1477
1477
|
})(() => {
|
|
@@ -1479,44 +1479,44 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-5e6ec702"]]), Io = { cla
|
|
|
1479
1479
|
}), C = () => {
|
|
1480
1480
|
T.value = !0, te();
|
|
1481
1481
|
}, j = () => {
|
|
1482
|
-
"effect" in l ?
|
|
1483
|
-
},
|
|
1484
|
-
b.value = 0,
|
|
1485
|
-
},
|
|
1486
|
-
ue(
|
|
1487
|
-
|
|
1482
|
+
"effect" in l ? i("update:panel", !0) : l.value = !0, w();
|
|
1483
|
+
}, ae = () => {
|
|
1484
|
+
b.value = 0, o.value.data.splice(0), "effect" in l ? i("update:panel", !1) : l.value = !1;
|
|
1485
|
+
}, le = Q(() => !Object.values(P.value).some((M) => !!M));
|
|
1486
|
+
ue(le, (M, q) => {
|
|
1487
|
+
M && !q && w();
|
|
1488
1488
|
}), vt(() => {
|
|
1489
1489
|
a.selectOnly && w();
|
|
1490
1490
|
});
|
|
1491
|
-
const
|
|
1492
|
-
p.value =
|
|
1493
|
-
},
|
|
1494
|
-
|
|
1491
|
+
const ne = (M) => {
|
|
1492
|
+
p.value = M, a.selectOnly || i("update:modelValue", M);
|
|
1493
|
+
}, se = () => {
|
|
1494
|
+
ae(), i("update:modelValue", p.value);
|
|
1495
1495
|
};
|
|
1496
|
-
return (
|
|
1497
|
-
const m =
|
|
1498
|
-
return
|
|
1499
|
-
e(l) ? (
|
|
1496
|
+
return (M, q) => {
|
|
1497
|
+
const m = oe("clickable");
|
|
1498
|
+
return n(), s("div", null, [
|
|
1499
|
+
e(l) ? (n(), g(Xe, {
|
|
1500
1500
|
key: 0,
|
|
1501
1501
|
to: "main"
|
|
1502
1502
|
}, [
|
|
1503
|
-
|
|
1503
|
+
L(Be, {
|
|
1504
1504
|
float: "",
|
|
1505
1505
|
"close-hint": "",
|
|
1506
|
-
title: `${e(
|
|
1506
|
+
title: `${e(R)("action.select", { capitalize: !0 })} ${e(R)(M.propertyName)}`,
|
|
1507
1507
|
"overlay-layer": 65,
|
|
1508
1508
|
"model-value": e(l),
|
|
1509
1509
|
style: { "--panel-max-width": "36rem" },
|
|
1510
|
-
onClose:
|
|
1511
|
-
onOverlayClick:
|
|
1510
|
+
onClose: ae,
|
|
1511
|
+
onOverlayClick: ae
|
|
1512
1512
|
}, {
|
|
1513
1513
|
footer: f(() => [
|
|
1514
|
-
|
|
1514
|
+
L(re, {
|
|
1515
1515
|
large: "",
|
|
1516
|
-
onClick:
|
|
1516
|
+
onClick: se
|
|
1517
1517
|
}, {
|
|
1518
1518
|
default: f(() => [
|
|
1519
|
-
W(k(e(
|
|
1519
|
+
W(k(e(R)("action.save", { capitalize: !0 })), 1)
|
|
1520
1520
|
]),
|
|
1521
1521
|
_: 1
|
|
1522
1522
|
})
|
|
@@ -1526,25 +1526,25 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-5e6ec702"]]), Io = { cla
|
|
|
1526
1526
|
return [
|
|
1527
1527
|
V("div", Io, [
|
|
1528
1528
|
V("div", Ao, [
|
|
1529
|
-
e(h).length > 1 ? (
|
|
1529
|
+
e(h).length > 1 ? (n(), g(Qe, {
|
|
1530
1530
|
key: 0,
|
|
1531
1531
|
modelValue: S.value,
|
|
1532
|
-
"onUpdate:modelValue":
|
|
1533
|
-
onChange:
|
|
1532
|
+
"onUpdate:modelValue": q[0] || (q[0] = (O) => S.value = O),
|
|
1533
|
+
onChange: q[1] || (q[1] = (O) => P.value = {})
|
|
1534
1534
|
}, {
|
|
1535
1535
|
default: f(() => [
|
|
1536
|
-
(
|
|
1536
|
+
(n(!0), s(N, null, D(e(h), (O) => (n(), s("option", {
|
|
1537
1537
|
key: `searchfield-${O}`,
|
|
1538
1538
|
value: O
|
|
1539
|
-
}, k(e(
|
|
1539
|
+
}, k(e(R)(O)), 9, Bo))), 128))
|
|
1540
1540
|
]),
|
|
1541
1541
|
_: 1
|
|
1542
1542
|
}, 8, ["modelValue"])) : y("", !0),
|
|
1543
1543
|
V("div", wo, [
|
|
1544
|
-
(
|
|
1544
|
+
(n(), g(Ie, {
|
|
1545
1545
|
key: `field-${S.value}`,
|
|
1546
1546
|
modelValue: P.value[S.value],
|
|
1547
|
-
"onUpdate:modelValue":
|
|
1547
|
+
"onUpdate:modelValue": q[2] || (q[2] = (O) => P.value[S.value] = O),
|
|
1548
1548
|
property: {
|
|
1549
1549
|
...e(u).properties[S.value],
|
|
1550
1550
|
inputType: "search"
|
|
@@ -1553,69 +1553,69 @@ const We = /* @__PURE__ */ X(Oo, [["__scopeId", "data-v-5e6ec702"]]), Io = { cla
|
|
|
1553
1553
|
}, null, 8, ["modelValue", "property"]))
|
|
1554
1554
|
])
|
|
1555
1555
|
]),
|
|
1556
|
-
_.value.length ? (
|
|
1556
|
+
_.value.length ? (n(), g(dt, {
|
|
1557
1557
|
key: 0,
|
|
1558
1558
|
"observe-scroll": "",
|
|
1559
|
-
onEndReached:
|
|
1559
|
+
onEndReached: z
|
|
1560
1560
|
}, {
|
|
1561
1561
|
default: f(() => [
|
|
1562
|
-
(
|
|
1562
|
+
(n(!0), s(N, null, D(_.value, (O) => (n(), g(We, H({ ref_for: !0 }, {
|
|
1563
1563
|
item: O,
|
|
1564
1564
|
indexes: e(h),
|
|
1565
|
-
property:
|
|
1565
|
+
property: M.property
|
|
1566
1566
|
}, {
|
|
1567
1567
|
key: `matching-${O._id}`,
|
|
1568
1568
|
modelValue: p.value,
|
|
1569
|
-
"onUpdate:modelValue":
|
|
1569
|
+
"onUpdate:modelValue": q[3] || (q[3] = (A) => p.value = A)
|
|
1570
1570
|
}), null, 16, ["modelValue"]))), 128))
|
|
1571
1571
|
]),
|
|
1572
1572
|
_: 1
|
|
1573
|
-
})) : (
|
|
1574
|
-
T.value ? (
|
|
1573
|
+
})) : (n(), s("div", So, [
|
|
1574
|
+
T.value ? (n(), s("div", jo, k(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(P.value).filter((O) => !!O).length > 0 && !("items" in M.property && ((E = M.modelValue) != null && E.length) || !Array.isArray(M.modelValue) && ((G = M.modelValue) != null && G._id)) ? (n(), s("div", To, k(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
|
|
1575
1575
|
]))
|
|
1576
1576
|
]),
|
|
1577
|
-
V("div", Lo, k(e(
|
|
1577
|
+
V("div", Lo, k(e(R)("showing", { capitalize: !0 })) + " " + k(_.value.length) + " " + k(e(R)("of")) + " " + k($.value.recordsTotal), 1)
|
|
1578
1578
|
];
|
|
1579
1579
|
}),
|
|
1580
1580
|
_: 1
|
|
1581
1581
|
}, 8, ["title", "model-value"])
|
|
1582
1582
|
])) : y("", !0),
|
|
1583
|
-
|
|
1584
|
-
|
|
1583
|
+
M.selectOnly ? y("", !0) : (n(), s("div", Ro, [
|
|
1584
|
+
L(dt, null, ce({
|
|
1585
1585
|
default: f(() => {
|
|
1586
1586
|
var E;
|
|
1587
1587
|
return [
|
|
1588
|
-
"items" in
|
|
1589
|
-
(
|
|
1588
|
+
"items" in M.property ? (n(), s("div", zo, [
|
|
1589
|
+
(n(!0), s(N, null, D(M.modelValue, (G) => (n(), g(We, H({ ref_for: !0 }, {
|
|
1590
1590
|
item: G,
|
|
1591
1591
|
indexes: e(h),
|
|
1592
|
-
property:
|
|
1593
|
-
readOnly:
|
|
1594
|
-
modelValue:
|
|
1592
|
+
property: M.property,
|
|
1593
|
+
readOnly: M.readOnly,
|
|
1594
|
+
modelValue: M.modelValue
|
|
1595
1595
|
}, {
|
|
1596
1596
|
key: `selected-${G._id}`,
|
|
1597
|
-
"onUpdate:modelValue":
|
|
1597
|
+
"onUpdate:modelValue": ne
|
|
1598
1598
|
}), null, 16))), 128))
|
|
1599
|
-
])) : (E =
|
|
1600
|
-
item:
|
|
1599
|
+
])) : (E = M.modelValue) != null && E._id ? (n(), g(We, H({ key: 1 }, {
|
|
1600
|
+
item: M.modelValue,
|
|
1601
1601
|
indexes: e(h),
|
|
1602
1602
|
property: e(t),
|
|
1603
|
-
readOnly:
|
|
1604
|
-
modelValue:
|
|
1605
|
-
}, { "onUpdate:modelValue":
|
|
1603
|
+
readOnly: M.readOnly,
|
|
1604
|
+
modelValue: M.modelValue
|
|
1605
|
+
}, { "onUpdate:modelValue": ne }), null, 16)) : y("", !0)
|
|
1606
1606
|
];
|
|
1607
1607
|
}),
|
|
1608
1608
|
_: 2
|
|
1609
1609
|
}, [
|
|
1610
|
-
|
|
1610
|
+
M.readOnly ? void 0 : {
|
|
1611
1611
|
name: "footer",
|
|
1612
1612
|
fn: f(() => [
|
|
1613
|
-
x((
|
|
1613
|
+
x((n(), g(Z, {
|
|
1614
1614
|
icon: "plus",
|
|
1615
1615
|
onClick: j
|
|
1616
1616
|
}, {
|
|
1617
1617
|
default: f(() => [
|
|
1618
|
-
W(k(e(
|
|
1618
|
+
W(k(e(R)("action.select", { capitalize: !0 })), 1)
|
|
1619
1619
|
]),
|
|
1620
1620
|
_: 1
|
|
1621
1621
|
})), [
|
|
@@ -1652,16 +1652,16 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-49af6338"]]), pt = (d, r
|
|
|
1652
1652
|
if (d.element === "select")
|
|
1653
1653
|
return "select";
|
|
1654
1654
|
}
|
|
1655
|
-
const
|
|
1656
|
-
return
|
|
1655
|
+
const i = _e(d);
|
|
1656
|
+
return i ? i.inline ? "form" : i.$ref === "file" ? "file" : "search" : "items" in d && d.uniqueItems ? "options" : "enum" in a ? "select" : "input";
|
|
1657
1657
|
})();
|
|
1658
1658
|
return r[l] ? r[l] : t[l];
|
|
1659
1659
|
}, qo = (d, r, a) => {
|
|
1660
1660
|
d ?? (d = []);
|
|
1661
1661
|
const t = "items" in r ? r.items : r;
|
|
1662
1662
|
if ("$ref" in t) {
|
|
1663
|
-
const l = ie(t.$ref, a),
|
|
1664
|
-
return d.push(
|
|
1663
|
+
const l = ie(t.$ref, a), i = Ve(l.$freshItem);
|
|
1664
|
+
return d.push(i);
|
|
1665
1665
|
}
|
|
1666
1666
|
return "properties" in t ? d.push(Qt(t)) : "type" in t && t.type === "boolean" ? d.push({}) : d.push(null);
|
|
1667
1667
|
}, Uo = (d, r) => {
|
|
@@ -1704,20 +1704,20 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-49af6338"]]), pt = (d, r
|
|
|
1704
1704
|
},
|
|
1705
1705
|
emits: ["update:modelValue", "input", "change"],
|
|
1706
1706
|
setup(d, { emit: r }) {
|
|
1707
|
-
var
|
|
1707
|
+
var q;
|
|
1708
1708
|
const a = gt(), t = d, l = r;
|
|
1709
1709
|
yt(() => {
|
|
1710
1710
|
t.modelValue || l("update:modelValue", t.property && "items" in t.property ? [] : {});
|
|
1711
1711
|
});
|
|
1712
|
-
const
|
|
1712
|
+
const i = t.property && _e(t.property), u = i ? i.$ref : t.collection || Me(), v = t.readOnly || ((q = t.property) == null ? void 0 : q.readOnly), c = u ? ie(e(u)) : null;
|
|
1713
1713
|
!u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1714
1714
|
collection prop, some features may not work as intended`);
|
|
1715
|
-
const h = J(!1), p = Q(() => !t.form && t.property ? "properties" in t.property ? t.property.properties : c == null ? void 0 : c.properties : t.form),
|
|
1715
|
+
const h = J(!1), p = Q(() => !t.form && t.property ? "properties" in t.property ? t.property.properties : c == null ? void 0 : c.properties : t.form), o = Q(() => t.layout || (c == null ? void 0 : c.description.formLayout)), _ = (m) => {
|
|
1716
1716
|
const E = ve(m, t[m]);
|
|
1717
1717
|
return t[m] && ye(m, t[m]), E;
|
|
1718
1718
|
}, $ = Q(() => t.validationErrors !== null ? t.validationErrors : c == null ? void 0 : c.validationErrors), b = _("formComponents") || {}, S = _("propertyComponents") || {}, T = _("omitFormHeader"), P = _("omitInputLabels"), B = _("innerInputLabel");
|
|
1719
1719
|
u && ye(He, u), ye("searchOnly", t.searchOnly);
|
|
1720
|
-
const
|
|
1720
|
+
const z = (m) => p.value ? Object.entries(p.value).filter(([E, G]) => !G.noForm && m([
|
|
1721
1721
|
E,
|
|
1722
1722
|
G
|
|
1723
1723
|
])) : null, Y = (m) => {
|
|
@@ -1726,9 +1726,9 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-49af6338"]]), pt = (d, r
|
|
|
1726
1726
|
return !0;
|
|
1727
1727
|
const E = t.property && "properties" in t.property ? t.property.form : (G = c == null ? void 0 : c.description) == null ? void 0 : G.form;
|
|
1728
1728
|
return !E || E.includes(m);
|
|
1729
|
-
}, w =
|
|
1730
|
-
var
|
|
1731
|
-
const G = [], O = ((me = (
|
|
1729
|
+
}, w = z(([m]) => Y(m)), te = ze(), C = {}, j = (m, E) => {
|
|
1730
|
+
var F, me, we, Se;
|
|
1731
|
+
const G = [], O = ((me = (F = o.value) == null ? void 0 : F.fields) == null ? void 0 : me[m]) || ((Se = (we = o.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
|
|
1732
1732
|
if (!E)
|
|
1733
1733
|
return;
|
|
1734
1734
|
if (O != null && O.if && !t.searchOnly) {
|
|
@@ -1754,94 +1754,94 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-49af6338"]]), pt = (d, r
|
|
|
1754
1754
|
padding: 1rem 0;
|
|
1755
1755
|
margin: 1rem 0;
|
|
1756
1756
|
`)), G.join("");
|
|
1757
|
-
},
|
|
1757
|
+
}, ae = (m) => m === null || m instanceof Object && !Object.keys(m).length, le = Q(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : c == null ? void 0 : c.description.required), ne = Q(() => t.form ? Mt(
|
|
1758
1758
|
t.modelValue,
|
|
1759
1759
|
t.form,
|
|
1760
|
-
|
|
1760
|
+
le.value,
|
|
1761
1761
|
c == null ? void 0 : c.description
|
|
1762
|
-
) : !0),
|
|
1762
|
+
) : !0), se = (m, E) => {
|
|
1763
1763
|
var G;
|
|
1764
1764
|
return (G = $.value) != null && G[m] && (typeof $.value[m].index != "number" || $.value[m].index === E) ? $.value[m].errors : null;
|
|
1765
|
-
},
|
|
1765
|
+
}, M = () => {
|
|
1766
1766
|
if (!v && !h.value)
|
|
1767
1767
|
return h.value = !0, !0;
|
|
1768
1768
|
};
|
|
1769
1769
|
return (m, E) => {
|
|
1770
|
-
const G =
|
|
1771
|
-
return
|
|
1770
|
+
const G = oe("clickable"), O = oe("focus");
|
|
1771
|
+
return n(), s("form", {
|
|
1772
1772
|
class: "form",
|
|
1773
1773
|
style: $e(`row-gap: ${e(T) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1774
1774
|
}, [
|
|
1775
|
-
m.$slots.header && !e(T) ? (
|
|
1775
|
+
m.$slots.header && !e(T) ? (n(), s("header", Eo, [
|
|
1776
1776
|
I(m.$slots, "header", {}, void 0, !0)
|
|
1777
1777
|
])) : y("", !0),
|
|
1778
1778
|
I(m.$slots, "default", {}, void 0, !0),
|
|
1779
1779
|
V("fieldset", Do, [
|
|
1780
|
-
(
|
|
1780
|
+
(n(!0), s(N, null, D(e(w), ([A, F]) => {
|
|
1781
1781
|
var me, we, Se, je, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
|
|
1782
|
-
return
|
|
1782
|
+
return n(), s("div", {
|
|
1783
1783
|
key: `field-${A}`,
|
|
1784
|
-
style: $e(j(A,
|
|
1784
|
+
style: $e(j(A, F)),
|
|
1785
1785
|
class: "form__field"
|
|
1786
1786
|
}, [
|
|
1787
|
-
(!("type" in
|
|
1787
|
+
(!("type" in F) || F.type !== "boolean" || m.searchOnly) && !F.noLabel && !e(P) && !e(B) ? (n(), s("label", Ho, [
|
|
1788
1788
|
V("div", {
|
|
1789
1789
|
class: K({
|
|
1790
1790
|
"form__field-label": !0,
|
|
1791
|
-
"form__field-label--section": "items" in
|
|
1792
|
-
"form__field-required-hint": m.highlightRequired && !e(v) && !m.searchOnly && (!
|
|
1791
|
+
"form__field-label--section": "items" in F ? "properties" in F.items : "properties" in F,
|
|
1792
|
+
"form__field-required-hint": m.highlightRequired && !e(v) && !m.searchOnly && (!le.value || e(Gt)(A, le.value, m.modelValue))
|
|
1793
1793
|
})
|
|
1794
|
-
}, k(
|
|
1795
|
-
|
|
1794
|
+
}, k(F.description || e(R)(A)), 3),
|
|
1795
|
+
F.hint ? (n(), s("div", {
|
|
1796
1796
|
key: 0,
|
|
1797
|
-
innerHTML:
|
|
1797
|
+
innerHTML: F.hint
|
|
1798
1798
|
}, null, 8, Qo)) : y("", !0)
|
|
1799
1799
|
])) : y("", !0),
|
|
1800
1800
|
m.$slots[`field-${A}`] ? I(m.$slots, `field-${A}`, H({
|
|
1801
1801
|
key: 1,
|
|
1802
1802
|
ref_for: !0
|
|
1803
1803
|
}, {
|
|
1804
|
-
propery:
|
|
1804
|
+
propery: F,
|
|
1805
1805
|
properyName: A,
|
|
1806
1806
|
modelValue: m.modelValue
|
|
1807
|
-
}), void 0, !0) : (Se = (we = (me = m.layout) == null ? void 0 : me.fields) == null ? void 0 : we[A]) != null && Se.component && e(S)[m.layout.fields[A].component.name] ? (
|
|
1807
|
+
}), void 0, !0) : (Se = (we = (me = m.layout) == null ? void 0 : me.fields) == null ? void 0 : we[A]) != null && Se.component && e(S)[m.layout.fields[A].component.name] ? (n(), g(he(e(S)[m.layout.fields[A].component.name]), H({
|
|
1808
1808
|
key: 2,
|
|
1809
1809
|
modelValue: m.modelValue[A],
|
|
1810
1810
|
"onUpdate:modelValue": (ee) => m.modelValue[A] = ee,
|
|
1811
1811
|
ref_for: !0
|
|
1812
1812
|
}, {
|
|
1813
1813
|
readOnly: e(v),
|
|
1814
|
-
property:
|
|
1814
|
+
property: F,
|
|
1815
1815
|
propertyName: A,
|
|
1816
1816
|
...m.layout.fields[A].component.props || {}
|
|
1817
1817
|
}, {
|
|
1818
1818
|
onInput: (ee) => l("input", A),
|
|
1819
1819
|
onChange: E[0] || (E[0] = (ee) => l("change", ee))
|
|
1820
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in
|
|
1820
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in F && ["date", "date-time"].includes(F.format) && m.searchOnly ? (n(), s("div", {
|
|
1821
1821
|
key: 3,
|
|
1822
1822
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1823
1823
|
onInput: (ee) => l("input", A),
|
|
1824
1824
|
onChange: E[1] || (E[1] = (ee) => l("change", ee))
|
|
1825
1825
|
}, [
|
|
1826
|
-
|
|
1826
|
+
L(Ie, H({
|
|
1827
1827
|
modelValue: m.modelValue[A].$gte,
|
|
1828
1828
|
"onUpdate:modelValue": (ee) => m.modelValue[A].$gte = ee,
|
|
1829
1829
|
ref_for: !0
|
|
1830
1830
|
}, {
|
|
1831
|
-
property:
|
|
1831
|
+
property: F,
|
|
1832
1832
|
propertyName: A
|
|
1833
1833
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1834
|
-
|
|
1834
|
+
L(Ie, H({
|
|
1835
1835
|
modelValue: m.modelValue[A].$lte,
|
|
1836
1836
|
"onUpdate:modelValue": (ee) => m.modelValue[A].$lte = ee,
|
|
1837
1837
|
ref_for: !0
|
|
1838
1838
|
}, {
|
|
1839
|
-
property:
|
|
1839
|
+
property: F,
|
|
1840
1840
|
propertyName: A
|
|
1841
1841
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1842
|
-
], 40, Go)) : "type" in
|
|
1843
|
-
|
|
1844
|
-
property:
|
|
1842
|
+
], 40, Go)) : "type" in F && F.type === "boolean" && m.searchOnly ? (n(), s("div", Wo, [
|
|
1843
|
+
L(Qe, H({ ref_for: !0 }, {
|
|
1844
|
+
property: F,
|
|
1845
1845
|
propertyName: A
|
|
1846
1846
|
}, {
|
|
1847
1847
|
"boolean-ref": "",
|
|
@@ -1852,55 +1852,55 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-49af6338"]]), pt = (d, r
|
|
|
1852
1852
|
}
|
|
1853
1853
|
}), {
|
|
1854
1854
|
default: f(() => [
|
|
1855
|
-
V("option", Ko, k(e(
|
|
1856
|
-
V("option", Xo, k(e(
|
|
1855
|
+
V("option", Ko, k(e(R)("yes")), 1),
|
|
1856
|
+
V("option", Xo, k(e(R)("no")), 1)
|
|
1857
1857
|
]),
|
|
1858
1858
|
_: 2
|
|
1859
1859
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1860
|
-
])) : m.modelValue && "items" in
|
|
1860
|
+
])) : m.modelValue && "items" in F && !F.uniqueItems && (!("$ref" in F.items) || F.items.inline || F.items.$ref === "file") ? (n(), s("div", Yo, [
|
|
1861
1861
|
V("div", null, [
|
|
1862
|
-
|
|
1862
|
+
L(re, {
|
|
1863
1863
|
small: "",
|
|
1864
1864
|
variant: "alt",
|
|
1865
1865
|
icon: "plus",
|
|
1866
|
-
disabled: !("inline" in
|
|
1866
|
+
disabled: !("inline" in F.items && F.items.inline) && (((je = m.modelValue[A]) == null ? void 0 : je.length) >= F.maxItems || ae((Ze = m.modelValue[A]) == null ? void 0 : Ze[((Je = m.modelValue[A]) == null ? void 0 : Je.length) - 1])),
|
|
1867
1867
|
onClick: qe((ee) => {
|
|
1868
|
-
m.modelValue[A] || (m.modelValue[A] = []), e(qo)(m.modelValue[A],
|
|
1868
|
+
m.modelValue[A] || (m.modelValue[A] = []), e(qo)(m.modelValue[A], F, e(a));
|
|
1869
1869
|
}, ["prevent"])
|
|
1870
1870
|
}, {
|
|
1871
1871
|
default: f(() => [
|
|
1872
|
-
W(k(e(
|
|
1872
|
+
W(k(e(R)("action.add", { capitalize: !0 })), 1)
|
|
1873
1873
|
]),
|
|
1874
1874
|
_: 2
|
|
1875
1875
|
}, 1032, ["disabled", "onClick"])
|
|
1876
1876
|
]),
|
|
1877
1877
|
V("div", Jo, [
|
|
1878
|
-
(
|
|
1878
|
+
(n(!0), s(N, null, D(m.modelValue[A], (ee, Te) => {
|
|
1879
1879
|
var at, lt, st, it, rt, ut;
|
|
1880
|
-
return
|
|
1880
|
+
return n(), s("div", {
|
|
1881
1881
|
key: `rep-${A}-${e(Ft)(ee, Te)}`,
|
|
1882
1882
|
class: "form__array-item"
|
|
1883
1883
|
}, [
|
|
1884
1884
|
V("div", Zo, [
|
|
1885
|
-
(
|
|
1885
|
+
(n(), g(he(e(pt)(F, e(b))), H({
|
|
1886
1886
|
modelValue: m.modelValue[A][Te],
|
|
1887
1887
|
"onUpdate:modelValue": (Le) => m.modelValue[A][Te] = Le,
|
|
1888
1888
|
ref_for: !0
|
|
1889
1889
|
}, {
|
|
1890
1890
|
readOnly: e(v),
|
|
1891
|
-
property:
|
|
1891
|
+
property: F.items,
|
|
1892
1892
|
propertyName: A,
|
|
1893
1893
|
parentCollection: e(u),
|
|
1894
1894
|
parentPropertyName: m.parentPropertyName,
|
|
1895
1895
|
columns: ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt[A]) == null ? void 0 : st.optionsColumns) || ((ut = (rt = (it = m.layout) == null ? void 0 : it.fields) == null ? void 0 : rt.$default) == null ? void 0 : ut.optionsColumns),
|
|
1896
|
-
validationErrors:
|
|
1897
|
-
...
|
|
1896
|
+
validationErrors: se(A, Te),
|
|
1897
|
+
...F.componentProps || {}
|
|
1898
1898
|
}, {
|
|
1899
1899
|
onInput: (Le) => l("input", A),
|
|
1900
1900
|
onChange: E[3] || (E[3] = (Le) => l("change", Le))
|
|
1901
1901
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1902
1902
|
]),
|
|
1903
|
-
x(
|
|
1903
|
+
x(L(Z, {
|
|
1904
1904
|
reactive: "",
|
|
1905
1905
|
icon: "trash",
|
|
1906
1906
|
onClick: (Le) => e(Uo)(m.modelValue[A], Te)
|
|
@@ -1910,37 +1910,37 @@ const Fo = /* @__PURE__ */ X(Mo, [["__scopeId", "data-v-49af6338"]]), pt = (d, r
|
|
|
1910
1910
|
]);
|
|
1911
1911
|
}), 128))
|
|
1912
1912
|
])
|
|
1913
|
-
])) : m.modelValue ? x((
|
|
1913
|
+
])) : m.modelValue ? x((n(), g(he(e(pt)(F, e(b))), H({
|
|
1914
1914
|
key: 6,
|
|
1915
1915
|
modelValue: m.modelValue[A],
|
|
1916
1916
|
"onUpdate:modelValue": (ee) => m.modelValue[A] = ee,
|
|
1917
1917
|
ref_for: !0
|
|
1918
1918
|
}, {
|
|
1919
1919
|
readOnly: e(v),
|
|
1920
|
-
property:
|
|
1920
|
+
property: F,
|
|
1921
1921
|
propertyName: A,
|
|
1922
1922
|
parentPropertyName: m.parentPropertyName,
|
|
1923
1923
|
parentCollection: e(u),
|
|
1924
1924
|
columns: ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne[A]) == null ? void 0 : xe.optionsColumns) || ((nt = (tt = (et = m.layout) == null ? void 0 : et.fields) == null ? void 0 : tt.$default) == null ? void 0 : nt.optionsColumns),
|
|
1925
|
-
...
|
|
1926
|
-
validationErrors:
|
|
1925
|
+
...F.componentProps || {},
|
|
1926
|
+
validationErrors: se(A)
|
|
1927
1927
|
}, {
|
|
1928
1928
|
onInput: (ee) => l("input", A),
|
|
1929
1929
|
onChange: E[4] || (E[4] = (ee) => l("change", ee))
|
|
1930
1930
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1931
|
-
[O,
|
|
1931
|
+
[O, M()]
|
|
1932
1932
|
]) : y("", !0),
|
|
1933
|
-
(ot = $.value) != null && ot[A] ? (
|
|
1934
|
-
$.value[A].type ? (
|
|
1935
|
-
$.value[A].detail ? (
|
|
1933
|
+
(ot = $.value) != null && ot[A] ? (n(), s("div", Po, [
|
|
1934
|
+
$.value[A].type ? (n(), s("span", No, k(e(R)(`validation_error.${$.value[A].type}`)), 1)) : y("", !0),
|
|
1935
|
+
$.value[A].detail ? (n(), s("span", xo, k(e(R)($.value[A].detail)), 1)) : y("", !0)
|
|
1936
1936
|
])) : y("", !0)
|
|
1937
1937
|
], 4);
|
|
1938
1938
|
}), 128))
|
|
1939
1939
|
]),
|
|
1940
1940
|
m.$slots.after ? I(m.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
|
|
1941
|
-
m.$slots.footer ? (
|
|
1941
|
+
m.$slots.footer ? (n(), s("div", ea, [
|
|
1942
1942
|
I(m.$slots, "footer", pe(Ce({
|
|
1943
|
-
isInsertReady:
|
|
1943
|
+
isInsertReady: ne.value
|
|
1944
1944
|
})), void 0, !0)
|
|
1945
1945
|
])) : y("", !0)
|
|
1946
1946
|
], 4);
|
|
@@ -1951,12 +1951,12 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
1951
1951
|
__name: "aeria-filter-panel",
|
|
1952
1952
|
emits: ["update:modelValue"],
|
|
1953
1953
|
setup(d, { emit: r }) {
|
|
1954
|
-
const a = r, t = ge(), l = Ae(),
|
|
1954
|
+
const a = r, t = ge(), l = Ae(), i = () => {
|
|
1955
1955
|
t.pagination.offset = 0, t.$actions.filter(), a("update:modelValue", !1), l.push({
|
|
1956
1956
|
query: qt(t)
|
|
1957
1957
|
});
|
|
1958
1958
|
};
|
|
1959
|
-
return (u, v) => (
|
|
1959
|
+
return (u, v) => (n(), g(Be, {
|
|
1960
1960
|
"close-hint": "",
|
|
1961
1961
|
"fixed-right": "",
|
|
1962
1962
|
title: u.t("filter_by", { capitalize: !0 }),
|
|
@@ -1964,16 +1964,16 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
1964
1964
|
onOverlayClick: v[3] || (v[3] = (c) => a("update:modelValue", !1))
|
|
1965
1965
|
}, {
|
|
1966
1966
|
footer: f(() => [
|
|
1967
|
-
e(t).filtersCount > 0 ? (
|
|
1967
|
+
e(t).filtersCount > 0 ? (n(), g(re, {
|
|
1968
1968
|
key: 0,
|
|
1969
1969
|
variant: "transparent",
|
|
1970
1970
|
onClick: v[1] || (v[1] = (c) => {
|
|
1971
|
-
e(t).$actions.clearFilters(),
|
|
1971
|
+
e(t).$actions.clearFilters(), i(), a("update:modelValue", !1);
|
|
1972
1972
|
})
|
|
1973
1973
|
}, {
|
|
1974
1974
|
default: f(() => [
|
|
1975
1975
|
W(k(u.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1976
|
-
|
|
1976
|
+
L(be, null, {
|
|
1977
1977
|
default: f(() => [
|
|
1978
1978
|
W(k(e(t).filtersCount), 1)
|
|
1979
1979
|
]),
|
|
@@ -1982,11 +1982,11 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
1982
1982
|
]),
|
|
1983
1983
|
_: 1
|
|
1984
1984
|
})) : y("", !0),
|
|
1985
|
-
|
|
1985
|
+
L(re, {
|
|
1986
1986
|
large: "",
|
|
1987
1987
|
icon: "funnel",
|
|
1988
1988
|
disabled: !e(t).hasActiveFilters,
|
|
1989
|
-
onClick:
|
|
1989
|
+
onClick: i
|
|
1990
1990
|
}, {
|
|
1991
1991
|
default: f(() => [
|
|
1992
1992
|
W(k(u.t("action.filter", { capitalize: !0 })), 1)
|
|
@@ -1995,7 +1995,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
1995
1995
|
}, 8, ["disabled"])
|
|
1996
1996
|
]),
|
|
1997
1997
|
default: f(() => [
|
|
1998
|
-
|
|
1998
|
+
L(Ge, H({
|
|
1999
1999
|
modelValue: e(t).filters,
|
|
2000
2000
|
"onUpdate:modelValue": v[0] || (v[0] = (c) => e(t).filters = c)
|
|
2001
2001
|
}, {
|
|
@@ -2016,34 +2016,34 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2016
2016
|
},
|
|
2017
2017
|
emits: ["update:modelValue", "cancel"],
|
|
2018
2018
|
setup(d, { emit: r }) {
|
|
2019
|
-
const a = d, t = r, l = ie("meta"),
|
|
2020
|
-
const { error: p } = await
|
|
2019
|
+
const a = d, t = r, l = ie("meta"), i = ie(a.collection || l.view.collection), u = ve("individualActions", []), v = async () => {
|
|
2020
|
+
const { error: p } = await i.$actions.deepInsert();
|
|
2021
2021
|
p || t("update:modelValue", !1);
|
|
2022
2022
|
}, { t: c } = Tt(), h = () => {
|
|
2023
2023
|
l.$actions.ask({
|
|
2024
2024
|
action: () => {
|
|
2025
|
-
|
|
2025
|
+
i.$actions.clearItem(), i.validationErrors = {}, t("cancel");
|
|
2026
2026
|
},
|
|
2027
2027
|
body: c("prompt.close_panel")
|
|
2028
2028
|
});
|
|
2029
2029
|
};
|
|
2030
|
-
return ue(() =>
|
|
2030
|
+
return ue(() => i.item._id, (p) => {
|
|
2031
2031
|
p === null && t("update:modelValue", !1);
|
|
2032
|
-
}), (p,
|
|
2033
|
-
const _ =
|
|
2034
|
-
return
|
|
2035
|
-
loading: e(
|
|
2032
|
+
}), (p, o) => {
|
|
2033
|
+
const _ = oe("clickable");
|
|
2034
|
+
return n(), g(Be, {
|
|
2035
|
+
loading: e(i).loading.get,
|
|
2036
2036
|
onOverlayClick: h
|
|
2037
2037
|
}, ce({
|
|
2038
2038
|
extra: f(() => [
|
|
2039
|
-
|
|
2040
|
-
subject: e(
|
|
2039
|
+
L(Oe, H({
|
|
2040
|
+
subject: e(i).item,
|
|
2041
2041
|
actions: e(u).filter(({ action: $ }) => $ !== "ui:spawnEdit")
|
|
2042
2042
|
}, {
|
|
2043
|
-
onActionClick:
|
|
2043
|
+
onActionClick: o[2] || (o[2] = ($) => t("update:modelValue", !1))
|
|
2044
2044
|
}), {
|
|
2045
2045
|
default: f(() => [
|
|
2046
|
-
e(
|
|
2046
|
+
e(i).item._id ? x((n(), g(Z, {
|
|
2047
2047
|
key: 0,
|
|
2048
2048
|
reactive: "",
|
|
2049
2049
|
icon: "dots-three"
|
|
@@ -2055,17 +2055,17 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2055
2055
|
}, 16)
|
|
2056
2056
|
]),
|
|
2057
2057
|
default: f(() => [
|
|
2058
|
-
|
|
2059
|
-
modelValue: e(
|
|
2060
|
-
"onUpdate:modelValue":
|
|
2058
|
+
L(Ge, H({
|
|
2059
|
+
modelValue: e(i).item,
|
|
2060
|
+
"onUpdate:modelValue": o[0] || (o[0] = ($) => e(i).item = $)
|
|
2061
2061
|
}, {
|
|
2062
2062
|
readOnly: p.readOnly,
|
|
2063
2063
|
collection: e(l).view.collection,
|
|
2064
|
-
form: e(
|
|
2065
|
-
layout: e(
|
|
2064
|
+
form: e(i).description.form ? e(i).$actions.useProperties(e(i).description.form) : e(i).properties,
|
|
2065
|
+
layout: e(i).description.formLayout || {}
|
|
2066
2066
|
}, {
|
|
2067
2067
|
focus: "",
|
|
2068
|
-
onAdd:
|
|
2068
|
+
onAdd: o[1] || (o[1] = ($) => $.preventDefault())
|
|
2069
2069
|
}), ce({ _: 2 }, [
|
|
2070
2070
|
D(Object.keys(p.$slots).filter(($) => $.startsWith("field-")), ($) => ({
|
|
2071
2071
|
name: $,
|
|
@@ -2087,7 +2087,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2087
2087
|
p.readOnly ? void 0 : {
|
|
2088
2088
|
name: "footer",
|
|
2089
2089
|
fn: f(() => [
|
|
2090
|
-
|
|
2090
|
+
L(re, {
|
|
2091
2091
|
variant: "transparent",
|
|
2092
2092
|
onClick: h
|
|
2093
2093
|
}, {
|
|
@@ -2096,10 +2096,10 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2096
2096
|
]),
|
|
2097
2097
|
_: 1
|
|
2098
2098
|
}),
|
|
2099
|
-
|
|
2099
|
+
L(re, {
|
|
2100
2100
|
large: "",
|
|
2101
|
-
disabled: !e(
|
|
2102
|
-
loading: e(
|
|
2101
|
+
disabled: !e(i).isInsertReady || e(i).loading.get,
|
|
2102
|
+
loading: e(i).loading.insert,
|
|
2103
2103
|
onClick: v
|
|
2104
2104
|
}, {
|
|
2105
2105
|
default: f(() => [
|
|
@@ -2128,13 +2128,13 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2128
2128
|
return ue(() => t.value.query.section, (l) => {
|
|
2129
2129
|
if (d) {
|
|
2130
2130
|
if (d.description.filtersPresets) {
|
|
2131
|
-
const
|
|
2132
|
-
Vt(d.description.filtersPresets[
|
|
2131
|
+
const i = l || Object.keys(d.description.filtersPresets)[0];
|
|
2132
|
+
Vt(d.description.filtersPresets[i], d);
|
|
2133
2133
|
}
|
|
2134
2134
|
if (r.persistInQuery) {
|
|
2135
|
-
const
|
|
2136
|
-
|
|
2137
|
-
$search: `"${
|
|
2135
|
+
const i = t.value.query;
|
|
2136
|
+
i.offset && (d.pagination.offset = +i.offset), i.limit && (d.pagination.limit = +i.limit), i.search && (d.textQuery = i.search, d.filters.$text = {
|
|
2137
|
+
$search: `"${i.search}"`,
|
|
2138
2138
|
$caseSensitive: !1
|
|
2139
2139
|
});
|
|
2140
2140
|
}
|
|
@@ -2142,7 +2142,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2142
2142
|
}, {
|
|
2143
2143
|
immediate: !0
|
|
2144
2144
|
});
|
|
2145
|
-
}, la = (d) => (Ee("data-v-
|
|
2145
|
+
}, la = (d) => (Ee("data-v-2a6c7067"), d = d(), De(), d), sa = {
|
|
2146
2146
|
key: 0,
|
|
2147
2147
|
class: "table aeria-surface"
|
|
2148
2148
|
}, ia = { key: 0 }, ra = { key: 1 }, ua = { key: 0 }, ca = ["checked"], da = {
|
|
@@ -2154,17 +2154,17 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2154
2154
|
}, $a = {
|
|
2155
2155
|
key: 1,
|
|
2156
2156
|
class: "table__cell-container"
|
|
2157
|
-
}, ba = { class: "table__cell-grid" }, ga = { key: 0 }, ka = { key: 1 }, Va = ["href"],
|
|
2157
|
+
}, ba = { class: "table__cell-grid" }, ga = { key: 0 }, ka = { key: 1 }, Va = { key: 0 }, Ca = ["href"], Oa = { key: 3 }, Ia = { key: 1 }, Aa = { key: 2 }, Ba = { key: 0 }, wa = { key: 1 }, Sa = { key: 2 }, ja = {
|
|
2158
2158
|
key: 1,
|
|
2159
2159
|
class: "no-print"
|
|
2160
|
-
},
|
|
2160
|
+
}, Ta = { class: "table__cell-actions" }, La = {
|
|
2161
2161
|
key: 2,
|
|
2162
2162
|
class: "no-print table__mobile-actions"
|
|
2163
|
-
},
|
|
2163
|
+
}, Ra = ["id"], za = { key: 1 }, Ma = /* @__PURE__ */ la(() => /* @__PURE__ */ V("td", { colspan: 10 }, [
|
|
2164
2164
|
/* @__PURE__ */ V("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
|
|
2165
|
-
], -1)),
|
|
2166
|
-
|
|
2167
|
-
],
|
|
2165
|
+
], -1)), Fa = [
|
|
2166
|
+
Ma
|
|
2167
|
+
], qa = /* @__PURE__ */ U({
|
|
2168
2168
|
__name: "aeria-table",
|
|
2169
2169
|
props: {
|
|
2170
2170
|
columns: {},
|
|
@@ -2176,7 +2176,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2176
2176
|
},
|
|
2177
2177
|
emits: ["itemClick"],
|
|
2178
2178
|
setup(d, { emit: r }) {
|
|
2179
|
-
const a = d, t = r, l = ze(),
|
|
2179
|
+
const a = d, t = r, l = ze(), i = a.collection || Me(), u = i ? ie(typeof i == "string" ? i : i.value) : null, v = Q({
|
|
2180
2180
|
get: () => u == null ? void 0 : u.selected,
|
|
2181
2181
|
set: (_) => u == null ? void 0 : u.$actions.selectManyItems(_, !0)
|
|
2182
2182
|
}), c = (_, $) => _ != null && _.button ? typeof _.button == "object" ? Ke($, _.button).satisfied : _.button : !1, h = (_) => {
|
|
@@ -2196,7 +2196,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2196
2196
|
}
|
|
2197
2197
|
return !c(S, _);
|
|
2198
2198
|
}) : [];
|
|
2199
|
-
},
|
|
2199
|
+
}, o = (_, $) => {
|
|
2200
2200
|
var T, P;
|
|
2201
2201
|
const b = [], S = (P = (T = a.layout) == null ? void 0 : T.actions) == null ? void 0 : P[$.action];
|
|
2202
2202
|
return S != null && S.if && (Ke(
|
|
@@ -2206,36 +2206,36 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2206
2206
|
};
|
|
2207
2207
|
return (_, $) => {
|
|
2208
2208
|
var S, T, P;
|
|
2209
|
-
const b =
|
|
2210
|
-
return _.columns && Object.keys(_.columns).length > 0 || _.$slots.thead ? (
|
|
2211
|
-
_.$slots.thead ? (
|
|
2209
|
+
const b = oe("clickable");
|
|
2210
|
+
return _.columns && Object.keys(_.columns).length > 0 || _.$slots.thead ? (n(), s("table", sa, [
|
|
2211
|
+
_.$slots.thead ? (n(), s("thead", ia, [
|
|
2212
2212
|
I(_.$slots, "thead", {}, void 0, !0)
|
|
2213
|
-
])) : (
|
|
2213
|
+
])) : (n(), s("thead", ra, [
|
|
2214
2214
|
V("tr", null, [
|
|
2215
|
-
_.checkbox && e(u) && e(l).md ? (
|
|
2215
|
+
_.checkbox && e(u) && e(l).md ? (n(), s("th", ua, [
|
|
2216
2216
|
V("input", {
|
|
2217
2217
|
type: "checkbox",
|
|
2218
2218
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2219
2219
|
onChange: $[0] || ($[0] = (B) => e(u).$actions.selectAllItems(B.target.checked))
|
|
2220
2220
|
}, null, 40, ca)
|
|
2221
2221
|
])) : y("", !0),
|
|
2222
|
-
(
|
|
2222
|
+
(n(!0), s(N, null, D(Object.entries(_.columns), ([B, z], Y) => (n(), s("th", {
|
|
2223
2223
|
key: `header-${Y}`,
|
|
2224
2224
|
class: "table__header"
|
|
2225
|
-
}, k(
|
|
2226
|
-
(S = _.actions) != null && S.length ? (
|
|
2225
|
+
}, k(z.description || e(R)(B)), 1))), 128)),
|
|
2226
|
+
(S = _.actions) != null && S.length ? (n(), s("th", da)) : y("", !0)
|
|
2227
2227
|
])
|
|
2228
2228
|
])),
|
|
2229
|
-
_.$slots.tbody ? (
|
|
2229
|
+
_.$slots.tbody ? (n(), s("tbody", pa, [
|
|
2230
2230
|
I(_.$slots, "tbody", {}, void 0, !0)
|
|
2231
|
-
])) : (
|
|
2232
|
-
(
|
|
2233
|
-
var
|
|
2234
|
-
return
|
|
2231
|
+
])) : (n(), s("tbody", _a, [
|
|
2232
|
+
(n(!0), s(N, null, D(_.rows, (B) => {
|
|
2233
|
+
var z, Y;
|
|
2234
|
+
return n(), s("tr", {
|
|
2235
2235
|
key: B._id,
|
|
2236
2236
|
onClick: (w) => t("itemClick", B)
|
|
2237
2237
|
}, [
|
|
2238
|
-
e(u) && _.checkbox && e(l).md ? (
|
|
2238
|
+
e(u) && _.checkbox && e(l).md ? (n(), s("td", fa, [
|
|
2239
2239
|
x(V("input", {
|
|
2240
2240
|
"onUpdate:modelValue": $[1] || ($[1] = (w) => v.value = w),
|
|
2241
2241
|
type: "checkbox",
|
|
@@ -2244,78 +2244,80 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2244
2244
|
[It, v.value]
|
|
2245
2245
|
])
|
|
2246
2246
|
])) : y("", !0),
|
|
2247
|
-
(
|
|
2248
|
-
var j,
|
|
2249
|
-
return
|
|
2247
|
+
(n(!0), s(N, null, D(Object.entries(_.columns), ([w, te], C) => {
|
|
2248
|
+
var j, ae, le;
|
|
2249
|
+
return n(), s("td", {
|
|
2250
2250
|
key: `column-${B._id}-${C}`
|
|
2251
2251
|
}, [
|
|
2252
|
-
V("div", ya, k(te.description || e(
|
|
2253
|
-
`row-${w}` in _.$slots ? (
|
|
2252
|
+
V("div", ya, k(te.description || e(R)(w)), 1),
|
|
2253
|
+
`row-${w}` in _.$slots ? (n(), s("div", ha, [
|
|
2254
2254
|
I(_.$slots, `row-${w}`, H({ ref_for: !0 }, {
|
|
2255
2255
|
store: e(u),
|
|
2256
2256
|
column: w,
|
|
2257
2257
|
property: te,
|
|
2258
2258
|
row: B
|
|
2259
2259
|
}), void 0, !0)
|
|
2260
|
-
])) : (
|
|
2260
|
+
])) : (n(), s("div", $a, [
|
|
2261
2261
|
V("div", ba, [
|
|
2262
|
-
"type" in te && te.type === "boolean" ? (
|
|
2263
|
-
B[w] ? (
|
|
2262
|
+
"type" in te && te.type === "boolean" ? (n(), s("div", ga, [
|
|
2263
|
+
B[w] ? (n(), g(Z, {
|
|
2264
2264
|
key: 0,
|
|
2265
2265
|
icon: "check",
|
|
2266
2266
|
"icon-classes": "aeria-blueish"
|
|
2267
2267
|
}, {
|
|
2268
2268
|
default: f(() => [
|
|
2269
|
-
W(k(e(
|
|
2269
|
+
W(k(e(R)("yes")), 1)
|
|
2270
2270
|
]),
|
|
2271
2271
|
_: 1
|
|
2272
|
-
})) : (
|
|
2272
|
+
})) : (n(), g(Z, {
|
|
2273
2273
|
key: 1,
|
|
2274
2274
|
icon: "x",
|
|
2275
2275
|
"icon-classes": "aeria-redish"
|
|
2276
2276
|
}, {
|
|
2277
2277
|
default: f(() => [
|
|
2278
|
-
W(k(e(
|
|
2278
|
+
W(k(e(R)("no")), 1)
|
|
2279
2279
|
]),
|
|
2280
2280
|
_: 1
|
|
2281
2281
|
}))
|
|
2282
|
-
])) : ((j = e(_e)(te)) == null ? void 0 : j.$ref) === "file" ? (
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2282
|
+
])) : ((j = e(_e)(te)) == null ? void 0 : j.$ref) === "file" ? (n(), s("div", ka, [
|
|
2283
|
+
B[w] ? (n(), s("div", Va, [
|
|
2284
|
+
"items" in te && B[w][0] && /^image/.test(B[w][0].type) ? (n(), g(Ue, {
|
|
2285
|
+
key: 0,
|
|
2286
|
+
modelValue: B[w][0].link,
|
|
2287
|
+
"onUpdate:modelValue": (ne) => B[w][0].link = ne,
|
|
2288
|
+
expandable: "",
|
|
2289
|
+
meta: B[w][0],
|
|
2290
|
+
alt: "Row image",
|
|
2291
|
+
class: "table__picture"
|
|
2292
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(B[w].type) ? (n(), g(Ue, {
|
|
2293
|
+
key: 1,
|
|
2294
|
+
modelValue: B[w].link,
|
|
2295
|
+
"onUpdate:modelValue": (ne) => B[w].link = ne,
|
|
2296
|
+
expandable: "",
|
|
2297
|
+
meta: B[w],
|
|
2298
|
+
alt: "Row image",
|
|
2299
|
+
class: "table__picture"
|
|
2300
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : B[w].link ? (n(), s("a", {
|
|
2301
|
+
key: 2,
|
|
2302
|
+
href: B[w].link,
|
|
2303
|
+
style: { "font-size": "10pt" }
|
|
2304
|
+
}, k(B[w].filename), 9, Ca)) : (n(), s("div", Oa, " - "))
|
|
2305
|
+
])) : (n(), s("div", Ia, " - "))
|
|
2306
|
+
])) : (n(), s("div", Aa, [
|
|
2307
|
+
e(u) ? (n(), s("span", Ba, k(e(u).$actions.formatValue({
|
|
2306
2308
|
value: B[w],
|
|
2307
2309
|
key: w,
|
|
2308
2310
|
property: te
|
|
2309
|
-
})), 1)) : (
|
|
2310
|
-
((
|
|
2311
|
-
(
|
|
2312
|
-
key: `subvalue-${
|
|
2311
|
+
})), 1)) : (n(), s("span", wa, k(Array.isArray(B[w]) ? B[w].filter((ne) => !!ne).join(", ") : [void 0, null].includes(B[w]) ? "-" : B[w]), 1)),
|
|
2312
|
+
((le = (ae = e(_e)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : le.length) > 1 ? (n(), s("div", Sa, [
|
|
2313
|
+
(n(!0), s(N, null, D(e(_e)(te).indexes.slice(1, 2), (ne, se) => (n(), s("div", {
|
|
2314
|
+
key: `subvalue-${se}`,
|
|
2313
2315
|
class: "table__cell-subvalue"
|
|
2314
2316
|
}, k(e(u).$actions.formatValue({
|
|
2315
2317
|
value: B[w],
|
|
2316
2318
|
key: w,
|
|
2317
2319
|
property: te,
|
|
2318
|
-
index:
|
|
2320
|
+
index: ne
|
|
2319
2321
|
})), 1))), 128))
|
|
2320
2322
|
])) : y("", !0)
|
|
2321
2323
|
]))
|
|
@@ -2323,22 +2325,22 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2323
2325
|
]))
|
|
2324
2326
|
]);
|
|
2325
2327
|
}), 128)),
|
|
2326
|
-
(
|
|
2327
|
-
V("div",
|
|
2328
|
-
(
|
|
2328
|
+
(z = _.actions) != null && z.length && e(l).md ? (n(), s("td", ja, [
|
|
2329
|
+
V("div", Ta, [
|
|
2330
|
+
(n(!0), s(N, null, D(h(B), (w) => (n(), g(re, {
|
|
2329
2331
|
key: `action-${w.action}`,
|
|
2330
2332
|
small: "",
|
|
2331
2333
|
variant: "transparent",
|
|
2332
2334
|
icon: w.icon,
|
|
2333
|
-
style: $e(
|
|
2335
|
+
style: $e(o(B, w)),
|
|
2334
2336
|
onClick: (te) => w.click(B)
|
|
2335
2337
|
}, {
|
|
2336
2338
|
default: f(() => [
|
|
2337
|
-
W(k(e(
|
|
2339
|
+
W(k(e(R)(w.label)), 1)
|
|
2338
2340
|
]),
|
|
2339
2341
|
_: 2
|
|
2340
2342
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2341
|
-
p(B).length > 0 ? (
|
|
2343
|
+
p(B).length > 0 ? (n(), g(Oe, H({
|
|
2342
2344
|
key: 0,
|
|
2343
2345
|
ref_for: !0
|
|
2344
2346
|
}, {
|
|
@@ -2346,7 +2348,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2346
2348
|
actions: p(B)
|
|
2347
2349
|
}), {
|
|
2348
2350
|
default: f(() => [
|
|
2349
|
-
x(
|
|
2351
|
+
x(L(Z, {
|
|
2350
2352
|
reactive: "",
|
|
2351
2353
|
icon: "dots-three"
|
|
2352
2354
|
}, null, 512), [
|
|
@@ -2356,29 +2358,29 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2356
2358
|
_: 2
|
|
2357
2359
|
}, 1040)) : y("", !0)
|
|
2358
2360
|
])
|
|
2359
|
-
])) : (Y = _.actions) != null && Y.length ? (
|
|
2361
|
+
])) : (Y = _.actions) != null && Y.length ? (n(), s("td", La, [
|
|
2360
2362
|
V("div", {
|
|
2361
2363
|
class: "table__mobile-actions-grid",
|
|
2362
2364
|
style: $e(`grid-template-columns: repeat(${h(B).length + (p(B).length ? 1 : 0)}, 1fr);`)
|
|
2363
2365
|
}, [
|
|
2364
|
-
(
|
|
2366
|
+
(n(!0), s(N, null, D(h(B), (w) => (n(), g(fe, {
|
|
2365
2367
|
key: `action-${w.action}`,
|
|
2366
2368
|
class: "table__mobile-actions-button",
|
|
2367
2369
|
onClick: (te) => w.click(B)
|
|
2368
2370
|
}, {
|
|
2369
2371
|
default: f(() => [
|
|
2370
|
-
|
|
2372
|
+
L(Z, {
|
|
2371
2373
|
icon: w.icon || "gear"
|
|
2372
2374
|
}, {
|
|
2373
2375
|
default: f(() => [
|
|
2374
|
-
W(k(e(
|
|
2376
|
+
W(k(e(R)(w.label)), 1)
|
|
2375
2377
|
]),
|
|
2376
2378
|
_: 2
|
|
2377
2379
|
}, 1032, ["icon"])
|
|
2378
2380
|
]),
|
|
2379
2381
|
_: 2
|
|
2380
2382
|
}, 1032, ["onClick"]))), 128)),
|
|
2381
|
-
p(B).length > 0 ? (
|
|
2383
|
+
p(B).length > 0 ? (n(), g(Oe, H({
|
|
2382
2384
|
key: 0,
|
|
2383
2385
|
ref_for: !0
|
|
2384
2386
|
}, {
|
|
@@ -2386,7 +2388,7 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2386
2388
|
actions: p(B)
|
|
2387
2389
|
}), {
|
|
2388
2390
|
default: f(() => [
|
|
2389
|
-
|
|
2391
|
+
L(Z, {
|
|
2390
2392
|
icon: "dots-three",
|
|
2391
2393
|
class: "table__mobile-actions-button"
|
|
2392
2394
|
})
|
|
@@ -2397,18 +2399,18 @@ const Ge = /* @__PURE__ */ X(ta, [["__scopeId", "data-v-fb16d65c"]]), na = /* @_
|
|
|
2397
2399
|
])) : y("", !0),
|
|
2398
2400
|
V("div", {
|
|
2399
2401
|
id: `dropdown-${B._id}`
|
|
2400
|
-
}, null, 8,
|
|
2402
|
+
}, null, 8, Ra)
|
|
2401
2403
|
], 8, ma);
|
|
2402
2404
|
}), 128))
|
|
2403
2405
|
])),
|
|
2404
2406
|
V("tfoot", null, [
|
|
2405
|
-
_.$slots.tfoot ? I(_.$slots, "tfoot", { key: 0 }, void 0, !0) : _.columns && !((T = _.rows) != null && T.length) && !((P = e(u)) != null && P.loading.getAll) ? (
|
|
2407
|
+
_.$slots.tfoot ? I(_.$slots, "tfoot", { key: 0 }, void 0, !0) : _.columns && !((T = _.rows) != null && T.length) && !((P = e(u)) != null && P.loading.getAll) ? (n(), s("tr", za, Fa)) : y("", !0)
|
|
2406
2408
|
])
|
|
2407
2409
|
])) : y("", !0);
|
|
2408
2410
|
};
|
|
2409
2411
|
}
|
|
2410
2412
|
});
|
|
2411
|
-
const
|
|
2413
|
+
const Ua = /* @__PURE__ */ X(qa, [["__scopeId", "data-v-2a6c7067"]]), Ea = /* @__PURE__ */ U({
|
|
2412
2414
|
__name: "aeria-tabular",
|
|
2413
2415
|
props: {
|
|
2414
2416
|
individualActions: {},
|
|
@@ -2417,7 +2419,7 @@ const Fa = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-7f75c4c2"]]), qa = /* @_
|
|
|
2417
2419
|
},
|
|
2418
2420
|
setup(d) {
|
|
2419
2421
|
const r = d, a = ge(), t = Me(), l = Q(() => {
|
|
2420
|
-
const
|
|
2422
|
+
const i = {
|
|
2421
2423
|
collection: t,
|
|
2422
2424
|
checkbox: a.hasSelectionActions,
|
|
2423
2425
|
columns: a.tableProperties,
|
|
@@ -2425,29 +2427,29 @@ const Fa = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-7f75c4c2"]]), qa = /* @_
|
|
|
2425
2427
|
actions: r.individualActions,
|
|
2426
2428
|
layout: a.tableLayout
|
|
2427
2429
|
};
|
|
2428
|
-
return Object.assign(
|
|
2430
|
+
return Object.assign(i, r.componentProps);
|
|
2429
2431
|
});
|
|
2430
|
-
return (
|
|
2431
|
-
|
|
2432
|
-
e(a).properties ? (
|
|
2432
|
+
return (i, u) => (n(), s("div", null, [
|
|
2433
|
+
i.$slots.inner ? I(i.$slots, "inner", { key: 0 }) : y("", !0),
|
|
2434
|
+
e(a).properties ? (n(), g(Ua, H({ key: 1 }, l.value, {
|
|
2433
2435
|
key: e(a).$id
|
|
2434
2436
|
}), ce({ _: 2 }, [
|
|
2435
|
-
D(Object.keys(
|
|
2437
|
+
D(Object.keys(i.$slots).filter((v) => !["inner"].includes(v)), (v) => ({
|
|
2436
2438
|
name: v,
|
|
2437
2439
|
fn: f((c) => [
|
|
2438
|
-
I(
|
|
2440
|
+
I(i.$slots, v, pe(Ce(c)))
|
|
2439
2441
|
])
|
|
2440
2442
|
}))
|
|
2441
2443
|
]), 1040)) : y("", !0)
|
|
2442
2444
|
]));
|
|
2443
2445
|
}
|
|
2444
|
-
}),
|
|
2446
|
+
}), Da = /* @__PURE__ */ U({
|
|
2445
2447
|
__name: "aeria-grid",
|
|
2446
2448
|
props: {
|
|
2447
2449
|
list: { type: Boolean }
|
|
2448
2450
|
},
|
|
2449
2451
|
setup(d) {
|
|
2450
|
-
return (r, a) => (
|
|
2452
|
+
return (r, a) => (n(), s("div", {
|
|
2451
2453
|
class: K(`
|
|
2452
2454
|
grid
|
|
2453
2455
|
${r.list && "grid--list"}
|
|
@@ -2457,10 +2459,10 @@ const Fa = /* @__PURE__ */ X(Ma, [["__scopeId", "data-v-7f75c4c2"]]), qa = /* @_
|
|
|
2457
2459
|
], 2));
|
|
2458
2460
|
}
|
|
2459
2461
|
});
|
|
2460
|
-
const
|
|
2462
|
+
const Ha = /* @__PURE__ */ X(Da, [["__scopeId", "data-v-438c4aed"]]), Qa = { key: 0 }, Ga = {
|
|
2461
2463
|
key: 1,
|
|
2462
2464
|
class: "card__information"
|
|
2463
|
-
},
|
|
2465
|
+
}, Wa = /* @__PURE__ */ U({
|
|
2464
2466
|
__name: "aeria-grid",
|
|
2465
2467
|
props: {
|
|
2466
2468
|
individualActions: {},
|
|
@@ -2469,32 +2471,32 @@ const Ea = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-438c4aed"]]), Da = { key
|
|
|
2469
2471
|
componentName: {}
|
|
2470
2472
|
},
|
|
2471
2473
|
setup(d) {
|
|
2472
|
-
const a = d.layoutOptions, t = ge(), l = (
|
|
2473
|
-
return (
|
|
2474
|
-
const v =
|
|
2475
|
-
return
|
|
2476
|
-
list:
|
|
2474
|
+
const a = d.layoutOptions, t = ge(), l = (i) => Array.isArray(i) ? i[0] : i;
|
|
2475
|
+
return (i, u) => {
|
|
2476
|
+
const v = oe("clickable");
|
|
2477
|
+
return n(), g(Ha, {
|
|
2478
|
+
list: i.componentName === "list"
|
|
2477
2479
|
}, {
|
|
2478
2480
|
default: f(() => [
|
|
2479
|
-
(
|
|
2481
|
+
(n(!0), s(N, null, D(e(t).items, (c) => (n(), g(_n, {
|
|
2480
2482
|
key: c,
|
|
2481
2483
|
inactive: !!(e(a).active && !c[e(a).active]),
|
|
2482
|
-
horizontal:
|
|
2484
|
+
horizontal: i.componentName === "list"
|
|
2483
2485
|
}, ce({
|
|
2484
2486
|
footer: f(() => [
|
|
2485
|
-
e(a).title ? (
|
|
2486
|
-
e(a).information ? (
|
|
2487
|
+
e(a).title ? (n(), s("div", Qa, k(c[e(a).title]), 1)) : y("", !0),
|
|
2488
|
+
e(a).information ? (n(), s("div", Ga, k(c[e(a).information]), 1)) : y("", !0)
|
|
2487
2489
|
]),
|
|
2488
2490
|
actions: f(() => [
|
|
2489
|
-
|
|
2491
|
+
i.individualActions.length > 0 ? (n(), g(Oe, H({
|
|
2490
2492
|
key: 0,
|
|
2491
2493
|
ref_for: !0
|
|
2492
2494
|
}, {
|
|
2493
2495
|
subject: c,
|
|
2494
|
-
actions:
|
|
2496
|
+
actions: i.individualActions
|
|
2495
2497
|
}), {
|
|
2496
2498
|
default: f(() => [
|
|
2497
|
-
x(
|
|
2499
|
+
x(L(Z, {
|
|
2498
2500
|
reactive: "",
|
|
2499
2501
|
icon: "dots-three-vertical"
|
|
2500
2502
|
}, null, 512), [
|
|
@@ -2507,7 +2509,7 @@ const Ea = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-438c4aed"]]), Da = { key
|
|
|
2507
2509
|
default: f(() => {
|
|
2508
2510
|
var h;
|
|
2509
2511
|
return [
|
|
2510
|
-
|
|
2512
|
+
L(Ue, {
|
|
2511
2513
|
alt: "Item picture",
|
|
2512
2514
|
expandable: "",
|
|
2513
2515
|
url: (h = l(c[e(a).picture])) == null ? void 0 : h.link,
|
|
@@ -2520,12 +2522,12 @@ const Ea = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-438c4aed"]]), Da = { key
|
|
|
2520
2522
|
e(a).badge && Array.isArray(c[e(a).badge]) ? {
|
|
2521
2523
|
name: "badge",
|
|
2522
2524
|
fn: f(() => [
|
|
2523
|
-
(
|
|
2525
|
+
(n(!0), s(N, null, D(c[e(a).badge], (h) => (n(), g(be, {
|
|
2524
2526
|
key: `${c._id}-${h}`,
|
|
2525
2527
|
large: ""
|
|
2526
2528
|
}, {
|
|
2527
2529
|
default: f(() => [
|
|
2528
|
-
W(k(e(a).translateBadge ? e(
|
|
2530
|
+
W(k(e(a).translateBadge ? e(R)(h) : h), 1)
|
|
2529
2531
|
]),
|
|
2530
2532
|
_: 2
|
|
2531
2533
|
}, 1024))), 128))
|
|
@@ -2534,9 +2536,9 @@ const Ea = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-438c4aed"]]), Da = { key
|
|
|
2534
2536
|
} : e(a).badge ? {
|
|
2535
2537
|
name: "badge",
|
|
2536
2538
|
fn: f(() => [
|
|
2537
|
-
|
|
2539
|
+
L(be, null, {
|
|
2538
2540
|
default: f(() => [
|
|
2539
|
-
W(k(e(a).translateBadge ? e(
|
|
2541
|
+
W(k(e(a).translateBadge ? e(R)(c[e(a).badge]) : c[e(a).badge]), 1)
|
|
2540
2542
|
]),
|
|
2541
2543
|
_: 2
|
|
2542
2544
|
}, 1024)
|
|
@@ -2550,22 +2552,22 @@ const Ea = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-438c4aed"]]), Da = { key
|
|
|
2550
2552
|
};
|
|
2551
2553
|
}
|
|
2552
2554
|
});
|
|
2553
|
-
const _t = /* @__PURE__ */ X(
|
|
2554
|
-
tabular:
|
|
2555
|
+
const _t = /* @__PURE__ */ X(Wa, [["__scopeId", "data-v-113dd7db"]]), Ka = (d) => ({
|
|
2556
|
+
tabular: Ea,
|
|
2555
2557
|
grid: _t,
|
|
2556
2558
|
list: _t
|
|
2557
2559
|
})[d], de = J(!1);
|
|
2558
2560
|
J(!1);
|
|
2559
|
-
const ke = J(!1), Re = J((...d) => null), mt = J(),
|
|
2561
|
+
const ke = J(!1), Re = J((...d) => null), mt = J(), Xa = (d) => (Ee("data-v-2642eb69"), d = d(), De(), d), Ya = {
|
|
2560
2562
|
key: 2,
|
|
2561
2563
|
class: "crud__controls"
|
|
2562
|
-
},
|
|
2564
|
+
}, Ja = {
|
|
2563
2565
|
key: 0,
|
|
2564
2566
|
class: "crud__search"
|
|
2565
|
-
},
|
|
2567
|
+
}, Za = { class: "crud__actions" }, Pa = { class: "crud__context-badge" }, Na = /* @__PURE__ */ Xa(() => /* @__PURE__ */ V("div", null, "Filtros", -1)), xa = { key: 0 }, el = {
|
|
2566
2568
|
key: 3,
|
|
2567
2569
|
class: "crud__pagination"
|
|
2568
|
-
}, ft = 30,
|
|
2570
|
+
}, ft = 30, tl = /* @__PURE__ */ U({
|
|
2569
2571
|
__name: "aeria-crud",
|
|
2570
2572
|
props: {
|
|
2571
2573
|
collection: {},
|
|
@@ -2581,34 +2583,34 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2581
2583
|
},
|
|
2582
2584
|
emits: ["uiEvent"],
|
|
2583
2585
|
setup(d, { emit: r }) {
|
|
2584
|
-
const a = d, t = r, l = Ae(),
|
|
2586
|
+
const a = d, t = r, l = Ae(), i = $t({
|
|
2585
2587
|
delay: 600
|
|
2586
2588
|
}), u = ie("meta"), v = ze(), { reachedEnd: c, detach: h } = Ye(null, {
|
|
2587
2589
|
antecipate: 600
|
|
2588
2590
|
}), p = !v.value.md || a.scrollPagination;
|
|
2589
2591
|
p && ue(c, (C) => {
|
|
2590
|
-
C &&
|
|
2592
|
+
C && o.pagination.recordsTotal > o.items.length && b.value < ft && (b.value += 1, T());
|
|
2591
2593
|
});
|
|
2592
|
-
const
|
|
2593
|
-
aa(
|
|
2594
|
+
const o = ie(a.collection);
|
|
2595
|
+
aa(o, {
|
|
2594
2596
|
persistInQuery: !a.noQueryPersistence
|
|
2595
2597
|
});
|
|
2596
|
-
const _ = gt(), $ = a.action ? e(a.action) : Ut(
|
|
2598
|
+
const _ = gt(), $ = a.action ? e(a.action) : Ut(o, l, _);
|
|
2597
2599
|
Re.value = $[0], mt.value = $[1];
|
|
2598
2600
|
const b = J(0), S = J(!1), T = async (C) => {
|
|
2599
|
-
|
|
2601
|
+
o.activeFilters = Object.assign({}, (C == null ? void 0 : C.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
|
|
2600
2602
|
const j = {
|
|
2601
|
-
filters:
|
|
2602
|
-
limit:
|
|
2603
|
-
offset:
|
|
2604
|
-
project:
|
|
2603
|
+
filters: o.activeFilters,
|
|
2604
|
+
limit: o.pagination.limit,
|
|
2605
|
+
offset: o.pagination.offset,
|
|
2606
|
+
project: o.preferredTableProperties.length > 0 ? o.preferredTableProperties : o.description.table || Object.keys(o.properties)
|
|
2605
2607
|
};
|
|
2606
|
-
b.value > 0 && (j.limit = 15, j.offset = b.value * j.limit),
|
|
2607
|
-
const { error:
|
|
2608
|
-
if (
|
|
2608
|
+
b.value > 0 && (j.limit = 15, j.offset = b.value * j.limit), o.description.tableMeta && (j.project = j.project.concat(o.description.tableMeta)), C && Object.assign(j, C), o.loading.getAll = !0;
|
|
2609
|
+
const { error: ae, result: le } = await o.$actions.retrieveItems(j);
|
|
2610
|
+
if (ae)
|
|
2609
2611
|
return;
|
|
2610
|
-
const { data:
|
|
2611
|
-
|
|
2612
|
+
const { data: ne, pagination: se } = le;
|
|
2613
|
+
o.pagination.recordsCount = se.recordsCount, o.pagination.recordsTotal = se.recordsTotal, b.value === 0 && o.items.splice(0), o.items.push(...ne), o.loading.getAll = !1, S.value = !0;
|
|
2612
2614
|
}, P = async (C) => {
|
|
2613
2615
|
l.push({
|
|
2614
2616
|
query: {
|
|
@@ -2616,7 +2618,7 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2616
2618
|
offset: C.offset,
|
|
2617
2619
|
limit: C.limit
|
|
2618
2620
|
}
|
|
2619
|
-
}),
|
|
2621
|
+
}), o.pagination.offset = C.offset, o.pagination.limit = C.limit, T();
|
|
2620
2622
|
}, B = ve("noResultsComponent", null);
|
|
2621
2623
|
ue(() => [
|
|
2622
2624
|
l.currentRoute.value.path,
|
|
@@ -2624,61 +2626,61 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2624
2626
|
], async (C, j) => {
|
|
2625
2627
|
if (j && j[0] === C[0] && j[1] === C[1])
|
|
2626
2628
|
return;
|
|
2627
|
-
const
|
|
2628
|
-
if (u.view.title = a.collection, u.view.collection = a.collection, !a.noFetch && !
|
|
2629
|
-
const
|
|
2630
|
-
Object.keys(
|
|
2629
|
+
const ae = l.currentRoute.value;
|
|
2630
|
+
if (u.view.title = a.collection, u.view.collection = a.collection, !a.noFetch && !ae.query._popstate) {
|
|
2631
|
+
const le = Et(o, ae);
|
|
2632
|
+
Object.keys(le).length > 0 && Object.assign(o.filters, le), await T();
|
|
2631
2633
|
}
|
|
2632
2634
|
}, {
|
|
2633
2635
|
immediate: !0,
|
|
2634
2636
|
flush: "post"
|
|
2635
2637
|
});
|
|
2636
|
-
const [
|
|
2638
|
+
const [z] = i((C) => (l.push({
|
|
2637
2639
|
query: {
|
|
2638
2640
|
search: C || void 0
|
|
2639
2641
|
}
|
|
2640
|
-
}), C ? (
|
|
2642
|
+
}), C ? (o.filters = Object.assign(Ve(o.freshFilters), {
|
|
2641
2643
|
$text: {
|
|
2642
2644
|
$search: `"${C}"`,
|
|
2643
2645
|
$caseSensitive: !1
|
|
2644
2646
|
}
|
|
2645
2647
|
}), T({
|
|
2646
2648
|
offset: 0
|
|
2647
|
-
})) : (
|
|
2648
|
-
ue(() =>
|
|
2649
|
-
|
|
2649
|
+
})) : (o.filters = Ve(o.freshFilters), b.value = 0, T())));
|
|
2650
|
+
ue(() => o.textQuery, (C) => {
|
|
2651
|
+
z(C);
|
|
2650
2652
|
});
|
|
2651
2653
|
const Y = (C) => {
|
|
2652
2654
|
C.currentLayout = C.currentLayout === "tabular" ? C.description.layout.name : "tabular";
|
|
2653
2655
|
};
|
|
2654
2656
|
At(() => {
|
|
2655
|
-
|
|
2657
|
+
o.$actions.clearFilters(), o.textQuery = "", h();
|
|
2656
2658
|
}), ue(() => mt.value, async (C) => {
|
|
2657
|
-
var
|
|
2659
|
+
var le;
|
|
2658
2660
|
const j = Ve(C);
|
|
2659
|
-
let
|
|
2661
|
+
let ae;
|
|
2660
2662
|
if (j)
|
|
2661
|
-
if ((j.name === "spawnEdit" || j.name === "duplicate") && (
|
|
2663
|
+
if ((j.name === "spawnEdit" || j.name === "duplicate") && (ae = o.$actions.get({
|
|
2662
2664
|
filters: {
|
|
2663
2665
|
_id: j.params._id
|
|
2664
2666
|
}
|
|
2665
2667
|
})), j.name === "spawnAdd")
|
|
2666
|
-
|
|
2667
|
-
delete
|
|
2668
|
+
o.$actions.clearItem(), (le = j.params) != null && le.item && (o.$actions.setItem(j.params.item), Object.keys(j.params.item).forEach((ne) => {
|
|
2669
|
+
delete o.referenceItem[ne];
|
|
2668
2670
|
})), de.value = "add";
|
|
2669
2671
|
else if (j.name === "spawnEdit")
|
|
2670
|
-
|
|
2672
|
+
o.$actions.setItem(j.params), de.value = "edit";
|
|
2671
2673
|
else if (j.name === "duplicate") {
|
|
2672
|
-
await
|
|
2673
|
-
const
|
|
2674
|
-
if (!(
|
|
2674
|
+
await ae;
|
|
2675
|
+
const ne = Object.entries(o.item).reduce((se, [M, q]) => {
|
|
2676
|
+
if (!(M in o.properties))
|
|
2675
2677
|
return {
|
|
2676
|
-
...
|
|
2677
|
-
[
|
|
2678
|
+
...se,
|
|
2679
|
+
[M]: q
|
|
2678
2680
|
};
|
|
2679
|
-
const m =
|
|
2681
|
+
const m = o.properties[M];
|
|
2680
2682
|
if (m.readOnly)
|
|
2681
|
-
return
|
|
2683
|
+
return se;
|
|
2682
2684
|
const E = (G) => {
|
|
2683
2685
|
const O = _e(m);
|
|
2684
2686
|
if (!O)
|
|
@@ -2686,38 +2688,38 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2686
2688
|
if (O.$ref === "file")
|
|
2687
2689
|
return {};
|
|
2688
2690
|
if (O.inline && G) {
|
|
2689
|
-
const { _id: A, ...
|
|
2690
|
-
return
|
|
2691
|
+
const { _id: A, ...F } = G;
|
|
2692
|
+
return F;
|
|
2691
2693
|
}
|
|
2692
2694
|
return G;
|
|
2693
2695
|
};
|
|
2694
|
-
return
|
|
2695
|
-
...
|
|
2696
|
-
[
|
|
2696
|
+
return q = Array.isArray(q) ? q.map(E) : E(q), {
|
|
2697
|
+
...se,
|
|
2698
|
+
[M]: q
|
|
2697
2699
|
};
|
|
2698
2700
|
}, {});
|
|
2699
|
-
|
|
2701
|
+
o.$actions.setItem(ne), delete o.item._id, o.referenceItem = {}, de.value = "duplicate";
|
|
2700
2702
|
} else
|
|
2701
2703
|
t("uiEvent", j);
|
|
2702
2704
|
}, {
|
|
2703
2705
|
deep: !0
|
|
2704
2706
|
}), ue(() => de, ({ value: C }) => {
|
|
2705
|
-
C === !1 && (u.view.collection = a.collection,
|
|
2707
|
+
C === !1 && (u.view.collection = a.collection, o.$actions.clearItem());
|
|
2706
2708
|
});
|
|
2707
|
-
const w = Q(() =>
|
|
2709
|
+
const w = Q(() => o.individualActions.map((C) => ({
|
|
2708
2710
|
click: Re.value(C),
|
|
2709
2711
|
...C
|
|
2710
|
-
}))), te = Q(() =>
|
|
2712
|
+
}))), te = Q(() => o.actions.filter((C) => !C.button));
|
|
2711
2713
|
return ye(He, Q(() => a.collection)), ye("individualActions", w), (C, j) => {
|
|
2712
|
-
var
|
|
2713
|
-
const
|
|
2714
|
-
return
|
|
2715
|
-
e(ke) ? (
|
|
2716
|
-
key: e(
|
|
2714
|
+
var ne, se, M, q, m, E, G;
|
|
2715
|
+
const ae = oe("clickable"), le = oe("loading");
|
|
2716
|
+
return n(), s(N, null, [
|
|
2717
|
+
e(ke) ? (n(), g(na, {
|
|
2718
|
+
key: e(o).$id,
|
|
2717
2719
|
modelValue: e(ke),
|
|
2718
2720
|
"onUpdate:modelValue": j[0] || (j[0] = (O) => ct(ke) ? ke.value = O : null)
|
|
2719
2721
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2720
|
-
e(de) ? (
|
|
2722
|
+
e(de) ? (n(), g(oa, {
|
|
2721
2723
|
key: 1,
|
|
2722
2724
|
modelValue: e(de),
|
|
2723
2725
|
"onUpdate:modelValue": j[1] || (j[1] = (O) => ct(de) ? de.value = O : null),
|
|
@@ -2728,15 +2730,15 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2728
2730
|
V("span", null, k((() => {
|
|
2729
2731
|
switch (e(de)) {
|
|
2730
2732
|
case "add":
|
|
2731
|
-
return e(
|
|
2733
|
+
return e(R)("action.add", { capitalize: !0 });
|
|
2732
2734
|
case "duplicate":
|
|
2733
|
-
return e(
|
|
2735
|
+
return e(R)("action.duplicate", { capitalize: !0 });
|
|
2734
2736
|
case "edit":
|
|
2735
2737
|
default:
|
|
2736
|
-
return e(
|
|
2738
|
+
return e(R)("action.edit", { capitalize: !0 });
|
|
2737
2739
|
}
|
|
2738
2740
|
})()), 1),
|
|
2739
|
-
V("span", null, " " + k(e(
|
|
2741
|
+
V("span", null, " " + k(e(R)(e(u).view.collection)), 1)
|
|
2740
2742
|
]),
|
|
2741
2743
|
_: 2
|
|
2742
2744
|
}, [
|
|
@@ -2747,30 +2749,30 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2747
2749
|
])
|
|
2748
2750
|
}))
|
|
2749
2751
|
]), 1032, ["modelValue"])) : y("", !0),
|
|
2750
|
-
!C.noActions && (e(
|
|
2751
|
-
e(
|
|
2752
|
-
|
|
2753
|
-
modelValue: e(
|
|
2754
|
-
"onUpdate:modelValue": j[3] || (j[3] = (O) => e(
|
|
2752
|
+
!C.noActions && (e(o).description.search || Object.keys(e(o).availableFilters).length > 0 || ((ne = e(o)) == null ? void 0 : ne.actions.length) > 0 || C.$slots.actions || !C.noLayoutToggle && e(o).description.layout && ((se = e(o).description.layout) == null ? void 0 : se.name) !== "tabular") ? (n(), s("div", Ya, [
|
|
2753
|
+
e(o).description.search ? (n(), s("div", Ja, [
|
|
2754
|
+
L(Ie, H({
|
|
2755
|
+
modelValue: e(o).textQuery,
|
|
2756
|
+
"onUpdate:modelValue": j[3] || (j[3] = (O) => e(o).textQuery = O)
|
|
2755
2757
|
}, {
|
|
2756
2758
|
property: {
|
|
2757
2759
|
type: "string",
|
|
2758
|
-
placeholder: e(
|
|
2760
|
+
placeholder: e(o).description.search.placeholder || "Pesquise aqui",
|
|
2759
2761
|
inputType: "search"
|
|
2760
2762
|
}
|
|
2761
2763
|
}), null, 16, ["modelValue"])
|
|
2762
2764
|
])) : y("", !0),
|
|
2763
|
-
V("div",
|
|
2764
|
-
te.value.length > 0 || !C.noLayoutToggle && e(
|
|
2765
|
+
V("div", Za, [
|
|
2766
|
+
te.value.length > 0 || !C.noLayoutToggle && e(o).description.layout && ((M = e(o).description.layout) == null ? void 0 : M.name) !== "tabular" ? (n(), g(Oe, { key: 0 }, ce({
|
|
2765
2767
|
default: f(() => [
|
|
2766
|
-
|
|
2768
|
+
L(re, {
|
|
2767
2769
|
variant: "alt",
|
|
2768
2770
|
icon: "sliders"
|
|
2769
2771
|
}, {
|
|
2770
2772
|
default: f(() => [
|
|
2771
|
-
e(
|
|
2773
|
+
e(o).filtersCount ? (n(), g(be, { key: 0 }, {
|
|
2772
2774
|
default: f(() => [
|
|
2773
|
-
W(k(e(
|
|
2775
|
+
W(k(e(o).filtersCount), 1)
|
|
2774
2776
|
]),
|
|
2775
2777
|
_: 1
|
|
2776
2778
|
})) : y("", !0)
|
|
@@ -2780,24 +2782,24 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2780
2782
|
]),
|
|
2781
2783
|
_: 2
|
|
2782
2784
|
}, [
|
|
2783
|
-
Object.keys(e(
|
|
2785
|
+
Object.keys(e(o).availableFilters).length > 0 ? {
|
|
2784
2786
|
name: "filter",
|
|
2785
2787
|
fn: f(() => [
|
|
2786
|
-
x((
|
|
2788
|
+
x((n(), g(Z, {
|
|
2787
2789
|
icon: "funnel",
|
|
2788
2790
|
onClick: j[4] || (j[4] = (O) => ke.value = !0)
|
|
2789
2791
|
}, {
|
|
2790
2792
|
default: f(() => [
|
|
2791
|
-
W(k(e(
|
|
2793
|
+
W(k(e(R)("filters", { capitalize: !0 })), 1)
|
|
2792
2794
|
]),
|
|
2793
2795
|
_: 1
|
|
2794
2796
|
})), [
|
|
2795
|
-
[
|
|
2797
|
+
[ae]
|
|
2796
2798
|
]),
|
|
2797
|
-
V("div",
|
|
2798
|
-
e(
|
|
2799
|
+
V("div", Pa, [
|
|
2800
|
+
e(o).filtersCount ? (n(), g(be, { key: 0 }, {
|
|
2799
2801
|
default: f(() => [
|
|
2800
|
-
W(k(e(
|
|
2802
|
+
W(k(e(o).filtersCount), 1)
|
|
2801
2803
|
]),
|
|
2802
2804
|
_: 1
|
|
2803
2805
|
})) : y("", !0)
|
|
@@ -2805,19 +2807,19 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2805
2807
|
]),
|
|
2806
2808
|
key: "0"
|
|
2807
2809
|
} : void 0,
|
|
2808
|
-
!C.noLayoutToggle && e(
|
|
2810
|
+
!C.noLayoutToggle && e(o).description.layout && ((q = e(o).description.layout) == null ? void 0 : q.name) !== "tabular" ? {
|
|
2809
2811
|
name: "layout-toggle",
|
|
2810
2812
|
fn: f(() => [
|
|
2811
|
-
x((
|
|
2813
|
+
x((n(), g(Z, {
|
|
2812
2814
|
icon: "table",
|
|
2813
|
-
onClick: j[5] || (j[5] = (O) => Y(e(
|
|
2815
|
+
onClick: j[5] || (j[5] = (O) => Y(e(o)))
|
|
2814
2816
|
}, {
|
|
2815
2817
|
default: f(() => [
|
|
2816
|
-
W(k(e(
|
|
2818
|
+
W(k(e(R)("change_layout", { capitalize: !0 })), 1)
|
|
2817
2819
|
]),
|
|
2818
2820
|
_: 1
|
|
2819
2821
|
})), [
|
|
2820
|
-
[
|
|
2822
|
+
[ae]
|
|
2821
2823
|
])
|
|
2822
2824
|
]),
|
|
2823
2825
|
key: "1"
|
|
@@ -2825,57 +2827,57 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2825
2827
|
D(te.value, (O, A) => ({
|
|
2826
2828
|
name: `action-${A}`,
|
|
2827
2829
|
fn: f(() => [
|
|
2828
|
-
O ? (
|
|
2830
|
+
O ? (n(), g(Z, {
|
|
2829
2831
|
key: 0,
|
|
2830
2832
|
icon: O.icon || "gear",
|
|
2831
|
-
disabled: e(
|
|
2832
|
-
onClick: (
|
|
2833
|
+
disabled: e(o).selected.length === 0 && O.selection,
|
|
2834
|
+
onClick: (F) => e(Re)(O)({ _id: e(o).selected.map((me) => me._id) })
|
|
2833
2835
|
}, {
|
|
2834
2836
|
default: f(() => [
|
|
2835
|
-
W(k(e(
|
|
2837
|
+
W(k(e(R)(O.label, { capitalize: !0 })), 1)
|
|
2836
2838
|
]),
|
|
2837
2839
|
_: 2
|
|
2838
2840
|
}, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
|
|
2839
2841
|
])
|
|
2840
2842
|
}))
|
|
2841
|
-
]), 1024)) : Object.keys(e(
|
|
2843
|
+
]), 1024)) : Object.keys(e(o).availableFilters).length > 0 ? (n(), g(re, {
|
|
2842
2844
|
key: 1,
|
|
2843
2845
|
variant: "alt",
|
|
2844
2846
|
icon: "funnel",
|
|
2845
2847
|
onClick: j[6] || (j[6] = (O) => ke.value = !0)
|
|
2846
2848
|
}, {
|
|
2847
2849
|
default: f(() => [
|
|
2848
|
-
|
|
2849
|
-
e(
|
|
2850
|
+
Na,
|
|
2851
|
+
e(o).filtersCount ? (n(), g(be, { key: 0 }, {
|
|
2850
2852
|
default: f(() => [
|
|
2851
|
-
W(k(e(
|
|
2853
|
+
W(k(e(o).filtersCount), 1)
|
|
2852
2854
|
]),
|
|
2853
2855
|
_: 1
|
|
2854
2856
|
})) : y("", !0)
|
|
2855
2857
|
]),
|
|
2856
2858
|
_: 1
|
|
2857
2859
|
})) : y("", !0),
|
|
2858
|
-
(
|
|
2860
|
+
(n(!0), s(N, null, D(e(o).actions.filter((O) => O.button), (O, A) => (n(), g(re, {
|
|
2859
2861
|
key: `action-${A}`,
|
|
2860
2862
|
icon: O.icon,
|
|
2861
|
-
disabled: e(
|
|
2862
|
-
onClick: (
|
|
2863
|
+
disabled: e(o).selected.length === 0 && O.selection,
|
|
2864
|
+
onClick: (F) => e(Re)(O)({ _id: e(o).selected.map((me) => me._id) })
|
|
2863
2865
|
}, {
|
|
2864
2866
|
default: f(() => [
|
|
2865
|
-
W(k(e(
|
|
2867
|
+
W(k(e(R)(O.label, { capitalize: !0 })), 1)
|
|
2866
2868
|
]),
|
|
2867
2869
|
_: 2
|
|
2868
2870
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2869
2871
|
C.$slots.actions ? I(C.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
|
|
2870
2872
|
])
|
|
2871
2873
|
])) : y("", !0),
|
|
2872
|
-
x((
|
|
2873
|
-
e(
|
|
2874
|
-
e(B) ? (
|
|
2875
|
-
collection: e(
|
|
2874
|
+
x((n(), s("div", null, [
|
|
2875
|
+
e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(B) || C.$slots.empty) ? (n(), s("div", xa, [
|
|
2876
|
+
e(B) ? (n(), g(he(e(B)), pe(H({ key: 0 }, {
|
|
2877
|
+
collection: e(o).$id
|
|
2876
2878
|
})), {
|
|
2877
2879
|
default: f(() => [
|
|
2878
|
-
e(
|
|
2880
|
+
e(o).filtersCount === 0 && e(o).description.actions && "ui:spawnAdd" in e(o).description.actions ? (n(), g(re, {
|
|
2879
2881
|
key: 0,
|
|
2880
2882
|
icon: "plus",
|
|
2881
2883
|
onClick: j[7] || (j[7] = (O) => e(Re)({
|
|
@@ -2883,23 +2885,23 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2883
2885
|
})())
|
|
2884
2886
|
}, {
|
|
2885
2887
|
default: f(() => [
|
|
2886
|
-
W(k(e(
|
|
2888
|
+
W(k(e(R)("add_first_item", { capitalize: !0 })), 1)
|
|
2887
2889
|
]),
|
|
2888
2890
|
_: 1
|
|
2889
2891
|
})) : y("", !0)
|
|
2890
2892
|
]),
|
|
2891
2893
|
_: 1
|
|
2892
2894
|
}, 16)) : I(C.$slots, "empty", pe(H({ key: 1 }, {
|
|
2893
|
-
collection: e(
|
|
2895
|
+
collection: e(o).$id
|
|
2894
2896
|
})), void 0, !0)
|
|
2895
2897
|
])) : C.$slots.component ? I(C.$slots, "component", pe(H({ key: 1 }, {
|
|
2896
|
-
store: e(
|
|
2897
|
-
})), void 0, !0) : (
|
|
2898
|
+
store: e(o)
|
|
2899
|
+
})), void 0, !0) : (n(), g(he(e(Ka)(((m = C.layout) == null ? void 0 : m.name) || e(o).$currentLayout)), H({ key: 2 }, {
|
|
2898
2900
|
individualActions: w.value,
|
|
2899
|
-
layoutOptions: ((E = C.layout) == null ? void 0 : E.options) || e(
|
|
2901
|
+
layoutOptions: ((E = C.layout) == null ? void 0 : E.options) || e(o).layout.options,
|
|
2900
2902
|
componentProps: C.componentProps
|
|
2901
2903
|
}, {
|
|
2902
|
-
"component-name": ((G = C.layout) == null ? void 0 : G.name) || e(
|
|
2904
|
+
"component-name": ((G = C.layout) == null ? void 0 : G.name) || e(o).$currentLayout
|
|
2903
2905
|
}), ce({ _: 2 }, [
|
|
2904
2906
|
D(Object.keys(C.$slots).filter((O) => O.startsWith("row-")), (O) => ({
|
|
2905
2907
|
name: O,
|
|
@@ -2916,11 +2918,11 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2916
2918
|
} : void 0
|
|
2917
2919
|
]), 1040, ["component-name"]))
|
|
2918
2920
|
])), [
|
|
2919
|
-
[
|
|
2921
|
+
[le, (!e(p) || b.value === ft) && e(o).loading.getAll]
|
|
2920
2922
|
]),
|
|
2921
|
-
!e(
|
|
2922
|
-
|
|
2923
|
-
pagination: e(
|
|
2923
|
+
!e(o).loading.getAll && e(o).itemsCount > 0 ? (n(), s("div", el, [
|
|
2924
|
+
L(Fn, {
|
|
2925
|
+
pagination: e(o).pagination,
|
|
2924
2926
|
onPaginate: P
|
|
2925
2927
|
}, null, 8, ["pagination"])
|
|
2926
2928
|
])) : y("", !0)
|
|
@@ -2928,7 +2930,7 @@ const ke = J(!1), Re = J((...d) => null), mt = J(), Wa = (d) => (Ee("data-v-2642
|
|
|
2928
2930
|
};
|
|
2929
2931
|
}
|
|
2930
2932
|
});
|
|
2931
|
-
const
|
|
2933
|
+
const Fl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-2642eb69"]]), nl = { class: "prompt" }, ol = /* @__PURE__ */ U({
|
|
2932
2934
|
__name: "aeria-prompt",
|
|
2933
2935
|
props: {
|
|
2934
2936
|
title: {},
|
|
@@ -2938,7 +2940,7 @@ const zl = /* @__PURE__ */ X(xa, [["__scopeId", "data-v-2642eb69"]]), el = { cla
|
|
|
2938
2940
|
const r = ie("meta"), a = (t) => {
|
|
2939
2941
|
r.$actions.fulfillPrompt(t);
|
|
2940
2942
|
};
|
|
2941
|
-
return (t, l) => (
|
|
2943
|
+
return (t, l) => (n(), g(Be, {
|
|
2942
2944
|
float: "",
|
|
2943
2945
|
"fill-footer": "",
|
|
2944
2946
|
"close-hint": !1,
|
|
@@ -2949,23 +2951,23 @@ const zl = /* @__PURE__ */ X(xa, [["__scopeId", "data-v-2642eb69"]]), el = { cla
|
|
|
2949
2951
|
class: "prompt__actions",
|
|
2950
2952
|
style: $e(`grid-template-columns: repeat(${t.actions.length}, 1fr)`)
|
|
2951
2953
|
}, [
|
|
2952
|
-
(
|
|
2954
|
+
(n(!0), s(N, null, D(t.actions, (i, u) => (n(), g(fe, {
|
|
2953
2955
|
key: `action-${u}`,
|
|
2954
2956
|
class: K(`
|
|
2955
2957
|
prompt__action
|
|
2956
|
-
prompt__action--${
|
|
2958
|
+
prompt__action--${i.variant || "primary"}
|
|
2957
2959
|
`),
|
|
2958
|
-
onClick: (v) =>
|
|
2960
|
+
onClick: (v) => i.click ? i.click(i) : a(i)
|
|
2959
2961
|
}, {
|
|
2960
2962
|
default: f(() => [
|
|
2961
|
-
W(k(
|
|
2963
|
+
W(k(i.title || i.name), 1)
|
|
2962
2964
|
]),
|
|
2963
2965
|
_: 2
|
|
2964
2966
|
}, 1032, ["class", "onClick"]))), 128))
|
|
2965
2967
|
], 4)
|
|
2966
2968
|
]),
|
|
2967
2969
|
default: f(() => [
|
|
2968
|
-
V("div",
|
|
2970
|
+
V("div", nl, [
|
|
2969
2971
|
I(t.$slots, "default", {}, void 0, !0)
|
|
2970
2972
|
])
|
|
2971
2973
|
]),
|
|
@@ -2981,7 +2983,7 @@ const zl = /* @__PURE__ */ X(xa, [["__scopeId", "data-v-2642eb69"]]), el = { cla
|
|
|
2981
2983
|
]), 1024));
|
|
2982
2984
|
}
|
|
2983
2985
|
});
|
|
2984
|
-
const
|
|
2986
|
+
const al = /* @__PURE__ */ X(ol, [["__scopeId", "data-v-5443f297"]]), ll = { class: "toast__content" }, sl = { class: "toast__time" }, il = /* @__PURE__ */ U({
|
|
2985
2987
|
__name: "aeria-toast",
|
|
2986
2988
|
props: {
|
|
2987
2989
|
idx: {},
|
|
@@ -2992,22 +2994,22 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-5443f297"]]), ol = { cla
|
|
|
2992
2994
|
setup(d) {
|
|
2993
2995
|
const r = ie("meta");
|
|
2994
2996
|
return (a, t) => {
|
|
2995
|
-
const l =
|
|
2996
|
-
return x((
|
|
2997
|
+
const l = oe("clickable");
|
|
2998
|
+
return x((n(), s("div", {
|
|
2997
2999
|
class: K({
|
|
2998
3000
|
toast: !0,
|
|
2999
3001
|
"toast--animate": e(r).toasts[0].itr === a.itr
|
|
3000
3002
|
}),
|
|
3001
|
-
onAnimationend: t[0] || (t[0] = (
|
|
3002
|
-
onClick: t[1] || (t[1] = (
|
|
3003
|
+
onAnimationend: t[0] || (t[0] = (i) => e(r).$actions.popToast()),
|
|
3004
|
+
onClick: t[1] || (t[1] = (i) => e(r).$actions.popToast(a.itr))
|
|
3003
3005
|
}, [
|
|
3004
|
-
|
|
3006
|
+
L(Z, H(
|
|
3005
3007
|
a.icon ? { icon: a.icon } : { icon: "warning-circle" },
|
|
3006
3008
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3007
3009
|
), null, 16),
|
|
3008
|
-
V("div",
|
|
3010
|
+
V("div", ll, [
|
|
3009
3011
|
I(a.$slots, "default", {}, void 0, !0),
|
|
3010
|
-
V("div",
|
|
3012
|
+
V("div", sl, k(a.formatDateTime(a.date, { hoursOnly: !0 })), 1)
|
|
3011
3013
|
])
|
|
3012
3014
|
], 34)), [
|
|
3013
3015
|
[l]
|
|
@@ -3015,13 +3017,13 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-5443f297"]]), ol = { cla
|
|
|
3015
3017
|
};
|
|
3016
3018
|
}
|
|
3017
3019
|
});
|
|
3018
|
-
const
|
|
3020
|
+
const rl = /* @__PURE__ */ X(il, [["__scopeId", "data-v-21bbe178"]]), ul = ["innerHTML"], cl = { class: "main__toasts" }, dl = ["innerHTML"], pl = /* @__PURE__ */ U({
|
|
3019
3021
|
__name: "aeria-main",
|
|
3020
3022
|
setup(d) {
|
|
3021
3023
|
const r = ie("meta"), a = Q(() => r.themeOverride || r.theme);
|
|
3022
3024
|
return (t, l) => {
|
|
3023
|
-
const
|
|
3024
|
-
return
|
|
3025
|
+
const i = Bt("router-view");
|
|
3026
|
+
return n(), s("main", {
|
|
3025
3027
|
id: "main",
|
|
3026
3028
|
class: K(`
|
|
3027
3029
|
main
|
|
@@ -3029,11 +3031,11 @@ const sl = /* @__PURE__ */ X(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
|
|
|
3029
3031
|
${a.value === "dark" && "tw-dark"}
|
|
3030
3032
|
`)
|
|
3031
3033
|
}, [
|
|
3032
|
-
(
|
|
3034
|
+
(n(), g(wt, null, {
|
|
3033
3035
|
default: f(() => [
|
|
3034
|
-
|
|
3036
|
+
L(i, null, {
|
|
3035
3037
|
default: f(({ Component: u }) => [
|
|
3036
|
-
(
|
|
3038
|
+
(n(), g(he(u), null, ce({ _: 2 }, [
|
|
3037
3039
|
D(Object.keys(t.$slots), (v) => ({
|
|
3038
3040
|
name: v,
|
|
3039
3041
|
fn: f(() => [
|
|
@@ -3048,7 +3050,7 @@ const sl = /* @__PURE__ */ X(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
|
|
|
3048
3050
|
_: 3
|
|
3049
3051
|
})),
|
|
3050
3052
|
I(t.$slots, "default", {}, void 0, !0),
|
|
3051
|
-
|
|
3053
|
+
L(Be, H({
|
|
3052
3054
|
modelValue: e(r).modal.visible,
|
|
3053
3055
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => e(r).modal.visible = u),
|
|
3054
3056
|
float: "",
|
|
@@ -3058,29 +3060,29 @@ const sl = /* @__PURE__ */ X(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
|
|
|
3058
3060
|
onOverlayClick: l[1] || (l[1] = (u) => e(r).modal.visible = !1)
|
|
3059
3061
|
}), {
|
|
3060
3062
|
default: f(() => [
|
|
3061
|
-
e(r).modal.body ? (
|
|
3063
|
+
e(r).modal.body ? (n(), s("div", {
|
|
3062
3064
|
key: 0,
|
|
3063
3065
|
style: { "white-space": "pre-wrap" },
|
|
3064
3066
|
innerHTML: e(r).modal.body
|
|
3065
|
-
}, null, 8,
|
|
3066
|
-
e(r).modal.component ? (
|
|
3067
|
+
}, null, 8, ul)) : y("", !0),
|
|
3068
|
+
e(r).modal.component ? (n(), g(he(e(r).modal.component), { key: 1 })) : y("", !0)
|
|
3067
3069
|
]),
|
|
3068
3070
|
_: 1
|
|
3069
3071
|
}, 16, ["modelValue"]),
|
|
3070
|
-
e(r).prompt.visible ? (
|
|
3072
|
+
e(r).prompt.visible ? (n(), g(al, pe(H({ key: 0 }, e(r).prompt)), {
|
|
3071
3073
|
default: f(() => [
|
|
3072
3074
|
W(k(e(r).prompt.body), 1)
|
|
3073
3075
|
]),
|
|
3074
3076
|
_: 1
|
|
3075
3077
|
}, 16)) : y("", !0),
|
|
3076
|
-
V("div",
|
|
3077
|
-
(
|
|
3078
|
+
V("div", cl, [
|
|
3079
|
+
(n(!0), s(N, null, D(e(r).toasts, (u) => (n(), g(rl, H({ ref_for: !0 }, u, {
|
|
3078
3080
|
key: `toast-${u.itr}`
|
|
3079
3081
|
}), {
|
|
3080
3082
|
default: f(() => [
|
|
3081
3083
|
V("div", {
|
|
3082
|
-
innerHTML: e(
|
|
3083
|
-
}, null, 8,
|
|
3084
|
+
innerHTML: e(R)(u.text)
|
|
3085
|
+
}, null, 8, dl)
|
|
3084
3086
|
]),
|
|
3085
3087
|
_: 2
|
|
3086
3088
|
}, 1040))), 128))
|
|
@@ -3089,11 +3091,11 @@ const sl = /* @__PURE__ */ X(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
|
|
|
3089
3091
|
};
|
|
3090
3092
|
}
|
|
3091
3093
|
});
|
|
3092
|
-
const
|
|
3093
|
-
const
|
|
3094
|
-
function
|
|
3095
|
-
return
|
|
3096
|
-
(
|
|
3094
|
+
const ql = /* @__PURE__ */ X(pl, [["__scopeId", "data-v-1166be3d"]]);
|
|
3095
|
+
const _l = {}, ml = { class: "menu" };
|
|
3096
|
+
function fl(d, r) {
|
|
3097
|
+
return n(), s("menu", ml, [
|
|
3098
|
+
(n(!0), s(N, null, D(Object.keys(d.$slots), (a) => (n(), s("div", {
|
|
3097
3099
|
key: a,
|
|
3098
3100
|
class: "menu__entry"
|
|
3099
3101
|
}, [
|
|
@@ -3101,16 +3103,16 @@ function _l(d, r) {
|
|
|
3101
3103
|
]))), 128))
|
|
3102
3104
|
]);
|
|
3103
3105
|
}
|
|
3104
|
-
const
|
|
3106
|
+
const Ul = /* @__PURE__ */ X(_l, [["render", fl], ["__scopeId", "data-v-3cfef7fb"]]), vl = { class: "tabs" }, yl = {
|
|
3105
3107
|
key: 0,
|
|
3106
3108
|
class: "tabs__horizontal"
|
|
3107
|
-
},
|
|
3109
|
+
}, hl = {
|
|
3108
3110
|
key: 0,
|
|
3109
3111
|
class: "tabs__tab tabs__tab--info"
|
|
3110
|
-
},
|
|
3112
|
+
}, $l = ["onClick"], bl = {
|
|
3111
3113
|
key: 1,
|
|
3112
3114
|
class: "tabs__context-menu"
|
|
3113
|
-
},
|
|
3115
|
+
}, gl = ["onClick"], kl = /* @__PURE__ */ U({
|
|
3114
3116
|
__name: "aeria-tabs",
|
|
3115
3117
|
props: {
|
|
3116
3118
|
query: {},
|
|
@@ -3118,11 +3120,11 @@ const Fl = /* @__PURE__ */ X(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
|
|
|
3118
3120
|
dropdown: { type: Boolean }
|
|
3119
3121
|
},
|
|
3120
3122
|
setup(d) {
|
|
3121
|
-
const r = d, a = St(), t = Ae(), l = ze(),
|
|
3122
|
-
const c = t.currentRoute.value[
|
|
3123
|
+
const r = d, a = St(), t = Ae(), l = ze(), i = "query" in r && r.query ? "query" : "params", u = Q(() => {
|
|
3124
|
+
const c = t.currentRoute.value[i][r.query || r.param];
|
|
3123
3125
|
return c || Object.keys(a)[0];
|
|
3124
3126
|
}), v = (c) => {
|
|
3125
|
-
if (
|
|
3127
|
+
if (i === "query") {
|
|
3126
3128
|
t.push({
|
|
3127
3129
|
query: {
|
|
3128
3130
|
...t.currentRoute.value.query,
|
|
@@ -3138,26 +3140,26 @@ const Fl = /* @__PURE__ */ X(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
|
|
|
3138
3140
|
});
|
|
3139
3141
|
};
|
|
3140
3142
|
return (c, h) => {
|
|
3141
|
-
const p =
|
|
3142
|
-
return
|
|
3143
|
-
e(l).md && !c.dropdown ? (
|
|
3144
|
-
c.$slots.default ? (
|
|
3143
|
+
const p = oe("clickable");
|
|
3144
|
+
return n(), s("div", vl, [
|
|
3145
|
+
e(l).md && !c.dropdown ? (n(), s("div", yl, [
|
|
3146
|
+
c.$slots.default ? (n(), s("div", hl, [
|
|
3145
3147
|
I(c.$slots, "default", {}, void 0, !0)
|
|
3146
3148
|
])) : y("", !0),
|
|
3147
|
-
(
|
|
3148
|
-
key:
|
|
3149
|
+
(n(!0), s(N, null, D(Object.keys(c.$slots).filter((o) => o !== "default"), (o, _) => (n(), s("div", {
|
|
3150
|
+
key: o,
|
|
3149
3151
|
class: K({
|
|
3150
3152
|
tabs__tab: !0,
|
|
3151
|
-
"tabs__tab--current":
|
|
3153
|
+
"tabs__tab--current": o === u.value || !u.value && _ === 0
|
|
3152
3154
|
}),
|
|
3153
|
-
onClick: ($) => v(
|
|
3155
|
+
onClick: ($) => v(o)
|
|
3154
3156
|
}, [
|
|
3155
|
-
I(c.$slots,
|
|
3156
|
-
], 10,
|
|
3157
|
-
])) : (
|
|
3158
|
-
|
|
3157
|
+
I(c.$slots, o, {}, void 0, !0)
|
|
3158
|
+
], 10, $l))), 128))
|
|
3159
|
+
])) : (n(), s("div", bl, [
|
|
3160
|
+
L(Oe, null, ce({
|
|
3159
3161
|
default: f(() => [
|
|
3160
|
-
x((
|
|
3162
|
+
x((n(), g(Z, {
|
|
3161
3163
|
"icon-right": "",
|
|
3162
3164
|
icon: "caret-down",
|
|
3163
3165
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
@@ -3173,14 +3175,14 @@ const Fl = /* @__PURE__ */ X(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
|
|
|
3173
3175
|
]),
|
|
3174
3176
|
_: 2
|
|
3175
3177
|
}, [
|
|
3176
|
-
D(Object.keys(c.$slots).filter((
|
|
3177
|
-
name:
|
|
3178
|
+
D(Object.keys(c.$slots).filter((o) => o !== "default"), (o) => ({
|
|
3179
|
+
name: o,
|
|
3178
3180
|
fn: f(() => [
|
|
3179
3181
|
V("div", {
|
|
3180
|
-
onClick: (_) => v(
|
|
3182
|
+
onClick: (_) => v(o)
|
|
3181
3183
|
}, [
|
|
3182
|
-
I(c.$slots,
|
|
3183
|
-
], 8,
|
|
3184
|
+
I(c.$slots, o, {}, void 0, !0)
|
|
3185
|
+
], 8, gl)
|
|
3184
3186
|
])
|
|
3185
3187
|
}))
|
|
3186
3188
|
]), 1024)
|
|
@@ -3189,7 +3191,7 @@ const Fl = /* @__PURE__ */ X(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
|
|
|
3189
3191
|
};
|
|
3190
3192
|
}
|
|
3191
3193
|
});
|
|
3192
|
-
const
|
|
3194
|
+
const Vl = /* @__PURE__ */ X(kl, [["__scopeId", "data-v-4dd516ec"]]), Cl = U({
|
|
3193
3195
|
props: {
|
|
3194
3196
|
initialValue: String,
|
|
3195
3197
|
promise: Promise
|
|
@@ -3200,7 +3202,7 @@ const gl = /* @__PURE__ */ X(bl, [["__scopeId", "data-v-4dd516ec"]]), kl = U({
|
|
|
3200
3202
|
r.value = a;
|
|
3201
3203
|
}), () => jt("div", r.value);
|
|
3202
3204
|
}
|
|
3203
|
-
}),
|
|
3205
|
+
}), Ol = ["onClick"], Il = { key: 1 }, Al = /* @__PURE__ */ U({
|
|
3204
3206
|
__name: "aeria-crud-topbar",
|
|
3205
3207
|
props: {
|
|
3206
3208
|
collection: {}
|
|
@@ -3208,13 +3210,13 @@ const gl = /* @__PURE__ */ X(bl, [["__scopeId", "data-v-4dd516ec"]]), kl = U({
|
|
|
3208
3210
|
setup(d) {
|
|
3209
3211
|
const r = d, t = Ae().currentRoute, l = Q(() => {
|
|
3210
3212
|
try {
|
|
3211
|
-
const
|
|
3212
|
-
return ge(
|
|
3213
|
+
const i = r.collection ? r.collection : t.value.meta.collection || t.value.params.collection;
|
|
3214
|
+
return ge(i);
|
|
3213
3215
|
} catch {
|
|
3214
3216
|
return null;
|
|
3215
3217
|
}
|
|
3216
3218
|
});
|
|
3217
|
-
return (
|
|
3219
|
+
return (i, u) => l.value && l.value.description.filtersPresets ? (n(), g(Vl, {
|
|
3218
3220
|
key: 0,
|
|
3219
3221
|
dropdown: "",
|
|
3220
3222
|
query: "section"
|
|
@@ -3226,34 +3228,34 @@ const gl = /* @__PURE__ */ X(bl, [["__scopeId", "data-v-4dd516ec"]]), kl = U({
|
|
|
3226
3228
|
class: "topbar__preset",
|
|
3227
3229
|
onClick: (h) => e(Vt)(c, l.value)
|
|
3228
3230
|
}, [
|
|
3229
|
-
c.icon ? (
|
|
3231
|
+
c.icon ? (n(), g(Z, {
|
|
3230
3232
|
key: 0,
|
|
3231
3233
|
icon: c.icon
|
|
3232
3234
|
}, {
|
|
3233
3235
|
default: f(() => [
|
|
3234
|
-
W(k(c.label || e(
|
|
3236
|
+
W(k(c.label || e(R)(v, { plural: !0 })), 1)
|
|
3235
3237
|
]),
|
|
3236
3238
|
_: 2
|
|
3237
|
-
}, 1032, ["icon"])) : (
|
|
3238
|
-
c.badgeFunction ? (
|
|
3239
|
+
}, 1032, ["icon"])) : (n(), s("div", Il, k(c.label || e(R)(v, { plural: !0 })), 1)),
|
|
3240
|
+
c.badgeFunction ? (n(), g(be, { key: 2 }, {
|
|
3239
3241
|
default: f(() => [
|
|
3240
|
-
|
|
3242
|
+
L(e(Cl), {
|
|
3241
3243
|
"initial-value": "0",
|
|
3242
3244
|
promise: l.value.$functions[c.badgeFunction]({ filters: c.filters })
|
|
3243
3245
|
}, null, 8, ["promise"])
|
|
3244
3246
|
]),
|
|
3245
3247
|
_: 2
|
|
3246
3248
|
}, 1024)) : y("", !0)
|
|
3247
|
-
], 8,
|
|
3249
|
+
], 8, Ol)
|
|
3248
3250
|
])
|
|
3249
3251
|
}))
|
|
3250
3252
|
]), 1024)) : y("", !0);
|
|
3251
3253
|
}
|
|
3252
3254
|
});
|
|
3253
|
-
const
|
|
3255
|
+
const Bl = /* @__PURE__ */ X(Al, [["__scopeId", "data-v-326eee9d"]]), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3254
3256
|
__proto__: null,
|
|
3255
|
-
default:
|
|
3256
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3257
|
+
default: Bl
|
|
3258
|
+
}, Symbol.toStringTag, { value: "Module" })), El = /* @__PURE__ */ U({
|
|
3257
3259
|
__name: "aeria-password-form",
|
|
3258
3260
|
props: {
|
|
3259
3261
|
modelValue: {}
|
|
@@ -3266,7 +3268,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3266
3268
|
r.modelValue.password,
|
|
3267
3269
|
r.modelValue.confirmation
|
|
3268
3270
|
));
|
|
3269
|
-
return (l,
|
|
3271
|
+
return (l, i) => (n(), g(Ge, {
|
|
3270
3272
|
form: {
|
|
3271
3273
|
password: {
|
|
3272
3274
|
type: "string",
|
|
@@ -3280,7 +3282,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3280
3282
|
}
|
|
3281
3283
|
},
|
|
3282
3284
|
"model-value": l.modelValue,
|
|
3283
|
-
"onUpdate:modelValue":
|
|
3285
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => l.$emit("update:modelValue", u))
|
|
3284
3286
|
}, {
|
|
3285
3287
|
after: f(() => [
|
|
3286
3288
|
V("div", null, k(t.value || "Senhas conferem"), 1),
|
|
@@ -3289,7 +3291,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3289
3291
|
_: 3
|
|
3290
3292
|
}, 8, ["model-value"]));
|
|
3291
3293
|
}
|
|
3292
|
-
}),
|
|
3294
|
+
}), Dl = (d, r = []) => ({
|
|
3293
3295
|
path: "/user",
|
|
3294
3296
|
name: "/builtin:user",
|
|
3295
3297
|
component: d,
|
|
@@ -3307,7 +3309,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3307
3309
|
{
|
|
3308
3310
|
path: "signin",
|
|
3309
3311
|
name: "/user/signin",
|
|
3310
|
-
component: () => import("./signin-
|
|
3312
|
+
component: () => import("./signin-69462b08.js"),
|
|
3311
3313
|
meta: {
|
|
3312
3314
|
title: "Autenticação"
|
|
3313
3315
|
}
|
|
@@ -3315,7 +3317,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3315
3317
|
{
|
|
3316
3318
|
path: "signup",
|
|
3317
3319
|
name: "/user/signup",
|
|
3318
|
-
component: () => import("./signup-
|
|
3320
|
+
component: () => import("./signup-85beefa8.js"),
|
|
3319
3321
|
meta: {
|
|
3320
3322
|
title: "Registro"
|
|
3321
3323
|
}
|
|
@@ -3323,13 +3325,13 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3323
3325
|
{
|
|
3324
3326
|
path: "activation",
|
|
3325
3327
|
name: "/user/activation",
|
|
3326
|
-
component: () => import("./activation-
|
|
3328
|
+
component: () => import("./activation-9003ac87.js"),
|
|
3327
3329
|
meta: {
|
|
3328
3330
|
title: "Ativação"
|
|
3329
3331
|
}
|
|
3330
3332
|
}
|
|
3331
3333
|
])
|
|
3332
|
-
}),
|
|
3334
|
+
}), Hl = (d, r = []) => ({
|
|
3333
3335
|
path: "/dashboard",
|
|
3334
3336
|
name: "/builtin:dashboard",
|
|
3335
3337
|
component: d,
|
|
@@ -3345,8 +3347,8 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3345
3347
|
name: "/dashboard/crud",
|
|
3346
3348
|
props: !0,
|
|
3347
3349
|
components: {
|
|
3348
|
-
default: () => import("./index-
|
|
3349
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3350
|
+
default: () => import("./index-f5d58bec.js"),
|
|
3351
|
+
topbar: () => Promise.resolve().then(() => wl)
|
|
3350
3352
|
},
|
|
3351
3353
|
meta: {
|
|
3352
3354
|
title: "%viewTitle%"
|
|
@@ -3357,7 +3359,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3357
3359
|
name: "/dashboard/crud/:id",
|
|
3358
3360
|
props: !0,
|
|
3359
3361
|
components: {
|
|
3360
|
-
default: () => import("./_id_-
|
|
3362
|
+
default: () => import("./_id_-e914392e.js")
|
|
3361
3363
|
},
|
|
3362
3364
|
meta: {
|
|
3363
3365
|
title: "%viewTitle%"
|
|
@@ -3375,7 +3377,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3375
3377
|
children: [
|
|
3376
3378
|
{
|
|
3377
3379
|
path: "profile",
|
|
3378
|
-
component: () => import("./index-
|
|
3380
|
+
component: () => import("./index-f497bcc3.js"),
|
|
3379
3381
|
meta: {
|
|
3380
3382
|
title: "Meu perfil",
|
|
3381
3383
|
icon: "user-square"
|
|
@@ -3384,7 +3386,7 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3384
3386
|
{
|
|
3385
3387
|
path: "changepass",
|
|
3386
3388
|
name: "/dashboard/user/changepass",
|
|
3387
|
-
component: () => import("./index-
|
|
3389
|
+
component: () => import("./index-c1378bc0.js"),
|
|
3388
3390
|
meta: {
|
|
3389
3391
|
title: "Mudar senha",
|
|
3390
3392
|
icon: "lock"
|
|
@@ -3396,33 +3398,33 @@ const Il = /* @__PURE__ */ X(Ol, [["__scopeId", "data-v-326eee9d"]]), Al = /* @_
|
|
|
3396
3398
|
});
|
|
3397
3399
|
export {
|
|
3398
3400
|
Ge as A,
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3401
|
+
Cl as B,
|
|
3402
|
+
al as C,
|
|
3403
|
+
rl as D,
|
|
3404
|
+
Bl as E,
|
|
3405
|
+
Dl as F,
|
|
3406
|
+
Hl as G,
|
|
3407
|
+
El as _,
|
|
3406
3408
|
re as a,
|
|
3407
3409
|
Z as b,
|
|
3408
3410
|
Gn as c,
|
|
3409
|
-
|
|
3411
|
+
Fl as d,
|
|
3410
3412
|
oa as e,
|
|
3411
3413
|
Ue as f,
|
|
3412
|
-
|
|
3414
|
+
Ul as g,
|
|
3413
3415
|
Be as h,
|
|
3414
3416
|
X as i,
|
|
3415
|
-
|
|
3417
|
+
Ml as j,
|
|
3416
3418
|
be as k,
|
|
3417
3419
|
fe as l,
|
|
3418
3420
|
_n as m,
|
|
3419
3421
|
Oe as n,
|
|
3420
|
-
|
|
3422
|
+
Ha as o,
|
|
3421
3423
|
bn as p,
|
|
3422
|
-
|
|
3424
|
+
ql as q,
|
|
3423
3425
|
Fn as r,
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
+
Ua as s,
|
|
3427
|
+
Vl as t,
|
|
3426
3428
|
bo as u,
|
|
3427
3429
|
Ie as v,
|
|
3428
3430
|
Xn as w,
|