@aeria-ui/ui 0.0.127 → 0.0.128
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_-b05d03ae.js → _id_-647db632.js} +1 -1
- package/dist/{activation-49ebd314.js → activation-0f34f978.js} +7 -7
- package/dist/{index-05e95b76.js → index-212512bb.js} +1 -1
- package/dist/{index-e8ad8ca3.js → index-b930175e.js} +1224 -1224
- package/dist/{index-51cf0019.js → index-dfec5013.js} +25 -25
- package/dist/{index-01a40716.js → index-eb88327a.js} +2 -2
- package/dist/{signin-4baaf00c.js → signin-65f781a5.js} +1 -1
- package/dist/{signup-984e6e67.js → signup-83b7c10f.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as z, ref as
|
|
1
|
+
import { defineComponent as z, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as l, normalizeClass as W, Fragment as P, renderList as H, withDirectives as J, toDisplayString as C, createCommentVNode as b, createTextVNode as D, unref as e, renderSlot as A, withModifiers as Re, inject as fe, computed as K, createElementVNode as B, mergeProps as U, createBlock as V, withCtx as y, resolveDynamicComponent as be, useCssVars as ht, normalizeProps as pe, guardReactiveProps as Ve, Teleport as Ge, onMounted as We, watch as ue, createVNode as M, vModelDynamic as $t, onBeforeMount as mt, normalizeStyle as $e, provide as he, createSlots as ce, vModelCheckbox as gt, onUnmounted as kt, resolveComponent as Vt, Suspense as Ct, useSlots as Ot, h as At } from "vue";
|
|
2
2
|
import { t as L, useI18n as It } from "@aeria-ui/i18n";
|
|
3
3
|
import { INSTANCE_VARS_SYMBOL as Bt, useScrollObserver as Ye, useBreakpoints as Me, useMask as St, PAGINATION_PER_PAGE_DEFAULTS as wt, API_URL as ft, request as Tt, useDebounce as vt, convertToSearchQuery as jt, useParentCollectionStore as je, useCollectionStore as Rt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as qt } from "@aeria-ui/core";
|
|
4
|
-
import { arraysIntersect as yt, deepClone as Ae, getReferenceProperty as
|
|
4
|
+
import { arraysIntersect as yt, deepClone as Ae, getReferenceProperty as me, freshItem as zt, isRequired as Ft, evaluateCondition as Qe, deepMerge as Le } from "@aeriajs/common";
|
|
5
5
|
import { useStore as ie, getStoreId as qe, useParentStore as Ue, STORE_ID as ze, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
|
|
6
6
|
import { useRouter as Be } from "vue-router";
|
|
7
7
|
import { convertConditionToQuery as Et, isDocumentComplete as Ut, getObjectKey as Ht } from "@aeria-ui/utils";
|
|
@@ -16,81 +16,81 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
16
16
|
headers: {}
|
|
17
17
|
},
|
|
18
18
|
setup(p) {
|
|
19
|
-
const r =
|
|
20
|
-
return (n,
|
|
21
|
-
const c =
|
|
19
|
+
const r = ee(null), o = (n) => typeof n == "string" ? n : n.title;
|
|
20
|
+
return (n, a) => {
|
|
21
|
+
const c = ne("clickable");
|
|
22
22
|
return t(), l("div", {
|
|
23
|
-
class:
|
|
23
|
+
class: W({
|
|
24
24
|
accordion: !0,
|
|
25
25
|
"accordion--padded": !n.noPadding
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
|
-
(t(!0), l(
|
|
28
|
+
(t(!0), l(P, null, H(Object.keys(n.$slots).filter((u) => u !== "default"), (u, _) => (t(), l("div", {
|
|
29
29
|
key: u,
|
|
30
30
|
class: "accordion__slot"
|
|
31
31
|
}, [
|
|
32
|
-
|
|
32
|
+
J((t(), l("div", {
|
|
33
33
|
class: "accordion__header",
|
|
34
34
|
onClick: (d) => r.value === u ? r.value = null : r.value = u
|
|
35
35
|
}, [
|
|
36
|
-
n.enumerate ? (t(), l("span", Qt, C(_ + 1) + ". ", 1)) :
|
|
37
|
-
|
|
36
|
+
n.enumerate ? (t(), l("span", Qt, C(_ + 1) + ". ", 1)) : b("", !0),
|
|
37
|
+
D(" " + C(n.headers[u] ? o(n.headers[u]) : e(L)(u)), 1)
|
|
38
38
|
], 8, Dt)), [
|
|
39
39
|
[c]
|
|
40
40
|
]),
|
|
41
41
|
r.value === u ? (t(), l("div", Gt, [
|
|
42
|
-
|
|
43
|
-
])) :
|
|
42
|
+
A(n.$slots, u, {}, void 0, !0)
|
|
43
|
+
])) : b("", !0)
|
|
44
44
|
]))), 128))
|
|
45
45
|
], 2);
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
for (const [n,
|
|
52
|
-
|
|
53
|
-
return
|
|
54
|
-
}, Cl = /* @__PURE__ */
|
|
49
|
+
const Q = (p, r) => {
|
|
50
|
+
const o = p.__vccOpts || p;
|
|
51
|
+
for (const [n, a] of r)
|
|
52
|
+
o[n] = a;
|
|
53
|
+
return o;
|
|
54
|
+
}, Cl = /* @__PURE__ */ Q(Wt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ z({
|
|
55
55
|
__name: "aeria-badge",
|
|
56
56
|
props: {
|
|
57
57
|
large: { type: Boolean },
|
|
58
58
|
alt: { type: Boolean }
|
|
59
59
|
},
|
|
60
60
|
setup(p) {
|
|
61
|
-
return (r,
|
|
62
|
-
class:
|
|
61
|
+
return (r, o) => (t(), l("div", {
|
|
62
|
+
class: W([
|
|
63
63
|
"badge",
|
|
64
64
|
{ "badge--large": r.large },
|
|
65
65
|
{ "badge--alt": r.alt }
|
|
66
66
|
])
|
|
67
67
|
}, [
|
|
68
|
-
|
|
68
|
+
A(r.$slots, "default", {}, void 0, !0)
|
|
69
69
|
], 2));
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
const ke = /* @__PURE__ */
|
|
72
|
+
const ke = /* @__PURE__ */ Q(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @__PURE__ */ z({
|
|
73
73
|
__name: "aeria-bare-button",
|
|
74
74
|
props: {
|
|
75
75
|
disabled: { type: Boolean }
|
|
76
76
|
},
|
|
77
77
|
emits: ["click"],
|
|
78
78
|
setup(p, { emit: r }) {
|
|
79
|
-
const
|
|
80
|
-
|
|
79
|
+
const o = p, n = r, a = (c) => {
|
|
80
|
+
o.disabled || n("click", c);
|
|
81
81
|
};
|
|
82
82
|
return (c, u) => (t(), l("button", {
|
|
83
|
-
class:
|
|
83
|
+
class: W([
|
|
84
84
|
"barebutton",
|
|
85
85
|
`barebutton--${c.disabled ? "disabled" : "enabled"}`
|
|
86
86
|
]),
|
|
87
|
-
onClick: Re(
|
|
87
|
+
onClick: Re(a, ["prevent"])
|
|
88
88
|
}, [
|
|
89
|
-
|
|
89
|
+
A(c.$slots, "default", {}, void 0, !0)
|
|
90
90
|
], 2));
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
const
|
|
93
|
+
const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["href"], Jt = {
|
|
94
94
|
key: 0,
|
|
95
95
|
"data-component": "icon-label"
|
|
96
96
|
}, Zt = /* @__PURE__ */ z({
|
|
@@ -105,12 +105,12 @@ const be = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
105
105
|
active: { type: Boolean }
|
|
106
106
|
},
|
|
107
107
|
setup(p) {
|
|
108
|
-
const r = p,
|
|
108
|
+
const r = p, o = fe(Bt), n = typeof r.reactive == "boolean" ? r.reactive : fe("iconReactive", !1), a = K(() => {
|
|
109
109
|
var c;
|
|
110
110
|
return (c = r.icon) != null && c.includes(":") ? r.icon : `regular:${r.icon}`;
|
|
111
111
|
});
|
|
112
112
|
return (c, u) => (t(), l("a", {
|
|
113
|
-
class:
|
|
113
|
+
class: W([
|
|
114
114
|
"icon",
|
|
115
115
|
{ "icon--reactive": e(n) },
|
|
116
116
|
{ "icon--active": c.active },
|
|
@@ -118,13 +118,13 @@ const be = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
118
118
|
])
|
|
119
119
|
}, [
|
|
120
120
|
B("div", {
|
|
121
|
-
class:
|
|
121
|
+
class: W([
|
|
122
122
|
"icon__icon",
|
|
123
123
|
{ "icon__icon--${size}": !!c.size },
|
|
124
124
|
{ "icon__icon--right": c.iconRight }
|
|
125
125
|
])
|
|
126
126
|
}, [
|
|
127
|
-
(t(), l("svg",
|
|
127
|
+
(t(), l("svg", U({
|
|
128
128
|
width: "24",
|
|
129
129
|
height: "24",
|
|
130
130
|
viewBox: "0 0 256 256",
|
|
@@ -133,17 +133,17 @@ const be = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
133
133
|
...c.fill ? { fill: c.fill } : {}
|
|
134
134
|
}), [
|
|
135
135
|
B("use", {
|
|
136
|
-
href: `${e(
|
|
136
|
+
href: `${e(o).base || "/"}assets/icons.svg#${a.value}`
|
|
137
137
|
}, null, 8, Xt)
|
|
138
138
|
], 16))
|
|
139
139
|
], 2),
|
|
140
140
|
c.$slots.default ? (t(), l("div", Jt, [
|
|
141
|
-
|
|
142
|
-
])) :
|
|
141
|
+
A(c.$slots, "default", {}, void 0, !0)
|
|
142
|
+
])) : b("", !0)
|
|
143
143
|
], 2));
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
|
-
const
|
|
146
|
+
const Y = /* @__PURE__ */ Q(Zt, [["__scopeId", "data-v-e167487b"]]), Pt = { class: "button__content" }, Nt = {
|
|
147
147
|
key: 1,
|
|
148
148
|
class: "button__content"
|
|
149
149
|
}, xt = /* @__PURE__ */ z({
|
|
@@ -158,7 +158,7 @@ const W = /* @__PURE__ */ D(Zt, [["__scopeId", "data-v-e167487b"]]), Pt = { clas
|
|
|
158
158
|
loading: { type: Boolean }
|
|
159
159
|
},
|
|
160
160
|
setup(p) {
|
|
161
|
-
const r = p,
|
|
161
|
+
const r = p, o = fe("buttonVariant", r.variant) || "primary", n = (() => {
|
|
162
162
|
switch (!0) {
|
|
163
163
|
case r.small:
|
|
164
164
|
return "small";
|
|
@@ -167,66 +167,66 @@ const W = /* @__PURE__ */ D(Zt, [["__scopeId", "data-v-e167487b"]]), Pt = { clas
|
|
|
167
167
|
}
|
|
168
168
|
return fe("buttonSize", r.size) || "medium";
|
|
169
169
|
})();
|
|
170
|
-
return (
|
|
171
|
-
class:
|
|
170
|
+
return (a, c) => (t(), V(ye, {
|
|
171
|
+
class: W([
|
|
172
172
|
"button",
|
|
173
|
-
`button--${e(
|
|
173
|
+
`button--${e(o)}`,
|
|
174
174
|
`button--${e(n)}`,
|
|
175
|
-
{ "button--loading":
|
|
175
|
+
{ "button--loading": a.loading }
|
|
176
176
|
]),
|
|
177
|
-
disabled:
|
|
177
|
+
disabled: a.disabled
|
|
178
178
|
}, {
|
|
179
|
-
default:
|
|
180
|
-
|
|
179
|
+
default: y(() => [
|
|
180
|
+
a.icon ? (t(), V(Y, {
|
|
181
181
|
key: 0,
|
|
182
|
-
icon:
|
|
182
|
+
icon: a.icon
|
|
183
183
|
}, {
|
|
184
|
-
default:
|
|
184
|
+
default: y(() => [
|
|
185
185
|
B("div", Pt, [
|
|
186
|
-
|
|
186
|
+
A(a.$slots, "default", {}, void 0, !0)
|
|
187
187
|
])
|
|
188
188
|
]),
|
|
189
189
|
_: 3
|
|
190
190
|
}, 8, ["icon"])) : (t(), l("div", Nt, [
|
|
191
|
-
|
|
191
|
+
A(a.$slots, "default", {}, void 0, !0)
|
|
192
192
|
]))
|
|
193
193
|
]),
|
|
194
194
|
_: 3
|
|
195
195
|
}, 8, ["class", "disabled"]));
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
|
-
const
|
|
198
|
+
const _e = /* @__PURE__ */ Q(xt, [["__scopeId", "data-v-96692ab2"]]), en = { class: "card__picture" }, tn = { class: "card__footer" }, nn = { class: "card__footer-upper" }, on = { class: "card__badge" }, an = /* @__PURE__ */ z({
|
|
199
199
|
__name: "aeria-card",
|
|
200
200
|
props: {
|
|
201
201
|
inactive: { type: Boolean },
|
|
202
202
|
horizontal: { type: Boolean }
|
|
203
203
|
},
|
|
204
204
|
setup(p) {
|
|
205
|
-
return (r,
|
|
206
|
-
class:
|
|
205
|
+
return (r, o) => (t(), l("div", {
|
|
206
|
+
class: W([
|
|
207
207
|
"card",
|
|
208
208
|
{ "card--inactive": r.inactive },
|
|
209
209
|
{ "card--horizontal": r.horizontal }
|
|
210
210
|
])
|
|
211
211
|
}, [
|
|
212
212
|
B("div", en, [
|
|
213
|
-
|
|
213
|
+
A(r.$slots, "default", {}, void 0, !0)
|
|
214
214
|
]),
|
|
215
215
|
B("div", tn, [
|
|
216
216
|
B("div", nn, [
|
|
217
217
|
B("div", null, [
|
|
218
|
-
|
|
218
|
+
A(r.$slots, "footer", {}, void 0, !0)
|
|
219
219
|
]),
|
|
220
|
-
r.$slots.actions ?
|
|
220
|
+
r.$slots.actions ? A(r.$slots, "actions", { key: 0 }, void 0, !0) : b("", !0)
|
|
221
221
|
]),
|
|
222
222
|
B("div", on, [
|
|
223
|
-
|
|
223
|
+
A(r.$slots, "badge", {}, void 0, !0)
|
|
224
224
|
])
|
|
225
225
|
])
|
|
226
226
|
], 2));
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
|
-
const ln = /* @__PURE__ */
|
|
229
|
+
const ln = /* @__PURE__ */ Q(an, [["__scopeId", "data-v-ebda18bd"]]), sn = { class: "panel__header-left" }, rn = { key: 1 }, un = {
|
|
230
230
|
key: 2,
|
|
231
231
|
style: { "margin-left": "auto" }
|
|
232
232
|
}, cn = /* @__PURE__ */ z({
|
|
@@ -252,115 +252,115 @@ const ln = /* @__PURE__ */ D(an, [["__scopeId", "data-v-ebda18bd"]]), sn = { cla
|
|
|
252
252
|
},
|
|
253
253
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
254
254
|
setup(p, { emit: r }) {
|
|
255
|
-
const
|
|
255
|
+
const o = p, n = r, a = ee(o.collapsed), c = ee(null), { reachedEnd: u } = Ye(c), _ = () => {
|
|
256
256
|
n("update:modelValue", !1), n("close");
|
|
257
257
|
}, d = () => {
|
|
258
258
|
n("overlayClick");
|
|
259
|
-
}, $ = (
|
|
260
|
-
n("update:collapsed",
|
|
259
|
+
}, $ = (i) => {
|
|
260
|
+
n("update:collapsed", i), a.value = i;
|
|
261
261
|
};
|
|
262
|
-
return (
|
|
263
|
-
const k =
|
|
264
|
-
return
|
|
262
|
+
return (i, v) => {
|
|
263
|
+
const k = ne("clickable"), f = ne("loading"), I = ne("overlay");
|
|
264
|
+
return i.modelValue ? J((t(), l("div", {
|
|
265
265
|
key: 0,
|
|
266
|
-
class:
|
|
266
|
+
class: W([
|
|
267
267
|
"panel",
|
|
268
|
-
{ "panel--fixed":
|
|
268
|
+
{ "panel--fixed": i.fixedRight }
|
|
269
269
|
])
|
|
270
270
|
}, [
|
|
271
|
-
(t(), V(
|
|
272
|
-
|
|
271
|
+
(t(), V(be(
|
|
272
|
+
i.float || i.fixedRight ? "dialog" : "div"
|
|
273
273
|
), {
|
|
274
274
|
"data-component": "panel",
|
|
275
|
-
class:
|
|
275
|
+
class: W([
|
|
276
276
|
"aeria-surface",
|
|
277
277
|
"panel__content",
|
|
278
|
-
{ "panel__content--float":
|
|
279
|
-
{ "panel__content--bordered":
|
|
280
|
-
{ "panel__content--fixed-right":
|
|
281
|
-
{ "panel__content--transparent":
|
|
282
|
-
{ "panel__content--transparent-mobile":
|
|
283
|
-
{ "panel__content--outer-header":
|
|
278
|
+
{ "panel__content--float": i.float },
|
|
279
|
+
{ "panel__content--bordered": i.bordered },
|
|
280
|
+
{ "panel__content--fixed-right": i.fixedRight },
|
|
281
|
+
{ "panel__content--transparent": i.transparent },
|
|
282
|
+
{ "panel__content--transparent-mobile": i.transparentMobile },
|
|
283
|
+
{ "panel__content--outer-header": i.outerHeader }
|
|
284
284
|
]),
|
|
285
|
-
onClick:
|
|
285
|
+
onClick: v[2] || (v[2] = (s) => s.stopPropagation())
|
|
286
286
|
}, {
|
|
287
|
-
default:
|
|
288
|
-
|
|
287
|
+
default: y(() => [
|
|
288
|
+
i.$slots.header || i.title ? (t(), l("div", {
|
|
289
289
|
key: 0,
|
|
290
|
-
class:
|
|
290
|
+
class: W([
|
|
291
291
|
"panel__header",
|
|
292
|
-
{ "panel__header--collapsed":
|
|
293
|
-
{ "panel__header--outer":
|
|
292
|
+
{ "panel__header--collapsed": a.value },
|
|
293
|
+
{ "panel__header--outer": i.outerHeader }
|
|
294
294
|
])
|
|
295
295
|
}, [
|
|
296
296
|
B("div", sn, [
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
])) :
|
|
297
|
+
i.$slots.header ? A(i.$slots, "header", { key: 0 }, void 0, !0) : i.title ? (t(), l("div", rn, C(i.title), 1)) : b("", !0),
|
|
298
|
+
i.$slots.extra ? (t(), l("div", un, [
|
|
299
|
+
A(i.$slots, "extra", {}, void 0, !0)
|
|
300
|
+
])) : b("", !0)
|
|
301
301
|
]),
|
|
302
|
-
|
|
302
|
+
i.collapsible && a.value ? J((t(), V(Y, {
|
|
303
303
|
key: 0,
|
|
304
304
|
reactive: "",
|
|
305
305
|
icon: "plus",
|
|
306
|
-
onClick:
|
|
306
|
+
onClick: v[0] || (v[0] = (s) => $(!a.value))
|
|
307
307
|
}, null, 512)), [
|
|
308
308
|
[k]
|
|
309
|
-
]) :
|
|
309
|
+
]) : i.collapsible && !a.value ? J((t(), V(Y, {
|
|
310
310
|
key: 1,
|
|
311
311
|
reactive: "",
|
|
312
312
|
icon: "minus",
|
|
313
|
-
onClick:
|
|
313
|
+
onClick: v[1] || (v[1] = (s) => $(!a.value))
|
|
314
314
|
}, null, 512)), [
|
|
315
315
|
[k]
|
|
316
|
-
]) :
|
|
316
|
+
]) : i.closeHint ? J((t(), V(Y, {
|
|
317
317
|
key: 2,
|
|
318
318
|
reactive: "",
|
|
319
319
|
icon: "x",
|
|
320
320
|
onClick: _
|
|
321
321
|
}, null, 512)), [
|
|
322
322
|
[k]
|
|
323
|
-
]) :
|
|
324
|
-
], 2)) :
|
|
325
|
-
|
|
323
|
+
]) : b("", !0)
|
|
324
|
+
], 2)) : b("", !0),
|
|
325
|
+
a.value ? b("", !0) : J((t(), l("div", {
|
|
326
326
|
key: 1,
|
|
327
327
|
ref_key: "body",
|
|
328
328
|
ref: c,
|
|
329
329
|
tabindex: "0",
|
|
330
|
-
class:
|
|
330
|
+
class: W([
|
|
331
331
|
"panel__body",
|
|
332
|
-
{ "panel__body--padded": !
|
|
332
|
+
{ "panel__body--padded": !i.fill }
|
|
333
333
|
])
|
|
334
334
|
}, [
|
|
335
|
-
|
|
335
|
+
A(i.$slots, "default", {}, void 0, !0)
|
|
336
336
|
], 2)), [
|
|
337
|
-
[
|
|
337
|
+
[f, i.loading]
|
|
338
338
|
]),
|
|
339
|
-
|
|
339
|
+
i.$slots.footer ? (t(), l("div", {
|
|
340
340
|
key: 2,
|
|
341
|
-
class:
|
|
341
|
+
class: W([
|
|
342
342
|
"panel__footer",
|
|
343
|
-
{ "panel__footer--padded": !
|
|
343
|
+
{ "panel__footer--padded": !i.fillFooter },
|
|
344
344
|
{ "panel__footer--shadowed": !e(u) }
|
|
345
345
|
])
|
|
346
346
|
}, [
|
|
347
|
-
|
|
348
|
-
], 2)) :
|
|
347
|
+
A(i.$slots, "footer", {}, void 0, !0)
|
|
348
|
+
], 2)) : b("", !0)
|
|
349
349
|
]),
|
|
350
350
|
_: 3
|
|
351
351
|
}, 8, ["class"]))
|
|
352
352
|
], 2)), [
|
|
353
|
-
[
|
|
354
|
-
condition:
|
|
355
|
-
invisible:
|
|
353
|
+
[I, {
|
|
354
|
+
condition: i.overlay || i.fixedRight || i.float,
|
|
355
|
+
invisible: i.invisibleOverlay,
|
|
356
356
|
click: d,
|
|
357
|
-
layer:
|
|
357
|
+
layer: i.overlayLayer || (i.float ? 60 : i.fixedRight ? 50 : 0)
|
|
358
358
|
}]
|
|
359
|
-
]) :
|
|
359
|
+
]) : b("", !0);
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
|
-
const Se = /* @__PURE__ */
|
|
363
|
+
const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { class: "content__body" }, pn = {
|
|
364
364
|
key: 0,
|
|
365
365
|
class: "content__section"
|
|
366
366
|
}, _n = { class: "content__item" }, mn = /* @__PURE__ */ z({
|
|
@@ -376,35 +376,35 @@ const Se = /* @__PURE__ */ D(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
|
|
|
376
376
|
"4fd17073": _.value.x,
|
|
377
377
|
"4fd17074": _.value.y
|
|
378
378
|
}));
|
|
379
|
-
const
|
|
379
|
+
const o = r, n = ee(null), a = ee(!1), c = (d) => d == null ? void 0 : d.filter(($) => {
|
|
380
380
|
if ($.roles) {
|
|
381
|
-
const
|
|
382
|
-
return yt($.roles,
|
|
381
|
+
const i = ie("user");
|
|
382
|
+
return yt($.roles, i.currentUser.roles);
|
|
383
383
|
}
|
|
384
384
|
return !0;
|
|
385
385
|
}), u = (d, $) => {
|
|
386
|
-
const
|
|
387
|
-
d.click && d.click(
|
|
386
|
+
const i = $ && Ae($);
|
|
387
|
+
d.click && d.click(i), o("actionClick", {
|
|
388
388
|
action: d,
|
|
389
|
-
subject:
|
|
390
|
-
}),
|
|
389
|
+
subject: i
|
|
390
|
+
}), a.value = !1;
|
|
391
391
|
}, _ = K(() => {
|
|
392
392
|
if (!n.value)
|
|
393
393
|
return {
|
|
394
394
|
x: 0,
|
|
395
395
|
y: 0
|
|
396
396
|
};
|
|
397
|
-
const d = n.value.getBoundingClientRect().top, $ = n.value.getBoundingClientRect().left,
|
|
397
|
+
const d = n.value.getBoundingClientRect().top, $ = n.value.getBoundingClientRect().left, i = n.value.offsetHeight;
|
|
398
398
|
return {
|
|
399
|
-
_:
|
|
399
|
+
_: a.value,
|
|
400
400
|
x: Math.floor($) + "px",
|
|
401
|
-
y: Math.floor(d +
|
|
401
|
+
y: Math.floor(d + i) + "px"
|
|
402
402
|
};
|
|
403
403
|
});
|
|
404
404
|
return (d, $) => {
|
|
405
|
-
const
|
|
406
|
-
return t(), l(
|
|
407
|
-
Object.keys(d.$slots).some((
|
|
405
|
+
const i = ne("overlay");
|
|
406
|
+
return t(), l(P, null, [
|
|
407
|
+
Object.keys(d.$slots).some((v) => v !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
|
|
408
408
|
key: 0,
|
|
409
409
|
ref_key: "contextmenu",
|
|
410
410
|
ref: n,
|
|
@@ -412,131 +412,131 @@ const Se = /* @__PURE__ */ D(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
|
|
|
412
412
|
}, [
|
|
413
413
|
B("a", {
|
|
414
414
|
class: "contextmenu__trigger",
|
|
415
|
-
onClick: $[0] || ($[0] = (
|
|
415
|
+
onClick: $[0] || ($[0] = (v) => a.value = !0)
|
|
416
416
|
}, [
|
|
417
|
-
|
|
418
|
-
visible:
|
|
417
|
+
A(d.$slots, "default", pe(Ve({
|
|
418
|
+
visible: a.value
|
|
419
419
|
})), void 0, !0)
|
|
420
420
|
])
|
|
421
|
-
], 512)) :
|
|
422
|
-
|
|
421
|
+
], 512)) : b("", !0),
|
|
422
|
+
a.value ? (t(), V(Ge, {
|
|
423
423
|
key: 1,
|
|
424
424
|
to: "main"
|
|
425
425
|
}, [
|
|
426
|
-
|
|
427
|
-
modelValue:
|
|
428
|
-
"onUpdate:modelValue": $[4] || ($[4] = (
|
|
426
|
+
J((t(), V(Se, {
|
|
427
|
+
modelValue: a.value,
|
|
428
|
+
"onUpdate:modelValue": $[4] || ($[4] = (v) => a.value = v),
|
|
429
429
|
fill: "",
|
|
430
430
|
bordered: "",
|
|
431
431
|
class: "content",
|
|
432
432
|
style: { "--panel-min-width": "0" }
|
|
433
433
|
}, {
|
|
434
|
-
default:
|
|
434
|
+
default: y(() => [
|
|
435
435
|
B("div", dn, [
|
|
436
436
|
d.$slots.header ? (t(), l("div", pn, [
|
|
437
|
-
|
|
438
|
-
])) :
|
|
439
|
-
Object.keys(d.$slots).filter((
|
|
437
|
+
A(d.$slots, "header", {}, void 0, !0)
|
|
438
|
+
])) : b("", !0),
|
|
439
|
+
Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)).length > 0 ? (t(), l("div", {
|
|
440
440
|
key: 1,
|
|
441
441
|
class: "content__section",
|
|
442
|
-
onClick: $[1] || ($[1] = (
|
|
442
|
+
onClick: $[1] || ($[1] = (v) => a.value = !1)
|
|
443
443
|
}, [
|
|
444
|
-
(t(!0), l(
|
|
444
|
+
(t(!0), l(P, null, H(Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)), (v, k) => (t(), V(ye, {
|
|
445
445
|
key: `slot-${k}`,
|
|
446
446
|
class: "content__item content__item--reactive"
|
|
447
447
|
}, {
|
|
448
|
-
default:
|
|
449
|
-
|
|
448
|
+
default: y(() => [
|
|
449
|
+
A(d.$slots, v, {}, void 0, !0)
|
|
450
450
|
]),
|
|
451
451
|
_: 2
|
|
452
452
|
}, 1024))), 128))
|
|
453
|
-
])) :
|
|
453
|
+
])) : b("", !0),
|
|
454
454
|
d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
|
|
455
455
|
key: 2,
|
|
456
456
|
class: "content__section",
|
|
457
|
-
onClick: $[2] || ($[2] = (
|
|
457
|
+
onClick: $[2] || ($[2] = (v) => a.value = !1)
|
|
458
458
|
}, [
|
|
459
|
-
(t(!0), l(
|
|
459
|
+
(t(!0), l(P, null, H(c(d.actions), (v, k) => (t(), V(ye, {
|
|
460
460
|
key: `action-${k}`,
|
|
461
461
|
class: "content__item content__item--reactive",
|
|
462
|
-
onClick: (
|
|
462
|
+
onClick: (f) => u(v, d.subject)
|
|
463
463
|
}, {
|
|
464
|
-
default:
|
|
465
|
-
|
|
464
|
+
default: y(() => [
|
|
465
|
+
v.icon ? (t(), V(Y, {
|
|
466
466
|
key: 0,
|
|
467
|
-
icon:
|
|
467
|
+
icon: v.icon
|
|
468
468
|
}, {
|
|
469
|
-
default:
|
|
470
|
-
|
|
469
|
+
default: y(() => [
|
|
470
|
+
D(C(v.translate ? e(L)(v.label, { capitalize: !0 }) : v.label), 1)
|
|
471
471
|
]),
|
|
472
472
|
_: 2
|
|
473
|
-
}, 1032, ["icon"])) :
|
|
473
|
+
}, 1032, ["icon"])) : b("", !0)
|
|
474
474
|
]),
|
|
475
475
|
_: 2
|
|
476
476
|
}, 1032, ["onClick"]))), 128))
|
|
477
|
-
])) :
|
|
477
|
+
])) : b("", !0),
|
|
478
478
|
d.$slots.extra ? (t(), l("div", {
|
|
479
479
|
key: 3,
|
|
480
480
|
class: "content__section",
|
|
481
|
-
onClick: $[3] || ($[3] = (
|
|
481
|
+
onClick: $[3] || ($[3] = (v) => a.value = !1)
|
|
482
482
|
}, [
|
|
483
483
|
B("div", _n, [
|
|
484
|
-
d.$slots.extra ?
|
|
484
|
+
d.$slots.extra ? A(d.$slots, "extra", { key: 0 }, void 0, !0) : b("", !0)
|
|
485
485
|
])
|
|
486
|
-
])) :
|
|
486
|
+
])) : b("", !0)
|
|
487
487
|
])
|
|
488
488
|
]),
|
|
489
489
|
_: 3
|
|
490
490
|
}, 8, ["modelValue"])), [
|
|
491
491
|
[
|
|
492
|
-
|
|
492
|
+
i,
|
|
493
493
|
{
|
|
494
494
|
layer: d.overlayLayer,
|
|
495
495
|
click: () => {
|
|
496
|
-
|
|
496
|
+
a.value = !1;
|
|
497
497
|
}
|
|
498
498
|
},
|
|
499
499
|
void 0,
|
|
500
500
|
{ invisibleOnLarge: !0 }
|
|
501
501
|
]
|
|
502
502
|
])
|
|
503
|
-
])) :
|
|
503
|
+
])) : b("", !0)
|
|
504
504
|
], 64);
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
|
-
const Ie = /* @__PURE__ */
|
|
508
|
+
const Ie = /* @__PURE__ */ Q(mn, [["__scopeId", "data-v-3fa3b32f"]]), fn = { class: "info__content" }, vn = /* @__PURE__ */ z({
|
|
509
509
|
__name: "aeria-info",
|
|
510
510
|
props: {
|
|
511
511
|
where: { default: "top" }
|
|
512
512
|
},
|
|
513
513
|
setup(p) {
|
|
514
|
-
const r = Me(),
|
|
515
|
-
return (n,
|
|
514
|
+
const r = Me(), o = ee(!1);
|
|
515
|
+
return (n, a) => e(r).md ? (t(), l("div", {
|
|
516
516
|
key: 0,
|
|
517
517
|
class: "info",
|
|
518
|
-
onMouseleave:
|
|
518
|
+
onMouseleave: a[1] || (a[1] = (c) => o.value = !1)
|
|
519
519
|
}, [
|
|
520
|
-
|
|
520
|
+
o.value ? (t(), l("div", {
|
|
521
521
|
key: 0,
|
|
522
|
-
class:
|
|
522
|
+
class: W([
|
|
523
523
|
"info__bubble",
|
|
524
524
|
`info__bubble--${n.where}`
|
|
525
525
|
])
|
|
526
526
|
}, [
|
|
527
527
|
B("div", fn, [
|
|
528
|
-
|
|
528
|
+
A(n.$slots, "text", {}, void 0, !0)
|
|
529
529
|
])
|
|
530
|
-
], 2)) :
|
|
530
|
+
], 2)) : b("", !0),
|
|
531
531
|
B("div", {
|
|
532
|
-
onMouseover:
|
|
532
|
+
onMouseover: a[0] || (a[0] = (c) => o.value = !0)
|
|
533
533
|
}, [
|
|
534
|
-
|
|
534
|
+
A(n.$slots, "default", {}, void 0, !0)
|
|
535
535
|
], 32)
|
|
536
|
-
], 32)) :
|
|
536
|
+
], 32)) : A(n.$slots, "default", { key: 1 }, void 0, !0);
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
|
-
const yn = /* @__PURE__ */
|
|
539
|
+
const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { class: "input" }, hn = {
|
|
540
540
|
key: 0,
|
|
541
541
|
class: "input__label"
|
|
542
542
|
}, $n = {
|
|
@@ -559,19 +559,19 @@ const yn = /* @__PURE__ */ D(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
559
559
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
560
560
|
setup(p, { emit: r }) {
|
|
561
561
|
var Z;
|
|
562
|
-
const
|
|
563
|
-
name:
|
|
562
|
+
const o = p, n = r, a = o.property || {}, c = "icon" in a || "inputType" in a && a.inputType === "search", u = fe("searchOnly", !1), _ = fe("innerInputLabel", !1), d = !u && (o.readOnly || a.readOnly), $ = (h) => (n("clipboardCopy", h), navigator.clipboard.writeText(h)), i = fe("inputVariant", o.variant) || "normal", v = Object.assign(Object.assign({}, o), {
|
|
563
|
+
name: o.propertyName,
|
|
564
564
|
readonly: d,
|
|
565
565
|
type: (() => {
|
|
566
|
-
if ("type" in
|
|
567
|
-
switch (
|
|
566
|
+
if ("type" in a)
|
|
567
|
+
switch (a.type) {
|
|
568
568
|
case "number":
|
|
569
569
|
case "integer":
|
|
570
570
|
return "number";
|
|
571
571
|
}
|
|
572
|
-
if (
|
|
573
|
-
return
|
|
574
|
-
switch (typeof
|
|
572
|
+
if (a.inputType)
|
|
573
|
+
return a.inputType;
|
|
574
|
+
switch (typeof o.modelValue) {
|
|
575
575
|
case "string":
|
|
576
576
|
return "text";
|
|
577
577
|
case "number":
|
|
@@ -580,153 +580,153 @@ const yn = /* @__PURE__ */ D(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
580
580
|
return "text";
|
|
581
581
|
}
|
|
582
582
|
})(),
|
|
583
|
-
placeholder: _ ?
|
|
583
|
+
placeholder: _ ? a.description || o.propertyName : a.placeholder
|
|
584
584
|
});
|
|
585
|
-
"type" in
|
|
586
|
-
|
|
585
|
+
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (v.min = a.minimum), a.exclusiveMinimum && (v.min = a.exclusiveMinimum + 1), a.maximum && (v.max = a.maximum), a.exclusiveMaximum && (v.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (v.type = !u && a.format === "date-time" ? "datetime-local" : "date"), v.minlength = a.minLength, v.maxlength = a.maxLength)), v.type === "text" && u && (v.type = "search"), We(() => {
|
|
586
|
+
o.modelValue !== null && q(o.modelValue);
|
|
587
587
|
});
|
|
588
|
-
const k = (
|
|
589
|
-
if (typeof
|
|
590
|
-
return
|
|
591
|
-
if (!(
|
|
588
|
+
const k = (h) => {
|
|
589
|
+
if (typeof h == "string")
|
|
590
|
+
return h;
|
|
591
|
+
if (!(h instanceof Date))
|
|
592
592
|
return "";
|
|
593
|
-
switch (
|
|
593
|
+
switch (v.type) {
|
|
594
594
|
case "date":
|
|
595
|
-
return
|
|
595
|
+
return h.toISOString().slice(0, 10);
|
|
596
596
|
case "datetime-local":
|
|
597
|
-
return
|
|
597
|
+
return h.toISOString().slice(0, 19);
|
|
598
598
|
default:
|
|
599
599
|
throw new Error();
|
|
600
600
|
}
|
|
601
|
-
},
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
if (
|
|
605
|
-
return
|
|
601
|
+
}, f = ee(""), I = ((Z = o.property) == null ? void 0 : Z.type) === "string" && o.property.mask ? St(o.property.mask) : null;
|
|
602
|
+
ue(() => o.modelValue, (h) => {
|
|
603
|
+
f.value = (() => {
|
|
604
|
+
if (I)
|
|
605
|
+
return h ? I.enmask(String(h), void 0, {
|
|
606
606
|
defaultValue: !0
|
|
607
607
|
}) : "";
|
|
608
|
-
switch (
|
|
608
|
+
switch (v.type) {
|
|
609
609
|
case "date":
|
|
610
610
|
case "datetime-local":
|
|
611
|
-
return k(
|
|
611
|
+
return k(h);
|
|
612
612
|
}
|
|
613
|
-
switch (
|
|
613
|
+
switch (h) {
|
|
614
614
|
case null:
|
|
615
615
|
case void 0:
|
|
616
616
|
return "";
|
|
617
617
|
default:
|
|
618
|
-
return
|
|
618
|
+
return h;
|
|
619
619
|
}
|
|
620
620
|
})();
|
|
621
621
|
}, {
|
|
622
622
|
immediate: !0
|
|
623
623
|
});
|
|
624
|
-
const
|
|
625
|
-
var
|
|
626
|
-
return typeof
|
|
624
|
+
const s = (h) => {
|
|
625
|
+
var G;
|
|
626
|
+
return typeof f.value == "string" && ((G = o.property) == null ? void 0 : G.type) === "string" && I !== null ? (f.value = I.enmask(f.value, void 0, {
|
|
627
627
|
defaultValue: !0
|
|
628
|
-
}),
|
|
629
|
-
}, q = (
|
|
630
|
-
const
|
|
631
|
-
if (!
|
|
632
|
-
return
|
|
633
|
-
switch (
|
|
628
|
+
}), o.property.maskedValue === !0 ? f.value : I.unmask(f.value)) : h;
|
|
629
|
+
}, q = (h) => {
|
|
630
|
+
const G = (() => {
|
|
631
|
+
if (!h || typeof h != "string")
|
|
632
|
+
return h;
|
|
633
|
+
switch (v.type) {
|
|
634
634
|
case "number":
|
|
635
635
|
case "integer":
|
|
636
|
-
return Number(
|
|
636
|
+
return Number(h);
|
|
637
637
|
case "date":
|
|
638
638
|
case "date-time":
|
|
639
|
-
return
|
|
639
|
+
return h;
|
|
640
640
|
default:
|
|
641
|
-
return
|
|
641
|
+
return s(h);
|
|
642
642
|
}
|
|
643
643
|
})();
|
|
644
|
-
n("input",
|
|
645
|
-
},
|
|
646
|
-
const
|
|
647
|
-
|
|
644
|
+
n("input", G), n("update:modelValue", G);
|
|
645
|
+
}, E = (h) => {
|
|
646
|
+
const G = h.target.value;
|
|
647
|
+
f.value = G, q(G);
|
|
648
648
|
};
|
|
649
|
-
return (
|
|
650
|
-
const
|
|
649
|
+
return (h, G) => {
|
|
650
|
+
const oe = ne("focus"), w = ne("clickable");
|
|
651
651
|
return t(), l("label", bn, [
|
|
652
|
-
e(_) ?
|
|
653
|
-
|
|
652
|
+
e(_) ? b("", !0) : (t(), l("div", hn, [
|
|
653
|
+
h.$slots.default ? A(h.$slots, "default", { key: 0 }, void 0, !0) : A(h.$slots, "description", { key: 1 }, void 0, !0)
|
|
654
654
|
])),
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
])) :
|
|
658
|
-
"element" in e(
|
|
655
|
+
h.$slots.hint ? (t(), l("div", $n, [
|
|
656
|
+
A(h.$slots, "hint", {}, void 0, !0)
|
|
657
|
+
])) : b("", !0),
|
|
658
|
+
"element" in e(a) && e(a).element === "textarea" ? (t(), l("div", {
|
|
659
659
|
key: 2,
|
|
660
|
-
class:
|
|
660
|
+
class: W([
|
|
661
661
|
"input__container",
|
|
662
662
|
"input__container--textarea",
|
|
663
|
-
`input__container--${e(
|
|
663
|
+
`input__container--${e(i)}`
|
|
664
664
|
])
|
|
665
665
|
}, [
|
|
666
|
-
|
|
667
|
-
placeholder: e(
|
|
668
|
-
readonly: e(
|
|
669
|
-
value:
|
|
670
|
-
class:
|
|
666
|
+
J(B("textarea", {
|
|
667
|
+
placeholder: e(v).placeholder,
|
|
668
|
+
readonly: e(v).readonly,
|
|
669
|
+
value: h.modelValue,
|
|
670
|
+
class: W([
|
|
671
671
|
"input__textarea",
|
|
672
|
-
`input__input--${e(
|
|
672
|
+
`input__input--${e(i)}`
|
|
673
673
|
]),
|
|
674
|
-
onInput:
|
|
674
|
+
onInput: E
|
|
675
675
|
}, null, 42, gn), [
|
|
676
|
-
[
|
|
676
|
+
[oe, e(a).focus]
|
|
677
677
|
])
|
|
678
678
|
], 2)) : (t(), l("div", {
|
|
679
679
|
key: 3,
|
|
680
|
-
class:
|
|
680
|
+
class: W([
|
|
681
681
|
"input__container",
|
|
682
|
-
`input__container--${e(
|
|
682
|
+
`input__container--${e(i)}`
|
|
683
683
|
])
|
|
684
684
|
}, [
|
|
685
|
-
|
|
686
|
-
value:
|
|
685
|
+
J(B("input", U(e(v), {
|
|
686
|
+
value: f.value,
|
|
687
687
|
"data-component": "input",
|
|
688
688
|
class: [
|
|
689
689
|
"input__input",
|
|
690
|
-
`input__input--${e(
|
|
690
|
+
`input__input--${e(i)}`,
|
|
691
691
|
{ "input__input--icon": e(c) },
|
|
692
692
|
{ "input__input--readOnly": e(d) }
|
|
693
693
|
],
|
|
694
|
-
onInput:
|
|
695
|
-
onChange:
|
|
694
|
+
onInput: E,
|
|
695
|
+
onChange: G[0] || (G[0] = (te) => n("change", te))
|
|
696
696
|
}), null, 16, kn), [
|
|
697
|
-
[
|
|
697
|
+
[oe, e(a).focus]
|
|
698
698
|
]),
|
|
699
|
-
e(c) ? (t(), V(
|
|
699
|
+
e(c) ? (t(), V(Y, {
|
|
700
700
|
key: 0,
|
|
701
|
-
icon: e(
|
|
702
|
-
class:
|
|
701
|
+
icon: e(a).icon || "magnifying-glass",
|
|
702
|
+
class: W([
|
|
703
703
|
"input__icon",
|
|
704
|
-
`input__icon--${e(
|
|
704
|
+
`input__icon--${e(i)}`
|
|
705
705
|
])
|
|
706
|
-
}, null, 8, ["icon", "class"])) :
|
|
706
|
+
}, null, 8, ["icon", "class"])) : b("", !0),
|
|
707
707
|
e(d) ? (t(), l("div", Vn, [
|
|
708
708
|
M(yn, null, {
|
|
709
|
-
text:
|
|
710
|
-
|
|
709
|
+
text: y(() => G[2] || (G[2] = [
|
|
710
|
+
D("Copiar")
|
|
711
711
|
])),
|
|
712
|
-
default:
|
|
713
|
-
|
|
712
|
+
default: y(() => [
|
|
713
|
+
J(M(Y, {
|
|
714
714
|
reactive: "",
|
|
715
715
|
icon: "clipboard",
|
|
716
|
-
onClick:
|
|
716
|
+
onClick: G[1] || (G[1] = Re((te) => $(String(h.modelValue || "")), ["prevent"]))
|
|
717
717
|
}, null, 512), [
|
|
718
718
|
[w]
|
|
719
719
|
])
|
|
720
720
|
]),
|
|
721
721
|
_: 1
|
|
722
722
|
})
|
|
723
|
-
])) :
|
|
723
|
+
])) : b("", !0)
|
|
724
724
|
], 2))
|
|
725
725
|
]);
|
|
726
726
|
};
|
|
727
727
|
}
|
|
728
728
|
});
|
|
729
|
-
const Ce = /* @__PURE__ */
|
|
729
|
+
const Ce = /* @__PURE__ */ Q(Cn, [["__scopeId", "data-v-b4ebd684"]]), On = {
|
|
730
730
|
key: 1,
|
|
731
731
|
value: ""
|
|
732
732
|
}, An = ["value", "data-selected"], In = /* @__PURE__ */ z({
|
|
@@ -744,52 +744,52 @@ const Ce = /* @__PURE__ */ D(Cn, [["__scopeId", "data-v-b4ebd684"]]), On = {
|
|
|
744
744
|
},
|
|
745
745
|
emits: ["update:modelValue", "change"],
|
|
746
746
|
setup(p, { emit: r }) {
|
|
747
|
-
const
|
|
748
|
-
n("update:modelValue",
|
|
749
|
-
}, _ = (
|
|
750
|
-
|
|
751
|
-
}, d = (
|
|
752
|
-
return
|
|
747
|
+
const o = p, n = r, a = ee(null), c = o.property, u = (i) => {
|
|
748
|
+
n("update:modelValue", i), n("change", i);
|
|
749
|
+
}, _ = (i) => {
|
|
750
|
+
i === "" || i === null ? u(null) : o.booleanRef ? u(i === "true") : u(i);
|
|
751
|
+
}, d = (i) => Array.isArray(o.modelValue) ? o.modelValue.includes(i) : o.modelValue === i, $ = K(() => o.multiple ? typeof o.multiple == "number" ? o.multiple : 5 : 1);
|
|
752
|
+
return o.multiple && ue(() => o.modelValue, (i) => {
|
|
753
753
|
var k;
|
|
754
|
-
if (!
|
|
754
|
+
if (!a.value)
|
|
755
755
|
return;
|
|
756
|
-
const
|
|
757
|
-
|
|
758
|
-
}), (
|
|
756
|
+
const v = a.value.querySelector('option[data-selected="true"]');
|
|
757
|
+
v && v.removeAttribute("data-selected"), (k = a.value.querySelector(`option[value="${i}"]`)) == null || k.setAttribute("data-selected", "true");
|
|
758
|
+
}), (i, v) => i.readOnly ? (t(), V(Ce, {
|
|
759
759
|
key: 1,
|
|
760
760
|
"read-only": "",
|
|
761
|
-
"model-value":
|
|
762
|
-
}, null, 8, ["model-value"])) : (t(), l("select",
|
|
761
|
+
"model-value": i.modelValue
|
|
762
|
+
}, null, 8, ["model-value"])) : (t(), l("select", U({ key: 0 }, {
|
|
763
763
|
size: $.value,
|
|
764
|
-
value:
|
|
764
|
+
value: i.modelValue
|
|
765
765
|
}, {
|
|
766
766
|
ref_key: "select",
|
|
767
|
-
ref:
|
|
767
|
+
ref: a,
|
|
768
768
|
class: {
|
|
769
769
|
select: !0,
|
|
770
770
|
"select--multiple": !!$.value,
|
|
771
|
-
"select--outline": !
|
|
771
|
+
"select--outline": !i.noOutline
|
|
772
772
|
},
|
|
773
|
-
onChange:
|
|
773
|
+
onChange: v[0] || (v[0] = (k) => _(k.target.value))
|
|
774
774
|
}), [
|
|
775
|
-
e(c) && e(c).icon ? (t(), V(
|
|
775
|
+
e(c) && e(c).icon ? (t(), V(Y, {
|
|
776
776
|
key: 0,
|
|
777
777
|
icon: e(c).icon
|
|
778
|
-
}, null, 8, ["icon"])) :
|
|
779
|
-
|
|
780
|
-
(t(!0), l(
|
|
781
|
-
var
|
|
778
|
+
}, null, 8, ["icon"])) : b("", !0),
|
|
779
|
+
o.multiple ? b("", !0) : (t(), l("option", On, C(e(L)("none")), 1)),
|
|
780
|
+
(t(!0), l(P, null, H(e(c) && "enum" in e(c) ? e(c).enum : [], (k) => {
|
|
781
|
+
var f;
|
|
782
782
|
return t(), l("option", {
|
|
783
783
|
key: String(k),
|
|
784
784
|
value: k,
|
|
785
785
|
"data-selected": d(k)
|
|
786
|
-
}, C((
|
|
786
|
+
}, C((f = e(c)) != null && f.translate ? e(L)(k) : k), 9, An);
|
|
787
787
|
}), 128)),
|
|
788
|
-
|
|
788
|
+
A(i.$slots, "default", {}, void 0, !0)
|
|
789
789
|
], 16));
|
|
790
790
|
}
|
|
791
791
|
});
|
|
792
|
-
const Xe = /* @__PURE__ */
|
|
792
|
+
const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-86a1e910"]]), Bn = { class: "pagination" }, Sn = { class: "pagination__arrows" }, wn = ["value"], Tn = {
|
|
793
793
|
key: 0,
|
|
794
794
|
class: "pagination__summary"
|
|
795
795
|
}, jn = /* @__PURE__ */ z({
|
|
@@ -800,96 +800,96 @@ const Xe = /* @__PURE__ */ D(In, [["__scopeId", "data-v-86a1e910"]]), Bn = { cla
|
|
|
800
800
|
},
|
|
801
801
|
emits: ["paginate"],
|
|
802
802
|
setup(p, { emit: r }) {
|
|
803
|
-
const
|
|
804
|
-
get: () => Math.floor(
|
|
803
|
+
const o = p, n = r, a = K({
|
|
804
|
+
get: () => Math.floor(o.pagination.offset / o.pagination.limit),
|
|
805
805
|
set: ($) => {
|
|
806
|
-
|
|
806
|
+
o.pagination.offset = $ * o.pagination.limit;
|
|
807
807
|
}
|
|
808
808
|
}), c = K({
|
|
809
|
-
get: () =>
|
|
809
|
+
get: () => o.pagination.limit,
|
|
810
810
|
set: ($) => {
|
|
811
|
-
|
|
811
|
+
o.pagination.limit = Number($);
|
|
812
812
|
}
|
|
813
|
-
}), u =
|
|
814
|
-
|
|
813
|
+
}), u = ee(a.value ? a.value + 1 : 1), _ = K(() => Math.ceil(o.pagination.recordsTotal / o.pagination.limit)), d = ($) => {
|
|
814
|
+
a.value = $ === "previous" ? a.value - 1 : a.value + 1;
|
|
815
815
|
};
|
|
816
|
-
return
|
|
817
|
-
|
|
816
|
+
return ue([
|
|
817
|
+
a,
|
|
818
818
|
c
|
|
819
819
|
], ([$]) => {
|
|
820
820
|
u.value = $ + 1, n("paginate", {
|
|
821
|
-
offset:
|
|
821
|
+
offset: a.value * c.value,
|
|
822
822
|
limit: c.value
|
|
823
823
|
});
|
|
824
|
-
}), ($,
|
|
824
|
+
}), ($, i) => (t(), l("div", Bn, [
|
|
825
825
|
B("div", Sn, [
|
|
826
|
-
M(
|
|
827
|
-
disabled:
|
|
828
|
-
onClick:
|
|
826
|
+
M(ye, {
|
|
827
|
+
disabled: a.value === 0,
|
|
828
|
+
onClick: i[0] || (i[0] = (v) => a.value = 0)
|
|
829
829
|
}, {
|
|
830
|
-
default:
|
|
831
|
-
M(
|
|
830
|
+
default: y(() => [
|
|
831
|
+
M(Y, { icon: "caret-double-left" })
|
|
832
832
|
]),
|
|
833
833
|
_: 1
|
|
834
834
|
}, 8, ["disabled"]),
|
|
835
|
-
M(
|
|
836
|
-
disabled:
|
|
837
|
-
onClick:
|
|
835
|
+
M(ye, {
|
|
836
|
+
disabled: a.value === 0,
|
|
837
|
+
onClick: i[1] || (i[1] = (v) => d("previous"))
|
|
838
838
|
}, {
|
|
839
|
-
default:
|
|
840
|
-
M(
|
|
839
|
+
default: y(() => [
|
|
840
|
+
M(Y, { icon: "caret-left" })
|
|
841
841
|
]),
|
|
842
842
|
_: 1
|
|
843
843
|
}, 8, ["disabled"]),
|
|
844
|
-
M(
|
|
845
|
-
disabled:
|
|
846
|
-
onClick:
|
|
844
|
+
M(ye, {
|
|
845
|
+
disabled: a.value === _.value - 1,
|
|
846
|
+
onClick: i[2] || (i[2] = (v) => d("next"))
|
|
847
847
|
}, {
|
|
848
|
-
default:
|
|
849
|
-
M(
|
|
848
|
+
default: y(() => [
|
|
849
|
+
M(Y, { icon: "caret-right" })
|
|
850
850
|
]),
|
|
851
851
|
_: 1
|
|
852
852
|
}, 8, ["disabled"]),
|
|
853
|
-
M(
|
|
854
|
-
disabled:
|
|
855
|
-
onClick:
|
|
853
|
+
M(ye, {
|
|
854
|
+
disabled: a.value === _.value - 1,
|
|
855
|
+
onClick: i[3] || (i[3] = (v) => a.value = _.value - 1)
|
|
856
856
|
}, {
|
|
857
|
-
default:
|
|
858
|
-
M(
|
|
857
|
+
default: y(() => [
|
|
858
|
+
M(Y, { icon: "caret-double-right" })
|
|
859
859
|
]),
|
|
860
860
|
_: 1
|
|
861
861
|
}, 8, ["disabled"]),
|
|
862
862
|
M(Xe, {
|
|
863
863
|
modelValue: c.value,
|
|
864
|
-
"onUpdate:modelValue":
|
|
864
|
+
"onUpdate:modelValue": i[4] || (i[4] = (v) => c.value = v),
|
|
865
865
|
property: {
|
|
866
866
|
enum: [],
|
|
867
867
|
icon: "list"
|
|
868
868
|
},
|
|
869
869
|
class: "pagination__control"
|
|
870
870
|
}, {
|
|
871
|
-
default:
|
|
872
|
-
(t(!0), l(
|
|
873
|
-
key: `limit-${
|
|
874
|
-
value:
|
|
875
|
-
}, C(
|
|
871
|
+
default: y(() => [
|
|
872
|
+
(t(!0), l(P, null, H(e(wt), (v) => (t(), l("option", {
|
|
873
|
+
key: `limit-${v}`,
|
|
874
|
+
value: v
|
|
875
|
+
}, C(v), 9, wn))), 128))
|
|
876
876
|
]),
|
|
877
877
|
_: 1
|
|
878
878
|
}, 8, ["modelValue"])
|
|
879
879
|
]),
|
|
880
|
-
$.noSummary ?
|
|
881
|
-
|
|
880
|
+
$.noSummary ? b("", !0) : (t(), l("div", Tn, [
|
|
881
|
+
D(C(e(L)("Page")) + " ", 1),
|
|
882
882
|
(t(), V(Ce, {
|
|
883
|
-
key:
|
|
883
|
+
key: a.value,
|
|
884
884
|
modelValue: u.value,
|
|
885
|
-
"onUpdate:modelValue":
|
|
885
|
+
"onUpdate:modelValue": i[5] || (i[5] = (v) => u.value = v),
|
|
886
886
|
property: {
|
|
887
887
|
type: "number",
|
|
888
888
|
minimum: 1
|
|
889
889
|
},
|
|
890
890
|
style: { height: "100%" },
|
|
891
|
-
onChange:
|
|
892
|
-
|
|
891
|
+
onChange: i[6] || (i[6] = (v) => {
|
|
892
|
+
a.value = u.value === 0 ? 0 : u.value - 1;
|
|
893
893
|
})
|
|
894
894
|
}, null, 8, ["modelValue"])),
|
|
895
895
|
B("span", null, C(e(L)("of")) + " " + C(_.value), 1)
|
|
@@ -897,7 +897,7 @@ const Xe = /* @__PURE__ */ D(In, [["__scopeId", "data-v-86a1e910"]]), Bn = { cla
|
|
|
897
897
|
]));
|
|
898
898
|
}
|
|
899
899
|
});
|
|
900
|
-
const Rn = /* @__PURE__ */
|
|
900
|
+
const Rn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Ln = { class: "checkbox__text" }, Mn = ["innerHTML"], qn = { class: "checkbox__hint" }, zn = ["innerHTML"], Fn = {
|
|
901
901
|
inheritAttrs: !1
|
|
902
902
|
}, En = /* @__PURE__ */ z({
|
|
903
903
|
...Fn,
|
|
@@ -914,7 +914,7 @@ const Rn = /* @__PURE__ */ D(jn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
914
914
|
},
|
|
915
915
|
emits: ["update:modelValue", "change"],
|
|
916
916
|
setup(p, { emit: r }) {
|
|
917
|
-
const
|
|
917
|
+
const o = p, n = o.property, a = o.readOnly || (n == null ? void 0 : n.readOnly), c = (() => {
|
|
918
918
|
if (n && "type" in n)
|
|
919
919
|
switch (n.type) {
|
|
920
920
|
case "array":
|
|
@@ -922,54 +922,54 @@ const Rn = /* @__PURE__ */ D(jn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
922
922
|
return "checkbox";
|
|
923
923
|
}
|
|
924
924
|
return "radio";
|
|
925
|
-
})(), u = r, _ =
|
|
925
|
+
})(), u = r, _ = o.value || !1, d = K({
|
|
926
926
|
get: () => {
|
|
927
|
-
var
|
|
927
|
+
var i;
|
|
928
928
|
if (n) {
|
|
929
929
|
if ("type" in n && n.type === "boolean")
|
|
930
|
-
return !!
|
|
930
|
+
return !!o.value;
|
|
931
931
|
if ("items" in n)
|
|
932
|
-
return (
|
|
932
|
+
return (i = o.modelValue) == null ? void 0 : i.includes(o.value);
|
|
933
933
|
}
|
|
934
|
-
return
|
|
934
|
+
return o.modelValue === o.value;
|
|
935
935
|
},
|
|
936
936
|
set: () => {
|
|
937
|
-
var
|
|
938
|
-
if (!
|
|
937
|
+
var i;
|
|
938
|
+
if (!a) {
|
|
939
939
|
if (n) {
|
|
940
940
|
if ("type" in n && n.type === "boolean") {
|
|
941
|
-
u("update:modelValue", !
|
|
941
|
+
u("update:modelValue", !o.modelValue);
|
|
942
942
|
return;
|
|
943
943
|
}
|
|
944
944
|
if ("items" in n) {
|
|
945
|
-
if ((
|
|
946
|
-
u("update:modelValue",
|
|
945
|
+
if ((i = o.modelValue) != null && i.includes(_)) {
|
|
946
|
+
u("update:modelValue", o.modelValue.filter((v) => v !== _));
|
|
947
947
|
return;
|
|
948
948
|
}
|
|
949
|
-
u("update:modelValue", [_].concat(
|
|
949
|
+
u("update:modelValue", [_].concat(o.modelValue || []));
|
|
950
950
|
return;
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
u("update:modelValue",
|
|
953
|
+
u("update:modelValue", o.value);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
}), $ = (
|
|
957
|
-
|
|
956
|
+
}), $ = (i) => {
|
|
957
|
+
a && i.preventDefault();
|
|
958
958
|
};
|
|
959
|
-
return (
|
|
960
|
-
var
|
|
961
|
-
const k =
|
|
962
|
-
return
|
|
963
|
-
class:
|
|
959
|
+
return (i, v) => {
|
|
960
|
+
var f, I;
|
|
961
|
+
const k = ne("clickable");
|
|
962
|
+
return J((t(), l("label", {
|
|
963
|
+
class: W([
|
|
964
964
|
"checkbox",
|
|
965
|
-
{ "checkbox--readOnly": e(
|
|
965
|
+
{ "checkbox--readOnly": e(a) }
|
|
966
966
|
])
|
|
967
967
|
}, [
|
|
968
|
-
|
|
969
|
-
"onUpdate:modelValue":
|
|
968
|
+
J(B("input", U({
|
|
969
|
+
"onUpdate:modelValue": v[0] || (v[0] = (s) => d.value = s)
|
|
970
970
|
}, {
|
|
971
971
|
type: e(c),
|
|
972
|
-
readOnly: e(
|
|
972
|
+
readOnly: e(a),
|
|
973
973
|
checked: d.value
|
|
974
974
|
}, {
|
|
975
975
|
class: "checkbox__input",
|
|
@@ -979,16 +979,16 @@ const Rn = /* @__PURE__ */ D(jn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
979
979
|
]),
|
|
980
980
|
B("div", Ln, [
|
|
981
981
|
B("div", null, [
|
|
982
|
-
|
|
982
|
+
i.$slots.description ? A(i.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), l("div", {
|
|
983
983
|
key: 1,
|
|
984
|
-
innerHTML: (
|
|
985
|
-
}, null, 8, Mn)) :
|
|
984
|
+
innerHTML: (f = e(n)) != null && f.translate ? e(L)(e(_)) : e(_)
|
|
985
|
+
}, null, 8, Mn)) : A(i.$slots, "default", { key: 2 }, void 0, !0)
|
|
986
986
|
]),
|
|
987
987
|
B("div", qn, [
|
|
988
|
-
|
|
988
|
+
i.$slots.hint ? A(i.$slots, "hint", { key: 0 }, void 0, !0) : (I = e(n)) != null && I.hint ? (t(), l("div", {
|
|
989
989
|
key: 1,
|
|
990
990
|
innerHTML: e(n).hint
|
|
991
|
-
}, null, 8, zn)) :
|
|
991
|
+
}, null, 8, zn)) : b("", !0)
|
|
992
992
|
])
|
|
993
993
|
])
|
|
994
994
|
], 2)), [
|
|
@@ -997,7 +997,7 @@ const Rn = /* @__PURE__ */ D(jn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
997
997
|
};
|
|
998
998
|
}
|
|
999
999
|
});
|
|
1000
|
-
const Un = /* @__PURE__ */
|
|
1000
|
+
const Un = /* @__PURE__ */ Q(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
|
|
1001
1001
|
inheritAttrs: !1
|
|
1002
1002
|
}, Dn = /* @__PURE__ */ z({
|
|
1003
1003
|
...Hn,
|
|
@@ -1013,28 +1013,28 @@ const Un = /* @__PURE__ */ D(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
|
|
|
1013
1013
|
},
|
|
1014
1014
|
emits: ["update:modelValue"],
|
|
1015
1015
|
setup(p, { emit: r }) {
|
|
1016
|
-
const
|
|
1016
|
+
const o = p, n = r, a = o.readOnly || o.property.readOnly, c = "items" in o.property ? o.property.items.enum : o.property.enum, u = (_) => {
|
|
1017
1017
|
n("update:modelValue", _);
|
|
1018
1018
|
};
|
|
1019
1019
|
return mt(() => {
|
|
1020
|
-
|
|
1020
|
+
o.modelValue || n(
|
|
1021
1021
|
"update:modelValue",
|
|
1022
|
-
"items" in
|
|
1022
|
+
"items" in o.property ? [] : ""
|
|
1023
1023
|
);
|
|
1024
1024
|
}), (_, d) => (t(), l("div", {
|
|
1025
1025
|
class: "options",
|
|
1026
|
-
style:
|
|
1026
|
+
style: $e(`
|
|
1027
1027
|
--columns: ${_.columns};
|
|
1028
1028
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1029
1029
|
`)
|
|
1030
1030
|
}, [
|
|
1031
|
-
(t(!0), l(
|
|
1031
|
+
(t(!0), l(P, null, H(e(c), ($) => (t(), l("div", {
|
|
1032
1032
|
key: `option-${$}`,
|
|
1033
1033
|
class: "options__checkbox"
|
|
1034
1034
|
}, [
|
|
1035
|
-
M(Un,
|
|
1035
|
+
M(Un, U({ ref_for: !0 }, {
|
|
1036
1036
|
value: $,
|
|
1037
|
-
readOnly: e(
|
|
1037
|
+
readOnly: e(a),
|
|
1038
1038
|
property: _.property
|
|
1039
1039
|
}, {
|
|
1040
1040
|
"model-value": _.modelValue,
|
|
@@ -1044,7 +1044,7 @@ const Un = /* @__PURE__ */ D(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
|
|
|
1044
1044
|
], 4));
|
|
1045
1045
|
}
|
|
1046
1046
|
});
|
|
1047
|
-
const Qn = /* @__PURE__ */
|
|
1047
|
+
const Qn = /* @__PURE__ */ Q(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { class: "switch-wrapper" }, Wn = { key: 1 }, Yn = {
|
|
1048
1048
|
inheritAttrs: !1
|
|
1049
1049
|
}, Kn = /* @__PURE__ */ z({
|
|
1050
1050
|
...Yn,
|
|
@@ -1059,15 +1059,15 @@ const Qn = /* @__PURE__ */ D(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { cla
|
|
|
1059
1059
|
},
|
|
1060
1060
|
emits: ["update:modelValue", "change"],
|
|
1061
1061
|
setup(p, { emit: r }) {
|
|
1062
|
-
const
|
|
1063
|
-
c || (n("change", !
|
|
1062
|
+
const o = p, n = r, a = o.property, c = o.readOnly || (a == null ? void 0 : a.readOnly), u = () => {
|
|
1063
|
+
c || (n("change", !o.modelValue), n("update:modelValue", !o.modelValue));
|
|
1064
1064
|
};
|
|
1065
1065
|
return (_, d) => {
|
|
1066
|
-
var
|
|
1067
|
-
const $ =
|
|
1066
|
+
var i;
|
|
1067
|
+
const $ = ne("clickable");
|
|
1068
1068
|
return t(), l("div", Gn, [
|
|
1069
|
-
|
|
1070
|
-
class:
|
|
1069
|
+
J((t(), l("a", {
|
|
1070
|
+
class: W([
|
|
1071
1071
|
"switch",
|
|
1072
1072
|
{ "switch--active": _.modelValue },
|
|
1073
1073
|
{ "switch--readOnly": e(c) }
|
|
@@ -1076,7 +1076,7 @@ const Qn = /* @__PURE__ */ D(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { cla
|
|
|
1076
1076
|
}, [
|
|
1077
1077
|
d[0] || (d[0] = B("div", { class: "switch__slider" }, null, -1)),
|
|
1078
1078
|
B("div", {
|
|
1079
|
-
class:
|
|
1079
|
+
class: W([
|
|
1080
1080
|
"switch__dummy",
|
|
1081
1081
|
{ "switch__dummy--flex": !_.modelValue }
|
|
1082
1082
|
])
|
|
@@ -1086,12 +1086,12 @@ const Qn = /* @__PURE__ */ D(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { cla
|
|
|
1086
1086
|
blocked: e(c)
|
|
1087
1087
|
}]
|
|
1088
1088
|
]),
|
|
1089
|
-
_.$slots.default ?
|
|
1089
|
+
_.$slots.default ? A(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), l("div", Wn, C(((i = e(a)) == null ? void 0 : i.description) || _.propertyName), 1))
|
|
1090
1090
|
]);
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
1093
|
});
|
|
1094
|
-
const Xn = /* @__PURE__ */
|
|
1094
|
+
const Xn = /* @__PURE__ */ Q(Kn, [["__scopeId", "data-v-ae45597d"]]), Jn = { class: "picture" }, Zn = { style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" } }, Pn = ["src", "alt"], Nn = {
|
|
1095
1095
|
key: 0,
|
|
1096
1096
|
class: "picture__meta"
|
|
1097
1097
|
}, xn = ["src"], eo = { key: 5 }, to = /* @__PURE__ */ z({
|
|
@@ -1109,26 +1109,26 @@ const Xn = /* @__PURE__ */ D(Kn, [["__scopeId", "data-v-ae45597d"]]), Jn = { cla
|
|
|
1109
1109
|
meta: {}
|
|
1110
1110
|
},
|
|
1111
1111
|
setup(p) {
|
|
1112
|
-
const r = p,
|
|
1113
|
-
return (
|
|
1112
|
+
const r = p, o = K(() => r.fileId ? `${ft}/file/${r.fileId}/picture` : r.url || r.modelValue), n = ee(!1);
|
|
1113
|
+
return (a, c) => {
|
|
1114
1114
|
var _;
|
|
1115
|
-
const u =
|
|
1115
|
+
const u = ne("overlay");
|
|
1116
1116
|
return t(), l("figure", Jn, [
|
|
1117
|
-
|
|
1117
|
+
o.value && n.value ? (t(), V(Ge, {
|
|
1118
1118
|
key: 0,
|
|
1119
1119
|
to: "main"
|
|
1120
1120
|
}, [
|
|
1121
|
-
|
|
1121
|
+
J((t(), l("div", Zn, [
|
|
1122
1122
|
B("img", {
|
|
1123
|
-
src:
|
|
1124
|
-
alt:
|
|
1123
|
+
src: o.value,
|
|
1124
|
+
alt: a.alt,
|
|
1125
1125
|
style: `
|
|
1126
1126
|
max-height: 60vh;
|
|
1127
1127
|
object-fit: contain;
|
|
1128
1128
|
`,
|
|
1129
1129
|
onClick: c[0] || (c[0] = (d) => n.value = !0)
|
|
1130
1130
|
}, null, 8, Pn),
|
|
1131
|
-
(_ =
|
|
1131
|
+
(_ = a.meta) != null && _.owner ? (t(), l("div", Nn, C(a.t("created_by")) + " " + C(a.meta.owner.name) + " em " + C(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : b("", !0)
|
|
1132
1132
|
])), [
|
|
1133
1133
|
[u, {
|
|
1134
1134
|
layer: 60,
|
|
@@ -1137,35 +1137,35 @@ const Xn = /* @__PURE__ */ D(Kn, [["__scopeId", "data-v-ae45597d"]]), Jn = { cla
|
|
|
1137
1137
|
}
|
|
1138
1138
|
}]
|
|
1139
1139
|
])
|
|
1140
|
-
])) :
|
|
1141
|
-
|
|
1140
|
+
])) : b("", !0),
|
|
1141
|
+
o.value ? (t(), l("img", {
|
|
1142
1142
|
key: 1,
|
|
1143
|
-
src:
|
|
1144
|
-
class:
|
|
1143
|
+
src: o.value,
|
|
1144
|
+
class: W([
|
|
1145
1145
|
"picture__image",
|
|
1146
|
-
{ "picture__image--bordered":
|
|
1147
|
-
{ "picture__image--expandable":
|
|
1146
|
+
{ "picture__image--bordered": a.bordered },
|
|
1147
|
+
{ "picture__image--expandable": a.expandable }
|
|
1148
1148
|
]),
|
|
1149
|
-
style:
|
|
1150
|
-
object-fit: ${
|
|
1151
|
-
width: ${
|
|
1152
|
-
height: ${
|
|
1149
|
+
style: $e(`
|
|
1150
|
+
object-fit: ${a.objectFit || "cover"};
|
|
1151
|
+
width: ${a.width || "100%"};
|
|
1152
|
+
height: ${a.height || "100%"};
|
|
1153
1153
|
`),
|
|
1154
1154
|
onClick: c[1] || (c[1] = () => {
|
|
1155
|
-
|
|
1155
|
+
a.expandable && (n.value = !0);
|
|
1156
1156
|
})
|
|
1157
|
-
}, null, 14, xn)) :
|
|
1157
|
+
}, null, 14, xn)) : a.$slots.fallback ? A(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? A(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), l("svg", {
|
|
1158
1158
|
key: 4,
|
|
1159
|
-
class:
|
|
1160
|
-
{ "picture__image--bordered":
|
|
1159
|
+
class: W(["picture__background", [
|
|
1160
|
+
{ "picture__image--bordered": a.bordered }
|
|
1161
1161
|
]]),
|
|
1162
1162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1163
1163
|
viewBox: "0 0 200 200",
|
|
1164
1164
|
preserveAspectRatio: "none",
|
|
1165
|
-
style:
|
|
1166
|
-
object-fit: ${
|
|
1167
|
-
width: ${
|
|
1168
|
-
height: ${
|
|
1165
|
+
style: $e(`
|
|
1166
|
+
object-fit: ${a.objectFit || "cover"};
|
|
1167
|
+
width: ${a.width || "100%"};
|
|
1168
|
+
height: ${a.height || "100%"};
|
|
1169
1169
|
`)
|
|
1170
1170
|
}, c[2] || (c[2] = [
|
|
1171
1171
|
B("line", {
|
|
@@ -1185,14 +1185,14 @@ const Xn = /* @__PURE__ */ D(Kn, [["__scopeId", "data-v-ae45597d"]]), Jn = { cla
|
|
|
1185
1185
|
"vector-effect": "non-scaling-stroke"
|
|
1186
1186
|
}, null, -1)
|
|
1187
1187
|
]), 6)),
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
])) :
|
|
1188
|
+
a.$slots.caption ? (t(), l("figcaption", eo, [
|
|
1189
|
+
A(a.$slots, "caption", {}, void 0, !0)
|
|
1190
|
+
])) : b("", !0)
|
|
1191
1191
|
]);
|
|
1192
1192
|
};
|
|
1193
1193
|
}
|
|
1194
1194
|
});
|
|
1195
|
-
const Ee = /* @__PURE__ */
|
|
1195
|
+
const Ee = /* @__PURE__ */ Q(to, [["__scopeId", "data-v-9e6a58b0"]]), no = { class: "item" }, oo = { class: "item__presentation" }, ao = {
|
|
1196
1196
|
key: 1,
|
|
1197
1197
|
class: "item__name"
|
|
1198
1198
|
}, lo = { class: "item__size" }, so = /* @__PURE__ */ z({
|
|
@@ -1201,9 +1201,9 @@ const Ee = /* @__PURE__ */ D(to, [["__scopeId", "data-v-9e6a58b0"]]), no = { cla
|
|
|
1201
1201
|
modelValue: {}
|
|
1202
1202
|
},
|
|
1203
1203
|
setup(p) {
|
|
1204
|
-
const r = p,
|
|
1205
|
-
const c =
|
|
1206
|
-
return `${(
|
|
1204
|
+
const r = p, o = "_id" in r.modelValue ? r.modelValue : r.modelValue.file, n = (a) => {
|
|
1205
|
+
const c = a === 0 ? 0 : Math.floor(Math.log(a) / Math.log(1024));
|
|
1206
|
+
return `${(a / Math.pow(1024, c)).toFixed(2)} ${[
|
|
1207
1207
|
"B",
|
|
1208
1208
|
"kB",
|
|
1209
1209
|
"MB",
|
|
@@ -1211,37 +1211,37 @@ const Ee = /* @__PURE__ */ D(to, [["__scopeId", "data-v-9e6a58b0"]]), no = { cla
|
|
|
1211
1211
|
"TB"
|
|
1212
1212
|
][c]}`;
|
|
1213
1213
|
};
|
|
1214
|
-
return (
|
|
1215
|
-
"_id" in e(
|
|
1214
|
+
return (a, c) => (t(), l("div", no, [
|
|
1215
|
+
"_id" in e(o) && e(o).type.startsWith("image/") ? (t(), V(Ee, {
|
|
1216
1216
|
key: 0,
|
|
1217
1217
|
bordered: "",
|
|
1218
1218
|
expandable: "",
|
|
1219
|
-
alt: e(
|
|
1220
|
-
url: e(
|
|
1219
|
+
alt: e(o).name,
|
|
1220
|
+
url: e(o).link,
|
|
1221
1221
|
class: "item__picture"
|
|
1222
|
-
}, null, 8, ["alt", "url"])) :
|
|
1222
|
+
}, null, 8, ["alt", "url"])) : b("", !0),
|
|
1223
1223
|
B("div", oo, [
|
|
1224
|
-
"_id" in e(
|
|
1224
|
+
"_id" in e(o) ? (t(), V(Y, {
|
|
1225
1225
|
key: 0,
|
|
1226
1226
|
icon: "arrow-square-out",
|
|
1227
|
-
href: e(
|
|
1227
|
+
href: e(o).link,
|
|
1228
1228
|
target: "_blank",
|
|
1229
1229
|
class: "item__name item__name--link"
|
|
1230
1230
|
}, {
|
|
1231
|
-
default:
|
|
1232
|
-
|
|
1231
|
+
default: y(() => [
|
|
1232
|
+
D(C(e(o).name), 1)
|
|
1233
1233
|
]),
|
|
1234
1234
|
_: 1
|
|
1235
|
-
}, 8, ["href"])) : (t(), l("div", ao, C(e(
|
|
1236
|
-
B("div", lo, C(n(e(
|
|
1235
|
+
}, 8, ["href"])) : (t(), l("div", ao, C(e(o).name), 1)),
|
|
1236
|
+
B("div", lo, C(n(e(o).size)), 1)
|
|
1237
1237
|
]),
|
|
1238
1238
|
B("div", null, [
|
|
1239
|
-
|
|
1239
|
+
A(a.$slots, "default", {}, void 0, !0)
|
|
1240
1240
|
])
|
|
1241
1241
|
]));
|
|
1242
1242
|
}
|
|
1243
1243
|
});
|
|
1244
|
-
const io = /* @__PURE__ */
|
|
1244
|
+
const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { class: "file" }, uo = ["accept", "multiple"], co = {
|
|
1245
1245
|
key: 1,
|
|
1246
1246
|
class: "file__list"
|
|
1247
1247
|
}, po = /* @__PURE__ */ z({
|
|
@@ -1259,82 +1259,82 @@ const io = /* @__PURE__ */ D(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
|
|
|
1259
1259
|
},
|
|
1260
1260
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1261
1261
|
setup(p, { emit: r }) {
|
|
1262
|
-
const
|
|
1263
|
-
if (
|
|
1264
|
-
return Array.isArray(
|
|
1265
|
-
}), $ = (k) => new Promise((
|
|
1266
|
-
const
|
|
1267
|
-
|
|
1268
|
-
}),
|
|
1269
|
-
const
|
|
1270
|
-
if (!
|
|
1262
|
+
const o = p, n = o.property && me(o.property), a = r, u = qe() ? Ue() : null, _ = o.multiple || o.property && "type" in o.property && o.property.type === "array", d = K(() => {
|
|
1263
|
+
if (o.modelValue)
|
|
1264
|
+
return Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue];
|
|
1265
|
+
}), $ = (k) => new Promise((f) => {
|
|
1266
|
+
const I = new FileReader();
|
|
1267
|
+
I.onload = () => f(I.result), I.readAsArrayBuffer(k);
|
|
1268
|
+
}), i = async (k) => {
|
|
1269
|
+
const f = k.target.files;
|
|
1270
|
+
if (!f)
|
|
1271
1271
|
return;
|
|
1272
|
-
const
|
|
1273
|
-
for (const
|
|
1274
|
-
const q = await $(
|
|
1272
|
+
const I = [];
|
|
1273
|
+
for (const s of f) {
|
|
1274
|
+
const q = await $(s);
|
|
1275
1275
|
if (u) {
|
|
1276
|
-
const { data: { error:
|
|
1276
|
+
const { data: { error: E, result: Z } } = await Tt(`${ft}/${u.$id}/upload?name=${s.name}`, q, {
|
|
1277
1277
|
params: {
|
|
1278
1278
|
method: "POST",
|
|
1279
1279
|
headers: {
|
|
1280
|
-
"content-type":
|
|
1280
|
+
"content-type": s.type || "application/octet-stream",
|
|
1281
1281
|
"x-stream-request": "1"
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
1284
1284
|
});
|
|
1285
|
-
if (
|
|
1285
|
+
if (E)
|
|
1286
1286
|
return;
|
|
1287
|
-
|
|
1287
|
+
I.unshift({
|
|
1288
1288
|
tempId: Z.tempId,
|
|
1289
|
-
file:
|
|
1289
|
+
file: s
|
|
1290
1290
|
});
|
|
1291
1291
|
} else
|
|
1292
|
-
|
|
1293
|
-
file:
|
|
1292
|
+
I.unshift({
|
|
1293
|
+
file: s
|
|
1294
1294
|
});
|
|
1295
1295
|
}
|
|
1296
|
-
_ ?
|
|
1297
|
-
},
|
|
1298
|
-
if (!
|
|
1296
|
+
_ ? a("update:modelValue", Array.isArray(o.modelValue) ? I.concat(o.modelValue) : I) : a("update:modelValue", I[0]), a("update:content", I), a("change", I);
|
|
1297
|
+
}, v = async (k) => {
|
|
1298
|
+
if (!o.modelValue)
|
|
1299
1299
|
throw new Error();
|
|
1300
|
-
const
|
|
1301
|
-
_ ?
|
|
1300
|
+
const f = Array.isArray(o.modelValue) ? o.modelValue.filter((I, s) => s !== k) : [];
|
|
1301
|
+
_ ? a("update:modelValue", f) : a("update:modelValue", null), a("update:content", f), a("change", f);
|
|
1302
1302
|
};
|
|
1303
|
-
return (k,
|
|
1304
|
-
var
|
|
1305
|
-
const
|
|
1303
|
+
return (k, f) => {
|
|
1304
|
+
var s, q;
|
|
1305
|
+
const I = ne("clickable");
|
|
1306
1306
|
return t(), l("div", ro, [
|
|
1307
|
-
k.readOnly ?
|
|
1307
|
+
k.readOnly ? b("", !0) : (t(), l("input", {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
ref: "file",
|
|
1310
1310
|
type: "file",
|
|
1311
|
-
accept: (q = (
|
|
1311
|
+
accept: (q = (s = e(n)) == null ? void 0 : s.accept) == null ? void 0 : q.join(","),
|
|
1312
1312
|
multiple: e(_),
|
|
1313
|
-
onChange:
|
|
1313
|
+
onChange: i
|
|
1314
1314
|
}, null, 40, uo)),
|
|
1315
1315
|
d.value && d.value.length > 0 ? (t(), l("div", co, [
|
|
1316
|
-
(t(!0), l(
|
|
1317
|
-
key: "_id" in
|
|
1318
|
-
"model-value":
|
|
1316
|
+
(t(!0), l(P, null, H(d.value, (E, Z) => (t(), V(io, {
|
|
1317
|
+
key: "_id" in E ? String(E._id) : E.file.name,
|
|
1318
|
+
"model-value": E
|
|
1319
1319
|
}, {
|
|
1320
|
-
default:
|
|
1321
|
-
k.readOnly ?
|
|
1320
|
+
default: y(() => [
|
|
1321
|
+
k.readOnly ? b("", !0) : J((t(), V(Y, {
|
|
1322
1322
|
key: 0,
|
|
1323
1323
|
reactive: "",
|
|
1324
1324
|
icon: "trash",
|
|
1325
|
-
onClick: (
|
|
1325
|
+
onClick: (h) => v(Z)
|
|
1326
1326
|
}, null, 8, ["onClick"])), [
|
|
1327
|
-
[
|
|
1327
|
+
[I]
|
|
1328
1328
|
])
|
|
1329
1329
|
]),
|
|
1330
1330
|
_: 2
|
|
1331
1331
|
}, 1032, ["model-value"]))), 128))
|
|
1332
|
-
])) :
|
|
1332
|
+
])) : b("", !0)
|
|
1333
1333
|
]);
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
1336
|
});
|
|
1337
|
-
const _o = /* @__PURE__ */
|
|
1337
|
+
const _o = /* @__PURE__ */ Q(po, [["__scopeId", "data-v-9950a715"]]), mo = { class: "container" }, fo = {
|
|
1338
1338
|
key: 1,
|
|
1339
1339
|
class: "container__footer"
|
|
1340
1340
|
}, vo = /* @__PURE__ */ z({
|
|
@@ -1344,27 +1344,27 @@ const _o = /* @__PURE__ */ D(po, [["__scopeId", "data-v-9950a715"]]), mo = { cla
|
|
|
1344
1344
|
},
|
|
1345
1345
|
emits: ["endReached"],
|
|
1346
1346
|
setup(p, { emit: r }) {
|
|
1347
|
-
const
|
|
1347
|
+
const o = p, n = r, a = ee(null), c = o.observeScroll ? Ye(a, {
|
|
1348
1348
|
antecipate: 100
|
|
1349
1349
|
}).reachedEnd : null;
|
|
1350
|
-
return c !== null &&
|
|
1350
|
+
return c !== null && ue(c, (u) => {
|
|
1351
1351
|
u && n("endReached", u);
|
|
1352
1352
|
}), (u, _) => (t(), l("div", mo, [
|
|
1353
1353
|
u.$slots.default ? (t(), l("div", {
|
|
1354
1354
|
key: 0,
|
|
1355
1355
|
ref_key: "containerEl",
|
|
1356
|
-
ref:
|
|
1356
|
+
ref: a,
|
|
1357
1357
|
class: "container__content"
|
|
1358
1358
|
}, [
|
|
1359
|
-
|
|
1360
|
-
], 512)) :
|
|
1359
|
+
A(u.$slots, "default", {}, void 0, !0)
|
|
1360
|
+
], 512)) : b("", !0),
|
|
1361
1361
|
u.$slots.footer ? (t(), l("div", fo, [
|
|
1362
|
-
|
|
1363
|
-
])) :
|
|
1362
|
+
A(u.$slots, "footer", {}, void 0, !0)
|
|
1363
|
+
])) : b("", !0)
|
|
1364
1364
|
]));
|
|
1365
1365
|
}
|
|
1366
1366
|
});
|
|
1367
|
-
const ct = /* @__PURE__ */
|
|
1367
|
+
const ct = /* @__PURE__ */ Q(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { class: "item__values" }, bo = /* @__PURE__ */ z({
|
|
1368
1368
|
__name: "aeria-search-item",
|
|
1369
1369
|
props: {
|
|
1370
1370
|
item: {},
|
|
@@ -1375,63 +1375,63 @@ const ct = /* @__PURE__ */ D(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { cla
|
|
|
1375
1375
|
},
|
|
1376
1376
|
emits: ["update:modelValue", "change"],
|
|
1377
1377
|
setup(p, { emit: r }) {
|
|
1378
|
-
const
|
|
1378
|
+
const o = Be(), n = p, a = r, c = n.property, u = me(c), _ = Ue(), d = K(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: k }) => n.item._id === k) : n.modelValue._id === n.item._id : !1), $ = () => {
|
|
1379
1379
|
if (d.value)
|
|
1380
1380
|
return;
|
|
1381
|
-
const k = (
|
|
1382
|
-
let
|
|
1383
|
-
"items" in c ? n.modelValue ?
|
|
1384
|
-
},
|
|
1381
|
+
const k = (I) => I.filter((s) => !!s._id);
|
|
1382
|
+
let f;
|
|
1383
|
+
"items" in c ? n.modelValue ? f = k(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : f = [] : f = n.modelValue, Array.isArray(f) ? a("update:modelValue", f.concat([n.item])) : a("update:modelValue", n.item), a("change", n.item);
|
|
1384
|
+
}, i = async (k) => {
|
|
1385
1385
|
if (u.purge && (k != null && k.purge)) {
|
|
1386
|
-
const { _id:
|
|
1386
|
+
const { _id: I } = n.item;
|
|
1387
1387
|
await _.$actions.remove({
|
|
1388
1388
|
filters: {
|
|
1389
|
-
_id:
|
|
1389
|
+
_id: I
|
|
1390
1390
|
}
|
|
1391
1391
|
});
|
|
1392
1392
|
}
|
|
1393
|
-
const
|
|
1394
|
-
const
|
|
1395
|
-
return
|
|
1393
|
+
const f = () => {
|
|
1394
|
+
const I = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [], s = I.findIndex((q) => q._id === n.item._id);
|
|
1395
|
+
return I.splice(s, 1), I;
|
|
1396
1396
|
};
|
|
1397
|
-
|
|
1398
|
-
},
|
|
1397
|
+
a("update:modelValue", "items" in c ? f() : null);
|
|
1398
|
+
}, v = () => {
|
|
1399
1399
|
if (n.readOnly) {
|
|
1400
|
-
|
|
1400
|
+
o.push({
|
|
1401
1401
|
path: `/dashboard/c/${u.$ref}/${n.item._id}`
|
|
1402
1402
|
});
|
|
1403
1403
|
return;
|
|
1404
1404
|
}
|
|
1405
|
-
return d.value ?
|
|
1405
|
+
return d.value ? i() : $();
|
|
1406
1406
|
};
|
|
1407
|
-
return (k,
|
|
1408
|
-
const
|
|
1409
|
-
return
|
|
1410
|
-
class:
|
|
1407
|
+
return (k, f) => {
|
|
1408
|
+
const I = ne("clickable");
|
|
1409
|
+
return J((t(), l("div", {
|
|
1410
|
+
class: W({
|
|
1411
1411
|
item: !0,
|
|
1412
1412
|
"item--selected": d.value
|
|
1413
1413
|
}),
|
|
1414
|
-
onClick:
|
|
1414
|
+
onClick: v
|
|
1415
1415
|
}, [
|
|
1416
|
-
|
|
1416
|
+
A(k.$slots, "default", {}, void 0, !0),
|
|
1417
1417
|
B("div", yo, [
|
|
1418
|
-
(t(!0), l(
|
|
1418
|
+
(t(!0), l(P, null, H(k.indexes, (s, q) => (t(), l("div", {
|
|
1419
1419
|
key: `index-${k.item._id}-${q}`,
|
|
1420
1420
|
class: "item__value"
|
|
1421
|
-
}, C(k.item[
|
|
1421
|
+
}, C(k.item[s]), 1))), 128))
|
|
1422
1422
|
]),
|
|
1423
|
-
k.readOnly ? (t(), V(
|
|
1423
|
+
k.readOnly ? (t(), V(Y, {
|
|
1424
1424
|
key: 0,
|
|
1425
1425
|
icon: "arrow-square-out",
|
|
1426
1426
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
1427
|
-
})) :
|
|
1427
|
+
})) : b("", !0)
|
|
1428
1428
|
], 2)), [
|
|
1429
|
-
[
|
|
1429
|
+
[I]
|
|
1430
1430
|
]);
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
1433
|
});
|
|
1434
|
-
const De = /* @__PURE__ */
|
|
1434
|
+
const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { class: "search__panel" }, $o = { key: 1 }, go = { key: 0 }, ko = { key: 1 }, Vo = { class: "search__summary" }, Co = {
|
|
1435
1435
|
key: 1,
|
|
1436
1436
|
class: "search"
|
|
1437
1437
|
}, Oo = { key: 0 }, Fe = 10, Ao = /* @__PURE__ */ z({
|
|
@@ -1448,176 +1448,176 @@ const De = /* @__PURE__ */ D(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
|
|
|
1448
1448
|
},
|
|
1449
1449
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1450
1450
|
setup(p, { emit: r }) {
|
|
1451
|
-
const
|
|
1452
|
-
|
|
1453
|
-
const
|
|
1451
|
+
const o = p, n = ie("meta"), a = me(o.property), c = o.panel !== void 0 ? K(() => o.panel) : ee(!1), u = r, _ = ie(me(o.property).$ref), d = qe(), $ = d ? Ue() : null, i = a.indexes;
|
|
1452
|
+
he(ze, me(o.property).$ref), he("innerInputLabel", !0), he("omitInputLabels", !0);
|
|
1453
|
+
const v = ee(o.modelValue), k = ee({
|
|
1454
1454
|
data: [],
|
|
1455
1455
|
pagination: {}
|
|
1456
|
-
}),
|
|
1457
|
-
const
|
|
1458
|
-
if (
|
|
1459
|
-
const
|
|
1460
|
-
|
|
1456
|
+
}), f = K(() => k.value.data), I = K(() => k.value.pagination), s = ee(0), q = ee(!1), E = ee(""), Z = () => {
|
|
1457
|
+
const g = {};
|
|
1458
|
+
if (d) {
|
|
1459
|
+
const N = e(d);
|
|
1460
|
+
g[N] = $;
|
|
1461
1461
|
}
|
|
1462
|
-
return
|
|
1463
|
-
},
|
|
1464
|
-
|
|
1465
|
-
},
|
|
1462
|
+
return a.constraints ? Et(a.constraints, g) : {};
|
|
1463
|
+
}, h = () => {
|
|
1464
|
+
f.value.length < I.value.recordsTotal && (s.value += 1, oe());
|
|
1465
|
+
}, G = async () => E.value.length === 0 ? _.$actions.custom("getAll", {
|
|
1466
1466
|
limit: Fe,
|
|
1467
|
-
offset:
|
|
1468
|
-
filters:
|
|
1469
|
-
}) :
|
|
1467
|
+
offset: s.value * Fe,
|
|
1468
|
+
filters: Z()
|
|
1469
|
+
}) : _.$actions.custom("getAll", {
|
|
1470
1470
|
limit: Fe,
|
|
1471
|
-
offset:
|
|
1471
|
+
offset: s.value * Fe,
|
|
1472
1472
|
filters: {
|
|
1473
1473
|
$text: {
|
|
1474
|
-
$search: `"${
|
|
1474
|
+
$search: `"${E.value}"`,
|
|
1475
1475
|
$caseSensitive: !1
|
|
1476
1476
|
},
|
|
1477
|
-
...
|
|
1477
|
+
...Z()
|
|
1478
1478
|
}
|
|
1479
|
-
}),
|
|
1480
|
-
if (
|
|
1479
|
+
}), oe = async () => {
|
|
1480
|
+
if (_.loading.getAll)
|
|
1481
1481
|
return;
|
|
1482
|
-
const { error:
|
|
1483
|
-
if (
|
|
1484
|
-
|
|
1482
|
+
const { error: g, result: N } = await G();
|
|
1483
|
+
if (g) {
|
|
1484
|
+
n.$actions.spawnToast({
|
|
1485
1485
|
text: "Request failed",
|
|
1486
1486
|
icon: "warning"
|
|
1487
1487
|
});
|
|
1488
1488
|
return;
|
|
1489
1489
|
}
|
|
1490
|
-
|
|
1491
|
-
}, [
|
|
1490
|
+
k.value.pagination = N.pagination, s.value === 0 && k.value.data.splice(0), k.value.data.push(...N.data);
|
|
1491
|
+
}, [w] = vt({
|
|
1492
1492
|
delay: 800
|
|
1493
1493
|
})(() => {
|
|
1494
|
-
|
|
1495
|
-
}),
|
|
1496
|
-
|
|
1497
|
-
},
|
|
1498
|
-
"effect" in
|
|
1499
|
-
},
|
|
1500
|
-
|
|
1494
|
+
s.value = 0, oe(), q.value = !1;
|
|
1495
|
+
}), te = () => {
|
|
1496
|
+
q.value = !0, w();
|
|
1497
|
+
}, ge = () => {
|
|
1498
|
+
"effect" in c ? u("update:panel", !0) : c.value = !0, oe();
|
|
1499
|
+
}, de = () => {
|
|
1500
|
+
s.value = 0, k.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
|
|
1501
1501
|
};
|
|
1502
|
-
|
|
1503
|
-
|
|
1502
|
+
ue(() => E.value.length, (g, N) => {
|
|
1503
|
+
g && !N && oe();
|
|
1504
1504
|
}), We(() => {
|
|
1505
|
-
|
|
1505
|
+
o.selectOnly && oe();
|
|
1506
1506
|
});
|
|
1507
|
-
const
|
|
1508
|
-
|
|
1509
|
-
},
|
|
1510
|
-
|
|
1507
|
+
const re = (g) => {
|
|
1508
|
+
v.value = g, o.selectOnly || u("update:modelValue", g);
|
|
1509
|
+
}, O = () => {
|
|
1510
|
+
de(), u("update:modelValue", v.value);
|
|
1511
1511
|
};
|
|
1512
|
-
return (
|
|
1513
|
-
const
|
|
1512
|
+
return (g, N) => {
|
|
1513
|
+
const ae = ne("clickable");
|
|
1514
1514
|
return t(), l("div", null, [
|
|
1515
|
-
e(
|
|
1515
|
+
e(c) ? (t(), V(Ge, {
|
|
1516
1516
|
key: 0,
|
|
1517
1517
|
to: "main"
|
|
1518
1518
|
}, [
|
|
1519
1519
|
M(Se, {
|
|
1520
1520
|
float: "",
|
|
1521
1521
|
"close-hint": "",
|
|
1522
|
-
title: `${e(L)("action.select", { capitalize: !0 })} ${e(L)(
|
|
1522
|
+
title: `${e(L)("action.select", { capitalize: !0 })} ${e(L)(g.propertyName)}`,
|
|
1523
1523
|
"overlay-layer": 65,
|
|
1524
|
-
"model-value": e(
|
|
1524
|
+
"model-value": e(c),
|
|
1525
1525
|
style: { "--panel-max-width": "36rem" },
|
|
1526
|
-
onClose:
|
|
1527
|
-
onOverlayClick:
|
|
1526
|
+
onClose: de,
|
|
1527
|
+
onOverlayClick: de
|
|
1528
1528
|
}, {
|
|
1529
|
-
footer:
|
|
1530
|
-
M(
|
|
1529
|
+
footer: y(() => [
|
|
1530
|
+
M(_e, {
|
|
1531
1531
|
large: "",
|
|
1532
|
-
onClick:
|
|
1532
|
+
onClick: O
|
|
1533
1533
|
}, {
|
|
1534
|
-
default:
|
|
1535
|
-
|
|
1534
|
+
default: y(() => [
|
|
1535
|
+
D(C(e(L)("action.save", { capitalize: !0 })), 1)
|
|
1536
1536
|
]),
|
|
1537
1537
|
_: 1
|
|
1538
1538
|
})
|
|
1539
1539
|
]),
|
|
1540
|
-
default:
|
|
1541
|
-
var
|
|
1540
|
+
default: y(() => {
|
|
1541
|
+
var m, T;
|
|
1542
1542
|
return [
|
|
1543
1543
|
B("div", ho, [
|
|
1544
|
-
M(Ce,
|
|
1545
|
-
modelValue:
|
|
1546
|
-
"onUpdate:modelValue":
|
|
1544
|
+
M(Ce, U({
|
|
1545
|
+
modelValue: E.value,
|
|
1546
|
+
"onUpdate:modelValue": N[0] || (N[0] = (F) => E.value = F)
|
|
1547
1547
|
}, {
|
|
1548
1548
|
property: {
|
|
1549
1549
|
type: "string",
|
|
1550
1550
|
placeholder: "Pesquise aqui",
|
|
1551
1551
|
inputType: "search"
|
|
1552
1552
|
}
|
|
1553
|
-
}, { onInput:
|
|
1554
|
-
|
|
1553
|
+
}, { onInput: te }), null, 16, ["modelValue"]),
|
|
1554
|
+
f.value.length ? (t(), V(ct, {
|
|
1555
1555
|
key: 0,
|
|
1556
1556
|
"observe-scroll": "",
|
|
1557
|
-
onEndReached:
|
|
1557
|
+
onEndReached: h
|
|
1558
1558
|
}, {
|
|
1559
|
-
default:
|
|
1560
|
-
(t(!0), l(
|
|
1561
|
-
item:
|
|
1562
|
-
indexes: e(
|
|
1563
|
-
property:
|
|
1559
|
+
default: y(() => [
|
|
1560
|
+
(t(!0), l(P, null, H(f.value, (F) => (t(), V(De, U({ ref_for: !0 }, {
|
|
1561
|
+
item: F,
|
|
1562
|
+
indexes: e(i),
|
|
1563
|
+
property: g.property
|
|
1564
1564
|
}, {
|
|
1565
|
-
key: `matching-${
|
|
1566
|
-
modelValue:
|
|
1567
|
-
"onUpdate:modelValue":
|
|
1565
|
+
key: `matching-${F._id}`,
|
|
1566
|
+
modelValue: v.value,
|
|
1567
|
+
"onUpdate:modelValue": N[1] || (N[1] = (X) => v.value = X)
|
|
1568
1568
|
}), null, 16, ["modelValue"]))), 128))
|
|
1569
1569
|
]),
|
|
1570
1570
|
_: 1
|
|
1571
1571
|
})) : (t(), l("div", $o, [
|
|
1572
|
-
|
|
1572
|
+
q.value ? (t(), l("div", go, C(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(_).loading.getAll && Object.values(E.value).filter((F) => !!F).length > 0 && !("items" in g.property && ((m = g.modelValue) != null && m.length) || !Array.isArray(g.modelValue) && ((T = g.modelValue) != null && T._id)) ? (t(), l("div", ko, C(e(L)("no_results", { capitalize: !0 })), 1)) : b("", !0)
|
|
1573
1573
|
]))
|
|
1574
1574
|
]),
|
|
1575
|
-
B("div", Vo, C(e(L)("showing", { capitalize: !0 })) + " " + C(
|
|
1575
|
+
B("div", Vo, C(e(L)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(L)("of")) + " " + C(I.value.recordsTotal), 1)
|
|
1576
1576
|
];
|
|
1577
1577
|
}),
|
|
1578
1578
|
_: 1
|
|
1579
1579
|
}, 8, ["title", "model-value"])
|
|
1580
|
-
])) :
|
|
1581
|
-
|
|
1582
|
-
M(ct, null,
|
|
1583
|
-
default:
|
|
1584
|
-
var
|
|
1580
|
+
])) : b("", !0),
|
|
1581
|
+
g.selectOnly ? b("", !0) : (t(), l("div", Co, [
|
|
1582
|
+
M(ct, null, ce({
|
|
1583
|
+
default: y(() => {
|
|
1584
|
+
var m;
|
|
1585
1585
|
return [
|
|
1586
|
-
"items" in
|
|
1587
|
-
(t(!0), l(
|
|
1588
|
-
item:
|
|
1589
|
-
indexes: e(
|
|
1590
|
-
property:
|
|
1591
|
-
readOnly:
|
|
1592
|
-
modelValue:
|
|
1586
|
+
"items" in g.property ? (t(), l("div", Oo, [
|
|
1587
|
+
(t(!0), l(P, null, H(g.modelValue, (T) => (t(), V(De, U({ ref_for: !0 }, {
|
|
1588
|
+
item: T,
|
|
1589
|
+
indexes: e(i),
|
|
1590
|
+
property: g.property,
|
|
1591
|
+
readOnly: g.readOnly,
|
|
1592
|
+
modelValue: g.modelValue
|
|
1593
1593
|
}, {
|
|
1594
|
-
key: `selected-${
|
|
1595
|
-
"onUpdate:modelValue":
|
|
1594
|
+
key: `selected-${T._id}`,
|
|
1595
|
+
"onUpdate:modelValue": re
|
|
1596
1596
|
}), null, 16))), 128))
|
|
1597
|
-
])) : (
|
|
1598
|
-
item:
|
|
1599
|
-
indexes: e(
|
|
1600
|
-
property: e(
|
|
1601
|
-
readOnly:
|
|
1602
|
-
modelValue:
|
|
1603
|
-
}, { "onUpdate:modelValue":
|
|
1597
|
+
])) : (m = g.modelValue) != null && m._id ? (t(), V(De, U({ key: 1 }, {
|
|
1598
|
+
item: g.modelValue,
|
|
1599
|
+
indexes: e(i),
|
|
1600
|
+
property: e(a),
|
|
1601
|
+
readOnly: g.readOnly,
|
|
1602
|
+
modelValue: g.modelValue
|
|
1603
|
+
}, { "onUpdate:modelValue": re }), null, 16)) : b("", !0)
|
|
1604
1604
|
];
|
|
1605
1605
|
}),
|
|
1606
1606
|
_: 2
|
|
1607
1607
|
}, [
|
|
1608
|
-
|
|
1608
|
+
g.readOnly ? void 0 : {
|
|
1609
1609
|
name: "footer",
|
|
1610
|
-
fn:
|
|
1611
|
-
|
|
1610
|
+
fn: y(() => [
|
|
1611
|
+
J((t(), V(Y, {
|
|
1612
1612
|
icon: "plus",
|
|
1613
|
-
onClick:
|
|
1613
|
+
onClick: ge
|
|
1614
1614
|
}, {
|
|
1615
|
-
default:
|
|
1616
|
-
|
|
1615
|
+
default: y(() => [
|
|
1616
|
+
D(C(e(L)("action.select", { capitalize: !0 })), 1)
|
|
1617
1617
|
]),
|
|
1618
1618
|
_: 1
|
|
1619
1619
|
})), [
|
|
1620
|
-
[
|
|
1620
|
+
[ae]
|
|
1621
1621
|
])
|
|
1622
1622
|
]),
|
|
1623
1623
|
key: "0"
|
|
@@ -1628,8 +1628,8 @@ const De = /* @__PURE__ */ D(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
|
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
1630
|
});
|
|
1631
|
-
const Io = /* @__PURE__ */
|
|
1632
|
-
const
|
|
1631
|
+
const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r) => {
|
|
1632
|
+
const o = "items" in p ? p.items : p, n = {
|
|
1633
1633
|
options: Qn,
|
|
1634
1634
|
select: Xe,
|
|
1635
1635
|
switch: Xn,
|
|
@@ -1637,11 +1637,11 @@ const Io = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
|
|
|
1637
1637
|
search: Io,
|
|
1638
1638
|
input: Ce,
|
|
1639
1639
|
form: He
|
|
1640
|
-
},
|
|
1641
|
-
if ("type" in
|
|
1642
|
-
if (
|
|
1640
|
+
}, a = (() => {
|
|
1641
|
+
if ("type" in o) {
|
|
1642
|
+
if (o.type === "object")
|
|
1643
1643
|
return "form";
|
|
1644
|
-
if (
|
|
1644
|
+
if (o.type === "boolean")
|
|
1645
1645
|
return "switch";
|
|
1646
1646
|
}
|
|
1647
1647
|
if ("element" in p) {
|
|
@@ -1650,15 +1650,15 @@ const Io = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
|
|
|
1650
1650
|
if (p.element === "select")
|
|
1651
1651
|
return "select";
|
|
1652
1652
|
}
|
|
1653
|
-
const c =
|
|
1654
|
-
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in p && p.uniqueItems ? "options" : "enum" in
|
|
1653
|
+
const c = me(p);
|
|
1654
|
+
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in p && p.uniqueItems ? "options" : "enum" in o ? "select" : "input";
|
|
1655
1655
|
})();
|
|
1656
|
-
return r[
|
|
1657
|
-
}, Bo = (p, r,
|
|
1656
|
+
return r[a] ? r[a] : n[a];
|
|
1657
|
+
}, Bo = (p, r, o) => {
|
|
1658
1658
|
p ?? (p = []);
|
|
1659
1659
|
const n = "items" in r ? r.items : r;
|
|
1660
1660
|
if ("$ref" in n) {
|
|
1661
|
-
const
|
|
1661
|
+
const a = ie(n.$ref, o), c = Ae(a.$freshItem);
|
|
1662
1662
|
return p.push(c);
|
|
1663
1663
|
}
|
|
1664
1664
|
return "properties" in n ? p.push(zt(n)) : "type" in n && n.type === "boolean" ? p.push({}) : p.push(null);
|
|
@@ -1707,14 +1707,14 @@ const Io = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
|
|
|
1707
1707
|
},
|
|
1708
1708
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
1709
1709
|
setup(p, { emit: r }) {
|
|
1710
|
-
var
|
|
1711
|
-
const
|
|
1710
|
+
var ae;
|
|
1711
|
+
const o = Ke(), n = p, a = r;
|
|
1712
1712
|
mt(() => {
|
|
1713
|
-
n.modelValue ||
|
|
1713
|
+
n.modelValue || a("update:modelValue", n.property && "items" in n.property ? [] : {});
|
|
1714
1714
|
});
|
|
1715
|
-
const c = n.property &&
|
|
1715
|
+
const c = n.property && me(n.property), u = c ? c.$ref : n.collection || qe(), _ = n.readOnly || ((ae = n.property) == null ? void 0 : ae.readOnly), d = u ? ie(e(u)) : null;
|
|
1716
1716
|
!u && process.env.NODE_ENV !== "production" && console.warn("aeria-form was used without providing storeId or specifying collection prop, some features may not work as intended");
|
|
1717
|
-
const $ =
|
|
1717
|
+
const $ = ee(!1), i = K(() => {
|
|
1718
1718
|
const m = (() => !n.form && n.property ? "type" in n.property && n.property.type === "object" ? "properties" in n.property ? n.property.properties : void 0 : d == null ? void 0 : d.properties : n.form)();
|
|
1719
1719
|
if (!m)
|
|
1720
1720
|
return;
|
|
@@ -1723,104 +1723,104 @@ const Io = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
|
|
|
1723
1723
|
type: "string",
|
|
1724
1724
|
readOnly: !0
|
|
1725
1725
|
}), n.includeTimestamps) {
|
|
1726
|
-
const
|
|
1726
|
+
const F = {
|
|
1727
1727
|
type: "string",
|
|
1728
1728
|
format: "date-time",
|
|
1729
1729
|
readOnly: !0,
|
|
1730
1730
|
isTimestamp: !0
|
|
1731
1731
|
};
|
|
1732
|
-
m.created_at || (T.created_at =
|
|
1732
|
+
m.created_at || (T.created_at = F), m.created_at || (T.updated_at = F);
|
|
1733
1733
|
}
|
|
1734
1734
|
return Object.assign(T, m), T;
|
|
1735
|
-
}),
|
|
1735
|
+
}), v = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), k = (m) => {
|
|
1736
1736
|
const T = fe(m, n[m]);
|
|
1737
|
-
return n[m] &&
|
|
1738
|
-
},
|
|
1739
|
-
u &&
|
|
1740
|
-
const
|
|
1737
|
+
return n[m] && he(m, n[m]), T;
|
|
1738
|
+
}, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), I = k("formComponents") || {}, s = k("propertyComponents") || {}, q = k("omitFormHeader"), E = k("omitInputLabels"), Z = k("innerInputLabel");
|
|
1739
|
+
u && he(ze, u), he("searchOnly", n.searchOnly);
|
|
1740
|
+
const h = (m) => i.value ? Object.entries(i.value).filter(([T, F]) => !F.noForm && m([
|
|
1741
1741
|
T,
|
|
1742
|
-
|
|
1743
|
-
])) : null,
|
|
1744
|
-
var
|
|
1742
|
+
F
|
|
1743
|
+
])) : null, G = (m, T) => {
|
|
1744
|
+
var X;
|
|
1745
1745
|
if (n.searchOnly || !u || n.includeId && m === "_id" || n.includeTimestamps && T.isTimestamp)
|
|
1746
1746
|
return !0;
|
|
1747
|
-
const
|
|
1748
|
-
return !
|
|
1749
|
-
},
|
|
1750
|
-
var R, se, j,
|
|
1751
|
-
const
|
|
1747
|
+
const F = n.property && "properties" in n.property ? n.property.form : (X = d == null ? void 0 : d.description) == null ? void 0 : X.form;
|
|
1748
|
+
return !F || F.includes(m);
|
|
1749
|
+
}, oe = h(([m, T]) => G(m, T)), w = Me(), te = {}, ge = (m, T) => {
|
|
1750
|
+
var R, se, j, le;
|
|
1751
|
+
const F = [], X = ((se = (R = v.value) == null ? void 0 : R.fields) == null ? void 0 : se[m]) || ((le = (j = v.value) == null ? void 0 : j.fields) == null ? void 0 : le.$default);
|
|
1752
1752
|
if (!T)
|
|
1753
1753
|
return;
|
|
1754
|
-
if (
|
|
1755
|
-
const
|
|
1754
|
+
if (X != null && X.if && !n.searchOnly) {
|
|
1755
|
+
const ve = Qe(
|
|
1756
1756
|
n.modelValue,
|
|
1757
|
-
|
|
1757
|
+
X.if
|
|
1758
1758
|
);
|
|
1759
|
-
|
|
1759
|
+
ve.satisfied || (te[m] && (d ? n.modelValue[m] = typeof d.$freshItem[m] == "object" ? Ae(d.$freshItem[m]) : d.$freshItem[m] : n.modelValue[m] = [
|
|
1760
1760
|
void 0,
|
|
1761
1761
|
null
|
|
1762
|
-
].includes(n.modelValue[m]) ? null : n.modelValue[m].constructor()),
|
|
1762
|
+
].includes(n.modelValue[m]) ? null : n.modelValue[m].constructor()), F.push("display: none;")), te[m] = ve.satisfied;
|
|
1763
1763
|
}
|
|
1764
|
-
const S = w.value.md && (
|
|
1765
|
-
return
|
|
1764
|
+
const S = w.value.md && (X == null ? void 0 : X.span) || 6;
|
|
1765
|
+
return F.push(`
|
|
1766
1766
|
--field-span: ${S};
|
|
1767
1767
|
grid-column: span var(--field-span) / span var(--field-span);
|
|
1768
|
-
`),
|
|
1769
|
-
--vertical-spacing: ${
|
|
1768
|
+
`), X && (X.verticalSpacing && F.push(`
|
|
1769
|
+
--vertical-spacing: ${X.verticalSpacing};
|
|
1770
1770
|
padding: var(--vertical-spacing) 0;
|
|
1771
|
-
`),
|
|
1771
|
+
`), X.separator && F.push(`
|
|
1772
1772
|
border-top: 1px solid var(--theme-border-color);
|
|
1773
1773
|
border-width: 1px 0 1px 0;
|
|
1774
1774
|
padding: 1rem 0;
|
|
1775
1775
|
margin: 1rem 0;
|
|
1776
|
-
`)),
|
|
1777
|
-
},
|
|
1776
|
+
`)), F.join("");
|
|
1777
|
+
}, de = (m) => m === null || m instanceof Object && !Object.keys(m).length, re = K(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), O = K(() => n.form ? Ut(
|
|
1778
1778
|
n.modelValue,
|
|
1779
1779
|
n.form,
|
|
1780
|
-
|
|
1780
|
+
re.value,
|
|
1781
1781
|
d == null ? void 0 : d.description
|
|
1782
|
-
) : !0),
|
|
1783
|
-
var
|
|
1784
|
-
return (
|
|
1785
|
-
},
|
|
1782
|
+
) : !0), g = (m, T) => {
|
|
1783
|
+
var F;
|
|
1784
|
+
return (F = f.value) != null && F[m] && (typeof f.value[m].index != "number" || f.value[m].index === T) ? f.value[m].errors : null;
|
|
1785
|
+
}, N = (m) => {
|
|
1786
1786
|
if (!(_ || m.readOnly) && !n.parentPropertyName && !n.parentCollection && !$.value)
|
|
1787
1787
|
return $.value = !0, !0;
|
|
1788
1788
|
};
|
|
1789
1789
|
return (m, T) => {
|
|
1790
|
-
const
|
|
1790
|
+
const F = ne("clickable"), X = ne("focus");
|
|
1791
1791
|
return t(), l("form", {
|
|
1792
1792
|
class: "form",
|
|
1793
|
-
style:
|
|
1793
|
+
style: $e(`row-gap: ${e(q) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1794
1794
|
}, [
|
|
1795
1795
|
m.$slots.header && !e(q) ? (t(), l("header", wo, [
|
|
1796
|
-
|
|
1797
|
-
])) :
|
|
1798
|
-
|
|
1796
|
+
A(m.$slots, "header", {}, void 0, !0)
|
|
1797
|
+
])) : b("", !0),
|
|
1798
|
+
A(m.$slots, "default", {}, void 0, !0),
|
|
1799
1799
|
B("fieldset", To, [
|
|
1800
|
-
(t(!0), l(
|
|
1801
|
-
var se, j,
|
|
1800
|
+
(t(!0), l(P, null, H(e(oe), ([S, R]) => {
|
|
1801
|
+
var se, j, le, ve, Oe, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
|
|
1802
1802
|
return t(), l("div", {
|
|
1803
1803
|
key: `field-${S}`,
|
|
1804
|
-
style: ge(
|
|
1805
|
-
class:
|
|
1804
|
+
style: $e(ge(S, R)),
|
|
1805
|
+
class: W({
|
|
1806
1806
|
form__field: !0,
|
|
1807
1807
|
"form__field--form": "properties" in R
|
|
1808
1808
|
})
|
|
1809
1809
|
}, [
|
|
1810
|
-
(!("type" in R) || R.type !== "boolean" || m.searchOnly) && !R.noLabel && !e(
|
|
1810
|
+
(!("type" in R) || R.type !== "boolean" || m.searchOnly) && !R.noLabel && !e(E) && !e(Z) ? (t(), l("label", jo, [
|
|
1811
1811
|
B("div", {
|
|
1812
|
-
class:
|
|
1812
|
+
class: W({
|
|
1813
1813
|
"form__field-label": !0,
|
|
1814
1814
|
"form__field-label--section": "items" in R ? "properties" in R.items : "properties" in R,
|
|
1815
|
-
"form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!
|
|
1815
|
+
"form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!re.value || e(Ft)(S, re.value, m.modelValue))
|
|
1816
1816
|
})
|
|
1817
1817
|
}, C(R.description || e(L)(S)), 3),
|
|
1818
1818
|
R.hint ? (t(), l("div", {
|
|
1819
1819
|
key: 0,
|
|
1820
1820
|
innerHTML: R.hint
|
|
1821
|
-
}, null, 8, Ro)) :
|
|
1822
|
-
])) :
|
|
1823
|
-
m.$slots[`field-${S}`] ?
|
|
1821
|
+
}, null, 8, Ro)) : b("", !0)
|
|
1822
|
+
])) : b("", !0),
|
|
1823
|
+
m.$slots[`field-${S}`] ? A(m.$slots, `field-${S}`, U({
|
|
1824
1824
|
key: 1,
|
|
1825
1825
|
ref_for: !0
|
|
1826
1826
|
}, {
|
|
@@ -1828,10 +1828,10 @@ const Io = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
|
|
|
1828
1828
|
property: R,
|
|
1829
1829
|
propertyName: S,
|
|
1830
1830
|
modelValue: m.modelValue
|
|
1831
|
-
}), void 0, !0) : (
|
|
1831
|
+
}), void 0, !0) : (le = (j = (se = m.layout) == null ? void 0 : se.fields) == null ? void 0 : j[S]) != null && le.component && e(s)[m.layout.fields[S].component.name] ? (t(), V(be(e(s)[m.layout.fields[S].component.name]), U({
|
|
1832
1832
|
key: 2,
|
|
1833
1833
|
modelValue: m.modelValue[S],
|
|
1834
|
-
"onUpdate:modelValue": (
|
|
1834
|
+
"onUpdate:modelValue": (x) => m.modelValue[S] = x,
|
|
1835
1835
|
ref_for: !0
|
|
1836
1836
|
}, {
|
|
1837
1837
|
readOnly: e(_),
|
|
@@ -1839,86 +1839,86 @@ const Io = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
|
|
|
1839
1839
|
propertyName: S,
|
|
1840
1840
|
...m.layout.fields[S].component.props || {}
|
|
1841
1841
|
}, {
|
|
1842
|
-
onInput: (
|
|
1843
|
-
onChange: T[0] || (T[0] = (
|
|
1842
|
+
onInput: (x) => a("input", S),
|
|
1843
|
+
onChange: T[0] || (T[0] = (x) => a("change", x))
|
|
1844
1844
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) && m.searchOnly ? (t(), l("div", {
|
|
1845
1845
|
key: 3,
|
|
1846
1846
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1847
|
-
onInput: (
|
|
1848
|
-
onChange: T[1] || (T[1] = (
|
|
1847
|
+
onInput: (x) => a("input", S),
|
|
1848
|
+
onChange: T[1] || (T[1] = (x) => a("change", x))
|
|
1849
1849
|
}, [
|
|
1850
|
-
M(Ce,
|
|
1850
|
+
M(Ce, U({
|
|
1851
1851
|
modelValue: m.modelValue[S].$gte,
|
|
1852
|
-
"onUpdate:modelValue": (
|
|
1852
|
+
"onUpdate:modelValue": (x) => m.modelValue[S].$gte = x,
|
|
1853
1853
|
ref_for: !0
|
|
1854
1854
|
}, {
|
|
1855
1855
|
property: R,
|
|
1856
1856
|
propertyName: S
|
|
1857
1857
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1858
|
-
M(Ce,
|
|
1858
|
+
M(Ce, U({
|
|
1859
1859
|
modelValue: m.modelValue[S].$lte,
|
|
1860
|
-
"onUpdate:modelValue": (
|
|
1860
|
+
"onUpdate:modelValue": (x) => m.modelValue[S].$lte = x,
|
|
1861
1861
|
ref_for: !0
|
|
1862
1862
|
}, {
|
|
1863
1863
|
property: R,
|
|
1864
1864
|
propertyName: S
|
|
1865
1865
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1866
1866
|
], 40, Lo)) : "type" in R && R.type === "boolean" && m.searchOnly ? (t(), l("div", Mo, [
|
|
1867
|
-
M(Xe,
|
|
1867
|
+
M(Xe, U({ ref_for: !0 }, {
|
|
1868
1868
|
property: R,
|
|
1869
1869
|
propertyName: S
|
|
1870
1870
|
}, {
|
|
1871
1871
|
"boolean-ref": "",
|
|
1872
1872
|
"model-value": m.modelValue[S],
|
|
1873
|
-
onChange: T[2] || (T[2] = (
|
|
1874
|
-
"onUpdate:modelValue": (
|
|
1875
|
-
m.modelValue[S] =
|
|
1873
|
+
onChange: T[2] || (T[2] = (x) => a("change", x)),
|
|
1874
|
+
"onUpdate:modelValue": (x) => {
|
|
1875
|
+
m.modelValue[S] = x;
|
|
1876
1876
|
}
|
|
1877
1877
|
}), {
|
|
1878
|
-
default:
|
|
1878
|
+
default: y(() => [
|
|
1879
1879
|
B("option", qo, C(e(L)("yes")), 1),
|
|
1880
1880
|
B("option", zo, C(e(L)("no")), 1)
|
|
1881
1881
|
]),
|
|
1882
1882
|
_: 2
|
|
1883
1883
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1884
1884
|
])) : m.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), l("div", Fo, [
|
|
1885
|
-
e(_) ?
|
|
1886
|
-
M(
|
|
1885
|
+
e(_) ? b("", !0) : (t(), l("div", Eo, [
|
|
1886
|
+
M(_e, {
|
|
1887
1887
|
small: "",
|
|
1888
1888
|
variant: "alt",
|
|
1889
1889
|
icon: "plus",
|
|
1890
|
-
disabled: !("inline" in R.items && R.items.inline) && (((
|
|
1891
|
-
onClick: Re((
|
|
1892
|
-
m.modelValue[S] || (m.modelValue[S] = []), e(Bo)(m.modelValue[S], R, e(
|
|
1890
|
+
disabled: !("inline" in R.items && R.items.inline) && (((ve = m.modelValue[S]) == null ? void 0 : ve.length) >= R.maxItems || de((Je = m.modelValue[S]) == null ? void 0 : Je[((Oe = m.modelValue[S]) == null ? void 0 : Oe.length) - 1])),
|
|
1891
|
+
onClick: Re((x) => {
|
|
1892
|
+
m.modelValue[S] || (m.modelValue[S] = []), e(Bo)(m.modelValue[S], R, e(o));
|
|
1893
1893
|
}, ["prevent"])
|
|
1894
1894
|
}, {
|
|
1895
|
-
default:
|
|
1896
|
-
|
|
1895
|
+
default: y(() => [
|
|
1896
|
+
D(C(e(L)("action.add", { capitalize: !0 })), 1)
|
|
1897
1897
|
]),
|
|
1898
1898
|
_: 2
|
|
1899
1899
|
}, 1032, ["disabled", "onClick"])
|
|
1900
1900
|
])),
|
|
1901
1901
|
((Ze = m.modelValue[S]) == null ? void 0 : Ze.length) > 0 ? (t(), l("div", Uo, [
|
|
1902
|
-
(t(!0), l(
|
|
1902
|
+
(t(!0), l(P, null, H(m.modelValue[S], (x, we) => {
|
|
1903
1903
|
var at, lt, st, it, rt, ut;
|
|
1904
1904
|
return t(), l("div", {
|
|
1905
|
-
key: `rep-${S}-${e(Ht)(
|
|
1905
|
+
key: `rep-${S}-${e(Ht)(x, we)}`,
|
|
1906
1906
|
class: "form__array-item"
|
|
1907
1907
|
}, [
|
|
1908
|
-
e(_) ?
|
|
1908
|
+
e(_) ? b("", !0) : J((t(), V(Y, {
|
|
1909
1909
|
key: 0,
|
|
1910
1910
|
icon: "trash",
|
|
1911
1911
|
class: "form__array-remove",
|
|
1912
1912
|
onClick: Re((Te) => e(So)(m.modelValue[S], we), ["prevent"])
|
|
1913
1913
|
}, {
|
|
1914
|
-
default:
|
|
1915
|
-
|
|
1914
|
+
default: y(() => [
|
|
1915
|
+
D(C(e(L)("action.remove", { capitalize: !0 })), 1)
|
|
1916
1916
|
]),
|
|
1917
1917
|
_: 2
|
|
1918
1918
|
}, 1032, ["onClick"])), [
|
|
1919
|
-
[
|
|
1919
|
+
[F]
|
|
1920
1920
|
]),
|
|
1921
|
-
(t(), V(
|
|
1921
|
+
(t(), V(be(e(dt)(R, e(I))), U({
|
|
1922
1922
|
modelValue: m.modelValue[S][we],
|
|
1923
1923
|
"onUpdate:modelValue": (Te) => m.modelValue[S][we] = Te,
|
|
1924
1924
|
ref_for: !0
|
|
@@ -1929,19 +1929,19 @@ const Io = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
|
|
|
1929
1929
|
parentCollection: e(u),
|
|
1930
1930
|
parentPropertyName: m.parentPropertyName,
|
|
1931
1931
|
columns: ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt[S]) == null ? void 0 : st.optionsColumns) || ((ut = (rt = (it = m.layout) == null ? void 0 : it.fields) == null ? void 0 : rt.$default) == null ? void 0 : ut.optionsColumns),
|
|
1932
|
-
validationErrors:
|
|
1932
|
+
validationErrors: g(S, we),
|
|
1933
1933
|
...R.componentProps || {}
|
|
1934
1934
|
}, {
|
|
1935
|
-
onInput: (Te) =>
|
|
1936
|
-
onChange: T[3] || (T[3] = (Te) =>
|
|
1935
|
+
onInput: (Te) => a("input", S),
|
|
1936
|
+
onChange: T[3] || (T[3] = (Te) => a("change", Te))
|
|
1937
1937
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1938
1938
|
]);
|
|
1939
1939
|
}), 128))
|
|
1940
|
-
])) :
|
|
1941
|
-
])) : m.modelValue ?
|
|
1940
|
+
])) : b("", !0)
|
|
1941
|
+
])) : m.modelValue ? J((t(), V(be(e(dt)(R, e(I))), U({
|
|
1942
1942
|
key: 6,
|
|
1943
1943
|
modelValue: m.modelValue[S],
|
|
1944
|
-
"onUpdate:modelValue": (
|
|
1944
|
+
"onUpdate:modelValue": (x) => m.modelValue[S] = x,
|
|
1945
1945
|
ref_for: !0
|
|
1946
1946
|
}, {
|
|
1947
1947
|
readOnly: e(_),
|
|
@@ -1951,42 +1951,42 @@ const Io = /* @__PURE__ */ D(Ao, [["__scopeId", "data-v-a04c3b05"]]), dt = (p, r
|
|
|
1951
1951
|
parentCollection: e(u),
|
|
1952
1952
|
columns: ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne[S]) == null ? void 0 : xe.optionsColumns) || ((nt = (tt = (et = m.layout) == null ? void 0 : et.fields) == null ? void 0 : tt.$default) == null ? void 0 : nt.optionsColumns),
|
|
1953
1953
|
...R.componentProps || {},
|
|
1954
|
-
validationErrors:
|
|
1954
|
+
validationErrors: g(S)
|
|
1955
1955
|
}, {
|
|
1956
|
-
onInput: (
|
|
1957
|
-
onChange: T[4] || (T[4] = (
|
|
1958
|
-
onClipboardCopy: T[5] || (T[5] = (
|
|
1956
|
+
onInput: (x) => a("input", S),
|
|
1957
|
+
onChange: T[4] || (T[4] = (x) => a("change", x)),
|
|
1958
|
+
onClipboardCopy: T[5] || (T[5] = (x) => a("clipboardCopy", x))
|
|
1959
1959
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1960
|
-
[
|
|
1961
|
-
]) :
|
|
1962
|
-
(ot =
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
])) :
|
|
1960
|
+
[X, N(R)]
|
|
1961
|
+
]) : b("", !0),
|
|
1962
|
+
(ot = f.value) != null && ot[S] ? (t(), l("div", Ho, [
|
|
1963
|
+
f.value[S].type ? (t(), l("span", Do, C(e(L)(`validation_error.${f.value[S].type}`)), 1)) : b("", !0),
|
|
1964
|
+
f.value[S].detail ? (t(), l("span", Qo, C(e(L)(f.value[S].detail)), 1)) : b("", !0)
|
|
1965
|
+
])) : b("", !0)
|
|
1966
1966
|
], 6);
|
|
1967
1967
|
}), 128))
|
|
1968
1968
|
]),
|
|
1969
|
-
m.$slots.after ?
|
|
1969
|
+
m.$slots.after ? A(m.$slots, "after", { key: 1 }, void 0, !0) : b("", !0),
|
|
1970
1970
|
m.$slots.footer ? (t(), l("div", Go, [
|
|
1971
|
-
|
|
1972
|
-
isInsertReady:
|
|
1971
|
+
A(m.$slots, "footer", pe(Ve({
|
|
1972
|
+
isInsertReady: O.value
|
|
1973
1973
|
})), void 0, !0)
|
|
1974
|
-
])) :
|
|
1974
|
+
])) : b("", !0)
|
|
1975
1975
|
], 4);
|
|
1976
1976
|
};
|
|
1977
1977
|
}
|
|
1978
1978
|
});
|
|
1979
|
-
const He = /* @__PURE__ */
|
|
1979
|
+
const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @__PURE__ */ z({
|
|
1980
1980
|
__name: "aeria-filter-panel",
|
|
1981
1981
|
emits: ["update:modelValue"],
|
|
1982
1982
|
setup(p, { emit: r }) {
|
|
1983
|
-
const
|
|
1984
|
-
if (n.pagination.offset = 0, n.$actions.filter(),
|
|
1985
|
-
const _ =
|
|
1983
|
+
const o = r, n = Ue(), a = Be(), c = e(fe(ze)), u = () => {
|
|
1984
|
+
if (n.pagination.offset = 0, n.$actions.filter(), o("update:modelValue", !1), "query" in a.currentRoute && a.currentRoute.query && typeof a.currentRoute.query == "object") {
|
|
1985
|
+
const _ = a.currentRoute.query;
|
|
1986
1986
|
for (const d of Object.keys(_))
|
|
1987
1987
|
d.startsWith(`${c}.`) && delete _[d];
|
|
1988
1988
|
}
|
|
1989
|
-
|
|
1989
|
+
a.push(Le(a.currentRoute, {
|
|
1990
1990
|
query: jt(n)
|
|
1991
1991
|
}));
|
|
1992
1992
|
};
|
|
@@ -1994,42 +1994,42 @@ const He = /* @__PURE__ */ D(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
|
|
|
1994
1994
|
"close-hint": "",
|
|
1995
1995
|
"fixed-right": "",
|
|
1996
1996
|
title: _.t("filter_by", { capitalize: !0 }),
|
|
1997
|
-
onClose: d[2] || (d[2] = ($) =>
|
|
1998
|
-
onOverlayClick: d[3] || (d[3] = ($) =>
|
|
1997
|
+
onClose: d[2] || (d[2] = ($) => o("update:modelValue", !1)),
|
|
1998
|
+
onOverlayClick: d[3] || (d[3] = ($) => o("update:modelValue", !1))
|
|
1999
1999
|
}, {
|
|
2000
|
-
footer:
|
|
2001
|
-
e(n).filtersCount > 0 ? (t(), V(
|
|
2000
|
+
footer: y(() => [
|
|
2001
|
+
e(n).filtersCount > 0 ? (t(), V(_e, {
|
|
2002
2002
|
key: 0,
|
|
2003
2003
|
variant: "transparent",
|
|
2004
2004
|
onClick: d[1] || (d[1] = ($) => {
|
|
2005
|
-
e(n).$actions.clearFilters(), u(),
|
|
2005
|
+
e(n).$actions.clearFilters(), u(), o("update:modelValue", !1);
|
|
2006
2006
|
})
|
|
2007
2007
|
}, {
|
|
2008
|
-
default:
|
|
2009
|
-
|
|
2008
|
+
default: y(() => [
|
|
2009
|
+
D(C(_.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
2010
2010
|
M(ke, null, {
|
|
2011
|
-
default:
|
|
2012
|
-
|
|
2011
|
+
default: y(() => [
|
|
2012
|
+
D(C(e(n).filtersCount), 1)
|
|
2013
2013
|
]),
|
|
2014
2014
|
_: 1
|
|
2015
2015
|
})
|
|
2016
2016
|
]),
|
|
2017
2017
|
_: 1
|
|
2018
|
-
})) :
|
|
2019
|
-
M(
|
|
2018
|
+
})) : b("", !0),
|
|
2019
|
+
M(_e, {
|
|
2020
2020
|
large: "",
|
|
2021
2021
|
icon: "funnel",
|
|
2022
2022
|
disabled: !e(n).hasActiveFilters,
|
|
2023
2023
|
onClick: u
|
|
2024
2024
|
}, {
|
|
2025
|
-
default:
|
|
2026
|
-
|
|
2025
|
+
default: y(() => [
|
|
2026
|
+
D(C(_.t("action.filter", { capitalize: !0 })), 1)
|
|
2027
2027
|
]),
|
|
2028
2028
|
_: 1
|
|
2029
2029
|
}, 8, ["disabled"])
|
|
2030
2030
|
]),
|
|
2031
|
-
default:
|
|
2032
|
-
M(He,
|
|
2031
|
+
default: y(() => [
|
|
2032
|
+
M(He, U({
|
|
2033
2033
|
modelValue: e(n).filters,
|
|
2034
2034
|
"onUpdate:modelValue": d[0] || (d[0] = ($) => e(n).filters = $)
|
|
2035
2035
|
}, {
|
|
@@ -2055,60 +2055,60 @@ const He = /* @__PURE__ */ D(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
|
|
|
2055
2055
|
},
|
|
2056
2056
|
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2057
2057
|
setup(p, { emit: r }) {
|
|
2058
|
-
const
|
|
2058
|
+
const o = p, n = r, a = ie("meta"), c = o.collection, u = ie(c);
|
|
2059
2059
|
We(() => {
|
|
2060
|
-
|
|
2060
|
+
o.modelValue && u.$actions.setItem(o.modelValue);
|
|
2061
2061
|
});
|
|
2062
|
-
const _ = K(() =>
|
|
2063
|
-
const { error: k, result:
|
|
2064
|
-
k || (n("update:visible", !1), n("update:modelValue",
|
|
2065
|
-
}, { t: $ } = It(),
|
|
2066
|
-
|
|
2062
|
+
const _ = K(() => o.form ? u.$actions.useProperties(o.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
|
|
2063
|
+
const { error: k, result: f } = await u.$actions.deepInsert();
|
|
2064
|
+
k || (n("update:visible", !1), n("update:modelValue", f), n("insert", f), u.$actions.clearItem());
|
|
2065
|
+
}, { t: $ } = It(), i = () => {
|
|
2066
|
+
a.$actions.ask({
|
|
2067
2067
|
action: () => {
|
|
2068
2068
|
u.$actions.clearItem(), u.validationErrors = {}, n("cancel");
|
|
2069
2069
|
},
|
|
2070
2070
|
body: $("prompt.close_panel")
|
|
2071
2071
|
});
|
|
2072
|
-
},
|
|
2072
|
+
}, v = () => a.$actions.spawnToast({
|
|
2073
2073
|
icon: "info",
|
|
2074
2074
|
text: $("copied_to_clipboard")
|
|
2075
2075
|
});
|
|
2076
|
-
return
|
|
2076
|
+
return ue(() => u.item._id, (k) => {
|
|
2077
2077
|
k === null && n("update:visible", !1);
|
|
2078
|
-
}), (k,
|
|
2079
|
-
const
|
|
2078
|
+
}), (k, f) => {
|
|
2079
|
+
const I = ne("clickable");
|
|
2080
2080
|
return t(), V(Se, {
|
|
2081
2081
|
"model-value": k.visible,
|
|
2082
2082
|
loading: e(u).loading.get,
|
|
2083
|
-
onOverlayClick:
|
|
2084
|
-
},
|
|
2085
|
-
extra:
|
|
2086
|
-
k.individualActions ? (t(), V(Ie,
|
|
2083
|
+
onOverlayClick: i
|
|
2084
|
+
}, ce({
|
|
2085
|
+
extra: y(() => [
|
|
2086
|
+
k.individualActions ? (t(), V(Ie, U({ key: 0 }, {
|
|
2087
2087
|
subject: e(u).item,
|
|
2088
|
-
actions: k.individualActions.filter(({ action:
|
|
2088
|
+
actions: k.individualActions.filter(({ action: s }) => s !== "spawnEdit"),
|
|
2089
2089
|
overlayLayer: 60
|
|
2090
2090
|
}, {
|
|
2091
|
-
onActionClick:
|
|
2091
|
+
onActionClick: f[2] || (f[2] = (s) => n("update:visible", !1))
|
|
2092
2092
|
}), {
|
|
2093
|
-
default:
|
|
2094
|
-
visible:
|
|
2093
|
+
default: y(({
|
|
2094
|
+
visible: s
|
|
2095
2095
|
}) => [
|
|
2096
|
-
e(u).item._id ?
|
|
2096
|
+
e(u).item._id ? J((t(), V(Y, {
|
|
2097
2097
|
key: 0,
|
|
2098
2098
|
reactive: "",
|
|
2099
|
-
active:
|
|
2099
|
+
active: s,
|
|
2100
2100
|
icon: "dots-three"
|
|
2101
2101
|
}, null, 8, ["active"])), [
|
|
2102
|
-
[
|
|
2103
|
-
]) :
|
|
2102
|
+
[I]
|
|
2103
|
+
]) : b("", !0)
|
|
2104
2104
|
]),
|
|
2105
2105
|
_: 1
|
|
2106
|
-
}, 16)) :
|
|
2106
|
+
}, 16)) : b("", !0)
|
|
2107
2107
|
]),
|
|
2108
|
-
default:
|
|
2109
|
-
M(He,
|
|
2108
|
+
default: y(() => [
|
|
2109
|
+
M(He, U({
|
|
2110
2110
|
modelValue: e(u).item,
|
|
2111
|
-
"onUpdate:modelValue":
|
|
2111
|
+
"onUpdate:modelValue": f[0] || (f[0] = (s) => e(u).item = s)
|
|
2112
2112
|
}, {
|
|
2113
2113
|
collection: e(c),
|
|
2114
2114
|
readOnly: k.readOnly,
|
|
@@ -2118,13 +2118,13 @@ const He = /* @__PURE__ */ D(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
|
|
|
2118
2118
|
layout: e(u).description.formLayout || {}
|
|
2119
2119
|
}, {
|
|
2120
2120
|
focus: "",
|
|
2121
|
-
onClipboardCopy:
|
|
2122
|
-
onAdd:
|
|
2123
|
-
}),
|
|
2124
|
-
|
|
2125
|
-
name:
|
|
2126
|
-
fn:
|
|
2127
|
-
|
|
2121
|
+
onClipboardCopy: v,
|
|
2122
|
+
onAdd: f[1] || (f[1] = (s) => s.preventDefault())
|
|
2123
|
+
}), ce({ _: 2 }, [
|
|
2124
|
+
H(Object.keys(k.$slots).filter((s) => s.startsWith("field-")), (s) => ({
|
|
2125
|
+
name: s,
|
|
2126
|
+
fn: y((q) => [
|
|
2127
|
+
A(k.$slots, s, pe(Ve(q)))
|
|
2128
2128
|
])
|
|
2129
2129
|
}))
|
|
2130
2130
|
]), 1040, ["modelValue"])
|
|
@@ -2133,31 +2133,31 @@ const He = /* @__PURE__ */ D(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
|
|
|
2133
2133
|
}, [
|
|
2134
2134
|
k.$slots.header ? {
|
|
2135
2135
|
name: "header",
|
|
2136
|
-
fn:
|
|
2137
|
-
|
|
2136
|
+
fn: y(() => [
|
|
2137
|
+
A(k.$slots, "header")
|
|
2138
2138
|
]),
|
|
2139
2139
|
key: "0"
|
|
2140
2140
|
} : void 0,
|
|
2141
2141
|
k.readOnly ? void 0 : {
|
|
2142
2142
|
name: "footer",
|
|
2143
|
-
fn:
|
|
2144
|
-
M(
|
|
2143
|
+
fn: y(() => [
|
|
2144
|
+
M(_e, {
|
|
2145
2145
|
variant: "transparent",
|
|
2146
|
-
onClick:
|
|
2146
|
+
onClick: i
|
|
2147
2147
|
}, {
|
|
2148
|
-
default:
|
|
2149
|
-
|
|
2148
|
+
default: y(() => [
|
|
2149
|
+
D(C(e($)("action.cancel", { capitalize: !0 })), 1)
|
|
2150
2150
|
]),
|
|
2151
2151
|
_: 1
|
|
2152
2152
|
}),
|
|
2153
|
-
M(
|
|
2153
|
+
M(_e, {
|
|
2154
2154
|
large: "",
|
|
2155
2155
|
disabled: !e(u).isInsertReady || e(u).loading.get,
|
|
2156
2156
|
loading: e(u).loading.insert,
|
|
2157
2157
|
onClick: d
|
|
2158
2158
|
}, {
|
|
2159
|
-
default:
|
|
2160
|
-
|
|
2159
|
+
default: y(() => [
|
|
2160
|
+
D(C(e($)("action.insert", { capitalize: !0 })), 1)
|
|
2161
2161
|
]),
|
|
2162
2162
|
_: 1
|
|
2163
2163
|
}, 8, ["disabled", "loading"])
|
|
@@ -2179,10 +2179,10 @@ const He = /* @__PURE__ */ D(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
|
|
|
2179
2179
|
persistInQuery: !0
|
|
2180
2180
|
}) => {
|
|
2181
2181
|
const n = Be().currentRoute;
|
|
2182
|
-
return
|
|
2182
|
+
return ue(() => n.value.query.section, (a) => {
|
|
2183
2183
|
if (p) {
|
|
2184
2184
|
if (p.description.filtersPresets) {
|
|
2185
|
-
const c =
|
|
2185
|
+
const c = a || Object.keys(p.description.filtersPresets)[0];
|
|
2186
2186
|
bt(p.description.filtersPresets[c], p);
|
|
2187
2187
|
}
|
|
2188
2188
|
if (r.persistInQuery) {
|
|
@@ -2226,254 +2226,254 @@ const He = /* @__PURE__ */ D(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
|
|
|
2226
2226
|
},
|
|
2227
2227
|
emits: ["itemClick"],
|
|
2228
2228
|
setup(p, { emit: r }) {
|
|
2229
|
-
const
|
|
2229
|
+
const o = p, n = r, a = Me(), c = o.collection || qe(), u = c ? ie(typeof c == "string" ? c : c.value) : null, _ = K({
|
|
2230
2230
|
get: () => u == null ? void 0 : u.selected,
|
|
2231
|
-
set: (
|
|
2232
|
-
}), d = K(() =>
|
|
2233
|
-
var
|
|
2234
|
-
const
|
|
2235
|
-
return !
|
|
2236
|
-
const
|
|
2237
|
-
return
|
|
2231
|
+
set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
|
|
2232
|
+
}), d = K(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), $ = (f, I) => f.button ? typeof f.button == "object" ? Qe(I, f.button).satisfied : f.button : !1, i = (f) => {
|
|
2233
|
+
var s;
|
|
2234
|
+
const I = (s = o.layout) == null ? void 0 : s.actions;
|
|
2235
|
+
return !a.value.xl || !I || !o.actions ? [] : o.actions.filter((q) => {
|
|
2236
|
+
const E = I[q.action];
|
|
2237
|
+
return E && $(E, f);
|
|
2238
2238
|
});
|
|
2239
|
-
},
|
|
2240
|
-
var
|
|
2241
|
-
if (!
|
|
2239
|
+
}, v = (f) => {
|
|
2240
|
+
var s;
|
|
2241
|
+
if (!o.actions)
|
|
2242
2242
|
return [];
|
|
2243
|
-
const
|
|
2244
|
-
return !
|
|
2245
|
-
const
|
|
2243
|
+
const I = (s = o.layout) == null ? void 0 : s.actions;
|
|
2244
|
+
return !a.value.xl || !I ? o.actions : o.actions.filter((q) => {
|
|
2245
|
+
const E = I[q.action];
|
|
2246
2246
|
if (q.roles) {
|
|
2247
2247
|
const Z = ie("user");
|
|
2248
2248
|
if (!yt(q.roles, Z.currentUser.roles))
|
|
2249
2249
|
return !1;
|
|
2250
2250
|
}
|
|
2251
|
-
return !
|
|
2251
|
+
return !E || !$(E, f);
|
|
2252
2252
|
});
|
|
2253
|
-
}, k = (
|
|
2254
|
-
var
|
|
2255
|
-
const
|
|
2253
|
+
}, k = (f, I) => {
|
|
2254
|
+
var E, Z;
|
|
2255
|
+
const s = [], q = (Z = (E = o.layout) == null ? void 0 : E.actions) == null ? void 0 : Z[I.action];
|
|
2256
2256
|
return q != null && q.if && (Qe(
|
|
2257
|
-
|
|
2257
|
+
f,
|
|
2258
2258
|
q.if
|
|
2259
|
-
).satisfied ||
|
|
2259
|
+
).satisfied || s.push("display: none;")), s.join("");
|
|
2260
2260
|
};
|
|
2261
|
-
return (
|
|
2262
|
-
var q,
|
|
2263
|
-
const
|
|
2264
|
-
return d.value > 0 ||
|
|
2265
|
-
|
|
2266
|
-
|
|
2261
|
+
return (f, I) => {
|
|
2262
|
+
var q, E, Z;
|
|
2263
|
+
const s = ne("clickable");
|
|
2264
|
+
return d.value > 0 || f.$slots.thead ? (t(), l("table", Jo, [
|
|
2265
|
+
f.$slots.thead ? (t(), l("thead", Zo, [
|
|
2266
|
+
A(f.$slots, "thead", {}, void 0, !0)
|
|
2267
2267
|
])) : (t(), l("thead", Po, [
|
|
2268
2268
|
B("tr", null, [
|
|
2269
|
-
|
|
2269
|
+
f.checkbox && e(u) && e(a).md ? (t(), l("th", No, [
|
|
2270
2270
|
B("input", {
|
|
2271
2271
|
type: "checkbox",
|
|
2272
2272
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2273
|
-
onChange:
|
|
2273
|
+
onChange: I[0] || (I[0] = (h) => e(u).$actions.selectAllItems(h.target.checked))
|
|
2274
2274
|
}, null, 40, xo)
|
|
2275
|
-
])) :
|
|
2276
|
-
(t(!0), l(
|
|
2277
|
-
key: `header-${
|
|
2275
|
+
])) : b("", !0),
|
|
2276
|
+
(t(!0), l(P, null, H(Object.entries(f.columns), ([h, G], oe) => (t(), l("th", {
|
|
2277
|
+
key: `header-${oe}`,
|
|
2278
2278
|
class: "table__header"
|
|
2279
|
-
}, C(
|
|
2280
|
-
(q =
|
|
2279
|
+
}, C(G.description || e(L)(h)), 1))), 128)),
|
|
2280
|
+
(q = f.actions) != null && q.length ? (t(), l("th", ea)) : b("", !0)
|
|
2281
2281
|
])
|
|
2282
2282
|
])),
|
|
2283
|
-
|
|
2284
|
-
|
|
2283
|
+
f.$slots.tbody ? (t(), l("tbody", ta, [
|
|
2284
|
+
A(f.$slots, "tbody", {}, void 0, !0)
|
|
2285
2285
|
])) : (t(), l("tbody", na, [
|
|
2286
|
-
(t(!0), l(
|
|
2287
|
-
var
|
|
2286
|
+
(t(!0), l(P, null, H(f.rows, (h) => {
|
|
2287
|
+
var G, oe;
|
|
2288
2288
|
return t(), l("tr", {
|
|
2289
|
-
key:
|
|
2290
|
-
onClick: (w) => n("itemClick",
|
|
2289
|
+
key: h._id,
|
|
2290
|
+
onClick: (w) => n("itemClick", h)
|
|
2291
2291
|
}, [
|
|
2292
|
-
e(u) &&
|
|
2293
|
-
|
|
2294
|
-
"onUpdate:modelValue":
|
|
2292
|
+
e(u) && f.checkbox && e(a).md ? (t(), l("td", aa, [
|
|
2293
|
+
J(B("input", {
|
|
2294
|
+
"onUpdate:modelValue": I[1] || (I[1] = (w) => _.value = w),
|
|
2295
2295
|
type: "checkbox",
|
|
2296
|
-
value:
|
|
2296
|
+
value: h._id
|
|
2297
2297
|
}, null, 8, la), [
|
|
2298
2298
|
[gt, _.value]
|
|
2299
2299
|
])
|
|
2300
|
-
])) :
|
|
2301
|
-
(t(!0), l(
|
|
2302
|
-
var
|
|
2300
|
+
])) : b("", !0),
|
|
2301
|
+
(t(!0), l(P, null, H(Object.entries(f.columns), ([w, te], ge) => {
|
|
2302
|
+
var de, re, O;
|
|
2303
2303
|
return t(), l("td", {
|
|
2304
|
-
key: `column-${
|
|
2304
|
+
key: `column-${h._id}-${ge}`
|
|
2305
2305
|
}, [
|
|
2306
|
-
B("div", sa, C(
|
|
2307
|
-
`row-${w}` in
|
|
2308
|
-
|
|
2306
|
+
B("div", sa, C(te.description || e(L)(w)), 1),
|
|
2307
|
+
`row-${w}` in f.$slots ? (t(), l("div", ia, [
|
|
2308
|
+
A(f.$slots, `row-${w}`, U({ ref_for: !0 }, {
|
|
2309
2309
|
store: e(u),
|
|
2310
2310
|
column: w,
|
|
2311
|
-
property:
|
|
2312
|
-
row:
|
|
2311
|
+
property: te,
|
|
2312
|
+
row: h
|
|
2313
2313
|
}), void 0, !0)
|
|
2314
2314
|
])) : (t(), l("div", ra, [
|
|
2315
2315
|
B("div", ua, [
|
|
2316
|
-
"type" in
|
|
2317
|
-
|
|
2316
|
+
"type" in te && te.type === "boolean" ? (t(), l("div", ca, [
|
|
2317
|
+
h[w] ? (t(), V(Y, {
|
|
2318
2318
|
key: 0,
|
|
2319
2319
|
icon: "check",
|
|
2320
2320
|
"icon-classes": "aeria-blueish"
|
|
2321
2321
|
}, {
|
|
2322
|
-
default:
|
|
2323
|
-
|
|
2322
|
+
default: y(() => [
|
|
2323
|
+
D(C(e(L)("yes")), 1)
|
|
2324
2324
|
]),
|
|
2325
2325
|
_: 1
|
|
2326
|
-
})) : (t(), V(
|
|
2326
|
+
})) : (t(), V(Y, {
|
|
2327
2327
|
key: 1,
|
|
2328
2328
|
icon: "x",
|
|
2329
2329
|
"icon-classes": "aeria-redish"
|
|
2330
2330
|
}, {
|
|
2331
|
-
default:
|
|
2332
|
-
|
|
2331
|
+
default: y(() => [
|
|
2332
|
+
D(C(e(L)("no")), 1)
|
|
2333
2333
|
]),
|
|
2334
2334
|
_: 1
|
|
2335
2335
|
}))
|
|
2336
|
-
])) : ((
|
|
2337
|
-
|
|
2338
|
-
"items" in
|
|
2336
|
+
])) : ((de = e(me)(te)) == null ? void 0 : de.$ref) === "file" ? (t(), l("div", da, [
|
|
2337
|
+
h[w] ? (t(), l("div", pa, [
|
|
2338
|
+
"items" in te && h[w][0] && /^image/.test(h[w][0].type) ? (t(), V(Ee, {
|
|
2339
2339
|
key: 0,
|
|
2340
|
-
modelValue:
|
|
2341
|
-
"onUpdate:modelValue": (
|
|
2340
|
+
modelValue: h[w][0].link,
|
|
2341
|
+
"onUpdate:modelValue": (g) => h[w][0].link = g,
|
|
2342
2342
|
expandable: "",
|
|
2343
|
-
meta:
|
|
2343
|
+
meta: h[w][0],
|
|
2344
2344
|
alt: "Row image",
|
|
2345
2345
|
class: "table__picture"
|
|
2346
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(
|
|
2346
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[w].type) ? (t(), V(Ee, {
|
|
2347
2347
|
key: 1,
|
|
2348
|
-
modelValue:
|
|
2349
|
-
"onUpdate:modelValue": (
|
|
2348
|
+
modelValue: h[w].link,
|
|
2349
|
+
"onUpdate:modelValue": (g) => h[w].link = g,
|
|
2350
2350
|
expandable: "",
|
|
2351
|
-
meta:
|
|
2351
|
+
meta: h[w],
|
|
2352
2352
|
alt: "Row image",
|
|
2353
2353
|
class: "table__picture"
|
|
2354
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) :
|
|
2354
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[w].link ? (t(), l("a", {
|
|
2355
2355
|
key: 2,
|
|
2356
|
-
href:
|
|
2356
|
+
href: h[w].link,
|
|
2357
2357
|
style: { "font-size": "10pt" }
|
|
2358
|
-
}, C(
|
|
2358
|
+
}, C(h[w].filename), 9, _a)) : (t(), l("div", ma, " - "))
|
|
2359
2359
|
])) : (t(), l("div", fa, " - "))
|
|
2360
2360
|
])) : (t(), l("div", va, [
|
|
2361
2361
|
e(u) ? (t(), l("span", ya, C(e(u).$actions.formatValue({
|
|
2362
|
-
value:
|
|
2362
|
+
value: h[w],
|
|
2363
2363
|
key: w,
|
|
2364
|
-
property:
|
|
2365
|
-
})), 1)) : (t(), l("span", ba, C(Array.isArray(
|
|
2366
|
-
((
|
|
2367
|
-
(t(!0), l(
|
|
2368
|
-
key: `subvalue-${
|
|
2364
|
+
property: te
|
|
2365
|
+
})), 1)) : (t(), l("span", ba, C(Array.isArray(h[w]) ? h[w].filter((g) => !!g).join(", ") : [void 0, null].includes(h[w]) ? "-" : h[w]), 1)),
|
|
2366
|
+
((O = (re = e(me)(te)) == null ? void 0 : re.indexes) == null ? void 0 : O.length) > 1 ? (t(), l("div", ha, [
|
|
2367
|
+
(t(!0), l(P, null, H(e(me)(te).indexes.slice(1, 2), (g, N) => (t(), l("div", {
|
|
2368
|
+
key: `subvalue-${N}`,
|
|
2369
2369
|
class: "table__cell-subvalue"
|
|
2370
2370
|
}, C(e(u).$actions.formatValue({
|
|
2371
|
-
value:
|
|
2371
|
+
value: h[w],
|
|
2372
2372
|
key: w,
|
|
2373
|
-
property:
|
|
2374
|
-
index:
|
|
2373
|
+
property: te,
|
|
2374
|
+
index: g
|
|
2375
2375
|
})), 1))), 128))
|
|
2376
|
-
])) :
|
|
2376
|
+
])) : b("", !0)
|
|
2377
2377
|
]))
|
|
2378
2378
|
])
|
|
2379
2379
|
]))
|
|
2380
2380
|
]);
|
|
2381
2381
|
}), 128)),
|
|
2382
|
-
(
|
|
2382
|
+
(G = f.actions) != null && G.length && e(a).md ? (t(), l("td", $a, [
|
|
2383
2383
|
B("div", ga, [
|
|
2384
|
-
(t(!0), l(
|
|
2384
|
+
(t(!0), l(P, null, H(i(h), (w) => (t(), V(_e, {
|
|
2385
2385
|
key: `action-${w.action}`,
|
|
2386
2386
|
small: "",
|
|
2387
2387
|
variant: "alt",
|
|
2388
2388
|
icon: w.icon,
|
|
2389
|
-
style:
|
|
2390
|
-
onClick: (
|
|
2389
|
+
style: $e(k(h, w)),
|
|
2390
|
+
onClick: (te) => w.click(h)
|
|
2391
2391
|
}, {
|
|
2392
|
-
default:
|
|
2393
|
-
|
|
2392
|
+
default: y(() => [
|
|
2393
|
+
D(C(e(L)(w.label)), 1)
|
|
2394
2394
|
]),
|
|
2395
2395
|
_: 2
|
|
2396
2396
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2397
|
-
|
|
2397
|
+
v(h).length > 0 ? (t(), V(Ie, U({
|
|
2398
2398
|
key: 0,
|
|
2399
2399
|
ref_for: !0
|
|
2400
2400
|
}, {
|
|
2401
|
-
subject:
|
|
2402
|
-
actions:
|
|
2401
|
+
subject: h,
|
|
2402
|
+
actions: v(h)
|
|
2403
2403
|
}), {
|
|
2404
|
-
default:
|
|
2404
|
+
default: y(({
|
|
2405
2405
|
visible: w
|
|
2406
2406
|
}) => [
|
|
2407
|
-
|
|
2407
|
+
J(M(Y, {
|
|
2408
2408
|
reactive: "",
|
|
2409
2409
|
active: w,
|
|
2410
2410
|
icon: "dots-three"
|
|
2411
2411
|
}, null, 8, ["active"]), [
|
|
2412
|
-
[
|
|
2412
|
+
[s]
|
|
2413
2413
|
])
|
|
2414
2414
|
]),
|
|
2415
2415
|
_: 2
|
|
2416
|
-
}, 1040)) :
|
|
2416
|
+
}, 1040)) : b("", !0)
|
|
2417
2417
|
])
|
|
2418
|
-
])) : (
|
|
2418
|
+
])) : (oe = f.actions) != null && oe.length ? (t(), l("td", ka, [
|
|
2419
2419
|
B("div", {
|
|
2420
2420
|
class: "table__mobile-actions-grid",
|
|
2421
|
-
style:
|
|
2421
|
+
style: $e(`grid-template-columns: repeat(${i(h).length + (v(h).length ? 1 : 0)}, 1fr);`)
|
|
2422
2422
|
}, [
|
|
2423
|
-
(t(!0), l(
|
|
2423
|
+
(t(!0), l(P, null, H(i(h), (w) => (t(), V(ye, {
|
|
2424
2424
|
key: `action-${w.action}`,
|
|
2425
2425
|
class: "table__mobile-actions-button",
|
|
2426
|
-
onClick: (
|
|
2426
|
+
onClick: (te) => w.click(h)
|
|
2427
2427
|
}, {
|
|
2428
|
-
default:
|
|
2429
|
-
M(
|
|
2428
|
+
default: y(() => [
|
|
2429
|
+
M(Y, {
|
|
2430
2430
|
icon: w.icon || "gear"
|
|
2431
2431
|
}, {
|
|
2432
|
-
default:
|
|
2433
|
-
|
|
2432
|
+
default: y(() => [
|
|
2433
|
+
D(C(e(L)(w.label)), 1)
|
|
2434
2434
|
]),
|
|
2435
2435
|
_: 2
|
|
2436
2436
|
}, 1032, ["icon"])
|
|
2437
2437
|
]),
|
|
2438
2438
|
_: 2
|
|
2439
2439
|
}, 1032, ["onClick"]))), 128)),
|
|
2440
|
-
|
|
2440
|
+
v(h).length > 0 ? (t(), V(Ie, U({
|
|
2441
2441
|
key: 0,
|
|
2442
2442
|
ref_for: !0
|
|
2443
2443
|
}, {
|
|
2444
|
-
subject:
|
|
2445
|
-
actions:
|
|
2444
|
+
subject: h,
|
|
2445
|
+
actions: v(h)
|
|
2446
2446
|
}), {
|
|
2447
|
-
default:
|
|
2448
|
-
M(
|
|
2447
|
+
default: y(() => [
|
|
2448
|
+
M(Y, {
|
|
2449
2449
|
icon: "dots-three",
|
|
2450
2450
|
class: "table__mobile-actions-button"
|
|
2451
2451
|
})
|
|
2452
2452
|
]),
|
|
2453
2453
|
_: 2
|
|
2454
|
-
}, 1040)) :
|
|
2454
|
+
}, 1040)) : b("", !0)
|
|
2455
2455
|
], 4),
|
|
2456
2456
|
B("div", {
|
|
2457
|
-
id: `dropdown-${
|
|
2457
|
+
id: `dropdown-${h._id}`
|
|
2458
2458
|
}, null, 8, Va)
|
|
2459
|
-
])) :
|
|
2459
|
+
])) : b("", !0)
|
|
2460
2460
|
], 8, oa);
|
|
2461
2461
|
}), 128))
|
|
2462
2462
|
])),
|
|
2463
2463
|
B("tfoot", null, [
|
|
2464
|
-
|
|
2464
|
+
f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (t(), l("tr", Ca, [
|
|
2465
2465
|
B("td", {
|
|
2466
2466
|
colspan: d.value + 1
|
|
2467
2467
|
}, [
|
|
2468
2468
|
B("div", Aa, C(e(L)("no_results", { capitalize: !0 })) + ". ", 1)
|
|
2469
2469
|
], 8, Oa)
|
|
2470
|
-
])) :
|
|
2470
|
+
])) : b("", !0)
|
|
2471
2471
|
])
|
|
2472
|
-
])) :
|
|
2472
|
+
])) : b("", !0);
|
|
2473
2473
|
};
|
|
2474
2474
|
}
|
|
2475
2475
|
});
|
|
2476
|
-
const Ba = /* @__PURE__ */
|
|
2476
|
+
const Ba = /* @__PURE__ */ Q(Ia, [["__scopeId", "data-v-89303bb6"]]), Sa = /* @__PURE__ */ z({
|
|
2477
2477
|
__name: "aeria-tabular",
|
|
2478
2478
|
props: {
|
|
2479
2479
|
individualActions: {},
|
|
@@ -2481,29 +2481,29 @@ const Ba = /* @__PURE__ */ D(Ia, [["__scopeId", "data-v-89303bb6"]]), Sa = /* @_
|
|
|
2481
2481
|
componentProps: {}
|
|
2482
2482
|
},
|
|
2483
2483
|
setup(p) {
|
|
2484
|
-
const r = p,
|
|
2484
|
+
const r = p, o = je(), n = qe(), a = K(() => {
|
|
2485
2485
|
const c = {
|
|
2486
2486
|
collection: n,
|
|
2487
|
-
checkbox:
|
|
2488
|
-
columns:
|
|
2489
|
-
rows:
|
|
2487
|
+
checkbox: o.hasSelectionActions,
|
|
2488
|
+
columns: o.tableProperties,
|
|
2489
|
+
rows: o.items,
|
|
2490
2490
|
actions: r.individualActions,
|
|
2491
|
-
layout:
|
|
2491
|
+
layout: o.tableLayout
|
|
2492
2492
|
};
|
|
2493
2493
|
return Object.assign(c, r.componentProps);
|
|
2494
2494
|
});
|
|
2495
2495
|
return (c, u) => (t(), l("div", null, [
|
|
2496
|
-
c.$slots.inner ?
|
|
2497
|
-
e(
|
|
2498
|
-
key: e(
|
|
2499
|
-
}),
|
|
2500
|
-
|
|
2496
|
+
c.$slots.inner ? A(c.$slots, "inner", { key: 0 }) : b("", !0),
|
|
2497
|
+
e(o).properties ? (t(), V(Ba, U({ key: 1 }, a.value, {
|
|
2498
|
+
key: e(o).$id
|
|
2499
|
+
}), ce({ _: 2 }, [
|
|
2500
|
+
H(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
|
|
2501
2501
|
name: _,
|
|
2502
|
-
fn:
|
|
2503
|
-
|
|
2502
|
+
fn: y((d) => [
|
|
2503
|
+
A(c.$slots, _, pe(Ve(d)))
|
|
2504
2504
|
])
|
|
2505
2505
|
}))
|
|
2506
|
-
]), 1040)) :
|
|
2506
|
+
]), 1040)) : b("", !0)
|
|
2507
2507
|
]));
|
|
2508
2508
|
}
|
|
2509
2509
|
}), wa = /* @__PURE__ */ z({
|
|
@@ -2512,17 +2512,17 @@ const Ba = /* @__PURE__ */ D(Ia, [["__scopeId", "data-v-89303bb6"]]), Sa = /* @_
|
|
|
2512
2512
|
list: { type: Boolean }
|
|
2513
2513
|
},
|
|
2514
2514
|
setup(p) {
|
|
2515
|
-
return (r,
|
|
2516
|
-
class:
|
|
2515
|
+
return (r, o) => (t(), l("div", {
|
|
2516
|
+
class: W([
|
|
2517
2517
|
"grid",
|
|
2518
2518
|
{ "grid--list": r.list }
|
|
2519
2519
|
])
|
|
2520
2520
|
}, [
|
|
2521
|
-
|
|
2521
|
+
A(r.$slots, "default", {}, void 0, !0)
|
|
2522
2522
|
], 2));
|
|
2523
2523
|
}
|
|
2524
2524
|
});
|
|
2525
|
-
const Ta = /* @__PURE__ */
|
|
2525
|
+
const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key: 0 }, Ra = {
|
|
2526
2526
|
key: 1,
|
|
2527
2527
|
class: "card__information"
|
|
2528
2528
|
}, La = /* @__PURE__ */ z({
|
|
@@ -2534,80 +2534,80 @@ const Ta = /* @__PURE__ */ D(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
|
|
|
2534
2534
|
componentName: {}
|
|
2535
2535
|
},
|
|
2536
2536
|
setup(p) {
|
|
2537
|
-
const
|
|
2537
|
+
const o = p.layoutOptions, n = je(), a = (c) => Array.isArray(c) ? c[0] : c;
|
|
2538
2538
|
return (c, u) => {
|
|
2539
|
-
const _ =
|
|
2539
|
+
const _ = ne("clickable");
|
|
2540
2540
|
return t(), V(Ta, {
|
|
2541
2541
|
list: c.componentName === "list"
|
|
2542
2542
|
}, {
|
|
2543
|
-
default:
|
|
2544
|
-
(t(!0), l(
|
|
2543
|
+
default: y(() => [
|
|
2544
|
+
(t(!0), l(P, null, H(e(n).items, (d) => (t(), V(ln, {
|
|
2545
2545
|
key: d,
|
|
2546
|
-
inactive: !!(e(
|
|
2546
|
+
inactive: !!(e(o).active && !d[e(o).active]),
|
|
2547
2547
|
horizontal: c.componentName === "list"
|
|
2548
|
-
},
|
|
2549
|
-
footer:
|
|
2550
|
-
e(
|
|
2551
|
-
e(
|
|
2548
|
+
}, ce({
|
|
2549
|
+
footer: y(() => [
|
|
2550
|
+
e(o).title ? (t(), l("div", ja, C(d[e(o).title]), 1)) : b("", !0),
|
|
2551
|
+
e(o).information ? (t(), l("div", Ra, C(d[e(o).information]), 1)) : b("", !0)
|
|
2552
2552
|
]),
|
|
2553
|
-
actions:
|
|
2553
|
+
actions: y(() => {
|
|
2554
2554
|
var $;
|
|
2555
2555
|
return [
|
|
2556
|
-
($ = c.individualActions) != null && $.length ? (t(), V(Ie,
|
|
2556
|
+
($ = c.individualActions) != null && $.length ? (t(), V(Ie, U({
|
|
2557
2557
|
key: 0,
|
|
2558
2558
|
ref_for: !0
|
|
2559
2559
|
}, {
|
|
2560
2560
|
subject: d,
|
|
2561
2561
|
actions: c.individualActions
|
|
2562
2562
|
}), {
|
|
2563
|
-
default:
|
|
2564
|
-
visible:
|
|
2563
|
+
default: y(({
|
|
2564
|
+
visible: i
|
|
2565
2565
|
}) => [
|
|
2566
|
-
|
|
2566
|
+
J(M(Y, {
|
|
2567
2567
|
reactive: "",
|
|
2568
|
-
active:
|
|
2568
|
+
active: i,
|
|
2569
2569
|
icon: "dots-three-vertical"
|
|
2570
2570
|
}, null, 8, ["active"]), [
|
|
2571
2571
|
[_]
|
|
2572
2572
|
])
|
|
2573
2573
|
]),
|
|
2574
2574
|
_: 2
|
|
2575
|
-
}, 1040)) :
|
|
2575
|
+
}, 1040)) : b("", !0)
|
|
2576
2576
|
];
|
|
2577
2577
|
}),
|
|
2578
|
-
default:
|
|
2578
|
+
default: y(() => {
|
|
2579
2579
|
var $;
|
|
2580
2580
|
return [
|
|
2581
2581
|
M(Ee, {
|
|
2582
2582
|
alt: "Item picture",
|
|
2583
2583
|
expandable: "",
|
|
2584
|
-
url: ($ =
|
|
2585
|
-
meta:
|
|
2584
|
+
url: ($ = a(d[e(o).picture])) == null ? void 0 : $.link,
|
|
2585
|
+
meta: a(d[e(o).picture])
|
|
2586
2586
|
}, null, 8, ["url", "meta"])
|
|
2587
2587
|
];
|
|
2588
2588
|
}),
|
|
2589
2589
|
_: 2
|
|
2590
2590
|
}, [
|
|
2591
|
-
e(
|
|
2591
|
+
e(o).badge && Array.isArray(d[e(o).badge]) ? {
|
|
2592
2592
|
name: "badge",
|
|
2593
|
-
fn:
|
|
2594
|
-
(t(!0), l(
|
|
2593
|
+
fn: y(() => [
|
|
2594
|
+
(t(!0), l(P, null, H(d[e(o).badge], ($) => (t(), V(ke, {
|
|
2595
2595
|
key: `${d._id}-${$}`,
|
|
2596
2596
|
large: ""
|
|
2597
2597
|
}, {
|
|
2598
|
-
default:
|
|
2599
|
-
|
|
2598
|
+
default: y(() => [
|
|
2599
|
+
D(C(e(o).translateBadge ? e(L)($) : $), 1)
|
|
2600
2600
|
]),
|
|
2601
2601
|
_: 2
|
|
2602
2602
|
}, 1024))), 128))
|
|
2603
2603
|
]),
|
|
2604
2604
|
key: "0"
|
|
2605
|
-
} : e(
|
|
2605
|
+
} : e(o).badge ? {
|
|
2606
2606
|
name: "badge",
|
|
2607
|
-
fn:
|
|
2607
|
+
fn: y(() => [
|
|
2608
2608
|
M(ke, null, {
|
|
2609
|
-
default:
|
|
2610
|
-
|
|
2609
|
+
default: y(() => [
|
|
2610
|
+
D(C(e(o).translateBadge ? e(L)(d[e(o).badge]) : d[e(o).badge]), 1)
|
|
2611
2611
|
]),
|
|
2612
2612
|
_: 2
|
|
2613
2613
|
}, 1024)
|
|
@@ -2621,7 +2621,7 @@ const Ta = /* @__PURE__ */ D(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
|
|
|
2621
2621
|
};
|
|
2622
2622
|
}
|
|
2623
2623
|
});
|
|
2624
|
-
const pt = /* @__PURE__ */
|
|
2624
|
+
const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) => ({
|
|
2625
2625
|
tabular: Sa,
|
|
2626
2626
|
grid: pt,
|
|
2627
2627
|
list: pt
|
|
@@ -2650,156 +2650,156 @@ const pt = /* @__PURE__ */ D(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
|
|
|
2650
2650
|
},
|
|
2651
2651
|
emits: ["uiEvent"],
|
|
2652
2652
|
setup(p, { emit: r }) {
|
|
2653
|
-
const
|
|
2653
|
+
const o = ee(!1), n = ee(!1), a = ee((...O) => null), c = ee(), u = p, _ = r, d = Be(), $ = vt({
|
|
2654
2654
|
delay: 600
|
|
2655
|
-
}),
|
|
2655
|
+
}), i = ie("meta"), v = Me(), { reachedEnd: k, detach: f } = Ye(null, {
|
|
2656
2656
|
antecipate: 600
|
|
2657
|
-
}),
|
|
2658
|
-
|
|
2659
|
-
|
|
2657
|
+
}), I = !v.value.md || u.scrollPagination;
|
|
2658
|
+
I && ue(k, (O) => {
|
|
2659
|
+
O && s.pagination.recordsTotal > s.items.length && Z.value < _t && (Z.value += 1, G());
|
|
2660
2660
|
});
|
|
2661
|
-
const
|
|
2662
|
-
Xo(
|
|
2661
|
+
const s = Rt(u.collection);
|
|
2662
|
+
Xo(s, {
|
|
2663
2663
|
persistInQuery: !u.noQueryPersistence
|
|
2664
2664
|
});
|
|
2665
|
-
const q = Ke(),
|
|
2666
|
-
|
|
2667
|
-
const Z =
|
|
2668
|
-
|
|
2669
|
-
const
|
|
2670
|
-
filters:
|
|
2671
|
-
limit:
|
|
2672
|
-
offset:
|
|
2673
|
-
project:
|
|
2665
|
+
const q = Ke(), E = u.action ? e(u.action) : Lt(s, d, q);
|
|
2666
|
+
a.value = E[0], c.value = E[1];
|
|
2667
|
+
const Z = ee(0), h = ee(!1), G = async (O) => {
|
|
2668
|
+
s.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || s.$filters), Object.assign(s.activeFilters, s.filtersPreset);
|
|
2669
|
+
const g = {
|
|
2670
|
+
filters: s.activeFilters,
|
|
2671
|
+
limit: s.pagination.limit,
|
|
2672
|
+
offset: s.pagination.offset,
|
|
2673
|
+
project: s.preferredTableProperties.length > 0 ? s.preferredTableProperties : s.description.table || Object.keys(s.properties)
|
|
2674
2674
|
};
|
|
2675
|
-
Z.value > 0 && (
|
|
2676
|
-
const { error:
|
|
2677
|
-
if (
|
|
2675
|
+
Z.value > 0 && (g.limit = 15, g.offset = Z.value * g.limit), s.description.tableMeta && (g.project = g.project.concat(s.description.tableMeta)), O && Object.assign(g, O), s.loading.getAll = !0;
|
|
2676
|
+
const { error: N, result: ae } = await s.$actions.retrieveItems(g);
|
|
2677
|
+
if (N)
|
|
2678
2678
|
return;
|
|
2679
|
-
const { data: m, pagination: T } =
|
|
2680
|
-
|
|
2681
|
-
},
|
|
2679
|
+
const { data: m, pagination: T } = ae;
|
|
2680
|
+
s.pagination.recordsCount = T.recordsCount, s.pagination.recordsTotal = T.recordsTotal, Z.value === 0 && s.items.splice(0), s.items.push(...m), s.loading.getAll = !1, h.value = !0;
|
|
2681
|
+
}, oe = async (O) => {
|
|
2682
2682
|
d.push(Le(d.currentRoute.value, {
|
|
2683
2683
|
query: {
|
|
2684
|
-
offset:
|
|
2685
|
-
limit:
|
|
2684
|
+
offset: O.offset,
|
|
2685
|
+
limit: O.limit
|
|
2686
2686
|
}
|
|
2687
|
-
})),
|
|
2687
|
+
})), s.pagination.offset = O.offset, s.pagination.limit = O.limit, G();
|
|
2688
2688
|
}, w = fe("noResultsComponent", null);
|
|
2689
|
-
|
|
2689
|
+
ue(() => [
|
|
2690
2690
|
d.currentRoute.value.path,
|
|
2691
2691
|
d.currentRoute.value.query.section
|
|
2692
|
-
], async (
|
|
2693
|
-
if (
|
|
2692
|
+
], async (O, g) => {
|
|
2693
|
+
if (g && g[0] === O[0] && g[1] === O[1])
|
|
2694
2694
|
return;
|
|
2695
|
-
const
|
|
2696
|
-
if (
|
|
2697
|
-
const
|
|
2698
|
-
Object.keys(
|
|
2695
|
+
const N = d.currentRoute.value;
|
|
2696
|
+
if (i.view.title = u.collection, !u.noFetch && (!N.query._popstate || s.itemsCount === 0)) {
|
|
2697
|
+
const ae = Mt(s, N.query);
|
|
2698
|
+
Object.keys(ae).length > 0 && Object.assign(s.filters, ae), await G();
|
|
2699
2699
|
}
|
|
2700
2700
|
}, {
|
|
2701
2701
|
immediate: !0,
|
|
2702
2702
|
flush: "post"
|
|
2703
2703
|
});
|
|
2704
|
-
const [
|
|
2704
|
+
const [te] = $((O) => (d.push(Le(d.currentRoute.value, {
|
|
2705
2705
|
query: {
|
|
2706
|
-
search:
|
|
2706
|
+
search: O || void 0
|
|
2707
2707
|
}
|
|
2708
|
-
})),
|
|
2708
|
+
})), O ? (s.filters = Object.assign(Ae(s.freshFilters), {
|
|
2709
2709
|
$text: {
|
|
2710
|
-
$search: `"${
|
|
2710
|
+
$search: `"${O}"`,
|
|
2711
2711
|
$caseSensitive: !1
|
|
2712
2712
|
}
|
|
2713
|
-
}),
|
|
2713
|
+
}), G({
|
|
2714
2714
|
offset: 0
|
|
2715
|
-
})) : (
|
|
2716
|
-
|
|
2717
|
-
|
|
2715
|
+
})) : (s.filters = Ae(s.freshFilters), Z.value = 0, G())));
|
|
2716
|
+
ue(() => s.textQuery, (O) => {
|
|
2717
|
+
te(O);
|
|
2718
2718
|
});
|
|
2719
|
-
const
|
|
2720
|
-
|
|
2719
|
+
const ge = (O) => {
|
|
2720
|
+
O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
|
|
2721
2721
|
};
|
|
2722
2722
|
kt(() => {
|
|
2723
|
-
|
|
2724
|
-
}),
|
|
2725
|
-
var
|
|
2726
|
-
const
|
|
2727
|
-
let
|
|
2728
|
-
if (
|
|
2729
|
-
if ((
|
|
2723
|
+
s.$actions.clearFilters(), s.textQuery = "", f();
|
|
2724
|
+
}), ue(() => c.value, async (O) => {
|
|
2725
|
+
var ae;
|
|
2726
|
+
const g = Ae(O);
|
|
2727
|
+
let N;
|
|
2728
|
+
if (g)
|
|
2729
|
+
if ((g.name === "spawnEdit" || g.name === "duplicate") && (N = s.$actions.get({
|
|
2730
2730
|
filters: {
|
|
2731
|
-
_id:
|
|
2731
|
+
_id: g.params._id
|
|
2732
2732
|
}
|
|
2733
|
-
})),
|
|
2734
|
-
|
|
2735
|
-
delete
|
|
2736
|
-
})),
|
|
2737
|
-
else if (
|
|
2738
|
-
|
|
2739
|
-
else if (
|
|
2740
|
-
await
|
|
2741
|
-
const m = Object.entries(
|
|
2742
|
-
if (!(
|
|
2733
|
+
})), g.name === "spawnAdd")
|
|
2734
|
+
s.$actions.clearItem(), (ae = g.params) != null && ae.item && (s.$actions.setItem(g.params.item), Object.keys(g.params.item).forEach((m) => {
|
|
2735
|
+
delete s.referenceItem[m];
|
|
2736
|
+
})), o.value = "add";
|
|
2737
|
+
else if (g.name === "spawnEdit")
|
|
2738
|
+
s.$actions.setItem(g.params), o.value = "edit";
|
|
2739
|
+
else if (g.name === "duplicate") {
|
|
2740
|
+
await N;
|
|
2741
|
+
const m = Object.entries(s.item).reduce((T, [F, X]) => {
|
|
2742
|
+
if (!(F in s.properties))
|
|
2743
2743
|
return {
|
|
2744
2744
|
...T,
|
|
2745
|
-
[
|
|
2745
|
+
[F]: X
|
|
2746
2746
|
};
|
|
2747
|
-
const S =
|
|
2747
|
+
const S = s.properties[F];
|
|
2748
2748
|
if (S.readOnly)
|
|
2749
2749
|
return T;
|
|
2750
2750
|
const R = (se) => {
|
|
2751
|
-
const j =
|
|
2751
|
+
const j = me(S);
|
|
2752
2752
|
if (!j)
|
|
2753
2753
|
return se;
|
|
2754
2754
|
if (j.$ref === "file")
|
|
2755
2755
|
return {};
|
|
2756
2756
|
if (j.inline && se) {
|
|
2757
|
-
const { _id:
|
|
2758
|
-
return
|
|
2757
|
+
const { _id: le, ...ve } = se;
|
|
2758
|
+
return ve;
|
|
2759
2759
|
}
|
|
2760
2760
|
return se;
|
|
2761
2761
|
};
|
|
2762
|
-
return
|
|
2762
|
+
return X = Array.isArray(X) ? X.map(R) : R(X), {
|
|
2763
2763
|
...T,
|
|
2764
|
-
[
|
|
2764
|
+
[F]: X
|
|
2765
2765
|
};
|
|
2766
2766
|
}, {});
|
|
2767
|
-
|
|
2767
|
+
s.$actions.setItem(m), delete s.item._id, s.referenceItem = {}, o.value = "duplicate";
|
|
2768
2768
|
} else
|
|
2769
|
-
_("uiEvent",
|
|
2769
|
+
_("uiEvent", g);
|
|
2770
2770
|
}, {
|
|
2771
2771
|
deep: !0
|
|
2772
|
-
}),
|
|
2773
|
-
|
|
2772
|
+
}), ue(() => o, ({ value: O }) => {
|
|
2773
|
+
O === !1 && s.$actions.clearItem();
|
|
2774
2774
|
});
|
|
2775
|
-
const
|
|
2775
|
+
const de = K(() => {
|
|
2776
2776
|
if (!u.noActions)
|
|
2777
|
-
return
|
|
2778
|
-
click:
|
|
2779
|
-
...
|
|
2777
|
+
return s.individualActions.map((O) => ({
|
|
2778
|
+
click: a.value(O),
|
|
2779
|
+
...O
|
|
2780
2780
|
}));
|
|
2781
|
-
}),
|
|
2782
|
-
return
|
|
2783
|
-
var m, T,
|
|
2784
|
-
const
|
|
2785
|
-
return t(), l(
|
|
2781
|
+
}), re = K(() => s.actions.filter((O) => !O.button));
|
|
2782
|
+
return he(ze, K(() => u.collection)), (O, g) => {
|
|
2783
|
+
var m, T, F, X, S, R, se;
|
|
2784
|
+
const N = ne("clickable"), ae = ne("loading");
|
|
2785
|
+
return t(), l(P, null, [
|
|
2786
2786
|
n.value ? (t(), V(Yo, {
|
|
2787
|
-
key: e(
|
|
2787
|
+
key: e(s).$id,
|
|
2788
2788
|
modelValue: n.value,
|
|
2789
|
-
"onUpdate:modelValue":
|
|
2790
|
-
}, null, 8, ["modelValue"])) :
|
|
2791
|
-
|
|
2789
|
+
"onUpdate:modelValue": g[0] || (g[0] = (j) => n.value = j)
|
|
2790
|
+
}, null, 8, ["modelValue"])) : b("", !0),
|
|
2791
|
+
o.value ? (t(), V(Ko, {
|
|
2792
2792
|
key: 1,
|
|
2793
|
-
visible:
|
|
2794
|
-
"onUpdate:visible":
|
|
2793
|
+
visible: o.value,
|
|
2794
|
+
"onUpdate:visible": g[1] || (g[1] = (j) => o.value = j),
|
|
2795
2795
|
"fixed-right": "",
|
|
2796
|
-
collection:
|
|
2797
|
-
"individual-actions":
|
|
2798
|
-
onCancel:
|
|
2799
|
-
},
|
|
2800
|
-
header:
|
|
2796
|
+
collection: O.collection,
|
|
2797
|
+
"individual-actions": de.value,
|
|
2798
|
+
onCancel: g[2] || (g[2] = (j) => o.value = !1)
|
|
2799
|
+
}, ce({
|
|
2800
|
+
header: y(() => [
|
|
2801
2801
|
B("span", null, C((() => {
|
|
2802
|
-
switch (
|
|
2802
|
+
switch (o.value) {
|
|
2803
2803
|
case "add":
|
|
2804
2804
|
return e(L)("action.add", { capitalize: !0 });
|
|
2805
2805
|
case "duplicate":
|
|
@@ -2809,253 +2809,253 @@ const pt = /* @__PURE__ */ D(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
|
|
|
2809
2809
|
return e(L)("action.edit", { capitalize: !0 });
|
|
2810
2810
|
}
|
|
2811
2811
|
})()), 1),
|
|
2812
|
-
B("span", null, " " + C(e(L)(
|
|
2812
|
+
B("span", null, " " + C(e(L)(O.collection)), 1)
|
|
2813
2813
|
]),
|
|
2814
2814
|
_: 2
|
|
2815
2815
|
}, [
|
|
2816
|
-
|
|
2816
|
+
H(Object.keys(O.$slots).filter((j) => j.startsWith("field-")), (j) => ({
|
|
2817
2817
|
name: j,
|
|
2818
|
-
fn:
|
|
2819
|
-
|
|
2818
|
+
fn: y((le) => [
|
|
2819
|
+
A(O.$slots, j, pe(Ve(le)), void 0, !0)
|
|
2820
2820
|
])
|
|
2821
2821
|
}))
|
|
2822
|
-
]), 1032, ["visible", "collection", "individual-actions"])) :
|
|
2823
|
-
!
|
|
2824
|
-
e(
|
|
2825
|
-
M(Ce,
|
|
2826
|
-
modelValue: e(
|
|
2827
|
-
"onUpdate:modelValue":
|
|
2822
|
+
]), 1032, ["visible", "collection", "individual-actions"])) : b("", !0),
|
|
2823
|
+
!O.noActions && (e(s).description.search || Object.keys(e(s).availableFilters).length > 0 || ((m = e(s)) == null ? void 0 : m.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && e(s).description.layout && ((T = e(s).description.layout) == null ? void 0 : T.name) !== "tabular") ? (t(), l("div", qa, [
|
|
2824
|
+
e(s).description.search ? (t(), l("div", za, [
|
|
2825
|
+
M(Ce, U({
|
|
2826
|
+
modelValue: e(s).textQuery,
|
|
2827
|
+
"onUpdate:modelValue": g[3] || (g[3] = (j) => e(s).textQuery = j)
|
|
2828
2828
|
}, {
|
|
2829
2829
|
property: {
|
|
2830
2830
|
type: "string",
|
|
2831
|
-
placeholder: e(
|
|
2831
|
+
placeholder: e(s).description.search.placeholder || "Pesquise aqui",
|
|
2832
2832
|
inputType: "search"
|
|
2833
2833
|
}
|
|
2834
2834
|
}), null, 16, ["modelValue"])
|
|
2835
|
-
])) :
|
|
2835
|
+
])) : b("", !0),
|
|
2836
2836
|
B("div", Fa, [
|
|
2837
|
-
|
|
2838
|
-
default:
|
|
2839
|
-
M(
|
|
2837
|
+
re.value.length > 0 || !O.noLayoutToggle && e(s).description.layout && ((F = e(s).description.layout) == null ? void 0 : F.name) !== "tabular" ? (t(), V(Ie, { key: 0 }, ce({
|
|
2838
|
+
default: y(() => [
|
|
2839
|
+
M(_e, {
|
|
2840
2840
|
variant: "alt",
|
|
2841
2841
|
icon: "sliders"
|
|
2842
2842
|
}, {
|
|
2843
|
-
default:
|
|
2844
|
-
e(
|
|
2845
|
-
default:
|
|
2846
|
-
|
|
2843
|
+
default: y(() => [
|
|
2844
|
+
e(s).filtersCount ? (t(), V(ke, { key: 0 }, {
|
|
2845
|
+
default: y(() => [
|
|
2846
|
+
D(C(e(s).filtersCount), 1)
|
|
2847
2847
|
]),
|
|
2848
2848
|
_: 1
|
|
2849
|
-
})) :
|
|
2849
|
+
})) : b("", !0)
|
|
2850
2850
|
]),
|
|
2851
2851
|
_: 1
|
|
2852
2852
|
})
|
|
2853
2853
|
]),
|
|
2854
2854
|
_: 2
|
|
2855
2855
|
}, [
|
|
2856
|
-
Object.keys(e(
|
|
2856
|
+
Object.keys(e(s).availableFilters).length > 0 ? {
|
|
2857
2857
|
name: "filter",
|
|
2858
|
-
fn:
|
|
2859
|
-
|
|
2858
|
+
fn: y(() => [
|
|
2859
|
+
J((t(), V(Y, {
|
|
2860
2860
|
icon: "funnel",
|
|
2861
|
-
onClick:
|
|
2861
|
+
onClick: g[4] || (g[4] = (j) => n.value = !0)
|
|
2862
2862
|
}, {
|
|
2863
|
-
default:
|
|
2864
|
-
|
|
2863
|
+
default: y(() => [
|
|
2864
|
+
D(C(e(L)("filters", { capitalize: !0 })), 1)
|
|
2865
2865
|
]),
|
|
2866
2866
|
_: 1
|
|
2867
2867
|
})), [
|
|
2868
|
-
[
|
|
2868
|
+
[N]
|
|
2869
2869
|
]),
|
|
2870
2870
|
B("div", Ea, [
|
|
2871
|
-
e(
|
|
2872
|
-
default:
|
|
2873
|
-
|
|
2871
|
+
e(s).filtersCount ? (t(), V(ke, { key: 0 }, {
|
|
2872
|
+
default: y(() => [
|
|
2873
|
+
D(C(e(s).filtersCount), 1)
|
|
2874
2874
|
]),
|
|
2875
2875
|
_: 1
|
|
2876
|
-
})) :
|
|
2876
|
+
})) : b("", !0)
|
|
2877
2877
|
])
|
|
2878
2878
|
]),
|
|
2879
2879
|
key: "0"
|
|
2880
2880
|
} : void 0,
|
|
2881
|
-
!
|
|
2881
|
+
!O.noLayoutToggle && e(s).description.layout && ((X = e(s).description.layout) == null ? void 0 : X.name) !== "tabular" ? {
|
|
2882
2882
|
name: "layout-toggle",
|
|
2883
|
-
fn:
|
|
2884
|
-
|
|
2883
|
+
fn: y(() => [
|
|
2884
|
+
J((t(), V(Y, {
|
|
2885
2885
|
icon: "table",
|
|
2886
|
-
onClick:
|
|
2886
|
+
onClick: g[5] || (g[5] = (j) => ge(e(s)))
|
|
2887
2887
|
}, {
|
|
2888
|
-
default:
|
|
2889
|
-
|
|
2888
|
+
default: y(() => [
|
|
2889
|
+
D(C(e(L)("change_layout", { capitalize: !0 })), 1)
|
|
2890
2890
|
]),
|
|
2891
2891
|
_: 1
|
|
2892
2892
|
})), [
|
|
2893
|
-
[
|
|
2893
|
+
[N]
|
|
2894
2894
|
])
|
|
2895
2895
|
]),
|
|
2896
2896
|
key: "1"
|
|
2897
2897
|
} : void 0,
|
|
2898
|
-
|
|
2899
|
-
name: `action-${
|
|
2900
|
-
fn:
|
|
2901
|
-
j ? (t(), V(
|
|
2898
|
+
H(re.value, (j, le) => ({
|
|
2899
|
+
name: `action-${le}`,
|
|
2900
|
+
fn: y(() => [
|
|
2901
|
+
j ? (t(), V(Y, {
|
|
2902
2902
|
key: 0,
|
|
2903
2903
|
icon: j.icon || "gear",
|
|
2904
|
-
disabled: e(
|
|
2905
|
-
onClick: (
|
|
2904
|
+
disabled: e(s).selected.length === 0 && "selection" in j && j.selection,
|
|
2905
|
+
onClick: (ve) => a.value(j)({ _id: e(s).selected.map((Oe) => Oe._id) })
|
|
2906
2906
|
}, {
|
|
2907
|
-
default:
|
|
2908
|
-
|
|
2907
|
+
default: y(() => [
|
|
2908
|
+
D(C(e(L)(j.label, { capitalize: !0 })), 1)
|
|
2909
2909
|
]),
|
|
2910
2910
|
_: 2
|
|
2911
|
-
}, 1032, ["icon", "disabled", "onClick"])) :
|
|
2911
|
+
}, 1032, ["icon", "disabled", "onClick"])) : b("", !0)
|
|
2912
2912
|
])
|
|
2913
2913
|
}))
|
|
2914
|
-
]), 1024)) : Object.keys(e(
|
|
2914
|
+
]), 1024)) : Object.keys(e(s).availableFilters).length > 0 ? (t(), V(_e, {
|
|
2915
2915
|
key: 1,
|
|
2916
2916
|
variant: "alt",
|
|
2917
2917
|
icon: "funnel",
|
|
2918
|
-
onClick:
|
|
2918
|
+
onClick: g[6] || (g[6] = (j) => n.value = !0)
|
|
2919
2919
|
}, {
|
|
2920
|
-
default:
|
|
2921
|
-
|
|
2922
|
-
e(
|
|
2923
|
-
default:
|
|
2924
|
-
|
|
2920
|
+
default: y(() => [
|
|
2921
|
+
g[8] || (g[8] = B("div", null, "Filtros", -1)),
|
|
2922
|
+
e(s).filtersCount ? (t(), V(ke, { key: 0 }, {
|
|
2923
|
+
default: y(() => [
|
|
2924
|
+
D(C(e(s).filtersCount), 1)
|
|
2925
2925
|
]),
|
|
2926
2926
|
_: 1
|
|
2927
|
-
})) :
|
|
2927
|
+
})) : b("", !0)
|
|
2928
2928
|
]),
|
|
2929
2929
|
_: 1
|
|
2930
|
-
})) :
|
|
2931
|
-
(t(!0), l(
|
|
2932
|
-
key: `action-${
|
|
2930
|
+
})) : b("", !0),
|
|
2931
|
+
(t(!0), l(P, null, H(e(s).actions.filter((j) => j.button), (j, le) => (t(), V(_e, {
|
|
2932
|
+
key: `action-${le}`,
|
|
2933
2933
|
icon: j.icon,
|
|
2934
|
-
disabled: e(
|
|
2935
|
-
onClick: (
|
|
2934
|
+
disabled: e(s).selected.length === 0 && "selection" in j && j.selection,
|
|
2935
|
+
onClick: (ve) => a.value(j)({ _id: e(s).selected.map((Oe) => Oe._id) })
|
|
2936
2936
|
}, {
|
|
2937
|
-
default:
|
|
2938
|
-
|
|
2937
|
+
default: y(() => [
|
|
2938
|
+
D(C(e(L)(j.label, { capitalize: !0 })), 1)
|
|
2939
2939
|
]),
|
|
2940
2940
|
_: 2
|
|
2941
2941
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2942
|
-
|
|
2942
|
+
O.$slots.actions ? A(O.$slots, "actions", { key: 2 }, void 0, !0) : b("", !0)
|
|
2943
2943
|
])
|
|
2944
|
-
])) :
|
|
2945
|
-
|
|
2946
|
-
e(
|
|
2947
|
-
e(w) ? (t(), V(
|
|
2948
|
-
collection: e(
|
|
2944
|
+
])) : b("", !0),
|
|
2945
|
+
J((t(), l("div", null, [
|
|
2946
|
+
e(s).itemsCount === 0 && !e(s).loading.getAll && h.value && (e(w) || O.$slots.empty) ? (t(), l("div", Ua, [
|
|
2947
|
+
e(w) ? (t(), V(be(e(w)), pe(U({ key: 0 }, {
|
|
2948
|
+
collection: e(s).$id
|
|
2949
2949
|
})), {
|
|
2950
|
-
default:
|
|
2951
|
-
e(
|
|
2950
|
+
default: y(() => [
|
|
2951
|
+
e(s).filtersCount === 0 && e(s).description.actions && "spawnAdd" in e(s).description.actions ? (t(), V(_e, {
|
|
2952
2952
|
key: 0,
|
|
2953
2953
|
icon: "plus",
|
|
2954
|
-
onClick:
|
|
2954
|
+
onClick: g[7] || (g[7] = (j) => a.value({
|
|
2955
2955
|
action: "spawnAdd",
|
|
2956
2956
|
event: "spawnAdd"
|
|
2957
2957
|
})())
|
|
2958
2958
|
}, {
|
|
2959
|
-
default:
|
|
2960
|
-
|
|
2959
|
+
default: y(() => [
|
|
2960
|
+
D(C(e(L)("add_first_item", { capitalize: !0 })), 1)
|
|
2961
2961
|
]),
|
|
2962
2962
|
_: 1
|
|
2963
|
-
})) :
|
|
2963
|
+
})) : b("", !0)
|
|
2964
2964
|
]),
|
|
2965
2965
|
_: 1
|
|
2966
|
-
}, 16)) :
|
|
2967
|
-
collection: e(
|
|
2966
|
+
}, 16)) : A(O.$slots, "empty", pe(U({ key: 1 }, {
|
|
2967
|
+
collection: e(s).$id
|
|
2968
2968
|
})), void 0, !0)
|
|
2969
|
-
])) :
|
|
2970
|
-
store: e(
|
|
2971
|
-
})), void 0, !0) : (t(), V(
|
|
2972
|
-
individualActions:
|
|
2973
|
-
layoutOptions: ((R =
|
|
2974
|
-
componentProps:
|
|
2969
|
+
])) : O.$slots.component ? A(O.$slots, "component", pe(U({ key: 1 }, {
|
|
2970
|
+
store: e(s)
|
|
2971
|
+
})), void 0, !0) : (t(), V(be(e(Ma)(((S = O.layout) == null ? void 0 : S.name) || e(s).$currentLayout)), U({ key: 2 }, {
|
|
2972
|
+
individualActions: de.value,
|
|
2973
|
+
layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(s).layout.options,
|
|
2974
|
+
componentProps: O.componentProps
|
|
2975
2975
|
}, {
|
|
2976
|
-
"component-name": ((se =
|
|
2977
|
-
}),
|
|
2978
|
-
|
|
2976
|
+
"component-name": ((se = O.layout) == null ? void 0 : se.name) || e(s).$currentLayout
|
|
2977
|
+
}), ce({ _: 2 }, [
|
|
2978
|
+
H(Object.keys(O.$slots).filter((j) => j.startsWith("row-")), (j) => ({
|
|
2979
2979
|
name: j,
|
|
2980
|
-
fn:
|
|
2981
|
-
|
|
2980
|
+
fn: y((le) => [
|
|
2981
|
+
A(O.$slots, j, pe(Ve(le)), void 0, !0)
|
|
2982
2982
|
])
|
|
2983
2983
|
})),
|
|
2984
|
-
|
|
2984
|
+
O.$slots.tfoot ? {
|
|
2985
2985
|
name: "tfoot",
|
|
2986
|
-
fn:
|
|
2987
|
-
|
|
2986
|
+
fn: y(() => [
|
|
2987
|
+
A(O.$slots, "tfoot", {}, void 0, !0)
|
|
2988
2988
|
]),
|
|
2989
2989
|
key: "0"
|
|
2990
2990
|
} : void 0
|
|
2991
2991
|
]), 1040, ["component-name"]))
|
|
2992
2992
|
])), [
|
|
2993
|
-
[
|
|
2993
|
+
[ae, (!e(I) || Z.value === _t) && e(s).loading.getAll]
|
|
2994
2994
|
]),
|
|
2995
|
-
!e(
|
|
2995
|
+
!e(I) && !O.noControls && !e(s).loading.getAll && e(s).itemsCount > 0 ? (t(), l("div", Ha, [
|
|
2996
2996
|
M(Rn, {
|
|
2997
|
-
pagination: e(
|
|
2998
|
-
onPaginate:
|
|
2997
|
+
pagination: e(s).pagination,
|
|
2998
|
+
onPaginate: oe
|
|
2999
2999
|
}, null, 8, ["pagination"])
|
|
3000
|
-
])) :
|
|
3000
|
+
])) : b("", !0)
|
|
3001
3001
|
], 64);
|
|
3002
3002
|
};
|
|
3003
3003
|
}
|
|
3004
3004
|
});
|
|
3005
|
-
const Ol = /* @__PURE__ */
|
|
3005
|
+
const Ol = /* @__PURE__ */ Q(Da, [["__scopeId", "data-v-147880c3"]]), Qa = { class: "prompt" }, Ga = /* @__PURE__ */ z({
|
|
3006
3006
|
__name: "aeria-prompt",
|
|
3007
3007
|
props: {
|
|
3008
3008
|
title: {},
|
|
3009
3009
|
options: {}
|
|
3010
3010
|
},
|
|
3011
3011
|
setup(p) {
|
|
3012
|
-
const r = ie("meta"),
|
|
3013
|
-
r.$actions.fulfillPrompt(n,
|
|
3012
|
+
const r = ie("meta"), o = (n, a) => {
|
|
3013
|
+
r.$actions.fulfillPrompt(n, a);
|
|
3014
3014
|
};
|
|
3015
|
-
return (n,
|
|
3015
|
+
return (n, a) => (t(), V(Se, {
|
|
3016
3016
|
float: "",
|
|
3017
3017
|
"fill-footer": "",
|
|
3018
3018
|
"close-hint": !1,
|
|
3019
3019
|
style: { "--panel-min-width": "32rem" }
|
|
3020
|
-
},
|
|
3021
|
-
footer:
|
|
3020
|
+
}, ce({
|
|
3021
|
+
footer: y(() => [
|
|
3022
3022
|
B("div", {
|
|
3023
3023
|
class: "prompt__options",
|
|
3024
|
-
style:
|
|
3024
|
+
style: $e(`grid-template-columns: repeat(${Object.keys(n.options).length}, 1fr)`)
|
|
3025
3025
|
}, [
|
|
3026
|
-
(t(!0), l(
|
|
3026
|
+
(t(!0), l(P, null, H(Object.entries(n.options), ([c, u], _) => (t(), V(ye, {
|
|
3027
3027
|
key: `option-${_}`,
|
|
3028
|
-
class:
|
|
3028
|
+
class: W([
|
|
3029
3029
|
"prompt__option",
|
|
3030
3030
|
`prompt__option--${u.variant || "primary"}`
|
|
3031
3031
|
]),
|
|
3032
|
-
onClick: (d) => u.click ? u.click(c, u) :
|
|
3032
|
+
onClick: (d) => u.click ? u.click(c, u) : o(c, u)
|
|
3033
3033
|
}, {
|
|
3034
|
-
default:
|
|
3035
|
-
|
|
3034
|
+
default: y(() => [
|
|
3035
|
+
D(C(u.title), 1)
|
|
3036
3036
|
]),
|
|
3037
3037
|
_: 2
|
|
3038
3038
|
}, 1032, ["class", "onClick"]))), 128))
|
|
3039
3039
|
], 4)
|
|
3040
3040
|
]),
|
|
3041
|
-
default:
|
|
3041
|
+
default: y(() => [
|
|
3042
3042
|
B("div", Qa, [
|
|
3043
|
-
|
|
3043
|
+
A(n.$slots, "default", {}, void 0, !0)
|
|
3044
3044
|
])
|
|
3045
3045
|
]),
|
|
3046
3046
|
_: 2
|
|
3047
3047
|
}, [
|
|
3048
3048
|
n.title ? {
|
|
3049
3049
|
name: "title",
|
|
3050
|
-
fn:
|
|
3051
|
-
|
|
3050
|
+
fn: y(() => [
|
|
3051
|
+
D(C(n.title), 1)
|
|
3052
3052
|
]),
|
|
3053
3053
|
key: "0"
|
|
3054
3054
|
} : void 0
|
|
3055
3055
|
]), 1024));
|
|
3056
3056
|
}
|
|
3057
3057
|
});
|
|
3058
|
-
const Wa = /* @__PURE__ */
|
|
3058
|
+
const Wa = /* @__PURE__ */ Q(Ga, [["__scopeId", "data-v-ee4328ae"]]), Ya = { class: "toast__content" }, Ka = { class: "toast__time" }, Xa = /* @__PURE__ */ z({
|
|
3059
3059
|
__name: "aeria-toast",
|
|
3060
3060
|
props: {
|
|
3061
3061
|
idx: {},
|
|
@@ -3065,53 +3065,53 @@ const Wa = /* @__PURE__ */ D(Ga, [["__scopeId", "data-v-ee4328ae"]]), Ya = { cla
|
|
|
3065
3065
|
},
|
|
3066
3066
|
setup(p) {
|
|
3067
3067
|
const r = ie("meta");
|
|
3068
|
-
return (
|
|
3069
|
-
const
|
|
3070
|
-
return
|
|
3071
|
-
class:
|
|
3068
|
+
return (o, n) => {
|
|
3069
|
+
const a = ne("clickable");
|
|
3070
|
+
return J((t(), l("div", {
|
|
3071
|
+
class: W({
|
|
3072
3072
|
toast: !0,
|
|
3073
|
-
"toast--animate": e(r).toasts[0].itr ===
|
|
3073
|
+
"toast--animate": e(r).toasts[0].itr === o.itr
|
|
3074
3074
|
}),
|
|
3075
3075
|
onAnimationend: n[0] || (n[0] = (c) => e(r).$actions.popToast()),
|
|
3076
|
-
onClick: n[1] || (n[1] = (c) => e(r).$actions.popToast(
|
|
3076
|
+
onClick: n[1] || (n[1] = (c) => e(r).$actions.popToast(o.itr))
|
|
3077
3077
|
}, [
|
|
3078
|
-
M(
|
|
3079
|
-
|
|
3078
|
+
M(Y, U(
|
|
3079
|
+
o.icon ? { icon: o.icon } : { icon: "warning-circle" },
|
|
3080
3080
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3081
3081
|
), null, 16),
|
|
3082
3082
|
B("div", Ya, [
|
|
3083
|
-
|
|
3084
|
-
B("div", Ka, C(
|
|
3083
|
+
A(o.$slots, "default", {}, void 0, !0),
|
|
3084
|
+
B("div", Ka, C(o.formatDateTime(o.date, { hoursOnly: !0 })), 1)
|
|
3085
3085
|
])
|
|
3086
3086
|
], 34)), [
|
|
3087
|
-
[
|
|
3087
|
+
[a]
|
|
3088
3088
|
]);
|
|
3089
3089
|
};
|
|
3090
3090
|
}
|
|
3091
3091
|
});
|
|
3092
|
-
const Ja = /* @__PURE__ */
|
|
3092
|
+
const Ja = /* @__PURE__ */ Q(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["innerHTML"], Pa = { class: "main__toasts" }, Na = ["innerHTML"], xa = /* @__PURE__ */ z({
|
|
3093
3093
|
__name: "aeria-main",
|
|
3094
3094
|
setup(p) {
|
|
3095
|
-
const r = ie("meta"),
|
|
3096
|
-
return (n,
|
|
3095
|
+
const r = ie("meta"), o = K(() => r.themeOverride || r.theme);
|
|
3096
|
+
return (n, a) => {
|
|
3097
3097
|
const c = Vt("router-view");
|
|
3098
3098
|
return t(), l("main", {
|
|
3099
3099
|
id: "main",
|
|
3100
|
-
class:
|
|
3100
|
+
class: W([
|
|
3101
3101
|
"main",
|
|
3102
|
-
`main--${
|
|
3103
|
-
{ "tw-dark":
|
|
3102
|
+
`main--${o.value}`,
|
|
3103
|
+
{ "tw-dark": o.value === "dark" }
|
|
3104
3104
|
])
|
|
3105
3105
|
}, [
|
|
3106
3106
|
(t(), V(Ct, null, {
|
|
3107
|
-
default:
|
|
3107
|
+
default: y(() => [
|
|
3108
3108
|
M(c, null, {
|
|
3109
|
-
default:
|
|
3110
|
-
(t(), V(
|
|
3111
|
-
|
|
3109
|
+
default: y(({ Component: u }) => [
|
|
3110
|
+
(t(), V(be(u), null, ce({ _: 2 }, [
|
|
3111
|
+
H(Object.keys(n.$slots), (_) => ({
|
|
3112
3112
|
name: _,
|
|
3113
|
-
fn:
|
|
3114
|
-
|
|
3113
|
+
fn: y(() => [
|
|
3114
|
+
A(n.$slots, _, {}, void 0, !0)
|
|
3115
3115
|
])
|
|
3116
3116
|
}))
|
|
3117
3117
|
]), 1024))
|
|
@@ -3121,37 +3121,37 @@ const Ja = /* @__PURE__ */ D(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["inn
|
|
|
3121
3121
|
]),
|
|
3122
3122
|
_: 3
|
|
3123
3123
|
})),
|
|
3124
|
-
|
|
3125
|
-
M(Se,
|
|
3124
|
+
A(n.$slots, "default", {}, void 0, !0),
|
|
3125
|
+
M(Se, U({
|
|
3126
3126
|
modelValue: e(r).modal.visible,
|
|
3127
|
-
"onUpdate:modelValue":
|
|
3127
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => e(r).modal.visible = u),
|
|
3128
3128
|
float: "",
|
|
3129
3129
|
"close-hint": ""
|
|
3130
3130
|
}, e(r).modal, {
|
|
3131
3131
|
"overlay-layer": 70,
|
|
3132
|
-
onOverlayClick:
|
|
3132
|
+
onOverlayClick: a[1] || (a[1] = (u) => e(r).modal.visible = !1)
|
|
3133
3133
|
}), {
|
|
3134
|
-
default:
|
|
3134
|
+
default: y(() => [
|
|
3135
3135
|
e(r).modal.body ? (t(), l("div", {
|
|
3136
3136
|
key: 0,
|
|
3137
3137
|
style: { "white-space": "pre-wrap" },
|
|
3138
3138
|
innerHTML: e(r).modal.body
|
|
3139
|
-
}, null, 8, Za)) :
|
|
3140
|
-
e(r).modal.component ? (t(), V(
|
|
3139
|
+
}, null, 8, Za)) : b("", !0),
|
|
3140
|
+
e(r).modal.component ? (t(), V(be(e(r).modal.component), { key: 1 })) : b("", !0)
|
|
3141
3141
|
]),
|
|
3142
3142
|
_: 1
|
|
3143
3143
|
}, 16, ["modelValue"]),
|
|
3144
|
-
e(r).prompt.visible ? (t(), V(Wa,
|
|
3145
|
-
default:
|
|
3146
|
-
|
|
3144
|
+
e(r).prompt.visible ? (t(), V(Wa, pe(U({ key: 0 }, e(r).prompt)), {
|
|
3145
|
+
default: y(() => [
|
|
3146
|
+
D(C(e(r).prompt.body), 1)
|
|
3147
3147
|
]),
|
|
3148
3148
|
_: 1
|
|
3149
|
-
}, 16)) :
|
|
3149
|
+
}, 16)) : b("", !0),
|
|
3150
3150
|
B("div", Pa, [
|
|
3151
|
-
(t(!0), l(
|
|
3151
|
+
(t(!0), l(P, null, H(e(r).toasts, (u) => (t(), V(Ja, U({ ref_for: !0 }, u, {
|
|
3152
3152
|
key: `toast-${u.itr}`
|
|
3153
3153
|
}), {
|
|
3154
|
-
default:
|
|
3154
|
+
default: y(() => [
|
|
3155
3155
|
B("div", {
|
|
3156
3156
|
innerHTML: e(L)(u.text)
|
|
3157
3157
|
}, null, 8, Na)
|
|
@@ -3163,19 +3163,19 @@ const Ja = /* @__PURE__ */ D(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["inn
|
|
|
3163
3163
|
};
|
|
3164
3164
|
}
|
|
3165
3165
|
});
|
|
3166
|
-
const Al = /* @__PURE__ */
|
|
3166
|
+
const Al = /* @__PURE__ */ Q(xa, [["__scopeId", "data-v-8f232683"]]);
|
|
3167
3167
|
const el = {}, tl = { class: "menu" };
|
|
3168
3168
|
function nl(p, r) {
|
|
3169
3169
|
return t(), l("menu", tl, [
|
|
3170
|
-
(t(!0), l(
|
|
3171
|
-
key:
|
|
3170
|
+
(t(!0), l(P, null, H(Object.keys(p.$slots), (o) => (t(), l("div", {
|
|
3171
|
+
key: o,
|
|
3172
3172
|
class: "menu__entry"
|
|
3173
3173
|
}, [
|
|
3174
|
-
|
|
3174
|
+
A(p.$slots, o, {}, void 0, !0)
|
|
3175
3175
|
]))), 128))
|
|
3176
3176
|
]);
|
|
3177
3177
|
}
|
|
3178
|
-
const Il = /* @__PURE__ */
|
|
3178
|
+
const Il = /* @__PURE__ */ Q(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb"]]), ol = { class: "tabs" }, al = {
|
|
3179
3179
|
key: 0,
|
|
3180
3180
|
class: "tabs__horizontal"
|
|
3181
3181
|
}, ll = {
|
|
@@ -3192,7 +3192,7 @@ const Il = /* @__PURE__ */ D(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3192
3192
|
dropdown: { type: Boolean }
|
|
3193
3193
|
},
|
|
3194
3194
|
setup(p) {
|
|
3195
|
-
const r = p,
|
|
3195
|
+
const r = p, o = Ot(), n = Be(), a = Me(), c = K(() => {
|
|
3196
3196
|
if (r.query) {
|
|
3197
3197
|
const _ = n.currentRoute.value.query[r.query];
|
|
3198
3198
|
if (_)
|
|
@@ -3202,7 +3202,7 @@ const Il = /* @__PURE__ */ D(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3202
3202
|
if (_)
|
|
3203
3203
|
return _;
|
|
3204
3204
|
}
|
|
3205
|
-
return Object.keys(
|
|
3205
|
+
return Object.keys(o)[0];
|
|
3206
3206
|
}), u = (_) => {
|
|
3207
3207
|
r.query && n.push(Le(n.currentRoute.value, {
|
|
3208
3208
|
query: {
|
|
@@ -3215,34 +3215,34 @@ const Il = /* @__PURE__ */ D(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3215
3215
|
}));
|
|
3216
3216
|
};
|
|
3217
3217
|
return (_, d) => {
|
|
3218
|
-
const $ =
|
|
3218
|
+
const $ = ne("clickable");
|
|
3219
3219
|
return t(), l("div", ol, [
|
|
3220
|
-
e(
|
|
3220
|
+
e(a).md && !_.dropdown ? (t(), l("div", al, [
|
|
3221
3221
|
_.$slots.default ? (t(), l("div", ll, [
|
|
3222
|
-
|
|
3223
|
-
])) :
|
|
3224
|
-
(t(!0), l(
|
|
3225
|
-
key:
|
|
3226
|
-
class:
|
|
3222
|
+
A(_.$slots, "default", {}, void 0, !0)
|
|
3223
|
+
])) : b("", !0),
|
|
3224
|
+
(t(!0), l(P, null, H(Object.keys(_.$slots).filter((i) => i !== "default"), (i, v) => (t(), l("div", {
|
|
3225
|
+
key: i,
|
|
3226
|
+
class: W({
|
|
3227
3227
|
tabs__tab: !0,
|
|
3228
|
-
"tabs__tab--current":
|
|
3228
|
+
"tabs__tab--current": i === c.value || !c.value && v === 0
|
|
3229
3229
|
}),
|
|
3230
|
-
onClick: (k) => u(
|
|
3230
|
+
onClick: (k) => u(i)
|
|
3231
3231
|
}, [
|
|
3232
|
-
|
|
3232
|
+
A(_.$slots, i, {}, void 0, !0)
|
|
3233
3233
|
], 10, sl))), 128))
|
|
3234
3234
|
])) : (t(), l("div", il, [
|
|
3235
|
-
M(Ie, null,
|
|
3236
|
-
default:
|
|
3237
|
-
|
|
3235
|
+
M(Ie, null, ce({
|
|
3236
|
+
default: y(({ visible: i }) => [
|
|
3237
|
+
J((t(), V(Y, {
|
|
3238
3238
|
"icon-right": "",
|
|
3239
|
-
active:
|
|
3239
|
+
active: i,
|
|
3240
3240
|
icon: "caret-down",
|
|
3241
3241
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
3242
3242
|
class: "tabs__context-menu-icon"
|
|
3243
3243
|
}, {
|
|
3244
|
-
default:
|
|
3245
|
-
|
|
3244
|
+
default: y(() => [
|
|
3245
|
+
A(_.$slots, c.value, {}, void 0, !0)
|
|
3246
3246
|
]),
|
|
3247
3247
|
_: 2
|
|
3248
3248
|
}, 1032, ["active"])), [
|
|
@@ -3251,13 +3251,13 @@ const Il = /* @__PURE__ */ D(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3251
3251
|
]),
|
|
3252
3252
|
_: 2
|
|
3253
3253
|
}, [
|
|
3254
|
-
|
|
3255
|
-
name:
|
|
3256
|
-
fn:
|
|
3254
|
+
H(Object.keys(_.$slots).filter((i) => i !== "default"), (i) => ({
|
|
3255
|
+
name: i,
|
|
3256
|
+
fn: y(() => [
|
|
3257
3257
|
B("div", {
|
|
3258
|
-
onClick: (
|
|
3258
|
+
onClick: (v) => u(i)
|
|
3259
3259
|
}, [
|
|
3260
|
-
|
|
3260
|
+
A(_.$slots, i, {}, void 0, !0)
|
|
3261
3261
|
], 8, rl)
|
|
3262
3262
|
])
|
|
3263
3263
|
}))
|
|
@@ -3267,15 +3267,15 @@ const Il = /* @__PURE__ */ D(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3267
3267
|
};
|
|
3268
3268
|
}
|
|
3269
3269
|
});
|
|
3270
|
-
const cl = /* @__PURE__ */
|
|
3270
|
+
const cl = /* @__PURE__ */ Q(ul, [["__scopeId", "data-v-a20914ab"]]), dl = z({
|
|
3271
3271
|
props: {
|
|
3272
3272
|
initialValue: String,
|
|
3273
3273
|
promise: Promise
|
|
3274
3274
|
},
|
|
3275
3275
|
setup(p) {
|
|
3276
|
-
const r =
|
|
3277
|
-
return p.promise instanceof Promise && p.promise.then((
|
|
3278
|
-
r.value =
|
|
3276
|
+
const r = ee(p.initialValue);
|
|
3277
|
+
return p.promise instanceof Promise && p.promise.then((o) => {
|
|
3278
|
+
r.value = o;
|
|
3279
3279
|
}), () => At("div", String(r.value));
|
|
3280
3280
|
}
|
|
3281
3281
|
}), pl = ["onClick"], _l = { key: 1 }, ml = /* @__PURE__ */ z({
|
|
@@ -3284,49 +3284,49 @@ const cl = /* @__PURE__ */ D(ul, [["__scopeId", "data-v-a20914ab"]]), dl = z({
|
|
|
3284
3284
|
collection: {}
|
|
3285
3285
|
},
|
|
3286
3286
|
setup(p) {
|
|
3287
|
-
const r = p, n = Be().currentRoute,
|
|
3288
|
-
const { error: $, result:
|
|
3287
|
+
const r = p, n = Be().currentRoute, a = Ke(), c = K(() => r.collection ? je(r.collection, a) : typeof n.value.meta.collection == "string" ? je(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? je(n.value.params.collection, a) : null), u = async (_, d) => {
|
|
3288
|
+
const { error: $, result: i } = await d.$functions[_.badgeFunction]({
|
|
3289
3289
|
filters: _.filters
|
|
3290
3290
|
});
|
|
3291
|
-
return $ ? 0 :
|
|
3291
|
+
return $ ? 0 : i;
|
|
3292
3292
|
};
|
|
3293
3293
|
return (_, d) => c.value && c.value.description.filtersPresets ? (t(), V(cl, {
|
|
3294
3294
|
key: 0,
|
|
3295
3295
|
dropdown: "",
|
|
3296
3296
|
query: "section"
|
|
3297
|
-
},
|
|
3298
|
-
|
|
3297
|
+
}, ce({ _: 2 }, [
|
|
3298
|
+
H(Object.entries(c.value.description.filtersPresets), ([$, i]) => ({
|
|
3299
3299
|
name: $,
|
|
3300
|
-
fn:
|
|
3300
|
+
fn: y(() => [
|
|
3301
3301
|
B("div", {
|
|
3302
3302
|
class: "topbar__preset",
|
|
3303
|
-
onClick: (
|
|
3303
|
+
onClick: (v) => e(bt)(i, c.value)
|
|
3304
3304
|
}, [
|
|
3305
|
-
|
|
3305
|
+
i.icon ? (t(), V(Y, {
|
|
3306
3306
|
key: 0,
|
|
3307
|
-
icon:
|
|
3307
|
+
icon: i.icon
|
|
3308
3308
|
}, {
|
|
3309
|
-
default:
|
|
3310
|
-
|
|
3309
|
+
default: y(() => [
|
|
3310
|
+
D(C(i.label || e(L)($, { plural: !0 })), 1)
|
|
3311
3311
|
]),
|
|
3312
3312
|
_: 2
|
|
3313
|
-
}, 1032, ["icon"])) : (t(), l("div", _l, C(
|
|
3314
|
-
|
|
3315
|
-
default:
|
|
3313
|
+
}, 1032, ["icon"])) : (t(), l("div", _l, C(i.label || e(L)($, { plural: !0 })), 1)),
|
|
3314
|
+
i.badgeFunction ? (t(), V(ke, { key: 2 }, {
|
|
3315
|
+
default: y(() => [
|
|
3316
3316
|
M(e(dl), {
|
|
3317
3317
|
"initial-value": "0",
|
|
3318
|
-
promise: async () => String(u(
|
|
3318
|
+
promise: async () => String(u(i, c.value))
|
|
3319
3319
|
}, null, 8, ["promise"])
|
|
3320
3320
|
]),
|
|
3321
3321
|
_: 2
|
|
3322
|
-
}, 1024)) :
|
|
3322
|
+
}, 1024)) : b("", !0)
|
|
3323
3323
|
], 8, pl)
|
|
3324
3324
|
])
|
|
3325
3325
|
}))
|
|
3326
|
-
]), 1024)) :
|
|
3326
|
+
]), 1024)) : b("", !0);
|
|
3327
3327
|
}
|
|
3328
3328
|
});
|
|
3329
|
-
const fl = /* @__PURE__ */
|
|
3329
|
+
const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3330
3330
|
__proto__: null,
|
|
3331
3331
|
default: fl
|
|
3332
3332
|
}, Symbol.toStringTag, { value: "Module" })), Bl = /* @__PURE__ */ z({
|
|
@@ -3337,12 +3337,12 @@ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
|
|
|
3337
3337
|
emits: ["update:modelValue"],
|
|
3338
3338
|
setup(p) {
|
|
3339
3339
|
const r = p;
|
|
3340
|
-
|
|
3341
|
-
const
|
|
3340
|
+
he(ze, null);
|
|
3341
|
+
const o = qt(), n = K(() => o(
|
|
3342
3342
|
r.modelValue.password,
|
|
3343
3343
|
r.modelValue.confirmation
|
|
3344
3344
|
));
|
|
3345
|
-
return (
|
|
3345
|
+
return (a, c) => (t(), V(He, {
|
|
3346
3346
|
form: {
|
|
3347
3347
|
password: {
|
|
3348
3348
|
type: "string",
|
|
@@ -3355,12 +3355,12 @@ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
|
|
|
3355
3355
|
inputType: "password"
|
|
3356
3356
|
}
|
|
3357
3357
|
},
|
|
3358
|
-
"model-value":
|
|
3359
|
-
"onUpdate:modelValue": c[0] || (c[0] = (u) =>
|
|
3358
|
+
"model-value": a.modelValue,
|
|
3359
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => a.$emit("update:modelValue", u))
|
|
3360
3360
|
}, {
|
|
3361
|
-
after:
|
|
3361
|
+
after: y(() => [
|
|
3362
3362
|
B("div", null, C(n.value || "Senhas conferem"), 1),
|
|
3363
|
-
|
|
3363
|
+
A(a.$slots, "default", pe(Ve({ passwordError: n.value })))
|
|
3364
3364
|
]),
|
|
3365
3365
|
_: 3
|
|
3366
3366
|
}, 8, ["model-value"]));
|
|
@@ -3373,17 +3373,17 @@ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
|
|
|
3373
3373
|
{
|
|
3374
3374
|
path: "invite/:id",
|
|
3375
3375
|
name: "/user/invite/:id",
|
|
3376
|
-
redirect: (
|
|
3376
|
+
redirect: (o) => ({
|
|
3377
3377
|
path: "/user/signup",
|
|
3378
3378
|
params: {
|
|
3379
|
-
inviteId:
|
|
3379
|
+
inviteId: o.params.id
|
|
3380
3380
|
}
|
|
3381
3381
|
})
|
|
3382
3382
|
},
|
|
3383
3383
|
{
|
|
3384
3384
|
path: "signin",
|
|
3385
3385
|
name: "/user/signin",
|
|
3386
|
-
component: () => import("./signin-
|
|
3386
|
+
component: () => import("./signin-65f781a5.js"),
|
|
3387
3387
|
meta: {
|
|
3388
3388
|
title: "Autenticação"
|
|
3389
3389
|
}
|
|
@@ -3391,7 +3391,7 @@ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
|
|
|
3391
3391
|
{
|
|
3392
3392
|
path: "signup",
|
|
3393
3393
|
name: "/user/signup",
|
|
3394
|
-
component: () => import("./signup-
|
|
3394
|
+
component: () => import("./signup-83b7c10f.js"),
|
|
3395
3395
|
meta: {
|
|
3396
3396
|
title: "Registro"
|
|
3397
3397
|
}
|
|
@@ -3399,7 +3399,7 @@ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
|
|
|
3399
3399
|
{
|
|
3400
3400
|
path: "activation",
|
|
3401
3401
|
name: "/user/activation",
|
|
3402
|
-
component: () => import("./activation-
|
|
3402
|
+
component: () => import("./activation-0f34f978.js"),
|
|
3403
3403
|
meta: {
|
|
3404
3404
|
title: "Ativação"
|
|
3405
3405
|
}
|
|
@@ -3421,7 +3421,7 @@ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
|
|
|
3421
3421
|
name: "/dashboard/:collection",
|
|
3422
3422
|
props: !0,
|
|
3423
3423
|
components: {
|
|
3424
|
-
default: () => import("./index-
|
|
3424
|
+
default: () => import("./index-212512bb.js"),
|
|
3425
3425
|
topbar: () => Promise.resolve().then(() => vl)
|
|
3426
3426
|
},
|
|
3427
3427
|
meta: {
|
|
@@ -3433,7 +3433,7 @@ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
|
|
|
3433
3433
|
name: "/dashboard/:collection/:id",
|
|
3434
3434
|
props: !0,
|
|
3435
3435
|
components: {
|
|
3436
|
-
default: () => import("./_id_-
|
|
3436
|
+
default: () => import("./_id_-647db632.js")
|
|
3437
3437
|
},
|
|
3438
3438
|
meta: {
|
|
3439
3439
|
title: "%viewTitle%"
|
|
@@ -3451,7 +3451,7 @@ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
|
|
|
3451
3451
|
children: [
|
|
3452
3452
|
{
|
|
3453
3453
|
path: "profile",
|
|
3454
|
-
component: () => import("./index-
|
|
3454
|
+
component: () => import("./index-dfec5013.js"),
|
|
3455
3455
|
meta: {
|
|
3456
3456
|
title: "Meu perfil",
|
|
3457
3457
|
icon: "user-square"
|
|
@@ -3460,7 +3460,7 @@ const fl = /* @__PURE__ */ D(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
|
|
|
3460
3460
|
{
|
|
3461
3461
|
path: "changepass",
|
|
3462
3462
|
name: "/dashboard/user/changepass",
|
|
3463
|
-
component: () => import("./index-
|
|
3463
|
+
component: () => import("./index-eb88327a.js"),
|
|
3464
3464
|
meta: {
|
|
3465
3465
|
title: "Mudar senha",
|
|
3466
3466
|
icon: "lock"
|
|
@@ -3480,18 +3480,18 @@ export {
|
|
|
3480
3480
|
Sl as G,
|
|
3481
3481
|
wl as H,
|
|
3482
3482
|
Bl as _,
|
|
3483
|
-
|
|
3484
|
-
|
|
3483
|
+
_e as a,
|
|
3484
|
+
Y as b,
|
|
3485
3485
|
Un as c,
|
|
3486
3486
|
Ol as d,
|
|
3487
3487
|
Ko as e,
|
|
3488
3488
|
Ee as f,
|
|
3489
3489
|
Il as g,
|
|
3490
3490
|
Se as h,
|
|
3491
|
-
|
|
3491
|
+
Q as i,
|
|
3492
3492
|
Cl as j,
|
|
3493
3493
|
ke as k,
|
|
3494
|
-
|
|
3494
|
+
ye as l,
|
|
3495
3495
|
ln as m,
|
|
3496
3496
|
Ie as n,
|
|
3497
3497
|
Ta as o,
|