@aeria-ui/ui 0.0.95 → 0.0.97
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_-e62f8939.js → _id_-28e2ff98.js} +1 -1
- package/dist/{activation-21234686.js → activation-01e847e4.js} +1 -1
- package/dist/components/aeria-panel/aeria-panel.vue.d.ts +0 -1
- package/dist/{index-d838adbc.js → index-3e560edd.js} +1 -1
- package/dist/{index-fd38f589.js → index-62fbc6ae.js} +998 -998
- package/dist/{index-1395aded.js → index-7e4faf19.js} +1 -1
- package/dist/{index-c6c46429.js → index-bdc0133c.js} +1 -1
- package/dist/less/polyfill.less +0 -4
- package/dist/{signin-cc8074a5.js → signin-131cef9c.js} +1 -1
- package/dist/{signup-aa8ebb88.js → signup-037f2f37.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as
|
|
1
|
+
import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as i, normalizeClass as X, Fragment as x, renderList as Q, withDirectives as P, toDisplayString as V, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as C, inject as _e, computed as G, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as f, resolveDynamicComponent as he, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as wt, onUnmounted as Bt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
|
|
2
2
|
import { t as R, useI18n as Lt } from "@aeria-ui/i18n";
|
|
3
3
|
import { arraysIntersect as gt, deepClone as Ce, getReferenceProperty as me, convertConditionToQuery as zt, freshItem as qt, isRequired as Mt, evaluateCondition as We, deepMerge as qe } from "@aeriajs/common";
|
|
4
4
|
import { useStore as re, getStoreId as Me, useParentStore as De, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
|
|
@@ -14,57 +14,57 @@ const Yt = ["onClick"], Jt = { key: 0 }, Zt = {
|
|
|
14
14
|
noPadding: { type: Boolean },
|
|
15
15
|
headers: {}
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
17
|
+
setup(d) {
|
|
18
|
+
const u = J(null), a = (t) => typeof t == "string" ? t : t.title;
|
|
19
19
|
return (t, o) => {
|
|
20
|
-
const
|
|
21
|
-
return n(),
|
|
20
|
+
const c = te("clickable");
|
|
21
|
+
return n(), i("div", {
|
|
22
22
|
class: X({
|
|
23
23
|
accordion: !0,
|
|
24
24
|
"accordion--padded": !t.noPadding
|
|
25
25
|
})
|
|
26
26
|
}, [
|
|
27
|
-
(n(!0),
|
|
28
|
-
key:
|
|
27
|
+
(n(!0), i(x, null, Q(Object.keys(t.$slots).filter((r) => r !== "default"), (r, _) => (n(), i("div", {
|
|
28
|
+
key: r,
|
|
29
29
|
class: "accordion__slot"
|
|
30
30
|
}, [
|
|
31
|
-
P((n(),
|
|
31
|
+
P((n(), i("div", {
|
|
32
32
|
class: "accordion__header",
|
|
33
|
-
onClick: (p) =>
|
|
33
|
+
onClick: (p) => u.value === r ? u.value = null : u.value = r
|
|
34
34
|
}, [
|
|
35
|
-
t.enumerate ? (n(),
|
|
36
|
-
|
|
35
|
+
t.enumerate ? (n(), i("span", Jt, V(_ + 1) + ". ", 1)) : y("", !0),
|
|
36
|
+
D(" " + V(t.headers[r] ? a(t.headers[r]) : e(R)(r)), 1)
|
|
37
37
|
], 8, Yt)), [
|
|
38
|
-
[
|
|
38
|
+
[c]
|
|
39
39
|
]),
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
u.value === r ? (n(), i("div", Zt, [
|
|
41
|
+
C(t.$slots, r, {}, void 0, !0)
|
|
42
42
|
])) : y("", !0)
|
|
43
43
|
]))), 128))
|
|
44
44
|
], 2);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
const W = (
|
|
49
|
-
const
|
|
50
|
-
for (const [t, o] of
|
|
51
|
-
|
|
52
|
-
return
|
|
48
|
+
const W = (d, u) => {
|
|
49
|
+
const a = d.__vccOpts || d;
|
|
50
|
+
for (const [t, o] of u)
|
|
51
|
+
a[t] = o;
|
|
52
|
+
return a;
|
|
53
53
|
}, zl = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-3ea933d4"]]), Nt = /* @__PURE__ */ U({
|
|
54
54
|
__name: "aeria-badge",
|
|
55
55
|
props: {
|
|
56
56
|
large: { type: Boolean },
|
|
57
57
|
alt: { type: Boolean }
|
|
58
58
|
},
|
|
59
|
-
setup(
|
|
60
|
-
return (
|
|
59
|
+
setup(d) {
|
|
60
|
+
return (u, a) => (n(), i("div", {
|
|
61
61
|
class: X(`
|
|
62
62
|
badge
|
|
63
|
-
${
|
|
64
|
-
${
|
|
63
|
+
${u.large && "badge--large"}
|
|
64
|
+
${u.alt && "badge--alt"}
|
|
65
65
|
`)
|
|
66
66
|
}, [
|
|
67
|
-
|
|
67
|
+
C(u.$slots, "default", {}, void 0, !0)
|
|
68
68
|
], 2));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -74,18 +74,18 @@ const $e = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-47f92648"]]), xt = /* @_
|
|
|
74
74
|
disabled: { type: Boolean }
|
|
75
75
|
},
|
|
76
76
|
emits: ["click"],
|
|
77
|
-
setup(
|
|
78
|
-
const
|
|
79
|
-
|
|
77
|
+
setup(d, { emit: u }) {
|
|
78
|
+
const a = d, t = u, o = (c) => {
|
|
79
|
+
a.disabled || t("click", c);
|
|
80
80
|
};
|
|
81
|
-
return (
|
|
81
|
+
return (c, r) => (n(), i("button", {
|
|
82
82
|
class: X(`
|
|
83
83
|
barebutton
|
|
84
|
-
barebutton--${
|
|
84
|
+
barebutton--${c.disabled ? "disabled" : "enabled"}
|
|
85
85
|
`),
|
|
86
86
|
onClick: o
|
|
87
87
|
}, [
|
|
88
|
-
|
|
88
|
+
C(c.$slots, "default", {}, void 0, !0)
|
|
89
89
|
], 2));
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -103,15 +103,15 @@ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["hre
|
|
|
103
103
|
iconRight: { type: Boolean },
|
|
104
104
|
active: { type: Boolean }
|
|
105
105
|
},
|
|
106
|
-
setup(
|
|
107
|
-
const
|
|
106
|
+
setup(d) {
|
|
107
|
+
const u = d, a = typeof u.reactive == "boolean" ? u.reactive : _e("iconReactive", !1), t = G(() => {
|
|
108
108
|
var o;
|
|
109
|
-
return (o =
|
|
109
|
+
return (o = u.icon) != null && o.includes(":") ? u.icon : `regular:${u.icon}`;
|
|
110
110
|
});
|
|
111
|
-
return (o,
|
|
111
|
+
return (o, c) => (n(), i("a", {
|
|
112
112
|
class: X(`
|
|
113
113
|
icon
|
|
114
|
-
${e(
|
|
114
|
+
${e(a) && "icon--reactive"}
|
|
115
115
|
${o.active && "icon--active"}
|
|
116
116
|
${o.$slots.default ? "icon--centered" : "icon--standalone"}
|
|
117
117
|
`)
|
|
@@ -123,7 +123,7 @@ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["hre
|
|
|
123
123
|
${o.iconRight && "icon__icon--right"}
|
|
124
124
|
`)
|
|
125
125
|
}, [
|
|
126
|
-
(n(),
|
|
126
|
+
(n(), i("svg", E({
|
|
127
127
|
width: "24",
|
|
128
128
|
height: "24",
|
|
129
129
|
viewBox: "0 0 256 256",
|
|
@@ -136,8 +136,8 @@ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["hre
|
|
|
136
136
|
}, null, 8, en)
|
|
137
137
|
], 16))
|
|
138
138
|
], 2),
|
|
139
|
-
o.$slots.default ? (n(),
|
|
140
|
-
|
|
139
|
+
o.$slots.default ? (n(), i("div", tn, [
|
|
140
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
141
141
|
])) : y("", !0)
|
|
142
142
|
], 2));
|
|
143
143
|
}
|
|
@@ -156,38 +156,38 @@ const Z = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-6d36de33"]]), on = { clas
|
|
|
156
156
|
disabled: { type: Boolean },
|
|
157
157
|
loading: { type: Boolean }
|
|
158
158
|
},
|
|
159
|
-
setup(
|
|
160
|
-
const
|
|
159
|
+
setup(d) {
|
|
160
|
+
const u = d, a = _e("buttonVariant", u.variant) || "primary", t = (() => {
|
|
161
161
|
switch (!0) {
|
|
162
|
-
case
|
|
162
|
+
case u.small:
|
|
163
163
|
return "small";
|
|
164
|
-
case
|
|
164
|
+
case u.large:
|
|
165
165
|
return "large";
|
|
166
166
|
}
|
|
167
|
-
return _e("buttonSize",
|
|
167
|
+
return _e("buttonSize", u.size) || "medium";
|
|
168
168
|
})();
|
|
169
|
-
return (o,
|
|
169
|
+
return (o, c) => (n(), k(ve, {
|
|
170
170
|
class: X(`
|
|
171
171
|
button
|
|
172
|
-
button--${e(
|
|
172
|
+
button--${e(a)}
|
|
173
173
|
button--${e(t)}
|
|
174
174
|
${o.loading && "button--loading"}
|
|
175
175
|
`),
|
|
176
176
|
disabled: o.disabled
|
|
177
177
|
}, {
|
|
178
|
-
default:
|
|
178
|
+
default: f(() => [
|
|
179
179
|
o.icon ? (n(), k(Z, {
|
|
180
180
|
key: 0,
|
|
181
181
|
icon: o.icon
|
|
182
182
|
}, {
|
|
183
|
-
default:
|
|
183
|
+
default: f(() => [
|
|
184
184
|
A("div", on, [
|
|
185
|
-
|
|
185
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
186
186
|
])
|
|
187
187
|
]),
|
|
188
188
|
_: 3
|
|
189
|
-
}, 8, ["icon"])) : (n(),
|
|
190
|
-
|
|
189
|
+
}, 8, ["icon"])) : (n(), i("div", an, [
|
|
190
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
191
191
|
]))
|
|
192
192
|
]),
|
|
193
193
|
_: 3
|
|
@@ -200,26 +200,26 @@ const ie = /* @__PURE__ */ W(ln, [["__scopeId", "data-v-c328251b"]]), sn = { cla
|
|
|
200
200
|
inactive: { type: Boolean },
|
|
201
201
|
horizontal: { type: Boolean }
|
|
202
202
|
},
|
|
203
|
-
setup(
|
|
204
|
-
return (
|
|
203
|
+
setup(d) {
|
|
204
|
+
return (u, a) => (n(), i("div", {
|
|
205
205
|
class: X(`
|
|
206
206
|
card
|
|
207
|
-
${
|
|
208
|
-
${
|
|
207
|
+
${u.inactive && "card--inactive"}
|
|
208
|
+
${u.horizontal && "card--horizontal"}
|
|
209
209
|
`)
|
|
210
210
|
}, [
|
|
211
211
|
A("div", sn, [
|
|
212
|
-
|
|
212
|
+
C(u.$slots, "default", {}, void 0, !0)
|
|
213
213
|
]),
|
|
214
214
|
A("div", rn, [
|
|
215
215
|
A("div", un, [
|
|
216
216
|
A("div", null, [
|
|
217
|
-
|
|
217
|
+
C(u.$slots, "footer", {}, void 0, !0)
|
|
218
218
|
]),
|
|
219
|
-
|
|
219
|
+
u.$slots.actions ? C(u.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
|
|
220
220
|
]),
|
|
221
221
|
A("div", cn, [
|
|
222
|
-
|
|
222
|
+
C(u.$slots, "badge", {}, void 0, !0)
|
|
223
223
|
])
|
|
224
224
|
])
|
|
225
225
|
], 2));
|
|
@@ -236,7 +236,6 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
236
236
|
title: {},
|
|
237
237
|
float: { type: Boolean },
|
|
238
238
|
fixedRight: { type: Boolean },
|
|
239
|
-
floating: { type: Boolean },
|
|
240
239
|
loading: { type: Boolean },
|
|
241
240
|
bordered: { type: Boolean },
|
|
242
241
|
overlay: { type: Boolean },
|
|
@@ -251,115 +250,116 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
251
250
|
overlayLayer: {}
|
|
252
251
|
},
|
|
253
252
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
254
|
-
setup(
|
|
255
|
-
const
|
|
253
|
+
setup(d, { emit: u }) {
|
|
254
|
+
const a = d, t = u, o = J(a.collapsed), c = J(null), { reachedEnd: r } = Pe(c), _ = () => {
|
|
256
255
|
t("update:modelValue", !1), t("close");
|
|
257
|
-
},
|
|
256
|
+
}, p = () => {
|
|
258
257
|
t("overlayClick");
|
|
259
|
-
},
|
|
260
|
-
t("update:collapsed",
|
|
258
|
+
}, b = (s) => {
|
|
259
|
+
t("update:collapsed", s), o.value = s;
|
|
261
260
|
};
|
|
262
|
-
return (
|
|
263
|
-
const
|
|
264
|
-
return
|
|
261
|
+
return (s, l) => {
|
|
262
|
+
const w = te("clickable"), v = te("loading"), $ = te("overlay");
|
|
263
|
+
return s.modelValue ? P((n(), i("div", {
|
|
265
264
|
key: 0,
|
|
266
265
|
class: X(`
|
|
267
266
|
panel
|
|
268
|
-
${
|
|
267
|
+
${s.fixedRight && "panel--fixed"}
|
|
269
268
|
`)
|
|
270
269
|
}, [
|
|
271
270
|
(n(), k(he(
|
|
272
|
-
|
|
271
|
+
s.float || s.fixedRight ? "dialog" : "div"
|
|
273
272
|
), {
|
|
274
273
|
"data-component": "panel",
|
|
275
274
|
class: X(`
|
|
276
275
|
aeria-surface
|
|
277
276
|
panel__content
|
|
278
|
-
${
|
|
279
|
-
${
|
|
280
|
-
${
|
|
281
|
-
${
|
|
282
|
-
${
|
|
283
|
-
${
|
|
277
|
+
${s.float && "panel__content--float"}
|
|
278
|
+
${s.bordered && "panel__content--bordered"}
|
|
279
|
+
${s.fixedRight && "panel__content--fixed-right"}
|
|
280
|
+
${s.transparent && "panel__content--transparent"}
|
|
281
|
+
${s.transparentMobile && "panel__content--transparent-mobile"}
|
|
282
|
+
${s.outerHeader && "panel__content--outer-header"}
|
|
284
283
|
`),
|
|
285
|
-
onClick:
|
|
284
|
+
onClick: l[2] || (l[2] = (S) => S.stopPropagation())
|
|
286
285
|
}, {
|
|
287
|
-
default:
|
|
288
|
-
|
|
286
|
+
default: f(() => [
|
|
287
|
+
s.$slots.header || s.title ? (n(), i("div", {
|
|
289
288
|
key: 0,
|
|
290
289
|
class: X(`
|
|
291
290
|
panel__header
|
|
292
|
-
${
|
|
293
|
-
${
|
|
291
|
+
${o.value && "panel__header--collapsed"}
|
|
292
|
+
${s.outerHeader && "panel__header--outer"}
|
|
294
293
|
`)
|
|
295
294
|
}, [
|
|
296
295
|
A("div", _n, [
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
296
|
+
s.$slots.header ? C(s.$slots, "header", { key: 0 }, void 0, !0) : s.title ? (n(), i("div", mn, V(s.title), 1)) : y("", !0),
|
|
297
|
+
s.$slots.extra ? (n(), i("div", fn, [
|
|
298
|
+
C(s.$slots, "extra", {}, void 0, !0)
|
|
300
299
|
])) : y("", !0)
|
|
301
300
|
]),
|
|
302
|
-
|
|
301
|
+
s.collapsible && o.value ? P((n(), k(Z, {
|
|
303
302
|
key: 0,
|
|
304
303
|
reactive: "",
|
|
305
304
|
icon: "plus",
|
|
306
|
-
onClick:
|
|
305
|
+
onClick: l[0] || (l[0] = (S) => b(!o.value))
|
|
307
306
|
}, null, 512)), [
|
|
308
|
-
[
|
|
309
|
-
]) :
|
|
307
|
+
[w]
|
|
308
|
+
]) : s.collapsible && !o.value ? P((n(), k(Z, {
|
|
310
309
|
key: 1,
|
|
311
310
|
reactive: "",
|
|
312
311
|
icon: "minus",
|
|
313
|
-
onClick:
|
|
312
|
+
onClick: l[1] || (l[1] = (S) => b(!o.value))
|
|
314
313
|
}, null, 512)), [
|
|
315
|
-
[
|
|
316
|
-
]) :
|
|
314
|
+
[w]
|
|
315
|
+
]) : s.closeHint ? P((n(), k(Z, {
|
|
317
316
|
key: 2,
|
|
318
317
|
reactive: "",
|
|
319
318
|
icon: "x",
|
|
320
|
-
onClick:
|
|
319
|
+
onClick: _
|
|
321
320
|
}, null, 512)), [
|
|
322
|
-
[
|
|
321
|
+
[w]
|
|
323
322
|
]) : y("", !0)
|
|
324
323
|
], 2)) : y("", !0),
|
|
325
|
-
|
|
324
|
+
o.value ? y("", !0) : P((n(), i("div", {
|
|
326
325
|
key: 1,
|
|
327
326
|
ref_key: "body",
|
|
328
|
-
ref:
|
|
327
|
+
ref: c,
|
|
328
|
+
tabindex: "0",
|
|
329
329
|
class: X(`
|
|
330
330
|
panel__body
|
|
331
|
-
${
|
|
331
|
+
${s.fill || "panel__body--padded"}
|
|
332
332
|
`)
|
|
333
333
|
}, [
|
|
334
|
-
|
|
334
|
+
C(s.$slots, "default", {}, void 0, !0)
|
|
335
335
|
], 2)), [
|
|
336
|
-
[
|
|
336
|
+
[v, s.loading]
|
|
337
337
|
]),
|
|
338
|
-
|
|
338
|
+
s.$slots.footer ? (n(), i("div", {
|
|
339
339
|
key: 2,
|
|
340
340
|
class: X(`
|
|
341
341
|
panel__footer
|
|
342
|
-
${
|
|
343
|
-
${e(
|
|
342
|
+
${s.fillFooter || "panel__footer--padded"}
|
|
343
|
+
${e(r) || "panel__footer--shadowed"}
|
|
344
344
|
`)
|
|
345
345
|
}, [
|
|
346
|
-
|
|
346
|
+
C(s.$slots, "footer", {}, void 0, !0)
|
|
347
347
|
], 2)) : y("", !0)
|
|
348
348
|
]),
|
|
349
349
|
_: 3
|
|
350
350
|
}, 8, ["class"]))
|
|
351
351
|
], 2)), [
|
|
352
|
-
[
|
|
353
|
-
condition:
|
|
354
|
-
invisible:
|
|
355
|
-
click:
|
|
356
|
-
layer:
|
|
352
|
+
[$, {
|
|
353
|
+
condition: s.overlay || s.fixedRight || s.float,
|
|
354
|
+
invisible: s.invisibleOverlay,
|
|
355
|
+
click: p,
|
|
356
|
+
layer: s.overlayLayer || (s.float ? 60 : s.fixedRight ? 50 : 0)
|
|
357
357
|
}]
|
|
358
358
|
]) : y("", !0);
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
|
-
const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-
|
|
362
|
+
const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-4271b4f1"]]), yn = { class: "content__body" }, hn = {
|
|
363
363
|
key: 0,
|
|
364
364
|
class: "content__section"
|
|
365
365
|
}, bn = { class: "content__item" }, $n = /* @__PURE__ */ U({
|
|
@@ -370,40 +370,40 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
|
|
|
370
370
|
overlayLayer: {}
|
|
371
371
|
},
|
|
372
372
|
emits: ["actionClick"],
|
|
373
|
-
setup(
|
|
373
|
+
setup(d, { emit: u }) {
|
|
374
374
|
It((p) => ({
|
|
375
375
|
"036683e2": _.value.x,
|
|
376
376
|
"036683e0": _.value.y
|
|
377
377
|
}));
|
|
378
|
-
const
|
|
378
|
+
const a = u, t = J(null), o = J(!1), c = (p) => p == null ? void 0 : p.filter((b) => {
|
|
379
379
|
if (b.roles) {
|
|
380
|
-
const
|
|
381
|
-
return gt(b.roles,
|
|
380
|
+
const s = re("user");
|
|
381
|
+
return gt(b.roles, s.currentUser.roles);
|
|
382
382
|
}
|
|
383
383
|
return !0;
|
|
384
|
-
}),
|
|
385
|
-
const
|
|
386
|
-
p.click && p.click(
|
|
384
|
+
}), r = (p, b) => {
|
|
385
|
+
const s = b && Ce(b);
|
|
386
|
+
p.click && p.click(s), a("actionClick", {
|
|
387
387
|
action: p,
|
|
388
|
-
subject:
|
|
388
|
+
subject: s
|
|
389
389
|
}), o.value = !1;
|
|
390
|
-
}, _ =
|
|
390
|
+
}, _ = G(() => {
|
|
391
391
|
if (!t.value)
|
|
392
392
|
return {
|
|
393
393
|
x: 0,
|
|
394
394
|
y: 0
|
|
395
395
|
};
|
|
396
|
-
const p = t.value.getBoundingClientRect().top, b = t.value.getBoundingClientRect().left,
|
|
396
|
+
const p = t.value.getBoundingClientRect().top, b = t.value.getBoundingClientRect().left, s = t.value.offsetHeight;
|
|
397
397
|
return {
|
|
398
398
|
_: o.value,
|
|
399
399
|
x: Math.floor(b) + "px",
|
|
400
|
-
y: Math.floor(p +
|
|
400
|
+
y: Math.floor(p + s) + "px"
|
|
401
401
|
};
|
|
402
402
|
});
|
|
403
403
|
return (p, b) => {
|
|
404
|
-
const
|
|
405
|
-
return n(),
|
|
406
|
-
Object.keys(p.$slots).some((
|
|
404
|
+
const s = te("overlay");
|
|
405
|
+
return n(), i(x, null, [
|
|
406
|
+
Object.keys(p.$slots).some((l) => l !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (n(), i("div", {
|
|
407
407
|
key: 0,
|
|
408
408
|
ref_key: "contextmenu",
|
|
409
409
|
ref: t,
|
|
@@ -411,9 +411,9 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
|
|
|
411
411
|
}, [
|
|
412
412
|
A("a", {
|
|
413
413
|
class: "contextmenu__trigger",
|
|
414
|
-
onClick: b[0] || (b[0] = (
|
|
414
|
+
onClick: b[0] || (b[0] = (l) => o.value = !0)
|
|
415
415
|
}, [
|
|
416
|
-
|
|
416
|
+
C(p.$slots, "default", de(ge({
|
|
417
417
|
visible: o.value
|
|
418
418
|
})), void 0, !0)
|
|
419
419
|
])
|
|
@@ -424,49 +424,49 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
|
|
|
424
424
|
}, [
|
|
425
425
|
P((n(), k(Ae, {
|
|
426
426
|
modelValue: o.value,
|
|
427
|
-
"onUpdate:modelValue": b[4] || (b[4] = (
|
|
427
|
+
"onUpdate:modelValue": b[4] || (b[4] = (l) => o.value = l),
|
|
428
428
|
fill: "",
|
|
429
429
|
bordered: "",
|
|
430
430
|
class: "content",
|
|
431
431
|
style: { "--panel-min-width": "0" }
|
|
432
432
|
}, {
|
|
433
|
-
default:
|
|
433
|
+
default: f(() => [
|
|
434
434
|
A("div", yn, [
|
|
435
|
-
p.$slots.header ? (n(),
|
|
436
|
-
|
|
435
|
+
p.$slots.header ? (n(), i("div", hn, [
|
|
436
|
+
C(p.$slots, "header", {}, void 0, !0)
|
|
437
437
|
])) : y("", !0),
|
|
438
|
-
Object.keys(p.$slots).filter((
|
|
438
|
+
Object.keys(p.$slots).filter((l) => !["default", "extra", "header"].includes(l)).length > 0 ? (n(), i("div", {
|
|
439
439
|
key: 1,
|
|
440
440
|
class: "content__section",
|
|
441
|
-
onClick: b[1] || (b[1] = (
|
|
441
|
+
onClick: b[1] || (b[1] = (l) => o.value = !1)
|
|
442
442
|
}, [
|
|
443
|
-
(n(!0),
|
|
443
|
+
(n(!0), i(x, null, Q(Object.keys(p.$slots).filter((l) => !["default", "extra", "header"].includes(l)), (l, w) => (n(), k(ve, {
|
|
444
444
|
key: `slot-${w}`,
|
|
445
445
|
class: "content__item content__item--reactive"
|
|
446
446
|
}, {
|
|
447
|
-
default:
|
|
448
|
-
|
|
447
|
+
default: f(() => [
|
|
448
|
+
C(p.$slots, l, {}, void 0, !0)
|
|
449
449
|
]),
|
|
450
450
|
_: 2
|
|
451
451
|
}, 1024))), 128))
|
|
452
452
|
])) : y("", !0),
|
|
453
|
-
p.actions !== void 0 && p.actions.length > 0 ? (n(),
|
|
453
|
+
p.actions !== void 0 && p.actions.length > 0 ? (n(), i("div", {
|
|
454
454
|
key: 2,
|
|
455
455
|
class: "content__section",
|
|
456
|
-
onClick: b[2] || (b[2] = (
|
|
456
|
+
onClick: b[2] || (b[2] = (l) => o.value = !1)
|
|
457
457
|
}, [
|
|
458
|
-
(n(!0),
|
|
458
|
+
(n(!0), i(x, null, Q(c(p.actions), (l, w) => (n(), k(ve, {
|
|
459
459
|
key: `action-${w}`,
|
|
460
460
|
class: "content__item content__item--reactive",
|
|
461
|
-
onClick: (
|
|
461
|
+
onClick: (v) => r(l, p.subject)
|
|
462
462
|
}, {
|
|
463
|
-
default:
|
|
464
|
-
|
|
463
|
+
default: f(() => [
|
|
464
|
+
l.icon ? (n(), k(Z, {
|
|
465
465
|
key: 0,
|
|
466
|
-
icon:
|
|
466
|
+
icon: l.icon
|
|
467
467
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
|
|
468
|
+
default: f(() => [
|
|
469
|
+
D(V(l.translate ? e(R)(l.label, { capitalize: !0 }) : l.label), 1)
|
|
470
470
|
]),
|
|
471
471
|
_: 2
|
|
472
472
|
}, 1032, ["icon"])) : y("", !0)
|
|
@@ -474,13 +474,13 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
|
|
|
474
474
|
_: 2
|
|
475
475
|
}, 1032, ["onClick"]))), 128))
|
|
476
476
|
])) : y("", !0),
|
|
477
|
-
p.$slots.extra ? (n(),
|
|
477
|
+
p.$slots.extra ? (n(), i("div", {
|
|
478
478
|
key: 3,
|
|
479
479
|
class: "content__section",
|
|
480
|
-
onClick: b[3] || (b[3] = (
|
|
480
|
+
onClick: b[3] || (b[3] = (l) => o.value = !1)
|
|
481
481
|
}, [
|
|
482
482
|
A("div", bn, [
|
|
483
|
-
p.$slots.extra ?
|
|
483
|
+
p.$slots.extra ? C(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
|
|
484
484
|
])
|
|
485
485
|
])) : y("", !0)
|
|
486
486
|
])
|
|
@@ -488,7 +488,7 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
|
|
|
488
488
|
_: 3
|
|
489
489
|
}, 8, ["modelValue"])), [
|
|
490
490
|
[
|
|
491
|
-
|
|
491
|
+
s,
|
|
492
492
|
{
|
|
493
493
|
layer: p.overlayLayer,
|
|
494
494
|
click: () => {
|
|
@@ -509,14 +509,14 @@ const Oe = /* @__PURE__ */ W($n, [["__scopeId", "data-v-a03802b2"]]), gn = { cla
|
|
|
509
509
|
props: {
|
|
510
510
|
where: { default: "top" }
|
|
511
511
|
},
|
|
512
|
-
setup(
|
|
513
|
-
const
|
|
514
|
-
return (t, o) => e(
|
|
512
|
+
setup(d) {
|
|
513
|
+
const u = Ue(), a = J(!1);
|
|
514
|
+
return (t, o) => e(u).md ? (n(), i("div", {
|
|
515
515
|
key: 0,
|
|
516
516
|
class: "info",
|
|
517
|
-
onMouseleave: o[1] || (o[1] = (
|
|
517
|
+
onMouseleave: o[1] || (o[1] = (c) => a.value = !1)
|
|
518
518
|
}, [
|
|
519
|
-
|
|
519
|
+
a.value ? (n(), i("div", {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: X(`
|
|
522
522
|
info__bubble
|
|
@@ -524,15 +524,15 @@ const Oe = /* @__PURE__ */ W($n, [["__scopeId", "data-v-a03802b2"]]), gn = { cla
|
|
|
524
524
|
`)
|
|
525
525
|
}, [
|
|
526
526
|
A("div", gn, [
|
|
527
|
-
|
|
527
|
+
C(t.$slots, "text", {}, void 0, !0)
|
|
528
528
|
])
|
|
529
529
|
], 2)) : y("", !0),
|
|
530
530
|
A("div", {
|
|
531
|
-
onMouseover: o[0] || (o[0] = (
|
|
531
|
+
onMouseover: o[0] || (o[0] = (c) => a.value = !0)
|
|
532
532
|
}, [
|
|
533
|
-
|
|
533
|
+
C(t.$slots, "default", {}, void 0, !0)
|
|
534
534
|
], 32)
|
|
535
|
-
], 32)) :
|
|
535
|
+
], 32)) : C(t.$slots, "default", { key: 1 }, void 0, !0);
|
|
536
536
|
}
|
|
537
537
|
});
|
|
538
538
|
const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { class: "input" }, On = {
|
|
@@ -556,10 +556,10 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
556
556
|
variant: {}
|
|
557
557
|
},
|
|
558
558
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
559
|
-
setup(
|
|
559
|
+
setup(d, { emit: u }) {
|
|
560
560
|
var ee;
|
|
561
|
-
const
|
|
562
|
-
name:
|
|
561
|
+
const a = d, t = u, o = a.property || {}, c = "icon" in o || "inputType" in o && o.inputType === "search", r = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !r && (a.readOnly || o.readOnly), b = (h) => (t("clipboardCopy", h), navigator.clipboard.writeText(h)), s = _e("inputVariant", a.variant) || "normal", l = Object.assign(Object.assign({}, a), {
|
|
562
|
+
name: a.propertyName,
|
|
563
563
|
readonly: p,
|
|
564
564
|
type: (() => {
|
|
565
565
|
if ("type" in o)
|
|
@@ -570,7 +570,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
570
570
|
}
|
|
571
571
|
if (o.inputType)
|
|
572
572
|
return o.inputType;
|
|
573
|
-
switch (typeof
|
|
573
|
+
switch (typeof a.modelValue) {
|
|
574
574
|
case "string":
|
|
575
575
|
return "text";
|
|
576
576
|
case "number":
|
|
@@ -579,10 +579,10 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
579
579
|
return "text";
|
|
580
580
|
}
|
|
581
581
|
})(),
|
|
582
|
-
placeholder: _ ? o.description ||
|
|
582
|
+
placeholder: _ ? o.description || a.propertyName : o.placeholder
|
|
583
583
|
});
|
|
584
|
-
"type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (
|
|
585
|
-
|
|
584
|
+
"type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (l.min = o.minimum), o.exclusiveMinimum && (l.min = o.exclusiveMinimum + 1), o.maximum && (l.max = o.maximum), o.exclusiveMaximum && (l.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (l.type = !r && o.format === "date-time" ? "datetime-local" : "date"), l.minlength = o.minLength, l.maxlength = o.maxLength)), l.type === "text" && r && (l.type = "search"), Xe(() => {
|
|
585
|
+
a.modelValue !== null && O(a.modelValue);
|
|
586
586
|
});
|
|
587
587
|
const w = (h) => {
|
|
588
588
|
try {
|
|
@@ -593,7 +593,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
593
593
|
F = new Date(h);
|
|
594
594
|
else
|
|
595
595
|
throw new Error();
|
|
596
|
-
switch (
|
|
596
|
+
switch (l.type) {
|
|
597
597
|
case "date":
|
|
598
598
|
return F.toISOString().slice(0, 10);
|
|
599
599
|
case "datetime-local":
|
|
@@ -604,14 +604,14 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
604
604
|
} catch {
|
|
605
605
|
return "";
|
|
606
606
|
}
|
|
607
|
-
},
|
|
608
|
-
ue(() =>
|
|
609
|
-
|
|
607
|
+
}, v = J(""), $ = ((ee = a.property) == null ? void 0 : ee.type) === "string" && a.property.mask ? Ft(a.property.mask) : null;
|
|
608
|
+
ue(() => a.modelValue, (h) => {
|
|
609
|
+
v.value = (() => {
|
|
610
610
|
if ($)
|
|
611
611
|
return h ? $.enmask(String(h), void 0, {
|
|
612
612
|
defaultValue: !0
|
|
613
613
|
}) : "";
|
|
614
|
-
switch (
|
|
614
|
+
switch (l.type) {
|
|
615
615
|
case "date":
|
|
616
616
|
case "datetime-local":
|
|
617
617
|
return w(h);
|
|
@@ -627,16 +627,16 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
627
627
|
}, {
|
|
628
628
|
immediate: !0
|
|
629
629
|
});
|
|
630
|
-
const
|
|
630
|
+
const S = (h) => {
|
|
631
631
|
var F;
|
|
632
|
-
return typeof
|
|
632
|
+
return typeof v.value == "string" && ((F = a.property) == null ? void 0 : F.type) === "string" && $ !== null ? (v.value = $.enmask(v.value, void 0, {
|
|
633
633
|
defaultValue: !0
|
|
634
|
-
}),
|
|
635
|
-
},
|
|
634
|
+
}), a.property.maskedValue === !0 ? v.value : $.unmask(v.value)) : h;
|
|
635
|
+
}, O = (h) => {
|
|
636
636
|
const F = (() => {
|
|
637
637
|
if (!h || typeof h != "string")
|
|
638
638
|
return h;
|
|
639
|
-
switch (
|
|
639
|
+
switch (l.type) {
|
|
640
640
|
case "number":
|
|
641
641
|
case "integer":
|
|
642
642
|
return Number(h);
|
|
@@ -644,57 +644,57 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
644
644
|
case "date-time":
|
|
645
645
|
return new Date(h);
|
|
646
646
|
default:
|
|
647
|
-
return
|
|
647
|
+
return S(h);
|
|
648
648
|
}
|
|
649
649
|
})();
|
|
650
650
|
t("input", F), t("update:modelValue", F);
|
|
651
651
|
}, Y = (h) => {
|
|
652
652
|
const F = h.target.value;
|
|
653
|
-
|
|
653
|
+
v.value = F, O(F);
|
|
654
654
|
};
|
|
655
655
|
return (h, F) => {
|
|
656
|
-
const le = te("focus"),
|
|
657
|
-
return n(),
|
|
658
|
-
e(_) ? y("", !0) : (n(),
|
|
659
|
-
h.$slots.default ?
|
|
656
|
+
const le = te("focus"), T = te("clickable");
|
|
657
|
+
return n(), i("label", Cn, [
|
|
658
|
+
e(_) ? y("", !0) : (n(), i("div", On, [
|
|
659
|
+
h.$slots.default ? C(h.$slots, "default", { key: 0 }, void 0, !0) : C(h.$slots, "description", { key: 1 }, void 0, !0)
|
|
660
660
|
])),
|
|
661
|
-
h.$slots.hint ? (n(),
|
|
662
|
-
|
|
661
|
+
h.$slots.hint ? (n(), i("div", In, [
|
|
662
|
+
C(h.$slots, "hint", {}, void 0, !0)
|
|
663
663
|
])) : y("", !0),
|
|
664
|
-
"element" in e(o) && e(o).element === "textarea" ? (n(),
|
|
664
|
+
"element" in e(o) && e(o).element === "textarea" ? (n(), i("div", {
|
|
665
665
|
key: 2,
|
|
666
666
|
class: X(`
|
|
667
667
|
input__container
|
|
668
668
|
input__container--textarea
|
|
669
|
-
input__container--${e(
|
|
669
|
+
input__container--${e(s)}
|
|
670
670
|
`)
|
|
671
671
|
}, [
|
|
672
672
|
P(A("textarea", {
|
|
673
|
-
placeholder: e(
|
|
674
|
-
readonly: e(
|
|
673
|
+
placeholder: e(l).placeholder,
|
|
674
|
+
readonly: e(l).readonly,
|
|
675
675
|
value: h.modelValue,
|
|
676
676
|
class: X(`
|
|
677
677
|
input__textarea
|
|
678
|
-
input__input--${e(
|
|
678
|
+
input__input--${e(s)}
|
|
679
679
|
`),
|
|
680
680
|
onInput: Y
|
|
681
681
|
}, null, 42, An), [
|
|
682
682
|
[le, e(o).focus]
|
|
683
683
|
])
|
|
684
|
-
], 2)) : (n(),
|
|
684
|
+
], 2)) : (n(), i("div", {
|
|
685
685
|
key: 3,
|
|
686
686
|
class: X(`
|
|
687
687
|
input__container
|
|
688
|
-
input__container--${e(
|
|
688
|
+
input__container--${e(s)}
|
|
689
689
|
`)
|
|
690
690
|
}, [
|
|
691
|
-
P(A("input", E(e(
|
|
692
|
-
value:
|
|
691
|
+
P(A("input", E(e(l), {
|
|
692
|
+
value: v.value,
|
|
693
693
|
"data-component": "input",
|
|
694
694
|
class: `
|
|
695
695
|
input__input
|
|
696
|
-
input__input--${e(
|
|
697
|
-
${e(
|
|
696
|
+
input__input--${e(s)}
|
|
697
|
+
${e(c) && "input__input--icon"}
|
|
698
698
|
${e(p) && "input__input--readOnly"}
|
|
699
699
|
`,
|
|
700
700
|
onInput: Y,
|
|
@@ -702,26 +702,26 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
702
702
|
}), null, 16, wn), [
|
|
703
703
|
[le, e(o).focus]
|
|
704
704
|
]),
|
|
705
|
-
e(
|
|
705
|
+
e(c) ? (n(), k(Z, {
|
|
706
706
|
key: 0,
|
|
707
707
|
icon: e(o).icon || "magnifying-glass",
|
|
708
708
|
class: X(`
|
|
709
709
|
input__icon
|
|
710
|
-
input__icon--${e(
|
|
710
|
+
input__icon--${e(s)}
|
|
711
711
|
`)
|
|
712
712
|
}, null, 8, ["icon", "class"])) : y("", !0),
|
|
713
|
-
e(p) ? (n(),
|
|
713
|
+
e(p) ? (n(), i("div", Bn, [
|
|
714
714
|
z(Vn, null, {
|
|
715
|
-
text:
|
|
716
|
-
|
|
715
|
+
text: f(() => [
|
|
716
|
+
D("Copiar")
|
|
717
717
|
]),
|
|
718
|
-
default:
|
|
718
|
+
default: f(() => [
|
|
719
719
|
P(z(Z, {
|
|
720
720
|
reactive: "",
|
|
721
721
|
icon: "clipboard",
|
|
722
722
|
onClick: F[1] || (F[1] = ze((g) => b(String(h.modelValue || "")), ["prevent"]))
|
|
723
723
|
}, null, 512), [
|
|
724
|
-
[
|
|
724
|
+
[T]
|
|
725
725
|
])
|
|
726
726
|
]),
|
|
727
727
|
_: 1
|
|
@@ -749,14 +749,14 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
|
|
|
749
749
|
noOutline: { type: Boolean }
|
|
750
750
|
},
|
|
751
751
|
emits: ["update:modelValue", "change"],
|
|
752
|
-
setup(
|
|
753
|
-
const
|
|
754
|
-
|
|
755
|
-
}, _ =
|
|
756
|
-
const
|
|
757
|
-
return
|
|
752
|
+
setup(d, { emit: u }) {
|
|
753
|
+
const a = d, t = u, o = J(null), c = a.property, r = (s) => {
|
|
754
|
+
a.booleanRef && (_.value = s), t("update:modelValue", (s == null ? void 0 : s._id) || s), t("change", (s == null ? void 0 : s._id) || s);
|
|
755
|
+
}, _ = a.booleanRef ? (() => {
|
|
756
|
+
const s = J(a.modelValue);
|
|
757
|
+
return G({
|
|
758
758
|
get: () => {
|
|
759
|
-
switch (
|
|
759
|
+
switch (s.value) {
|
|
760
760
|
case "true":
|
|
761
761
|
return !0;
|
|
762
762
|
case "false":
|
|
@@ -766,24 +766,24 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
|
|
|
766
766
|
}
|
|
767
767
|
},
|
|
768
768
|
set: (w) => {
|
|
769
|
-
|
|
769
|
+
s.value = w;
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
|
-
})() :
|
|
773
|
-
get: () =>
|
|
774
|
-
set:
|
|
775
|
-
}), p = (
|
|
776
|
-
return
|
|
772
|
+
})() : G({
|
|
773
|
+
get: () => a.modelValue,
|
|
774
|
+
set: r
|
|
775
|
+
}), p = (s) => Array.isArray(a.modelValue) ? a.modelValue.includes(s) : a.modelValue === s, b = G(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
|
|
776
|
+
return a.multiple && ue(() => a.modelValue, (s) => {
|
|
777
777
|
var w;
|
|
778
778
|
if (!o.value)
|
|
779
779
|
return;
|
|
780
|
-
const
|
|
781
|
-
|
|
782
|
-
}), (
|
|
780
|
+
const l = o.value.querySelector('option[data-selected="true"]');
|
|
781
|
+
l && l.removeAttribute("data-selected"), (w = o.value.querySelector(`option[value="${s}"]`)) == null || w.setAttribute("data-selected", "true");
|
|
782
|
+
}), (s, l) => s.readOnly ? (n(), k(ke, {
|
|
783
783
|
key: 1,
|
|
784
784
|
"read-only": "",
|
|
785
785
|
"model-value": e(_)
|
|
786
|
-
}, null, 8, ["model-value"])) : (n(),
|
|
786
|
+
}, null, 8, ["model-value"])) : (n(), i("select", E({ key: 0 }, {
|
|
787
787
|
size: b.value,
|
|
788
788
|
value: e(_)
|
|
789
789
|
}, {
|
|
@@ -792,24 +792,24 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
|
|
|
792
792
|
class: {
|
|
793
793
|
select: !0,
|
|
794
794
|
"select--multiple": !!b.value,
|
|
795
|
-
"select--outline": !
|
|
795
|
+
"select--outline": !s.noOutline
|
|
796
796
|
},
|
|
797
|
-
onChange:
|
|
797
|
+
onChange: l[0] || (l[0] = (w) => r(w.target.value))
|
|
798
798
|
}), [
|
|
799
|
-
e(
|
|
799
|
+
e(c) && e(c).icon ? (n(), k(Z, {
|
|
800
800
|
key: 0,
|
|
801
|
-
icon: e(
|
|
801
|
+
icon: e(c).icon
|
|
802
802
|
}, null, 8, ["icon"])) : y("", !0),
|
|
803
|
-
|
|
804
|
-
(n(!0),
|
|
805
|
-
var
|
|
806
|
-
return n(),
|
|
803
|
+
a.multiple ? y("", !0) : (n(), i("option", Tn, V(e(R)("none")), 1)),
|
|
804
|
+
(n(!0), i(x, null, Q(e(c) && "enum" in e(c) ? e(c).enum : [], (w) => {
|
|
805
|
+
var v;
|
|
806
|
+
return n(), i("option", {
|
|
807
807
|
key: w,
|
|
808
808
|
value: w,
|
|
809
809
|
"data-selected": p(w)
|
|
810
|
-
},
|
|
810
|
+
}, V((v = e(c)) != null && v.translate ? e(R)(w) : w), 9, jn);
|
|
811
811
|
}), 128)),
|
|
812
|
-
|
|
812
|
+
C(s.$slots, "default", {}, void 0, !0)
|
|
813
813
|
], 16));
|
|
814
814
|
}
|
|
815
815
|
});
|
|
@@ -823,100 +823,100 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
|
|
|
823
823
|
noSummary: { type: Boolean }
|
|
824
824
|
},
|
|
825
825
|
emits: ["paginate"],
|
|
826
|
-
setup(
|
|
827
|
-
const
|
|
828
|
-
get: () => Math.floor(
|
|
826
|
+
setup(d, { emit: u }) {
|
|
827
|
+
const a = d, t = u, o = G({
|
|
828
|
+
get: () => Math.floor(a.pagination.offset / a.pagination.limit),
|
|
829
829
|
set: (b) => {
|
|
830
|
-
|
|
830
|
+
a.pagination.offset = b * a.pagination.limit;
|
|
831
831
|
}
|
|
832
|
-
}),
|
|
833
|
-
get: () =>
|
|
832
|
+
}), c = G({
|
|
833
|
+
get: () => a.pagination.limit,
|
|
834
834
|
set: (b) => {
|
|
835
|
-
|
|
835
|
+
a.pagination.limit = Number(b);
|
|
836
836
|
}
|
|
837
|
-
}),
|
|
837
|
+
}), r = J(o.value ? o.value + 1 : 1), _ = G(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)), p = (b) => {
|
|
838
838
|
o.value = b === "previous" ? o.value - 1 : o.value + 1;
|
|
839
839
|
};
|
|
840
840
|
return ue([
|
|
841
841
|
o,
|
|
842
|
-
|
|
842
|
+
c
|
|
843
843
|
], ([b]) => {
|
|
844
|
-
|
|
845
|
-
offset: o.value *
|
|
846
|
-
limit:
|
|
844
|
+
r.value = b + 1, t("paginate", {
|
|
845
|
+
offset: o.value * c.value,
|
|
846
|
+
limit: c.value
|
|
847
847
|
});
|
|
848
|
-
}), (b,
|
|
848
|
+
}), (b, s) => (n(), i("div", Ln, [
|
|
849
849
|
A("div", zn, [
|
|
850
850
|
z(ve, {
|
|
851
851
|
disabled: o.value === 0,
|
|
852
|
-
onClick:
|
|
852
|
+
onClick: s[0] || (s[0] = (l) => o.value = 0)
|
|
853
853
|
}, {
|
|
854
|
-
default:
|
|
854
|
+
default: f(() => [
|
|
855
855
|
z(Z, { icon: "caret-double-left" })
|
|
856
856
|
]),
|
|
857
857
|
_: 1
|
|
858
858
|
}, 8, ["disabled"]),
|
|
859
859
|
z(ve, {
|
|
860
860
|
disabled: o.value === 0,
|
|
861
|
-
onClick:
|
|
861
|
+
onClick: s[1] || (s[1] = (l) => p("previous"))
|
|
862
862
|
}, {
|
|
863
|
-
default:
|
|
863
|
+
default: f(() => [
|
|
864
864
|
z(Z, { icon: "caret-left" })
|
|
865
865
|
]),
|
|
866
866
|
_: 1
|
|
867
867
|
}, 8, ["disabled"]),
|
|
868
868
|
z(ve, {
|
|
869
869
|
disabled: o.value === _.value - 1,
|
|
870
|
-
onClick:
|
|
870
|
+
onClick: s[2] || (s[2] = (l) => p("next"))
|
|
871
871
|
}, {
|
|
872
|
-
default:
|
|
872
|
+
default: f(() => [
|
|
873
873
|
z(Z, { icon: "caret-right" })
|
|
874
874
|
]),
|
|
875
875
|
_: 1
|
|
876
876
|
}, 8, ["disabled"]),
|
|
877
877
|
z(ve, {
|
|
878
878
|
disabled: o.value === _.value - 1,
|
|
879
|
-
onClick:
|
|
879
|
+
onClick: s[3] || (s[3] = (l) => o.value = _.value - 1)
|
|
880
880
|
}, {
|
|
881
|
-
default:
|
|
881
|
+
default: f(() => [
|
|
882
882
|
z(Z, { icon: "caret-double-right" })
|
|
883
883
|
]),
|
|
884
884
|
_: 1
|
|
885
885
|
}, 8, ["disabled"]),
|
|
886
886
|
z(Ne, {
|
|
887
|
-
modelValue:
|
|
888
|
-
"onUpdate:modelValue":
|
|
887
|
+
modelValue: c.value,
|
|
888
|
+
"onUpdate:modelValue": s[4] || (s[4] = (l) => c.value = l),
|
|
889
889
|
property: {
|
|
890
890
|
enum: [],
|
|
891
891
|
icon: "list"
|
|
892
892
|
},
|
|
893
893
|
class: "pagination__control"
|
|
894
894
|
}, {
|
|
895
|
-
default:
|
|
896
|
-
(n(!0),
|
|
897
|
-
key: `limit-${
|
|
898
|
-
value:
|
|
899
|
-
},
|
|
895
|
+
default: f(() => [
|
|
896
|
+
(n(!0), i(x, null, Q(e(Ut), (l) => (n(), i("option", {
|
|
897
|
+
key: `limit-${l}`,
|
|
898
|
+
value: l
|
|
899
|
+
}, V(l), 9, qn))), 128))
|
|
900
900
|
]),
|
|
901
901
|
_: 1
|
|
902
902
|
}, 8, ["modelValue"])
|
|
903
903
|
]),
|
|
904
|
-
b.noSummary ? y("", !0) : (n(),
|
|
905
|
-
|
|
904
|
+
b.noSummary ? y("", !0) : (n(), i("div", Mn, [
|
|
905
|
+
D(V(e(R)("Page")) + " ", 1),
|
|
906
906
|
(n(), k(ke, {
|
|
907
907
|
key: o.value,
|
|
908
|
-
modelValue:
|
|
909
|
-
"onUpdate:modelValue":
|
|
908
|
+
modelValue: r.value,
|
|
909
|
+
"onUpdate:modelValue": s[5] || (s[5] = (l) => r.value = l),
|
|
910
910
|
property: {
|
|
911
911
|
type: "number",
|
|
912
912
|
minimum: 1
|
|
913
913
|
},
|
|
914
914
|
style: { height: "100%" },
|
|
915
|
-
onChange:
|
|
916
|
-
o.value =
|
|
915
|
+
onChange: s[6] || (s[6] = (l) => {
|
|
916
|
+
o.value = r.value === 0 ? 0 : r.value - 1;
|
|
917
917
|
})
|
|
918
918
|
}, null, 8, ["modelValue"])),
|
|
919
|
-
A("span", null,
|
|
919
|
+
A("span", null, V(e(R)("of")) + " " + V(_.value), 1)
|
|
920
920
|
]))
|
|
921
921
|
]));
|
|
922
922
|
}
|
|
@@ -937,8 +937,8 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
|
|
|
937
937
|
variant: {}
|
|
938
938
|
},
|
|
939
939
|
emits: ["update:modelValue", "change"],
|
|
940
|
-
setup(
|
|
941
|
-
const
|
|
940
|
+
setup(d, { emit: u }) {
|
|
941
|
+
const a = d, t = a.property, o = a.readOnly || (t == null ? void 0 : t.readOnly), c = (() => {
|
|
942
942
|
if (t && "type" in t)
|
|
943
943
|
switch (t.type) {
|
|
944
944
|
case "array":
|
|
@@ -946,53 +946,53 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
|
|
|
946
946
|
return "checkbox";
|
|
947
947
|
}
|
|
948
948
|
return "radio";
|
|
949
|
-
})(),
|
|
949
|
+
})(), r = u, _ = a.value || !1, p = G({
|
|
950
950
|
get: () => {
|
|
951
|
-
var
|
|
951
|
+
var s;
|
|
952
952
|
if (t) {
|
|
953
953
|
if ("type" in t && t.type === "boolean")
|
|
954
|
-
return !!
|
|
954
|
+
return !!a.value;
|
|
955
955
|
if ("items" in t)
|
|
956
|
-
return (
|
|
956
|
+
return (s = a.modelValue) == null ? void 0 : s.includes(a.value);
|
|
957
957
|
}
|
|
958
|
-
return
|
|
958
|
+
return a.modelValue === a.value;
|
|
959
959
|
},
|
|
960
960
|
set: () => {
|
|
961
|
-
var
|
|
961
|
+
var s;
|
|
962
962
|
if (!o) {
|
|
963
963
|
if (t) {
|
|
964
964
|
if ("type" in t && t.type === "boolean") {
|
|
965
|
-
|
|
965
|
+
r("update:modelValue", !a.modelValue);
|
|
966
966
|
return;
|
|
967
967
|
}
|
|
968
968
|
if ("items" in t) {
|
|
969
|
-
if ((
|
|
970
|
-
|
|
969
|
+
if ((s = a.modelValue) != null && s.includes(_)) {
|
|
970
|
+
r("update:modelValue", a.modelValue.filter((l) => l !== _));
|
|
971
971
|
return;
|
|
972
972
|
}
|
|
973
|
-
|
|
973
|
+
r("update:modelValue", [_].concat(a.modelValue || []));
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
|
|
977
|
+
r("update:modelValue", a.value);
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
|
-
}), b = (
|
|
981
|
-
o &&
|
|
980
|
+
}), b = (s) => {
|
|
981
|
+
o && s.preventDefault();
|
|
982
982
|
};
|
|
983
|
-
return (
|
|
984
|
-
var
|
|
983
|
+
return (s, l) => {
|
|
984
|
+
var v, $;
|
|
985
985
|
const w = te("clickable");
|
|
986
|
-
return P((n(),
|
|
986
|
+
return P((n(), i("label", {
|
|
987
987
|
class: X(`
|
|
988
988
|
checkbox
|
|
989
989
|
${e(o) && "checkbox--readOnly"}
|
|
990
990
|
`)
|
|
991
991
|
}, [
|
|
992
992
|
P(A("input", E({
|
|
993
|
-
"onUpdate:modelValue":
|
|
993
|
+
"onUpdate:modelValue": l[0] || (l[0] = (S) => p.value = S)
|
|
994
994
|
}, {
|
|
995
|
-
type: e(
|
|
995
|
+
type: e(c),
|
|
996
996
|
readOnly: e(o),
|
|
997
997
|
checked: p.value
|
|
998
998
|
}, {
|
|
@@ -1003,13 +1003,13 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
|
|
|
1003
1003
|
]),
|
|
1004
1004
|
A("div", En, [
|
|
1005
1005
|
A("div", null, [
|
|
1006
|
-
|
|
1006
|
+
s.$slots.description ? C(s.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (n(), i("div", {
|
|
1007
1007
|
key: 1,
|
|
1008
|
-
innerHTML: (
|
|
1009
|
-
}, null, 8, Hn)) :
|
|
1008
|
+
innerHTML: (v = e(t)) != null && v.translate ? e(R)(e(_)) : e(_)
|
|
1009
|
+
}, null, 8, Hn)) : C(s.$slots, "default", { key: 2 }, void 0, !0)
|
|
1010
1010
|
]),
|
|
1011
1011
|
A("div", Dn, [
|
|
1012
|
-
|
|
1012
|
+
s.$slots.hint ? C(s.$slots, "hint", { key: 0 }, void 0, !0) : ($ = e(t)) != null && $.hint ? (n(), i("div", {
|
|
1013
1013
|
key: 1,
|
|
1014
1014
|
innerHTML: e(t).hint
|
|
1015
1015
|
}, null, 8, Qn)) : y("", !0)
|
|
@@ -1036,23 +1036,23 @@ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
|
|
|
1036
1036
|
columns: { default: 1 }
|
|
1037
1037
|
},
|
|
1038
1038
|
emits: ["update:modelValue"],
|
|
1039
|
-
setup(
|
|
1040
|
-
const
|
|
1039
|
+
setup(d, { emit: u }) {
|
|
1040
|
+
const a = d, t = u, o = a.readOnly || a.property.readOnly, c = "items" in a.property ? a.property.items.enum : a.property.enum, r = (_) => {
|
|
1041
1041
|
t("update:modelValue", _);
|
|
1042
1042
|
};
|
|
1043
1043
|
return $t(() => {
|
|
1044
|
-
|
|
1044
|
+
a.modelValue || t(
|
|
1045
1045
|
"update:modelValue",
|
|
1046
|
-
"items" in
|
|
1046
|
+
"items" in a.property ? [] : ""
|
|
1047
1047
|
);
|
|
1048
|
-
}), (_, p) => (n(),
|
|
1048
|
+
}), (_, p) => (n(), i("div", {
|
|
1049
1049
|
class: "options",
|
|
1050
1050
|
style: be(`
|
|
1051
1051
|
--columns: ${_.columns};
|
|
1052
1052
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1053
1053
|
`)
|
|
1054
1054
|
}, [
|
|
1055
|
-
(n(!0),
|
|
1055
|
+
(n(!0), i(x, null, Q(e(c), (b) => (n(), i("div", {
|
|
1056
1056
|
key: `option-${b}`,
|
|
1057
1057
|
class: "options__checkbox"
|
|
1058
1058
|
}, [
|
|
@@ -1062,13 +1062,13 @@ const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
|
|
|
1062
1062
|
property: _.property
|
|
1063
1063
|
}, {
|
|
1064
1064
|
"model-value": _.modelValue,
|
|
1065
|
-
"onUpdate:modelValue":
|
|
1065
|
+
"onUpdate:modelValue": r
|
|
1066
1066
|
}), null, 16, ["model-value"])
|
|
1067
1067
|
]))), 128))
|
|
1068
1068
|
], 4));
|
|
1069
1069
|
}
|
|
1070
1070
|
});
|
|
1071
|
-
const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (
|
|
1071
|
+
const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (d) => (Ye("data-v-0e3564b6"), d = d(), Je(), d), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ A("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
|
|
1072
1072
|
inheritAttrs: !1
|
|
1073
1073
|
}, to = /* @__PURE__ */ U({
|
|
1074
1074
|
...eo,
|
|
@@ -1082,21 +1082,21 @@ const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (c) =
|
|
|
1082
1082
|
readOnly: { type: Boolean }
|
|
1083
1083
|
},
|
|
1084
1084
|
emits: ["update:modelValue", "change"],
|
|
1085
|
-
setup(
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1085
|
+
setup(d, { emit: u }) {
|
|
1086
|
+
const a = d, t = u, o = a.property, c = a.readOnly || (o == null ? void 0 : o.readOnly), r = () => {
|
|
1087
|
+
c || (t("change", !a.modelValue), t("update:modelValue", !a.modelValue));
|
|
1088
1088
|
};
|
|
1089
1089
|
return (_, p) => {
|
|
1090
|
-
var
|
|
1090
|
+
var s;
|
|
1091
1091
|
const b = te("clickable");
|
|
1092
|
-
return n(),
|
|
1093
|
-
P((n(),
|
|
1092
|
+
return n(), i("div", Pn, [
|
|
1093
|
+
P((n(), i("a", {
|
|
1094
1094
|
class: X(`
|
|
1095
1095
|
switch
|
|
1096
1096
|
${_.modelValue && "switch--active"}
|
|
1097
|
-
${e(
|
|
1097
|
+
${e(c) && "switch--readOnly"}
|
|
1098
1098
|
`),
|
|
1099
|
-
onClick: ze(
|
|
1099
|
+
onClick: ze(r, ["stop"])
|
|
1100
1100
|
}, [
|
|
1101
1101
|
Nn,
|
|
1102
1102
|
A("div", {
|
|
@@ -1107,15 +1107,15 @@ const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (c) =
|
|
|
1107
1107
|
}, null, 2)
|
|
1108
1108
|
], 2)), [
|
|
1109
1109
|
[b, {
|
|
1110
|
-
blocked: e(
|
|
1110
|
+
blocked: e(c)
|
|
1111
1111
|
}]
|
|
1112
1112
|
]),
|
|
1113
|
-
_.$slots.default ?
|
|
1113
|
+
_.$slots.default ? C(_.$slots, "default", { key: 0 }, void 0, !0) : (n(), i("div", xn, V(((s = e(o)) == null ? void 0 : s.description) || _.propertyName), 1))
|
|
1114
1114
|
]);
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
1117
|
});
|
|
1118
|
-
const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (
|
|
1118
|
+
const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (d) => (Ye("data-v-153a2e0f"), d = d(), Je(), d), oo = { class: "picture" }, ao = {
|
|
1119
1119
|
key: 0,
|
|
1120
1120
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1121
1121
|
}, lo = ["src", "alt"], so = {
|
|
@@ -1152,38 +1152,38 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1152
1152
|
expandable: { type: Boolean },
|
|
1153
1153
|
meta: {}
|
|
1154
1154
|
},
|
|
1155
|
-
setup(
|
|
1156
|
-
const
|
|
1157
|
-
return (o,
|
|
1155
|
+
setup(d) {
|
|
1156
|
+
const u = d, a = G(() => u.fileId ? `${kt}/file/${u.fileId}/picture` : u.url || u.modelValue), t = J(!1);
|
|
1157
|
+
return (o, c) => {
|
|
1158
1158
|
var _;
|
|
1159
|
-
const
|
|
1160
|
-
return n(),
|
|
1161
|
-
|
|
1159
|
+
const r = te("overlay");
|
|
1160
|
+
return n(), i("figure", oo, [
|
|
1161
|
+
a.value ? (n(), k(Ke, {
|
|
1162
1162
|
key: 0,
|
|
1163
1163
|
to: "main"
|
|
1164
1164
|
}, [
|
|
1165
|
-
t.value ? P((n(),
|
|
1165
|
+
t.value ? P((n(), i("div", ao, [
|
|
1166
1166
|
A("img", {
|
|
1167
|
-
src:
|
|
1167
|
+
src: a.value,
|
|
1168
1168
|
alt: o.alt,
|
|
1169
1169
|
style: `
|
|
1170
1170
|
max-height: 60vh;
|
|
1171
1171
|
object-fit: contain;
|
|
1172
1172
|
`,
|
|
1173
|
-
onClick:
|
|
1173
|
+
onClick: c[0] || (c[0] = (p) => t.value = !0)
|
|
1174
1174
|
}, null, 8, lo),
|
|
1175
|
-
(_ = o.meta) != null && _.owner ? (n(),
|
|
1175
|
+
(_ = o.meta) != null && _.owner ? (n(), i("div", so, " Criado por " + V(o.meta.owner.name) + " em " + V(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : y("", !0)
|
|
1176
1176
|
])), [
|
|
1177
|
-
[
|
|
1177
|
+
[r, {
|
|
1178
1178
|
click: () => {
|
|
1179
1179
|
t.value = !1;
|
|
1180
1180
|
}
|
|
1181
1181
|
}]
|
|
1182
1182
|
]) : y("", !0)
|
|
1183
1183
|
])) : y("", !0),
|
|
1184
|
-
|
|
1184
|
+
a.value ? (n(), i("img", {
|
|
1185
1185
|
key: 1,
|
|
1186
|
-
src:
|
|
1186
|
+
src: a.value,
|
|
1187
1187
|
class: X(`
|
|
1188
1188
|
picture__image
|
|
1189
1189
|
${o.bordered && "picture__image--bordered"}
|
|
@@ -1194,10 +1194,10 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1194
1194
|
width: ${o.width || "100%"};
|
|
1195
1195
|
height: ${o.height || "100%"};
|
|
1196
1196
|
`),
|
|
1197
|
-
onClick:
|
|
1197
|
+
onClick: c[1] || (c[1] = () => {
|
|
1198
1198
|
o.expandable && (t.value = !0);
|
|
1199
1199
|
})
|
|
1200
|
-
}, null, 14, io)) : o.$slots.fallback ?
|
|
1200
|
+
}, null, 14, io)) : o.$slots.fallback ? C(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? C(o.$slots, "default", { key: 3 }, void 0, !0) : (n(), i("svg", {
|
|
1201
1201
|
key: 4,
|
|
1202
1202
|
class: X(["picture__background", `
|
|
1203
1203
|
${o.bordered && "picture__image--bordered"}
|
|
@@ -1211,8 +1211,8 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1211
1211
|
height: ${o.height || "100%"};
|
|
1212
1212
|
`)
|
|
1213
1213
|
}, co, 6)),
|
|
1214
|
-
o.$slots.caption ? (n(),
|
|
1215
|
-
|
|
1214
|
+
o.$slots.caption ? (n(), i("figcaption", po, [
|
|
1215
|
+
C(o.$slots, "caption", {}, void 0, !0)
|
|
1216
1216
|
])) : y("", !0)
|
|
1217
1217
|
]);
|
|
1218
1218
|
};
|
|
@@ -1240,28 +1240,28 @@ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
|
|
|
1240
1240
|
content: {}
|
|
1241
1241
|
},
|
|
1242
1242
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1243
|
-
setup(
|
|
1244
|
-
var
|
|
1245
|
-
const
|
|
1243
|
+
setup(d, { emit: u }) {
|
|
1244
|
+
var v;
|
|
1245
|
+
const a = d, t = u, c = Me() ? De() : null, r = J(((v = a.modelValue) == null ? void 0 : v.file) || null), _ = G(() => {
|
|
1246
1246
|
var $;
|
|
1247
|
-
return
|
|
1248
|
-
}), p =
|
|
1249
|
-
var $,
|
|
1250
|
-
return /^image\//.test(($ =
|
|
1251
|
-
}), b = ($) => new Promise((
|
|
1252
|
-
const
|
|
1253
|
-
|
|
1254
|
-
}),
|
|
1255
|
-
|
|
1256
|
-
},
|
|
1257
|
-
|
|
1258
|
-
const
|
|
1259
|
-
if (
|
|
1260
|
-
const { data: { error: Y, result: ee } } = await Et(`${kt}/${
|
|
1247
|
+
return r.value ? URL.createObjectURL(r.value) : ($ = a.modelValue) == null ? void 0 : $.link;
|
|
1248
|
+
}), p = G(() => {
|
|
1249
|
+
var $, S, O;
|
|
1250
|
+
return /^image\//.test(($ = a.modelValue) == null ? void 0 : $.type) && !((S = r.value) != null && S.type) || /^image\//.test((O = r.value) == null ? void 0 : O.type);
|
|
1251
|
+
}), b = ($) => new Promise((S) => {
|
|
1252
|
+
const O = new FileReader();
|
|
1253
|
+
O.onload = () => S(O.result), O.readAsArrayBuffer($);
|
|
1254
|
+
}), s = () => {
|
|
1255
|
+
a.modelValue.tempId && t("update:modelValue", null), r.value = null;
|
|
1256
|
+
}, l = async ($) => {
|
|
1257
|
+
r.value = $.target.files[0];
|
|
1258
|
+
const S = r.value, O = await b(S);
|
|
1259
|
+
if (c) {
|
|
1260
|
+
const { data: { error: Y, result: ee } } = await Et(`${kt}/${c.$id}/upload?name=${S.name}`, O, {
|
|
1261
1261
|
params: {
|
|
1262
1262
|
method: "POST",
|
|
1263
1263
|
headers: {
|
|
1264
|
-
"content-type":
|
|
1264
|
+
"content-type": S.type || "application/octet-stream",
|
|
1265
1265
|
"x-stream-request": "1"
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
@@ -1270,58 +1270,58 @@ const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
|
|
|
1270
1270
|
return;
|
|
1271
1271
|
t("update:modelValue", {
|
|
1272
1272
|
tempId: ee.tempId,
|
|
1273
|
-
file:
|
|
1273
|
+
file: S
|
|
1274
1274
|
});
|
|
1275
1275
|
} else
|
|
1276
|
-
t("update:modelValue",
|
|
1277
|
-
t("update:content",
|
|
1276
|
+
t("update:modelValue", S);
|
|
1277
|
+
t("update:content", O), t("change", O);
|
|
1278
1278
|
}, w = async () => {
|
|
1279
1279
|
t("update:modelValue", null);
|
|
1280
1280
|
};
|
|
1281
|
-
return ($,
|
|
1282
|
-
var
|
|
1283
|
-
return n(),
|
|
1284
|
-
|
|
1281
|
+
return ($, S) => {
|
|
1282
|
+
var O, Y, ee, h, F, le;
|
|
1283
|
+
return n(), i("div", mo, [
|
|
1284
|
+
r.value || (O = $.modelValue) != null && O._id ? (n(), i("div", fo, [
|
|
1285
1285
|
p.value ? (n(), k(He, {
|
|
1286
1286
|
key: 0,
|
|
1287
1287
|
modelValue: _.value,
|
|
1288
|
-
"onUpdate:modelValue":
|
|
1288
|
+
"onUpdate:modelValue": S[0] || (S[0] = (T) => _.value = T),
|
|
1289
1289
|
alt: "Image preview",
|
|
1290
1290
|
expandable: $.readOnly,
|
|
1291
1291
|
class: X(`
|
|
1292
1292
|
file__image
|
|
1293
|
-
${!e(
|
|
1293
|
+
${!e(c) || ((Y = $.modelValue) == null ? void 0 : Y._id) || "file__image--unsent"}
|
|
1294
1294
|
`)
|
|
1295
1295
|
}, null, 8, ["modelValue", "expandable", "class"])) : y("", !0),
|
|
1296
|
-
(ee = $.modelValue) != null && ee._id ? (n(),
|
|
1296
|
+
(ee = $.modelValue) != null && ee._id ? (n(), i("a", {
|
|
1297
1297
|
key: 1,
|
|
1298
1298
|
href: $.modelValue.download_link
|
|
1299
|
-
},
|
|
1299
|
+
}, V($.modelValue.name), 9, vo)) : y("", !0)
|
|
1300
1300
|
])) : y("", !0),
|
|
1301
|
-
$.readOnly ? y("", !0) : (n(),
|
|
1301
|
+
$.readOnly ? y("", !0) : (n(), i("div", yo, [
|
|
1302
1302
|
A("input", {
|
|
1303
1303
|
ref: "file",
|
|
1304
1304
|
type: "file",
|
|
1305
1305
|
accept: (F = (h = $.property) == null ? void 0 : h.accept) == null ? void 0 : F.join(","),
|
|
1306
|
-
onChange:
|
|
1306
|
+
onChange: l
|
|
1307
1307
|
}, null, 40, ho),
|
|
1308
|
-
|
|
1308
|
+
r.value ? (n(), i("div", bo, [
|
|
1309
1309
|
z(ie, {
|
|
1310
1310
|
small: "",
|
|
1311
|
-
onClick: ze(
|
|
1311
|
+
onClick: ze(s, ["prevent"])
|
|
1312
1312
|
}, {
|
|
1313
|
-
default:
|
|
1314
|
-
|
|
1313
|
+
default: f(() => [
|
|
1314
|
+
D(V(e(R)("action.clear", { capitalize: !0 })), 1)
|
|
1315
1315
|
]),
|
|
1316
1316
|
_: 1
|
|
1317
1317
|
})
|
|
1318
|
-
])) : (le = $.modelValue) != null && le._id ? (n(),
|
|
1318
|
+
])) : (le = $.modelValue) != null && le._id ? (n(), i("div", $o, [
|
|
1319
1319
|
z(ie, {
|
|
1320
1320
|
small: "",
|
|
1321
1321
|
onClick: ze(w, ["prevent"])
|
|
1322
1322
|
}, {
|
|
1323
|
-
default:
|
|
1324
|
-
|
|
1323
|
+
default: f(() => [
|
|
1324
|
+
D(V(e(R)("action.remove", { capitalize: !0 })), 1)
|
|
1325
1325
|
]),
|
|
1326
1326
|
_: 1
|
|
1327
1327
|
})
|
|
@@ -1340,23 +1340,23 @@ const ko = /* @__PURE__ */ W(go, [["__scopeId", "data-v-d491b7ce"]]), Vo = { cla
|
|
|
1340
1340
|
observeScroll: { type: Boolean }
|
|
1341
1341
|
},
|
|
1342
1342
|
emits: ["endReached"],
|
|
1343
|
-
setup(
|
|
1344
|
-
const
|
|
1343
|
+
setup(d, { emit: u }) {
|
|
1344
|
+
const a = d, t = u, o = J(null), c = a.observeScroll ? Pe(o, {
|
|
1345
1345
|
antecipate: 100
|
|
1346
1346
|
}).reachedEnd : null;
|
|
1347
|
-
return
|
|
1348
|
-
|
|
1349
|
-
}), (
|
|
1350
|
-
|
|
1347
|
+
return c !== null && ue(c, (r) => {
|
|
1348
|
+
r && t("endReached", r);
|
|
1349
|
+
}), (r, _) => (n(), i("div", Vo, [
|
|
1350
|
+
r.$slots.default ? (n(), i("div", {
|
|
1351
1351
|
key: 0,
|
|
1352
1352
|
ref_key: "containerEl",
|
|
1353
1353
|
ref: o,
|
|
1354
1354
|
class: "container__content"
|
|
1355
1355
|
}, [
|
|
1356
|
-
|
|
1356
|
+
C(r.$slots, "default", {}, void 0, !0)
|
|
1357
1357
|
], 512)) : y("", !0),
|
|
1358
|
-
|
|
1359
|
-
|
|
1358
|
+
r.$slots.footer ? (n(), i("div", Co, [
|
|
1359
|
+
C(r.$slots, "footer", {}, void 0, !0)
|
|
1360
1360
|
])) : y("", !0)
|
|
1361
1361
|
]));
|
|
1362
1362
|
}
|
|
@@ -1371,14 +1371,14 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
|
|
|
1371
1371
|
readOnly: { type: Boolean }
|
|
1372
1372
|
},
|
|
1373
1373
|
emits: ["update:modelValue", "change"],
|
|
1374
|
-
setup(
|
|
1375
|
-
const
|
|
1374
|
+
setup(d, { emit: u }) {
|
|
1375
|
+
const a = Ie(), t = d, o = u, c = t.property, r = me(c), _ = De(), p = G(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: w }) => t.item._id === w) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
|
|
1376
1376
|
if (p.value)
|
|
1377
1377
|
return;
|
|
1378
|
-
const w = ($) => $.filter((
|
|
1379
|
-
Array.isArray(
|
|
1380
|
-
},
|
|
1381
|
-
if (
|
|
1378
|
+
const w = ($) => $.filter((S) => !!(S != null && S._id)), v = "items" in c ? w(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
|
|
1379
|
+
Array.isArray(v) ? o("update:modelValue", v.concat([t.item])) : o("update:modelValue", t.item), o("change", t.item);
|
|
1380
|
+
}, s = async (w) => {
|
|
1381
|
+
if (r.purge && (w != null && w.purge)) {
|
|
1382
1382
|
const { _id: $ } = t.item;
|
|
1383
1383
|
await _.$actions.remove({
|
|
1384
1384
|
filters: {
|
|
@@ -1386,35 +1386,35 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
|
|
|
1386
1386
|
}
|
|
1387
1387
|
});
|
|
1388
1388
|
}
|
|
1389
|
-
const
|
|
1390
|
-
const $ = Array.isArray(t.modelValue) ? Array.from(t.modelValue) : [],
|
|
1391
|
-
return $.splice(
|
|
1389
|
+
const v = () => {
|
|
1390
|
+
const $ = Array.isArray(t.modelValue) ? Array.from(t.modelValue) : [], S = $.findIndex((O) => O._id === t.item._id);
|
|
1391
|
+
return $.splice(S, 1), $;
|
|
1392
1392
|
};
|
|
1393
|
-
o("update:modelValue", "items" in
|
|
1394
|
-
},
|
|
1393
|
+
o("update:modelValue", "items" in c ? v() : null);
|
|
1394
|
+
}, l = () => {
|
|
1395
1395
|
if (t.readOnly) {
|
|
1396
|
-
|
|
1397
|
-
path: `/dashboard/c/${
|
|
1396
|
+
a.push({
|
|
1397
|
+
path: `/dashboard/c/${r.$ref}/${t.item._id}`
|
|
1398
1398
|
});
|
|
1399
1399
|
return;
|
|
1400
1400
|
}
|
|
1401
|
-
return p.value ?
|
|
1401
|
+
return p.value ? s() : b();
|
|
1402
1402
|
};
|
|
1403
|
-
return (w,
|
|
1403
|
+
return (w, v) => {
|
|
1404
1404
|
const $ = te("clickable");
|
|
1405
|
-
return P((n(),
|
|
1405
|
+
return P((n(), i("div", {
|
|
1406
1406
|
class: X({
|
|
1407
1407
|
item: !0,
|
|
1408
1408
|
"item--selected": p.value
|
|
1409
1409
|
}),
|
|
1410
|
-
onClick:
|
|
1410
|
+
onClick: l
|
|
1411
1411
|
}, [
|
|
1412
|
-
|
|
1412
|
+
C(w.$slots, "default", {}, void 0, !0),
|
|
1413
1413
|
A("div", Io, [
|
|
1414
|
-
(n(!0),
|
|
1415
|
-
key: `index-${w.item._id}-${
|
|
1414
|
+
(n(!0), i(x, null, Q(w.indexes, (S, O) => (n(), i("div", {
|
|
1415
|
+
key: `index-${w.item._id}-${O}`,
|
|
1416
1416
|
class: "item__value"
|
|
1417
|
-
},
|
|
1417
|
+
}, V(w.item[S]), 1))), 128))
|
|
1418
1418
|
]),
|
|
1419
1419
|
w.readOnly ? (n(), k(Z, {
|
|
1420
1420
|
key: 0,
|
|
@@ -1443,39 +1443,39 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
|
|
|
1443
1443
|
panel: { default: void 0 }
|
|
1444
1444
|
},
|
|
1445
1445
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1446
|
-
setup(
|
|
1447
|
-
const
|
|
1448
|
-
ye(Fe, me(
|
|
1449
|
-
const
|
|
1446
|
+
setup(d, { emit: u }) {
|
|
1447
|
+
const a = d, t = me(a.property), o = a.panel !== void 0 ? G(() => a.panel) : J(!1), c = u, r = re(me(a.property).$ref), _ = Me(), p = _ ? De() : null, b = t.indexes;
|
|
1448
|
+
ye(Fe, me(a.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
|
|
1449
|
+
const s = J(a.modelValue), l = J({
|
|
1450
1450
|
data: [],
|
|
1451
1451
|
pagination: {}
|
|
1452
|
-
}), w =
|
|
1452
|
+
}), w = G(() => l.value.data), v = G(() => l.value.pagination), $ = J(0), S = J(!1), O = J(""), Y = () => {
|
|
1453
1453
|
const M = {};
|
|
1454
1454
|
if (_) {
|
|
1455
|
-
const
|
|
1456
|
-
M[
|
|
1455
|
+
const H = e(_);
|
|
1456
|
+
M[H] = p;
|
|
1457
1457
|
}
|
|
1458
1458
|
return t.constraints ? zt(t.constraints, M) : {};
|
|
1459
1459
|
}, ee = () => {
|
|
1460
|
-
w.value.length <
|
|
1461
|
-
}, h = async () =>
|
|
1460
|
+
w.value.length < v.value.recordsTotal && ($.value += 1, F());
|
|
1461
|
+
}, h = async () => O.value.length === 0 ? r.$actions.custom("getAll", {
|
|
1462
1462
|
limit: Ee,
|
|
1463
1463
|
offset: $.value * Ee,
|
|
1464
1464
|
filters: Y()
|
|
1465
|
-
}) :
|
|
1465
|
+
}) : r.$actions.custom("getAll", {
|
|
1466
1466
|
limit: Ee,
|
|
1467
1467
|
offset: $.value * Ee,
|
|
1468
1468
|
filters: {
|
|
1469
1469
|
$text: {
|
|
1470
|
-
$search: `"${
|
|
1470
|
+
$search: `"${O.value}"`,
|
|
1471
1471
|
$caseSensitive: !1
|
|
1472
1472
|
},
|
|
1473
1473
|
...Y()
|
|
1474
1474
|
}
|
|
1475
1475
|
}), F = async () => {
|
|
1476
|
-
if (
|
|
1476
|
+
if (r.loading.getAll)
|
|
1477
1477
|
return;
|
|
1478
|
-
const { error: M, result:
|
|
1478
|
+
const { error: M, result: H } = await h();
|
|
1479
1479
|
if (M) {
|
|
1480
1480
|
re("meta").$actions.spawnToast({
|
|
1481
1481
|
text: "Request failed",
|
|
@@ -1483,31 +1483,31 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
|
|
|
1483
1483
|
});
|
|
1484
1484
|
return;
|
|
1485
1485
|
}
|
|
1486
|
-
|
|
1486
|
+
l.value.pagination = H.pagination, $.value === 0 && l.value.data.splice(0), l.value.data.push(...H.data);
|
|
1487
1487
|
}, [le] = Vt({
|
|
1488
1488
|
delay: 800
|
|
1489
1489
|
})(() => {
|
|
1490
|
-
$.value = 0, F(),
|
|
1491
|
-
}),
|
|
1492
|
-
|
|
1490
|
+
$.value = 0, F(), S.value = !1;
|
|
1491
|
+
}), T = () => {
|
|
1492
|
+
S.value = !0, le();
|
|
1493
1493
|
}, g = () => {
|
|
1494
|
-
"effect" in o ?
|
|
1494
|
+
"effect" in o ? c("update:panel", !0) : o.value = !0, F();
|
|
1495
1495
|
}, j = () => {
|
|
1496
|
-
$.value = 0,
|
|
1496
|
+
$.value = 0, l.value.data.splice(0), "effect" in o ? c("update:panel", !1) : o.value = !1;
|
|
1497
1497
|
};
|
|
1498
|
-
ue(() =>
|
|
1499
|
-
M && !
|
|
1498
|
+
ue(() => O.value.length, (M, H) => {
|
|
1499
|
+
M && !H && F();
|
|
1500
1500
|
}), Xe(() => {
|
|
1501
|
-
|
|
1501
|
+
a.selectOnly && F();
|
|
1502
1502
|
});
|
|
1503
1503
|
const ne = (M) => {
|
|
1504
|
-
|
|
1504
|
+
s.value = M, a.selectOnly || c("update:modelValue", M);
|
|
1505
1505
|
}, oe = () => {
|
|
1506
|
-
j(),
|
|
1506
|
+
j(), c("update:modelValue", s.value);
|
|
1507
1507
|
};
|
|
1508
|
-
return (M,
|
|
1508
|
+
return (M, H) => {
|
|
1509
1509
|
const se = te("clickable");
|
|
1510
|
-
return n(),
|
|
1510
|
+
return n(), i("div", null, [
|
|
1511
1511
|
e(o) ? (n(), k(Ke, {
|
|
1512
1512
|
key: 0,
|
|
1513
1513
|
to: "main"
|
|
@@ -1522,65 +1522,65 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
|
|
|
1522
1522
|
onClose: j,
|
|
1523
1523
|
onOverlayClick: j
|
|
1524
1524
|
}, {
|
|
1525
|
-
footer:
|
|
1525
|
+
footer: f(() => [
|
|
1526
1526
|
z(ie, {
|
|
1527
1527
|
large: "",
|
|
1528
1528
|
onClick: oe
|
|
1529
1529
|
}, {
|
|
1530
|
-
default:
|
|
1531
|
-
|
|
1530
|
+
default: f(() => [
|
|
1531
|
+
D(V(e(R)("action.save", { capitalize: !0 })), 1)
|
|
1532
1532
|
]),
|
|
1533
1533
|
_: 1
|
|
1534
1534
|
})
|
|
1535
1535
|
]),
|
|
1536
|
-
default:
|
|
1536
|
+
default: f(() => {
|
|
1537
1537
|
var ae, m;
|
|
1538
1538
|
return [
|
|
1539
1539
|
A("div", wo, [
|
|
1540
1540
|
z(ke, E({
|
|
1541
|
-
modelValue:
|
|
1542
|
-
"onUpdate:modelValue":
|
|
1541
|
+
modelValue: O.value,
|
|
1542
|
+
"onUpdate:modelValue": H[0] || (H[0] = (L) => O.value = L)
|
|
1543
1543
|
}, {
|
|
1544
1544
|
property: {
|
|
1545
1545
|
type: "string",
|
|
1546
1546
|
placeholder: "Pesquise aqui",
|
|
1547
1547
|
inputType: "search"
|
|
1548
1548
|
}
|
|
1549
|
-
}, { onInput:
|
|
1549
|
+
}, { onInput: T }), null, 16, ["modelValue"]),
|
|
1550
1550
|
w.value.length ? (n(), k(ft, {
|
|
1551
1551
|
key: 0,
|
|
1552
1552
|
"observe-scroll": "",
|
|
1553
1553
|
onEndReached: ee
|
|
1554
1554
|
}, {
|
|
1555
|
-
default:
|
|
1556
|
-
(n(!0),
|
|
1555
|
+
default: f(() => [
|
|
1556
|
+
(n(!0), i(x, null, Q(w.value, (L) => (n(), k(Ge, E({ ref_for: !0 }, {
|
|
1557
1557
|
item: L,
|
|
1558
1558
|
indexes: e(b),
|
|
1559
1559
|
property: M.property
|
|
1560
1560
|
}, {
|
|
1561
1561
|
key: `matching-${L._id}`,
|
|
1562
|
-
modelValue:
|
|
1563
|
-
"onUpdate:modelValue":
|
|
1562
|
+
modelValue: s.value,
|
|
1563
|
+
"onUpdate:modelValue": H[1] || (H[1] = (K) => s.value = K)
|
|
1564
1564
|
}), null, 16, ["modelValue"]))), 128))
|
|
1565
1565
|
]),
|
|
1566
1566
|
_: 1
|
|
1567
|
-
})) : (n(),
|
|
1568
|
-
|
|
1567
|
+
})) : (n(), i("div", Bo, [
|
|
1568
|
+
S.value ? (n(), i("div", So, V(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(r).loading.getAll && Object.values(O.value).filter((L) => !!L).length > 0 && !("items" in M.property && ((ae = M.modelValue) != null && ae.length) || !Array.isArray(M.modelValue) && ((m = M.modelValue) != null && m._id)) ? (n(), i("div", To, V(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
|
|
1569
1569
|
]))
|
|
1570
1570
|
]),
|
|
1571
|
-
A("div", jo,
|
|
1571
|
+
A("div", jo, V(e(R)("showing", { capitalize: !0 })) + " " + V(w.value.length) + " " + V(e(R)("of")) + " " + V(v.value.recordsTotal), 1)
|
|
1572
1572
|
];
|
|
1573
1573
|
}),
|
|
1574
1574
|
_: 1
|
|
1575
1575
|
}, 8, ["title", "model-value"])
|
|
1576
1576
|
])) : y("", !0),
|
|
1577
|
-
M.selectOnly ? y("", !0) : (n(),
|
|
1577
|
+
M.selectOnly ? y("", !0) : (n(), i("div", Ro, [
|
|
1578
1578
|
z(ft, null, ce({
|
|
1579
|
-
default:
|
|
1579
|
+
default: f(() => {
|
|
1580
1580
|
var ae;
|
|
1581
1581
|
return [
|
|
1582
|
-
"items" in M.property ? (n(),
|
|
1583
|
-
(n(!0),
|
|
1582
|
+
"items" in M.property ? (n(), i("div", Lo, [
|
|
1583
|
+
(n(!0), i(x, null, Q(M.modelValue, (m) => (n(), k(Ge, E({ ref_for: !0 }, {
|
|
1584
1584
|
item: m,
|
|
1585
1585
|
indexes: e(b),
|
|
1586
1586
|
property: M.property,
|
|
@@ -1603,13 +1603,13 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
|
|
|
1603
1603
|
}, [
|
|
1604
1604
|
M.readOnly ? void 0 : {
|
|
1605
1605
|
name: "footer",
|
|
1606
|
-
fn:
|
|
1606
|
+
fn: f(() => [
|
|
1607
1607
|
P((n(), k(Z, {
|
|
1608
1608
|
icon: "plus",
|
|
1609
1609
|
onClick: g
|
|
1610
1610
|
}, {
|
|
1611
|
-
default:
|
|
1612
|
-
|
|
1611
|
+
default: f(() => [
|
|
1612
|
+
D(V(e(R)("action.select", { capitalize: !0 })), 1)
|
|
1613
1613
|
]),
|
|
1614
1614
|
_: 1
|
|
1615
1615
|
})), [
|
|
@@ -1624,8 +1624,8 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { cla
|
|
|
1624
1624
|
};
|
|
1625
1625
|
}
|
|
1626
1626
|
});
|
|
1627
|
-
const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (
|
|
1628
|
-
const
|
|
1627
|
+
const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (d, u) => {
|
|
1628
|
+
const a = "items" in d ? d.items : d, t = {
|
|
1629
1629
|
options: Jn,
|
|
1630
1630
|
select: Ne,
|
|
1631
1631
|
switch: no,
|
|
@@ -1634,32 +1634,32 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1634
1634
|
input: ke,
|
|
1635
1635
|
form: Qe
|
|
1636
1636
|
}, o = (() => {
|
|
1637
|
-
if ("type" in
|
|
1638
|
-
if (
|
|
1637
|
+
if ("type" in a) {
|
|
1638
|
+
if (a.type === "object")
|
|
1639
1639
|
return "form";
|
|
1640
|
-
if (
|
|
1640
|
+
if (a.type === "boolean")
|
|
1641
1641
|
return "switch";
|
|
1642
1642
|
}
|
|
1643
|
-
if ("element" in
|
|
1644
|
-
if (
|
|
1643
|
+
if ("element" in d) {
|
|
1644
|
+
if (d.element === "checkbox" || d.element === "radio")
|
|
1645
1645
|
return "options";
|
|
1646
|
-
if (
|
|
1646
|
+
if (d.element === "select")
|
|
1647
1647
|
return "select";
|
|
1648
1648
|
}
|
|
1649
|
-
const
|
|
1650
|
-
return
|
|
1649
|
+
const c = me(d);
|
|
1650
|
+
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in d && d.uniqueItems ? "options" : "enum" in a ? "select" : "input";
|
|
1651
1651
|
})();
|
|
1652
|
-
return
|
|
1653
|
-
}, Mo = (
|
|
1654
|
-
|
|
1655
|
-
const t = "items" in
|
|
1652
|
+
return u[o] ? u[o] : t[o];
|
|
1653
|
+
}, Mo = (d, u, a) => {
|
|
1654
|
+
d ?? (d = []);
|
|
1655
|
+
const t = "items" in u ? u.items : u;
|
|
1656
1656
|
if ("$ref" in t) {
|
|
1657
|
-
const o = re(t.$ref,
|
|
1658
|
-
return
|
|
1657
|
+
const o = re(t.$ref, a), c = Ce(o.$freshItem);
|
|
1658
|
+
return d.push(c);
|
|
1659
1659
|
}
|
|
1660
|
-
return "properties" in t ?
|
|
1661
|
-
}, Fo = (
|
|
1662
|
-
|
|
1660
|
+
return "properties" in t ? d.push(qt(t)) : "type" in t && t.type === "boolean" ? d.push({}) : d.push(null);
|
|
1661
|
+
}, Fo = (d, u) => {
|
|
1662
|
+
d.splice(u, 1);
|
|
1663
1663
|
}, Uo = {
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
class: "form__header"
|
|
@@ -1699,16 +1699,16 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1699
1699
|
includeTimestamps: { type: Boolean }
|
|
1700
1700
|
},
|
|
1701
1701
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
1702
|
-
setup(
|
|
1702
|
+
setup(d, { emit: u }) {
|
|
1703
1703
|
var ae;
|
|
1704
|
-
const
|
|
1704
|
+
const a = Ze(), t = d, o = u;
|
|
1705
1705
|
$t(() => {
|
|
1706
1706
|
t.modelValue || o("update:modelValue", t.property && "items" in t.property ? [] : {});
|
|
1707
1707
|
});
|
|
1708
|
-
const
|
|
1709
|
-
!
|
|
1708
|
+
const c = t.property && me(t.property), r = c ? c.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = r ? re(e(r)) : null;
|
|
1709
|
+
!r && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1710
1710
|
collection prop, some features may not work as intended`);
|
|
1711
|
-
const b = J(!1),
|
|
1711
|
+
const b = J(!1), s = G(() => {
|
|
1712
1712
|
const m = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 : p == null ? void 0 : p.properties : t.form)();
|
|
1713
1713
|
if (!m)
|
|
1714
1714
|
return;
|
|
@@ -1726,23 +1726,23 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1726
1726
|
m.created_at || (L.created_at = K), m.created_at || (L.updated_at = K);
|
|
1727
1727
|
}
|
|
1728
1728
|
return Object.assign(L, m), L;
|
|
1729
|
-
}),
|
|
1729
|
+
}), l = G(() => t.layout || (p == null ? void 0 : p.description.formLayout)), w = (m) => {
|
|
1730
1730
|
const L = _e(m, t[m]);
|
|
1731
1731
|
return t[m] && ye(m, t[m]), L;
|
|
1732
|
-
},
|
|
1733
|
-
|
|
1734
|
-
const h = (m) =>
|
|
1732
|
+
}, v = G(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = w("formComponents") || {}, S = w("propertyComponents") || {}, O = w("omitFormHeader"), Y = w("omitInputLabels"), ee = w("innerInputLabel");
|
|
1733
|
+
r && ye(Fe, r), ye("searchOnly", t.searchOnly);
|
|
1734
|
+
const h = (m) => s.value ? Object.entries(s.value).filter(([L, K]) => !K.noForm && m([
|
|
1735
1735
|
L,
|
|
1736
1736
|
K
|
|
1737
1737
|
])) : null, F = (m, L) => {
|
|
1738
1738
|
var B;
|
|
1739
|
-
if (t.searchOnly || !
|
|
1739
|
+
if (t.searchOnly || !r || t.includeId && m === "_id" || t.includeTimestamps && L.isTimestamp)
|
|
1740
1740
|
return !0;
|
|
1741
1741
|
const K = t.property && "properties" in t.property ? t.property.form : (B = p == null ? void 0 : p.description) == null ? void 0 : B.form;
|
|
1742
1742
|
return !K || K.includes(m);
|
|
1743
|
-
}, le = h(([m, L]) => F(m, L)),
|
|
1743
|
+
}, le = h(([m, L]) => F(m, L)), T = Ue(), g = {}, j = (m, L) => {
|
|
1744
1744
|
var q, fe, we, Be;
|
|
1745
|
-
const K = [], B = ((fe = (q =
|
|
1745
|
+
const K = [], B = ((fe = (q = l.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((Be = (we = l.value) == null ? void 0 : we.fields) == null ? void 0 : Be.$default);
|
|
1746
1746
|
if (!L)
|
|
1747
1747
|
return;
|
|
1748
1748
|
if (B != null && B.if && !t.searchOnly) {
|
|
@@ -1755,7 +1755,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1755
1755
|
null
|
|
1756
1756
|
].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), K.push("display: none;")), g[m] = Se.satisfied;
|
|
1757
1757
|
}
|
|
1758
|
-
const I =
|
|
1758
|
+
const I = T.value.md && (B == null ? void 0 : B.span) || 6;
|
|
1759
1759
|
return K.push(`
|
|
1760
1760
|
--field-span: ${I};
|
|
1761
1761
|
grid-column: span var(--field-span) / span var(--field-span);
|
|
@@ -1768,50 +1768,50 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1768
1768
|
padding: 1rem 0;
|
|
1769
1769
|
margin: 1rem 0;
|
|
1770
1770
|
`)), K.join("");
|
|
1771
|
-
}, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe =
|
|
1771
|
+
}, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe = G(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : p == null ? void 0 : p.description.required), M = G(() => t.form ? Ht(
|
|
1772
1772
|
t.modelValue,
|
|
1773
1773
|
t.form,
|
|
1774
1774
|
oe.value,
|
|
1775
1775
|
p == null ? void 0 : p.description
|
|
1776
|
-
) : !0),
|
|
1776
|
+
) : !0), H = (m, L) => {
|
|
1777
1777
|
var K;
|
|
1778
|
-
return (K =
|
|
1778
|
+
return (K = v.value) != null && K[m] && (typeof v.value[m].index != "number" || v.value[m].index === L) ? v.value[m].errors : null;
|
|
1779
1779
|
}, se = (m) => {
|
|
1780
1780
|
if (!(_ || m.readOnly) && !t.parentPropertyName && !t.parentCollection && !b.value)
|
|
1781
1781
|
return b.value = !0, !0;
|
|
1782
1782
|
};
|
|
1783
1783
|
return (m, L) => {
|
|
1784
1784
|
const K = te("clickable"), B = te("focus");
|
|
1785
|
-
return n(),
|
|
1785
|
+
return n(), i("form", {
|
|
1786
1786
|
class: "form",
|
|
1787
|
-
style: be(`row-gap: ${e(
|
|
1787
|
+
style: be(`row-gap: ${e(O) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1788
1788
|
}, [
|
|
1789
|
-
m.$slots.header && !e(
|
|
1790
|
-
|
|
1789
|
+
m.$slots.header && !e(O) ? (n(), i("header", Uo, [
|
|
1790
|
+
C(m.$slots, "header", {}, void 0, !0)
|
|
1791
1791
|
])) : y("", !0),
|
|
1792
|
-
|
|
1792
|
+
C(m.$slots, "default", {}, void 0, !0),
|
|
1793
1793
|
A("fieldset", Eo, [
|
|
1794
|
-
(n(!0),
|
|
1794
|
+
(n(!0), i(x, null, Q(e(le), ([I, q]) => {
|
|
1795
1795
|
var fe, we, Be, Se, xe, et, tt, nt, ot, at, lt, st, it;
|
|
1796
|
-
return n(),
|
|
1796
|
+
return n(), i("div", {
|
|
1797
1797
|
key: `field-${I}`,
|
|
1798
1798
|
style: be(j(I, q)),
|
|
1799
1799
|
class: "form__field"
|
|
1800
1800
|
}, [
|
|
1801
|
-
(!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(),
|
|
1801
|
+
(!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), i("label", Ho, [
|
|
1802
1802
|
A("div", {
|
|
1803
1803
|
class: X({
|
|
1804
1804
|
"form__field-label": !0,
|
|
1805
1805
|
"form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
|
|
1806
1806
|
"form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!oe.value || e(Mt)(I, oe.value, m.modelValue))
|
|
1807
1807
|
})
|
|
1808
|
-
},
|
|
1809
|
-
q.hint ? (n(),
|
|
1808
|
+
}, V(q.description || e(R)(I)), 3),
|
|
1809
|
+
q.hint ? (n(), i("div", {
|
|
1810
1810
|
key: 0,
|
|
1811
1811
|
innerHTML: q.hint
|
|
1812
1812
|
}, null, 8, Do)) : y("", !0)
|
|
1813
1813
|
])) : y("", !0),
|
|
1814
|
-
m.$slots[`field-${I}`] ?
|
|
1814
|
+
m.$slots[`field-${I}`] ? C(m.$slots, `field-${I}`, E({
|
|
1815
1815
|
key: 1,
|
|
1816
1816
|
ref_for: !0
|
|
1817
1817
|
}, {
|
|
@@ -1819,7 +1819,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1819
1819
|
property: q,
|
|
1820
1820
|
propertyName: I,
|
|
1821
1821
|
modelValue: m.modelValue
|
|
1822
|
-
}), void 0, !0) : (Be = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Be.component && e(
|
|
1822
|
+
}), void 0, !0) : (Be = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Be.component && e(S)[m.layout.fields[I].component.name] ? (n(), k(he(e(S)[m.layout.fields[I].component.name]), E({
|
|
1823
1823
|
key: 2,
|
|
1824
1824
|
modelValue: m.modelValue[I],
|
|
1825
1825
|
"onUpdate:modelValue": (N) => m.modelValue[I] = N,
|
|
@@ -1832,7 +1832,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1832
1832
|
}, {
|
|
1833
1833
|
onInput: (N) => o("input", I),
|
|
1834
1834
|
onChange: L[0] || (L[0] = (N) => o("change", N))
|
|
1835
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && m.searchOnly ? (n(),
|
|
1835
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && m.searchOnly ? (n(), i("div", {
|
|
1836
1836
|
key: 3,
|
|
1837
1837
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1838
1838
|
onInput: (N) => o("input", I),
|
|
@@ -1854,7 +1854,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1854
1854
|
property: q,
|
|
1855
1855
|
propertyName: I
|
|
1856
1856
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1857
|
-
], 40, Qo)) : "type" in q && q.type === "boolean" && m.searchOnly ? (n(),
|
|
1857
|
+
], 40, Qo)) : "type" in q && q.type === "boolean" && m.searchOnly ? (n(), i("div", Go, [
|
|
1858
1858
|
z(Ne, E({ ref_for: !0 }, {
|
|
1859
1859
|
property: q,
|
|
1860
1860
|
propertyName: I
|
|
@@ -1866,33 +1866,33 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1866
1866
|
m.modelValue[I] = N == "true" ? !0 : N == "false" ? !1 : null;
|
|
1867
1867
|
}
|
|
1868
1868
|
}), {
|
|
1869
|
-
default:
|
|
1870
|
-
A("option", Wo,
|
|
1871
|
-
A("option", Ko,
|
|
1869
|
+
default: f(() => [
|
|
1870
|
+
A("option", Wo, V(e(R)("yes")), 1),
|
|
1871
|
+
A("option", Ko, V(e(R)("no")), 1)
|
|
1872
1872
|
]),
|
|
1873
1873
|
_: 2
|
|
1874
1874
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1875
|
-
])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(),
|
|
1876
|
-
e(_) ? y("", !0) : (n(),
|
|
1875
|
+
])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), i("div", Xo, [
|
|
1876
|
+
e(_) ? y("", !0) : (n(), i("div", Yo, [
|
|
1877
1877
|
z(ie, {
|
|
1878
1878
|
small: "",
|
|
1879
1879
|
variant: "alt",
|
|
1880
1880
|
icon: "plus",
|
|
1881
1881
|
disabled: !("inline" in q.items && q.items.inline) && (((Se = m.modelValue[I]) == null ? void 0 : Se.length) >= q.maxItems || ne((et = m.modelValue[I]) == null ? void 0 : et[((xe = m.modelValue[I]) == null ? void 0 : xe.length) - 1])),
|
|
1882
1882
|
onClick: ze((N) => {
|
|
1883
|
-
m.modelValue[I] || (m.modelValue[I] = []), e(Mo)(m.modelValue[I], q, e(
|
|
1883
|
+
m.modelValue[I] || (m.modelValue[I] = []), e(Mo)(m.modelValue[I], q, e(a));
|
|
1884
1884
|
}, ["prevent"])
|
|
1885
1885
|
}, {
|
|
1886
|
-
default:
|
|
1887
|
-
|
|
1886
|
+
default: f(() => [
|
|
1887
|
+
D(V(e(R)("action.add", { capitalize: !0 })), 1)
|
|
1888
1888
|
]),
|
|
1889
1889
|
_: 2
|
|
1890
1890
|
}, 1032, ["disabled", "onClick"])
|
|
1891
1891
|
])),
|
|
1892
1892
|
A("div", Jo, [
|
|
1893
|
-
(n(!0),
|
|
1893
|
+
(n(!0), i(x, null, Q(m.modelValue[I], (N, Te) => {
|
|
1894
1894
|
var rt, ut, ct, dt, pt, _t;
|
|
1895
|
-
return n(),
|
|
1895
|
+
return n(), i("div", {
|
|
1896
1896
|
key: `rep-${I}-${e(Dt)(N, Te)}`,
|
|
1897
1897
|
class: "form__array-item"
|
|
1898
1898
|
}, [
|
|
@@ -1905,10 +1905,10 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1905
1905
|
readOnly: e(_),
|
|
1906
1906
|
property: q.items,
|
|
1907
1907
|
propertyName: I,
|
|
1908
|
-
parentCollection: e(
|
|
1908
|
+
parentCollection: e(r),
|
|
1909
1909
|
parentPropertyName: m.parentPropertyName,
|
|
1910
1910
|
columns: ((ct = (ut = (rt = m.layout) == null ? void 0 : rt.fields) == null ? void 0 : ut[I]) == null ? void 0 : ct.optionsColumns) || ((_t = (pt = (dt = m.layout) == null ? void 0 : dt.fields) == null ? void 0 : pt.$default) == null ? void 0 : _t.optionsColumns),
|
|
1911
|
-
validationErrors:
|
|
1911
|
+
validationErrors: H(I, Te),
|
|
1912
1912
|
...q.componentProps || {}
|
|
1913
1913
|
}, {
|
|
1914
1914
|
onInput: (je) => o("input", I),
|
|
@@ -1936,10 +1936,10 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1936
1936
|
property: q,
|
|
1937
1937
|
propertyName: I,
|
|
1938
1938
|
parentPropertyName: m.parentPropertyName,
|
|
1939
|
-
parentCollection: e(
|
|
1939
|
+
parentCollection: e(r),
|
|
1940
1940
|
columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[I]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
|
|
1941
1941
|
...q.componentProps || {},
|
|
1942
|
-
validationErrors:
|
|
1942
|
+
validationErrors: H(I)
|
|
1943
1943
|
}, {
|
|
1944
1944
|
onInput: (N) => o("input", I),
|
|
1945
1945
|
onChange: L[4] || (L[4] = (N) => o("change", N)),
|
|
@@ -1947,16 +1947,16 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1947
1947
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1948
1948
|
[B, se(q)]
|
|
1949
1949
|
]) : y("", !0),
|
|
1950
|
-
(it =
|
|
1951
|
-
|
|
1952
|
-
|
|
1950
|
+
(it = v.value) != null && it[I] ? (n(), i("div", Po, [
|
|
1951
|
+
v.value[I].type ? (n(), i("span", No, V(e(R)(`validation_error.${v.value[I].type}`)), 1)) : y("", !0),
|
|
1952
|
+
v.value[I].detail ? (n(), i("span", xo, V(e(R)(v.value[I].detail)), 1)) : y("", !0)
|
|
1953
1953
|
])) : y("", !0)
|
|
1954
1954
|
], 4);
|
|
1955
1955
|
}), 128))
|
|
1956
1956
|
]),
|
|
1957
|
-
m.$slots.after ?
|
|
1958
|
-
m.$slots.footer ? (n(),
|
|
1959
|
-
|
|
1957
|
+
m.$slots.after ? C(m.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
|
|
1958
|
+
m.$slots.footer ? (n(), i("div", ea, [
|
|
1959
|
+
C(m.$slots, "footer", de(ge({
|
|
1960
1960
|
isInsertReady: M.value
|
|
1961
1961
|
})), void 0, !0)
|
|
1962
1962
|
])) : y("", !0)
|
|
@@ -1967,14 +1967,14 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1967
1967
|
const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @__PURE__ */ U({
|
|
1968
1968
|
__name: "aeria-filter-panel",
|
|
1969
1969
|
emits: ["update:modelValue"],
|
|
1970
|
-
setup(
|
|
1971
|
-
const
|
|
1972
|
-
t.pagination.offset = 0, t.$actions.filter(),
|
|
1970
|
+
setup(d, { emit: u }) {
|
|
1971
|
+
const a = u, t = De(), o = Ie(), c = e(_e(Fe)), r = () => {
|
|
1972
|
+
t.pagination.offset = 0, t.$actions.filter(), a("update:modelValue", !1);
|
|
1973
1973
|
const _ = Object.assign({
|
|
1974
1974
|
query: {}
|
|
1975
1975
|
}, o.currentRoute.value);
|
|
1976
1976
|
for (const p of Object.keys(_.query))
|
|
1977
|
-
p.startsWith(`${
|
|
1977
|
+
p.startsWith(`${c}.`) && delete _.query[p];
|
|
1978
1978
|
o.currentRoute.value.query = {}, o.push(qe(_, {
|
|
1979
1979
|
query: Qt(t)
|
|
1980
1980
|
}));
|
|
@@ -1983,22 +1983,22 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
1983
1983
|
"close-hint": "",
|
|
1984
1984
|
"fixed-right": "",
|
|
1985
1985
|
title: _.t("filter_by", { capitalize: !0 }),
|
|
1986
|
-
onClose: p[2] || (p[2] = (b) =>
|
|
1987
|
-
onOverlayClick: p[3] || (p[3] = (b) =>
|
|
1986
|
+
onClose: p[2] || (p[2] = (b) => a("update:modelValue", !1)),
|
|
1987
|
+
onOverlayClick: p[3] || (p[3] = (b) => a("update:modelValue", !1))
|
|
1988
1988
|
}, {
|
|
1989
|
-
footer:
|
|
1989
|
+
footer: f(() => [
|
|
1990
1990
|
e(t).filtersCount > 0 ? (n(), k(ie, {
|
|
1991
1991
|
key: 0,
|
|
1992
1992
|
variant: "transparent",
|
|
1993
1993
|
onClick: p[1] || (p[1] = (b) => {
|
|
1994
|
-
e(t).$actions.clearFilters(),
|
|
1994
|
+
e(t).$actions.clearFilters(), r(), a("update:modelValue", !1);
|
|
1995
1995
|
})
|
|
1996
1996
|
}, {
|
|
1997
|
-
default:
|
|
1998
|
-
|
|
1997
|
+
default: f(() => [
|
|
1998
|
+
D(V(_.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1999
1999
|
z($e, null, {
|
|
2000
|
-
default:
|
|
2001
|
-
|
|
2000
|
+
default: f(() => [
|
|
2001
|
+
D(V(e(t).filtersCount), 1)
|
|
2002
2002
|
]),
|
|
2003
2003
|
_: 1
|
|
2004
2004
|
})
|
|
@@ -2009,15 +2009,15 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2009
2009
|
large: "",
|
|
2010
2010
|
icon: "funnel",
|
|
2011
2011
|
disabled: !e(t).hasActiveFilters,
|
|
2012
|
-
onClick:
|
|
2012
|
+
onClick: r
|
|
2013
2013
|
}, {
|
|
2014
|
-
default:
|
|
2015
|
-
|
|
2014
|
+
default: f(() => [
|
|
2015
|
+
D(V(_.t("action.filter", { capitalize: !0 })), 1)
|
|
2016
2016
|
]),
|
|
2017
2017
|
_: 1
|
|
2018
2018
|
}, 8, ["disabled"])
|
|
2019
2019
|
]),
|
|
2020
|
-
default:
|
|
2020
|
+
default: f(() => [
|
|
2021
2021
|
z(Qe, E({
|
|
2022
2022
|
modelValue: e(t).filters,
|
|
2023
2023
|
"onUpdate:modelValue": p[0] || (p[0] = (b) => e(t).filters = b)
|
|
@@ -2042,110 +2042,110 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2042
2042
|
includeTimestamps: { type: Boolean }
|
|
2043
2043
|
},
|
|
2044
2044
|
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2045
|
-
setup(
|
|
2046
|
-
const
|
|
2045
|
+
setup(d, { emit: u }) {
|
|
2046
|
+
const a = d, t = u, o = re("meta"), c = a.collection || o.view.collection, r = re(c), _ = _e("individualActions", []);
|
|
2047
2047
|
Xe(() => {
|
|
2048
|
-
|
|
2048
|
+
a.modelValue && r.$actions.setItem(a.modelValue);
|
|
2049
2049
|
});
|
|
2050
|
-
const p =
|
|
2051
|
-
const { error:
|
|
2052
|
-
|
|
2053
|
-
}, { t:
|
|
2050
|
+
const p = G(() => a.form ? r.$actions.useProperties(a.form) : r.description.form ? r.$actions.useProperties(r.description.form) : r.properties), b = async () => {
|
|
2051
|
+
const { error: v, result: $ } = await r.$actions.deepInsert();
|
|
2052
|
+
v || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), r.$actions.clearItem());
|
|
2053
|
+
}, { t: s } = Lt(), l = () => {
|
|
2054
2054
|
o.$actions.ask({
|
|
2055
2055
|
action: () => {
|
|
2056
|
-
|
|
2056
|
+
r.$actions.clearItem(), r.validationErrors = {}, t("cancel");
|
|
2057
2057
|
},
|
|
2058
|
-
body:
|
|
2058
|
+
body: s("prompt.close_panel")
|
|
2059
2059
|
});
|
|
2060
2060
|
}, w = () => o.$actions.spawnToast({
|
|
2061
2061
|
icon: "info",
|
|
2062
|
-
text:
|
|
2062
|
+
text: s("copied_to_clipboard")
|
|
2063
2063
|
});
|
|
2064
|
-
return ue(() =>
|
|
2065
|
-
|
|
2066
|
-
}), (
|
|
2067
|
-
const
|
|
2064
|
+
return ue(() => r.item._id, (v) => {
|
|
2065
|
+
v === null && t("update:visible", !1);
|
|
2066
|
+
}), (v, $) => {
|
|
2067
|
+
const S = te("clickable");
|
|
2068
2068
|
return n(), k(Ae, {
|
|
2069
|
-
"model-value":
|
|
2070
|
-
loading: e(
|
|
2071
|
-
onOverlayClick:
|
|
2069
|
+
"model-value": v.visible,
|
|
2070
|
+
loading: e(r).loading.get,
|
|
2071
|
+
onOverlayClick: l
|
|
2072
2072
|
}, ce({
|
|
2073
|
-
extra:
|
|
2073
|
+
extra: f(() => [
|
|
2074
2074
|
z(Oe, E({
|
|
2075
|
-
subject: e(
|
|
2076
|
-
actions: e(_).filter(({ action:
|
|
2075
|
+
subject: e(r).item,
|
|
2076
|
+
actions: e(_).filter(({ action: O }) => O !== "spawnEdit"),
|
|
2077
2077
|
overlayLayer: 60
|
|
2078
2078
|
}, {
|
|
2079
|
-
onActionClick: $[2] || ($[2] = (
|
|
2079
|
+
onActionClick: $[2] || ($[2] = (O) => t("update:visible", !1))
|
|
2080
2080
|
}), {
|
|
2081
|
-
default:
|
|
2082
|
-
visible:
|
|
2081
|
+
default: f(({
|
|
2082
|
+
visible: O
|
|
2083
2083
|
}) => [
|
|
2084
|
-
e(
|
|
2084
|
+
e(r).item._id ? P((n(), k(Z, {
|
|
2085
2085
|
key: 0,
|
|
2086
2086
|
reactive: "",
|
|
2087
|
-
active:
|
|
2087
|
+
active: O,
|
|
2088
2088
|
icon: "dots-three"
|
|
2089
2089
|
}, null, 8, ["active"])), [
|
|
2090
|
-
[
|
|
2090
|
+
[S]
|
|
2091
2091
|
]) : y("", !0)
|
|
2092
2092
|
]),
|
|
2093
2093
|
_: 1
|
|
2094
2094
|
}, 16)
|
|
2095
2095
|
]),
|
|
2096
|
-
default:
|
|
2096
|
+
default: f(() => [
|
|
2097
2097
|
z(Qe, E({
|
|
2098
|
-
modelValue: e(
|
|
2099
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
2098
|
+
modelValue: e(r).item,
|
|
2099
|
+
"onUpdate:modelValue": $[0] || ($[0] = (O) => e(r).item = O)
|
|
2100
2100
|
}, {
|
|
2101
|
-
collection: e(
|
|
2102
|
-
readOnly:
|
|
2103
|
-
includeId:
|
|
2104
|
-
includeTimestamps:
|
|
2101
|
+
collection: e(c),
|
|
2102
|
+
readOnly: v.readOnly,
|
|
2103
|
+
includeId: v.includeId,
|
|
2104
|
+
includeTimestamps: v.includeTimestamps,
|
|
2105
2105
|
form: p.value,
|
|
2106
|
-
layout: e(
|
|
2106
|
+
layout: e(r).description.formLayout || {}
|
|
2107
2107
|
}, {
|
|
2108
2108
|
focus: "",
|
|
2109
2109
|
onClipboardCopy: w,
|
|
2110
|
-
onAdd: $[1] || ($[1] = (
|
|
2110
|
+
onAdd: $[1] || ($[1] = (O) => O.preventDefault())
|
|
2111
2111
|
}), ce({ _: 2 }, [
|
|
2112
|
-
|
|
2113
|
-
name:
|
|
2114
|
-
fn:
|
|
2115
|
-
|
|
2112
|
+
Q(Object.keys(v.$slots).filter((O) => O.startsWith("field-")), (O) => ({
|
|
2113
|
+
name: O,
|
|
2114
|
+
fn: f((Y) => [
|
|
2115
|
+
C(v.$slots, O, de(ge(Y)))
|
|
2116
2116
|
])
|
|
2117
2117
|
}))
|
|
2118
2118
|
]), 1040, ["modelValue"])
|
|
2119
2119
|
]),
|
|
2120
2120
|
_: 2
|
|
2121
2121
|
}, [
|
|
2122
|
-
|
|
2122
|
+
v.$slots.header ? {
|
|
2123
2123
|
name: "header",
|
|
2124
|
-
fn:
|
|
2125
|
-
|
|
2124
|
+
fn: f(() => [
|
|
2125
|
+
C(v.$slots, "header")
|
|
2126
2126
|
]),
|
|
2127
2127
|
key: "0"
|
|
2128
2128
|
} : void 0,
|
|
2129
|
-
|
|
2129
|
+
v.readOnly ? void 0 : {
|
|
2130
2130
|
name: "footer",
|
|
2131
|
-
fn:
|
|
2131
|
+
fn: f(() => [
|
|
2132
2132
|
z(ie, {
|
|
2133
2133
|
variant: "transparent",
|
|
2134
|
-
onClick:
|
|
2134
|
+
onClick: l
|
|
2135
2135
|
}, {
|
|
2136
|
-
default:
|
|
2137
|
-
|
|
2136
|
+
default: f(() => [
|
|
2137
|
+
D(V(e(s)("action.cancel", { capitalize: !0 })), 1)
|
|
2138
2138
|
]),
|
|
2139
2139
|
_: 1
|
|
2140
2140
|
}),
|
|
2141
2141
|
z(ie, {
|
|
2142
2142
|
large: "",
|
|
2143
|
-
disabled: !e(
|
|
2144
|
-
loading: e(
|
|
2143
|
+
disabled: !e(r).isInsertReady || e(r).loading.get,
|
|
2144
|
+
loading: e(r).loading.insert,
|
|
2145
2145
|
onClick: b
|
|
2146
2146
|
}, {
|
|
2147
|
-
default:
|
|
2148
|
-
|
|
2147
|
+
default: f(() => [
|
|
2148
|
+
D(V(e(s)("action.insert", { capitalize: !0 })), 1)
|
|
2149
2149
|
]),
|
|
2150
2150
|
_: 1
|
|
2151
2151
|
}, 8, ["disabled", "loading"])
|
|
@@ -2155,28 +2155,28 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2155
2155
|
]), 1032, ["model-value", "loading"]);
|
|
2156
2156
|
};
|
|
2157
2157
|
}
|
|
2158
|
-
}), Ot = (
|
|
2159
|
-
if (
|
|
2160
|
-
if (!
|
|
2161
|
-
|
|
2158
|
+
}), Ot = (d, u) => {
|
|
2159
|
+
if (u) {
|
|
2160
|
+
if (!d) {
|
|
2161
|
+
u.filtersPreset = {}, u.preferredTableProperties = [], u.pagination.offset = 0;
|
|
2162
2162
|
return;
|
|
2163
2163
|
}
|
|
2164
|
-
|
|
2164
|
+
u.filtersPreset = d.filters || {}, u.preferredTableProperties = d.table ? Array.from(d.table) : [], u.pagination.offset = 0;
|
|
2165
2165
|
}
|
|
2166
|
-
}, aa = (
|
|
2166
|
+
}, aa = (d, u = {
|
|
2167
2167
|
persistInQuery: !0
|
|
2168
2168
|
}) => {
|
|
2169
2169
|
const t = Ie().currentRoute;
|
|
2170
2170
|
return ue(() => t.value.query.section, (o) => {
|
|
2171
|
-
if (
|
|
2172
|
-
if (
|
|
2173
|
-
const
|
|
2174
|
-
Ot(
|
|
2171
|
+
if (d) {
|
|
2172
|
+
if (d.description.filtersPresets) {
|
|
2173
|
+
const c = o || Object.keys(d.description.filtersPresets)[0];
|
|
2174
|
+
Ot(d.description.filtersPresets[c], d);
|
|
2175
2175
|
}
|
|
2176
|
-
if (
|
|
2177
|
-
const
|
|
2178
|
-
|
|
2179
|
-
$search: `"${
|
|
2176
|
+
if (u.persistInQuery) {
|
|
2177
|
+
const c = t.value.query;
|
|
2178
|
+
c.offset && (d.pagination.offset = +c.offset), c.limit && (d.pagination.limit = +c.limit), c.search && (d.textQuery = c.search, d.filters.$text = {
|
|
2179
|
+
$search: `"${c.search}"`,
|
|
2180
2180
|
$caseSensitive: !1
|
|
2181
2181
|
});
|
|
2182
2182
|
}
|
|
@@ -2213,102 +2213,102 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2213
2213
|
layout: {}
|
|
2214
2214
|
},
|
|
2215
2215
|
emits: ["itemClick"],
|
|
2216
|
-
setup(
|
|
2217
|
-
const
|
|
2218
|
-
get: () =>
|
|
2219
|
-
set: (
|
|
2220
|
-
}), p =
|
|
2221
|
-
var
|
|
2222
|
-
const $ = (
|
|
2223
|
-
return !o.value.xl || !$ || !
|
|
2224
|
-
const Y = $[
|
|
2225
|
-
return Y && b(Y,
|
|
2216
|
+
setup(d, { emit: u }) {
|
|
2217
|
+
const a = d, t = u, o = Ue(), c = a.collection || Me(), r = c ? re(typeof c == "string" ? c : c.value) : null, _ = G({
|
|
2218
|
+
get: () => r == null ? void 0 : r.selected,
|
|
2219
|
+
set: (v) => r == null ? void 0 : r.$actions.selectManyItems(v, !0)
|
|
2220
|
+
}), p = G(() => a.columns ? Object.keys(a.columns).length + Number(a.checkbox) : 0), b = (v, $) => v.button ? typeof v.button == "object" ? We($, v.button).satisfied : v.button : !1, s = (v) => {
|
|
2221
|
+
var S;
|
|
2222
|
+
const $ = (S = a.layout) == null ? void 0 : S.actions;
|
|
2223
|
+
return !o.value.xl || !$ || !a.actions ? [] : a.actions.filter((O) => {
|
|
2224
|
+
const Y = $[O.action];
|
|
2225
|
+
return Y && b(Y, v);
|
|
2226
2226
|
});
|
|
2227
|
-
},
|
|
2228
|
-
var
|
|
2229
|
-
if (!
|
|
2227
|
+
}, l = (v) => {
|
|
2228
|
+
var S;
|
|
2229
|
+
if (!a.actions)
|
|
2230
2230
|
return [];
|
|
2231
|
-
const $ = (
|
|
2232
|
-
return !o.value.xl || !$ ?
|
|
2233
|
-
const Y = $[
|
|
2234
|
-
if (
|
|
2231
|
+
const $ = (S = a.layout) == null ? void 0 : S.actions;
|
|
2232
|
+
return !o.value.xl || !$ ? a.actions : a.actions.filter((O) => {
|
|
2233
|
+
const Y = $[O.action];
|
|
2234
|
+
if (O.roles) {
|
|
2235
2235
|
const ee = re("user");
|
|
2236
|
-
if (!gt(
|
|
2236
|
+
if (!gt(O.roles, ee.currentUser.roles))
|
|
2237
2237
|
return !1;
|
|
2238
2238
|
}
|
|
2239
|
-
return !Y || !b(Y,
|
|
2239
|
+
return !Y || !b(Y, v);
|
|
2240
2240
|
});
|
|
2241
|
-
}, w = (
|
|
2241
|
+
}, w = (v, $) => {
|
|
2242
2242
|
var Y, ee;
|
|
2243
|
-
const
|
|
2244
|
-
return
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
).satisfied ||
|
|
2243
|
+
const S = [], O = (ee = (Y = a.layout) == null ? void 0 : Y.actions) == null ? void 0 : ee[$.action];
|
|
2244
|
+
return O != null && O.if && (We(
|
|
2245
|
+
v,
|
|
2246
|
+
O.if
|
|
2247
|
+
).satisfied || S.push("display: none;")), S.join("");
|
|
2248
2248
|
};
|
|
2249
|
-
return (
|
|
2250
|
-
var
|
|
2251
|
-
const
|
|
2252
|
-
return p.value > 0 ||
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
])) : (n(),
|
|
2249
|
+
return (v, $) => {
|
|
2250
|
+
var O, Y, ee;
|
|
2251
|
+
const S = te("clickable");
|
|
2252
|
+
return p.value > 0 || v.$slots.thead ? (n(), i("table", la, [
|
|
2253
|
+
v.$slots.thead ? (n(), i("thead", sa, [
|
|
2254
|
+
C(v.$slots, "thead", {}, void 0, !0)
|
|
2255
|
+
])) : (n(), i("thead", ia, [
|
|
2256
2256
|
A("tr", null, [
|
|
2257
|
-
|
|
2257
|
+
v.checkbox && e(r) && e(o).md ? (n(), i("th", ra, [
|
|
2258
2258
|
A("input", {
|
|
2259
2259
|
type: "checkbox",
|
|
2260
|
-
checked: e(
|
|
2261
|
-
onChange: $[0] || ($[0] = (h) => e(
|
|
2260
|
+
checked: e(r).selected.length > 0 && e(r).selected.length === e(r).itemsCount,
|
|
2261
|
+
onChange: $[0] || ($[0] = (h) => e(r).$actions.selectAllItems(h.target.checked))
|
|
2262
2262
|
}, null, 40, ua)
|
|
2263
2263
|
])) : y("", !0),
|
|
2264
|
-
(n(!0),
|
|
2264
|
+
(n(!0), i(x, null, Q(Object.entries(v.columns), ([h, F], le) => (n(), i("th", {
|
|
2265
2265
|
key: `header-${le}`,
|
|
2266
2266
|
class: "table__header"
|
|
2267
|
-
},
|
|
2268
|
-
(
|
|
2267
|
+
}, V(F.description || e(R)(h)), 1))), 128)),
|
|
2268
|
+
(O = v.actions) != null && O.length ? (n(), i("th", ca)) : y("", !0)
|
|
2269
2269
|
])
|
|
2270
2270
|
])),
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
])) : (n(),
|
|
2274
|
-
(n(!0),
|
|
2271
|
+
v.$slots.tbody ? (n(), i("tbody", da, [
|
|
2272
|
+
C(v.$slots, "tbody", {}, void 0, !0)
|
|
2273
|
+
])) : (n(), i("tbody", pa, [
|
|
2274
|
+
(n(!0), i(x, null, Q(v.rows, (h) => {
|
|
2275
2275
|
var F, le;
|
|
2276
|
-
return n(),
|
|
2276
|
+
return n(), i("tr", {
|
|
2277
2277
|
key: h._id,
|
|
2278
|
-
onClick: (
|
|
2278
|
+
onClick: (T) => t("itemClick", h)
|
|
2279
2279
|
}, [
|
|
2280
|
-
e(
|
|
2280
|
+
e(r) && v.checkbox && e(o).md ? (n(), i("td", ma, [
|
|
2281
2281
|
P(A("input", {
|
|
2282
|
-
"onUpdate:modelValue": $[1] || ($[1] = (
|
|
2282
|
+
"onUpdate:modelValue": $[1] || ($[1] = (T) => _.value = T),
|
|
2283
2283
|
type: "checkbox",
|
|
2284
2284
|
value: h._id
|
|
2285
2285
|
}, null, 8, fa), [
|
|
2286
2286
|
[wt, _.value]
|
|
2287
2287
|
])
|
|
2288
2288
|
])) : y("", !0),
|
|
2289
|
-
(n(!0),
|
|
2289
|
+
(n(!0), i(x, null, Q(Object.entries(v.columns), ([T, g], j) => {
|
|
2290
2290
|
var ne, oe, M;
|
|
2291
|
-
return n(),
|
|
2291
|
+
return n(), i("td", {
|
|
2292
2292
|
key: `column-${h._id}-${j}`
|
|
2293
2293
|
}, [
|
|
2294
|
-
A("div", va,
|
|
2295
|
-
`row-${
|
|
2296
|
-
|
|
2297
|
-
store: e(
|
|
2298
|
-
column:
|
|
2294
|
+
A("div", va, V(g.description || e(R)(T)), 1),
|
|
2295
|
+
`row-${T}` in v.$slots ? (n(), i("div", ya, [
|
|
2296
|
+
C(v.$slots, `row-${T}`, E({ ref_for: !0 }, {
|
|
2297
|
+
store: e(r),
|
|
2298
|
+
column: T,
|
|
2299
2299
|
property: g,
|
|
2300
2300
|
row: h
|
|
2301
2301
|
}), void 0, !0)
|
|
2302
|
-
])) : (n(),
|
|
2302
|
+
])) : (n(), i("div", ha, [
|
|
2303
2303
|
A("div", ba, [
|
|
2304
|
-
"type" in g && g.type === "boolean" ? (n(),
|
|
2305
|
-
h[
|
|
2304
|
+
"type" in g && g.type === "boolean" ? (n(), i("div", $a, [
|
|
2305
|
+
h[T] ? (n(), k(Z, {
|
|
2306
2306
|
key: 0,
|
|
2307
2307
|
icon: "check",
|
|
2308
2308
|
"icon-classes": "aeria-blueish"
|
|
2309
2309
|
}, {
|
|
2310
|
-
default:
|
|
2311
|
-
|
|
2310
|
+
default: f(() => [
|
|
2311
|
+
D(V(e(R)("yes")), 1)
|
|
2312
2312
|
]),
|
|
2313
2313
|
_: 1
|
|
2314
2314
|
})) : (n(), k(Z, {
|
|
@@ -2316,50 +2316,50 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2316
2316
|
icon: "x",
|
|
2317
2317
|
"icon-classes": "aeria-redish"
|
|
2318
2318
|
}, {
|
|
2319
|
-
default:
|
|
2320
|
-
|
|
2319
|
+
default: f(() => [
|
|
2320
|
+
D(V(e(R)("no")), 1)
|
|
2321
2321
|
]),
|
|
2322
2322
|
_: 1
|
|
2323
2323
|
}))
|
|
2324
|
-
])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(),
|
|
2325
|
-
h[
|
|
2326
|
-
"items" in g && h[
|
|
2324
|
+
])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), i("div", ga, [
|
|
2325
|
+
h[T] ? (n(), i("div", ka, [
|
|
2326
|
+
"items" in g && h[T][0] && /^image/.test(h[T][0].type) ? (n(), k(He, {
|
|
2327
2327
|
key: 0,
|
|
2328
|
-
modelValue: h[
|
|
2329
|
-
"onUpdate:modelValue": (
|
|
2328
|
+
modelValue: h[T][0].link,
|
|
2329
|
+
"onUpdate:modelValue": (H) => h[T][0].link = H,
|
|
2330
2330
|
expandable: "",
|
|
2331
|
-
meta: h[
|
|
2331
|
+
meta: h[T][0],
|
|
2332
2332
|
alt: "Row image",
|
|
2333
2333
|
class: "table__picture"
|
|
2334
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[
|
|
2334
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[T].type) ? (n(), k(He, {
|
|
2335
2335
|
key: 1,
|
|
2336
|
-
modelValue: h[
|
|
2337
|
-
"onUpdate:modelValue": (
|
|
2336
|
+
modelValue: h[T].link,
|
|
2337
|
+
"onUpdate:modelValue": (H) => h[T].link = H,
|
|
2338
2338
|
expandable: "",
|
|
2339
|
-
meta: h[
|
|
2339
|
+
meta: h[T],
|
|
2340
2340
|
alt: "Row image",
|
|
2341
2341
|
class: "table__picture"
|
|
2342
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[
|
|
2342
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[T].link ? (n(), i("a", {
|
|
2343
2343
|
key: 2,
|
|
2344
|
-
href: h[
|
|
2344
|
+
href: h[T].link,
|
|
2345
2345
|
style: { "font-size": "10pt" }
|
|
2346
|
-
},
|
|
2347
|
-
])) : (n(),
|
|
2348
|
-
])) : (n(),
|
|
2349
|
-
e(
|
|
2350
|
-
value: h[
|
|
2351
|
-
key:
|
|
2346
|
+
}, V(h[T].filename), 9, Va)) : (n(), i("div", Ca, " - "))
|
|
2347
|
+
])) : (n(), i("div", Oa, " - "))
|
|
2348
|
+
])) : (n(), i("div", Ia, [
|
|
2349
|
+
e(r) ? (n(), i("span", Aa, V(e(r).$actions.formatValue({
|
|
2350
|
+
value: h[T],
|
|
2351
|
+
key: T,
|
|
2352
2352
|
property: g
|
|
2353
|
-
})), 1)) : (n(),
|
|
2354
|
-
((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(),
|
|
2355
|
-
(n(!0),
|
|
2353
|
+
})), 1)) : (n(), i("span", wa, V(Array.isArray(h[T]) ? h[T].filter((H) => !!H).join(", ") : [void 0, null].includes(h[T]) ? "-" : h[T]), 1)),
|
|
2354
|
+
((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), i("div", Ba, [
|
|
2355
|
+
(n(!0), i(x, null, Q(e(me)(g).indexes.slice(1, 2), (H, se) => (n(), i("div", {
|
|
2356
2356
|
key: `subvalue-${se}`,
|
|
2357
2357
|
class: "table__cell-subvalue"
|
|
2358
|
-
},
|
|
2359
|
-
value: h[
|
|
2360
|
-
key:
|
|
2358
|
+
}, V(e(r).$actions.formatValue({
|
|
2359
|
+
value: h[T],
|
|
2360
|
+
key: T,
|
|
2361
2361
|
property: g,
|
|
2362
|
-
index:
|
|
2362
|
+
index: H
|
|
2363
2363
|
})), 1))), 128))
|
|
2364
2364
|
])) : y("", !0)
|
|
2365
2365
|
]))
|
|
@@ -2367,72 +2367,72 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2367
2367
|
]))
|
|
2368
2368
|
]);
|
|
2369
2369
|
}), 128)),
|
|
2370
|
-
(F =
|
|
2370
|
+
(F = v.actions) != null && F.length && e(o).md ? (n(), i("td", Sa, [
|
|
2371
2371
|
A("div", Ta, [
|
|
2372
|
-
(n(!0),
|
|
2373
|
-
key: `action-${
|
|
2372
|
+
(n(!0), i(x, null, Q(s(h), (T) => (n(), k(ie, {
|
|
2373
|
+
key: `action-${T.action}`,
|
|
2374
2374
|
small: "",
|
|
2375
2375
|
variant: "alt",
|
|
2376
|
-
icon:
|
|
2377
|
-
style: be(w(h,
|
|
2378
|
-
onClick: (g) =>
|
|
2376
|
+
icon: T.icon,
|
|
2377
|
+
style: be(w(h, T)),
|
|
2378
|
+
onClick: (g) => T.click(h)
|
|
2379
2379
|
}, {
|
|
2380
|
-
default:
|
|
2381
|
-
|
|
2380
|
+
default: f(() => [
|
|
2381
|
+
D(V(e(R)(T.label)), 1)
|
|
2382
2382
|
]),
|
|
2383
2383
|
_: 2
|
|
2384
2384
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2385
|
-
|
|
2385
|
+
l(h).length > 0 ? (n(), k(Oe, E({
|
|
2386
2386
|
key: 0,
|
|
2387
2387
|
ref_for: !0
|
|
2388
2388
|
}, {
|
|
2389
2389
|
subject: h,
|
|
2390
|
-
actions:
|
|
2390
|
+
actions: l(h)
|
|
2391
2391
|
}), {
|
|
2392
|
-
default:
|
|
2393
|
-
visible:
|
|
2392
|
+
default: f(({
|
|
2393
|
+
visible: T
|
|
2394
2394
|
}) => [
|
|
2395
2395
|
P(z(Z, {
|
|
2396
2396
|
reactive: "",
|
|
2397
|
-
active:
|
|
2397
|
+
active: T,
|
|
2398
2398
|
icon: "dots-three"
|
|
2399
2399
|
}, null, 8, ["active"]), [
|
|
2400
|
-
[
|
|
2400
|
+
[S]
|
|
2401
2401
|
])
|
|
2402
2402
|
]),
|
|
2403
2403
|
_: 2
|
|
2404
2404
|
}, 1040)) : y("", !0)
|
|
2405
2405
|
])
|
|
2406
|
-
])) : (le =
|
|
2406
|
+
])) : (le = v.actions) != null && le.length ? (n(), i("td", ja, [
|
|
2407
2407
|
A("div", {
|
|
2408
2408
|
class: "table__mobile-actions-grid",
|
|
2409
|
-
style: be(`grid-template-columns: repeat(${
|
|
2409
|
+
style: be(`grid-template-columns: repeat(${s(h).length + (l(h).length ? 1 : 0)}, 1fr);`)
|
|
2410
2410
|
}, [
|
|
2411
|
-
(n(!0),
|
|
2412
|
-
key: `action-${
|
|
2411
|
+
(n(!0), i(x, null, Q(s(h), (T) => (n(), k(ve, {
|
|
2412
|
+
key: `action-${T.action}`,
|
|
2413
2413
|
class: "table__mobile-actions-button",
|
|
2414
|
-
onClick: (g) =>
|
|
2414
|
+
onClick: (g) => T.click(h)
|
|
2415
2415
|
}, {
|
|
2416
|
-
default:
|
|
2416
|
+
default: f(() => [
|
|
2417
2417
|
z(Z, {
|
|
2418
|
-
icon:
|
|
2418
|
+
icon: T.icon || "gear"
|
|
2419
2419
|
}, {
|
|
2420
|
-
default:
|
|
2421
|
-
|
|
2420
|
+
default: f(() => [
|
|
2421
|
+
D(V(e(R)(T.label)), 1)
|
|
2422
2422
|
]),
|
|
2423
2423
|
_: 2
|
|
2424
2424
|
}, 1032, ["icon"])
|
|
2425
2425
|
]),
|
|
2426
2426
|
_: 2
|
|
2427
2427
|
}, 1032, ["onClick"]))), 128)),
|
|
2428
|
-
|
|
2428
|
+
l(h).length > 0 ? (n(), k(Oe, E({
|
|
2429
2429
|
key: 0,
|
|
2430
2430
|
ref_for: !0
|
|
2431
2431
|
}, {
|
|
2432
2432
|
subject: h,
|
|
2433
|
-
actions:
|
|
2433
|
+
actions: l(h)
|
|
2434
2434
|
}), {
|
|
2435
|
-
default:
|
|
2435
|
+
default: f(() => [
|
|
2436
2436
|
z(Z, {
|
|
2437
2437
|
icon: "dots-three",
|
|
2438
2438
|
class: "table__mobile-actions-button"
|
|
@@ -2449,11 +2449,11 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2449
2449
|
}), 128))
|
|
2450
2450
|
])),
|
|
2451
2451
|
A("tfoot", null, [
|
|
2452
|
-
|
|
2452
|
+
v.$slots.tfoot ? C(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((Y = v.rows) != null && Y.length) && !((ee = e(r)) != null && ee.loading.getAll) ? (n(), i("tr", La, [
|
|
2453
2453
|
A("td", {
|
|
2454
2454
|
colspan: p.value + 1
|
|
2455
2455
|
}, [
|
|
2456
|
-
A("div", qa,
|
|
2456
|
+
A("div", qa, V(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
|
|
2457
2457
|
], 8, za)
|
|
2458
2458
|
])) : y("", !0)
|
|
2459
2459
|
])
|
|
@@ -2468,27 +2468,27 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
|
|
|
2468
2468
|
layoutOptions: {},
|
|
2469
2469
|
componentProps: {}
|
|
2470
2470
|
},
|
|
2471
|
-
setup(
|
|
2472
|
-
const
|
|
2473
|
-
const
|
|
2471
|
+
setup(d) {
|
|
2472
|
+
const u = d, a = Le(), t = Me(), o = G(() => {
|
|
2473
|
+
const c = {
|
|
2474
2474
|
collection: t,
|
|
2475
|
-
checkbox:
|
|
2476
|
-
columns:
|
|
2477
|
-
rows:
|
|
2478
|
-
actions:
|
|
2479
|
-
layout:
|
|
2475
|
+
checkbox: a.hasSelectionActions,
|
|
2476
|
+
columns: a.tableProperties,
|
|
2477
|
+
rows: a.items,
|
|
2478
|
+
actions: u.individualActions,
|
|
2479
|
+
layout: a.tableLayout
|
|
2480
2480
|
};
|
|
2481
|
-
return Object.assign(
|
|
2481
|
+
return Object.assign(c, u.componentProps);
|
|
2482
2482
|
});
|
|
2483
|
-
return (
|
|
2484
|
-
|
|
2485
|
-
e(
|
|
2486
|
-
key: e(
|
|
2483
|
+
return (c, r) => (n(), i("div", null, [
|
|
2484
|
+
c.$slots.inner ? C(c.$slots, "inner", { key: 0 }) : y("", !0),
|
|
2485
|
+
e(a).properties ? (n(), k(Fa, E({ key: 1 }, o.value, {
|
|
2486
|
+
key: e(a).$id
|
|
2487
2487
|
}), ce({ _: 2 }, [
|
|
2488
|
-
|
|
2488
|
+
Q(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
|
|
2489
2489
|
name: _,
|
|
2490
|
-
fn:
|
|
2491
|
-
|
|
2490
|
+
fn: f((p) => [
|
|
2491
|
+
C(c.$slots, _, de(ge(p)))
|
|
2492
2492
|
])
|
|
2493
2493
|
}))
|
|
2494
2494
|
]), 1040)) : y("", !0)
|
|
@@ -2499,14 +2499,14 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
|
|
|
2499
2499
|
props: {
|
|
2500
2500
|
list: { type: Boolean }
|
|
2501
2501
|
},
|
|
2502
|
-
setup(
|
|
2503
|
-
return (
|
|
2502
|
+
setup(d) {
|
|
2503
|
+
return (u, a) => (n(), i("div", {
|
|
2504
2504
|
class: X(`
|
|
2505
2505
|
grid
|
|
2506
|
-
${
|
|
2506
|
+
${u.list && "grid--list"}
|
|
2507
2507
|
`)
|
|
2508
2508
|
}, [
|
|
2509
|
-
|
|
2509
|
+
C(u.$slots, "default", {}, void 0, !0)
|
|
2510
2510
|
], 2));
|
|
2511
2511
|
}
|
|
2512
2512
|
});
|
|
@@ -2521,32 +2521,32 @@ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key
|
|
|
2521
2521
|
layoutOptions: {},
|
|
2522
2522
|
componentName: {}
|
|
2523
2523
|
},
|
|
2524
|
-
setup(
|
|
2525
|
-
const
|
|
2526
|
-
return (
|
|
2524
|
+
setup(d) {
|
|
2525
|
+
const a = d.layoutOptions, t = Le(), o = (c) => Array.isArray(c) ? c[0] : c;
|
|
2526
|
+
return (c, r) => {
|
|
2527
2527
|
const _ = te("clickable");
|
|
2528
2528
|
return n(), k(Ha, {
|
|
2529
|
-
list:
|
|
2529
|
+
list: c.componentName === "list"
|
|
2530
2530
|
}, {
|
|
2531
|
-
default:
|
|
2532
|
-
(n(!0),
|
|
2531
|
+
default: f(() => [
|
|
2532
|
+
(n(!0), i(x, null, Q(e(t).items, (p) => (n(), k(pn, {
|
|
2533
2533
|
key: p,
|
|
2534
|
-
inactive: !!(e(
|
|
2535
|
-
horizontal:
|
|
2534
|
+
inactive: !!(e(a).active && !p[e(a).active]),
|
|
2535
|
+
horizontal: c.componentName === "list"
|
|
2536
2536
|
}, ce({
|
|
2537
|
-
footer:
|
|
2538
|
-
e(
|
|
2539
|
-
e(
|
|
2537
|
+
footer: f(() => [
|
|
2538
|
+
e(a).title ? (n(), i("div", Da, V(p[e(a).title]), 1)) : y("", !0),
|
|
2539
|
+
e(a).information ? (n(), i("div", Qa, V(p[e(a).information]), 1)) : y("", !0)
|
|
2540
2540
|
]),
|
|
2541
|
-
actions:
|
|
2542
|
-
|
|
2541
|
+
actions: f(() => [
|
|
2542
|
+
c.individualActions.length > 0 ? (n(), k(Oe, E({
|
|
2543
2543
|
key: 0,
|
|
2544
2544
|
ref_for: !0
|
|
2545
2545
|
}, {
|
|
2546
2546
|
subject: p,
|
|
2547
|
-
actions:
|
|
2547
|
+
actions: c.individualActions
|
|
2548
2548
|
}), {
|
|
2549
|
-
default:
|
|
2549
|
+
default: f(({
|
|
2550
2550
|
visible: b
|
|
2551
2551
|
}) => [
|
|
2552
2552
|
P(z(Z, {
|
|
@@ -2560,39 +2560,39 @@ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key
|
|
|
2560
2560
|
_: 2
|
|
2561
2561
|
}, 1040)) : y("", !0)
|
|
2562
2562
|
]),
|
|
2563
|
-
default:
|
|
2563
|
+
default: f(() => {
|
|
2564
2564
|
var b;
|
|
2565
2565
|
return [
|
|
2566
2566
|
z(He, {
|
|
2567
2567
|
alt: "Item picture",
|
|
2568
2568
|
expandable: "",
|
|
2569
|
-
url: (b = o(p[e(
|
|
2570
|
-
meta: o(p[e(
|
|
2569
|
+
url: (b = o(p[e(a).picture])) == null ? void 0 : b.link,
|
|
2570
|
+
meta: o(p[e(a).picture])
|
|
2571
2571
|
}, null, 8, ["url", "meta"])
|
|
2572
2572
|
];
|
|
2573
2573
|
}),
|
|
2574
2574
|
_: 2
|
|
2575
2575
|
}, [
|
|
2576
|
-
e(
|
|
2576
|
+
e(a).badge && Array.isArray(p[e(a).badge]) ? {
|
|
2577
2577
|
name: "badge",
|
|
2578
|
-
fn:
|
|
2579
|
-
(n(!0),
|
|
2578
|
+
fn: f(() => [
|
|
2579
|
+
(n(!0), i(x, null, Q(p[e(a).badge], (b) => (n(), k($e, {
|
|
2580
2580
|
key: `${p._id}-${b}`,
|
|
2581
2581
|
large: ""
|
|
2582
2582
|
}, {
|
|
2583
|
-
default:
|
|
2584
|
-
|
|
2583
|
+
default: f(() => [
|
|
2584
|
+
D(V(e(a).translateBadge ? e(R)(b) : b), 1)
|
|
2585
2585
|
]),
|
|
2586
2586
|
_: 2
|
|
2587
2587
|
}, 1024))), 128))
|
|
2588
2588
|
]),
|
|
2589
2589
|
key: "0"
|
|
2590
|
-
} : e(
|
|
2590
|
+
} : e(a).badge ? {
|
|
2591
2591
|
name: "badge",
|
|
2592
|
-
fn:
|
|
2592
|
+
fn: f(() => [
|
|
2593
2593
|
z($e, null, {
|
|
2594
|
-
default:
|
|
2595
|
-
|
|
2594
|
+
default: f(() => [
|
|
2595
|
+
D(V(e(a).translateBadge ? e(R)(p[e(a).badge]) : p[e(a).badge]), 1)
|
|
2596
2596
|
]),
|
|
2597
2597
|
_: 2
|
|
2598
2598
|
}, 1024)
|
|
@@ -2606,13 +2606,13 @@ const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key
|
|
|
2606
2606
|
};
|
|
2607
2607
|
}
|
|
2608
2608
|
});
|
|
2609
|
-
const yt = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-6ea2d642"]]), Wa = (
|
|
2609
|
+
const yt = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-6ea2d642"]]), Wa = (d) => ({
|
|
2610
2610
|
tabular: Ua,
|
|
2611
2611
|
grid: yt,
|
|
2612
2612
|
list: yt
|
|
2613
|
-
})[
|
|
2613
|
+
})[d], pe = J(!1);
|
|
2614
2614
|
J(!1);
|
|
2615
|
-
const Ve = J(!1), Re = J((...
|
|
2615
|
+
const Ve = J(!1), Re = J((...d) => null), ht = J(), Ka = (d) => (Ye("data-v-d5684d74"), d = d(), Je(), d), Xa = {
|
|
2616
2616
|
key: 2,
|
|
2617
2617
|
class: "crud__controls"
|
|
2618
2618
|
}, Ya = {
|
|
@@ -2636,42 +2636,42 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2636
2636
|
noQueryPersistence: { type: Boolean }
|
|
2637
2637
|
},
|
|
2638
2638
|
emits: ["uiEvent"],
|
|
2639
|
-
setup(
|
|
2640
|
-
const
|
|
2639
|
+
setup(d, { emit: u }) {
|
|
2640
|
+
const a = d, t = u, o = Ie(), c = Vt({
|
|
2641
2641
|
delay: 600
|
|
2642
|
-
}),
|
|
2642
|
+
}), r = re("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
|
|
2643
2643
|
antecipate: 600
|
|
2644
|
-
}),
|
|
2645
|
-
|
|
2646
|
-
g &&
|
|
2644
|
+
}), s = !_.value.md || a.scrollPagination;
|
|
2645
|
+
s && ue(p, (g) => {
|
|
2646
|
+
g && l.pagination.recordsTotal > l.items.length && $.value < bt && ($.value += 1, O());
|
|
2647
2647
|
});
|
|
2648
|
-
const
|
|
2649
|
-
aa(
|
|
2650
|
-
persistInQuery: !
|
|
2648
|
+
const l = Gt(a.collection);
|
|
2649
|
+
aa(l, {
|
|
2650
|
+
persistInQuery: !a.noQueryPersistence
|
|
2651
2651
|
});
|
|
2652
|
-
const w = Ze(),
|
|
2653
|
-
Re.value =
|
|
2654
|
-
const $ = J(0),
|
|
2655
|
-
|
|
2652
|
+
const w = Ze(), v = a.action ? e(a.action) : Wt(l, o, w);
|
|
2653
|
+
Re.value = v[0], ht.value = v[1];
|
|
2654
|
+
const $ = J(0), S = J(!1), O = async (g) => {
|
|
2655
|
+
l.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || l.$filters), Object.assign(l.activeFilters, l.filtersPreset);
|
|
2656
2656
|
const j = {
|
|
2657
|
-
filters:
|
|
2658
|
-
limit:
|
|
2659
|
-
offset:
|
|
2660
|
-
project:
|
|
2657
|
+
filters: l.activeFilters,
|
|
2658
|
+
limit: l.pagination.limit,
|
|
2659
|
+
offset: l.pagination.offset,
|
|
2660
|
+
project: l.preferredTableProperties.length > 0 ? l.preferredTableProperties : l.description.table || Object.keys(l.properties)
|
|
2661
2661
|
};
|
|
2662
|
-
$.value > 0 && (j.limit = 15, j.offset = $.value * j.limit),
|
|
2663
|
-
const { error: ne, result: oe } = await
|
|
2662
|
+
$.value > 0 && (j.limit = 15, j.offset = $.value * j.limit), l.description.tableMeta && (j.project = j.project.concat(l.description.tableMeta)), g && Object.assign(j, g), l.loading.getAll = !0;
|
|
2663
|
+
const { error: ne, result: oe } = await l.$actions.retrieveItems(j);
|
|
2664
2664
|
if (ne)
|
|
2665
2665
|
return;
|
|
2666
|
-
const { data: M, pagination:
|
|
2667
|
-
|
|
2666
|
+
const { data: M, pagination: H } = oe;
|
|
2667
|
+
l.pagination.recordsCount = H.recordsCount, l.pagination.recordsTotal = H.recordsTotal, $.value === 0 && l.items.splice(0), l.items.push(...M), l.loading.getAll = !1, S.value = !0;
|
|
2668
2668
|
}, Y = async (g) => {
|
|
2669
2669
|
o.push(qe(o.currentRoute.value, {
|
|
2670
2670
|
query: {
|
|
2671
2671
|
offset: g.offset,
|
|
2672
2672
|
limit: g.limit
|
|
2673
2673
|
}
|
|
2674
|
-
})),
|
|
2674
|
+
})), l.pagination.offset = g.offset, l.pagination.limit = g.limit, O();
|
|
2675
2675
|
}, ee = _e("noResultsComponent", null);
|
|
2676
2676
|
ue(() => [
|
|
2677
2677
|
o.currentRoute.value.path,
|
|
@@ -2680,60 +2680,60 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2680
2680
|
if (j && j[0] === g[0] && j[1] === g[1])
|
|
2681
2681
|
return;
|
|
2682
2682
|
const ne = o.currentRoute.value;
|
|
2683
|
-
if (
|
|
2684
|
-
const oe = Kt(
|
|
2685
|
-
Object.keys(oe).length > 0 && Object.assign(
|
|
2683
|
+
if (r.view.title = a.collection, r.view.collection = a.collection, !a.noFetch && (!ne.query._popstate || l.itemsCount === 0)) {
|
|
2684
|
+
const oe = Kt(l, ne);
|
|
2685
|
+
Object.keys(oe).length > 0 && Object.assign(l.filters, oe), await O();
|
|
2686
2686
|
}
|
|
2687
2687
|
}, {
|
|
2688
2688
|
immediate: !0,
|
|
2689
2689
|
flush: "post"
|
|
2690
2690
|
});
|
|
2691
|
-
const [h] =
|
|
2691
|
+
const [h] = c((g) => (o.push(qe(o.currentRoute.value, {
|
|
2692
2692
|
query: {
|
|
2693
2693
|
search: g || void 0
|
|
2694
2694
|
}
|
|
2695
|
-
})), g ? (
|
|
2695
|
+
})), g ? (l.filters = Object.assign(Ce(l.freshFilters), {
|
|
2696
2696
|
$text: {
|
|
2697
2697
|
$search: `"${g}"`,
|
|
2698
2698
|
$caseSensitive: !1
|
|
2699
2699
|
}
|
|
2700
|
-
}),
|
|
2700
|
+
}), O({
|
|
2701
2701
|
offset: 0
|
|
2702
|
-
})) : (
|
|
2703
|
-
ue(() =>
|
|
2702
|
+
})) : (l.filters = Ce(l.freshFilters), $.value = 0, O())));
|
|
2703
|
+
ue(() => l.textQuery, (g) => {
|
|
2704
2704
|
h(g);
|
|
2705
2705
|
});
|
|
2706
2706
|
const F = (g) => {
|
|
2707
2707
|
g.currentLayout = g.currentLayout === "tabular" ? g.description.layout.name : "tabular";
|
|
2708
2708
|
};
|
|
2709
2709
|
Bt(() => {
|
|
2710
|
-
|
|
2710
|
+
l.$actions.clearFilters(), l.textQuery = "", b();
|
|
2711
2711
|
}), ue(() => ht.value, async (g) => {
|
|
2712
2712
|
var oe;
|
|
2713
2713
|
const j = Ce(g);
|
|
2714
2714
|
let ne;
|
|
2715
2715
|
if (j)
|
|
2716
|
-
if ((j.name === "spawnEdit" || j.name === "duplicate") && (ne =
|
|
2716
|
+
if ((j.name === "spawnEdit" || j.name === "duplicate") && (ne = l.$actions.get({
|
|
2717
2717
|
filters: {
|
|
2718
2718
|
_id: j.params._id
|
|
2719
2719
|
}
|
|
2720
2720
|
})), j.name === "spawnAdd")
|
|
2721
|
-
|
|
2722
|
-
delete
|
|
2721
|
+
l.$actions.clearItem(), (oe = j.params) != null && oe.item && (l.$actions.setItem(j.params.item), Object.keys(j.params.item).forEach((M) => {
|
|
2722
|
+
delete l.referenceItem[M];
|
|
2723
2723
|
})), pe.value = "add";
|
|
2724
2724
|
else if (j.name === "spawnEdit")
|
|
2725
|
-
|
|
2725
|
+
l.$actions.setItem(j.params), pe.value = "edit";
|
|
2726
2726
|
else if (j.name === "duplicate") {
|
|
2727
2727
|
await ne;
|
|
2728
|
-
const M = Object.entries(
|
|
2729
|
-
if (!(se in
|
|
2728
|
+
const M = Object.entries(l.item).reduce((H, [se, ae]) => {
|
|
2729
|
+
if (!(se in l.properties))
|
|
2730
2730
|
return {
|
|
2731
|
-
...
|
|
2731
|
+
...H,
|
|
2732
2732
|
[se]: ae
|
|
2733
2733
|
};
|
|
2734
|
-
const m =
|
|
2734
|
+
const m = l.properties[se];
|
|
2735
2735
|
if (m.readOnly)
|
|
2736
|
-
return
|
|
2736
|
+
return H;
|
|
2737
2737
|
const L = (K) => {
|
|
2738
2738
|
const B = me(m);
|
|
2739
2739
|
if (!B)
|
|
@@ -2747,28 +2747,28 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2747
2747
|
return K;
|
|
2748
2748
|
};
|
|
2749
2749
|
return ae = Array.isArray(ae) ? ae.map(L) : L(ae), {
|
|
2750
|
-
...
|
|
2750
|
+
...H,
|
|
2751
2751
|
[se]: ae
|
|
2752
2752
|
};
|
|
2753
2753
|
}, {});
|
|
2754
|
-
|
|
2754
|
+
l.$actions.setItem(M), delete l.item._id, l.referenceItem = {}, pe.value = "duplicate";
|
|
2755
2755
|
} else
|
|
2756
2756
|
t("uiEvent", j);
|
|
2757
2757
|
}, {
|
|
2758
2758
|
deep: !0
|
|
2759
2759
|
}), ue(() => pe, ({ value: g }) => {
|
|
2760
|
-
g === !1 && (
|
|
2760
|
+
g === !1 && (r.view.collection = a.collection, l.$actions.clearItem());
|
|
2761
2761
|
});
|
|
2762
|
-
const le =
|
|
2762
|
+
const le = G(() => l.individualActions.map((g) => ({
|
|
2763
2763
|
click: Re.value(g),
|
|
2764
2764
|
...g
|
|
2765
|
-
}))),
|
|
2766
|
-
return ye(Fe,
|
|
2767
|
-
var M,
|
|
2765
|
+
}))), T = G(() => l.actions.filter((g) => !g.button));
|
|
2766
|
+
return ye(Fe, G(() => a.collection)), ye("individualActions", le), (g, j) => {
|
|
2767
|
+
var M, H, se, ae, m, L, K;
|
|
2768
2768
|
const ne = te("clickable"), oe = te("loading");
|
|
2769
|
-
return n(),
|
|
2769
|
+
return n(), i(x, null, [
|
|
2770
2770
|
e(Ve) ? (n(), k(na, {
|
|
2771
|
-
key: e(
|
|
2771
|
+
key: e(l).$id,
|
|
2772
2772
|
modelValue: e(Ve),
|
|
2773
2773
|
"onUpdate:modelValue": j[0] || (j[0] = (B) => mt(Ve) ? Ve.value = B : null)
|
|
2774
2774
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
@@ -2779,8 +2779,8 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2779
2779
|
"fixed-right": "",
|
|
2780
2780
|
onCancel: j[2] || (j[2] = (B) => pe.value = !1)
|
|
2781
2781
|
}, ce({
|
|
2782
|
-
header:
|
|
2783
|
-
A("span", null,
|
|
2782
|
+
header: f(() => [
|
|
2783
|
+
A("span", null, V((() => {
|
|
2784
2784
|
switch (e(pe)) {
|
|
2785
2785
|
case "add":
|
|
2786
2786
|
return e(R)("action.add", { capitalize: !0 });
|
|
@@ -2791,41 +2791,41 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2791
2791
|
return e(R)("action.edit", { capitalize: !0 });
|
|
2792
2792
|
}
|
|
2793
2793
|
})()), 1),
|
|
2794
|
-
A("span", null, " " +
|
|
2794
|
+
A("span", null, " " + V(e(R)(e(r).view.collection)), 1)
|
|
2795
2795
|
]),
|
|
2796
2796
|
_: 2
|
|
2797
2797
|
}, [
|
|
2798
|
-
|
|
2798
|
+
Q(Object.keys(g.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
2799
2799
|
name: B,
|
|
2800
|
-
fn:
|
|
2801
|
-
|
|
2800
|
+
fn: f((I) => [
|
|
2801
|
+
C(g.$slots, B, de(ge(I)), void 0, !0)
|
|
2802
2802
|
])
|
|
2803
2803
|
}))
|
|
2804
2804
|
]), 1032, ["visible"])) : y("", !0),
|
|
2805
|
-
!g.noActions && (e(
|
|
2806
|
-
e(
|
|
2805
|
+
!g.noActions && (e(l).description.search || Object.keys(e(l).availableFilters).length > 0 || ((M = e(l)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(l).description.layout && ((H = e(l).description.layout) == null ? void 0 : H.name) !== "tabular") ? (n(), i("div", Xa, [
|
|
2806
|
+
e(l).description.search ? (n(), i("div", Ya, [
|
|
2807
2807
|
z(ke, E({
|
|
2808
|
-
modelValue: e(
|
|
2809
|
-
"onUpdate:modelValue": j[3] || (j[3] = (B) => e(
|
|
2808
|
+
modelValue: e(l).textQuery,
|
|
2809
|
+
"onUpdate:modelValue": j[3] || (j[3] = (B) => e(l).textQuery = B)
|
|
2810
2810
|
}, {
|
|
2811
2811
|
property: {
|
|
2812
2812
|
type: "string",
|
|
2813
|
-
placeholder: e(
|
|
2813
|
+
placeholder: e(l).description.search.placeholder || "Pesquise aqui",
|
|
2814
2814
|
inputType: "search"
|
|
2815
2815
|
}
|
|
2816
2816
|
}), null, 16, ["modelValue"])
|
|
2817
2817
|
])) : y("", !0),
|
|
2818
2818
|
A("div", Ja, [
|
|
2819
|
-
|
|
2820
|
-
default:
|
|
2819
|
+
T.value.length > 0 || !g.noLayoutToggle && e(l).description.layout && ((se = e(l).description.layout) == null ? void 0 : se.name) !== "tabular" ? (n(), k(Oe, { key: 0 }, ce({
|
|
2820
|
+
default: f(() => [
|
|
2821
2821
|
z(ie, {
|
|
2822
2822
|
variant: "alt",
|
|
2823
2823
|
icon: "sliders"
|
|
2824
2824
|
}, {
|
|
2825
|
-
default:
|
|
2826
|
-
e(
|
|
2827
|
-
default:
|
|
2828
|
-
|
|
2825
|
+
default: f(() => [
|
|
2826
|
+
e(l).filtersCount ? (n(), k($e, { key: 0 }, {
|
|
2827
|
+
default: f(() => [
|
|
2828
|
+
D(V(e(l).filtersCount), 1)
|
|
2829
2829
|
]),
|
|
2830
2830
|
_: 1
|
|
2831
2831
|
})) : y("", !0)
|
|
@@ -2835,24 +2835,24 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2835
2835
|
]),
|
|
2836
2836
|
_: 2
|
|
2837
2837
|
}, [
|
|
2838
|
-
Object.keys(e(
|
|
2838
|
+
Object.keys(e(l).availableFilters).length > 0 ? {
|
|
2839
2839
|
name: "filter",
|
|
2840
|
-
fn:
|
|
2840
|
+
fn: f(() => [
|
|
2841
2841
|
P((n(), k(Z, {
|
|
2842
2842
|
icon: "funnel",
|
|
2843
2843
|
onClick: j[4] || (j[4] = (B) => Ve.value = !0)
|
|
2844
2844
|
}, {
|
|
2845
|
-
default:
|
|
2846
|
-
|
|
2845
|
+
default: f(() => [
|
|
2846
|
+
D(V(e(R)("filters", { capitalize: !0 })), 1)
|
|
2847
2847
|
]),
|
|
2848
2848
|
_: 1
|
|
2849
2849
|
})), [
|
|
2850
2850
|
[ne]
|
|
2851
2851
|
]),
|
|
2852
2852
|
A("div", Za, [
|
|
2853
|
-
e(
|
|
2854
|
-
default:
|
|
2855
|
-
|
|
2853
|
+
e(l).filtersCount ? (n(), k($e, { key: 0 }, {
|
|
2854
|
+
default: f(() => [
|
|
2855
|
+
D(V(e(l).filtersCount), 1)
|
|
2856
2856
|
]),
|
|
2857
2857
|
_: 1
|
|
2858
2858
|
})) : y("", !0)
|
|
@@ -2860,15 +2860,15 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2860
2860
|
]),
|
|
2861
2861
|
key: "0"
|
|
2862
2862
|
} : void 0,
|
|
2863
|
-
!g.noLayoutToggle && e(
|
|
2863
|
+
!g.noLayoutToggle && e(l).description.layout && ((ae = e(l).description.layout) == null ? void 0 : ae.name) !== "tabular" ? {
|
|
2864
2864
|
name: "layout-toggle",
|
|
2865
|
-
fn:
|
|
2865
|
+
fn: f(() => [
|
|
2866
2866
|
P((n(), k(Z, {
|
|
2867
2867
|
icon: "table",
|
|
2868
|
-
onClick: j[5] || (j[5] = (B) => F(e(
|
|
2868
|
+
onClick: j[5] || (j[5] = (B) => F(e(l)))
|
|
2869
2869
|
}, {
|
|
2870
|
-
default:
|
|
2871
|
-
|
|
2870
|
+
default: f(() => [
|
|
2871
|
+
D(V(e(R)("change_layout", { capitalize: !0 })), 1)
|
|
2872
2872
|
]),
|
|
2873
2873
|
_: 1
|
|
2874
2874
|
})), [
|
|
@@ -2877,60 +2877,60 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2877
2877
|
]),
|
|
2878
2878
|
key: "1"
|
|
2879
2879
|
} : void 0,
|
|
2880
|
-
|
|
2880
|
+
Q(T.value, (B, I) => ({
|
|
2881
2881
|
name: `action-${I}`,
|
|
2882
|
-
fn:
|
|
2882
|
+
fn: f(() => [
|
|
2883
2883
|
B ? (n(), k(Z, {
|
|
2884
2884
|
key: 0,
|
|
2885
2885
|
icon: B.icon || "gear",
|
|
2886
|
-
disabled: e(
|
|
2887
|
-
onClick: (q) => e(Re)(B)({ _id: e(
|
|
2886
|
+
disabled: e(l).selected.length === 0 && "selection" in B && B.selection,
|
|
2887
|
+
onClick: (q) => e(Re)(B)({ _id: e(l).selected.map((fe) => fe._id) })
|
|
2888
2888
|
}, {
|
|
2889
|
-
default:
|
|
2890
|
-
|
|
2889
|
+
default: f(() => [
|
|
2890
|
+
D(V(e(R)(B.label, { capitalize: !0 })), 1)
|
|
2891
2891
|
]),
|
|
2892
2892
|
_: 2
|
|
2893
2893
|
}, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
|
|
2894
2894
|
])
|
|
2895
2895
|
}))
|
|
2896
|
-
]), 1024)) : Object.keys(e(
|
|
2896
|
+
]), 1024)) : Object.keys(e(l).availableFilters).length > 0 ? (n(), k(ie, {
|
|
2897
2897
|
key: 1,
|
|
2898
2898
|
variant: "alt",
|
|
2899
2899
|
icon: "funnel",
|
|
2900
2900
|
onClick: j[6] || (j[6] = (B) => Ve.value = !0)
|
|
2901
2901
|
}, {
|
|
2902
|
-
default:
|
|
2902
|
+
default: f(() => [
|
|
2903
2903
|
Pa,
|
|
2904
|
-
e(
|
|
2905
|
-
default:
|
|
2906
|
-
|
|
2904
|
+
e(l).filtersCount ? (n(), k($e, { key: 0 }, {
|
|
2905
|
+
default: f(() => [
|
|
2906
|
+
D(V(e(l).filtersCount), 1)
|
|
2907
2907
|
]),
|
|
2908
2908
|
_: 1
|
|
2909
2909
|
})) : y("", !0)
|
|
2910
2910
|
]),
|
|
2911
2911
|
_: 1
|
|
2912
2912
|
})) : y("", !0),
|
|
2913
|
-
(n(!0),
|
|
2913
|
+
(n(!0), i(x, null, Q(e(l).actions.filter((B) => B.button), (B, I) => (n(), k(ie, {
|
|
2914
2914
|
key: `action-${I}`,
|
|
2915
2915
|
icon: B.icon,
|
|
2916
|
-
disabled: e(
|
|
2917
|
-
onClick: (q) => e(Re)(B)({ _id: e(
|
|
2916
|
+
disabled: e(l).selected.length === 0 && "selection" in B && B.selection,
|
|
2917
|
+
onClick: (q) => e(Re)(B)({ _id: e(l).selected.map((fe) => fe._id) })
|
|
2918
2918
|
}, {
|
|
2919
|
-
default:
|
|
2920
|
-
|
|
2919
|
+
default: f(() => [
|
|
2920
|
+
D(V(e(R)(B.label, { capitalize: !0 })), 1)
|
|
2921
2921
|
]),
|
|
2922
2922
|
_: 2
|
|
2923
2923
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2924
|
-
g.$slots.actions ?
|
|
2924
|
+
g.$slots.actions ? C(g.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
|
|
2925
2925
|
])
|
|
2926
2926
|
])) : y("", !0),
|
|
2927
|
-
P((n(),
|
|
2928
|
-
e(
|
|
2927
|
+
P((n(), i("div", null, [
|
|
2928
|
+
e(l).itemsCount === 0 && !e(l).loading.getAll && S.value && (e(ee) || g.$slots.empty) ? (n(), i("div", Na, [
|
|
2929
2929
|
e(ee) ? (n(), k(he(e(ee)), de(E({ key: 0 }, {
|
|
2930
|
-
collection: e(
|
|
2930
|
+
collection: e(l).$id
|
|
2931
2931
|
})), {
|
|
2932
|
-
default:
|
|
2933
|
-
e(
|
|
2932
|
+
default: f(() => [
|
|
2933
|
+
e(l).filtersCount === 0 && e(l).description.actions && "spawnAdd" in e(l).description.actions ? (n(), k(ie, {
|
|
2934
2934
|
key: 0,
|
|
2935
2935
|
icon: "plus",
|
|
2936
2936
|
onClick: j[7] || (j[7] = (B) => e(Re)({
|
|
@@ -2938,45 +2938,45 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2938
2938
|
event: "spawnAdd"
|
|
2939
2939
|
})())
|
|
2940
2940
|
}, {
|
|
2941
|
-
default:
|
|
2942
|
-
|
|
2941
|
+
default: f(() => [
|
|
2942
|
+
D(V(e(R)("add_first_item", { capitalize: !0 })), 1)
|
|
2943
2943
|
]),
|
|
2944
2944
|
_: 1
|
|
2945
2945
|
})) : y("", !0)
|
|
2946
2946
|
]),
|
|
2947
2947
|
_: 1
|
|
2948
|
-
}, 16)) :
|
|
2949
|
-
collection: e(
|
|
2948
|
+
}, 16)) : C(g.$slots, "empty", de(E({ key: 1 }, {
|
|
2949
|
+
collection: e(l).$id
|
|
2950
2950
|
})), void 0, !0)
|
|
2951
|
-
])) : g.$slots.component ?
|
|
2952
|
-
store: e(
|
|
2953
|
-
})), void 0, !0) : (n(), k(he(e(Wa)(((m = g.layout) == null ? void 0 : m.name) || e(
|
|
2951
|
+
])) : g.$slots.component ? C(g.$slots, "component", de(E({ key: 1 }, {
|
|
2952
|
+
store: e(l)
|
|
2953
|
+
})), void 0, !0) : (n(), k(he(e(Wa)(((m = g.layout) == null ? void 0 : m.name) || e(l).$currentLayout)), E({ key: 2 }, {
|
|
2954
2954
|
individualActions: le.value,
|
|
2955
|
-
layoutOptions: ((L = g.layout) == null ? void 0 : L.options) || e(
|
|
2955
|
+
layoutOptions: ((L = g.layout) == null ? void 0 : L.options) || e(l).layout.options,
|
|
2956
2956
|
componentProps: g.componentProps
|
|
2957
2957
|
}, {
|
|
2958
|
-
"component-name": ((K = g.layout) == null ? void 0 : K.name) || e(
|
|
2958
|
+
"component-name": ((K = g.layout) == null ? void 0 : K.name) || e(l).$currentLayout
|
|
2959
2959
|
}), ce({ _: 2 }, [
|
|
2960
|
-
|
|
2960
|
+
Q(Object.keys(g.$slots).filter((B) => B.startsWith("row-")), (B) => ({
|
|
2961
2961
|
name: B,
|
|
2962
|
-
fn:
|
|
2963
|
-
|
|
2962
|
+
fn: f((I) => [
|
|
2963
|
+
C(g.$slots, B, de(ge(I)), void 0, !0)
|
|
2964
2964
|
])
|
|
2965
2965
|
})),
|
|
2966
2966
|
g.$slots.tfoot ? {
|
|
2967
2967
|
name: "tfoot",
|
|
2968
|
-
fn:
|
|
2969
|
-
|
|
2968
|
+
fn: f(() => [
|
|
2969
|
+
C(g.$slots, "tfoot", {}, void 0, !0)
|
|
2970
2970
|
]),
|
|
2971
2971
|
key: "0"
|
|
2972
2972
|
} : void 0
|
|
2973
2973
|
]), 1040, ["component-name"]))
|
|
2974
2974
|
])), [
|
|
2975
|
-
[oe, (!e(
|
|
2975
|
+
[oe, (!e(s) || $.value === bt) && e(l).loading.getAll]
|
|
2976
2976
|
]),
|
|
2977
|
-
!e(
|
|
2977
|
+
!e(l).loading.getAll && e(l).itemsCount > 0 ? (n(), i("div", xa, [
|
|
2978
2978
|
z(Un, {
|
|
2979
|
-
pagination: e(
|
|
2979
|
+
pagination: e(l).pagination,
|
|
2980
2980
|
onPaginate: Y
|
|
2981
2981
|
}, null, 8, ["pagination"])
|
|
2982
2982
|
])) : y("", !0)
|
|
@@ -2990,9 +2990,9 @@ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { cla
|
|
|
2990
2990
|
title: {},
|
|
2991
2991
|
options: {}
|
|
2992
2992
|
},
|
|
2993
|
-
setup(
|
|
2994
|
-
const
|
|
2995
|
-
|
|
2993
|
+
setup(d) {
|
|
2994
|
+
const u = re("meta"), a = (t, o) => {
|
|
2995
|
+
u.$actions.fulfillPrompt(t, o);
|
|
2996
2996
|
};
|
|
2997
2997
|
return (t, o) => (n(), k(Ae, {
|
|
2998
2998
|
float: "",
|
|
@@ -3000,37 +3000,37 @@ const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { cla
|
|
|
3000
3000
|
"close-hint": !1,
|
|
3001
3001
|
style: { "--panel-min-width": "32rem" }
|
|
3002
3002
|
}, ce({
|
|
3003
|
-
footer:
|
|
3003
|
+
footer: f(() => [
|
|
3004
3004
|
A("div", {
|
|
3005
3005
|
class: "prompt__options",
|
|
3006
3006
|
style: be(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
|
|
3007
3007
|
}, [
|
|
3008
|
-
(n(!0),
|
|
3008
|
+
(n(!0), i(x, null, Q(Object.entries(t.options), ([c, r], _) => (n(), k(ve, {
|
|
3009
3009
|
key: `option-${_}`,
|
|
3010
3010
|
class: X(`
|
|
3011
3011
|
prompt__option
|
|
3012
|
-
prompt__option--${
|
|
3012
|
+
prompt__option--${r.variant || "primary"}
|
|
3013
3013
|
`),
|
|
3014
|
-
onClick: (p) =>
|
|
3014
|
+
onClick: (p) => r.click ? r.click(c, r) : a(c, r)
|
|
3015
3015
|
}, {
|
|
3016
|
-
default:
|
|
3017
|
-
|
|
3016
|
+
default: f(() => [
|
|
3017
|
+
D(V(r.title), 1)
|
|
3018
3018
|
]),
|
|
3019
3019
|
_: 2
|
|
3020
3020
|
}, 1032, ["class", "onClick"]))), 128))
|
|
3021
3021
|
], 4)
|
|
3022
3022
|
]),
|
|
3023
|
-
default:
|
|
3023
|
+
default: f(() => [
|
|
3024
3024
|
A("div", tl, [
|
|
3025
|
-
|
|
3025
|
+
C(t.$slots, "default", {}, void 0, !0)
|
|
3026
3026
|
])
|
|
3027
3027
|
]),
|
|
3028
3028
|
_: 2
|
|
3029
3029
|
}, [
|
|
3030
3030
|
t.title ? {
|
|
3031
3031
|
name: "title",
|
|
3032
|
-
fn:
|
|
3033
|
-
|
|
3032
|
+
fn: f(() => [
|
|
3033
|
+
D(V(t.title), 1)
|
|
3034
3034
|
]),
|
|
3035
3035
|
key: "0"
|
|
3036
3036
|
} : void 0
|
|
@@ -3045,25 +3045,25 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
|
|
|
3045
3045
|
date: {},
|
|
3046
3046
|
icon: {}
|
|
3047
3047
|
},
|
|
3048
|
-
setup(
|
|
3049
|
-
const
|
|
3050
|
-
return (
|
|
3048
|
+
setup(d) {
|
|
3049
|
+
const u = re("meta");
|
|
3050
|
+
return (a, t) => {
|
|
3051
3051
|
const o = te("clickable");
|
|
3052
|
-
return P((n(),
|
|
3052
|
+
return P((n(), i("div", {
|
|
3053
3053
|
class: X({
|
|
3054
3054
|
toast: !0,
|
|
3055
|
-
"toast--animate": e(
|
|
3055
|
+
"toast--animate": e(u).toasts[0].itr === a.itr
|
|
3056
3056
|
}),
|
|
3057
|
-
onAnimationend: t[0] || (t[0] = (
|
|
3058
|
-
onClick: t[1] || (t[1] = (
|
|
3057
|
+
onAnimationend: t[0] || (t[0] = (c) => e(u).$actions.popToast()),
|
|
3058
|
+
onClick: t[1] || (t[1] = (c) => e(u).$actions.popToast(a.itr))
|
|
3059
3059
|
}, [
|
|
3060
3060
|
z(Z, E(
|
|
3061
|
-
|
|
3061
|
+
a.icon ? { icon: a.icon } : { icon: "warning-circle" },
|
|
3062
3062
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3063
3063
|
), null, 16),
|
|
3064
3064
|
A("div", al, [
|
|
3065
|
-
|
|
3066
|
-
A("div", ll,
|
|
3065
|
+
C(a.$slots, "default", {}, void 0, !0),
|
|
3066
|
+
A("div", ll, V(a.formatDateTime(a.date, { hoursOnly: !0 })), 1)
|
|
3067
3067
|
])
|
|
3068
3068
|
], 34)), [
|
|
3069
3069
|
[o]
|
|
@@ -3073,27 +3073,27 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
|
|
|
3073
3073
|
});
|
|
3074
3074
|
const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["innerHTML"], ul = { class: "main__toasts" }, cl = ["innerHTML"], dl = /* @__PURE__ */ U({
|
|
3075
3075
|
__name: "aeria-main",
|
|
3076
|
-
setup(
|
|
3077
|
-
const
|
|
3076
|
+
setup(d) {
|
|
3077
|
+
const u = re("meta"), a = G(() => u.themeOverride || u.theme);
|
|
3078
3078
|
return (t, o) => {
|
|
3079
|
-
const
|
|
3080
|
-
return n(),
|
|
3079
|
+
const c = St("router-view");
|
|
3080
|
+
return n(), i("main", {
|
|
3081
3081
|
id: "main",
|
|
3082
3082
|
class: X(`
|
|
3083
3083
|
main
|
|
3084
|
-
main--${
|
|
3085
|
-
${
|
|
3084
|
+
main--${a.value}
|
|
3085
|
+
${a.value === "dark" && "tw-dark"}
|
|
3086
3086
|
`)
|
|
3087
3087
|
}, [
|
|
3088
3088
|
(n(), k(Tt, null, {
|
|
3089
|
-
default:
|
|
3090
|
-
z(
|
|
3091
|
-
default:
|
|
3092
|
-
(n(), k(he(
|
|
3093
|
-
|
|
3089
|
+
default: f(() => [
|
|
3090
|
+
z(c, null, {
|
|
3091
|
+
default: f(({ Component: r }) => [
|
|
3092
|
+
(n(), k(he(r), null, ce({ _: 2 }, [
|
|
3093
|
+
Q(Object.keys(t.$slots), (_) => ({
|
|
3094
3094
|
name: _,
|
|
3095
|
-
fn:
|
|
3096
|
-
|
|
3095
|
+
fn: f(() => [
|
|
3096
|
+
C(t.$slots, _, {}, void 0, !0)
|
|
3097
3097
|
])
|
|
3098
3098
|
}))
|
|
3099
3099
|
]), 1024))
|
|
@@ -3103,39 +3103,39 @@ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["inn
|
|
|
3103
3103
|
]),
|
|
3104
3104
|
_: 3
|
|
3105
3105
|
})),
|
|
3106
|
-
|
|
3106
|
+
C(t.$slots, "default", {}, void 0, !0),
|
|
3107
3107
|
z(Ae, E({
|
|
3108
|
-
modelValue: e(
|
|
3109
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
3108
|
+
modelValue: e(u).modal.visible,
|
|
3109
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => e(u).modal.visible = r),
|
|
3110
3110
|
float: "",
|
|
3111
3111
|
"close-hint": ""
|
|
3112
|
-
}, e(
|
|
3112
|
+
}, e(u).modal, {
|
|
3113
3113
|
"overlay-layer": 70,
|
|
3114
|
-
onOverlayClick: o[1] || (o[1] = (
|
|
3114
|
+
onOverlayClick: o[1] || (o[1] = (r) => e(u).modal.visible = !1)
|
|
3115
3115
|
}), {
|
|
3116
|
-
default:
|
|
3117
|
-
e(
|
|
3116
|
+
default: f(() => [
|
|
3117
|
+
e(u).modal.body ? (n(), i("div", {
|
|
3118
3118
|
key: 0,
|
|
3119
3119
|
style: { "white-space": "pre-wrap" },
|
|
3120
|
-
innerHTML: e(
|
|
3120
|
+
innerHTML: e(u).modal.body
|
|
3121
3121
|
}, null, 8, rl)) : y("", !0),
|
|
3122
|
-
e(
|
|
3122
|
+
e(u).modal.component ? (n(), k(he(e(u).modal.component), { key: 1 })) : y("", !0)
|
|
3123
3123
|
]),
|
|
3124
3124
|
_: 1
|
|
3125
3125
|
}, 16, ["modelValue"]),
|
|
3126
|
-
e(
|
|
3127
|
-
default:
|
|
3128
|
-
|
|
3126
|
+
e(u).prompt.visible ? (n(), k(ol, de(E({ key: 0 }, e(u).prompt)), {
|
|
3127
|
+
default: f(() => [
|
|
3128
|
+
D(V(e(u).prompt.body), 1)
|
|
3129
3129
|
]),
|
|
3130
3130
|
_: 1
|
|
3131
3131
|
}, 16)) : y("", !0),
|
|
3132
3132
|
A("div", ul, [
|
|
3133
|
-
(n(!0),
|
|
3134
|
-
key: `toast-${
|
|
3133
|
+
(n(!0), i(x, null, Q(e(u).toasts, (r) => (n(), k(il, E({ ref_for: !0 }, r, {
|
|
3134
|
+
key: `toast-${r.itr}`
|
|
3135
3135
|
}), {
|
|
3136
|
-
default:
|
|
3136
|
+
default: f(() => [
|
|
3137
3137
|
A("div", {
|
|
3138
|
-
innerHTML: e(R)(
|
|
3138
|
+
innerHTML: e(R)(r.text)
|
|
3139
3139
|
}, null, 8, cl)
|
|
3140
3140
|
]),
|
|
3141
3141
|
_: 2
|
|
@@ -3147,13 +3147,13 @@ const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["inn
|
|
|
3147
3147
|
});
|
|
3148
3148
|
const Ml = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-1166be3d"]]);
|
|
3149
3149
|
const pl = {}, _l = { class: "menu" };
|
|
3150
|
-
function ml(
|
|
3151
|
-
return n(),
|
|
3152
|
-
(n(!0),
|
|
3153
|
-
key:
|
|
3150
|
+
function ml(d, u) {
|
|
3151
|
+
return n(), i("menu", _l, [
|
|
3152
|
+
(n(!0), i(x, null, Q(Object.keys(d.$slots), (a) => (n(), i("div", {
|
|
3153
|
+
key: a,
|
|
3154
3154
|
class: "menu__entry"
|
|
3155
3155
|
}, [
|
|
3156
|
-
|
|
3156
|
+
C(d.$slots, a, {}, void 0, !0)
|
|
3157
3157
|
]))), 128))
|
|
3158
3158
|
]);
|
|
3159
3159
|
}
|
|
@@ -3173,58 +3173,58 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
|
|
|
3173
3173
|
param: {},
|
|
3174
3174
|
dropdown: { type: Boolean }
|
|
3175
3175
|
},
|
|
3176
|
-
setup(
|
|
3177
|
-
const
|
|
3178
|
-
if (
|
|
3179
|
-
const _ = t.currentRoute.value.query[
|
|
3176
|
+
setup(d) {
|
|
3177
|
+
const u = d, a = jt(), t = Ie(), o = Ue(), c = G(() => {
|
|
3178
|
+
if (u.query) {
|
|
3179
|
+
const _ = t.currentRoute.value.query[u.query];
|
|
3180
3180
|
if (_)
|
|
3181
3181
|
return _;
|
|
3182
|
-
} else if (
|
|
3183
|
-
const _ = t.currentRoute.value.params[
|
|
3182
|
+
} else if (u.param) {
|
|
3183
|
+
const _ = t.currentRoute.value.params[u.param];
|
|
3184
3184
|
if (_)
|
|
3185
3185
|
return _;
|
|
3186
3186
|
}
|
|
3187
|
-
return Object.keys(
|
|
3188
|
-
}),
|
|
3189
|
-
|
|
3187
|
+
return Object.keys(a)[0];
|
|
3188
|
+
}), r = (_) => {
|
|
3189
|
+
u.query && t.push(qe(t.currentRoute.value, {
|
|
3190
3190
|
query: {
|
|
3191
|
-
[
|
|
3191
|
+
[u.query]: _
|
|
3192
3192
|
}
|
|
3193
|
-
})),
|
|
3193
|
+
})), u.param && t.push(qe(t.currentRoute.value, {
|
|
3194
3194
|
params: {
|
|
3195
|
-
[
|
|
3195
|
+
[u.param]: _
|
|
3196
3196
|
}
|
|
3197
3197
|
}));
|
|
3198
3198
|
};
|
|
3199
3199
|
return (_, p) => {
|
|
3200
3200
|
const b = te("clickable");
|
|
3201
|
-
return n(),
|
|
3202
|
-
e(o).md && !_.dropdown ? (n(),
|
|
3203
|
-
_.$slots.default ? (n(),
|
|
3204
|
-
|
|
3201
|
+
return n(), i("div", fl, [
|
|
3202
|
+
e(o).md && !_.dropdown ? (n(), i("div", vl, [
|
|
3203
|
+
_.$slots.default ? (n(), i("div", yl, [
|
|
3204
|
+
C(_.$slots, "default", {}, void 0, !0)
|
|
3205
3205
|
])) : y("", !0),
|
|
3206
|
-
(n(!0),
|
|
3207
|
-
key:
|
|
3206
|
+
(n(!0), i(x, null, Q(Object.keys(_.$slots).filter((s) => s !== "default"), (s, l) => (n(), i("div", {
|
|
3207
|
+
key: s,
|
|
3208
3208
|
class: X({
|
|
3209
3209
|
tabs__tab: !0,
|
|
3210
|
-
"tabs__tab--current":
|
|
3210
|
+
"tabs__tab--current": s === c.value || !c.value && l === 0
|
|
3211
3211
|
}),
|
|
3212
|
-
onClick: (w) =>
|
|
3212
|
+
onClick: (w) => r(s)
|
|
3213
3213
|
}, [
|
|
3214
|
-
|
|
3214
|
+
C(_.$slots, s, {}, void 0, !0)
|
|
3215
3215
|
], 10, hl))), 128))
|
|
3216
|
-
])) : (n(),
|
|
3216
|
+
])) : (n(), i("div", bl, [
|
|
3217
3217
|
z(Oe, null, ce({
|
|
3218
|
-
default:
|
|
3218
|
+
default: f(({ visible: s }) => [
|
|
3219
3219
|
P((n(), k(Z, {
|
|
3220
3220
|
"icon-right": "",
|
|
3221
|
-
active:
|
|
3221
|
+
active: s,
|
|
3222
3222
|
icon: "caret-down",
|
|
3223
3223
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
3224
3224
|
class: "tabs__context-menu-icon"
|
|
3225
3225
|
}, {
|
|
3226
|
-
default:
|
|
3227
|
-
|
|
3226
|
+
default: f(() => [
|
|
3227
|
+
C(_.$slots, c.value, {}, void 0, !0)
|
|
3228
3228
|
]),
|
|
3229
3229
|
_: 2
|
|
3230
3230
|
}, 1032, ["active"])), [
|
|
@@ -3233,13 +3233,13 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
|
|
|
3233
3233
|
]),
|
|
3234
3234
|
_: 2
|
|
3235
3235
|
}, [
|
|
3236
|
-
|
|
3237
|
-
name:
|
|
3238
|
-
fn:
|
|
3236
|
+
Q(Object.keys(_.$slots).filter((s) => s !== "default"), (s) => ({
|
|
3237
|
+
name: s,
|
|
3238
|
+
fn: f(() => [
|
|
3239
3239
|
A("div", {
|
|
3240
|
-
onClick: (
|
|
3240
|
+
onClick: (l) => r(s)
|
|
3241
3241
|
}, [
|
|
3242
|
-
|
|
3242
|
+
C(_.$slots, s, {}, void 0, !0)
|
|
3243
3243
|
], 8, $l)
|
|
3244
3244
|
])
|
|
3245
3245
|
}))
|
|
@@ -3254,50 +3254,50 @@ const kl = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-a20914ab"]]), Vl = U({
|
|
|
3254
3254
|
initialValue: String,
|
|
3255
3255
|
promise: Promise
|
|
3256
3256
|
},
|
|
3257
|
-
setup(
|
|
3258
|
-
const
|
|
3259
|
-
return
|
|
3260
|
-
|
|
3261
|
-
}), () => Rt("div",
|
|
3257
|
+
setup(d) {
|
|
3258
|
+
const u = J(d.initialValue);
|
|
3259
|
+
return d.promise instanceof Promise && d.promise.then((a) => {
|
|
3260
|
+
u.value = a;
|
|
3261
|
+
}), () => Rt("div", u.value);
|
|
3262
3262
|
}
|
|
3263
3263
|
}), Cl = ["onClick"], Ol = { key: 1 }, Il = /* @__PURE__ */ U({
|
|
3264
3264
|
__name: "aeria-crud-topbar",
|
|
3265
3265
|
props: {
|
|
3266
3266
|
collection: {}
|
|
3267
3267
|
},
|
|
3268
|
-
setup(
|
|
3269
|
-
const
|
|
3270
|
-
const { error: b, result:
|
|
3268
|
+
setup(d) {
|
|
3269
|
+
const u = d, t = Ie().currentRoute, o = Ze(), c = G(() => u.collection ? Le(u.collection, o) : typeof t.value.meta.collection == "string" ? Le(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Le(t.value.params.collection, o) : null), r = async (_, p) => {
|
|
3270
|
+
const { error: b, result: s } = await p.$functions[_.badgeFunction]({
|
|
3271
3271
|
filters: _.filters
|
|
3272
3272
|
});
|
|
3273
|
-
return b ? 0 :
|
|
3273
|
+
return b ? 0 : s;
|
|
3274
3274
|
};
|
|
3275
|
-
return (_, p) =>
|
|
3275
|
+
return (_, p) => c.value && c.value.description.filtersPresets ? (n(), k(kl, {
|
|
3276
3276
|
key: 0,
|
|
3277
3277
|
dropdown: "",
|
|
3278
3278
|
query: "section"
|
|
3279
3279
|
}, ce({ _: 2 }, [
|
|
3280
|
-
|
|
3280
|
+
Q(Object.entries(c.value.description.filtersPresets), ([b, s]) => ({
|
|
3281
3281
|
name: b,
|
|
3282
|
-
fn:
|
|
3282
|
+
fn: f(() => [
|
|
3283
3283
|
A("div", {
|
|
3284
3284
|
class: "topbar__preset",
|
|
3285
|
-
onClick: (
|
|
3285
|
+
onClick: (l) => e(Ot)(s, c.value)
|
|
3286
3286
|
}, [
|
|
3287
|
-
|
|
3287
|
+
s.icon ? (n(), k(Z, {
|
|
3288
3288
|
key: 0,
|
|
3289
|
-
icon:
|
|
3289
|
+
icon: s.icon
|
|
3290
3290
|
}, {
|
|
3291
|
-
default:
|
|
3292
|
-
|
|
3291
|
+
default: f(() => [
|
|
3292
|
+
D(V(s.label || e(R)(b, { plural: !0 })), 1)
|
|
3293
3293
|
]),
|
|
3294
3294
|
_: 2
|
|
3295
|
-
}, 1032, ["icon"])) : (n(),
|
|
3296
|
-
|
|
3297
|
-
default:
|
|
3295
|
+
}, 1032, ["icon"])) : (n(), i("div", Ol, V(s.label || e(R)(b, { plural: !0 })), 1)),
|
|
3296
|
+
s.badgeFunction ? (n(), k($e, { key: 2 }, {
|
|
3297
|
+
default: f(() => [
|
|
3298
3298
|
z(e(Vl), {
|
|
3299
3299
|
"initial-value": "0",
|
|
3300
|
-
promise: async () => String(
|
|
3300
|
+
promise: async () => String(r(s, c.value))
|
|
3301
3301
|
}, null, 8, ["promise"])
|
|
3302
3302
|
]),
|
|
3303
3303
|
_: 2
|
|
@@ -3317,14 +3317,14 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
|
|
|
3317
3317
|
modelValue: {}
|
|
3318
3318
|
},
|
|
3319
3319
|
emits: ["update:modelValue"],
|
|
3320
|
-
setup(
|
|
3321
|
-
const
|
|
3320
|
+
setup(d) {
|
|
3321
|
+
const u = d;
|
|
3322
3322
|
ye(Fe, null);
|
|
3323
|
-
const
|
|
3324
|
-
|
|
3325
|
-
|
|
3323
|
+
const a = Xt(), t = G(() => a(
|
|
3324
|
+
u.modelValue.password,
|
|
3325
|
+
u.modelValue.confirmation
|
|
3326
3326
|
));
|
|
3327
|
-
return (o,
|
|
3327
|
+
return (o, c) => (n(), k(Qe, {
|
|
3328
3328
|
form: {
|
|
3329
3329
|
password: {
|
|
3330
3330
|
type: "string",
|
|
@@ -3338,34 +3338,34 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
|
|
|
3338
3338
|
}
|
|
3339
3339
|
},
|
|
3340
3340
|
"model-value": o.modelValue,
|
|
3341
|
-
"onUpdate:modelValue":
|
|
3341
|
+
"onUpdate:modelValue": c[0] || (c[0] = (r) => o.$emit("update:modelValue", r))
|
|
3342
3342
|
}, {
|
|
3343
|
-
after:
|
|
3344
|
-
A("div", null,
|
|
3345
|
-
|
|
3343
|
+
after: f(() => [
|
|
3344
|
+
A("div", null, V(t.value || "Senhas conferem"), 1),
|
|
3345
|
+
C(o.$slots, "default", de(ge({ passwordError: t.value })))
|
|
3346
3346
|
]),
|
|
3347
3347
|
_: 3
|
|
3348
3348
|
}, 8, ["model-value"]));
|
|
3349
3349
|
}
|
|
3350
|
-
}), El = (
|
|
3350
|
+
}), El = (d, u = []) => ({
|
|
3351
3351
|
path: "/user",
|
|
3352
3352
|
name: "/builtin:user",
|
|
3353
|
-
component:
|
|
3354
|
-
children:
|
|
3353
|
+
component: d,
|
|
3354
|
+
children: u.concat([
|
|
3355
3355
|
{
|
|
3356
3356
|
path: "invite/:id",
|
|
3357
3357
|
name: "/user/invite/:id",
|
|
3358
|
-
redirect: (
|
|
3358
|
+
redirect: (a) => ({
|
|
3359
3359
|
path: "/user/signup",
|
|
3360
3360
|
params: {
|
|
3361
|
-
inviteId:
|
|
3361
|
+
inviteId: a.params.id
|
|
3362
3362
|
}
|
|
3363
3363
|
})
|
|
3364
3364
|
},
|
|
3365
3365
|
{
|
|
3366
3366
|
path: "signin",
|
|
3367
3367
|
name: "/user/signin",
|
|
3368
|
-
component: () => import("./signin-
|
|
3368
|
+
component: () => import("./signin-131cef9c.js"),
|
|
3369
3369
|
meta: {
|
|
3370
3370
|
title: "Autenticação"
|
|
3371
3371
|
}
|
|
@@ -3373,7 +3373,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
|
|
|
3373
3373
|
{
|
|
3374
3374
|
path: "signup",
|
|
3375
3375
|
name: "/user/signup",
|
|
3376
|
-
component: () => import("./signup-
|
|
3376
|
+
component: () => import("./signup-037f2f37.js"),
|
|
3377
3377
|
meta: {
|
|
3378
3378
|
title: "Registro"
|
|
3379
3379
|
}
|
|
@@ -3381,29 +3381,29 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
|
|
|
3381
3381
|
{
|
|
3382
3382
|
path: "activation",
|
|
3383
3383
|
name: "/user/activation",
|
|
3384
|
-
component: () => import("./activation-
|
|
3384
|
+
component: () => import("./activation-01e847e4.js"),
|
|
3385
3385
|
meta: {
|
|
3386
3386
|
title: "Ativação"
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
3389
|
])
|
|
3390
|
-
}), Hl = (
|
|
3390
|
+
}), Hl = (d, u = []) => ({
|
|
3391
3391
|
path: "/dashboard",
|
|
3392
3392
|
name: "/builtin:dashboard",
|
|
3393
|
-
component:
|
|
3393
|
+
component: d,
|
|
3394
3394
|
redirect: {
|
|
3395
3395
|
name: "/dashboard/"
|
|
3396
3396
|
},
|
|
3397
3397
|
meta: {
|
|
3398
3398
|
title: "Dashboard"
|
|
3399
3399
|
},
|
|
3400
|
-
children:
|
|
3400
|
+
children: u.concat([
|
|
3401
3401
|
{
|
|
3402
3402
|
path: "c/:collection",
|
|
3403
3403
|
name: "/dashboard/:collection",
|
|
3404
3404
|
props: !0,
|
|
3405
3405
|
components: {
|
|
3406
|
-
default: () => import("./index-
|
|
3406
|
+
default: () => import("./index-bdc0133c.js"),
|
|
3407
3407
|
topbar: () => Promise.resolve().then(() => wl)
|
|
3408
3408
|
},
|
|
3409
3409
|
meta: {
|
|
@@ -3415,7 +3415,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
|
|
|
3415
3415
|
name: "/dashboard/:collection/:id",
|
|
3416
3416
|
props: !0,
|
|
3417
3417
|
components: {
|
|
3418
|
-
default: () => import("./_id_-
|
|
3418
|
+
default: () => import("./_id_-28e2ff98.js")
|
|
3419
3419
|
},
|
|
3420
3420
|
meta: {
|
|
3421
3421
|
title: "%viewTitle%"
|
|
@@ -3433,7 +3433,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
|
|
|
3433
3433
|
children: [
|
|
3434
3434
|
{
|
|
3435
3435
|
path: "profile",
|
|
3436
|
-
component: () => import("./index-
|
|
3436
|
+
component: () => import("./index-7e4faf19.js"),
|
|
3437
3437
|
meta: {
|
|
3438
3438
|
title: "Meu perfil",
|
|
3439
3439
|
icon: "user-square"
|
|
@@ -3442,7 +3442,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @_
|
|
|
3442
3442
|
{
|
|
3443
3443
|
path: "changepass",
|
|
3444
3444
|
name: "/dashboard/user/changepass",
|
|
3445
|
-
component: () => import("./index-
|
|
3445
|
+
component: () => import("./index-3e560edd.js"),
|
|
3446
3446
|
meta: {
|
|
3447
3447
|
title: "Mudar senha",
|
|
3448
3448
|
icon: "lock"
|