codesaaz-core 0.0.62 → 0.0.63
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/codesaaz.es.js +281 -284
- package/dist/codesaaz.umd.js +21 -21
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/dist/codesaaz.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasInjectionContext as Wl, inject as at, ref as O, watch as Te, reactive as
|
|
1
|
+
import { hasInjectionContext as Wl, inject as at, ref as O, watch as Te, reactive as At, effectScope as ql, isRef as Wt, isReactive as is, toRaw as Kl, getCurrentScope as Gl, onScopeDispose as Yl, nextTick as mt, toRefs as Xl, markRaw as Jl, computed as ee, mergeModels as He, useModel as tt, resolveComponent as K, openBlock as b, createElementBlock as C, Fragment as ue, createElementVNode as w, createTextVNode as Je, toDisplayString as ne, createCommentVNode as j, createBlock as z, renderList as Pe, createVNode as L, toValue as Ce, unref as G, onMounted as ze, provide as tn, readonly as as, watchEffect as To, shallowRef as Ql, withCtx as Q, onUpdated as ss, normalizeProps as nn, guardReactiveProps as go, renderSlot as me, createSlots as Sr, withKeys as Ur, withModifiers as wo, withDirectives as Et, vShow as Zl, resolveDirective as Hr, normalizeClass as Ke, resolveDynamicComponent as Ue, mergeProps as ie, defineComponent as Bn, h as Qe, shallowReactive as Cr, onBeforeUnmount as eu, useId as tu, getCurrentInstance as ls, onUnmounted as nu, cloneVNode as ou, normalizeStyle as hn, Teleport as ru, Transition as iu, vModelText as qn, vModelCheckbox as us, createApp as au } from "vue";
|
|
2
2
|
import { useRoute as vn, useRouter as su } from "vue-router";
|
|
3
3
|
import { InputText as ui } from "primevue";
|
|
4
4
|
/*!
|
|
@@ -40,7 +40,7 @@ function Er(t, e) {
|
|
|
40
40
|
if (!e.hasOwnProperty(n))
|
|
41
41
|
continue;
|
|
42
42
|
const o = e[n], r = t[n];
|
|
43
|
-
Or(r) && Or(o) && t.hasOwnProperty(n) && !
|
|
43
|
+
Or(r) && Or(o) && t.hasOwnProperty(n) && !Wt(o) && !is(o) ? t[n] = Er(r, o) : t[n] = o;
|
|
44
44
|
}
|
|
45
45
|
return t;
|
|
46
46
|
}
|
|
@@ -53,7 +53,7 @@ function du(t) {
|
|
|
53
53
|
}
|
|
54
54
|
const { assign: Jt } = Object;
|
|
55
55
|
function fu(t) {
|
|
56
|
-
return !!(
|
|
56
|
+
return !!(Wt(t) && t.effect);
|
|
57
57
|
}
|
|
58
58
|
function pu(t, e, n, o) {
|
|
59
59
|
const { state: r, actions: i, getters: a } = e, l = n.state.value[t];
|
|
@@ -151,13 +151,13 @@ function fs(t, e, n = {}, o, r, i) {
|
|
|
151
151
|
return D;
|
|
152
152
|
},
|
|
153
153
|
$dispose: k
|
|
154
|
-
}, B =
|
|
154
|
+
}, B = At(T);
|
|
155
155
|
o._s.set(t, B);
|
|
156
156
|
const x = (o._a && o._a.runWithContext || uu)(() => o._e.run(() => (a = ql()).run(() => e({ action: S }))));
|
|
157
157
|
for (const v in x) {
|
|
158
158
|
const E = x[v];
|
|
159
|
-
if (
|
|
160
|
-
i || (m && du(E) && (
|
|
159
|
+
if (Wt(E) && !fu(E) || is(E))
|
|
160
|
+
i || (m && du(E) && (Wt(E) ? E.value = m[v] : Er(E, m[v])), o.state.value[t][v] = E);
|
|
161
161
|
else if (typeof E == "function") {
|
|
162
162
|
const D = S(E, v);
|
|
163
163
|
x[v] = D, l.actions[v] = E;
|
|
@@ -694,14 +694,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", uc
|
|
|
694
694
|
hasStandardBrowserWebWorkerEnv: lc,
|
|
695
695
|
navigator: Tr,
|
|
696
696
|
origin: uc
|
|
697
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
697
|
+
}, Symbol.toStringTag, { value: "Module" })), rt = {
|
|
698
698
|
...cc,
|
|
699
699
|
...ac
|
|
700
700
|
};
|
|
701
701
|
function dc(t, e) {
|
|
702
|
-
return Go(t, new
|
|
702
|
+
return Go(t, new rt.classes.URLSearchParams(), Object.assign({
|
|
703
703
|
visitor: function(n, o, r, i) {
|
|
704
|
-
return
|
|
704
|
+
return rt.isNode && A.isBuffer(n) ? (this.append(o, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
|
|
705
705
|
}
|
|
706
706
|
}, e));
|
|
707
707
|
}
|
|
@@ -795,8 +795,8 @@ const bo = {
|
|
|
795
795
|
maxContentLength: -1,
|
|
796
796
|
maxBodyLength: -1,
|
|
797
797
|
env: {
|
|
798
|
-
FormData:
|
|
799
|
-
Blob:
|
|
798
|
+
FormData: rt.classes.FormData,
|
|
799
|
+
Blob: rt.classes.Blob
|
|
800
800
|
},
|
|
801
801
|
validateStatus: function(e) {
|
|
802
802
|
return e >= 200 && e < 300;
|
|
@@ -1088,10 +1088,10 @@ const Do = (t, e, n = 3) => {
|
|
|
1088
1088
|
total: t,
|
|
1089
1089
|
loaded: o
|
|
1090
1090
|
}), e[1]];
|
|
1091
|
-
}, vi = (t) => (...e) => A.asap(() => t(...e)), Cc =
|
|
1092
|
-
new URL(
|
|
1093
|
-
|
|
1094
|
-
) : () => !0, Oc =
|
|
1091
|
+
}, vi = (t) => (...e) => A.asap(() => t(...e)), Cc = rt.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, rt.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
1092
|
+
new URL(rt.origin),
|
|
1093
|
+
rt.navigator && /(msie|trident)/i.test(rt.navigator.userAgent)
|
|
1094
|
+
) : () => !0, Oc = rt.hasStandardBrowserEnv ? (
|
|
1095
1095
|
// Standard browser envs support document.cookie
|
|
1096
1096
|
{
|
|
1097
1097
|
write(t, e, n, o, r, i) {
|
|
@@ -1201,14 +1201,14 @@ const Bs = (t) => {
|
|
|
1201
1201
|
);
|
|
1202
1202
|
let u;
|
|
1203
1203
|
if (A.isFormData(n)) {
|
|
1204
|
-
if (
|
|
1204
|
+
if (rt.hasStandardBrowserEnv || rt.hasStandardBrowserWebWorkerEnv)
|
|
1205
1205
|
a.setContentType(void 0);
|
|
1206
1206
|
else if ((u = a.getContentType()) !== !1) {
|
|
1207
1207
|
const [s, ...c] = u ? u.split(";").map((f) => f.trim()).filter(Boolean) : [];
|
|
1208
1208
|
a.setContentType([s || "multipart/form-data", ...c].join("; "));
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
|
-
if (
|
|
1211
|
+
if (rt.hasStandardBrowserEnv && (o && A.isFunction(o) && (o = o(e)), o || o !== !1 && Cc(e.url))) {
|
|
1212
1212
|
const s = r && i && Oc.read(i);
|
|
1213
1213
|
s && a.set(r, s);
|
|
1214
1214
|
}
|
|
@@ -1264,7 +1264,7 @@ const Bs = (t) => {
|
|
|
1264
1264
|
h && (o(!S || S.type ? new An(null, t, h) : S), h.abort(), h = null);
|
|
1265
1265
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
|
1266
1266
|
const k = kc(r.url);
|
|
1267
|
-
if (k &&
|
|
1267
|
+
if (k && rt.protocols.indexOf(k) === -1) {
|
|
1268
1268
|
o(new be("Unsupported protocol " + k + ":", be.ERR_BAD_REQUEST, t));
|
|
1269
1269
|
return;
|
|
1270
1270
|
}
|
|
@@ -1358,7 +1358,7 @@ const Bs = (t) => {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
}, Pc = Rs && As(() => {
|
|
1360
1360
|
let t = !1;
|
|
1361
|
-
const e = new Request(
|
|
1361
|
+
const e = new Request(rt.origin, {
|
|
1362
1362
|
body: new ReadableStream(),
|
|
1363
1363
|
method: "POST",
|
|
1364
1364
|
get duplex() {
|
|
@@ -1382,7 +1382,7 @@ const Dc = async (t) => {
|
|
|
1382
1382
|
if (A.isBlob(t))
|
|
1383
1383
|
return t.size;
|
|
1384
1384
|
if (A.isSpecCompliantForm(t))
|
|
1385
|
-
return (await new Request(
|
|
1385
|
+
return (await new Request(rt.origin, {
|
|
1386
1386
|
method: "POST",
|
|
1387
1387
|
body: t
|
|
1388
1388
|
}).arrayBuffer()).byteLength;
|
|
@@ -1981,7 +1981,7 @@ function sn() {
|
|
|
1981
1981
|
del: (u, s = {}, c = {}) => l({ url: u, method: "delete", payload: s, headers: c })
|
|
1982
1982
|
};
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function Dt() {
|
|
1985
1985
|
const t = Ze(), { get: e, post: n, put: o, del: r } = sn(), i = () => t.getAppId();
|
|
1986
1986
|
return {
|
|
1987
1987
|
getEntityRecords: async (g) => {
|
|
@@ -2023,7 +2023,7 @@ function Nt() {
|
|
|
2023
2023
|
};
|
|
2024
2024
|
}
|
|
2025
2025
|
function Wc(t = "") {
|
|
2026
|
-
const e = new
|
|
2026
|
+
const e = new Dt(), n = {
|
|
2027
2027
|
gt: "GREATER_THAN",
|
|
2028
2028
|
dateAfter: "GREATER_THAN",
|
|
2029
2029
|
equals: "EQUAL",
|
|
@@ -2137,7 +2137,7 @@ function Wc(t = "") {
|
|
|
2137
2137
|
fetchEntityByName: y
|
|
2138
2138
|
};
|
|
2139
2139
|
}
|
|
2140
|
-
const
|
|
2140
|
+
const nt = (t, e) => {
|
|
2141
2141
|
const n = t.__vccOpts || t;
|
|
2142
2142
|
for (const [o, r] of e)
|
|
2143
2143
|
n[o] = r;
|
|
@@ -2156,16 +2156,16 @@ const tt = (t, e) => {
|
|
|
2156
2156
|
class: "flex items-center mb-3"
|
|
2157
2157
|
}, Qc = { class: "ml-2" }, Zc = { key: 0 }, ed = {
|
|
2158
2158
|
__name: "EntityForm",
|
|
2159
|
-
props: /* @__PURE__ */
|
|
2159
|
+
props: /* @__PURE__ */ He({
|
|
2160
2160
|
column: Object,
|
|
2161
2161
|
errors: Array
|
|
2162
2162
|
}, {
|
|
2163
2163
|
modelValue: {},
|
|
2164
2164
|
modelModifiers: {}
|
|
2165
2165
|
}),
|
|
2166
|
-
emits: /* @__PURE__ */
|
|
2166
|
+
emits: /* @__PURE__ */ He(["input"], ["update:modelValue"]),
|
|
2167
2167
|
setup(t, { emit: e }) {
|
|
2168
|
-
const n =
|
|
2168
|
+
const n = tt(t, "modelValue"), o = e, r = (i) => {
|
|
2169
2169
|
o("input", i.name);
|
|
2170
2170
|
};
|
|
2171
2171
|
if (t.column && !t.column.inputComponent) {
|
|
@@ -2266,7 +2266,7 @@ const tt = (t, e) => {
|
|
|
2266
2266
|
], 64);
|
|
2267
2267
|
};
|
|
2268
2268
|
}
|
|
2269
|
-
}, Jo = /* @__PURE__ */
|
|
2269
|
+
}, Jo = /* @__PURE__ */ nt(ed, [["__scopeId", "data-v-8820d348"]]);
|
|
2270
2270
|
/**
|
|
2271
2271
|
* vee-validate v4.15.0
|
|
2272
2272
|
* (c) 2024 Abdelrahman Awad
|
|
@@ -2455,10 +2455,10 @@ function Ii(t) {
|
|
|
2455
2455
|
function Qr(t) {
|
|
2456
2456
|
return Qo(t) ? t.replace(/\[|\]/gi, "") : t;
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function Ut(t, e, n) {
|
|
2459
2459
|
return t ? Qo(e) ? t[Qr(e)] : (e || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((r, i) => cd(r) && i in r ? r[i] : n, t) : n;
|
|
2460
2460
|
}
|
|
2461
|
-
function
|
|
2461
|
+
function zt(t, e, n) {
|
|
2462
2462
|
if (Qo(e)) {
|
|
2463
2463
|
t[Qr(e)] = n;
|
|
2464
2464
|
return;
|
|
@@ -2496,7 +2496,7 @@ function Bi(t, e) {
|
|
|
2496
2496
|
break;
|
|
2497
2497
|
o = o[n[i]];
|
|
2498
2498
|
}
|
|
2499
|
-
const r = n.map((i, a) =>
|
|
2499
|
+
const r = n.map((i, a) => Ut(t, n.slice(0, a).join(".")));
|
|
2500
2500
|
for (let i = r.length - 1; i >= 0; i--)
|
|
2501
2501
|
if (dd(r[i])) {
|
|
2502
2502
|
if (i === 0) {
|
|
@@ -2606,7 +2606,7 @@ const vd = (t) => {
|
|
|
2606
2606
|
function wd(t) {
|
|
2607
2607
|
const e = (n) => {
|
|
2608
2608
|
var o;
|
|
2609
|
-
return (o =
|
|
2609
|
+
return (o = Ut(n, t)) !== null && o !== void 0 ? o : n[t];
|
|
2610
2610
|
};
|
|
2611
2611
|
return e.__locatorRef = t, e;
|
|
2612
2612
|
}
|
|
@@ -2755,7 +2755,7 @@ async function Td(t, e) {
|
|
|
2755
2755
|
async function Id(t, e, n) {
|
|
2756
2756
|
const r = vt(t).map(async (s) => {
|
|
2757
2757
|
var c, f, d;
|
|
2758
|
-
const p = (c = n == null ? void 0 : n.names) === null || c === void 0 ? void 0 : c[s], m = await Sd(
|
|
2758
|
+
const p = (c = n == null ? void 0 : n.names) === null || c === void 0 ? void 0 : c[s], m = await Sd(Ut(e, s), t[s], {
|
|
2759
2759
|
name: (p == null ? void 0 : p.name) || s,
|
|
2760
2760
|
label: p == null ? void 0 : p.label,
|
|
2761
2761
|
values: e,
|
|
@@ -2787,7 +2787,7 @@ function Ws(t) {
|
|
|
2787
2787
|
var e;
|
|
2788
2788
|
const n = Bd++, o = "Form";
|
|
2789
2789
|
let r = 0;
|
|
2790
|
-
const i = O(!1), a = O(!1), l = O(0), u = [], s =
|
|
2790
|
+
const i = O(!1), a = O(!1), l = O(0), u = [], s = At(Hs()), c = O([]), f = O({}), d = O({}), p = gd(() => {
|
|
2791
2791
|
d.value = c.value.reduce(($, _) => ($[ko(Ce(_.path))] = _, $), {});
|
|
2792
2792
|
});
|
|
2793
2793
|
function m($, _) {
|
|
@@ -2817,18 +2817,18 @@ function Ws(t) {
|
|
|
2817
2817
|
var M;
|
|
2818
2818
|
return $[Ce(_.path)] = (M = _.bails) !== null && M !== void 0 ? M : !0, $;
|
|
2819
2819
|
}, {})), T = Object.assign({}, {}), B = (e = void 0) !== null && e !== void 0 ? e : !1, { initialValues: I, originalInitialValues: x, setInitialValues: v } = Ad(c, s), E = Rd(c, s, x, y), D = ee(() => c.value.reduce(($, _) => {
|
|
2820
|
-
const M =
|
|
2821
|
-
return
|
|
2820
|
+
const M = Ut(s, Ce(_.path));
|
|
2821
|
+
return zt($, Ce(_.path), M), $;
|
|
2822
2822
|
}, {})), R = void 0;
|
|
2823
2823
|
function F($, _) {
|
|
2824
2824
|
var M, oe;
|
|
2825
|
-
const pe = ee(() =>
|
|
2825
|
+
const pe = ee(() => Ut(I.value, Ce($))), he = d.value[Ce($)], le = (_ == null ? void 0 : _.type) === "checkbox" || (_ == null ? void 0 : _.type) === "radio";
|
|
2826
2826
|
if (he && le) {
|
|
2827
2827
|
he.multiple = !0;
|
|
2828
2828
|
const Le = r++;
|
|
2829
2829
|
return Array.isArray(he.id) ? he.id.push(Le) : he.id = [he.id, Le], he.fieldsCount++, he.__flags.pendingUnmount[Le] = !1, he;
|
|
2830
2830
|
}
|
|
2831
|
-
const N = ee(() =>
|
|
2831
|
+
const N = ee(() => Ut(s, Ce($))), Z = Ce($), ae = V.findIndex((Le) => Le === Z);
|
|
2832
2832
|
ae !== -1 && V.splice(ae, 1);
|
|
2833
2833
|
const re = ee(() => {
|
|
2834
2834
|
var Le, et, Dn, Nn;
|
|
@@ -2837,7 +2837,7 @@ function Ws(t) {
|
|
|
2837
2837
|
return (et = (Le = Ln.describe) === null || Le === void 0 ? void 0 : Le.call(Ln, Ce($)).required) !== null && et !== void 0 ? et : !1;
|
|
2838
2838
|
const sr = Ce(_ == null ? void 0 : _.schema);
|
|
2839
2839
|
return Zt(sr) && (Nn = (Dn = sr.describe) === null || Dn === void 0 ? void 0 : Dn.call(sr).required) !== null && Nn !== void 0 ? Nn : !1;
|
|
2840
|
-
}), ge = r++, Ae =
|
|
2840
|
+
}), ge = r++, Ae = At({
|
|
2841
2841
|
id: ge,
|
|
2842
2842
|
path: $,
|
|
2843
2843
|
touched: !1,
|
|
@@ -2862,11 +2862,11 @@ function Ws(t) {
|
|
|
2862
2862
|
});
|
|
2863
2863
|
return c.value.push(Ae), d.value[Z] = Ae, p(), y.value[Z] && !T[Z] && mt(() => {
|
|
2864
2864
|
st(Z, { mode: "silent" });
|
|
2865
|
-
}),
|
|
2865
|
+
}), Wt($) && Te($, (Le) => {
|
|
2866
2866
|
p();
|
|
2867
2867
|
const et = De(N.value);
|
|
2868
2868
|
d.value[Le] = Ae, mt(() => {
|
|
2869
|
-
|
|
2869
|
+
zt(s, Le, et);
|
|
2870
2870
|
});
|
|
2871
2871
|
}), Ae;
|
|
2872
2872
|
}
|
|
@@ -2922,7 +2922,7 @@ function Ws(t) {
|
|
|
2922
2922
|
setFieldError: m,
|
|
2923
2923
|
setTouched: Be,
|
|
2924
2924
|
setFieldTouched: ht,
|
|
2925
|
-
setValues:
|
|
2925
|
+
setValues: ot,
|
|
2926
2926
|
setFieldValue: Ne,
|
|
2927
2927
|
resetForm: Re,
|
|
2928
2928
|
resetField: _e
|
|
@@ -2980,7 +2980,7 @@ function Ws(t) {
|
|
|
2980
2980
|
setFieldError: m,
|
|
2981
2981
|
validateField: st,
|
|
2982
2982
|
setFieldValue: Ne,
|
|
2983
|
-
setValues:
|
|
2983
|
+
setValues: ot,
|
|
2984
2984
|
setErrors: g,
|
|
2985
2985
|
setFieldTouched: ht,
|
|
2986
2986
|
setTouched: Be,
|
|
@@ -2990,7 +2990,7 @@ function Ws(t) {
|
|
|
2990
2990
|
useFieldModel: ln,
|
|
2991
2991
|
defineInputBinds: fe,
|
|
2992
2992
|
defineComponentBinds: xt,
|
|
2993
|
-
defineField:
|
|
2993
|
+
defineField: Kt,
|
|
2994
2994
|
stageInitialValue: Ye,
|
|
2995
2995
|
unsetInitialValue: Tt,
|
|
2996
2996
|
setFieldInitialValue: lt,
|
|
@@ -3007,7 +3007,7 @@ function Ws(t) {
|
|
|
3007
3007
|
};
|
|
3008
3008
|
function Ne($, _, M = !0) {
|
|
3009
3009
|
const oe = De(_), pe = typeof $ == "string" ? $ : $.path;
|
|
3010
|
-
q(pe) || F(pe),
|
|
3010
|
+
q(pe) || F(pe), zt(s, pe, oe), M && st(pe);
|
|
3011
3011
|
}
|
|
3012
3012
|
function pt($, _ = !0) {
|
|
3013
3013
|
vt(s).forEach((M) => {
|
|
@@ -3016,7 +3016,7 @@ function Ws(t) {
|
|
|
3016
3016
|
Ne(M, $[M], !1);
|
|
3017
3017
|
}), _ && Me();
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3019
|
+
function ot($, _ = !0) {
|
|
3020
3020
|
Qn(s, $), u.forEach((M) => M && M.reset()), _ && Me();
|
|
3021
3021
|
}
|
|
3022
3022
|
function kt($, _) {
|
|
@@ -3061,7 +3061,7 @@ function Ws(t) {
|
|
|
3061
3061
|
}
|
|
3062
3062
|
function _e($, _) {
|
|
3063
3063
|
var M;
|
|
3064
|
-
const oe = _ && "value" in _ ? _.value :
|
|
3064
|
+
const oe = _ && "value" in _ ? _.value : Ut(I.value, $), pe = q($);
|
|
3065
3065
|
pe && (pe.__flags.pendingReset = !0), lt($, De(oe), !0), Ne($, oe, !1), ht($, (M = _ == null ? void 0 : _.touched) !== null && M !== void 0 ? M : !1), m($, (_ == null ? void 0 : _.errors) || []), mt(() => {
|
|
3066
3066
|
pe && (pe.__flags.pendingReset = !1);
|
|
3067
3067
|
});
|
|
@@ -3070,8 +3070,8 @@ function Ws(t) {
|
|
|
3070
3070
|
let M = De($ != null && $.values ? $.values : x.value);
|
|
3071
3071
|
M = _ != null && _.force ? M : Qn(x.value, M), M = Zt(R) && Ot(R.cast) ? R.cast(M) : M, v(M, { force: _ == null ? void 0 : _.force }), P((oe) => {
|
|
3072
3072
|
var pe;
|
|
3073
|
-
oe.__flags.pendingReset = !0, oe.validated = !1, oe.touched = ((pe = $ == null ? void 0 : $.touched) === null || pe === void 0 ? void 0 : pe[Ce(oe.path)]) || !1, Ne(Ce(oe.path),
|
|
3074
|
-
}), _ != null && _.force ? pt(M, !1) :
|
|
3073
|
+
oe.__flags.pendingReset = !0, oe.validated = !1, oe.touched = ((pe = $ == null ? void 0 : $.touched) === null || pe === void 0 ? void 0 : pe[Ce(oe.path)]) || !1, Ne(Ce(oe.path), Ut(M, Ce(oe.path)), !1), m(Ce(oe.path), void 0);
|
|
3074
|
+
}), _ != null && _.force ? pt(M, !1) : ot(M, !1), g(($ == null ? void 0 : $.errors) || {}), l.value = ($ == null ? void 0 : $.submitCount) || 0, mt(() => {
|
|
3075
3075
|
Me({ mode: "silent" }), P((oe) => {
|
|
3076
3076
|
oe.__flags.pendingReset = !1;
|
|
3077
3077
|
});
|
|
@@ -3099,7 +3099,7 @@ function Ws(t) {
|
|
|
3099
3099
|
oe[le.key] = {
|
|
3100
3100
|
valid: le.valid,
|
|
3101
3101
|
errors: le.errors
|
|
3102
|
-
}, le.value &&
|
|
3102
|
+
}, le.value && zt(he, le.key, le.value), le.errors.length && (pe[le.key] = le.errors[0]);
|
|
3103
3103
|
return {
|
|
3104
3104
|
valid: M.every((le) => le.valid),
|
|
3105
3105
|
results: oe,
|
|
@@ -3117,10 +3117,10 @@ function Ws(t) {
|
|
|
3117
3117
|
Bi(I.value, $);
|
|
3118
3118
|
}
|
|
3119
3119
|
function Ye($, _, M = !1) {
|
|
3120
|
-
lt($, _),
|
|
3120
|
+
lt($, _), zt(s, $, _), M && zt(x.value, $, De(_));
|
|
3121
3121
|
}
|
|
3122
3122
|
function lt($, _, M = !1) {
|
|
3123
|
-
|
|
3123
|
+
zt(I.value, $, De(_)), M && zt(x.value, $, De(_));
|
|
3124
3124
|
}
|
|
3125
3125
|
async function bt() {
|
|
3126
3126
|
const $ = G(R);
|
|
@@ -3133,16 +3133,16 @@ function Ws(t) {
|
|
|
3133
3133
|
});
|
|
3134
3134
|
return a.value = !1, _;
|
|
3135
3135
|
}
|
|
3136
|
-
const
|
|
3136
|
+
const qt = se(($, { evt: _ }) => {
|
|
3137
3137
|
pd(_) && _.target.submit();
|
|
3138
3138
|
});
|
|
3139
3139
|
ze(() => {
|
|
3140
3140
|
Se.validateSchema && Se.validateSchema("silent");
|
|
3141
|
-
}),
|
|
3141
|
+
}), Wt(R) && Te(R, () => {
|
|
3142
3142
|
var $;
|
|
3143
3143
|
($ = Se.validateSchema) === null || $ === void 0 || $.call(Se, "validated-only");
|
|
3144
3144
|
}), tn(id, Se);
|
|
3145
|
-
function
|
|
3145
|
+
function Kt($, _) {
|
|
3146
3146
|
const M = Ot(_) || _ == null ? void 0 : _.label, oe = q(Ce($)) || F($, { label: M }), pe = () => Ot(_) ? _(xo(oe, So)) : _ || {};
|
|
3147
3147
|
function he() {
|
|
3148
3148
|
var re;
|
|
@@ -3177,7 +3177,7 @@ function Ws(t) {
|
|
|
3177
3177
|
return Array.isArray($) ? $.map((_) => kt(_, !0)) : kt($);
|
|
3178
3178
|
}
|
|
3179
3179
|
function fe($, _) {
|
|
3180
|
-
const [M, oe] =
|
|
3180
|
+
const [M, oe] = Kt($, _);
|
|
3181
3181
|
function pe() {
|
|
3182
3182
|
oe.value.onBlur();
|
|
3183
3183
|
}
|
|
@@ -3197,7 +3197,7 @@ function Ws(t) {
|
|
|
3197
3197
|
}));
|
|
3198
3198
|
}
|
|
3199
3199
|
function xt($, _) {
|
|
3200
|
-
const [M, oe] =
|
|
3200
|
+
const [M, oe] = Kt($, _), pe = q(Ce($));
|
|
3201
3201
|
function he(le) {
|
|
3202
3202
|
M.value = le;
|
|
3203
3203
|
}
|
|
@@ -3206,8 +3206,8 @@ function Ws(t) {
|
|
|
3206
3206
|
return Object.assign({ [le.model || "modelValue"]: M.value, [`onUpdate:${le.model || "modelValue"}`]: he }, oe.value);
|
|
3207
3207
|
});
|
|
3208
3208
|
}
|
|
3209
|
-
const
|
|
3210
|
-
return tn(ad,
|
|
3209
|
+
const We = Object.assign(Object.assign({}, Se), { values: as(s), handleReset: () => Re(), submitForm: qt });
|
|
3210
|
+
return tn(ad, We), We;
|
|
3211
3211
|
}
|
|
3212
3212
|
function Rd(t, e, n, o) {
|
|
3213
3213
|
const r = {
|
|
@@ -3222,7 +3222,7 @@ function Rd(t, e, n, o) {
|
|
|
3222
3222
|
return s[c] = u[f]((d) => d[c]), s;
|
|
3223
3223
|
}, {});
|
|
3224
3224
|
}
|
|
3225
|
-
const l =
|
|
3225
|
+
const l = At(a());
|
|
3226
3226
|
return To(() => {
|
|
3227
3227
|
const u = a();
|
|
3228
3228
|
l.touched = u.touched, l.valid = u.valid, l.pending = u.pending;
|
|
@@ -3234,8 +3234,8 @@ function Ad(t, e, n) {
|
|
|
3234
3234
|
u != null && u.force ? (r.value = De(l), i.value = De(l)) : (r.value = Qn(De(r.value) || {}, De(l)), i.value = Qn(De(i.value) || {}, De(l))), u != null && u.updateFields && t.value.forEach((s) => {
|
|
3235
3235
|
if (s.touched)
|
|
3236
3236
|
return;
|
|
3237
|
-
const f =
|
|
3238
|
-
|
|
3237
|
+
const f = Ut(r.value, Ce(s.path));
|
|
3238
|
+
zt(e, Ce(s.path), De(f));
|
|
3239
3239
|
});
|
|
3240
3240
|
}
|
|
3241
3241
|
return {
|
|
@@ -3475,7 +3475,7 @@ class ct extends Error {
|
|
|
3475
3475
|
return zi[Symbol.hasInstance](e) || super[Symbol.hasInstance](e);
|
|
3476
3476
|
}
|
|
3477
3477
|
}
|
|
3478
|
-
let
|
|
3478
|
+
let Rt = {
|
|
3479
3479
|
default: "${path} is invalid",
|
|
3480
3480
|
required: "${path} is a required field",
|
|
3481
3481
|
defined: "${path} must be defined",
|
|
@@ -3536,11 +3536,11 @@ let At = {
|
|
|
3536
3536
|
if (n.length < r) return `${e} tuple value has too few items, expected a length of ${r} but got ${n.length} for value: \`${en(n, !0)}\``;
|
|
3537
3537
|
if (n.length > r) return `${e} tuple value has too many items, expected a length of ${r} but got ${n.length} for value: \`${en(n, !0)}\``;
|
|
3538
3538
|
}
|
|
3539
|
-
return ct.formatError(
|
|
3539
|
+
return ct.formatError(Rt.notType, t);
|
|
3540
3540
|
}
|
|
3541
3541
|
};
|
|
3542
3542
|
Object.assign(/* @__PURE__ */ Object.create(null), {
|
|
3543
|
-
mixed:
|
|
3543
|
+
mixed: Rt,
|
|
3544
3544
|
string: ut,
|
|
3545
3545
|
number: Kd,
|
|
3546
3546
|
date: Ar,
|
|
@@ -3771,10 +3771,10 @@ function _n(t, e = /* @__PURE__ */ new Map()) {
|
|
|
3771
3771
|
throw Error(`Unable to clone ${t}`);
|
|
3772
3772
|
return n;
|
|
3773
3773
|
}
|
|
3774
|
-
class
|
|
3774
|
+
class Ft {
|
|
3775
3775
|
constructor(e) {
|
|
3776
3776
|
this.type = void 0, this.deps = [], this.tests = void 0, this.transforms = void 0, this.conditions = [], this._mutate = void 0, this.internalTests = {}, this._whitelist = new Vo(), this._blacklist = new Vo(), this.exclusiveTests = /* @__PURE__ */ Object.create(null), this._typeCheck = void 0, this.spec = void 0, this.tests = [], this.transforms = [], this.withMutation(() => {
|
|
3777
|
-
this.typeError(
|
|
3777
|
+
this.typeError(Rt.notType);
|
|
3778
3778
|
}), this.type = e.type, this._typeCheck = e.check, this.spec = Object.assign({
|
|
3779
3779
|
strip: !1,
|
|
3780
3780
|
strict: !1,
|
|
@@ -4041,16 +4041,16 @@ attempted value: ${a}
|
|
|
4041
4041
|
optional() {
|
|
4042
4042
|
return this.optionality(!0);
|
|
4043
4043
|
}
|
|
4044
|
-
defined(e =
|
|
4044
|
+
defined(e = Rt.defined) {
|
|
4045
4045
|
return this.optionality(!1, e);
|
|
4046
4046
|
}
|
|
4047
4047
|
nullable() {
|
|
4048
4048
|
return this.nullability(!0);
|
|
4049
4049
|
}
|
|
4050
|
-
nonNullable(e =
|
|
4050
|
+
nonNullable(e = Rt.notNull) {
|
|
4051
4051
|
return this.nullability(!1, e);
|
|
4052
4052
|
}
|
|
4053
|
-
required(e =
|
|
4053
|
+
required(e = Rt.required) {
|
|
4054
4054
|
return this.clone().withMutation((n) => n.nonNullable(e).defined(e));
|
|
4055
4055
|
}
|
|
4056
4056
|
notRequired() {
|
|
@@ -4084,7 +4084,7 @@ attempted value: ${a}
|
|
|
4084
4084
|
name: e[0],
|
|
4085
4085
|
message: e[1],
|
|
4086
4086
|
test: e[2]
|
|
4087
|
-
}, n.message === void 0 && (n.message =
|
|
4087
|
+
}, n.message === void 0 && (n.message = Rt.default), typeof n.test != "function") throw new TypeError("`test` is a required parameters");
|
|
4088
4088
|
let o = this.clone(), r = Cn(n), i = n.exclusive || n.name && o.exclusiveTests[n.name] === !0;
|
|
4089
4089
|
if (n.exclusive && !n.name)
|
|
4090
4090
|
throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");
|
|
@@ -4112,7 +4112,7 @@ attempted value: ${a}
|
|
|
4112
4112
|
}
|
|
4113
4113
|
}), n;
|
|
4114
4114
|
}
|
|
4115
|
-
oneOf(e, n =
|
|
4115
|
+
oneOf(e, n = Rt.oneOf) {
|
|
4116
4116
|
let o = this.clone();
|
|
4117
4117
|
return e.forEach((r) => {
|
|
4118
4118
|
o._whitelist.add(r), o._blacklist.delete(r);
|
|
@@ -4131,7 +4131,7 @@ attempted value: ${a}
|
|
|
4131
4131
|
}
|
|
4132
4132
|
}), o;
|
|
4133
4133
|
}
|
|
4134
|
-
notOneOf(e, n =
|
|
4134
|
+
notOneOf(e, n = Rt.notOneOf) {
|
|
4135
4135
|
let o = this.clone();
|
|
4136
4136
|
return e.forEach((r) => {
|
|
4137
4137
|
o._blacklist.add(r), o._whitelist.delete(r);
|
|
@@ -4181,8 +4181,8 @@ attempted value: ${a}
|
|
|
4181
4181
|
};
|
|
4182
4182
|
}
|
|
4183
4183
|
}
|
|
4184
|
-
|
|
4185
|
-
for (const t of ["validate", "validateSync"])
|
|
4184
|
+
Ft.prototype.__isYupSchema__ = !0;
|
|
4185
|
+
for (const t of ["validate", "validateSync"]) Ft.prototype[`${t}At`] = function(e, n, o = {}) {
|
|
4186
4186
|
const {
|
|
4187
4187
|
parent: r,
|
|
4188
4188
|
parentPath: i,
|
|
@@ -4193,8 +4193,8 @@ for (const t of ["validate", "validateSync"]) Pt.prototype[`${t}At`] = function(
|
|
|
4193
4193
|
path: e
|
|
4194
4194
|
}));
|
|
4195
4195
|
};
|
|
4196
|
-
for (const t of ["equals", "is"])
|
|
4197
|
-
for (const t of ["not", "nope"])
|
|
4196
|
+
for (const t of ["equals", "is"]) Ft.prototype[t] = Ft.prototype.oneOf;
|
|
4197
|
+
for (const t of ["not", "nope"]) Ft.prototype[t] = Ft.prototype.notOneOf;
|
|
4198
4198
|
const Qd = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
|
|
4199
4199
|
function Zd(t) {
|
|
4200
4200
|
const e = Fr(t);
|
|
@@ -4208,24 +4208,24 @@ function Fr(t) {
|
|
|
4208
4208
|
var e, n;
|
|
4209
4209
|
const o = Qd.exec(t);
|
|
4210
4210
|
return o ? {
|
|
4211
|
-
year:
|
|
4212
|
-
month:
|
|
4213
|
-
day:
|
|
4214
|
-
hour:
|
|
4215
|
-
minute:
|
|
4216
|
-
second:
|
|
4211
|
+
year: Nt(o[1]),
|
|
4212
|
+
month: Nt(o[2], 1) - 1,
|
|
4213
|
+
day: Nt(o[3], 1),
|
|
4214
|
+
hour: Nt(o[4]),
|
|
4215
|
+
minute: Nt(o[5]),
|
|
4216
|
+
second: Nt(o[6]),
|
|
4217
4217
|
millisecond: o[7] ? (
|
|
4218
4218
|
// allow arbitrary sub-second precision beyond milliseconds
|
|
4219
|
-
|
|
4219
|
+
Nt(o[7].substring(0, 3))
|
|
4220
4220
|
) : 0,
|
|
4221
4221
|
precision: (e = (n = o[7]) == null ? void 0 : n.length) != null ? e : void 0,
|
|
4222
4222
|
z: o[8] || void 0,
|
|
4223
4223
|
plusMinus: o[9] || void 0,
|
|
4224
|
-
hourOffset:
|
|
4225
|
-
minuteOffset:
|
|
4224
|
+
hourOffset: Nt(o[10]),
|
|
4225
|
+
minuteOffset: Nt(o[11])
|
|
4226
4226
|
} : null;
|
|
4227
4227
|
}
|
|
4228
|
-
function
|
|
4228
|
+
function Nt(t, e = 0) {
|
|
4229
4229
|
return Number(t) || e;
|
|
4230
4230
|
}
|
|
4231
4231
|
let ef = (
|
|
@@ -4238,7 +4238,7 @@ let ef = (
|
|
|
4238
4238
|
function ei() {
|
|
4239
4239
|
return new Js();
|
|
4240
4240
|
}
|
|
4241
|
-
class Js extends
|
|
4241
|
+
class Js extends Ft {
|
|
4242
4242
|
constructor() {
|
|
4243
4243
|
super({
|
|
4244
4244
|
type: "string",
|
|
@@ -4255,7 +4255,7 @@ class Js extends Pt {
|
|
|
4255
4255
|
}
|
|
4256
4256
|
required(e) {
|
|
4257
4257
|
return super.required(e).withMutation((n) => n.test({
|
|
4258
|
-
message: e ||
|
|
4258
|
+
message: e || Rt.required,
|
|
4259
4259
|
name: "required",
|
|
4260
4260
|
skipAbsent: !0,
|
|
4261
4261
|
test: (o) => !!o.length
|
|
@@ -4411,7 +4411,7 @@ class Js extends Pt {
|
|
|
4411
4411
|
}
|
|
4412
4412
|
ei.prototype = Js.prototype;
|
|
4413
4413
|
let cf = /* @__PURE__ */ new Date(""), df = (t) => Object.prototype.toString.call(t) === "[object Date]";
|
|
4414
|
-
class Zo extends
|
|
4414
|
+
class Zo extends Ft {
|
|
4415
4415
|
constructor() {
|
|
4416
4416
|
super({
|
|
4417
4417
|
type: "date",
|
|
@@ -4529,7 +4529,7 @@ const gf = Qs([]);
|
|
|
4529
4529
|
function ti(t) {
|
|
4530
4530
|
return new Zs(t);
|
|
4531
4531
|
}
|
|
4532
|
-
class Zs extends
|
|
4532
|
+
class Zs extends Ft {
|
|
4533
4533
|
constructor(e) {
|
|
4534
4534
|
super({
|
|
4535
4535
|
type: "object",
|
|
@@ -4558,7 +4558,7 @@ class Zs extends Pt {
|
|
|
4558
4558
|
context: n.context,
|
|
4559
4559
|
parent: u
|
|
4560
4560
|
});
|
|
4561
|
-
let h = d instanceof
|
|
4561
|
+
let h = d instanceof Ft ? d.spec : void 0, y = h == null ? void 0 : h.strict;
|
|
4562
4562
|
if (h != null && h.strip) {
|
|
4563
4563
|
c = c || f in r;
|
|
4564
4564
|
continue;
|
|
@@ -4760,7 +4760,7 @@ class Zs extends Pt {
|
|
|
4760
4760
|
}
|
|
4761
4761
|
ti.prototype = Zs.prototype;
|
|
4762
4762
|
function ni(t, e, n) {
|
|
4763
|
-
const o = new
|
|
4763
|
+
const o = new Dt();
|
|
4764
4764
|
let r = O({});
|
|
4765
4765
|
const i = O({}), a = O({});
|
|
4766
4766
|
let l = O([]);
|
|
@@ -5024,7 +5024,7 @@ const hf = {
|
|
|
5024
5024
|
addRecord: a,
|
|
5025
5025
|
updateRecord: l,
|
|
5026
5026
|
deleteRecord: u
|
|
5027
|
-
} =
|
|
5027
|
+
} = Dt(), s = t, c = O({});
|
|
5028
5028
|
let f = O("");
|
|
5029
5029
|
const d = e;
|
|
5030
5030
|
ze(() => {
|
|
@@ -5055,7 +5055,7 @@ const hf = {
|
|
|
5055
5055
|
L(k, {
|
|
5056
5056
|
modelValue: G(f),
|
|
5057
5057
|
"onUpdate:modelValue": [
|
|
5058
|
-
y[0] || (y[0] = (S) =>
|
|
5058
|
+
y[0] || (y[0] = (S) => Wt(f) ? f.value = S : f = S),
|
|
5059
5059
|
m
|
|
5060
5060
|
],
|
|
5061
5061
|
"item-value": t.relatedEntityColumn,
|
|
@@ -5088,7 +5088,7 @@ const hf = {
|
|
|
5088
5088
|
style: { "font-weight": "700", "font-size": "1.25rem" }
|
|
5089
5089
|
}, Ef = {
|
|
5090
5090
|
__name: "EntityDialog",
|
|
5091
|
-
props: /* @__PURE__ */
|
|
5091
|
+
props: /* @__PURE__ */ He({
|
|
5092
5092
|
entityName: {
|
|
5093
5093
|
type: String,
|
|
5094
5094
|
required: !0
|
|
@@ -5101,9 +5101,9 @@ const hf = {
|
|
|
5101
5101
|
showForm: {},
|
|
5102
5102
|
showFormModifiers: {}
|
|
5103
5103
|
}),
|
|
5104
|
-
emits: /* @__PURE__ */
|
|
5104
|
+
emits: /* @__PURE__ */ He(["onSaveDialog"], ["update:showForm"]),
|
|
5105
5105
|
setup(t, { emit: e }) {
|
|
5106
|
-
const n =
|
|
5106
|
+
const n = tt(t, "showForm"), o = e, { formData: r, columns: i, errors: a, backendErrors: l, clearErrors: u, saveRecord: s, fetchAllRecords: c, fetchRecord: f } = ni(t.entityName, t.recordId, o);
|
|
5107
5107
|
return ze(() => {
|
|
5108
5108
|
t.recordId ? f() : c();
|
|
5109
5109
|
}), (d, p) => {
|
|
@@ -5174,7 +5174,7 @@ const hf = {
|
|
|
5174
5174
|
}
|
|
5175
5175
|
}, $f = {
|
|
5176
5176
|
__name: "DeleteConfirmationDialog",
|
|
5177
|
-
props: /* @__PURE__ */
|
|
5177
|
+
props: /* @__PURE__ */ He({
|
|
5178
5178
|
entityName: {
|
|
5179
5179
|
type: String,
|
|
5180
5180
|
required: !0
|
|
@@ -5187,9 +5187,9 @@ const hf = {
|
|
|
5187
5187
|
showDeleteDialog: {},
|
|
5188
5188
|
showDeleteDialogModifiers: {}
|
|
5189
5189
|
}),
|
|
5190
|
-
emits: /* @__PURE__ */
|
|
5190
|
+
emits: /* @__PURE__ */ He(["onDeleteItem"], ["update:showDeleteDialog"]),
|
|
5191
5191
|
setup(t, { emit: e }) {
|
|
5192
|
-
const n = new
|
|
5192
|
+
const n = new Dt(), o = tt(t, "showDeleteDialog"), r = e, i = async () => {
|
|
5193
5193
|
try {
|
|
5194
5194
|
const a = await n.deleteRecord(t.entityName, t.recordId);
|
|
5195
5195
|
a && a.response && r("onDeleteItem");
|
|
@@ -5279,7 +5279,7 @@ function er(t) {
|
|
|
5279
5279
|
function Oe(t) {
|
|
5280
5280
|
return !kn(t);
|
|
5281
5281
|
}
|
|
5282
|
-
function
|
|
5282
|
+
function jt(t, e) {
|
|
5283
5283
|
if (!t || !e)
|
|
5284
5284
|
return null;
|
|
5285
5285
|
try {
|
|
@@ -5305,7 +5305,7 @@ function Ut(t, e) {
|
|
|
5305
5305
|
return null;
|
|
5306
5306
|
}
|
|
5307
5307
|
function nl(t, e, n) {
|
|
5308
|
-
return n ?
|
|
5308
|
+
return n ? jt(t, n) === jt(e, n) : Rf(t, e);
|
|
5309
5309
|
}
|
|
5310
5310
|
function qi(t, e) {
|
|
5311
5311
|
let n = -1;
|
|
@@ -5317,7 +5317,7 @@ function qi(t, e) {
|
|
|
5317
5317
|
}
|
|
5318
5318
|
return n;
|
|
5319
5319
|
}
|
|
5320
|
-
function
|
|
5320
|
+
function Pt(t, e = !0) {
|
|
5321
5321
|
return t instanceof Object && t.constructor === Object && (e || Object.keys(t).length !== 0);
|
|
5322
5322
|
}
|
|
5323
5323
|
function wt(t, ...e) {
|
|
@@ -5331,7 +5331,7 @@ function Ct(t) {
|
|
|
5331
5331
|
}
|
|
5332
5332
|
function oi(t, e = "", n = {}) {
|
|
5333
5333
|
const o = Ct(e).split("."), r = o.shift();
|
|
5334
|
-
return r ?
|
|
5334
|
+
return r ? Pt(t) ? oi(wt(t[Object.keys(t).find((i) => Ct(i) === r) || ""], n), o.join("."), n) : void 0 : wt(t, n);
|
|
5335
5335
|
}
|
|
5336
5336
|
function tr(t, e = !0) {
|
|
5337
5337
|
return Array.isArray(t) && (e || t.length !== 0);
|
|
@@ -5342,7 +5342,7 @@ function Af(t) {
|
|
|
5342
5342
|
function Ff(t = "") {
|
|
5343
5343
|
return Oe(t) && t.length === 1 && !!t.match(/\S| /);
|
|
5344
5344
|
}
|
|
5345
|
-
function
|
|
5345
|
+
function Ht(t, e) {
|
|
5346
5346
|
if (e) {
|
|
5347
5347
|
const n = e.test(t);
|
|
5348
5348
|
return e.lastIndex = 0, n;
|
|
@@ -5353,7 +5353,7 @@ function Ki(...t) {
|
|
|
5353
5353
|
const e = (n = {}, o = {}) => {
|
|
5354
5354
|
const r = Bf({}, n);
|
|
5355
5355
|
return Object.keys(o).forEach((i) => {
|
|
5356
|
-
|
|
5356
|
+
Pt(o[i]) && i in n && Pt(n[i]) ? r[i] = e(n[i], o[i]) : r[i] = o[i];
|
|
5357
5357
|
}), r;
|
|
5358
5358
|
};
|
|
5359
5359
|
return t.reduce((n, o, r) => r === 0 ? o : e(n, o), {});
|
|
@@ -5506,7 +5506,7 @@ var Lf = {
|
|
|
5506
5506
|
var c = Yi(n), f;
|
|
5507
5507
|
try {
|
|
5508
5508
|
for (c.s(); !(f = c.n()).done; ) {
|
|
5509
|
-
var d = f.value, p =
|
|
5509
|
+
var d = f.value, p = jt(s, d);
|
|
5510
5510
|
if (this.filters[r](p, o, i)) {
|
|
5511
5511
|
a.push(s);
|
|
5512
5512
|
break;
|
|
@@ -5708,7 +5708,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
5708
5708
|
), Te(() => c.value, (se) => {
|
|
5709
5709
|
!W.value && se && se.length && (P(se), W.value = !0);
|
|
5710
5710
|
}, { immediate: !0 }), (se, de) => {
|
|
5711
|
-
const we = K("Button"), Se = K("Toolbar"), Ne = K("ProgressSpinner"), pt = K("InputIcon"),
|
|
5711
|
+
const we = K("Button"), Se = K("Toolbar"), Ne = K("ProgressSpinner"), pt = K("InputIcon"), ot = K("IconField"), kt = K("DatePicker"), ht = K("InputNumber"), te = K("Checkbox"), H = K("Column"), $e = K("DataTable");
|
|
5712
5712
|
return b(), C(ue, null, [
|
|
5713
5713
|
w("div", nn(go(se.$attrs)), [
|
|
5714
5714
|
me(se.$slots, "header"),
|
|
@@ -5781,7 +5781,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
5781
5781
|
]),
|
|
5782
5782
|
header: Q(() => [
|
|
5783
5783
|
w("div", jf, [
|
|
5784
|
-
L(
|
|
5784
|
+
L(ot, {
|
|
5785
5785
|
iconPosition: "left",
|
|
5786
5786
|
class: "block mt-2 md:mt-0"
|
|
5787
5787
|
}, {
|
|
@@ -5794,7 +5794,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
5794
5794
|
class: "w-full sm:w-auto",
|
|
5795
5795
|
onKeyup: de[3] || (de[3] = Ur((Be) => G(I)(), ["enter"])),
|
|
5796
5796
|
modelValue: G(T),
|
|
5797
|
-
"onUpdate:modelValue": de[4] || (de[4] = (Be) =>
|
|
5797
|
+
"onUpdate:modelValue": de[4] || (de[4] = (Be) => Wt(T) ? T.value = Be : null),
|
|
5798
5798
|
placeholder: "Search..."
|
|
5799
5799
|
}, null, 8, ["modelValue"])
|
|
5800
5800
|
]),
|
|
@@ -6013,7 +6013,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6013
6013
|
class: "pi pi-exclamation-circle"
|
|
6014
6014
|
}, Sp = { class: "flex flex-col justify-center" }, Cp = { class: "flex flex-row justify-between items-center" }, Op = { class: "justify-start" }, Ep = { class: "justify-start" }, $p = {
|
|
6015
6015
|
__name: "EntityLookup",
|
|
6016
|
-
props: /* @__PURE__ */
|
|
6016
|
+
props: /* @__PURE__ */ He({
|
|
6017
6017
|
linkedEntity: {
|
|
6018
6018
|
type: Object,
|
|
6019
6019
|
required: !0
|
|
@@ -6036,7 +6036,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6036
6036
|
emits: ["update:modelValue"],
|
|
6037
6037
|
setup(t) {
|
|
6038
6038
|
vn();
|
|
6039
|
-
const e = t, n =
|
|
6039
|
+
const e = t, n = tt(t, "modelValue"), o = new Dt(), r = O({}), i = O([]), a = O({}), l = O([]), u = O([]), s = O({}), c = O("id"), f = O(1), d = O([]), p = O(25), m = O(0), g = O(0), h = O(0);
|
|
6040
6040
|
let y = O([]);
|
|
6041
6041
|
const k = O(!1), S = {
|
|
6042
6042
|
gt: "GREATER_THAN",
|
|
@@ -6158,7 +6158,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6158
6158
|
value: H.field
|
|
6159
6159
|
})), ce = (te) => {
|
|
6160
6160
|
let H = "";
|
|
6161
|
-
switch (
|
|
6161
|
+
switch (ot(te.columnName).toLowerCase()) {
|
|
6162
6162
|
case "string":
|
|
6163
6163
|
case "uuid":
|
|
6164
6164
|
H = "startsWith";
|
|
@@ -6178,7 +6178,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6178
6178
|
}
|
|
6179
6179
|
te.operator = H, te.value = "";
|
|
6180
6180
|
}, ye = (te) => {
|
|
6181
|
-
const H =
|
|
6181
|
+
const H = ot(te.columnName);
|
|
6182
6182
|
switch (H && H.toLowerCase()) {
|
|
6183
6183
|
case "integer":
|
|
6184
6184
|
case "int":
|
|
@@ -6198,7 +6198,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6198
6198
|
return q;
|
|
6199
6199
|
}, ve = (te) => {
|
|
6200
6200
|
if (te && te.columnName) {
|
|
6201
|
-
const H =
|
|
6201
|
+
const H = ot(te.columnName);
|
|
6202
6202
|
return kt(H);
|
|
6203
6203
|
} else return "";
|
|
6204
6204
|
}, se = () => {
|
|
@@ -6218,7 +6218,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6218
6218
|
y.value = [];
|
|
6219
6219
|
for (let H = 0; H < te.length; H++) {
|
|
6220
6220
|
const $e = te[H];
|
|
6221
|
-
delete $e.editing, $e.columnName && $e.operator && $e.value && ($e.columnType =
|
|
6221
|
+
delete $e.editing, $e.columnName && $e.operator && $e.value && ($e.columnType = ot($e.columnName), $e.operator = S[$e.operator], y.value.push($e));
|
|
6222
6222
|
}
|
|
6223
6223
|
I();
|
|
6224
6224
|
}, Ne = (te) => te.map((H) => ({
|
|
@@ -6231,7 +6231,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6231
6231
|
displayFormat: H.displayFormat
|
|
6232
6232
|
})), pt = () => {
|
|
6233
6233
|
I();
|
|
6234
|
-
},
|
|
6234
|
+
}, ot = (te) => {
|
|
6235
6235
|
const H = u.value.find(($e) => $e.field === te);
|
|
6236
6236
|
return H ? H.datatype : null;
|
|
6237
6237
|
}, kt = (te) => {
|
|
@@ -6252,8 +6252,8 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6252
6252
|
p.value = te.rows, m.value = te.page, h.value = te.first, I();
|
|
6253
6253
|
};
|
|
6254
6254
|
return (te, H) => {
|
|
6255
|
-
var
|
|
6256
|
-
const $e = K("InputIcon"), Be = K("InputText"), _e = K("IconField"), Re = K("Select"), Me = K("Divider"), st = K("InputNumber"), Tt = K("DatePicker"), Ye = K("Button"), lt = K("Checkbox"), bt = K("Paginator"),
|
|
6255
|
+
var Kt, ln;
|
|
6256
|
+
const $e = K("InputIcon"), Be = K("InputText"), _e = K("IconField"), Re = K("Select"), Me = K("Divider"), st = K("InputNumber"), Tt = K("DatePicker"), Ye = K("Button"), lt = K("Checkbox"), bt = K("Paginator"), qt = Hr("tooltip");
|
|
6257
6257
|
return b(), C(ue, null, [
|
|
6258
6258
|
w("div", Gf, [
|
|
6259
6259
|
w("div", Yf, [
|
|
@@ -6325,14 +6325,14 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6325
6325
|
w("div", ap, [
|
|
6326
6326
|
L(Re, {
|
|
6327
6327
|
modelValue: fe.columnName,
|
|
6328
|
-
"onUpdate:modelValue": (
|
|
6328
|
+
"onUpdate:modelValue": (We) => fe.columnName = We,
|
|
6329
6329
|
options: J(xt),
|
|
6330
6330
|
optionLabel: "label",
|
|
6331
6331
|
placeholder: "Select column",
|
|
6332
6332
|
optionValue: "value",
|
|
6333
6333
|
highlightOnSelect: !1,
|
|
6334
6334
|
class: "w-full",
|
|
6335
|
-
onChange: (
|
|
6335
|
+
onChange: (We) => ce(fe)
|
|
6336
6336
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange"])
|
|
6337
6337
|
])
|
|
6338
6338
|
]),
|
|
@@ -6341,7 +6341,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6341
6341
|
w("div", lp, [
|
|
6342
6342
|
L(Re, {
|
|
6343
6343
|
modelValue: fe.operator,
|
|
6344
|
-
"onUpdate:modelValue": (
|
|
6344
|
+
"onUpdate:modelValue": (We) => fe.operator = We,
|
|
6345
6345
|
options: ye(fe),
|
|
6346
6346
|
optionLabel: "label",
|
|
6347
6347
|
placeholder: "Select operator",
|
|
@@ -6359,19 +6359,19 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6359
6359
|
format: !1,
|
|
6360
6360
|
class: "w-full",
|
|
6361
6361
|
modelValue: fe.value,
|
|
6362
|
-
"onUpdate:modelValue": (
|
|
6362
|
+
"onUpdate:modelValue": (We) => fe.value = We,
|
|
6363
6363
|
placeholder: "Search value"
|
|
6364
6364
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : ve(fe) == "date" ? (b(), z(Tt, {
|
|
6365
6365
|
key: 1,
|
|
6366
6366
|
class: "w-full",
|
|
6367
6367
|
modelValue: fe.value,
|
|
6368
|
-
"onUpdate:modelValue": (
|
|
6368
|
+
"onUpdate:modelValue": (We) => fe.value = We,
|
|
6369
6369
|
dateFormat: "mm/dd/yy",
|
|
6370
6370
|
placeholder: "mm/dd/yyyy"
|
|
6371
6371
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (b(), z(Be, {
|
|
6372
6372
|
key: 2,
|
|
6373
6373
|
modelValue: fe.value,
|
|
6374
|
-
"onUpdate:modelValue": (
|
|
6374
|
+
"onUpdate:modelValue": (We) => fe.value = We,
|
|
6375
6375
|
class: "w-full",
|
|
6376
6376
|
placeholder: "Search value"
|
|
6377
6377
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
@@ -6383,14 +6383,14 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6383
6383
|
label: "Hide",
|
|
6384
6384
|
icon: "",
|
|
6385
6385
|
severity: "warning",
|
|
6386
|
-
onClick: (
|
|
6386
|
+
onClick: (We) => we(fe)
|
|
6387
6387
|
}, null, 8, ["onClick"]),
|
|
6388
6388
|
L(Ye, {
|
|
6389
6389
|
style: { width: "100px" },
|
|
6390
6390
|
label: "Delete",
|
|
6391
6391
|
icon: "",
|
|
6392
6392
|
severity: "danger",
|
|
6393
|
-
onClick: (
|
|
6393
|
+
onClick: (We) => de(xt)
|
|
6394
6394
|
}, null, 8, ["onClick"])
|
|
6395
6395
|
])
|
|
6396
6396
|
])) : j("", !0),
|
|
@@ -6415,7 +6415,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6415
6415
|
label: "Edit",
|
|
6416
6416
|
icon: "",
|
|
6417
6417
|
severity: "info",
|
|
6418
|
-
onClick: (
|
|
6418
|
+
onClick: (We) => we(fe)
|
|
6419
6419
|
}, null, 8, ["onClick"])
|
|
6420
6420
|
])
|
|
6421
6421
|
]))
|
|
@@ -6441,7 +6441,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6441
6441
|
])
|
|
6442
6442
|
])) : j("", !0),
|
|
6443
6443
|
w("div", bp, [
|
|
6444
|
-
w("div", yp, ne((
|
|
6444
|
+
w("div", yp, ne((Kt = r.value) == null ? void 0 : Kt.totalRecords), 1),
|
|
6445
6445
|
w("div", vp, ne((ln = r.value) == null ? void 0 : ln.entityName), 1)
|
|
6446
6446
|
]),
|
|
6447
6447
|
(b(!0), C(ue, null, Pe(r.value.result, (fe, xt) => (b(), C("div", { key: xt }, [
|
|
@@ -6449,7 +6449,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6449
6449
|
L(lt, {
|
|
6450
6450
|
disabled: B(fe[s.value.name]),
|
|
6451
6451
|
modelValue: i.value,
|
|
6452
|
-
"onUpdate:modelValue": H[7] || (H[7] = (
|
|
6452
|
+
"onUpdate:modelValue": H[7] || (H[7] = (We) => i.value = We),
|
|
6453
6453
|
value: fe[s.value.name]
|
|
6454
6454
|
}, null, 8, ["disabled", "modelValue", "value"]),
|
|
6455
6455
|
w("div", kp, [
|
|
@@ -6458,7 +6458,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6458
6458
|
]),
|
|
6459
6459
|
B(fe[s.value.name]) ? Et((b(), C("div", xp, null, 512)), [
|
|
6460
6460
|
[
|
|
6461
|
-
|
|
6461
|
+
qt,
|
|
6462
6462
|
"This record is already associated.",
|
|
6463
6463
|
void 0,
|
|
6464
6464
|
{ left: !0 }
|
|
@@ -6498,12 +6498,12 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6498
6498
|
], 64);
|
|
6499
6499
|
};
|
|
6500
6500
|
}
|
|
6501
|
-
}, _p = /* @__PURE__ */
|
|
6501
|
+
}, _p = /* @__PURE__ */ nt($p, [["__scopeId", "data-v-a358808d"]]), Tp = { class: "field flex flex-col" }, Ip = {
|
|
6502
6502
|
key: 0,
|
|
6503
6503
|
class: "flex items-center"
|
|
6504
6504
|
}, Bp = { key: 1 }, Rp = { class: "flex items-center" }, Ap = { class: "flex flex-col justify-center" }, Fp = { class: "flex flex-row justify-between items-center" }, Pp = { class: "justify-start" }, Dp = { class: "justify-start" }, Np = {
|
|
6505
6505
|
__name: "EntityLookupObject",
|
|
6506
|
-
props: /* @__PURE__ */
|
|
6506
|
+
props: /* @__PURE__ */ He({
|
|
6507
6507
|
linkedEntity: {
|
|
6508
6508
|
type: Object,
|
|
6509
6509
|
required: !0
|
|
@@ -6533,7 +6533,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6533
6533
|
addRecord: i,
|
|
6534
6534
|
updateRecord: a,
|
|
6535
6535
|
deleteRecord: l
|
|
6536
|
-
} =
|
|
6536
|
+
} = Dt(), u = t, s = tt(t, "modelValue");
|
|
6537
6537
|
new EntityRecordService();
|
|
6538
6538
|
const c = O({}), f = O({});
|
|
6539
6539
|
let d = O("");
|
|
@@ -6592,7 +6592,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6592
6592
|
return b(), C("div", Tp, [
|
|
6593
6593
|
L(x, {
|
|
6594
6594
|
modelValue: G(d),
|
|
6595
|
-
"onUpdate:modelValue": I[0] || (I[0] = (D) =>
|
|
6595
|
+
"onUpdate:modelValue": I[0] || (I[0] = (D) => Wt(d) ? d.value = D : d = D),
|
|
6596
6596
|
"item-value": p.value.name,
|
|
6597
6597
|
options: c.value.result,
|
|
6598
6598
|
filter: "",
|
|
@@ -6637,7 +6637,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6637
6637
|
}
|
|
6638
6638
|
}, Lp = { style: { "font-weight": "700", "font-size": "1.25rem" } }, Vp = { class: "flex flex-col" }, zp = { class: "flex flex-row justify-between items-center" }, Mp = { class: "justify-start" }, jp = { class: "justify-start" }, Up = "", Hp = {
|
|
6639
6639
|
__name: "CreateRelatedentity",
|
|
6640
|
-
props: /* @__PURE__ */
|
|
6640
|
+
props: /* @__PURE__ */ He({
|
|
6641
6641
|
entity360Id: {
|
|
6642
6642
|
required: !0
|
|
6643
6643
|
},
|
|
@@ -6653,9 +6653,9 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6653
6653
|
showCreateRelatedEntityForm: {},
|
|
6654
6654
|
showCreateRelatedEntityFormModifiers: {}
|
|
6655
6655
|
}),
|
|
6656
|
-
emits: /* @__PURE__ */
|
|
6656
|
+
emits: /* @__PURE__ */ He(["onSaveDialog"], ["update:showCreateRelatedEntityForm"]),
|
|
6657
6657
|
setup(t, { emit: e }) {
|
|
6658
|
-
const n =
|
|
6658
|
+
const n = tt(t, "showCreateRelatedEntityForm");
|
|
6659
6659
|
vn();
|
|
6660
6660
|
const o = t, r = o.linkedEntity.entityName, i = e, a = O("Add existing");
|
|
6661
6661
|
ze(() => {
|
|
@@ -6898,7 +6898,7 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
6898
6898
|
], 64);
|
|
6899
6899
|
};
|
|
6900
6900
|
}
|
|
6901
|
-
}, em = /* @__PURE__ */
|
|
6901
|
+
}, em = /* @__PURE__ */ nt(Zp, [["__scopeId", "data-v-412eec44"]]), tm = { key: 0 }, nm = { class: "flex" }, om = { class: "p-3 mt-3 flex-col items-center" }, rm = {
|
|
6902
6902
|
key: 0,
|
|
6903
6903
|
class: "pi pi-caret-right"
|
|
6904
6904
|
}, im = {
|
|
@@ -7152,10 +7152,10 @@ const Vf = { key: 0 }, zf = { key: 1 }, ri = {
|
|
|
7152
7152
|
], 64));
|
|
7153
7153
|
};
|
|
7154
7154
|
}
|
|
7155
|
-
}, Ji = /* @__PURE__ */
|
|
7155
|
+
}, Ji = /* @__PURE__ */ nt(vm, [["__scopeId", "data-v-12a444f4"]]);
|
|
7156
7156
|
function nr() {
|
|
7157
|
-
const t = new
|
|
7158
|
-
let { errors: e, setErrors: n } = Ws(), o =
|
|
7157
|
+
const t = new Dt();
|
|
7158
|
+
let { errors: e, setErrors: n } = Ws(), o = At({
|
|
7159
7159
|
data: null
|
|
7160
7160
|
});
|
|
7161
7161
|
const r = (I) => {
|
|
@@ -7333,9 +7333,9 @@ const or = {
|
|
|
7333
7333
|
showDeleteDialog: {},
|
|
7334
7334
|
showDeleteDialogModifiers: {}
|
|
7335
7335
|
},
|
|
7336
|
-
emits: /* @__PURE__ */
|
|
7336
|
+
emits: /* @__PURE__ */ He(["onDeleteItem"], ["update:showDeleteDialog"]),
|
|
7337
7337
|
setup(t, { emit: e }) {
|
|
7338
|
-
const n =
|
|
7338
|
+
const n = tt(t, "showDeleteDialog"), o = e, r = (i) => {
|
|
7339
7339
|
o("onDeleteItem", {
|
|
7340
7340
|
remove: i
|
|
7341
7341
|
});
|
|
@@ -7384,7 +7384,7 @@ const or = {
|
|
|
7384
7384
|
style: { "font-weight": "700", "font-size": "1.25rem" }
|
|
7385
7385
|
}, yo = {
|
|
7386
7386
|
__name: "EntityFormDialog",
|
|
7387
|
-
props: /* @__PURE__ */
|
|
7387
|
+
props: /* @__PURE__ */ He({
|
|
7388
7388
|
item: Object
|
|
7389
7389
|
}, {
|
|
7390
7390
|
showEntityForm: {},
|
|
@@ -7392,7 +7392,7 @@ const or = {
|
|
|
7392
7392
|
}),
|
|
7393
7393
|
emits: ["update:showEntityForm"],
|
|
7394
7394
|
setup(t) {
|
|
7395
|
-
const e =
|
|
7395
|
+
const e = tt(t, "showEntityForm"), n = at("entityObject"), o = t;
|
|
7396
7396
|
let r = O([]), i = O({}), a = O([]), l = O(null), u = O({});
|
|
7397
7397
|
ze(() => {
|
|
7398
7398
|
r.value = n.getEntityColumns(n.state.data), o.item ? i.value = JSON.parse(JSON.stringify(o.item)) : i.value = n.getFormData(n.state.data), l.value = n.createValidationSchema();
|
|
@@ -7584,7 +7584,7 @@ const or = {
|
|
|
7584
7584
|
], 64);
|
|
7585
7585
|
};
|
|
7586
7586
|
}
|
|
7587
|
-
}, _m = /* @__PURE__ */
|
|
7587
|
+
}, _m = /* @__PURE__ */ nt($m, [["__scopeId", "data-v-bce4d0f0"]]), Tm = {
|
|
7588
7588
|
__name: "EntityListRecordParent",
|
|
7589
7589
|
props: {
|
|
7590
7590
|
listItemDisplay: String
|
|
@@ -7600,11 +7600,11 @@ const or = {
|
|
|
7600
7600
|
(b(), z(Ue(t.listItemDisplay != null && t.listItemDisplay != "" ? t.listItemDisplay : _m), ie({ ref_for: !0 }, { item: i }), null, 16))
|
|
7601
7601
|
]))), 128));
|
|
7602
7602
|
}
|
|
7603
|
-
}, Im = /* @__PURE__ */
|
|
7603
|
+
}, Im = /* @__PURE__ */ nt(Tm, [["__scopeId", "data-v-f59ea2d9"]]), Bm = {};
|
|
7604
7604
|
function Rm(t, e) {
|
|
7605
7605
|
return null;
|
|
7606
7606
|
}
|
|
7607
|
-
const Am = /* @__PURE__ */
|
|
7607
|
+
const Am = /* @__PURE__ */ nt(Bm, [["render", Rm]]), Fm = { class: "my-2" }, Pm = { class: "m-0" }, Dm = {
|
|
7608
7608
|
__name: "EntityListHeaderSlot",
|
|
7609
7609
|
setup(t) {
|
|
7610
7610
|
const e = at("entityObject");
|
|
@@ -7629,7 +7629,7 @@ const Am = /* @__PURE__ */ tt(Bm, [["render", Rm]]), Fm = { class: "my-2" }, Pm
|
|
|
7629
7629
|
class: "text-red-500"
|
|
7630
7630
|
}, Qm = { class: "flex flex-col" }, Zm = { class: "flex flex-row justify-between items-center" }, eg = {
|
|
7631
7631
|
__name: "FilterSortSidebar",
|
|
7632
|
-
props: /* @__PURE__ */
|
|
7632
|
+
props: /* @__PURE__ */ He({
|
|
7633
7633
|
headers: Array,
|
|
7634
7634
|
operatorMap: Object,
|
|
7635
7635
|
sortCallback: Function,
|
|
@@ -7648,7 +7648,7 @@ const Am = /* @__PURE__ */ tt(Bm, [["render", Rm]]), Fm = { class: "my-2" }, Pm
|
|
|
7648
7648
|
}),
|
|
7649
7649
|
emits: ["update:sortBy", "update:sortDirection", "update:showFilter", "update:filters"],
|
|
7650
7650
|
setup(t) {
|
|
7651
|
-
const e =
|
|
7651
|
+
const e = tt(t, "sortBy"), n = tt(t, "sortDirection"), o = tt(t, "showFilter"), r = tt(t, "filters"), i = {
|
|
7652
7652
|
GREATER_THAN: "is greater than",
|
|
7653
7653
|
dateAfter: "is after",
|
|
7654
7654
|
EQUAL: "is equals",
|
|
@@ -8224,35 +8224,31 @@ function og() {
|
|
|
8224
8224
|
deleteAppSecurityAccessRule: async (h, y) => await o(`/api/app/v1/${h}/security/rules/${y}`)
|
|
8225
8225
|
};
|
|
8226
8226
|
}
|
|
8227
|
-
const
|
|
8227
|
+
const Gt = O({ role: "", permissions: [""] });
|
|
8228
8228
|
function Fn() {
|
|
8229
8229
|
const t = async () => {
|
|
8230
|
-
console.log("Fetching User Details...",
|
|
8231
|
-
const { getActiveUser: r } = og();
|
|
8232
|
-
if (
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
}
|
|
8237
|
-
console.log("User Details:", Bt.value);
|
|
8238
|
-
const i = {
|
|
8230
|
+
console.log("Fetching User Details...", Gt.value);
|
|
8231
|
+
const { getActiveUser: r } = og(), i = await r();
|
|
8232
|
+
if (i.authorities = ["ROOT_USER"], console.log("Fetched User Details:", i), i && i.authorities && i.authorities.includes("ROOT_USER"))
|
|
8233
|
+
return !0;
|
|
8234
|
+
console.log("User Details:", Gt.value);
|
|
8235
|
+
const a = {
|
|
8239
8236
|
role: "Admin",
|
|
8240
8237
|
permissions: ["user", "Admin", "Entity"]
|
|
8241
8238
|
};
|
|
8242
|
-
|
|
8239
|
+
Gt.value = a, console.log("User Details 1:", Gt.value);
|
|
8243
8240
|
};
|
|
8244
8241
|
return {
|
|
8245
|
-
userDetails:
|
|
8242
|
+
userDetails: Gt,
|
|
8246
8243
|
fetchUserDetails: t,
|
|
8247
|
-
getRole: () =>
|
|
8248
|
-
getPermissions: () =>
|
|
8244
|
+
getRole: () => Gt.value.role,
|
|
8245
|
+
getPermissions: () => Gt.value.permissions,
|
|
8249
8246
|
hasMatchingRoleAndPermissions: async (r = [], i = []) => {
|
|
8250
|
-
const a = Array.isArray(r) ? r : r.split(",").map((
|
|
8251
|
-
await t()
|
|
8252
|
-
|
|
8253
|
-
|
|
8254
|
-
|
|
8255
|
-
return console.log("roleMatches", c), console.log("permissionsMatch", f), c == !0 && f == !1 ? !1 : c && f;
|
|
8247
|
+
const a = Array.isArray(r) ? r : r.split(",").map((p) => p.trim()), l = Array.isArray(i) ? i : i.split(",").map((p) => p.trim());
|
|
8248
|
+
if (await t() === !0)
|
|
8249
|
+
return !0;
|
|
8250
|
+
const { role: s, permissions: c } = Gt.value, f = a.length === 0 || a.some((p) => p === s), d = l.length === 0 || l.some((p) => c.includes(p));
|
|
8251
|
+
return f == !0 && d == !1 ? !1 : f && d;
|
|
8256
8252
|
}
|
|
8257
8253
|
};
|
|
8258
8254
|
}
|
|
@@ -8373,7 +8369,7 @@ const rg = { key: 0 }, ig = ["href"], ag = { key: 1 }, sg = { class: "action-but
|
|
|
8373
8369
|
], 64);
|
|
8374
8370
|
};
|
|
8375
8371
|
}
|
|
8376
|
-
}, ug = /* @__PURE__ */
|
|
8372
|
+
}, ug = /* @__PURE__ */ nt(lg, [["__scopeId", "data-v-26391060"]]), cg = {
|
|
8377
8373
|
key: 0,
|
|
8378
8374
|
class: "error-message"
|
|
8379
8375
|
}, dg = { class: "text-red-500 font-bold" }, fg = { key: 0 }, pg = { key: 1 }, mg = {
|
|
@@ -8416,7 +8412,7 @@ const rg = { key: 0 }, ig = ["href"], ag = { key: 1 }, sg = { class: "action-but
|
|
|
8416
8412
|
tn("entityObject", o);
|
|
8417
8413
|
const i = n, a = t;
|
|
8418
8414
|
console.log("props externalFilterPayload", a.externalFilterPayload);
|
|
8419
|
-
const l = O([]), u = O(!
|
|
8415
|
+
const l = O([]), u = O(!0), { hasMatchingRoleAndPermissions: s } = Fn();
|
|
8420
8416
|
return ze(async () => {
|
|
8421
8417
|
u.value = await s(a.roles, a.permissions);
|
|
8422
8418
|
}), a.linkedEntity ? Te(() => a.linkedEntity, (d) => {
|
|
@@ -8489,7 +8485,7 @@ const rg = { key: 0 }, ig = ["href"], ag = { key: 1 }, sg = { class: "action-but
|
|
|
8489
8485
|
], 16)) : (b(), C("p", pg, "You do not have the required permissions to access this feature."));
|
|
8490
8486
|
};
|
|
8491
8487
|
}
|
|
8492
|
-
}, Zi = /* @__PURE__ */
|
|
8488
|
+
}, Zi = /* @__PURE__ */ nt(mg, [["__scopeId", "data-v-54a4aa87"]]), gg = { class: "p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col" }, hg = { class: "flex justify-between items-start gap-4" }, bg = { class: "flex-grow" }, yg = { class: "flex flex-col gap-2" }, vg = { class: "font-bold text-gray-700" }, wg = { class: "text-gray-600" }, kg = { class: "flex flex-col gap-2" }, xg = {
|
|
8493
8489
|
__name: "EntityListingTileSingleRecord",
|
|
8494
8490
|
props: {
|
|
8495
8491
|
item: Object,
|
|
@@ -8590,7 +8586,7 @@ const rg = { key: 0 }, ig = ["href"], ag = { key: 1 }, sg = { class: "action-but
|
|
|
8590
8586
|
], 64);
|
|
8591
8587
|
};
|
|
8592
8588
|
}
|
|
8593
|
-
}, Sg = /* @__PURE__ */
|
|
8589
|
+
}, Sg = /* @__PURE__ */ nt(xg, [["__scopeId", "data-v-c78e676f"]]), Cg = { class: "flex flex-wrap gap-4 p-2" }, Og = {
|
|
8594
8590
|
key: 0,
|
|
8595
8591
|
class: "error-message"
|
|
8596
8592
|
}, Eg = { class: "text-red-500 font-bold" }, $g = { key: 0 }, _g = { key: 1 }, Tg = { class: "flex flex-wrap gap-4 p-4" }, Ig = {
|
|
@@ -8681,7 +8677,7 @@ const rg = { key: 0 }, ig = ["href"], ag = { key: 1 }, sg = { class: "action-but
|
|
|
8681
8677
|
], 16);
|
|
8682
8678
|
};
|
|
8683
8679
|
}
|
|
8684
|
-
}, ea = /* @__PURE__ */
|
|
8680
|
+
}, ea = /* @__PURE__ */ nt(Ig, [["__scopeId", "data-v-037944bc"]]), Bg = { class: "p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col responsive-box" }, Rg = { class: "flex justify-between items-start gap-4" }, Ag = { class: "flex-grow" }, Fg = { class: "flex flex-col gap-2" }, Pg = { class: "font-bold text-gray-700" }, Dg = { class: "text-gray-600" }, Ng = { class: "flex flex-col gap-2" }, Lg = {
|
|
8685
8681
|
__name: "EntityListingCarouselSingleRecord",
|
|
8686
8682
|
props: {
|
|
8687
8683
|
item: Object,
|
|
@@ -8782,7 +8778,7 @@ const rg = { key: 0 }, ig = ["href"], ag = { key: 1 }, sg = { class: "action-but
|
|
|
8782
8778
|
], 64);
|
|
8783
8779
|
};
|
|
8784
8780
|
}
|
|
8785
|
-
}, Vg = /* @__PURE__ */
|
|
8781
|
+
}, Vg = /* @__PURE__ */ nt(Lg, [["__scopeId", "data-v-27c0e644"]]);
|
|
8786
8782
|
/**
|
|
8787
8783
|
* Vue 3 Carousel 0.13.0
|
|
8788
8784
|
* (c) 2025
|
|
@@ -8907,7 +8903,7 @@ function Wg(t) {
|
|
|
8907
8903
|
const a = Math.round(i / r);
|
|
8908
8904
|
return n ? a : -a;
|
|
8909
8905
|
}
|
|
8910
|
-
function
|
|
8906
|
+
function Lt({ val: t, max: e, min: n }) {
|
|
8911
8907
|
return e < n ? t : Math.min(Math.max(t, isNaN(n) ? t : n), isNaN(e) ? t : e);
|
|
8912
8908
|
}
|
|
8913
8909
|
function qg(t) {
|
|
@@ -9176,11 +9172,11 @@ const Xg = Bn({
|
|
|
9176
9172
|
}
|
|
9177
9173
|
}
|
|
9178
9174
|
function J() {
|
|
9179
|
-
!d.wrapAround && l.value > 0 && (p.value =
|
|
9175
|
+
!d.wrapAround && l.value > 0 && (p.value = Lt({
|
|
9180
9176
|
val: p.value,
|
|
9181
9177
|
max: y.value,
|
|
9182
9178
|
min: k.value
|
|
9183
|
-
})), D.value || (d.itemsToShow =
|
|
9179
|
+
})), D.value || (d.itemsToShow = Lt({
|
|
9184
9180
|
val: Number(d.itemsToShow),
|
|
9185
9181
|
max: l.value,
|
|
9186
9182
|
min: 1
|
|
@@ -9213,7 +9209,7 @@ const Xg = Bn({
|
|
|
9213
9209
|
de.value = !1, i.cleanup(), T && clearTimeout(T), ye && cancelAnimationFrame(ye), S && clearInterval(S), B && (B.disconnect(), B = null), typeof document < "u" && $e(), u.value && (u.value.removeEventListener("transitionend", V), u.value.removeEventListener("animationiteration", V));
|
|
9214
9210
|
});
|
|
9215
9211
|
let we = !1;
|
|
9216
|
-
const Se = { x: 0, y: 0 }, Ne =
|
|
9212
|
+
const Se = { x: 0, y: 0 }, Ne = At({ x: 0, y: 0 }), pt = O(!1), ot = O(!1), kt = () => {
|
|
9217
9213
|
pt.value = !0;
|
|
9218
9214
|
}, ht = () => {
|
|
9219
9215
|
pt.value = !1;
|
|
@@ -9222,11 +9218,11 @@ const Xg = Bn({
|
|
|
9222
9218
|
switch (N.key) {
|
|
9223
9219
|
case "ArrowLeft":
|
|
9224
9220
|
case "ArrowUp":
|
|
9225
|
-
E.value === N.key.endsWith("Up") && (v.value ? bt(!0) :
|
|
9221
|
+
E.value === N.key.endsWith("Up") && (v.value ? bt(!0) : qt(!0));
|
|
9226
9222
|
break;
|
|
9227
9223
|
case "ArrowRight":
|
|
9228
9224
|
case "ArrowDown":
|
|
9229
|
-
E.value === N.key.endsWith("Down") && (v.value ?
|
|
9225
|
+
E.value === N.key.endsWith("Down") && (v.value ? qt(!0) : bt(!0));
|
|
9230
9226
|
break;
|
|
9231
9227
|
}
|
|
9232
9228
|
}, 200), H = () => {
|
|
@@ -9243,7 +9239,7 @@ const Xg = Bn({
|
|
|
9243
9239
|
document.addEventListener(ae, _e, { passive: !1 }), document.addEventListener(re, Re, { passive: !0 });
|
|
9244
9240
|
}
|
|
9245
9241
|
const _e = yr((N) => {
|
|
9246
|
-
|
|
9242
|
+
ot.value = !0;
|
|
9247
9243
|
const Z = "touches" in N ? N.touches[0].clientX : N.clientX, ae = "touches" in N ? N.touches[0].clientY : N.clientY;
|
|
9248
9244
|
Ne.x = Z - Se.x, Ne.y = ae - Se.y;
|
|
9249
9245
|
const re = Wg({
|
|
@@ -9252,7 +9248,7 @@ const Xg = Bn({
|
|
|
9252
9248
|
dragged: Ne,
|
|
9253
9249
|
effectiveSlideSize: I.value
|
|
9254
9250
|
});
|
|
9255
|
-
m.value = d.wrapAround ? p.value + re :
|
|
9251
|
+
m.value = d.wrapAround ? p.value + re : Lt({
|
|
9256
9252
|
val: p.value + re,
|
|
9257
9253
|
max: y.value,
|
|
9258
9254
|
min: k.value
|
|
@@ -9265,7 +9261,7 @@ const Xg = Bn({
|
|
|
9265
9261
|
};
|
|
9266
9262
|
window.addEventListener("click", ae);
|
|
9267
9263
|
}
|
|
9268
|
-
lt(m.value), Ne.x = 0, Ne.y = 0,
|
|
9264
|
+
lt(m.value), Ne.x = 0, Ne.y = 0, ot.value = !1;
|
|
9269
9265
|
const N = we ? "touchmove" : "mousemove", Z = we ? "touchend" : "mouseup";
|
|
9270
9266
|
document.removeEventListener(N, _e), document.removeEventListener(Z, Re);
|
|
9271
9267
|
}
|
|
@@ -9289,7 +9285,7 @@ const Xg = Bn({
|
|
|
9289
9285
|
val: ae,
|
|
9290
9286
|
max: y.value,
|
|
9291
9287
|
min: k.value
|
|
9292
|
-
}) : ae =
|
|
9288
|
+
}) : ae = Lt({
|
|
9293
9289
|
val: ae,
|
|
9294
9290
|
max: y.value,
|
|
9295
9291
|
min: k.value
|
|
@@ -9312,10 +9308,10 @@ const Xg = Bn({
|
|
|
9312
9308
|
function bt(N = !1) {
|
|
9313
9309
|
lt(p.value + d.itemsToScroll, N);
|
|
9314
9310
|
}
|
|
9315
|
-
function
|
|
9311
|
+
function qt(N = !1) {
|
|
9316
9312
|
lt(p.value - d.itemsToScroll, N);
|
|
9317
9313
|
}
|
|
9318
|
-
function
|
|
9314
|
+
function Kt() {
|
|
9319
9315
|
F(), J(), V(), Tt();
|
|
9320
9316
|
}
|
|
9321
9317
|
Te(() => [f.value, t.breakpoints], () => F(), { deep: !0 }), Te(() => t.autoplay, () => Tt());
|
|
@@ -9333,7 +9329,7 @@ const Xg = Bn({
|
|
|
9333
9329
|
before: Math.max(0, ae),
|
|
9334
9330
|
after: Math.max(0, re)
|
|
9335
9331
|
};
|
|
9336
|
-
}), xt = ee(() => fe.value.before ? D.value ? W.value.slice(-1 * fe.value.before).reduce((N, Z) => N + Z[R.value] + d.gap, 0) * -1 : fe.value.before * I.value * -1 : 0),
|
|
9332
|
+
}), xt = ee(() => fe.value.before ? D.value ? W.value.slice(-1 * fe.value.before).reduce((N, Z) => N + Z[R.value] + d.gap, 0) * -1 : fe.value.before * I.value * -1 : 0), We = ee(() => {
|
|
9337
9333
|
var N;
|
|
9338
9334
|
if (D.value) {
|
|
9339
9335
|
const Z = (p.value % a.length + a.length) % a.length;
|
|
@@ -9350,17 +9346,17 @@ const Xg = Bn({
|
|
|
9350
9346
|
}), $ = ee(() => {
|
|
9351
9347
|
let N = 0;
|
|
9352
9348
|
if (D.value) {
|
|
9353
|
-
if (p.value < 0 ? N = W.value.slice(p.value).reduce((Z, ae) => Z + ae[R.value] + d.gap, 0) * -1 : N = W.value.slice(0, p.value).reduce((Z, ae) => Z + ae[R.value] + d.gap, 0), N -=
|
|
9349
|
+
if (p.value < 0 ? N = W.value.slice(p.value).reduce((Z, ae) => Z + ae[R.value] + d.gap, 0) * -1 : N = W.value.slice(0, p.value).reduce((Z, ae) => Z + ae[R.value] + d.gap, 0), N -= We.value, !d.wrapAround) {
|
|
9354
9350
|
const Z = W.value.reduce((ae, re) => ae + re[R.value] + d.gap, 0) - q.value[R.value] - d.gap;
|
|
9355
|
-
N =
|
|
9351
|
+
N = Lt({
|
|
9356
9352
|
val: N,
|
|
9357
9353
|
max: Z,
|
|
9358
9354
|
min: 0
|
|
9359
9355
|
});
|
|
9360
9356
|
}
|
|
9361
9357
|
} else {
|
|
9362
|
-
let Z = p.value -
|
|
9363
|
-
d.wrapAround || (Z =
|
|
9358
|
+
let Z = p.value - We.value;
|
|
9359
|
+
d.wrapAround || (Z = Lt({
|
|
9364
9360
|
val: Z,
|
|
9365
9361
|
max: l.value - +d.itemsToShow,
|
|
9366
9362
|
min: 0
|
|
@@ -9370,17 +9366,17 @@ const Xg = Bn({
|
|
|
9370
9366
|
}), _ = ee(() => {
|
|
9371
9367
|
var N, Z;
|
|
9372
9368
|
if (!D.value) {
|
|
9373
|
-
const ge = p.value -
|
|
9369
|
+
const ge = p.value - We.value;
|
|
9374
9370
|
return d.wrapAround ? {
|
|
9375
9371
|
min: Math.floor(ge),
|
|
9376
9372
|
max: Math.ceil(ge + Number(d.itemsToShow) - 1)
|
|
9377
9373
|
} : {
|
|
9378
|
-
min: Math.floor(
|
|
9374
|
+
min: Math.floor(Lt({
|
|
9379
9375
|
val: ge,
|
|
9380
9376
|
max: l.value - Number(d.itemsToShow),
|
|
9381
9377
|
min: 0
|
|
9382
9378
|
})),
|
|
9383
|
-
max: Math.ceil(
|
|
9379
|
+
max: Math.ceil(Lt({
|
|
9384
9380
|
val: ge + Number(d.itemsToShow) - 1,
|
|
9385
9381
|
max: l.value - 1,
|
|
9386
9382
|
min: 0
|
|
@@ -9419,7 +9415,7 @@ const Xg = Bn({
|
|
|
9419
9415
|
let re = 0;
|
|
9420
9416
|
D.value ? re = W.value.reduce((Le, et) => Le + et[R.value], 0) : re = (l.value - Number(d.itemsToShow)) * I.value;
|
|
9421
9417
|
const ge = v.value ? 0 : -1 * re, Ae = v.value ? re : 0;
|
|
9422
|
-
ae =
|
|
9418
|
+
ae = Lt({
|
|
9423
9419
|
val: ae,
|
|
9424
9420
|
min: ge,
|
|
9425
9421
|
max: Ae
|
|
@@ -9431,7 +9427,7 @@ const Xg = Bn({
|
|
|
9431
9427
|
"--vc-slide-gap": Eo(d.gap),
|
|
9432
9428
|
"--vc-carousel-height": Eo(d.height),
|
|
9433
9429
|
"--vc-cloned-offset": Eo(xt.value)
|
|
9434
|
-
})), pe = { slideTo: lt, next: bt, prev:
|
|
9430
|
+
})), pe = { slideTo: lt, next: bt, prev: qt }, he = At({
|
|
9435
9431
|
activeSlide: m,
|
|
9436
9432
|
config: d,
|
|
9437
9433
|
currentSlide: p,
|
|
@@ -9449,7 +9445,7 @@ const Xg = Bn({
|
|
|
9449
9445
|
visibleRange: _
|
|
9450
9446
|
});
|
|
9451
9447
|
tn(yn, he);
|
|
9452
|
-
const le =
|
|
9448
|
+
const le = At({
|
|
9453
9449
|
config: d,
|
|
9454
9450
|
currentSlide: p,
|
|
9455
9451
|
maxSlide: y,
|
|
@@ -9462,8 +9458,8 @@ const Xg = Bn({
|
|
|
9462
9458
|
data: le,
|
|
9463
9459
|
nav: pe,
|
|
9464
9460
|
next: bt,
|
|
9465
|
-
prev:
|
|
9466
|
-
restartCarousel:
|
|
9461
|
+
prev: qt,
|
|
9462
|
+
restartCarousel: Kt,
|
|
9467
9463
|
slideTo: lt,
|
|
9468
9464
|
updateBreakpointsConfig: F,
|
|
9469
9465
|
updateSlideSize: V,
|
|
@@ -9499,7 +9495,7 @@ const Xg = Bn({
|
|
|
9499
9495
|
{
|
|
9500
9496
|
"is-vertical": E.value,
|
|
9501
9497
|
"is-sliding": Ye.value,
|
|
9502
|
-
"is-dragging":
|
|
9498
|
+
"is-dragging": ot.value,
|
|
9503
9499
|
"is-hover": pt.value
|
|
9504
9500
|
}
|
|
9505
9501
|
],
|
|
@@ -9830,7 +9826,7 @@ const la = Bn({
|
|
|
9830
9826
|
], 64))
|
|
9831
9827
|
], 16));
|
|
9832
9828
|
}
|
|
9833
|
-
}, ua = /* @__PURE__ */
|
|
9829
|
+
}, ua = /* @__PURE__ */ nt(ih, [["__scopeId", "data-v-2c25fd02"]]), cl = 6048e5, ah = 864e5, ca = Symbol.for("constructDateFrom");
|
|
9834
9830
|
function an(t, e) {
|
|
9835
9831
|
return typeof t == "function" ? t(e) : t && typeof t == "object" && ca in t ? t[ca](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
9836
9832
|
}
|
|
@@ -11878,7 +11874,7 @@ const $b = ["onClick"], _b = ["onClick", "href"], Tb = { class: "layout-menuitem
|
|
|
11878
11874
|
], 2)
|
|
11879
11875
|
], 4));
|
|
11880
11876
|
}
|
|
11881
|
-
}, ka = /* @__PURE__ */
|
|
11877
|
+
}, ka = /* @__PURE__ */ nt(Rb, [["__scopeId", "data-v-ca630132"]]), Ab = ["value"], xa = {
|
|
11882
11878
|
__name: "TextInput",
|
|
11883
11879
|
props: {
|
|
11884
11880
|
modelValue: {
|
|
@@ -11944,7 +11940,7 @@ var Fb = Object.defineProperty, Pb = Object.defineProperties, Db = Object.getOwn
|
|
|
11944
11940
|
for (var n of Mo(e))
|
|
11945
11941
|
gl.call(e, n) && Sa(t, n, e[n]);
|
|
11946
11942
|
return t;
|
|
11947
|
-
}, Tn = (t, e) => Pb(t, Db(e)),
|
|
11943
|
+
}, Tn = (t, e) => Pb(t, Db(e)), Vt = (t, e) => {
|
|
11948
11944
|
var n = {};
|
|
11949
11945
|
for (var o in t)
|
|
11950
11946
|
ml.call(t, o) && e.indexOf(o) < 0 && (n[o] = t[o]);
|
|
@@ -11952,12 +11948,12 @@ var Fb = Object.defineProperty, Pb = Object.defineProperties, Db = Object.getOwn
|
|
|
11952
11948
|
for (var o of Mo(t))
|
|
11953
11949
|
e.indexOf(o) < 0 && gl.call(t, o) && (n[o] = t[o]);
|
|
11954
11950
|
return n;
|
|
11955
|
-
}, Nb = ii(),
|
|
11951
|
+
}, Nb = ii(), Mt = Nb;
|
|
11956
11952
|
function Ca(t, e) {
|
|
11957
|
-
tr(t) ? t.push(...e || []) :
|
|
11953
|
+
tr(t) ? t.push(...e || []) : Pt(t) && Object.assign(t, e);
|
|
11958
11954
|
}
|
|
11959
11955
|
function Lb(t) {
|
|
11960
|
-
return
|
|
11956
|
+
return Pt(t) && t.hasOwnProperty("value") && t.hasOwnProperty("type") ? t.value : t;
|
|
11961
11957
|
}
|
|
11962
11958
|
function Vb(t) {
|
|
11963
11959
|
return t.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
@@ -11977,12 +11973,12 @@ function bl(t, e = "", n = "", o = [], r) {
|
|
|
11977
11973
|
const i = /{([^}]*)}/g, a = t.trim();
|
|
11978
11974
|
if (zb(a))
|
|
11979
11975
|
return;
|
|
11980
|
-
if (
|
|
11976
|
+
if (Ht(a, i)) {
|
|
11981
11977
|
const l = a.replaceAll(i, (c) => {
|
|
11982
|
-
const d = c.replace(/{|}/g, "").split(".").filter((p) => !o.some((m) =>
|
|
11978
|
+
const d = c.replace(/{|}/g, "").split(".").filter((p) => !o.some((m) => Ht(p, m)));
|
|
11983
11979
|
return `var(${hl(n, ol(d.join("-")))}${Oe(r) ? `, ${r}` : ""})`;
|
|
11984
11980
|
}), u = /(\d+\s+[\+\-\*\/]\s+\d+)/g, s = /var\([^)]+\)/g;
|
|
11985
|
-
return
|
|
11981
|
+
return Ht(l.replace(s, "0"), u) ? `calc(${l})` : l;
|
|
11986
11982
|
}
|
|
11987
11983
|
return a;
|
|
11988
11984
|
} else if (Af(t))
|
|
@@ -11996,7 +11992,7 @@ function $n(t, e) {
|
|
|
11996
11992
|
}
|
|
11997
11993
|
var Xn = (...t) => jb(Ie.getTheme(), ...t), jb = (t = {}, e, n, o) => {
|
|
11998
11994
|
if (e) {
|
|
11999
|
-
const { variable: r, options: i } = Ie.defaults || {}, { prefix: a, transform: l } = (t == null ? void 0 : t.options) || i || {}, s =
|
|
11995
|
+
const { variable: r, options: i } = Ie.defaults || {}, { prefix: a, transform: l } = (t == null ? void 0 : t.options) || i || {}, s = Ht(e, /{([^}]*)}/g) ? e : `{${e}}`;
|
|
12000
11996
|
return o === "value" || kn(o) && l === "strict" ? Ie.getTokenValue(e) : bl(s, void 0, a, [r.excludedKeyRegex], n);
|
|
12001
11997
|
}
|
|
12002
11998
|
return "";
|
|
@@ -12047,8 +12043,8 @@ var Xn = (...t) => jb(Ie.getTheme(), ...t), jb = (t = {}, e, n, o) => {
|
|
|
12047
12043
|
function Ub(t, e = {}) {
|
|
12048
12044
|
const n = Ie.defaults.variable, { prefix: o = n.prefix, selector: r = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e, a = (s, c = "") => Object.entries(s).reduce(
|
|
12049
12045
|
(f, [d, p]) => {
|
|
12050
|
-
const m =
|
|
12051
|
-
if (
|
|
12046
|
+
const m = Ht(d, i) ? Vr(c) : Vr(c, ol(d)), g = Lb(p);
|
|
12047
|
+
if (Pt(g)) {
|
|
12052
12048
|
const { variables: h, tokens: y } = a(g, m);
|
|
12053
12049
|
Ca(f.tokens, y), Ca(f.variables, h);
|
|
12054
12050
|
} else
|
|
@@ -12113,10 +12109,10 @@ var St = {
|
|
|
12113
12109
|
const { preset: d, options: p } = e;
|
|
12114
12110
|
let m, g, h, y, k, S, T;
|
|
12115
12111
|
if (Oe(d) && p.transform !== "strict") {
|
|
12116
|
-
const { primitive: B, semantic: I, extend: x } = d, v = I || {}, { colorScheme: E } = v, D =
|
|
12112
|
+
const { primitive: B, semantic: I, extend: x } = d, v = I || {}, { colorScheme: E } = v, D = Vt(v, ["colorScheme"]), R = x || {}, { colorScheme: F } = R, U = Vt(R, ["colorScheme"]), X = E || {}, { dark: W } = X, P = Vt(X, ["dark"]), q = F || {}, { dark: Y } = q, V = Vt(q, ["dark"]), J = Oe(B) ? this._toVariables({ primitive: B }, p) : {}, ce = Oe(D) ? this._toVariables({ semantic: D }, p) : {}, ye = Oe(P) ? this._toVariables({ light: P }, p) : {}, ve = Oe(W) ? this._toVariables({ dark: W }, p) : {}, se = Oe(U) ? this._toVariables({ semantic: U }, p) : {}, de = Oe(V) ? this._toVariables({ light: V }, p) : {}, we = Oe(Y) ? this._toVariables({ dark: Y }, p) : {}, [Se, Ne] = [(i = J.declarations) != null ? i : "", J.tokens], [pt, ot] = [(a = ce.declarations) != null ? a : "", ce.tokens || []], [kt, ht] = [(l = ye.declarations) != null ? l : "", ye.tokens || []], [te, H] = [(u = ve.declarations) != null ? u : "", ve.tokens || []], [$e, Be] = [(s = se.declarations) != null ? s : "", se.tokens || []], [_e, Re] = [(c = de.declarations) != null ? c : "", de.tokens || []], [Me, st] = [(f = we.declarations) != null ? f : "", we.tokens || []];
|
|
12117
12113
|
m = this.transformCSS(t, Se, "light", "variable", p, o, r), g = Ne;
|
|
12118
12114
|
const Tt = this.transformCSS(t, `${pt}${kt}`, "light", "variable", p, o, r), Ye = this.transformCSS(t, `${te}`, "dark", "variable", p, o, r);
|
|
12119
|
-
h = `${Tt}${Ye}`, y = [.../* @__PURE__ */ new Set([...
|
|
12115
|
+
h = `${Tt}${Ye}`, y = [.../* @__PURE__ */ new Set([...ot, ...ht, ...H])];
|
|
12120
12116
|
const lt = this.transformCSS(t, `${$e}${_e}color-scheme:light`, "light", "variable", p, o, r), bt = this.transformCSS(t, `${Me}color-scheme:dark`, "dark", "variable", p, o, r);
|
|
12121
12117
|
k = `${lt}${bt}`, S = [.../* @__PURE__ */ new Set([...Be, ...Re, ...st])], T = wt(d.css, { dt: Xn });
|
|
12122
12118
|
}
|
|
@@ -12140,7 +12136,7 @@ var St = {
|
|
|
12140
12136
|
var l, u, s;
|
|
12141
12137
|
let c, f, d;
|
|
12142
12138
|
if (Oe(e) && n.transform !== "strict") {
|
|
12143
|
-
const p = t.replace("-directive", ""), m = e, { colorScheme: g, extend: h, css: y } = m, k =
|
|
12139
|
+
const p = t.replace("-directive", ""), m = e, { colorScheme: g, extend: h, css: y } = m, k = Vt(m, ["colorScheme", "extend", "css"]), S = h || {}, { colorScheme: T } = S, B = Vt(S, ["colorScheme"]), I = g || {}, { dark: x } = I, v = Vt(I, ["dark"]), E = T || {}, { dark: D } = E, R = Vt(E, ["dark"]), F = Oe(k) ? this._toVariables({ [p]: Ve(Ve({}, k), B) }, n) : {}, U = Oe(v) ? this._toVariables({ [p]: Ve(Ve({}, v), R) }, n) : {}, X = Oe(x) ? this._toVariables({ [p]: Ve(Ve({}, x), D) }, n) : {}, [W, P] = [(l = F.declarations) != null ? l : "", F.tokens || []], [q, Y] = [(u = U.declarations) != null ? u : "", U.tokens || []], [V, J] = [(s = X.declarations) != null ? s : "", X.tokens || []], ce = this.transformCSS(p, `${W}${q}`, "light", "variable", n, r, i, a), ye = this.transformCSS(p, V, "dark", "variable", n, r, i, a);
|
|
12144
12140
|
c = `${ce}${ye}`, f = [.../* @__PURE__ */ new Set([...P, ...Y, ...J])], d = wt(y, { dt: Xn });
|
|
12145
12141
|
}
|
|
12146
12142
|
return {
|
|
@@ -12187,8 +12183,8 @@ var St = {
|
|
|
12187
12183
|
},
|
|
12188
12184
|
createTokens(t = {}, e, n = "", o = "", r = {}) {
|
|
12189
12185
|
return Object.entries(t).forEach(([i, a]) => {
|
|
12190
|
-
const l =
|
|
12191
|
-
|
|
12186
|
+
const l = Ht(i, e.variable.excludedKeyRegex) ? n : n ? `${n}.${Gi(i)}` : Gi(i), u = o ? `${o}.${i}` : i;
|
|
12187
|
+
Pt(a) ? this.createTokens(a, e, l, u, r) : (r[l] || (r[l] = {
|
|
12192
12188
|
paths: [],
|
|
12193
12189
|
computed(s, c = {}) {
|
|
12194
12190
|
var f, d;
|
|
@@ -12201,13 +12197,13 @@ var St = {
|
|
|
12201
12197
|
computed(s, c = {}) {
|
|
12202
12198
|
const f = /{([^}]*)}/g;
|
|
12203
12199
|
let d = a;
|
|
12204
|
-
if (c.name = this.path, c.binding || (c.binding = {}),
|
|
12200
|
+
if (c.name = this.path, c.binding || (c.binding = {}), Ht(a, f)) {
|
|
12205
12201
|
const m = a.trim().replaceAll(f, (y) => {
|
|
12206
12202
|
var k;
|
|
12207
12203
|
const S = y.replace(/{|}/g, ""), T = (k = r[S]) == null ? void 0 : k.computed(s, c);
|
|
12208
12204
|
return tr(T) && T.length === 2 ? `light-dark(${T[0].value},${T[1].value})` : T == null ? void 0 : T.value;
|
|
12209
12205
|
}), g = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, h = /var\([^)]+\)/g;
|
|
12210
|
-
d =
|
|
12206
|
+
d = Ht(m.replace(h, "0"), g) ? `calc(${m})` : m;
|
|
12211
12207
|
}
|
|
12212
12208
|
return kn(c.binding) && delete c.binding, {
|
|
12213
12209
|
colorScheme: s,
|
|
@@ -12221,9 +12217,9 @@ var St = {
|
|
|
12221
12217
|
},
|
|
12222
12218
|
getTokenValue(t, e, n) {
|
|
12223
12219
|
var o;
|
|
12224
|
-
const i = ((u) => u.split(".").filter((c) => !
|
|
12220
|
+
const i = ((u) => u.split(".").filter((c) => !Ht(c.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(e), a = e.includes("colorScheme.light") ? "light" : e.includes("colorScheme.dark") ? "dark" : void 0, l = [(o = t[i]) == null ? void 0 : o.computed(a)].flat().filter((u) => u);
|
|
12225
12221
|
return l.length === 1 ? l[0].value : l.reduce((u = {}, s) => {
|
|
12226
|
-
const c = s, { colorScheme: f } = c, d =
|
|
12222
|
+
const c = s, { colorScheme: f } = c, d = Vt(c, ["colorScheme"]);
|
|
12227
12223
|
return u[f] = d, u;
|
|
12228
12224
|
}, void 0);
|
|
12229
12225
|
},
|
|
@@ -12242,7 +12238,7 @@ var St = {
|
|
|
12242
12238
|
name: "primeui",
|
|
12243
12239
|
order: "primeui"
|
|
12244
12240
|
};
|
|
12245
|
-
|
|
12241
|
+
Pt(u) && (s.name = wt(u.name, { name: t, type: o })), Oe(s.name) && (e = $n(`@layer ${s.name}`, e), i == null || i.layerNames(s.name));
|
|
12246
12242
|
}
|
|
12247
12243
|
return e;
|
|
12248
12244
|
}
|
|
@@ -12290,19 +12286,19 @@ var St = {
|
|
|
12290
12286
|
return this.theme;
|
|
12291
12287
|
},
|
|
12292
12288
|
setTheme(t) {
|
|
12293
|
-
this.update({ theme: t }),
|
|
12289
|
+
this.update({ theme: t }), Mt.emit("theme:change", t);
|
|
12294
12290
|
},
|
|
12295
12291
|
getPreset() {
|
|
12296
12292
|
return this.preset;
|
|
12297
12293
|
},
|
|
12298
12294
|
setPreset(t) {
|
|
12299
|
-
this._theme = Tn(Ve({}, this.theme), { preset: t }), this._tokens = St.createTokens(t, this.defaults), this.clearLoadedStyleNames(),
|
|
12295
|
+
this._theme = Tn(Ve({}, this.theme), { preset: t }), this._tokens = St.createTokens(t, this.defaults), this.clearLoadedStyleNames(), Mt.emit("preset:change", t), Mt.emit("theme:change", this.theme);
|
|
12300
12296
|
},
|
|
12301
12297
|
getOptions() {
|
|
12302
12298
|
return this.options;
|
|
12303
12299
|
},
|
|
12304
12300
|
setOptions(t) {
|
|
12305
|
-
this._theme = Tn(Ve({}, this.theme), { options: t }), this.clearLoadedStyleNames(),
|
|
12301
|
+
this._theme = Tn(Ve({}, this.theme), { options: t }), this.clearLoadedStyleNames(), Mt.emit("options:change", t), Mt.emit("theme:change", this.theme);
|
|
12306
12302
|
},
|
|
12307
12303
|
getLayerNames() {
|
|
12308
12304
|
return [...this._layerNames];
|
|
@@ -12362,7 +12358,7 @@ var St = {
|
|
|
12362
12358
|
this._loadingStyles.add(t);
|
|
12363
12359
|
},
|
|
12364
12360
|
onStyleLoaded(t, { name: e }) {
|
|
12365
|
-
this._loadingStyles.size && (this._loadingStyles.delete(e),
|
|
12361
|
+
this._loadingStyles.size && (this._loadingStyles.delete(e), Mt.emit(`theme:${e}:load`, t), !this._loadingStyles.size && Mt.emit("theme:load"));
|
|
12366
12362
|
}
|
|
12367
12363
|
};
|
|
12368
12364
|
function Hb(t) {
|
|
@@ -13259,7 +13255,7 @@ var xn = {
|
|
|
13259
13255
|
_themeChangeListener: function() {
|
|
13260
13256
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
|
|
13261
13257
|
};
|
|
13262
|
-
Qt.clearLoadedStyleNames(),
|
|
13258
|
+
Qt.clearLoadedStyleNames(), Mt.on("theme:change", e);
|
|
13263
13259
|
},
|
|
13264
13260
|
_getHostInstance: function(e) {
|
|
13265
13261
|
return e ? this.$options.hostName ? e.$.type.name === this.$options.hostName ? e : this._getHostInstance(e.$parentInstance) : e.$parentInstance : void 0;
|
|
@@ -13800,7 +13796,7 @@ function G0(t, e) {
|
|
|
13800
13796
|
}
|
|
13801
13797
|
var ke = {
|
|
13802
13798
|
_getMeta: function() {
|
|
13803
|
-
return [
|
|
13799
|
+
return [Pt(arguments.length <= 0 ? void 0 : arguments[0]) || arguments.length <= 0 ? void 0 : arguments[0], wt(Pt(arguments.length <= 0 ? void 0 : arguments[0]) ? arguments.length <= 0 ? void 0 : arguments[0] : arguments.length <= 1 ? void 0 : arguments[1])];
|
|
13804
13800
|
},
|
|
13805
13801
|
_getConfig: function(e, n) {
|
|
13806
13802
|
var o, r, i;
|
|
@@ -13906,7 +13902,7 @@ var ke = {
|
|
|
13906
13902
|
_themeChangeListener: function() {
|
|
13907
13903
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
|
|
13908
13904
|
};
|
|
13909
|
-
Qt.clearLoadedStyleNames(),
|
|
13905
|
+
Qt.clearLoadedStyleNames(), Mt.on("theme:change", e);
|
|
13910
13906
|
},
|
|
13911
13907
|
_hook: function(e, n, o, r, i, a) {
|
|
13912
13908
|
var l, u, s = "on".concat(Pf(n)), c = ke._getConfig(r, i), f = o == null ? void 0 : o.$instance, d = ke._usePT(f, ke._getPT(r == null || (l = r.value) === null || l === void 0 ? void 0 : l.pt, e), ke._getOptionValue, "hooks.".concat(s)), p = ke._useDefaultPT(f, c == null || (u = c.pt) === null || u === void 0 || (u = u.directives) === null || u === void 0 ? void 0 : u[e], ke._getOptionValue, "hooks.".concat(s)), m = {
|
|
@@ -14179,7 +14175,7 @@ function lo(t) {
|
|
|
14179
14175
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
14180
14176
|
}, lo(t);
|
|
14181
14177
|
}
|
|
14182
|
-
function
|
|
14178
|
+
function Bt(t, e, n) {
|
|
14183
14179
|
return (e = ay(e)) in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
|
|
14184
14180
|
}
|
|
14185
14181
|
function ay(t) {
|
|
@@ -14826,7 +14822,7 @@ var ly = function(e) {
|
|
|
14826
14822
|
}, uy = {
|
|
14827
14823
|
root: function(e) {
|
|
14828
14824
|
var n = e.instance, o = e.props;
|
|
14829
|
-
return ["p-button p-component",
|
|
14825
|
+
return ["p-button p-component", Bt(Bt(Bt(Bt(Bt(Bt(Bt(Bt(Bt({
|
|
14830
14826
|
"p-button-icon-only": n.hasIcon && !o.label && !o.badge,
|
|
14831
14827
|
"p-button-vertical": (o.iconPos === "top" || o.iconPos === "bottom") && o.label,
|
|
14832
14828
|
"p-button-loading": o.loading,
|
|
@@ -14836,7 +14832,7 @@ var ly = function(e) {
|
|
|
14836
14832
|
loadingIcon: "p-button-loading-icon",
|
|
14837
14833
|
icon: function(e) {
|
|
14838
14834
|
var n = e.props;
|
|
14839
|
-
return ["p-button-icon",
|
|
14835
|
+
return ["p-button-icon", Bt({}, "p-button-icon-".concat(n.iconPos), n.label)];
|
|
14840
14836
|
},
|
|
14841
14837
|
label: "p-button-label"
|
|
14842
14838
|
}, cy = je.extend({
|
|
@@ -15078,7 +15074,7 @@ const py = { key: 1 }, za = {
|
|
|
15078
15074
|
setup(t) {
|
|
15079
15075
|
const e = t;
|
|
15080
15076
|
console.log("props.styleType", e.styleType);
|
|
15081
|
-
const n = O(!
|
|
15077
|
+
const n = O(!0), { hasMatchingRoleAndPermissions: o } = Fn();
|
|
15082
15078
|
ze(async () => {
|
|
15083
15079
|
n.value = await o(e.roles, e.permissions);
|
|
15084
15080
|
});
|
|
@@ -15109,7 +15105,7 @@ const py = { key: 1 }, za = {
|
|
|
15109
15105
|
function gy(t, e, n, o, r, i) {
|
|
15110
15106
|
return b(), C("span", null, ne(n.value), 1);
|
|
15111
15107
|
}
|
|
15112
|
-
const Ma = /* @__PURE__ */
|
|
15108
|
+
const Ma = /* @__PURE__ */ nt(my, [["render", gy]]), hy = ["value"], ja = {
|
|
15113
15109
|
__name: "colorpicker",
|
|
15114
15110
|
props: {
|
|
15115
15111
|
modelValue: {
|
|
@@ -17107,13 +17103,13 @@ var Ul = {
|
|
|
17107
17103
|
return this.virtualScrollerDisabled ? e : n && n(e).index;
|
|
17108
17104
|
},
|
|
17109
17105
|
getOptionLabel: function(e) {
|
|
17110
|
-
return this.optionLabel ?
|
|
17106
|
+
return this.optionLabel ? jt(e, this.optionLabel) : e;
|
|
17111
17107
|
},
|
|
17112
17108
|
getOptionValue: function(e) {
|
|
17113
|
-
return this.optionValue ?
|
|
17109
|
+
return this.optionValue ? jt(e, this.optionValue) : e;
|
|
17114
17110
|
},
|
|
17115
17111
|
getOptionRenderKey: function(e, n) {
|
|
17116
|
-
return (this.dataKey ?
|
|
17112
|
+
return (this.dataKey ? jt(e, this.dataKey) : this.getOptionLabel(e)) + "_" + n;
|
|
17117
17113
|
},
|
|
17118
17114
|
getPTItemOptions: function(e, n, o, r) {
|
|
17119
17115
|
return this.ptm(r, {
|
|
@@ -17127,16 +17123,16 @@ var Ul = {
|
|
|
17127
17123
|
});
|
|
17128
17124
|
},
|
|
17129
17125
|
isOptionDisabled: function(e) {
|
|
17130
|
-
return this.optionDisabled ?
|
|
17126
|
+
return this.optionDisabled ? jt(e, this.optionDisabled) : !1;
|
|
17131
17127
|
},
|
|
17132
17128
|
isOptionGroup: function(e) {
|
|
17133
17129
|
return this.optionGroupLabel && e.optionGroup && e.group;
|
|
17134
17130
|
},
|
|
17135
17131
|
getOptionGroupLabel: function(e) {
|
|
17136
|
-
return
|
|
17132
|
+
return jt(e, this.optionGroupLabel);
|
|
17137
17133
|
},
|
|
17138
17134
|
getOptionGroupChildren: function(e) {
|
|
17139
|
-
return
|
|
17135
|
+
return jt(e, this.optionGroupChildren);
|
|
17140
17136
|
},
|
|
17141
17137
|
getAriaPosInset: function(e) {
|
|
17142
17138
|
var n = this;
|
|
@@ -18137,9 +18133,9 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18137
18133
|
}, 8, ["modelValue", "options", "filter", "optionLabel", "optionValue"]);
|
|
18138
18134
|
};
|
|
18139
18135
|
}
|
|
18140
|
-
}, po = /* @__PURE__ */
|
|
18136
|
+
}, po = /* @__PURE__ */ nt(Sv, [["__scopeId", "data-v-4c67a527"]]), Cv = { key: 1 }, Ov = "/api/app/v1/${appid}/entity", Xa = {
|
|
18141
18137
|
__name: "EntityRecordSelection",
|
|
18142
|
-
props: /* @__PURE__ */
|
|
18138
|
+
props: /* @__PURE__ */ He({
|
|
18143
18139
|
valueField: {
|
|
18144
18140
|
type: String,
|
|
18145
18141
|
default: "id"
|
|
@@ -18181,11 +18177,11 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18181
18177
|
modelValue: {},
|
|
18182
18178
|
modelModifiers: {}
|
|
18183
18179
|
}),
|
|
18184
|
-
emits: /* @__PURE__ */
|
|
18180
|
+
emits: /* @__PURE__ */ He(["update:modelValue", "onChange"], ["update:modelValue"]),
|
|
18185
18181
|
setup(t, { emit: e }) {
|
|
18186
18182
|
const n = O(null), o = t, r = e;
|
|
18187
|
-
|
|
18188
|
-
const i = ee(() => `${Ov}/${o.entity}/record`), a = O(!
|
|
18183
|
+
tt(t, "modelValue");
|
|
18184
|
+
const i = ee(() => `${Ov}/${o.entity}/record`), a = O(!0), { hasMatchingRoleAndPermissions: l } = Fn();
|
|
18189
18185
|
ze(async () => {
|
|
18190
18186
|
a.value = await l(o.roles, o.permissions);
|
|
18191
18187
|
});
|
|
@@ -18207,7 +18203,7 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18207
18203
|
}
|
|
18208
18204
|
}, Ev = { key: 1 }, $v = "/api/app/v1/${appid}/entity", _o = {
|
|
18209
18205
|
__name: "EntitySelection",
|
|
18210
|
-
props: {
|
|
18206
|
+
props: /* @__PURE__ */ He({
|
|
18211
18207
|
entityName: {
|
|
18212
18208
|
type: String,
|
|
18213
18209
|
default: ""
|
|
@@ -18220,34 +18216,35 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18220
18216
|
type: [Array, String],
|
|
18221
18217
|
default: () => []
|
|
18222
18218
|
}
|
|
18223
|
-
},
|
|
18224
|
-
|
|
18219
|
+
}, {
|
|
18220
|
+
modelValue: {},
|
|
18221
|
+
modelModifiers: {}
|
|
18222
|
+
}),
|
|
18223
|
+
emits: /* @__PURE__ */ He(["update:entity-name", "onChange"], ["update:modelValue"]),
|
|
18225
18224
|
setup(t, { emit: e }) {
|
|
18226
|
-
const n = t;
|
|
18227
|
-
|
|
18228
|
-
const
|
|
18225
|
+
const n = t, o = e;
|
|
18226
|
+
tt(t, "modelValue");
|
|
18227
|
+
const r = O(!0), { hasMatchingRoleAndPermissions: i } = Fn();
|
|
18229
18228
|
ze(async () => {
|
|
18230
18229
|
r.value = await i(n.roles, n.permissions);
|
|
18231
18230
|
});
|
|
18232
18231
|
function a(l) {
|
|
18233
18232
|
o("update:entity-name", l), o("onChange", l);
|
|
18234
18233
|
}
|
|
18235
|
-
return (l, u) => (b(),
|
|
18236
|
-
|
|
18237
|
-
|
|
18238
|
-
|
|
18239
|
-
|
|
18240
|
-
|
|
18241
|
-
|
|
18242
|
-
|
|
18243
|
-
|
|
18244
|
-
|
|
18245
|
-
}, null, 8, ["modelValue"])) : (b(), C("p", Ev, "You do not have the required permissions to access this feature."))
|
|
18246
|
-
]));
|
|
18234
|
+
return (l, u) => r.value ? (b(), z(po, {
|
|
18235
|
+
key: 0,
|
|
18236
|
+
modelValue: t.entityName,
|
|
18237
|
+
url: $v,
|
|
18238
|
+
jsonPath: "response",
|
|
18239
|
+
displayField: "name",
|
|
18240
|
+
method: "GET",
|
|
18241
|
+
onOnChange: a,
|
|
18242
|
+
valueField: "name"
|
|
18243
|
+
}, null, 8, ["modelValue"])) : (b(), C("p", Ev, "You do not have the required permissions to access this feature."));
|
|
18247
18244
|
}
|
|
18248
18245
|
}, _v = "/api/app/v1/${appid}/menu", Ja = {
|
|
18249
18246
|
__name: "MenuSelection",
|
|
18250
|
-
props: /* @__PURE__ */
|
|
18247
|
+
props: /* @__PURE__ */ He({
|
|
18251
18248
|
valueField: {
|
|
18252
18249
|
type: String,
|
|
18253
18250
|
default: "displayLabel"
|
|
@@ -18277,9 +18274,9 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18277
18274
|
modelValue: {},
|
|
18278
18275
|
modelModifiers: {}
|
|
18279
18276
|
}),
|
|
18280
|
-
emits: /* @__PURE__ */
|
|
18277
|
+
emits: /* @__PURE__ */ He(["update:modelValue", "onChange"], ["update:modelValue"]),
|
|
18281
18278
|
setup(t, { emit: e }) {
|
|
18282
|
-
const n = e, o =
|
|
18279
|
+
const n = e, o = tt(t, "modelValue");
|
|
18283
18280
|
function r(i) {
|
|
18284
18281
|
n("update:modelValue", i), n("onChange", i);
|
|
18285
18282
|
}
|
|
@@ -18408,9 +18405,9 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18408
18405
|
}, 8, ["modelValue", "options", "filter", "optionLabel", "optionValue", "placeholder"]);
|
|
18409
18406
|
};
|
|
18410
18407
|
}
|
|
18411
|
-
}, Hl = /* @__PURE__ */
|
|
18408
|
+
}, Hl = /* @__PURE__ */ nt(Iv, [["__scopeId", "data-v-8fa2da81"]]), Bv = { key: 1 }, Rv = "/api/app/v1/${appid}/security/roles", Qa = {
|
|
18412
18409
|
__name: "RolesSelection",
|
|
18413
|
-
props: /* @__PURE__ */
|
|
18410
|
+
props: /* @__PURE__ */ He({
|
|
18414
18411
|
valueField: {
|
|
18415
18412
|
type: String,
|
|
18416
18413
|
default: ""
|
|
@@ -18443,11 +18440,11 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18443
18440
|
modelValue: {},
|
|
18444
18441
|
modelModifiers: {}
|
|
18445
18442
|
}),
|
|
18446
|
-
emits: /* @__PURE__ */
|
|
18443
|
+
emits: /* @__PURE__ */ He(["update:modelValue", "onChange"], ["update:modelValue"]),
|
|
18447
18444
|
setup(t, { emit: e }) {
|
|
18448
18445
|
const n = O(null), o = t, r = e;
|
|
18449
|
-
|
|
18450
|
-
const i = O(!
|
|
18446
|
+
tt(t, "modelValue");
|
|
18447
|
+
const i = O(!0), { hasMatchingRoleAndPermissions: a } = Fn();
|
|
18451
18448
|
ze(async () => {
|
|
18452
18449
|
i.value = await a(o.roles, o.permissions);
|
|
18453
18450
|
});
|
|
@@ -18470,7 +18467,7 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18470
18467
|
}
|
|
18471
18468
|
}, Av = { key: 1 }, Fv = "/api/app/v1/${appid}/security/permission", Za = {
|
|
18472
18469
|
__name: "PermissionSelection",
|
|
18473
|
-
props: /* @__PURE__ */
|
|
18470
|
+
props: /* @__PURE__ */ He({
|
|
18474
18471
|
valueField: {
|
|
18475
18472
|
type: String,
|
|
18476
18473
|
default: ""
|
|
@@ -18495,11 +18492,11 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18495
18492
|
modelValue: {},
|
|
18496
18493
|
modelModifiers: {}
|
|
18497
18494
|
}),
|
|
18498
|
-
emits: /* @__PURE__ */
|
|
18495
|
+
emits: /* @__PURE__ */ He(["update:modelValue", "onChange"], ["update:modelValue"]),
|
|
18499
18496
|
setup(t, { emit: e }) {
|
|
18500
18497
|
const n = O(null), o = t, r = e;
|
|
18501
|
-
|
|
18502
|
-
const i = O(!
|
|
18498
|
+
tt(t, "modelValue");
|
|
18499
|
+
const i = O(!0), { hasMatchingRoleAndPermissions: a } = Fn();
|
|
18503
18500
|
ze(async () => {
|
|
18504
18501
|
i.value = await a(o.roles, o.permissions);
|
|
18505
18502
|
});
|
|
@@ -18760,14 +18757,14 @@ const vv = { class: "editable-label-editing flex items-center gap-2 w-full" }, Y
|
|
|
18760
18757
|
], 8, Uv)
|
|
18761
18758
|
]));
|
|
18762
18759
|
}
|
|
18763
|
-
}, it =
|
|
18760
|
+
}, it = At({
|
|
18764
18761
|
preset: "Aura",
|
|
18765
18762
|
primary: "emerald",
|
|
18766
18763
|
surface: null,
|
|
18767
18764
|
darkTheme: !1,
|
|
18768
18765
|
menuMode: "slim-plus",
|
|
18769
18766
|
menuTheme: "light"
|
|
18770
|
-
}), Xe =
|
|
18767
|
+
}), Xe = At({
|
|
18771
18768
|
staticMenuDesktopInactive: !1,
|
|
18772
18769
|
overlayMenuActive: !1,
|
|
18773
18770
|
configSidebarVisible: !1,
|
|
@@ -24250,7 +24247,7 @@ function Uw() {
|
|
|
24250
24247
|
};
|
|
24251
24248
|
}
|
|
24252
24249
|
function Hw() {
|
|
24253
|
-
const t = new
|
|
24250
|
+
const t = new Dt();
|
|
24254
24251
|
return { getEntityRecord: async (n, o) => {
|
|
24255
24252
|
try {
|
|
24256
24253
|
const r = await t.getRecord(n, o);
|
|
@@ -24263,7 +24260,7 @@ function Hw() {
|
|
|
24263
24260
|
} };
|
|
24264
24261
|
}
|
|
24265
24262
|
function Ww() {
|
|
24266
|
-
const t = new
|
|
24263
|
+
const t = new Dt();
|
|
24267
24264
|
return { addEntityRecord: async (n, o) => {
|
|
24268
24265
|
const r = {
|
|
24269
24266
|
dataDefinitions: Object.entries(o).map(([i, a]) => ({
|
|
@@ -24282,7 +24279,7 @@ function Ww() {
|
|
|
24282
24279
|
} };
|
|
24283
24280
|
}
|
|
24284
24281
|
function qw() {
|
|
24285
|
-
const t = new
|
|
24282
|
+
const t = new Dt();
|
|
24286
24283
|
return { deleteEntityRecord: async (n, o) => {
|
|
24287
24284
|
try {
|
|
24288
24285
|
const r = await t.deleteRecord(n, o);
|
|
@@ -24520,7 +24517,7 @@ export {
|
|
|
24520
24517
|
Gw as useComponentService,
|
|
24521
24518
|
qw as useDeleteEntityRecord,
|
|
24522
24519
|
bb as useEntitiesStore,
|
|
24523
|
-
|
|
24520
|
+
Dt as useEntityRecordService,
|
|
24524
24521
|
hb as useEntityService,
|
|
24525
24522
|
Hw as useGetEntityRecord,
|
|
24526
24523
|
Ze as useGlobalConfigsStore,
|