@aeria-ui/ui 0.0.192 → 0.0.193
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_-cBE7LSTk.js → _id_-BKXJQ1Ru.js} +1 -1
- package/dist/{activation-C00a1Mvw.js → activation-BOIVt1rn.js} +1 -1
- package/dist/components/aeria-bare-button/aeria-bare-button.vue.d.ts +4 -2
- package/dist/components/aeria-button/aeria-button.vue.d.ts +2 -2
- package/dist/{index-BCHCTQZY.js → index-BiZyCZT1.js} +1 -1
- package/dist/{index-BYVFtuem.js → index-CWxIFD2b.js} +1 -1
- package/dist/{index-4r0Jumub.js → index-PNmYnBkm.js} +283 -272
- package/dist/{index-DdAhp0qF.js → index-vpRNgSPj.js} +1 -1
- package/dist/{redefine-password-Doi9TAyj.js → redefine-password-DyQTQF3b.js} +1 -1
- package/dist/{signin-fMT91R62.js → signin-CeGp5FWV.js} +1 -1
- package/dist/{signup-cvEjVxmE.js → signup-D-X3QC0R.js} +1 -1
- package/dist/ui.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +7 -7
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as M, ref as X, resolveDirective as ee, createElementBlock as s, openBlock as n, normalizeClass as
|
|
1
|
+
import { defineComponent as M, ref as X, resolveDirective as ee, createElementBlock as s, openBlock as n, normalizeClass as U, Fragment as Y, renderList as z, withDirectives as K, createCommentVNode as h, createTextVNode as D, toDisplayString as V, unref as t, renderSlot as C, withModifiers as Ve, inject as re, computed as G, createElementVNode as O, mergeProps as x, createBlock as $, withCtx as y, resolveDynamicComponent as pe, useCssVars as Ne, normalizeProps as oe, guardReactiveProps as be, Teleport as Ee, createVNode as L, onMounted as Ue, watch as ae, vModelDynamic as et, onBeforeMount as Xe, normalizeStyle as ve, provide as fe, createSlots as ie, vModelCheckbox as tt, onUnmounted as nt, resolveComponent as at, Suspense as ot, useSlots as lt, h as it } from "vue";
|
|
2
2
|
import { t as R, useI18n as st } from "@aeria-ui/i18n";
|
|
3
|
-
import { INSTANCE_VARS_SYMBOL as rt, useScrollObserver as He, useBreakpoints as Se, useMask as ut, PAGINATION_PER_PAGE_DEFAULTS as ct, API_URL as Je, request as dt, useDebounce as Ze, convertToSearchQuery as mt, useParentCollectionStore as
|
|
4
|
-
import { arraysIntersect as Fe, deepClone as ke, getReferenceProperty as se, convertConditionToQuery as ht, freshItem as
|
|
3
|
+
import { INSTANCE_VARS_SYMBOL as rt, useScrollObserver as He, useBreakpoints as Se, useMask as ut, PAGINATION_PER_PAGE_DEFAULTS as ct, API_URL as Je, request as dt, useDebounce as Ze, convertToSearchQuery as mt, useParentCollectionStore as Ie, useCollectionStore as pt, useAction as ft, convertFromSearchQuery as vt, usePasswordPolicy as yt } from "@aeria-ui/core";
|
|
4
|
+
import { arraysIntersect as Fe, deepClone as ke, getReferenceProperty as se, convertConditionToQuery as ht, freshItem as bt, isRequired as je, evaluateCondition as qe, deepMerge as Be } from "@aeriajs/common";
|
|
5
5
|
import { useStore as ne, getStoreId as we, useParentStore as xe, STORE_ID as Te, getGlobalStateManager as De } from "@aeria-ui/state-management";
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import { isDocumentComplete as
|
|
6
|
+
import { useRouter as Oe } from "vue-router";
|
|
7
|
+
import { isDocumentComplete as _t, getObjectKey as $t } from "@aeria-ui/utils";
|
|
8
8
|
const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "accordion__content"
|
|
@@ -20,7 +20,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
20
20
|
return (o, l) => {
|
|
21
21
|
const c = ee("clickable");
|
|
22
22
|
return n(), s("div", {
|
|
23
|
-
class:
|
|
23
|
+
class: U({
|
|
24
24
|
accordion: !0,
|
|
25
25
|
"accordion--padded": !e.noPadding
|
|
26
26
|
})
|
|
@@ -34,7 +34,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
34
34
|
onClick: (d) => u.value === r ? u.value = null : u.value = r
|
|
35
35
|
}, [
|
|
36
36
|
e.enumerate ? (n(), s("span", kt, V(p + 1) + ". ", 1)) : h("", !0),
|
|
37
|
-
|
|
37
|
+
D(" " + V(e.headers[r] ? a(e.headers[r]) : t(R)(r)), 1)
|
|
38
38
|
], 8, gt)), [
|
|
39
39
|
[c]
|
|
40
40
|
]),
|
|
@@ -58,7 +58,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
58
58
|
},
|
|
59
59
|
setup(e) {
|
|
60
60
|
return (u, a) => (n(), s("div", {
|
|
61
|
-
class:
|
|
61
|
+
class: U([
|
|
62
62
|
"badge",
|
|
63
63
|
{ "badge--large": e.large },
|
|
64
64
|
{ "badge--alt": e.alt }
|
|
@@ -70,6 +70,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
70
70
|
}), he = /* @__PURE__ */ F(Ot, [["__scopeId", "data-v-4cbce7ef"]]), At = /* @__PURE__ */ M({
|
|
71
71
|
__name: "aeria-bare-button",
|
|
72
72
|
props: {
|
|
73
|
+
dummy: { type: Boolean },
|
|
73
74
|
disabled: { type: Boolean }
|
|
74
75
|
},
|
|
75
76
|
emits: ["click"],
|
|
@@ -77,17 +78,27 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
77
78
|
const a = e, o = u, l = (c) => {
|
|
78
79
|
a.disabled || o("click", c);
|
|
79
80
|
};
|
|
80
|
-
return (c, r) => (n(), s("button", {
|
|
81
|
-
|
|
81
|
+
return (c, r) => e.dummy ? (n(), s("button", {
|
|
82
|
+
key: 0,
|
|
83
|
+
class: U([
|
|
84
|
+
"barebutton",
|
|
85
|
+
`barebutton--${e.disabled ? "disabled" : "enabled"}`
|
|
86
|
+
]),
|
|
87
|
+
onClick: Ve(l, ["prevent"])
|
|
88
|
+
}, [
|
|
89
|
+
C(c.$slots, "default", {}, void 0, !0)
|
|
90
|
+
], 2)) : (n(), s("button", {
|
|
91
|
+
key: 1,
|
|
92
|
+
class: U([
|
|
82
93
|
"barebutton",
|
|
83
94
|
`barebutton--${e.disabled ? "disabled" : "enabled"}`
|
|
84
95
|
]),
|
|
85
|
-
onClick:
|
|
96
|
+
onClick: Ve(l, ["prevent"])
|
|
86
97
|
}, [
|
|
87
98
|
C(c.$slots, "default", {}, void 0, !0)
|
|
88
99
|
], 2));
|
|
89
100
|
}
|
|
90
|
-
}), de = /* @__PURE__ */ F(At, [["__scopeId", "data-v-
|
|
101
|
+
}), de = /* @__PURE__ */ F(At, [["__scopeId", "data-v-49ce948c"]]), It = ["href"], Bt = {
|
|
91
102
|
key: 0,
|
|
92
103
|
"data-component": "icon-label"
|
|
93
104
|
}, St = /* @__PURE__ */ M({
|
|
@@ -103,7 +114,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
103
114
|
setup(e) {
|
|
104
115
|
const u = e, a = re(rt, {}), o = typeof u.reactive == "boolean" ? u.reactive : re("iconReactive", !1), l = G(() => u.icon?.includes(":") ? u.icon : `regular:${u.icon}`);
|
|
105
116
|
return (c, r) => (n(), s("a", {
|
|
106
|
-
class:
|
|
117
|
+
class: U([
|
|
107
118
|
"icon",
|
|
108
119
|
{ "icon--reactive": t(o) },
|
|
109
120
|
{ "icon--active": e.active },
|
|
@@ -111,7 +122,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
111
122
|
])
|
|
112
123
|
}, [
|
|
113
124
|
O("div", {
|
|
114
|
-
class:
|
|
125
|
+
class: U([
|
|
115
126
|
"icon__icon",
|
|
116
127
|
{ "icon__icon--right": e.iconRight }
|
|
117
128
|
])
|
|
@@ -134,7 +145,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
134
145
|
])) : h("", !0)
|
|
135
146
|
], 2));
|
|
136
147
|
}
|
|
137
|
-
}),
|
|
148
|
+
}), H = /* @__PURE__ */ F(St, [["__scopeId", "data-v-263a2782"]]), wt = { class: "button__content" }, Tt = {
|
|
138
149
|
key: 1,
|
|
139
150
|
class: "button__content"
|
|
140
151
|
}, jt = /* @__PURE__ */ M({
|
|
@@ -159,7 +170,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
159
170
|
return re("buttonSize", u.size) || "medium";
|
|
160
171
|
})();
|
|
161
172
|
return (l, c) => (n(), $(de, {
|
|
162
|
-
class:
|
|
173
|
+
class: U([
|
|
163
174
|
"button",
|
|
164
175
|
`button--${t(a)}`,
|
|
165
176
|
`button--${t(o)}`,
|
|
@@ -168,7 +179,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
168
179
|
disabled: e.disabled || e.loading
|
|
169
180
|
}, {
|
|
170
181
|
default: y(() => [
|
|
171
|
-
e.icon ? (n(), $(
|
|
182
|
+
e.icon ? (n(), $(H, {
|
|
172
183
|
key: 0,
|
|
173
184
|
icon: e.icon
|
|
174
185
|
}, {
|
|
@@ -193,7 +204,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
193
204
|
},
|
|
194
205
|
setup(e) {
|
|
195
206
|
return (u, a) => (n(), s("div", {
|
|
196
|
-
class:
|
|
207
|
+
class: U([
|
|
197
208
|
"card",
|
|
198
209
|
{ "card--inactive": e.inactive },
|
|
199
210
|
{ "card--horizontal": e.horizontal }
|
|
@@ -253,11 +264,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
253
264
|
}, f = (m) => {
|
|
254
265
|
o("update:collapsed", m), l.value = m;
|
|
255
266
|
};
|
|
256
|
-
return (m,
|
|
257
|
-
const
|
|
267
|
+
return (m, b) => {
|
|
268
|
+
const _ = ee("clickable"), g = ee("loading"), i = ee("overlay");
|
|
258
269
|
return e.modelValue ? K((n(), s("div", {
|
|
259
270
|
key: 0,
|
|
260
|
-
class:
|
|
271
|
+
class: U([
|
|
261
272
|
"panel",
|
|
262
273
|
{ "panel--fixed": e.fixedRight }
|
|
263
274
|
])
|
|
@@ -266,7 +277,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
266
277
|
e.float || e.fixedRight ? "dialog" : "div"
|
|
267
278
|
), {
|
|
268
279
|
"data-component": "panel",
|
|
269
|
-
class:
|
|
280
|
+
class: U([
|
|
270
281
|
"aeria-surface",
|
|
271
282
|
"panel__content",
|
|
272
283
|
{ "panel__content--float": e.float },
|
|
@@ -276,12 +287,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
276
287
|
{ "panel__content--transparent-mobile": e.transparentMobile },
|
|
277
288
|
{ "panel__content--outer-header": e.outerHeader }
|
|
278
289
|
]),
|
|
279
|
-
onClick:
|
|
290
|
+
onClick: b[2] || (b[2] = (T) => T.stopPropagation())
|
|
280
291
|
}, {
|
|
281
292
|
default: y(() => [
|
|
282
293
|
m.$slots.header || e.title ? (n(), s("div", {
|
|
283
294
|
key: 0,
|
|
284
|
-
class:
|
|
295
|
+
class: U([
|
|
285
296
|
"panel__header",
|
|
286
297
|
{ "panel__header--collapsed": l.value },
|
|
287
298
|
{ "panel__header--outer": e.outerHeader }
|
|
@@ -293,27 +304,27 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
293
304
|
C(m.$slots, "extra", {}, void 0, !0)
|
|
294
305
|
])) : h("", !0)
|
|
295
306
|
]),
|
|
296
|
-
e.collapsible && l.value ? K((n(), $(
|
|
307
|
+
e.collapsible && l.value ? K((n(), $(H, {
|
|
297
308
|
key: 0,
|
|
298
309
|
reactive: "",
|
|
299
310
|
icon: "plus",
|
|
300
|
-
onClick:
|
|
311
|
+
onClick: b[0] || (b[0] = (T) => f(!l.value))
|
|
301
312
|
}, null, 512)), [
|
|
302
|
-
[
|
|
303
|
-
]) : e.collapsible && !l.value ? K((n(), $(
|
|
313
|
+
[_]
|
|
314
|
+
]) : e.collapsible && !l.value ? K((n(), $(H, {
|
|
304
315
|
key: 1,
|
|
305
316
|
reactive: "",
|
|
306
317
|
icon: "minus",
|
|
307
|
-
onClick:
|
|
318
|
+
onClick: b[1] || (b[1] = (T) => f(!l.value))
|
|
308
319
|
}, null, 512)), [
|
|
309
|
-
[
|
|
310
|
-
]) : e.closeHint ? K((n(), $(
|
|
320
|
+
[_]
|
|
321
|
+
]) : e.closeHint ? K((n(), $(H, {
|
|
311
322
|
key: 2,
|
|
312
323
|
reactive: "",
|
|
313
324
|
icon: "x",
|
|
314
325
|
onClick: p
|
|
315
326
|
}, null, 512)), [
|
|
316
|
-
[
|
|
327
|
+
[_]
|
|
317
328
|
]) : h("", !0)
|
|
318
329
|
], 2)) : h("", !0),
|
|
319
330
|
l.value ? h("", !0) : K((n(), s("div", {
|
|
@@ -321,7 +332,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
321
332
|
ref_key: "body",
|
|
322
333
|
ref: c,
|
|
323
334
|
tabindex: "0",
|
|
324
|
-
class:
|
|
335
|
+
class: U([
|
|
325
336
|
"panel__body",
|
|
326
337
|
{ "panel__body--padded": !e.fill }
|
|
327
338
|
])
|
|
@@ -332,7 +343,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
332
343
|
]),
|
|
333
344
|
m.$slots.footer ? (n(), s("div", {
|
|
334
345
|
key: 2,
|
|
335
|
-
class:
|
|
346
|
+
class: U([
|
|
336
347
|
"panel__footer",
|
|
337
348
|
{ "panel__footer--padded": !e.fillFooter },
|
|
338
349
|
{ "panel__footer--shadowed": !t(r) }
|
|
@@ -353,7 +364,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
353
364
|
]) : h("", !0);
|
|
354
365
|
};
|
|
355
366
|
}
|
|
356
|
-
}),
|
|
367
|
+
}), Ae = /* @__PURE__ */ F(Dt, [["__scopeId", "data-v-8463f8df"]]), Qt = { class: "content__body" }, Gt = {
|
|
357
368
|
key: 0,
|
|
358
369
|
class: "content__section"
|
|
359
370
|
}, Wt = { class: "content__item" }, Yt = /* @__PURE__ */ M({
|
|
@@ -397,7 +408,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
397
408
|
return (d, f) => {
|
|
398
409
|
const m = ee("overlay");
|
|
399
410
|
return n(), s(Y, null, [
|
|
400
|
-
Object.keys(d.$slots).some((
|
|
411
|
+
Object.keys(d.$slots).some((b) => b !== "default") || e.actions !== void 0 && e.actions.length > 0 ? (n(), s("div", {
|
|
401
412
|
key: 0,
|
|
402
413
|
ref_key: "contextmenu",
|
|
403
414
|
ref: o,
|
|
@@ -405,9 +416,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
405
416
|
}, [
|
|
406
417
|
O("a", {
|
|
407
418
|
class: "contextmenu__trigger",
|
|
408
|
-
onClick: f[0] || (f[0] = (
|
|
419
|
+
onClick: f[0] || (f[0] = (b) => l.value = !0)
|
|
409
420
|
}, [
|
|
410
|
-
C(d.$slots, "default", oe(
|
|
421
|
+
C(d.$slots, "default", oe(be({
|
|
411
422
|
visible: l.value
|
|
412
423
|
})), void 0, !0)
|
|
413
424
|
])
|
|
@@ -416,9 +427,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
416
427
|
key: 1,
|
|
417
428
|
to: "main"
|
|
418
429
|
}, [
|
|
419
|
-
K((n(), $(
|
|
430
|
+
K((n(), $(Ae, {
|
|
420
431
|
modelValue: l.value,
|
|
421
|
-
"onUpdate:modelValue": f[4] || (f[4] = (
|
|
432
|
+
"onUpdate:modelValue": f[4] || (f[4] = (b) => l.value = b),
|
|
422
433
|
fill: "",
|
|
423
434
|
bordered: "",
|
|
424
435
|
class: "content",
|
|
@@ -429,17 +440,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
429
440
|
d.$slots.header ? (n(), s("div", Gt, [
|
|
430
441
|
C(d.$slots, "header", {}, void 0, !0)
|
|
431
442
|
])) : h("", !0),
|
|
432
|
-
Object.keys(d.$slots).filter((
|
|
443
|
+
Object.keys(d.$slots).filter((b) => !["default", "extra", "header"].includes(b)).length > 0 ? (n(), s("div", {
|
|
433
444
|
key: 1,
|
|
434
445
|
class: "content__section",
|
|
435
|
-
onClick: f[1] || (f[1] = (
|
|
446
|
+
onClick: f[1] || (f[1] = (b) => l.value = !1)
|
|
436
447
|
}, [
|
|
437
|
-
(n(!0), s(Y, null, z(Object.keys(d.$slots).filter((
|
|
438
|
-
key: `slot-${
|
|
448
|
+
(n(!0), s(Y, null, z(Object.keys(d.$slots).filter((b) => !["default", "extra", "header"].includes(b)), (b, _) => (n(), $(de, {
|
|
449
|
+
key: `slot-${_}`,
|
|
439
450
|
class: "content__item content__item--reactive"
|
|
440
451
|
}, {
|
|
441
452
|
default: y(() => [
|
|
442
|
-
C(d.$slots,
|
|
453
|
+
C(d.$slots, b, {}, void 0, !0)
|
|
443
454
|
]),
|
|
444
455
|
_: 2
|
|
445
456
|
}, 1024))), 128))
|
|
@@ -447,19 +458,19 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
447
458
|
e.actions !== void 0 && e.actions.length > 0 ? (n(), s("div", {
|
|
448
459
|
key: 2,
|
|
449
460
|
class: "content__section",
|
|
450
|
-
onClick: f[2] || (f[2] = (
|
|
461
|
+
onClick: f[2] || (f[2] = (b) => l.value = !1)
|
|
451
462
|
}, [
|
|
452
|
-
(n(!0), s(Y, null, z(c(e.actions), (
|
|
453
|
-
key: `action-${
|
|
463
|
+
(n(!0), s(Y, null, z(c(e.actions), (b, _) => (n(), $(de, {
|
|
464
|
+
key: `action-${_}`,
|
|
454
465
|
class: "content__item content__item--reactive",
|
|
455
|
-
onClick: (g) => r(
|
|
466
|
+
onClick: (g) => r(b, e.subject)
|
|
456
467
|
}, {
|
|
457
468
|
default: y(() => [
|
|
458
|
-
L(
|
|
459
|
-
icon:
|
|
469
|
+
L(H, {
|
|
470
|
+
icon: b.icon || "gear"
|
|
460
471
|
}, {
|
|
461
472
|
default: y(() => [
|
|
462
|
-
|
|
473
|
+
D(V(b.translate ? t(R)(b.label, { capitalize: !0 }) : b.label), 1)
|
|
463
474
|
]),
|
|
464
475
|
_: 2
|
|
465
476
|
}, 1032, ["icon"])
|
|
@@ -470,7 +481,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
470
481
|
d.$slots.extra ? (n(), s("div", {
|
|
471
482
|
key: 3,
|
|
472
483
|
class: "content__section",
|
|
473
|
-
onClick: f[3] || (f[3] = (
|
|
484
|
+
onClick: f[3] || (f[3] = (b) => l.value = !1)
|
|
474
485
|
}, [
|
|
475
486
|
O("div", Wt, [
|
|
476
487
|
d.$slots.extra ? C(d.$slots, "extra", { key: 0 }, void 0, !0) : h("", !0)
|
|
@@ -496,7 +507,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
496
507
|
], 64);
|
|
497
508
|
};
|
|
498
509
|
}
|
|
499
|
-
}),
|
|
510
|
+
}), Ce = /* @__PURE__ */ F(Yt, [["__scopeId", "data-v-ee3ea72f"]]), Kt = { class: "info__content" }, Xt = /* @__PURE__ */ M({
|
|
500
511
|
__name: "aeria-info",
|
|
501
512
|
props: {
|
|
502
513
|
where: { default: "top" }
|
|
@@ -510,7 +521,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
510
521
|
}, [
|
|
511
522
|
a.value ? (n(), s("div", {
|
|
512
523
|
key: 0,
|
|
513
|
-
class:
|
|
524
|
+
class: U([
|
|
514
525
|
"info__bubble",
|
|
515
526
|
`info__bubble--${e.where}`
|
|
516
527
|
])
|
|
@@ -551,7 +562,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
551
562
|
setup(e, { emit: u }) {
|
|
552
563
|
const a = e, o = u, l = a.property || {}, c = l.icon || "inputType" in l && l.inputType === "search", r = re("searchOnly", !1), p = re("innerInputLabel", !1), d = !r && (a.readOnly || l.readOnly), f = X(!1), m = async (w) => {
|
|
553
564
|
await navigator.clipboard.writeText(w), o("clipboardCopy", w), f.value = !0;
|
|
554
|
-
},
|
|
565
|
+
}, b = re("inputVariant", a.variant) || "normal", _ = Object.assign(Object.assign({}, a), {
|
|
555
566
|
name: a.propertyName,
|
|
556
567
|
readonly: d,
|
|
557
568
|
type: (() => {
|
|
@@ -574,7 +585,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
574
585
|
})(),
|
|
575
586
|
placeholder: p ? l.description || a.propertyName : l.placeholder
|
|
576
587
|
});
|
|
577
|
-
"type" in l && ((l.type === "number" || l.type === "integer") && (l.minimum && (
|
|
588
|
+
"type" in l && ((l.type === "number" || l.type === "integer") && (l.minimum && (_.min = l.minimum), l.exclusiveMinimum && (_.min = l.exclusiveMinimum + 1), l.maximum && (_.max = l.maximum), l.exclusiveMaximum && (_.max = l.exclusiveMaximum - 1)), l.type === "string" && ((l.format === "date" || l.format === "date-time") && (_.type = !r && l.format === "date-time" ? "datetime-local" : "date"), _.minlength = l.minLength, _.maxlength = l.maxLength)), _.type === "text" && r && (_.type = "search"), Ue(() => {
|
|
578
589
|
a.modelValue !== null && E(a.modelValue);
|
|
579
590
|
});
|
|
580
591
|
const g = (w) => {
|
|
@@ -585,7 +596,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
585
596
|
J = w.toISOString();
|
|
586
597
|
else
|
|
587
598
|
return "";
|
|
588
|
-
switch (
|
|
599
|
+
switch (_.type) {
|
|
589
600
|
case "date":
|
|
590
601
|
return J.slice(0, 10);
|
|
591
602
|
case "datetime-local":
|
|
@@ -600,7 +611,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
600
611
|
return w ? T.enmask(String(w), void 0, {
|
|
601
612
|
defaultValue: !0
|
|
602
613
|
}) : "";
|
|
603
|
-
switch (
|
|
614
|
+
switch (_.type) {
|
|
604
615
|
case "date":
|
|
605
616
|
case "datetime-local":
|
|
606
617
|
return g(w);
|
|
@@ -622,7 +633,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
622
633
|
const J = (() => {
|
|
623
634
|
if (typeof w != "string")
|
|
624
635
|
return w;
|
|
625
|
-
switch (
|
|
636
|
+
switch (_.type) {
|
|
626
637
|
case "number":
|
|
627
638
|
case "integer":
|
|
628
639
|
return w === "" ? null : Number(w);
|
|
@@ -649,19 +660,19 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
649
660
|
])) : h("", !0),
|
|
650
661
|
"element" in t(l) && t(l).element === "textarea" ? (n(), s("div", {
|
|
651
662
|
key: 2,
|
|
652
|
-
class:
|
|
663
|
+
class: U([
|
|
653
664
|
"input__container",
|
|
654
665
|
"input__container--textarea",
|
|
655
|
-
`input__container--${t(
|
|
666
|
+
`input__container--${t(b)}`
|
|
656
667
|
])
|
|
657
668
|
}, [
|
|
658
669
|
K(O("textarea", {
|
|
659
|
-
placeholder: t(
|
|
660
|
-
readonly: t(
|
|
670
|
+
placeholder: t(_).placeholder,
|
|
671
|
+
readonly: t(_).readonly,
|
|
661
672
|
value: e.modelValue,
|
|
662
|
-
class:
|
|
673
|
+
class: U([
|
|
663
674
|
"input__textarea",
|
|
664
|
-
`input__input--${t(
|
|
675
|
+
`input__input--${t(b)}`
|
|
665
676
|
]),
|
|
666
677
|
onInput: I
|
|
667
678
|
}, null, 42, en), [
|
|
@@ -669,17 +680,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
669
680
|
])
|
|
670
681
|
], 2)) : (n(), s("div", {
|
|
671
682
|
key: 3,
|
|
672
|
-
class:
|
|
683
|
+
class: U([
|
|
673
684
|
"input__container",
|
|
674
|
-
`input__container--${t(
|
|
685
|
+
`input__container--${t(b)}`
|
|
675
686
|
])
|
|
676
687
|
}, [
|
|
677
|
-
K(O("input", x(t(
|
|
688
|
+
K(O("input", x(t(_), {
|
|
678
689
|
value: i.value,
|
|
679
690
|
"data-component": "input",
|
|
680
691
|
class: [
|
|
681
692
|
"input__input",
|
|
682
|
-
`input__input--${t(
|
|
693
|
+
`input__input--${t(b)}`,
|
|
683
694
|
{ "input__input--icon": t(c) },
|
|
684
695
|
{ "input__input--readOnly": t(d) }
|
|
685
696
|
],
|
|
@@ -688,29 +699,29 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
688
699
|
}), null, 16, tn), [
|
|
689
700
|
[N, t(l).focus]
|
|
690
701
|
]),
|
|
691
|
-
t(c) ? (n(), $(
|
|
702
|
+
t(c) ? (n(), $(H, {
|
|
692
703
|
key: 0,
|
|
693
704
|
icon: t(l).icon || "magnifying-glass",
|
|
694
|
-
class:
|
|
705
|
+
class: U([
|
|
695
706
|
"input__icon",
|
|
696
|
-
`input__icon--${t(
|
|
707
|
+
`input__icon--${t(b)}`
|
|
697
708
|
])
|
|
698
709
|
}, null, 8, ["icon", "class"])) : h("", !0),
|
|
699
710
|
t(d) ? (n(), s("div", nn, [
|
|
700
711
|
L(Jt, null, {
|
|
701
712
|
text: y(() => [...J[2] || (J[2] = [
|
|
702
|
-
|
|
713
|
+
D("Copiar", -1)
|
|
703
714
|
])]),
|
|
704
715
|
default: y(() => [
|
|
705
|
-
f.value ? (n(), $(
|
|
716
|
+
f.value ? (n(), $(H, {
|
|
706
717
|
key: 0,
|
|
707
718
|
reactive: "",
|
|
708
719
|
icon: "check"
|
|
709
|
-
})) : K((n(), $(
|
|
720
|
+
})) : K((n(), $(H, {
|
|
710
721
|
key: 1,
|
|
711
722
|
reactive: "",
|
|
712
723
|
icon: "clipboard",
|
|
713
|
-
onClick: J[1] || (J[1] =
|
|
724
|
+
onClick: J[1] || (J[1] = Ve((ce) => m(String(e.modelValue || "")), ["prevent"]))
|
|
714
725
|
}, null, 512)), [
|
|
715
726
|
[ue]
|
|
716
727
|
])
|
|
@@ -722,7 +733,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
722
733
|
]);
|
|
723
734
|
};
|
|
724
735
|
}
|
|
725
|
-
}),
|
|
736
|
+
}), _e = /* @__PURE__ */ F(an, [["__scopeId", "data-v-6e5fdbe7"]]), on = {
|
|
726
737
|
key: 1,
|
|
727
738
|
value: ""
|
|
728
739
|
}, ln = ["value", "data-selected"], sn = /* @__PURE__ */ M({
|
|
@@ -748,15 +759,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
748
759
|
}, d = (m) => Array.isArray(a.modelValue) ? a.modelValue.includes(m) : a.modelValue === m, f = G(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
|
|
749
760
|
return ae(l, (m) => {
|
|
750
761
|
if (m && a.required && !a.modelValue) {
|
|
751
|
-
const
|
|
752
|
-
|
|
762
|
+
const b = m.querySelector("option")?.value;
|
|
763
|
+
b && o("update:modelValue", b);
|
|
753
764
|
}
|
|
754
765
|
}), a.multiple && ae(() => a.modelValue, (m) => {
|
|
755
766
|
if (!l.value)
|
|
756
767
|
return;
|
|
757
|
-
const
|
|
758
|
-
|
|
759
|
-
}), (m,
|
|
768
|
+
const b = l.value.querySelector('option[data-selected="true"]');
|
|
769
|
+
b && b.removeAttribute("data-selected"), l.value.querySelector(`option[value="${m}"]`)?.setAttribute("data-selected", "true");
|
|
770
|
+
}), (m, b) => e.readOnly ? (n(), $(_e, {
|
|
760
771
|
key: 1,
|
|
761
772
|
"read-only": "",
|
|
762
773
|
"model-value": e.modelValue
|
|
@@ -771,18 +782,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
771
782
|
"select--multiple": !!f.value,
|
|
772
783
|
"select--outline": !e.noOutline
|
|
773
784
|
},
|
|
774
|
-
onChange:
|
|
785
|
+
onChange: b[0] || (b[0] = (_) => p(_.target.value))
|
|
775
786
|
}), [
|
|
776
|
-
t(c) && t(c).icon ? (n(), $(
|
|
787
|
+
t(c) && t(c).icon ? (n(), $(H, {
|
|
777
788
|
key: 0,
|
|
778
789
|
icon: t(c).icon
|
|
779
790
|
}, null, 8, ["icon"])) : h("", !0),
|
|
780
791
|
!a.multiple && !e.required ? (n(), s("option", on, V(t(R)("none")), 1)) : h("", !0),
|
|
781
|
-
(n(!0), s(Y, null, z(t(c) && "enum" in t(c) ? t(c).enum : [], (
|
|
782
|
-
key: String(
|
|
783
|
-
value:
|
|
784
|
-
"data-selected": d(
|
|
785
|
-
}, V(t(c)?.translate && typeof
|
|
792
|
+
(n(!0), s(Y, null, z(t(c) && "enum" in t(c) ? t(c).enum : [], (_) => (n(), s("option", {
|
|
793
|
+
key: String(_),
|
|
794
|
+
value: _,
|
|
795
|
+
"data-selected": d(_)
|
|
796
|
+
}, V(t(c)?.translate && typeof _ == "string" ? t(R)(_) : _), 9, ln))), 128)),
|
|
786
797
|
C(m.$slots, "default", {}, void 0, !0)
|
|
787
798
|
], 16));
|
|
788
799
|
}
|
|
@@ -823,7 +834,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
823
834
|
onClick: f[0] || (f[0] = (m) => l.value = 0)
|
|
824
835
|
}, {
|
|
825
836
|
default: y(() => [
|
|
826
|
-
L(
|
|
837
|
+
L(H, { icon: "caret-double-left" })
|
|
827
838
|
]),
|
|
828
839
|
_: 1
|
|
829
840
|
}, 8, ["disabled"]),
|
|
@@ -832,7 +843,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
832
843
|
onClick: f[1] || (f[1] = (m) => l.value -= 1)
|
|
833
844
|
}, {
|
|
834
845
|
default: y(() => [
|
|
835
|
-
L(
|
|
846
|
+
L(H, { icon: "caret-left" })
|
|
836
847
|
]),
|
|
837
848
|
_: 1
|
|
838
849
|
}, 8, ["disabled"]),
|
|
@@ -841,7 +852,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
841
852
|
onClick: f[2] || (f[2] = (m) => l.value += 1)
|
|
842
853
|
}, {
|
|
843
854
|
default: y(() => [
|
|
844
|
-
L(
|
|
855
|
+
L(H, { icon: "caret-right" })
|
|
845
856
|
]),
|
|
846
857
|
_: 1
|
|
847
858
|
}, 8, ["disabled"]),
|
|
@@ -850,7 +861,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
850
861
|
onClick: f[3] || (f[3] = (m) => l.value = p.value - 1)
|
|
851
862
|
}, {
|
|
852
863
|
default: y(() => [
|
|
853
|
-
L(
|
|
864
|
+
L(H, { icon: "caret-double-right" })
|
|
854
865
|
]),
|
|
855
866
|
_: 1
|
|
856
867
|
}, 8, ["disabled"]),
|
|
@@ -873,8 +884,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
873
884
|
}, 8, ["modelValue"])
|
|
874
885
|
]),
|
|
875
886
|
e.noSummary ? h("", !0) : (n(), s("div", dn, [
|
|
876
|
-
|
|
877
|
-
(n(), $(
|
|
887
|
+
D(V(t(R)("Page")) + " ", 1),
|
|
888
|
+
(n(), $(_e, {
|
|
878
889
|
key: l.value,
|
|
879
890
|
modelValue: r.value,
|
|
880
891
|
"onUpdate:modelValue": f[5] || (f[5] = (m) => r.value = m),
|
|
@@ -891,10 +902,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
891
902
|
]))
|
|
892
903
|
]));
|
|
893
904
|
}
|
|
894
|
-
}), pn = /* @__PURE__ */ F(mn, [["__scopeId", "data-v-8cd299be"]]), fn = { class: "checkbox__text" }, vn = ["innerHTML"], yn = { class: "checkbox__hint" }, hn = ["innerHTML"],
|
|
905
|
+
}), pn = /* @__PURE__ */ F(mn, [["__scopeId", "data-v-8cd299be"]]), fn = { class: "checkbox__text" }, vn = ["innerHTML"], yn = { class: "checkbox__hint" }, hn = ["innerHTML"], bn = {
|
|
895
906
|
inheritAttrs: !1
|
|
896
|
-
},
|
|
897
|
-
...
|
|
907
|
+
}, _n = /* @__PURE__ */ M({
|
|
908
|
+
...bn,
|
|
898
909
|
__name: "aeria-checkbox",
|
|
899
910
|
props: {
|
|
900
911
|
modelValue: {},
|
|
@@ -949,16 +960,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
949
960
|
}), f = (m) => {
|
|
950
961
|
l && m.preventDefault();
|
|
951
962
|
};
|
|
952
|
-
return (m,
|
|
953
|
-
const
|
|
963
|
+
return (m, b) => {
|
|
964
|
+
const _ = ee("clickable");
|
|
954
965
|
return K((n(), s("label", {
|
|
955
|
-
class:
|
|
966
|
+
class: U([
|
|
956
967
|
"checkbox",
|
|
957
968
|
{ "checkbox--readOnly": t(l) }
|
|
958
969
|
])
|
|
959
970
|
}, [
|
|
960
971
|
K(O("input", x({
|
|
961
|
-
"onUpdate:modelValue":
|
|
972
|
+
"onUpdate:modelValue": b[0] || (b[0] = (g) => d.value = g)
|
|
962
973
|
}, {
|
|
963
974
|
type: t(c),
|
|
964
975
|
readOnly: t(l),
|
|
@@ -984,11 +995,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
984
995
|
])
|
|
985
996
|
])
|
|
986
997
|
], 2)), [
|
|
987
|
-
[
|
|
998
|
+
[_]
|
|
988
999
|
]);
|
|
989
1000
|
};
|
|
990
1001
|
}
|
|
991
|
-
}), $n = /* @__PURE__ */ F(
|
|
1002
|
+
}), $n = /* @__PURE__ */ F(_n, [["__scopeId", "data-v-5ef340be"]]), gn = {
|
|
992
1003
|
inheritAttrs: !1
|
|
993
1004
|
}, kn = /* @__PURE__ */ M({
|
|
994
1005
|
...gn,
|
|
@@ -1058,16 +1069,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1058
1069
|
const f = ee("clickable");
|
|
1059
1070
|
return n(), s("div", Cn, [
|
|
1060
1071
|
K((n(), s("a", {
|
|
1061
|
-
class:
|
|
1072
|
+
class: U([
|
|
1062
1073
|
"switch",
|
|
1063
1074
|
{ "switch--active": e.modelValue },
|
|
1064
1075
|
{ "switch--readOnly": t(c) }
|
|
1065
1076
|
]),
|
|
1066
|
-
onClick:
|
|
1077
|
+
onClick: Ve(r, ["stop"])
|
|
1067
1078
|
}, [
|
|
1068
1079
|
d[0] || (d[0] = O("div", { class: "switch__slider" }, null, -1)),
|
|
1069
1080
|
O("div", {
|
|
1070
|
-
class:
|
|
1081
|
+
class: U([
|
|
1071
1082
|
"switch__dummy",
|
|
1072
1083
|
{ "switch__dummy--flex": !e.modelValue }
|
|
1073
1084
|
])
|
|
@@ -1130,7 +1141,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1130
1141
|
a.value ? (n(), s("img", {
|
|
1131
1142
|
key: 1,
|
|
1132
1143
|
src: a.value,
|
|
1133
|
-
class:
|
|
1144
|
+
class: U([
|
|
1134
1145
|
"picture__image",
|
|
1135
1146
|
{ "picture__image--bordered": e.bordered },
|
|
1136
1147
|
{ "picture__image--expandable": e.expandable }
|
|
@@ -1145,7 +1156,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1145
1156
|
})
|
|
1146
1157
|
}, null, 14, Rn)) : l.$slots.fallback ? C(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? C(l.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
|
|
1147
1158
|
key: 4,
|
|
1148
|
-
class:
|
|
1159
|
+
class: U(["picture__background", [
|
|
1149
1160
|
{ "picture__image--bordered": e.bordered }
|
|
1150
1161
|
]]),
|
|
1151
1162
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1209,7 +1220,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1209
1220
|
class: "item__picture"
|
|
1210
1221
|
}, null, 8, ["alt", "url"])) : h("", !0),
|
|
1211
1222
|
O("div", Mn, [
|
|
1212
|
-
"_id" in t(a) ? (n(), $(
|
|
1223
|
+
"_id" in t(a) ? (n(), $(H, {
|
|
1213
1224
|
key: 0,
|
|
1214
1225
|
icon: "arrow-square-out",
|
|
1215
1226
|
href: t(a).link,
|
|
@@ -1217,7 +1228,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1217
1228
|
class: "item__name item__name--link"
|
|
1218
1229
|
}, {
|
|
1219
1230
|
default: y(() => [
|
|
1220
|
-
|
|
1231
|
+
D(V(t(a).name), 1)
|
|
1221
1232
|
]),
|
|
1222
1233
|
_: 1
|
|
1223
1234
|
}, 8, ["href"])) : (n(), s("div", zn, V(t(a).name), 1)),
|
|
@@ -1250,11 +1261,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1250
1261
|
const a = e, o = a.property && se(a.property), l = u, r = we() ? xe() : null, p = a.multiple || a.property && "type" in a.property && a.property.type === "array", d = G(() => {
|
|
1251
1262
|
if (a.modelValue)
|
|
1252
1263
|
return Array.isArray(a.modelValue) ? a.modelValue : [a.modelValue];
|
|
1253
|
-
}), f = (
|
|
1264
|
+
}), f = (_) => new Promise((g) => {
|
|
1254
1265
|
const i = new FileReader();
|
|
1255
|
-
i.onload = () => g(i.result), i.readAsArrayBuffer(
|
|
1256
|
-
}), m = async (
|
|
1257
|
-
const g =
|
|
1266
|
+
i.onload = () => g(i.result), i.readAsArrayBuffer(_);
|
|
1267
|
+
}), m = async (_) => {
|
|
1268
|
+
const g = _.target.files;
|
|
1258
1269
|
if (!g)
|
|
1259
1270
|
return;
|
|
1260
1271
|
const i = [];
|
|
@@ -1282,13 +1293,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1282
1293
|
});
|
|
1283
1294
|
}
|
|
1284
1295
|
p ? l("update:modelValue", Array.isArray(a.modelValue) ? i.concat(a.modelValue) : i) : l("update:modelValue", i[0]), l("update:content", i), l("change", i);
|
|
1285
|
-
},
|
|
1296
|
+
}, b = async (_) => {
|
|
1286
1297
|
if (!a.modelValue)
|
|
1287
1298
|
throw new Error();
|
|
1288
|
-
const g = Array.isArray(a.modelValue) ? a.modelValue.filter((i, T) => T !==
|
|
1299
|
+
const g = Array.isArray(a.modelValue) ? a.modelValue.filter((i, T) => T !== _) : [];
|
|
1289
1300
|
p ? l("update:modelValue", g) : l("update:modelValue", null), l("update:content", g), l("change", g);
|
|
1290
1301
|
};
|
|
1291
|
-
return (
|
|
1302
|
+
return (_, g) => {
|
|
1292
1303
|
const i = ee("clickable");
|
|
1293
1304
|
return n(), s("div", Hn, [
|
|
1294
1305
|
e.readOnly ? h("", !0) : (n(), s("input", {
|
|
@@ -1305,11 +1316,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1305
1316
|
"model-value": T
|
|
1306
1317
|
}, {
|
|
1307
1318
|
default: y(() => [
|
|
1308
|
-
e.readOnly ? h("", !0) : K((n(), $(
|
|
1319
|
+
e.readOnly ? h("", !0) : K((n(), $(H, {
|
|
1309
1320
|
key: 0,
|
|
1310
1321
|
reactive: "",
|
|
1311
1322
|
icon: "trash",
|
|
1312
|
-
onClick: (E) =>
|
|
1323
|
+
onClick: (E) => b(k)
|
|
1313
1324
|
}, null, 8, ["onClick"])), [
|
|
1314
1325
|
[i]
|
|
1315
1326
|
])
|
|
@@ -1360,21 +1371,21 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1360
1371
|
},
|
|
1361
1372
|
emits: ["update:modelValue", "change"],
|
|
1362
1373
|
setup(e, { emit: u }) {
|
|
1363
|
-
const a =
|
|
1374
|
+
const a = Oe(), o = e, l = u, c = o.property, r = se(c);
|
|
1364
1375
|
xe();
|
|
1365
|
-
const p = G(() => o.modelValue ? Array.isArray(o.modelValue) ? Array.isArray(o.modelValue) && Object.values(o.modelValue).some(({ _id:
|
|
1376
|
+
const p = G(() => o.modelValue ? Array.isArray(o.modelValue) ? Array.isArray(o.modelValue) && Object.values(o.modelValue).some(({ _id: b }) => o.item._id === b) : o.modelValue._id === o.item._id : !1), d = () => {
|
|
1366
1377
|
if (p.value)
|
|
1367
1378
|
return;
|
|
1368
|
-
const
|
|
1369
|
-
let
|
|
1370
|
-
"items" in c ? o.modelValue ?
|
|
1371
|
-
}, f = async (
|
|
1372
|
-
r.purge &&
|
|
1373
|
-
const
|
|
1379
|
+
const b = (g) => g.filter((i) => !!i._id);
|
|
1380
|
+
let _;
|
|
1381
|
+
"items" in c ? o.modelValue ? _ = b(Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue]) : _ = [] : _ = o.modelValue, Array.isArray(_) ? l("update:modelValue", _.concat([o.item])) : l("update:modelValue", o.item), l("change", o.item);
|
|
1382
|
+
}, f = async (b) => {
|
|
1383
|
+
r.purge && b?.purge;
|
|
1384
|
+
const _ = () => {
|
|
1374
1385
|
const g = Array.isArray(o.modelValue) ? Array.from(o.modelValue) : [], i = g.findIndex((T) => T._id === o.item._id);
|
|
1375
1386
|
return g.splice(i, 1), g;
|
|
1376
1387
|
};
|
|
1377
|
-
l("update:modelValue", "items" in c ?
|
|
1388
|
+
l("update:modelValue", "items" in c ? _() : null);
|
|
1378
1389
|
}, m = () => {
|
|
1379
1390
|
if (o.readOnly) {
|
|
1380
1391
|
a.push({
|
|
@@ -1384,23 +1395,23 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1384
1395
|
}
|
|
1385
1396
|
return p.value ? f() : d();
|
|
1386
1397
|
};
|
|
1387
|
-
return (
|
|
1398
|
+
return (b, _) => {
|
|
1388
1399
|
const g = ee("clickable");
|
|
1389
1400
|
return K((n(), s("div", {
|
|
1390
|
-
class:
|
|
1401
|
+
class: U({
|
|
1391
1402
|
item: !0,
|
|
1392
1403
|
"item--selected": p.value
|
|
1393
1404
|
}),
|
|
1394
1405
|
onClick: m
|
|
1395
1406
|
}, [
|
|
1396
|
-
C(
|
|
1407
|
+
C(b.$slots, "default", {}, void 0, !0),
|
|
1397
1408
|
O("div", Jn, [
|
|
1398
1409
|
(n(!0), s(Y, null, z(e.indexes, (i, T) => (n(), s("div", {
|
|
1399
1410
|
key: `index-${e.item._id}-${T}`,
|
|
1400
1411
|
class: "item__value"
|
|
1401
1412
|
}, V(e.item[i]), 1))), 128))
|
|
1402
1413
|
]),
|
|
1403
|
-
e.readOnly ? (n(), $(
|
|
1414
|
+
e.readOnly ? (n(), $(H, {
|
|
1404
1415
|
key: 0,
|
|
1405
1416
|
icon: "arrow-square-out",
|
|
1406
1417
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
@@ -1430,10 +1441,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1430
1441
|
setup(e, { emit: u }) {
|
|
1431
1442
|
const a = e, o = ne("meta"), l = se(a.property), c = a.panel !== void 0 ? G(() => a.panel) : X(!1), r = u, p = ne(se(a.property).$ref), d = we(), f = d ? xe() : null, m = l.indexes;
|
|
1432
1443
|
fe(Te, se(a.property).$ref), fe("innerInputLabel", !0), fe("omitInputLabels", !0);
|
|
1433
|
-
const
|
|
1444
|
+
const b = X(a.modelValue), _ = X({
|
|
1434
1445
|
data: [],
|
|
1435
1446
|
pagination: {}
|
|
1436
|
-
}), g = G(() =>
|
|
1447
|
+
}), g = G(() => _.value.data), i = G(() => _.value.pagination), T = X(0), k = X(!1), E = X(""), I = () => {
|
|
1437
1448
|
const Z = {};
|
|
1438
1449
|
if (d) {
|
|
1439
1450
|
const P = t(d);
|
|
@@ -1467,7 +1478,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1467
1478
|
});
|
|
1468
1479
|
return;
|
|
1469
1480
|
}
|
|
1470
|
-
|
|
1481
|
+
_.value.pagination = P.pagination, T.value === 0 && _.value.data.splice(0), _.value.data.push(...P.data);
|
|
1471
1482
|
}, [ue] = Ze({
|
|
1472
1483
|
delay: 800
|
|
1473
1484
|
})(() => {
|
|
@@ -1477,7 +1488,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1477
1488
|
}, $e = () => {
|
|
1478
1489
|
"effect" in c ? r("update:panel", !0) : c.value = !0, N();
|
|
1479
1490
|
}, me = () => {
|
|
1480
|
-
T.value = 0,
|
|
1491
|
+
T.value = 0, _.value.data.splice(0), "effect" in c ? r("update:panel", !1) : c.value = !1;
|
|
1481
1492
|
};
|
|
1482
1493
|
ae(() => E.value.length, (Z, P) => {
|
|
1483
1494
|
Z && !P && N();
|
|
@@ -1485,9 +1496,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1485
1496
|
a.selectOnly && N();
|
|
1486
1497
|
});
|
|
1487
1498
|
const A = (Z) => {
|
|
1488
|
-
|
|
1499
|
+
b.value = Z, a.selectOnly || r("update:modelValue", Z);
|
|
1489
1500
|
}, j = () => {
|
|
1490
|
-
me(), r("update:modelValue",
|
|
1501
|
+
me(), r("update:modelValue", b.value);
|
|
1491
1502
|
};
|
|
1492
1503
|
return (Z, P) => {
|
|
1493
1504
|
const v = ee("clickable");
|
|
@@ -1496,7 +1507,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1496
1507
|
key: 0,
|
|
1497
1508
|
to: "main"
|
|
1498
1509
|
}, [
|
|
1499
|
-
L(
|
|
1510
|
+
L(Ae, {
|
|
1500
1511
|
float: "",
|
|
1501
1512
|
"close-hint": "",
|
|
1502
1513
|
title: `${t(R)("action.select", { capitalize: !0 })} ${t(R)(e.propertyName)}`,
|
|
@@ -1512,14 +1523,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1512
1523
|
onClick: j
|
|
1513
1524
|
}, {
|
|
1514
1525
|
default: y(() => [
|
|
1515
|
-
|
|
1526
|
+
D(V(t(R)("action.save", { capitalize: !0 })), 1)
|
|
1516
1527
|
]),
|
|
1517
1528
|
_: 1
|
|
1518
1529
|
})
|
|
1519
1530
|
]),
|
|
1520
1531
|
default: y(() => [
|
|
1521
1532
|
O("div", Pn, [
|
|
1522
|
-
L(
|
|
1533
|
+
L(_e, x({
|
|
1523
1534
|
modelValue: E.value,
|
|
1524
1535
|
"onUpdate:modelValue": P[0] || (P[0] = (S) => E.value = S)
|
|
1525
1536
|
}, {
|
|
@@ -1541,8 +1552,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1541
1552
|
property: e.property
|
|
1542
1553
|
}, {
|
|
1543
1554
|
key: `matching-${S._id}`,
|
|
1544
|
-
modelValue:
|
|
1545
|
-
"onUpdate:modelValue": P[1] || (P[1] = (W) =>
|
|
1555
|
+
modelValue: b.value,
|
|
1556
|
+
"onUpdate:modelValue": P[1] || (P[1] = (W) => b.value = W)
|
|
1546
1557
|
}), null, 16, ["modelValue"]))), 128))
|
|
1547
1558
|
]),
|
|
1548
1559
|
_: 1
|
|
@@ -1582,12 +1593,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1582
1593
|
e.readOnly ? void 0 : {
|
|
1583
1594
|
name: "footer",
|
|
1584
1595
|
fn: y(() => [
|
|
1585
|
-
K((n(), $(
|
|
1596
|
+
K((n(), $(H, {
|
|
1586
1597
|
icon: "plus",
|
|
1587
1598
|
onClick: $e
|
|
1588
1599
|
}, {
|
|
1589
1600
|
default: y(() => [
|
|
1590
|
-
|
|
1601
|
+
D(V(t(R)("action.select", { capitalize: !0 })), 1)
|
|
1591
1602
|
]),
|
|
1592
1603
|
_: 1
|
|
1593
1604
|
})), [
|
|
@@ -1608,7 +1619,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1608
1619
|
switch: Bn,
|
|
1609
1620
|
file: Wn,
|
|
1610
1621
|
search: ia,
|
|
1611
|
-
input:
|
|
1622
|
+
input: _e,
|
|
1612
1623
|
form: Me
|
|
1613
1624
|
}, l = (() => {
|
|
1614
1625
|
if ("type" in a) {
|
|
@@ -1634,7 +1645,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1634
1645
|
const l = ne(o.$ref, a), c = ke(l.$freshItem);
|
|
1635
1646
|
return e.push(c);
|
|
1636
1647
|
}
|
|
1637
|
-
return "properties" in o ? e.push(
|
|
1648
|
+
return "properties" in o ? e.push(bt(o)) : "type" in o && o.type === "boolean" ? e.push({}) : e.push(null);
|
|
1638
1649
|
}, ra = (e, u) => {
|
|
1639
1650
|
e.splice(u, 1);
|
|
1640
1651
|
}, ua = {
|
|
@@ -1643,7 +1654,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1643
1654
|
}, ca = { class: "form__fieldset" }, da = { key: 0 }, ma = ["innerHTML"], pa = ["onInput"], fa = { key: 4 }, va = { value: "true" }, ya = { value: "false" }, ha = {
|
|
1644
1655
|
key: 5,
|
|
1645
1656
|
style: { display: "grid", "row-gap": ".4rem" }
|
|
1646
|
-
},
|
|
1657
|
+
}, ba = { key: 0 }, _a = {
|
|
1647
1658
|
key: 1,
|
|
1648
1659
|
class: "form__array"
|
|
1649
1660
|
}, $a = {
|
|
@@ -1703,10 +1714,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1703
1714
|
v.created_at || (S.created_at = W), v.created_at || (S.updated_at = W);
|
|
1704
1715
|
}
|
|
1705
1716
|
return Object.assign(S, v), S;
|
|
1706
|
-
}),
|
|
1717
|
+
}), b = G(() => o.layout || d?.description.formLayout), _ = (v) => {
|
|
1707
1718
|
const S = re(v, o[v]);
|
|
1708
1719
|
return o[v] && fe(v, o[v]), S;
|
|
1709
|
-
}, g = G(() => o.validationErrors !== null ? o.validationErrors : d?.validationErrors), i =
|
|
1720
|
+
}, g = G(() => o.validationErrors !== null ? o.validationErrors : d?.validationErrors), i = _("formComponents") || {}, T = _("propertyComponents") || {}, k = _("omitFormHeader"), E = _("omitInputLabels"), I = _("innerInputLabel");
|
|
1710
1721
|
r && fe(Te, r), fe("searchOnly", o.searchOnly);
|
|
1711
1722
|
const w = (v) => m.value ? Object.entries(m.value).filter(([S, W]) => !W.noForm && v([
|
|
1712
1723
|
S,
|
|
@@ -1717,7 +1728,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1717
1728
|
const W = o.property && "properties" in o.property ? o.property.form : d?.description?.form;
|
|
1718
1729
|
return !W || W.includes(v);
|
|
1719
1730
|
}, N = w(([v, S]) => J(v, S) && (!S.readOnly || o.readOnly)), ue = Se(), ce = {}, $e = (v, S) => {
|
|
1720
|
-
const W = [], te =
|
|
1731
|
+
const W = [], te = b.value?.fields?.[v];
|
|
1721
1732
|
if (!S)
|
|
1722
1733
|
return;
|
|
1723
1734
|
if (te?.if && !o.searchOnly) {
|
|
@@ -1751,7 +1762,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1751
1762
|
return o.required;
|
|
1752
1763
|
}
|
|
1753
1764
|
return o.property && "required" in o.property ? o.property.required : o.collection ? d.description.required : void 0;
|
|
1754
|
-
}), j = G(() => o.form ?
|
|
1765
|
+
}), j = G(() => o.form ? _t(
|
|
1755
1766
|
o.modelValue,
|
|
1756
1767
|
o.form,
|
|
1757
1768
|
A.value,
|
|
@@ -1776,14 +1787,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1776
1787
|
(n(!0), s(Y, null, z(t(N), ([B, q]) => (n(), s("div", {
|
|
1777
1788
|
key: `field-${B}`,
|
|
1778
1789
|
style: ve($e(B, q)),
|
|
1779
|
-
class:
|
|
1790
|
+
class: U({
|
|
1780
1791
|
form__field: !0,
|
|
1781
1792
|
"form__field--form": "properties" in q
|
|
1782
1793
|
})
|
|
1783
1794
|
}, [
|
|
1784
1795
|
(!("type" in q) || q.type !== "boolean" || e.searchOnly) && !q.noLabel && !t(E) && !t(I) ? (n(), s("label", da, [
|
|
1785
1796
|
O("div", {
|
|
1786
|
-
class:
|
|
1797
|
+
class: U({
|
|
1787
1798
|
"form__field-label": !0,
|
|
1788
1799
|
"form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
|
|
1789
1800
|
"form__field-required-hint": e.highlightRequired && !t(p) && !e.searchOnly && (!A.value || t(je)(B, A.value, e.modelValue))
|
|
@@ -1821,14 +1832,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1821
1832
|
onInput: (Q) => l("input", B),
|
|
1822
1833
|
onChange: S[1] || (S[1] = (Q) => l("change", Q))
|
|
1823
1834
|
}, [
|
|
1824
|
-
L(
|
|
1835
|
+
L(_e, x({
|
|
1825
1836
|
modelValue: e.modelValue[B].$gte,
|
|
1826
1837
|
"onUpdate:modelValue": (Q) => e.modelValue[B].$gte = Q
|
|
1827
1838
|
}, { ref_for: !0 }, {
|
|
1828
1839
|
property: q,
|
|
1829
1840
|
propertyName: B
|
|
1830
1841
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1831
|
-
L(
|
|
1842
|
+
L(_e, x({
|
|
1832
1843
|
modelValue: e.modelValue[B].$lte,
|
|
1833
1844
|
"onUpdate:modelValue": (Q) => e.modelValue[B].$lte = Q
|
|
1834
1845
|
}, { ref_for: !0 }, {
|
|
@@ -1854,35 +1865,35 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1854
1865
|
_: 1
|
|
1855
1866
|
}, 16, ["model-value", "onUpdate:modelValue"])
|
|
1856
1867
|
])) : e.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline) ? (n(), s("div", ha, [
|
|
1857
|
-
t(p) ? h("", !0) : (n(), s("div",
|
|
1868
|
+
t(p) ? h("", !0) : (n(), s("div", ba, [
|
|
1858
1869
|
L(le, {
|
|
1859
1870
|
small: "",
|
|
1860
1871
|
variant: "alt",
|
|
1861
1872
|
icon: "plus",
|
|
1862
1873
|
disabled: !("inline" in q.items && q.items.inline) && (e.modelValue[B]?.length >= q.maxItems || me(e.modelValue[B]?.[e.modelValue[B]?.length - 1])),
|
|
1863
|
-
onClick:
|
|
1874
|
+
onClick: Ve((Q) => {
|
|
1864
1875
|
e.modelValue[B] || (e.modelValue[B] = []), t(sa)(e.modelValue[B], q, t(a));
|
|
1865
1876
|
}, ["prevent"])
|
|
1866
1877
|
}, {
|
|
1867
1878
|
default: y(() => [
|
|
1868
|
-
|
|
1879
|
+
D(V(t(R)("action.add", { capitalize: !0 })), 1)
|
|
1869
1880
|
]),
|
|
1870
1881
|
_: 1
|
|
1871
1882
|
}, 8, ["disabled", "onClick"])
|
|
1872
1883
|
])),
|
|
1873
|
-
e.modelValue[B]?.length > 0 ? (n(), s("div",
|
|
1884
|
+
e.modelValue[B]?.length > 0 ? (n(), s("div", _a, [
|
|
1874
1885
|
(n(!0), s(Y, null, z(e.modelValue[B], (Q, ge) => (n(), s("div", {
|
|
1875
1886
|
key: `rep-${B}-${t($t)(Q, ge)}`,
|
|
1876
1887
|
class: "form__array-item"
|
|
1877
1888
|
}, [
|
|
1878
|
-
t(p) ? h("", !0) : K((n(), $(
|
|
1889
|
+
t(p) ? h("", !0) : K((n(), $(H, {
|
|
1879
1890
|
key: 0,
|
|
1880
1891
|
icon: "trash",
|
|
1881
1892
|
class: "form__array-remove",
|
|
1882
|
-
onClick:
|
|
1893
|
+
onClick: Ve((ye) => t(ra)(e.modelValue[B], ge), ["prevent"])
|
|
1883
1894
|
}, {
|
|
1884
1895
|
default: y(() => [
|
|
1885
|
-
|
|
1896
|
+
D(V(t(R)("action.remove", { capitalize: !0 })), 1)
|
|
1886
1897
|
]),
|
|
1887
1898
|
_: 1
|
|
1888
1899
|
}, 8, ["onClick"])), [
|
|
@@ -1934,7 +1945,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1934
1945
|
]),
|
|
1935
1946
|
v.$slots.after ? C(v.$slots, "after", { key: 1 }, void 0, !0) : h("", !0),
|
|
1936
1947
|
v.$slots.footer ? (n(), s("div", Va, [
|
|
1937
|
-
C(v.$slots, "footer", oe(
|
|
1948
|
+
C(v.$slots, "footer", oe(be({
|
|
1938
1949
|
isInsertReady: j.value
|
|
1939
1950
|
})), void 0, !0)
|
|
1940
1951
|
])) : h("", !0)
|
|
@@ -1945,7 +1956,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1945
1956
|
__name: "aeria-filter-panel",
|
|
1946
1957
|
emits: ["update:modelValue"],
|
|
1947
1958
|
setup(e, { emit: u }) {
|
|
1948
|
-
const a = u, o = xe(), l =
|
|
1959
|
+
const a = u, o = xe(), l = Oe(), c = t(re(Te)), r = () => {
|
|
1949
1960
|
if (o.pagination.offset = 0, o.$actions.filter(), a("update:modelValue", !1), "query" in l.currentRoute && l.currentRoute.query && typeof l.currentRoute.query == "object") {
|
|
1950
1961
|
const f = l.currentRoute.query;
|
|
1951
1962
|
for (const m of Object.keys(f))
|
|
@@ -1956,7 +1967,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1956
1967
|
query: mt(o)
|
|
1957
1968
|
}));
|
|
1958
1969
|
};
|
|
1959
|
-
return (p, d) => (n(), $(
|
|
1970
|
+
return (p, d) => (n(), $(Ae, {
|
|
1960
1971
|
"close-hint": "",
|
|
1961
1972
|
"fixed-right": "",
|
|
1962
1973
|
title: p.t("filter_by", { capitalize: !0 }),
|
|
@@ -1972,10 +1983,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1972
1983
|
})
|
|
1973
1984
|
}, {
|
|
1974
1985
|
default: y(() => [
|
|
1975
|
-
|
|
1986
|
+
D(V(p.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1976
1987
|
L(he, null, {
|
|
1977
1988
|
default: y(() => [
|
|
1978
|
-
|
|
1989
|
+
D(V(t(o).filtersCount), 1)
|
|
1979
1990
|
]),
|
|
1980
1991
|
_: 1
|
|
1981
1992
|
})
|
|
@@ -1989,7 +2000,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1989
2000
|
onClick: r
|
|
1990
2001
|
}, {
|
|
1991
2002
|
default: y(() => [
|
|
1992
|
-
|
|
2003
|
+
D(V(p.t("action.filter", { capitalize: !0 })), 1)
|
|
1993
2004
|
]),
|
|
1994
2005
|
_: 1
|
|
1995
2006
|
}, 8, ["disabled"])
|
|
@@ -2028,10 +2039,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2028
2039
|
a.modelValue && r.$actions.setItem(a.modelValue);
|
|
2029
2040
|
});
|
|
2030
2041
|
const p = G(() => a.form ? r.$actions.useProperties(a.form) : r.description.form ? r.$actions.useProperties(r.description.form) : r.properties), d = async () => {
|
|
2031
|
-
const { error:
|
|
2032
|
-
if (
|
|
2033
|
-
if ("code" in
|
|
2034
|
-
switch (
|
|
2042
|
+
const { error: b, result: _ } = await r.$actions.deepInsert();
|
|
2043
|
+
if (b) {
|
|
2044
|
+
if ("code" in b)
|
|
2045
|
+
switch (b.code) {
|
|
2035
2046
|
case "INVALID_PROPERTIES":
|
|
2036
2047
|
case "MISSING_PROPERTIES":
|
|
2037
2048
|
return;
|
|
@@ -2039,7 +2050,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2039
2050
|
let g = f("error", {
|
|
2040
2051
|
capitalize: !0
|
|
2041
2052
|
});
|
|
2042
|
-
|
|
2053
|
+
b.message && (g += `: ${f(b.message)}`), g += ` (${f(b.code)})`, l.$actions.spawnToast({
|
|
2043
2054
|
text: g,
|
|
2044
2055
|
icon: "warning"
|
|
2045
2056
|
});
|
|
@@ -2047,7 +2058,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2047
2058
|
}
|
|
2048
2059
|
return;
|
|
2049
2060
|
}
|
|
2050
|
-
o("update:visible", !1), o("update:modelValue",
|
|
2061
|
+
o("update:visible", !1), o("update:modelValue", _), o("insert", _), r.$actions.clearItem();
|
|
2051
2062
|
}, { t: f } = st(), m = () => {
|
|
2052
2063
|
l.$actions.ask({
|
|
2053
2064
|
action: () => {
|
|
@@ -2056,28 +2067,28 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2056
2067
|
body: f("prompt.close_panel")
|
|
2057
2068
|
});
|
|
2058
2069
|
};
|
|
2059
|
-
return ae(() => r.item._id, (
|
|
2060
|
-
|
|
2061
|
-
}), (
|
|
2070
|
+
return ae(() => r.item._id, (b) => {
|
|
2071
|
+
b === null && o("update:visible", !1);
|
|
2072
|
+
}), (b, _) => {
|
|
2062
2073
|
const g = ee("clickable");
|
|
2063
|
-
return n(), $(
|
|
2074
|
+
return n(), $(Ae, x({
|
|
2064
2075
|
modelValue: e.visible,
|
|
2065
2076
|
loading: t(r).loading.get,
|
|
2066
2077
|
float: e.float,
|
|
2067
2078
|
fixedRight: e.fixedRight
|
|
2068
2079
|
}, { onOverlayClick: m }), ie({
|
|
2069
2080
|
extra: y(() => [
|
|
2070
|
-
e.individualActions ? (n(), $(
|
|
2081
|
+
e.individualActions ? (n(), $(Ce, x({ key: 0 }, {
|
|
2071
2082
|
subject: t(r).item,
|
|
2072
2083
|
actions: e.individualActions.filter(({ action: i }) => i !== "spawnEdit"),
|
|
2073
2084
|
overlayLayer: 60
|
|
2074
2085
|
}, {
|
|
2075
|
-
onActionClick:
|
|
2086
|
+
onActionClick: _[2] || (_[2] = (i) => o("update:visible", !1))
|
|
2076
2087
|
}), {
|
|
2077
2088
|
default: y(({
|
|
2078
2089
|
visible: i
|
|
2079
2090
|
}) => [
|
|
2080
|
-
t(r).item._id ? K((n(), $(
|
|
2091
|
+
t(r).item._id ? K((n(), $(H, {
|
|
2081
2092
|
key: 0,
|
|
2082
2093
|
reactive: "",
|
|
2083
2094
|
active: i,
|
|
@@ -2092,7 +2103,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2092
2103
|
default: y(() => [
|
|
2093
2104
|
L(Me, x({
|
|
2094
2105
|
modelValue: t(r).item,
|
|
2095
|
-
"onUpdate:modelValue":
|
|
2106
|
+
"onUpdate:modelValue": _[0] || (_[0] = (i) => t(r).item = i)
|
|
2096
2107
|
}, {
|
|
2097
2108
|
collection: t(c),
|
|
2098
2109
|
readOnly: e.readOnly,
|
|
@@ -2102,22 +2113,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2102
2113
|
layout: t(r).description.formLayout || {}
|
|
2103
2114
|
}, {
|
|
2104
2115
|
focus: "",
|
|
2105
|
-
onAdd:
|
|
2116
|
+
onAdd: _[1] || (_[1] = (i) => i.preventDefault())
|
|
2106
2117
|
}), ie({ _: 2 }, [
|
|
2107
|
-
z(Object.keys(
|
|
2118
|
+
z(Object.keys(b.$slots).filter((i) => i.startsWith("field-")), (i) => ({
|
|
2108
2119
|
name: i,
|
|
2109
2120
|
fn: y((T) => [
|
|
2110
|
-
C(
|
|
2121
|
+
C(b.$slots, i, oe(be(T)))
|
|
2111
2122
|
])
|
|
2112
2123
|
}))
|
|
2113
2124
|
]), 1040, ["modelValue"])
|
|
2114
2125
|
]),
|
|
2115
2126
|
_: 2
|
|
2116
2127
|
}, [
|
|
2117
|
-
|
|
2128
|
+
b.$slots.header ? {
|
|
2118
2129
|
name: "header",
|
|
2119
2130
|
fn: y(() => [
|
|
2120
|
-
C(
|
|
2131
|
+
C(b.$slots, "header")
|
|
2121
2132
|
]),
|
|
2122
2133
|
key: "0"
|
|
2123
2134
|
} : void 0,
|
|
@@ -2130,7 +2141,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2130
2141
|
onClick: m
|
|
2131
2142
|
}, {
|
|
2132
2143
|
default: y(() => [
|
|
2133
|
-
|
|
2144
|
+
D(V(t(f)("action.cancel", { capitalize: !0 })), 1)
|
|
2134
2145
|
]),
|
|
2135
2146
|
_: 1
|
|
2136
2147
|
})) : h("", !0),
|
|
@@ -2141,7 +2152,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2141
2152
|
onClick: d
|
|
2142
2153
|
}, {
|
|
2143
2154
|
default: y(() => [
|
|
2144
|
-
|
|
2155
|
+
D(V(t(f)("action.insert", { capitalize: !0 })), 1)
|
|
2145
2156
|
]),
|
|
2146
2157
|
_: 1
|
|
2147
2158
|
}, 8, ["disabled", "loading"])
|
|
@@ -2162,7 +2173,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2162
2173
|
}, Ia = (e, u = {
|
|
2163
2174
|
persistInQuery: !0
|
|
2164
2175
|
}) => {
|
|
2165
|
-
const o =
|
|
2176
|
+
const o = Oe().currentRoute;
|
|
2166
2177
|
return ae(() => o.value.query.section, (l) => {
|
|
2167
2178
|
if (e) {
|
|
2168
2179
|
if (e.description.filtersPresets) {
|
|
@@ -2224,7 +2235,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2224
2235
|
const k = i[T.action];
|
|
2225
2236
|
return k && f(k, g);
|
|
2226
2237
|
});
|
|
2227
|
-
},
|
|
2238
|
+
}, b = (g) => {
|
|
2228
2239
|
if (!a.actions)
|
|
2229
2240
|
return [];
|
|
2230
2241
|
const i = a.layout?.actions;
|
|
@@ -2240,7 +2251,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2240
2251
|
k.if
|
|
2241
2252
|
).satisfied : !f(k, g) : !0;
|
|
2242
2253
|
});
|
|
2243
|
-
},
|
|
2254
|
+
}, _ = (g, i) => {
|
|
2244
2255
|
const T = [], k = a.layout?.actions?.[i.action];
|
|
2245
2256
|
return k?.if && (qe(
|
|
2246
2257
|
g,
|
|
@@ -2299,22 +2310,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2299
2310
|
])) : (n(), s("div", Ua, [
|
|
2300
2311
|
O("div", Ha, [
|
|
2301
2312
|
"type" in w && w.type === "boolean" ? (n(), s("div", Da, [
|
|
2302
|
-
k[I] ? (n(), $(
|
|
2313
|
+
k[I] ? (n(), $(H, {
|
|
2303
2314
|
key: 0,
|
|
2304
2315
|
icon: "check",
|
|
2305
2316
|
"icon-classes": "aeria-blueish"
|
|
2306
2317
|
}, {
|
|
2307
2318
|
default: y(() => [
|
|
2308
|
-
|
|
2319
|
+
D(V(t(R)("yes")), 1)
|
|
2309
2320
|
]),
|
|
2310
2321
|
_: 1
|
|
2311
|
-
})) : (n(), $(
|
|
2322
|
+
})) : (n(), $(H, {
|
|
2312
2323
|
key: 1,
|
|
2313
2324
|
icon: "x",
|
|
2314
2325
|
"icon-classes": "aeria-redish"
|
|
2315
2326
|
}, {
|
|
2316
2327
|
default: y(() => [
|
|
2317
|
-
|
|
2328
|
+
D(V(t(R)("no")), 1)
|
|
2318
2329
|
]),
|
|
2319
2330
|
_: 1
|
|
2320
2331
|
}))
|
|
@@ -2370,25 +2381,25 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2370
2381
|
small: "",
|
|
2371
2382
|
variant: "alt",
|
|
2372
2383
|
icon: I.icon,
|
|
2373
|
-
style: ve(
|
|
2384
|
+
style: ve(_(k, I)),
|
|
2374
2385
|
onClick: (w) => I.click(k)
|
|
2375
2386
|
}, {
|
|
2376
2387
|
default: y(() => [
|
|
2377
|
-
|
|
2388
|
+
D(V(t(R)(I.label)), 1)
|
|
2378
2389
|
]),
|
|
2379
2390
|
_: 2
|
|
2380
2391
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2381
|
-
|
|
2392
|
+
b(k).length > 0 ? (n(), $(Ce, x({
|
|
2382
2393
|
key: 0,
|
|
2383
2394
|
ref_for: !0
|
|
2384
2395
|
}, {
|
|
2385
2396
|
subject: k,
|
|
2386
|
-
actions:
|
|
2397
|
+
actions: b(k)
|
|
2387
2398
|
}), {
|
|
2388
2399
|
default: y(({
|
|
2389
2400
|
visible: I
|
|
2390
2401
|
}) => [
|
|
2391
|
-
K(L(
|
|
2402
|
+
K(L(H, {
|
|
2392
2403
|
reactive: "",
|
|
2393
2404
|
active: I,
|
|
2394
2405
|
icon: "dots-three"
|
|
@@ -2402,7 +2413,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2402
2413
|
])) : e.actions?.length ? (n(), s("td", to, [
|
|
2403
2414
|
O("div", {
|
|
2404
2415
|
class: "table__mobile-actions-grid",
|
|
2405
|
-
style: ve(`grid-template-columns: repeat(${m(k).length + (
|
|
2416
|
+
style: ve(`grid-template-columns: repeat(${m(k).length + (b(k).length ? 1 : 0)}, 1fr);`)
|
|
2406
2417
|
}, [
|
|
2407
2418
|
(n(!0), s(Y, null, z(m(k), (I) => (n(), $(de, {
|
|
2408
2419
|
key: `action-${I.action}`,
|
|
@@ -2410,26 +2421,26 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2410
2421
|
onClick: (w) => I.click(k)
|
|
2411
2422
|
}, {
|
|
2412
2423
|
default: y(() => [
|
|
2413
|
-
L(
|
|
2424
|
+
L(H, {
|
|
2414
2425
|
icon: I.icon || "gear"
|
|
2415
2426
|
}, {
|
|
2416
2427
|
default: y(() => [
|
|
2417
|
-
|
|
2428
|
+
D(V(t(R)(I.label)), 1)
|
|
2418
2429
|
]),
|
|
2419
2430
|
_: 2
|
|
2420
2431
|
}, 1032, ["icon"])
|
|
2421
2432
|
]),
|
|
2422
2433
|
_: 2
|
|
2423
2434
|
}, 1032, ["onClick"]))), 128)),
|
|
2424
|
-
|
|
2435
|
+
b(k).length > 0 ? (n(), $(Ce, x({
|
|
2425
2436
|
key: 0,
|
|
2426
2437
|
ref_for: !0
|
|
2427
2438
|
}, {
|
|
2428
2439
|
subject: k,
|
|
2429
|
-
actions:
|
|
2440
|
+
actions: b(k)
|
|
2430
2441
|
}), {
|
|
2431
2442
|
default: y(() => [
|
|
2432
|
-
L(
|
|
2443
|
+
L(H, {
|
|
2433
2444
|
icon: "dots-three",
|
|
2434
2445
|
class: "table__mobile-actions-button"
|
|
2435
2446
|
})
|
|
@@ -2463,7 +2474,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2463
2474
|
componentProps: {}
|
|
2464
2475
|
},
|
|
2465
2476
|
setup(e) {
|
|
2466
|
-
const u = e, a =
|
|
2477
|
+
const u = e, a = Ie(), o = we(), l = G(() => {
|
|
2467
2478
|
const c = {
|
|
2468
2479
|
collection: o,
|
|
2469
2480
|
checkbox: a.hasSelectionActions,
|
|
@@ -2482,7 +2493,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2482
2493
|
z(Object.keys(c.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
|
|
2483
2494
|
name: p,
|
|
2484
2495
|
fn: y((d) => [
|
|
2485
|
-
C(c.$slots, p, oe(
|
|
2496
|
+
C(c.$slots, p, oe(be(d)))
|
|
2486
2497
|
])
|
|
2487
2498
|
}))
|
|
2488
2499
|
]), 1040)) : h("", !0)
|
|
@@ -2495,7 +2506,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2495
2506
|
},
|
|
2496
2507
|
setup(e) {
|
|
2497
2508
|
return (u, a) => (n(), s("div", {
|
|
2498
|
-
class:
|
|
2509
|
+
class: U([
|
|
2499
2510
|
"grid",
|
|
2500
2511
|
{ "grid--list": e.list }
|
|
2501
2512
|
])
|
|
@@ -2518,7 +2529,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2518
2529
|
componentName: {}
|
|
2519
2530
|
},
|
|
2520
2531
|
setup(e) {
|
|
2521
|
-
const a = e.layoutOptions, o =
|
|
2532
|
+
const a = e.layoutOptions, o = Ie(), l = (c) => Array.isArray(c) ? c[0] : c;
|
|
2522
2533
|
return (c, r) => {
|
|
2523
2534
|
const p = ee("clickable");
|
|
2524
2535
|
return n(), $(co, {
|
|
@@ -2539,7 +2550,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2539
2550
|
])) : t(a).information ? (n(), s("div", fo, V(d[t(a).information]), 1)) : h("", !0)
|
|
2540
2551
|
]),
|
|
2541
2552
|
actions: y(() => [
|
|
2542
|
-
e.individualActions?.length ? (n(), $(
|
|
2553
|
+
e.individualActions?.length ? (n(), $(Ce, x({
|
|
2543
2554
|
key: 0,
|
|
2544
2555
|
ref_for: !0
|
|
2545
2556
|
}, {
|
|
@@ -2549,7 +2560,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2549
2560
|
default: y(({
|
|
2550
2561
|
visible: f
|
|
2551
2562
|
}) => [
|
|
2552
|
-
K(L(
|
|
2563
|
+
K(L(H, {
|
|
2553
2564
|
reactive: "",
|
|
2554
2565
|
active: f,
|
|
2555
2566
|
icon: "dots-three-vertical"
|
|
@@ -2578,7 +2589,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2578
2589
|
large: ""
|
|
2579
2590
|
}, {
|
|
2580
2591
|
default: y(() => [
|
|
2581
|
-
|
|
2592
|
+
D(V(t(a).translateBadge ? t(R)(f) : f), 1)
|
|
2582
2593
|
]),
|
|
2583
2594
|
_: 2
|
|
2584
2595
|
}, 1024))), 128))
|
|
@@ -2589,7 +2600,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2589
2600
|
fn: y(() => [
|
|
2590
2601
|
L(he, null, {
|
|
2591
2602
|
default: y(() => [
|
|
2592
|
-
|
|
2603
|
+
D(V(t(a).translateBadge && typeof d[t(a).badge] == "string" ? t(R)(d[t(a).badge]) : d[t(a).badge]), 1)
|
|
2593
2604
|
]),
|
|
2594
2605
|
_: 2
|
|
2595
2606
|
}, 1024)
|
|
@@ -2609,10 +2620,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2609
2620
|
})[e], ho = {
|
|
2610
2621
|
key: 2,
|
|
2611
2622
|
class: "crud__controls"
|
|
2612
|
-
},
|
|
2623
|
+
}, bo = {
|
|
2613
2624
|
key: 0,
|
|
2614
2625
|
class: "crud__search"
|
|
2615
|
-
},
|
|
2626
|
+
}, _o = { class: "crud__actions" }, $o = { class: "crud__context-badge" }, go = { class: "crud__data" }, ko = { key: 0 }, Vo = {
|
|
2616
2627
|
key: 3,
|
|
2617
2628
|
class: "crud__pagination"
|
|
2618
2629
|
}, Ke = 30, Co = /* @__PURE__ */ M({
|
|
@@ -2631,10 +2642,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2631
2642
|
},
|
|
2632
2643
|
emits: ["uiEvent"],
|
|
2633
2644
|
setup(e, { emit: u }) {
|
|
2634
|
-
const a = X(!1), o = X(!1), l = X((...A) => null), c = X(), r = e, p = u, d =
|
|
2645
|
+
const a = X(!1), o = X(!1), l = X((...A) => null), c = X(), r = e, p = u, d = Oe(), f = ne("meta"), m = Se(), { reachedEnd: b, detach: _ } = He(null, {
|
|
2635
2646
|
antecipate: 600
|
|
2636
2647
|
}), g = !m.value.md || r.scrollPagination;
|
|
2637
|
-
g && ae(
|
|
2648
|
+
g && ae(b, (A) => {
|
|
2638
2649
|
A && i.pagination.recordsTotal > i.items.length && E.value < Ke && (E.value += 1, w());
|
|
2639
2650
|
});
|
|
2640
2651
|
const i = pt(r.collection);
|
|
@@ -2701,7 +2712,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2701
2712
|
A.currentLayout = A.currentLayout === "tabular" ? A.description.layout.name : "tabular";
|
|
2702
2713
|
};
|
|
2703
2714
|
nt(() => {
|
|
2704
|
-
i.$actions.clearFilters(), i.textQuery = "",
|
|
2715
|
+
i.$actions.clearFilters(), i.textQuery = "", _();
|
|
2705
2716
|
}), ae(() => c.value, async (A) => {
|
|
2706
2717
|
const j = ke(A);
|
|
2707
2718
|
let Z;
|
|
@@ -2801,13 +2812,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2801
2812
|
z(Object.keys(A.$slots).filter((v) => v.startsWith("field-")), (v) => ({
|
|
2802
2813
|
name: v,
|
|
2803
2814
|
fn: y((S) => [
|
|
2804
|
-
C(A.$slots, v, oe(
|
|
2815
|
+
C(A.$slots, v, oe(be(S)), void 0, !0)
|
|
2805
2816
|
])
|
|
2806
2817
|
}))
|
|
2807
2818
|
]), 1040, ["visible"])) : h("", !0),
|
|
2808
2819
|
!e.noActions && (t(i).description.search || Object.keys(t(i).availableFilters).length > 0 || t(i)?.actions.length > 0 || A.$slots.actions || !e.noLayoutToggle && t(i).description.layout && t(i).description.layout?.name !== "tabular") ? (n(), s("div", ho, [
|
|
2809
|
-
t(i).description.search ? (n(), s("div",
|
|
2810
|
-
L(
|
|
2820
|
+
t(i).description.search ? (n(), s("div", bo, [
|
|
2821
|
+
L(_e, x({
|
|
2811
2822
|
modelValue: t(i).textQuery,
|
|
2812
2823
|
"onUpdate:modelValue": j[3] || (j[3] = (v) => t(i).textQuery = v)
|
|
2813
2824
|
}, {
|
|
@@ -2818,8 +2829,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2818
2829
|
}
|
|
2819
2830
|
}), null, 16, ["modelValue"])
|
|
2820
2831
|
])) : h("", !0),
|
|
2821
|
-
O("div",
|
|
2822
|
-
me.value.length > 0 || !e.noLayoutToggle && t(i).description.layout && t(i).description.layout?.name !== "tabular" ? (n(), $(
|
|
2832
|
+
O("div", _o, [
|
|
2833
|
+
me.value.length > 0 || !e.noLayoutToggle && t(i).description.layout && t(i).description.layout?.name !== "tabular" ? (n(), $(Ce, { key: 0 }, ie({
|
|
2823
2834
|
default: y(() => [
|
|
2824
2835
|
L(le, {
|
|
2825
2836
|
variant: "alt",
|
|
@@ -2828,7 +2839,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2828
2839
|
default: y(() => [
|
|
2829
2840
|
t(i).filtersCount ? (n(), $(he, { key: 0 }, {
|
|
2830
2841
|
default: y(() => [
|
|
2831
|
-
|
|
2842
|
+
D(V(t(i).filtersCount), 1)
|
|
2832
2843
|
]),
|
|
2833
2844
|
_: 1
|
|
2834
2845
|
})) : h("", !0)
|
|
@@ -2841,12 +2852,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2841
2852
|
Object.keys(t(i).availableFilters).length > 0 ? {
|
|
2842
2853
|
name: "filter",
|
|
2843
2854
|
fn: y(() => [
|
|
2844
|
-
K((n(), $(
|
|
2855
|
+
K((n(), $(H, {
|
|
2845
2856
|
icon: "funnel",
|
|
2846
2857
|
onClick: j[4] || (j[4] = (v) => o.value = !0)
|
|
2847
2858
|
}, {
|
|
2848
2859
|
default: y(() => [
|
|
2849
|
-
|
|
2860
|
+
D(V(t(R)("filters", { capitalize: !0 })), 1)
|
|
2850
2861
|
]),
|
|
2851
2862
|
_: 1
|
|
2852
2863
|
})), [
|
|
@@ -2855,7 +2866,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2855
2866
|
O("div", $o, [
|
|
2856
2867
|
t(i).filtersCount ? (n(), $(he, { key: 0 }, {
|
|
2857
2868
|
default: y(() => [
|
|
2858
|
-
|
|
2869
|
+
D(V(t(i).filtersCount), 1)
|
|
2859
2870
|
]),
|
|
2860
2871
|
_: 1
|
|
2861
2872
|
})) : h("", !0)
|
|
@@ -2866,12 +2877,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2866
2877
|
!e.noLayoutToggle && t(i).description.layout && t(i).description.layout?.name !== "tabular" ? {
|
|
2867
2878
|
name: "layout-toggle",
|
|
2868
2879
|
fn: y(() => [
|
|
2869
|
-
K((n(), $(
|
|
2880
|
+
K((n(), $(H, {
|
|
2870
2881
|
icon: "table",
|
|
2871
2882
|
onClick: j[5] || (j[5] = (v) => ce(t(i)))
|
|
2872
2883
|
}, {
|
|
2873
2884
|
default: y(() => [
|
|
2874
|
-
|
|
2885
|
+
D(V(t(R)("change_layout", { capitalize: !0 })), 1)
|
|
2875
2886
|
]),
|
|
2876
2887
|
_: 1
|
|
2877
2888
|
})), [
|
|
@@ -2883,14 +2894,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2883
2894
|
z(me.value, (v, S) => ({
|
|
2884
2895
|
name: `action-${S}`,
|
|
2885
2896
|
fn: y(() => [
|
|
2886
|
-
v ? (n(), $(
|
|
2897
|
+
v ? (n(), $(H, {
|
|
2887
2898
|
key: 0,
|
|
2888
2899
|
icon: v.icon || "gear",
|
|
2889
2900
|
disabled: t(i).selected.length === 0 && "selection" in v && v.selection,
|
|
2890
2901
|
onClick: (W) => l.value(v)({ _id: t(i).selected.map((te) => typeof te == "string" || te._id) })
|
|
2891
2902
|
}, {
|
|
2892
2903
|
default: y(() => [
|
|
2893
|
-
|
|
2904
|
+
D(V(t(R)(v.label, { capitalize: !0 })), 1)
|
|
2894
2905
|
]),
|
|
2895
2906
|
_: 2
|
|
2896
2907
|
}, 1032, ["icon", "disabled", "onClick"])) : h("", !0)
|
|
@@ -2906,7 +2917,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2906
2917
|
O("div", null, V(t(R)("Filters")), 1),
|
|
2907
2918
|
t(i).filtersCount ? (n(), $(he, { key: 0 }, {
|
|
2908
2919
|
default: y(() => [
|
|
2909
|
-
|
|
2920
|
+
D(V(t(i).filtersCount), 1)
|
|
2910
2921
|
]),
|
|
2911
2922
|
_: 1
|
|
2912
2923
|
})) : h("", !0)
|
|
@@ -2920,7 +2931,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2920
2931
|
onClick: (W) => l.value(v)({ _id: t(i).selected.map((te) => typeof te == "string" || te._id) })
|
|
2921
2932
|
}, {
|
|
2922
2933
|
default: y(() => [
|
|
2923
|
-
|
|
2934
|
+
D(V(t(R)(v.label, { capitalize: !0 })), 1)
|
|
2924
2935
|
]),
|
|
2925
2936
|
_: 2
|
|
2926
2937
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
@@ -2942,7 +2953,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2942
2953
|
})())
|
|
2943
2954
|
}, {
|
|
2944
2955
|
default: y(() => [
|
|
2945
|
-
|
|
2956
|
+
D(V(t(R)("add_first_item", { capitalize: !0 })), 1)
|
|
2946
2957
|
]),
|
|
2947
2958
|
_: 1
|
|
2948
2959
|
})) : h("", !0)
|
|
@@ -2963,7 +2974,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2963
2974
|
z(Object.keys(A.$slots).filter((v) => v.startsWith("row-")), (v) => ({
|
|
2964
2975
|
name: v,
|
|
2965
2976
|
fn: y((S) => [
|
|
2966
|
-
C(A.$slots, v, oe(
|
|
2977
|
+
C(A.$slots, v, oe(be(S)), void 0, !0)
|
|
2967
2978
|
])
|
|
2968
2979
|
})),
|
|
2969
2980
|
A.$slots.tfoot ? {
|
|
@@ -2996,7 +3007,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2996
3007
|
const u = ne("meta"), a = (o, l) => {
|
|
2997
3008
|
u.$actions.fulfillPrompt(o, l);
|
|
2998
3009
|
};
|
|
2999
|
-
return (o, l) => (n(), $(
|
|
3010
|
+
return (o, l) => (n(), $(Ae, {
|
|
3000
3011
|
float: "",
|
|
3001
3012
|
"fill-footer": "",
|
|
3002
3013
|
"close-hint": !1,
|
|
@@ -3010,14 +3021,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3010
3021
|
}, [
|
|
3011
3022
|
(n(!0), s(Y, null, z(Object.entries(e.options), ([c, r], p) => (n(), $(de, {
|
|
3012
3023
|
key: `option-${p}`,
|
|
3013
|
-
class:
|
|
3024
|
+
class: U([
|
|
3014
3025
|
"prompt__option",
|
|
3015
3026
|
`prompt__option--${r.variant || "primary"}`
|
|
3016
3027
|
]),
|
|
3017
3028
|
onClick: (d) => r.click ? r.click(c, r) : a(c, r)
|
|
3018
3029
|
}, {
|
|
3019
3030
|
default: y(() => [
|
|
3020
|
-
|
|
3031
|
+
D(V(r.title), 1)
|
|
3021
3032
|
]),
|
|
3022
3033
|
_: 2
|
|
3023
3034
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -3044,14 +3055,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3044
3055
|
return (a, o) => {
|
|
3045
3056
|
const l = ee("clickable");
|
|
3046
3057
|
return K((n(), s("div", {
|
|
3047
|
-
class:
|
|
3058
|
+
class: U({
|
|
3048
3059
|
toast: !0,
|
|
3049
3060
|
"toast--animate": t(u).toasts[0].itr === e.itr
|
|
3050
3061
|
}),
|
|
3051
3062
|
onAnimationend: o[0] || (o[0] = (c) => t(u).$actions.popToast()),
|
|
3052
3063
|
onClick: o[1] || (o[1] = (c) => t(u).$actions.popToast(e.itr))
|
|
3053
3064
|
}, [
|
|
3054
|
-
L(
|
|
3065
|
+
L(H, x(
|
|
3055
3066
|
e.icon ? { icon: e.icon } : { icon: "warning-circle" },
|
|
3056
3067
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3057
3068
|
), null, 16),
|
|
@@ -3072,7 +3083,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3072
3083
|
const c = at("router-view");
|
|
3073
3084
|
return n(), s("main", {
|
|
3074
3085
|
id: "main",
|
|
3075
|
-
class:
|
|
3086
|
+
class: U([
|
|
3076
3087
|
"main",
|
|
3077
3088
|
`main--${a.value}`,
|
|
3078
3089
|
{ dark: a.value === "dark" }
|
|
@@ -3097,7 +3108,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3097
3108
|
_: 3
|
|
3098
3109
|
})),
|
|
3099
3110
|
C(o.$slots, "default", {}, void 0, !0),
|
|
3100
|
-
L(
|
|
3111
|
+
L(Ae, x({
|
|
3101
3112
|
modelValue: t(u).modal.visible,
|
|
3102
3113
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => t(u).modal.visible = r),
|
|
3103
3114
|
float: "",
|
|
@@ -3167,7 +3178,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3167
3178
|
dropdown: { type: Boolean }
|
|
3168
3179
|
},
|
|
3169
3180
|
setup(e) {
|
|
3170
|
-
const u = e, a = lt(), o =
|
|
3181
|
+
const u = e, a = lt(), o = Oe(), l = Se(), c = G(() => {
|
|
3171
3182
|
if (u.query) {
|
|
3172
3183
|
const p = o.currentRoute.value.query[u.query];
|
|
3173
3184
|
if (p)
|
|
@@ -3196,20 +3207,20 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3196
3207
|
p.$slots.default ? (n(), s("div", Ho, [
|
|
3197
3208
|
C(p.$slots, "default", {}, void 0, !0)
|
|
3198
3209
|
])) : h("", !0),
|
|
3199
|
-
(n(!0), s(Y, null, z(Object.keys(p.$slots).filter((m) => m !== "default"), (m,
|
|
3210
|
+
(n(!0), s(Y, null, z(Object.keys(p.$slots).filter((m) => m !== "default"), (m, b) => (n(), s("div", {
|
|
3200
3211
|
key: m,
|
|
3201
|
-
class:
|
|
3212
|
+
class: U({
|
|
3202
3213
|
tabs__tab: !0,
|
|
3203
|
-
"tabs__tab--current": m === c.value || !c.value &&
|
|
3214
|
+
"tabs__tab--current": m === c.value || !c.value && b === 0
|
|
3204
3215
|
}),
|
|
3205
|
-
onClick: (
|
|
3216
|
+
onClick: (_) => r(m)
|
|
3206
3217
|
}, [
|
|
3207
3218
|
C(p.$slots, m, {}, void 0, !0)
|
|
3208
3219
|
], 10, Do))), 128))
|
|
3209
3220
|
])) : (n(), s("div", Qo, [
|
|
3210
|
-
L(
|
|
3221
|
+
L(Ce, null, ie({
|
|
3211
3222
|
default: y(({ visible: m }) => [
|
|
3212
|
-
K((n(), $(
|
|
3223
|
+
K((n(), $(H, {
|
|
3213
3224
|
"icon-right": "",
|
|
3214
3225
|
active: m,
|
|
3215
3226
|
icon: "caret-down",
|
|
@@ -3230,7 +3241,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3230
3241
|
name: m,
|
|
3231
3242
|
fn: y(() => [
|
|
3232
3243
|
O("div", {
|
|
3233
|
-
onClick: (
|
|
3244
|
+
onClick: (b) => r(m)
|
|
3234
3245
|
}, [
|
|
3235
3246
|
C(p.$slots, m, {}, void 0, !0)
|
|
3236
3247
|
], 8, Go)
|
|
@@ -3258,7 +3269,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3258
3269
|
collection: {}
|
|
3259
3270
|
},
|
|
3260
3271
|
setup(e) {
|
|
3261
|
-
const u = e, o =
|
|
3272
|
+
const u = e, o = Oe().currentRoute, l = De(), c = G(() => u.collection ? Ie(u.collection, l) : typeof o.value.meta.collection == "string" ? Ie(o.value.meta.collection, l) : typeof o.value.params.collection == "string" ? Ie(o.value.params.collection, l) : null), r = async (p, d) => {
|
|
3262
3273
|
const { error: f, result: m } = await d.$functions[p.badgeFunction]({
|
|
3263
3274
|
filters: p.filters
|
|
3264
3275
|
});
|
|
@@ -3274,14 +3285,14 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3274
3285
|
fn: y(() => [
|
|
3275
3286
|
O("div", {
|
|
3276
3287
|
class: "topbar__preset",
|
|
3277
|
-
onClick: (
|
|
3288
|
+
onClick: (b) => t(Pe)(m, c.value)
|
|
3278
3289
|
}, [
|
|
3279
|
-
m.icon ? (n(), $(
|
|
3290
|
+
m.icon ? (n(), $(H, {
|
|
3280
3291
|
key: 0,
|
|
3281
3292
|
icon: m.icon
|
|
3282
3293
|
}, {
|
|
3283
3294
|
default: y(() => [
|
|
3284
|
-
|
|
3295
|
+
D(V(m.label || t(R)(f, { plural: !0 })), 1)
|
|
3285
3296
|
]),
|
|
3286
3297
|
_: 2
|
|
3287
3298
|
}, 1032, ["icon"])) : (n(), s("div", Jo, V(m.label || t(R)(f, { plural: !0 })), 1)),
|
|
@@ -3333,7 +3344,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3333
3344
|
}, {
|
|
3334
3345
|
after: y(() => [
|
|
3335
3346
|
O("div", null, V(o.value || "Senhas conferem"), 1),
|
|
3336
|
-
C(l.$slots, "default", oe(
|
|
3347
|
+
C(l.$slots, "default", oe(be({ passwordError: o.value })))
|
|
3337
3348
|
]),
|
|
3338
3349
|
_: 3
|
|
3339
3350
|
}, 8, ["model-value"]));
|
|
@@ -3356,7 +3367,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3356
3367
|
{
|
|
3357
3368
|
path: "signin",
|
|
3358
3369
|
name: "/user/signin",
|
|
3359
|
-
component: () => import("./signin-
|
|
3370
|
+
component: () => import("./signin-CeGp5FWV.js"),
|
|
3360
3371
|
meta: {
|
|
3361
3372
|
title: "Sign in"
|
|
3362
3373
|
}
|
|
@@ -3364,7 +3375,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3364
3375
|
{
|
|
3365
3376
|
path: "signup",
|
|
3366
3377
|
name: "/user/signup",
|
|
3367
|
-
component: () => import("./signup-
|
|
3378
|
+
component: () => import("./signup-D-X3QC0R.js"),
|
|
3368
3379
|
meta: {
|
|
3369
3380
|
title: "Sign up"
|
|
3370
3381
|
}
|
|
@@ -3372,7 +3383,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3372
3383
|
{
|
|
3373
3384
|
path: "redefine-password",
|
|
3374
3385
|
name: "/user/redefine-password",
|
|
3375
|
-
component: () => import("./redefine-password-
|
|
3386
|
+
component: () => import("./redefine-password-DyQTQF3b.js"),
|
|
3376
3387
|
meta: {
|
|
3377
3388
|
title: "Redefine password"
|
|
3378
3389
|
}
|
|
@@ -3380,7 +3391,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3380
3391
|
{
|
|
3381
3392
|
path: "activation",
|
|
3382
3393
|
name: "/user/activation",
|
|
3383
|
-
component: () => import("./activation-
|
|
3394
|
+
component: () => import("./activation-BOIVt1rn.js"),
|
|
3384
3395
|
meta: {
|
|
3385
3396
|
title: "Activate user"
|
|
3386
3397
|
}
|
|
@@ -3402,7 +3413,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3402
3413
|
name: "/dashboard/:collection",
|
|
3403
3414
|
props: !0,
|
|
3404
3415
|
components: {
|
|
3405
|
-
default: () => import("./index-
|
|
3416
|
+
default: () => import("./index-CWxIFD2b.js"),
|
|
3406
3417
|
topbar: () => Promise.resolve().then(() => No)
|
|
3407
3418
|
},
|
|
3408
3419
|
meta: {
|
|
@@ -3416,7 +3427,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3416
3427
|
name: "/dashboard/:collection/:id",
|
|
3417
3428
|
props: !0,
|
|
3418
3429
|
components: {
|
|
3419
|
-
default: () => import("./_id_-
|
|
3430
|
+
default: () => import("./_id_-BKXJQ1Ru.js")
|
|
3420
3431
|
},
|
|
3421
3432
|
meta: {
|
|
3422
3433
|
title: ({ collectionName: a, t: o }) => o(a, {
|
|
@@ -3436,7 +3447,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3436
3447
|
children: [
|
|
3437
3448
|
{
|
|
3438
3449
|
path: "profile",
|
|
3439
|
-
component: () => import("./index-
|
|
3450
|
+
component: () => import("./index-vpRNgSPj.js"),
|
|
3440
3451
|
meta: {
|
|
3441
3452
|
title: "User profile",
|
|
3442
3453
|
icon: "user-square"
|
|
@@ -3445,7 +3456,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3445
3456
|
{
|
|
3446
3457
|
path: "changepass",
|
|
3447
3458
|
name: "/dashboard/user/changepass",
|
|
3448
|
-
component: () => import("./index-
|
|
3459
|
+
component: () => import("./index-BiZyCZT1.js"),
|
|
3449
3460
|
meta: {
|
|
3450
3461
|
title: "Change password",
|
|
3451
3462
|
icon: "lock"
|
|
@@ -3466,19 +3477,19 @@ export {
|
|
|
3466
3477
|
pl as H,
|
|
3467
3478
|
F as _,
|
|
3468
3479
|
le as a,
|
|
3469
|
-
|
|
3480
|
+
H as b,
|
|
3470
3481
|
dl as c,
|
|
3471
3482
|
$n as d,
|
|
3472
3483
|
rl as e,
|
|
3473
3484
|
Aa as f,
|
|
3474
3485
|
Le as g,
|
|
3475
3486
|
cl as h,
|
|
3476
|
-
|
|
3487
|
+
Ae as i,
|
|
3477
3488
|
sl as j,
|
|
3478
3489
|
he as k,
|
|
3479
3490
|
de as l,
|
|
3480
3491
|
Ft as m,
|
|
3481
|
-
|
|
3492
|
+
Ce as n,
|
|
3482
3493
|
co as o,
|
|
3483
3494
|
Oa as p,
|
|
3484
3495
|
Jt as q,
|
|
@@ -3487,7 +3498,7 @@ export {
|
|
|
3487
3498
|
so as t,
|
|
3488
3499
|
Yo as u,
|
|
3489
3500
|
Wn as v,
|
|
3490
|
-
|
|
3501
|
+
_e as w,
|
|
3491
3502
|
Vn as x,
|
|
3492
3503
|
ia as y,
|
|
3493
3504
|
Qe as z
|