codesaaz-core 0.0.54 → 0.0.56
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 +352 -346
- package/dist/codesaaz.umd.js +1 -1
- package/package.json +1 -1
package/dist/codesaaz.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasInjectionContext as zl, inject as at, ref as _, watch as
|
|
1
|
+
import { hasInjectionContext as zl, inject as at, ref as _, watch as Ae, reactive as Ft, effectScope as jl, isRef as Wt, isReactive as ts, toRaw as Ml, getCurrentScope as Ul, onScopeDispose as Hl, nextTick as mt, toRefs as Wl, markRaw as ql, computed as ne, mergeModels as Xe, useModel as it, resolveComponent as K, openBlock as b, createElementBlock as C, Fragment as ue, createElementVNode as w, createTextVNode as Ye, toDisplayString as ee, createCommentVNode as U, createBlock as M, renderList as Pe, createVNode as V, toValue as Ce, unref as G, onMounted as Ze, provide as en, readonly as ns, watchEffect as $o, shallowRef as Kl, withCtx as Q, onUpdated as os, normalizeProps as tn, guardReactiveProps as po, renderSlot as me, createSlots as kr, withKeys as jr, withModifiers as yo, withDirectives as Ot, vShow as Gl, resolveDirective as Mr, normalizeClass as We, resolveDynamicComponent as Me, mergeProps as ie, defineComponent as In, h as Je, shallowReactive as xr, onBeforeUnmount as Yl, useId as Xl, getCurrentInstance as rs, onUnmounted as Jl, cloneVNode as Ql, normalizeStyle as gn, Teleport as Zl, Transition as eu, vModelText as Hn, vModelCheckbox as is, createApp as tu } from "vue";
|
|
2
2
|
import { useRoute as yn, useRouter as nu } from "vue-router";
|
|
3
3
|
import { InputText as si } from "primevue";
|
|
4
4
|
/*!
|
|
@@ -110,9 +110,9 @@ function ls(t, e, n = {}, o, r, i) {
|
|
|
110
110
|
return y[ar] = E, y;
|
|
111
111
|
const D = function() {
|
|
112
112
|
Ur(o);
|
|
113
|
-
const B = Array.from(arguments),
|
|
114
|
-
function
|
|
115
|
-
|
|
113
|
+
const B = Array.from(arguments), P = [], H = [];
|
|
114
|
+
function A(oe) {
|
|
115
|
+
P.push(oe);
|
|
116
116
|
}
|
|
117
117
|
function q(oe) {
|
|
118
118
|
H.push(oe);
|
|
@@ -121,7 +121,7 @@ function ls(t, e, n = {}, o, r, i) {
|
|
|
121
121
|
args: B,
|
|
122
122
|
name: D[ar],
|
|
123
123
|
store: R,
|
|
124
|
-
after:
|
|
124
|
+
after: A,
|
|
125
125
|
onError: q
|
|
126
126
|
});
|
|
127
127
|
let N;
|
|
@@ -130,7 +130,7 @@ function ls(t, e, n = {}, o, r, i) {
|
|
|
130
130
|
} catch (oe) {
|
|
131
131
|
throw xn(H, oe), oe;
|
|
132
132
|
}
|
|
133
|
-
return N instanceof Promise ? N.then((oe) => (xn(
|
|
133
|
+
return N instanceof Promise ? N.then((oe) => (xn(P, oe), oe)).catch((oe) => (xn(H, oe), Promise.reject(oe))) : (xn(P, N), N);
|
|
134
134
|
};
|
|
135
135
|
return D[ui] = !0, D[ar] = E, D;
|
|
136
136
|
}, T = {
|
|
@@ -141,12 +141,12 @@ function ls(t, e, n = {}, o, r, i) {
|
|
|
141
141
|
$patch: h,
|
|
142
142
|
$reset: v,
|
|
143
143
|
$subscribe(y, E = {}) {
|
|
144
|
-
const D = li(f, y, E.detached, () => B()), B = a.run(() =>
|
|
144
|
+
const D = li(f, y, E.detached, () => B()), B = a.run(() => Ae(() => o.state.value[t], (P) => {
|
|
145
145
|
(E.flush === "sync" ? u : s) && y({
|
|
146
146
|
storeId: t,
|
|
147
147
|
type: Wn.direct,
|
|
148
148
|
events: p
|
|
149
|
-
},
|
|
149
|
+
}, P);
|
|
150
150
|
}, Xt({}, c, E)));
|
|
151
151
|
return D;
|
|
152
152
|
},
|
|
@@ -306,13 +306,13 @@ const Ou = (t, e, n, { allOwnKeys: o } = {}) => (mo(e, (r, i) => {
|
|
|
306
306
|
const i = r.value;
|
|
307
307
|
e.call(t, i[0], i[1]);
|
|
308
308
|
}
|
|
309
|
-
},
|
|
309
|
+
}, Au = (t, e) => {
|
|
310
310
|
let n;
|
|
311
311
|
const o = [];
|
|
312
312
|
for (; (n = t.exec(e)) !== null; )
|
|
313
313
|
o.push(n);
|
|
314
314
|
return o;
|
|
315
|
-
},
|
|
315
|
+
}, Pu = $t("HTMLFormElement"), Du = (t) => t.toLowerCase().replace(
|
|
316
316
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
317
317
|
function(n, o, r) {
|
|
318
318
|
return o.toUpperCase() + r;
|
|
@@ -421,8 +421,8 @@ const Hu = (t) => {
|
|
|
421
421
|
endsWith: Iu,
|
|
422
422
|
toArray: Bu,
|
|
423
423
|
forEachEntry: Fu,
|
|
424
|
-
matchAll:
|
|
425
|
-
isHTMLForm:
|
|
424
|
+
matchAll: Au,
|
|
425
|
+
isHTMLForm: Pu,
|
|
426
426
|
hasOwnProperty: ci,
|
|
427
427
|
hasOwnProp: ci,
|
|
428
428
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
@@ -1062,7 +1062,7 @@ function yc(t, e) {
|
|
|
1062
1062
|
}, o - f)));
|
|
1063
1063
|
}, () => r && a(r)];
|
|
1064
1064
|
}
|
|
1065
|
-
const
|
|
1065
|
+
const Ao = (t, e, n = 3) => {
|
|
1066
1066
|
let o = 0;
|
|
1067
1067
|
const r = bc(50, 250);
|
|
1068
1068
|
return yc((i) => {
|
|
@@ -1260,7 +1260,7 @@ const $s = (t) => {
|
|
|
1260
1260
|
)), h = null;
|
|
1261
1261
|
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && F.forEach(a.toJSON(), function(T, R) {
|
|
1262
1262
|
h.setRequestHeader(R, T);
|
|
1263
|
-
}), F.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), l && l !== "json" && (h.responseType = r.responseType), s && ([d, m] =
|
|
1263
|
+
}), F.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), l && l !== "json" && (h.responseType = r.responseType), s && ([d, m] = Ao(s, !0), h.addEventListener("progress", d)), c && h.upload && ([f, p] = Ao(c), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", p)), (r.cancelToken || r.signal) && (u = (x) => {
|
|
1264
1264
|
h && (o(!x || x.type ? new Rn(null, t, h) : x), h.abort(), h = null);
|
|
1265
1265
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
1266
1266
|
const S = hc(r.url);
|
|
@@ -1366,12 +1366,12 @@ const $s = (t) => {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
}).headers.has("Content-Type");
|
|
1368
1368
|
return t && !e;
|
|
1369
|
-
}), wi = 64 * 1024, _r = _s && Ts(() => F.isReadableStream(new Response("").body)),
|
|
1369
|
+
}), wi = 64 * 1024, _r = _s && Ts(() => F.isReadableStream(new Response("").body)), Po = {
|
|
1370
1370
|
stream: _r && ((t) => t.body)
|
|
1371
1371
|
};
|
|
1372
1372
|
Ko && ((t) => {
|
|
1373
1373
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1374
|
-
!
|
|
1374
|
+
!Po[e] && (Po[e] = F.isFunction(t[e]) ? (n) => n[e]() : (n, o) => {
|
|
1375
1375
|
throw new be(`Response type '${e}' is not supported`, be.ERR_NOT_SUPPORT, o);
|
|
1376
1376
|
});
|
|
1377
1377
|
});
|
|
@@ -1424,7 +1424,7 @@ const Bc = async (t) => {
|
|
|
1424
1424
|
if (F.isFormData(o) && (I = R.headers.get("content-type")) && u.setContentType(I), R.body) {
|
|
1425
1425
|
const [k, y] = hi(
|
|
1426
1426
|
h,
|
|
1427
|
-
|
|
1427
|
+
Ao(bi(c))
|
|
1428
1428
|
);
|
|
1429
1429
|
o = vi(R.body, wi, k, y);
|
|
1430
1430
|
}
|
|
@@ -1449,7 +1449,7 @@ const Bc = async (t) => {
|
|
|
1449
1449
|
});
|
|
1450
1450
|
const I = F.toFiniteNumber(S.headers.get("content-length")), [k, y] = l && hi(
|
|
1451
1451
|
I,
|
|
1452
|
-
|
|
1452
|
+
Ao(bi(l), !0)
|
|
1453
1453
|
) || [];
|
|
1454
1454
|
S = new Response(
|
|
1455
1455
|
vi(S.body, wi, k, () => {
|
|
@@ -1459,7 +1459,7 @@ const Bc = async (t) => {
|
|
|
1459
1459
|
);
|
|
1460
1460
|
}
|
|
1461
1461
|
s = s || "text";
|
|
1462
|
-
let T = await
|
|
1462
|
+
let T = await Po[F.findKey(Po, s) || "text"](S, t);
|
|
1463
1463
|
return !x && g && g(), await new Promise((R, I) => {
|
|
1464
1464
|
Es(R, I, {
|
|
1465
1465
|
data: T,
|
|
@@ -1492,7 +1492,7 @@ F.forEach(Tr, (t, e) => {
|
|
|
1492
1492
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1493
1493
|
}
|
|
1494
1494
|
});
|
|
1495
|
-
const ki = (t) => `- ${t}`,
|
|
1495
|
+
const ki = (t) => `- ${t}`, Ac = (t) => F.isFunction(t) || t === null || t === !1, Is = {
|
|
1496
1496
|
getAdapter: (t) => {
|
|
1497
1497
|
t = F.isArray(t) ? t : [t];
|
|
1498
1498
|
const { length: e } = t;
|
|
@@ -1501,7 +1501,7 @@ const ki = (t) => `- ${t}`, Pc = (t) => F.isFunction(t) || t === null || t === !
|
|
|
1501
1501
|
for (let i = 0; i < e; i++) {
|
|
1502
1502
|
n = t[i];
|
|
1503
1503
|
let a;
|
|
1504
|
-
if (o = n, !
|
|
1504
|
+
if (o = n, !Ac(n) && (o = Tr[(a = String(n)).toLowerCase()], o === void 0))
|
|
1505
1505
|
throw new be(`Unknown adapter '${a}'`);
|
|
1506
1506
|
if (o)
|
|
1507
1507
|
break;
|
|
@@ -1573,7 +1573,7 @@ Go.transitional = function(e, n, o) {
|
|
|
1573
1573
|
Go.spelling = function(e) {
|
|
1574
1574
|
return (n, o) => (console.warn(`${o} is likely a misspelling of ${e}`), !0);
|
|
1575
1575
|
};
|
|
1576
|
-
function
|
|
1576
|
+
function Pc(t, e, n) {
|
|
1577
1577
|
if (typeof t != "object")
|
|
1578
1578
|
throw new be("options must be an object", be.ERR_BAD_OPTION_VALUE);
|
|
1579
1579
|
const o = Object.keys(t);
|
|
@@ -1591,7 +1591,7 @@ function Ac(t, e, n) {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
const Io = {
|
|
1594
|
-
assertOptions:
|
|
1594
|
+
assertOptions: Pc,
|
|
1595
1595
|
validators: Go
|
|
1596
1596
|
}, It = Io.validators;
|
|
1597
1597
|
class pn {
|
|
@@ -2037,7 +2037,7 @@ function zc(t = "") {
|
|
|
2037
2037
|
endsWith: "ENDS_WITH"
|
|
2038
2038
|
};
|
|
2039
2039
|
let o = _({}), r = _([]), i = _([]), a = _([]);
|
|
2040
|
-
const l = _(""), c = _(1), s = _(25), u = _(0), f = _(0), d = _(0), p = _(!1), m = _([]), g = _(""), h = _({}), v = async (B,
|
|
2040
|
+
const l = _(""), c = _(1), s = _(25), u = _(0), f = _(0), d = _(0), p = _(!1), m = _([]), g = _(""), h = _({}), v = async (B, P = !0) => {
|
|
2041
2041
|
p.value = !0;
|
|
2042
2042
|
try {
|
|
2043
2043
|
const H = await e.getEntityRecords(B);
|
|
@@ -2050,7 +2050,7 @@ function zc(t = "") {
|
|
|
2050
2050
|
}, S = async (B = !0) => {
|
|
2051
2051
|
p.value = !0;
|
|
2052
2052
|
try {
|
|
2053
|
-
const
|
|
2053
|
+
const P = {
|
|
2054
2054
|
sortBy: [l.value],
|
|
2055
2055
|
sortDirection: c.value === 1 ? "ASC" : "DESC",
|
|
2056
2056
|
pageSize: s.value,
|
|
@@ -2059,22 +2059,22 @@ function zc(t = "") {
|
|
|
2059
2059
|
filter: m.value,
|
|
2060
2060
|
fullTextSearch: g.value
|
|
2061
2061
|
};
|
|
2062
|
-
Object.keys(
|
|
2063
|
-
const H = await e.searchEntityRecords(t,
|
|
2062
|
+
Object.keys(P.filter).length === 0 && (P.filter = []);
|
|
2063
|
+
const H = await e.searchEntityRecords(t, P);
|
|
2064
2064
|
H && H.response && (p.value = !1, o.value = H.response, r.value = H.response.result, f.value = H.response.totalRecords, d.value = u.value * s.value);
|
|
2065
|
-
} catch (
|
|
2066
|
-
console.error("Error fetching entity:",
|
|
2065
|
+
} catch (P) {
|
|
2066
|
+
console.error("Error fetching entity:", P.errorMessage);
|
|
2067
2067
|
} finally {
|
|
2068
2068
|
p.value = !1;
|
|
2069
2069
|
}
|
|
2070
|
-
}, x = (B) => B.map((
|
|
2071
|
-
field:
|
|
2072
|
-
name:
|
|
2073
|
-
filterable:
|
|
2074
|
-
datatype:
|
|
2070
|
+
}, x = (B) => B.map((P) => ({
|
|
2071
|
+
field: P.name,
|
|
2072
|
+
name: P.displayName ? P.displayName : P.name,
|
|
2073
|
+
filterable: P.filterable,
|
|
2074
|
+
datatype: P.type,
|
|
2075
2075
|
sortable: !0,
|
|
2076
|
-
displayFormatKey:
|
|
2077
|
-
displayFormat:
|
|
2076
|
+
displayFormatKey: P.displayFormatKey,
|
|
2077
|
+
displayFormat: P.displayFormat
|
|
2078
2078
|
})), T = (B) => {
|
|
2079
2079
|
l.value = B.sortField, c.value = B.sortOrder, d.value = 0, S();
|
|
2080
2080
|
}, R = (B) => {
|
|
@@ -2098,13 +2098,13 @@ function zc(t = "") {
|
|
|
2098
2098
|
return "text";
|
|
2099
2099
|
}
|
|
2100
2100
|
}, E = (B) => {
|
|
2101
|
-
const
|
|
2102
|
-
return
|
|
2101
|
+
const P = i.value.find((H) => H.field === B);
|
|
2102
|
+
return P ? P.datatype : null;
|
|
2103
2103
|
}, D = () => {
|
|
2104
2104
|
for (let B = 0; B < a.value.length; B++) {
|
|
2105
|
-
const
|
|
2106
|
-
if (
|
|
2107
|
-
h.value =
|
|
2105
|
+
const P = a.value[B];
|
|
2106
|
+
if (P.primaryKey && P.primaryKey == !0) {
|
|
2107
|
+
h.value = P, l.value = P.name;
|
|
2108
2108
|
break;
|
|
2109
2109
|
}
|
|
2110
2110
|
}
|
|
@@ -2239,7 +2239,7 @@ const ot = (t, e) => {
|
|
|
2239
2239
|
onInput: a[6] || (a[6] = (h) => r(t.column)),
|
|
2240
2240
|
invalid: ((m = t.errors) == null ? void 0 : m.length) > 0
|
|
2241
2241
|
}, null, 8, ["modelValue", "id", "name", "invalid"])),
|
|
2242
|
-
(b(!0), C(ue, null,
|
|
2242
|
+
(b(!0), C(ue, null, Pe(t.errors, (h, v) => (b(), C("div", {
|
|
2243
2243
|
key: v,
|
|
2244
2244
|
class: "text-red-500 mt-1 ml-2"
|
|
2245
2245
|
}, [
|
|
@@ -2346,7 +2346,7 @@ function od(t) {
|
|
|
2346
2346
|
function Qt(t) {
|
|
2347
2347
|
return !!t && Et(t.parse) && t.__type === "VVTypedSchema";
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function As(t) {
|
|
2350
2350
|
return !!t && Et(t.validate);
|
|
2351
2351
|
}
|
|
2352
2352
|
function rd(t) {
|
|
@@ -2362,9 +2362,9 @@ function Xo(t) {
|
|
|
2362
2362
|
return /^\[.+\]$/i.test(t);
|
|
2363
2363
|
}
|
|
2364
2364
|
function sd(t) {
|
|
2365
|
-
return
|
|
2365
|
+
return Ps(t) && t.multiple;
|
|
2366
2366
|
}
|
|
2367
|
-
function
|
|
2367
|
+
function Ps(t) {
|
|
2368
2368
|
return t.tagName === "SELECT";
|
|
2369
2369
|
}
|
|
2370
2370
|
function ld(t) {
|
|
@@ -2566,7 +2566,7 @@ function Ri(t) {
|
|
|
2566
2566
|
}
|
|
2567
2567
|
if (sd(e))
|
|
2568
2568
|
return Array.from(e.options).filter((n) => n.selected && !n.disabled).map(fr);
|
|
2569
|
-
if (
|
|
2569
|
+
if (Ps(e)) {
|
|
2570
2570
|
const n = Array.from(e.options).find((o) => o.selected);
|
|
2571
2571
|
return n ? fr(n) : e.value;
|
|
2572
2572
|
}
|
|
@@ -2628,7 +2628,7 @@ async function yd(t, e, n = {}) {
|
|
|
2628
2628
|
}
|
|
2629
2629
|
async function vd(t, e) {
|
|
2630
2630
|
const n = t.rules;
|
|
2631
|
-
if (Qt(n) ||
|
|
2631
|
+
if (Qt(n) || As(n))
|
|
2632
2632
|
return kd(e, Object.assign(Object.assign({}, t), { rules: n }));
|
|
2633
2633
|
if (Et(n) || Array.isArray(n)) {
|
|
2634
2634
|
const l = {
|
|
@@ -2816,7 +2816,7 @@ function js(t) {
|
|
|
2816
2816
|
const j = Ut(s, Ce($.path));
|
|
2817
2817
|
return zt(O, Ce($.path), j), O;
|
|
2818
2818
|
}, {})), B = void 0;
|
|
2819
|
-
function
|
|
2819
|
+
function P(O, $) {
|
|
2820
2820
|
var j, te;
|
|
2821
2821
|
const pe = ne(() => Ut(I.value, Ce(O))), he = d.value[Ce(O)], le = ($ == null ? void 0 : $.type) === "checkbox" || ($ == null ? void 0 : $.type) === "radio";
|
|
2822
2822
|
if (he && le) {
|
|
@@ -2827,12 +2827,12 @@ function js(t) {
|
|
|
2827
2827
|
const L = ne(() => Ut(s, Ce(O))), J = Ce(O), ae = z.findIndex((Le) => Le === J);
|
|
2828
2828
|
ae !== -1 && z.splice(ae, 1);
|
|
2829
2829
|
const re = ne(() => {
|
|
2830
|
-
var Le, Qe,
|
|
2830
|
+
var Le, Qe, An, Pn;
|
|
2831
2831
|
const Dn = Ce(B);
|
|
2832
2832
|
if (Qt(Dn))
|
|
2833
2833
|
return (Qe = (Le = Dn.describe) === null || Le === void 0 ? void 0 : Le.call(Dn, Ce(O)).required) !== null && Qe !== void 0 ? Qe : !1;
|
|
2834
2834
|
const ir = Ce($ == null ? void 0 : $.schema);
|
|
2835
|
-
return Qt(ir) && (
|
|
2835
|
+
return Qt(ir) && (Pn = (An = ir.describe) === null || An === void 0 ? void 0 : An.call(ir).required) !== null && Pn !== void 0 ? Pn : !1;
|
|
2836
2836
|
}), ge = r++, Re = Ft({
|
|
2837
2837
|
id: ge,
|
|
2838
2838
|
path: O,
|
|
@@ -2858,7 +2858,7 @@ function js(t) {
|
|
|
2858
2858
|
});
|
|
2859
2859
|
return u.value.push(Re), d.value[J] = Re, p(), v.value[J] && !T[J] && mt(() => {
|
|
2860
2860
|
st(J, { mode: "silent" });
|
|
2861
|
-
}), Wt(O) &&
|
|
2861
|
+
}), Wt(O) && Ae(O, (Le) => {
|
|
2862
2862
|
p();
|
|
2863
2863
|
const Qe = De(L.value);
|
|
2864
2864
|
d.value[Le] = Re, mt(() => {
|
|
@@ -2866,7 +2866,7 @@ function js(t) {
|
|
|
2866
2866
|
});
|
|
2867
2867
|
}), Re;
|
|
2868
2868
|
}
|
|
2869
|
-
const H = Ii(bt, 5),
|
|
2869
|
+
const H = Ii(bt, 5), A = Ii(bt, 5), q = ud(async (O) => await (O === "silent" ? H() : A()), (O, [$]) => {
|
|
2870
2870
|
const j = vt(Se.errorBag.value), pe = [
|
|
2871
2871
|
.../* @__PURE__ */ new Set([...vt(O.results), ...u.value.map((he) => he.path), ...j])
|
|
2872
2872
|
].sort().reduce((he, le) => {
|
|
@@ -2990,7 +2990,7 @@ function js(t) {
|
|
|
2990
2990
|
stageInitialValue: Ke,
|
|
2991
2991
|
unsetInitialValue: Tt,
|
|
2992
2992
|
setFieldInitialValue: lt,
|
|
2993
|
-
createPathState:
|
|
2993
|
+
createPathState: P,
|
|
2994
2994
|
getPathState: oe,
|
|
2995
2995
|
unsetPathValue: ce,
|
|
2996
2996
|
removePathState: de,
|
|
@@ -3003,7 +3003,7 @@ function js(t) {
|
|
|
3003
3003
|
};
|
|
3004
3004
|
function Ne(O, $, j = !0) {
|
|
3005
3005
|
const te = De($), pe = typeof O == "string" ? O : O.path;
|
|
3006
|
-
oe(pe) ||
|
|
3006
|
+
oe(pe) || P(pe), zt(s, pe, te), j && st(pe);
|
|
3007
3007
|
}
|
|
3008
3008
|
function pt(O, $ = !0) {
|
|
3009
3009
|
vt(s).forEach((j) => {
|
|
@@ -3016,7 +3016,7 @@ function js(t) {
|
|
|
3016
3016
|
Xn(s, O), c.forEach((j) => j && j.reset()), $ && ze();
|
|
3017
3017
|
}
|
|
3018
3018
|
function kt(O, $) {
|
|
3019
|
-
const j = oe(Ce(O)) ||
|
|
3019
|
+
const j = oe(Ce(O)) || P(O);
|
|
3020
3020
|
return ne({
|
|
3021
3021
|
get() {
|
|
3022
3022
|
return j.value;
|
|
@@ -3123,7 +3123,7 @@ function js(t) {
|
|
|
3123
3123
|
if (!O)
|
|
3124
3124
|
return { valid: !0, results: {}, errors: {}, source: "none" };
|
|
3125
3125
|
a.value = !0;
|
|
3126
|
-
const $ =
|
|
3126
|
+
const $ = As(O) || Qt(O) ? await Cd(O, s) : await Ed(O, s, {
|
|
3127
3127
|
names: S.value,
|
|
3128
3128
|
bailsMap: x.value
|
|
3129
3129
|
});
|
|
@@ -3134,12 +3134,12 @@ function js(t) {
|
|
|
3134
3134
|
});
|
|
3135
3135
|
Ze(() => {
|
|
3136
3136
|
Se.validateSchema && Se.validateSchema("silent");
|
|
3137
|
-
}), Wt(B) &&
|
|
3137
|
+
}), Wt(B) && Ae(B, () => {
|
|
3138
3138
|
var O;
|
|
3139
3139
|
(O = Se.validateSchema) === null || O === void 0 || O.call(Se, "validated-only");
|
|
3140
3140
|
}), en(ed, Se);
|
|
3141
3141
|
function Kt(O, $) {
|
|
3142
|
-
const j = Et($) || $ == null ? void 0 : $.label, te = oe(Ce(O)) ||
|
|
3142
|
+
const j = Et($) || $ == null ? void 0 : $.label, te = oe(Ce(O)) || P(O, { label: j }), pe = () => Et($) ? $(wo(te, ko)) : $ || {};
|
|
3143
3143
|
function he() {
|
|
3144
3144
|
var re;
|
|
3145
3145
|
te.touched = !0, ((re = pe().validateOnBlur) !== null && re !== void 0 ? re : Mn().validateOnBlur) && st(Ce(te.path));
|
|
@@ -3249,10 +3249,10 @@ function Td(t, e) {
|
|
|
3249
3249
|
function Ms(t) {
|
|
3250
3250
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3251
3251
|
}
|
|
3252
|
-
var pr,
|
|
3252
|
+
var pr, Ai;
|
|
3253
3253
|
function Id() {
|
|
3254
|
-
if (
|
|
3255
|
-
|
|
3254
|
+
if (Ai) return pr;
|
|
3255
|
+
Ai = 1;
|
|
3256
3256
|
function t(v) {
|
|
3257
3257
|
this._maxSize = v, this.clear();
|
|
3258
3258
|
}
|
|
@@ -3328,10 +3328,10 @@ function Id() {
|
|
|
3328
3328
|
}
|
|
3329
3329
|
return pr;
|
|
3330
3330
|
}
|
|
3331
|
-
var mn = Id(), mr,
|
|
3331
|
+
var mn = Id(), mr, Pi;
|
|
3332
3332
|
function Bd() {
|
|
3333
|
-
if (
|
|
3334
|
-
|
|
3333
|
+
if (Pi) return mr;
|
|
3334
|
+
Pi = 1;
|
|
3335
3335
|
const t = /[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g, e = (u) => u.match(t) || [], n = (u) => u[0].toUpperCase() + u.slice(1), o = (u, f) => e(u).join(f).toLowerCase(), r = (u) => e(u).reduce(
|
|
3336
3336
|
(f, d) => `${f}${f ? d[0].toUpperCase() + d.slice(1).toLowerCase() : d.toLowerCase()}`,
|
|
3337
3337
|
""
|
|
@@ -3410,7 +3410,7 @@ function Rd() {
|
|
|
3410
3410
|
return xo.exports;
|
|
3411
3411
|
}
|
|
3412
3412
|
var Fd = Rd();
|
|
3413
|
-
const
|
|
3413
|
+
const Ad = /* @__PURE__ */ Ms(Fd), Pd = Object.prototype.toString, Dd = Error.prototype.toString, Nd = RegExp.prototype.toString, Ld = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", Vd = /^Symbol\((.*)\)(.*)$/;
|
|
3414
3414
|
function zd(t) {
|
|
3415
3415
|
return t != +t ? "NaN" : t === 0 && 1 / t < 0 ? "-0" : "" + t;
|
|
3416
3416
|
}
|
|
@@ -3421,7 +3421,7 @@ function Ni(t, e = !1) {
|
|
|
3421
3421
|
if (n === "string") return e ? `"${t}"` : t;
|
|
3422
3422
|
if (n === "function") return "[Function " + (t.name || "anonymous") + "]";
|
|
3423
3423
|
if (n === "symbol") return Ld.call(t).replace(Vd, "Symbol($1)");
|
|
3424
|
-
const o =
|
|
3424
|
+
const o = Pd.call(t).slice(8, -1);
|
|
3425
3425
|
return o === "Date" ? isNaN(t.getTime()) ? "" + t : t.toISOString(t) : o === "Error" || t instanceof Error ? "[" + Dd.call(t) + "]" : o === "RegExp" ? Nd.call(t) : null;
|
|
3426
3426
|
}
|
|
3427
3427
|
function Zt(t, e) {
|
|
@@ -3644,7 +3644,7 @@ function Sn(t) {
|
|
|
3644
3644
|
return vn.isRef(B) ? B.getValue(n, m, g) : B;
|
|
3645
3645
|
}
|
|
3646
3646
|
function x(B = {}) {
|
|
3647
|
-
const
|
|
3647
|
+
const P = Object.assign({
|
|
3648
3648
|
value: n,
|
|
3649
3649
|
originalValue: i,
|
|
3650
3650
|
label: a.spec.label,
|
|
@@ -3652,9 +3652,9 @@ function Sn(t) {
|
|
|
3652
3652
|
spec: a.spec,
|
|
3653
3653
|
disableStackTrace: B.disableStackTrace || v
|
|
3654
3654
|
}, f, B.params);
|
|
3655
|
-
for (const
|
|
3656
|
-
const H = new ct(ct.formatError(B.message || d,
|
|
3657
|
-
return H.params =
|
|
3655
|
+
for (const A of Object.keys(P)) P[A] = S(P[A]);
|
|
3656
|
+
const H = new ct(ct.formatError(B.message || d, P), n, P.path, B.type || s, P.disableStackTrace);
|
|
3657
|
+
return H.params = P, H;
|
|
3658
3658
|
}
|
|
3659
3659
|
const T = h ? l : c;
|
|
3660
3660
|
let R = {
|
|
@@ -3767,7 +3767,7 @@ function $n(t, e = /* @__PURE__ */ new Map()) {
|
|
|
3767
3767
|
throw Error(`Unable to clone ${t}`);
|
|
3768
3768
|
return n;
|
|
3769
3769
|
}
|
|
3770
|
-
class
|
|
3770
|
+
class At {
|
|
3771
3771
|
constructor(e) {
|
|
3772
3772
|
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 No(), this._blacklist = new No(), this.exclusiveTests = /* @__PURE__ */ Object.create(null), this._typeCheck = void 0, this.spec = void 0, this.tests = [], this.transforms = [], this.withMutation(() => {
|
|
3773
3773
|
this.typeError(Rt.notType);
|
|
@@ -4177,8 +4177,8 @@ attempted value: ${a}
|
|
|
4177
4177
|
};
|
|
4178
4178
|
}
|
|
4179
4179
|
}
|
|
4180
|
-
|
|
4181
|
-
for (const t of ["validate", "validateSync"])
|
|
4180
|
+
At.prototype.__isYupSchema__ = !0;
|
|
4181
|
+
for (const t of ["validate", "validateSync"]) At.prototype[`${t}At`] = function(e, n, o = {}) {
|
|
4182
4182
|
const {
|
|
4183
4183
|
parent: r,
|
|
4184
4184
|
parentPath: i,
|
|
@@ -4189,8 +4189,8 @@ for (const t of ["validate", "validateSync"]) Pt.prototype[`${t}At`] = function(
|
|
|
4189
4189
|
path: e
|
|
4190
4190
|
}));
|
|
4191
4191
|
};
|
|
4192
|
-
for (const t of ["equals", "is"])
|
|
4193
|
-
for (const t of ["not", "nope"])
|
|
4192
|
+
for (const t of ["equals", "is"]) At.prototype[t] = At.prototype.oneOf;
|
|
4193
|
+
for (const t of ["not", "nope"]) At.prototype[t] = At.prototype.notOneOf;
|
|
4194
4194
|
const Kd = /^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;
|
|
4195
4195
|
function Gd(t) {
|
|
4196
4196
|
const e = Rr(t);
|
|
@@ -4234,7 +4234,7 @@ let Yd = (
|
|
|
4234
4234
|
function Qr() {
|
|
4235
4235
|
return new Ks();
|
|
4236
4236
|
}
|
|
4237
|
-
class Ks extends
|
|
4237
|
+
class Ks extends At {
|
|
4238
4238
|
constructor() {
|
|
4239
4239
|
super({
|
|
4240
4240
|
type: "string",
|
|
@@ -4407,7 +4407,7 @@ class Ks extends Pt {
|
|
|
4407
4407
|
}
|
|
4408
4408
|
Qr.prototype = Ks.prototype;
|
|
4409
4409
|
let rf = /* @__PURE__ */ new Date(""), af = (t) => Object.prototype.toString.call(t) === "[object Date]";
|
|
4410
|
-
class Jo extends
|
|
4410
|
+
class Jo extends At {
|
|
4411
4411
|
constructor() {
|
|
4412
4412
|
super({
|
|
4413
4413
|
type: "date",
|
|
@@ -4472,7 +4472,7 @@ function sf(t, e = []) {
|
|
|
4472
4472
|
let l = t[a];
|
|
4473
4473
|
o.add(a), vn.isRef(l) && l.isSibling ? i(l.path, a) : Jr(l) && "deps" in l && l.deps.forEach((c) => i(c, a));
|
|
4474
4474
|
}
|
|
4475
|
-
return
|
|
4475
|
+
return Ad.array(Array.from(o), n).reverse();
|
|
4476
4476
|
}
|
|
4477
4477
|
function Vi(t, e) {
|
|
4478
4478
|
let n = 1 / 0;
|
|
@@ -4525,7 +4525,7 @@ const cf = Gs([]);
|
|
|
4525
4525
|
function Zr(t) {
|
|
4526
4526
|
return new Ys(t);
|
|
4527
4527
|
}
|
|
4528
|
-
class Ys extends
|
|
4528
|
+
class Ys extends At {
|
|
4529
4529
|
constructor(e) {
|
|
4530
4530
|
super({
|
|
4531
4531
|
type: "object",
|
|
@@ -4554,7 +4554,7 @@ class Ys extends Pt {
|
|
|
4554
4554
|
context: n.context,
|
|
4555
4555
|
parent: c
|
|
4556
4556
|
});
|
|
4557
|
-
let h = d instanceof
|
|
4557
|
+
let h = d instanceof At ? d.spec : void 0, v = h == null ? void 0 : h.strict;
|
|
4558
4558
|
if (h != null && h.strip) {
|
|
4559
4559
|
u = u || f in r;
|
|
4560
4560
|
continue;
|
|
@@ -4867,23 +4867,23 @@ function ei(t, e, n) {
|
|
|
4867
4867
|
let ye = "";
|
|
4868
4868
|
if (z.required && (!X || X.trim() === ""))
|
|
4869
4869
|
if (z.validations) {
|
|
4870
|
-
ye =
|
|
4871
|
-
let ve =
|
|
4870
|
+
ye = P(z.validations, "VALIDATE_REQUIRED"), ce.push(ye);
|
|
4871
|
+
let ve = A(z.validations, "VALIDATE_REQUIRED");
|
|
4872
4872
|
ve && (ve = "hint:" + ve, ce.push(ve));
|
|
4873
4873
|
} else
|
|
4874
4874
|
ye = z.displayName + " is required.", ce.push(ye);
|
|
4875
4875
|
else {
|
|
4876
4876
|
if (z.maxLength && X.length > z.maxLength)
|
|
4877
4877
|
if (z.validations) {
|
|
4878
|
-
ye =
|
|
4879
|
-
let ve =
|
|
4878
|
+
ye = P(z.validations, "VALIDATE_MAXLENGTH"), ce.push(ye);
|
|
4879
|
+
let ve = A(z.validations, "VALIDATE_MAXLENGTH");
|
|
4880
4880
|
ve && (ve = "hint:" + ve, ce.push(ve));
|
|
4881
4881
|
} else
|
|
4882
4882
|
ye = z.displayName + " cannot exceed from " + z.maxLength + " characters", ce.push(ye);
|
|
4883
4883
|
if (z.regxId && !new RegExp(H(z.validations, "VALIDATE_REGX")).test(X))
|
|
4884
4884
|
if (z.validations) {
|
|
4885
|
-
ye =
|
|
4886
|
-
let ve =
|
|
4885
|
+
ye = P(z.validations, "VALIDATE_REGX"), ce.push(ye);
|
|
4886
|
+
let ve = A(z.validations, "VALIDATE_REGX");
|
|
4887
4887
|
ve && (ve = "hint:" + ve, ce.push(ve));
|
|
4888
4888
|
} else
|
|
4889
4889
|
ye = z.displayName + " invalid format.", ce.push(ye);
|
|
@@ -4895,7 +4895,7 @@ function ei(t, e, n) {
|
|
|
4895
4895
|
}
|
|
4896
4896
|
})), Y), {})
|
|
4897
4897
|
);
|
|
4898
|
-
},
|
|
4898
|
+
}, P = (Y, z) => {
|
|
4899
4899
|
for (let X = 0; X < Y.length; X++)
|
|
4900
4900
|
if (z == Y[X].type)
|
|
4901
4901
|
return Y[X].message;
|
|
@@ -4903,7 +4903,7 @@ function ei(t, e, n) {
|
|
|
4903
4903
|
for (let X = 0; X < Y.length; X++)
|
|
4904
4904
|
if (z == Y[X].type)
|
|
4905
4905
|
return Y[X].regx;
|
|
4906
|
-
},
|
|
4906
|
+
}, A = (Y, z) => {
|
|
4907
4907
|
for (let X = 0; X < Y.length; X++)
|
|
4908
4908
|
if (z == Y[X].type)
|
|
4909
4909
|
return Y[X].hint;
|
|
@@ -4968,7 +4968,7 @@ const df = {
|
|
|
4968
4968
|
}, ee(G(e) ? "Hide" : "Show"), 1)
|
|
4969
4969
|
]),
|
|
4970
4970
|
G(e) ? (b(), C("ul", pf, [
|
|
4971
|
-
(b(!0), C(ue, null,
|
|
4971
|
+
(b(!0), C(ue, null, Pe(t.errors, (l, c) => (b(), C("li", {
|
|
4972
4972
|
key: c,
|
|
4973
4973
|
class: "mb-2"
|
|
4974
4974
|
}, [
|
|
@@ -5137,7 +5137,7 @@ const df = {
|
|
|
5137
5137
|
default: Q(() => {
|
|
5138
5138
|
var h;
|
|
5139
5139
|
return [
|
|
5140
|
-
(b(!0), C(ue, null,
|
|
5140
|
+
(b(!0), C(ue, null, Pe(G(i), (v, S) => {
|
|
5141
5141
|
var x;
|
|
5142
5142
|
return b(), C("div", { key: S }, [
|
|
5143
5143
|
!v.autoGenerated && !v.foreignKey ? (b(), M(Yo, {
|
|
@@ -5313,7 +5313,7 @@ function Hi(t, e) {
|
|
|
5313
5313
|
}
|
|
5314
5314
|
return n;
|
|
5315
5315
|
}
|
|
5316
|
-
function
|
|
5316
|
+
function Pt(t, e = !0) {
|
|
5317
5317
|
return t instanceof Object && t.constructor === Object && (e || Object.keys(t).length !== 0);
|
|
5318
5318
|
}
|
|
5319
5319
|
function wt(t, ...e) {
|
|
@@ -5327,7 +5327,7 @@ function Ct(t) {
|
|
|
5327
5327
|
}
|
|
5328
5328
|
function ti(t, e = "", n = {}) {
|
|
5329
5329
|
const o = Ct(e).split("."), r = o.shift();
|
|
5330
|
-
return r ?
|
|
5330
|
+
return r ? Pt(t) ? ti(wt(t[Object.keys(t).find((i) => Ct(i) === r) || ""], n), o.join("."), n) : void 0 : wt(t, n);
|
|
5331
5331
|
}
|
|
5332
5332
|
function Zo(t, e = !0) {
|
|
5333
5333
|
return Array.isArray(t) && (e || t.length !== 0);
|
|
@@ -5349,7 +5349,7 @@ function Wi(...t) {
|
|
|
5349
5349
|
const e = (n = {}, o = {}) => {
|
|
5350
5350
|
const r = Of({}, n);
|
|
5351
5351
|
return Object.keys(o).forEach((i) => {
|
|
5352
|
-
|
|
5352
|
+
Pt(o[i]) && i in n && Pt(n[i]) ? r[i] = e(n[i], o[i]) : r[i] = o[i];
|
|
5353
5353
|
}), r;
|
|
5354
5354
|
};
|
|
5355
5355
|
return t.reduce((n, o, r) => r === 0 ? o : e(n, o), {});
|
|
@@ -5601,7 +5601,7 @@ var Ff = {
|
|
|
5601
5601
|
this.filters[e] = n;
|
|
5602
5602
|
}
|
|
5603
5603
|
};
|
|
5604
|
-
const
|
|
5604
|
+
const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
5605
5605
|
__name: "RecordColumnRenderer",
|
|
5606
5606
|
props: {
|
|
5607
5607
|
column: Object,
|
|
@@ -5620,14 +5620,14 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
5620
5620
|
o();
|
|
5621
5621
|
}), os(() => {
|
|
5622
5622
|
o();
|
|
5623
|
-
}), (r, i) => t.column.displayFormatKey ? (b(), C("span",
|
|
5623
|
+
}), (r, i) => t.column.displayFormatKey ? (b(), C("span", Af, [
|
|
5624
5624
|
w("span", {
|
|
5625
5625
|
ref_key: "el",
|
|
5626
5626
|
ref: e
|
|
5627
5627
|
}, ee(t.value), 513)
|
|
5628
|
-
])) : (b(), C("span",
|
|
5628
|
+
])) : (b(), C("span", Pf, ee(t.value), 1));
|
|
5629
5629
|
}
|
|
5630
|
-
}, Df = { class: "my-2" }, Nf = { class: "flex flex-col md:flex-row md:justify-between md:items-center" }, Lf = { class: "flex flex-row gap-2" },
|
|
5630
|
+
}, Df = { class: "my-2" }, Nf = { class: "flex flex-col md:flex-row md:justify-between md:items-center" }, Lf = { class: "flex flex-row gap-2" }, Ar = {
|
|
5631
5631
|
__name: "Grid",
|
|
5632
5632
|
props: {
|
|
5633
5633
|
entityName: String,
|
|
@@ -5641,7 +5641,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
5641
5641
|
setup(t) {
|
|
5642
5642
|
const e = et(), n = t;
|
|
5643
5643
|
console.log("columnsToShow", n.columnsToShow);
|
|
5644
|
-
const o = yn(), r = _(n.entityName || o.params.entityName), i = _({}), a = _(""), l = _(!1), c = _(!1), { items: s, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: v, filterToSend: S, primarayKeyColumn: x, fullTextSearch: T, listingResponse: R, onFullTextSearch: I, getDatatypeByField: k, getColumnDatatype: y, onSort: E, onPage: D, onFilter: B, fetchEntityFilterData:
|
|
5644
|
+
const o = yn(), r = _(n.entityName || o.params.entityName), i = _({}), a = _(""), l = _(!1), c = _(!1), { items: s, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: v, filterToSend: S, primarayKeyColumn: x, fullTextSearch: T, listingResponse: R, onFullTextSearch: I, getDatatypeByField: k, getColumnDatatype: y, onSort: E, onPage: D, onFilter: B, fetchEntityFilterData: P, fetchEntityByName: H } = zc(r.value), A = _();
|
|
5645
5645
|
let q = _(!1);
|
|
5646
5646
|
const N = (se) => {
|
|
5647
5647
|
i.value = se.reduce((de, we) => {
|
|
@@ -5675,11 +5675,11 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
5675
5675
|
}, z = (se) => {
|
|
5676
5676
|
se ? a.value = se[x.value.name] : a.value = "", l.value = !l.value;
|
|
5677
5677
|
}, X = () => {
|
|
5678
|
-
l.value = !1,
|
|
5678
|
+
l.value = !1, P(!1);
|
|
5679
5679
|
}, ce = (se) => {
|
|
5680
5680
|
a.value = se[x.value.name], c.value = !0;
|
|
5681
5681
|
}, ye = () => {
|
|
5682
|
-
c.value = !1,
|
|
5682
|
+
c.value = !1, P(!1);
|
|
5683
5683
|
}, ve = (se) => Object.keys(se).map((de) => {
|
|
5684
5684
|
const we = se[de];
|
|
5685
5685
|
return we.constraints ? we.constraints.filter((Se) => Se.value !== null && Se.value !== "").map((Se) => ({
|
|
@@ -5694,14 +5694,14 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
5694
5694
|
columnType: k(de)
|
|
5695
5695
|
} : [];
|
|
5696
5696
|
}).flat();
|
|
5697
|
-
return
|
|
5697
|
+
return Ae(
|
|
5698
5698
|
() => e.globalConfigs.appId,
|
|
5699
5699
|
// The source to watch
|
|
5700
5700
|
async (se) => {
|
|
5701
5701
|
se && H(r.value);
|
|
5702
5702
|
},
|
|
5703
5703
|
{ immediate: !0 }
|
|
5704
|
-
),
|
|
5704
|
+
), Ae(() => u.value, (se) => {
|
|
5705
5705
|
!q.value && se && se.length && (N(se), q.value = !0);
|
|
5706
5706
|
}, { immediate: !0 }), (se, de) => {
|
|
5707
5707
|
const we = K("Button"), Se = K("Toolbar"), Ne = K("ProgressSpinner"), pt = K("InputIcon"), tt = K("IconField"), kt = K("DatePicker"), ht = K("InputNumber"), Z = K("Checkbox"), W = K("Column"), $e = K("DataTable");
|
|
@@ -5746,7 +5746,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
5746
5746
|
value: G(s),
|
|
5747
5747
|
loading: G(m),
|
|
5748
5748
|
ref_key: "dt",
|
|
5749
|
-
ref:
|
|
5749
|
+
ref: A,
|
|
5750
5750
|
stripedRows: !0,
|
|
5751
5751
|
showGridlines: "",
|
|
5752
5752
|
rowHover: !0,
|
|
@@ -5801,7 +5801,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
5801
5801
|
default: Q(() => {
|
|
5802
5802
|
var Ie;
|
|
5803
5803
|
return [
|
|
5804
|
-
(b(!0), C(ue, null,
|
|
5804
|
+
(b(!0), C(ue, null, Pe(G(u).filter((_e) => !n.columnsToShow || n.columnsToShow.length === 0 || n.columnsToShow.includes(_e.field)), (_e) => (b(), M(W, {
|
|
5805
5805
|
key: _e.field,
|
|
5806
5806
|
dataType: G(y)(_e.datatype),
|
|
5807
5807
|
field: _e.field,
|
|
@@ -6119,7 +6119,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6119
6119
|
e.saveExistingRelatedEntityRecord(W);
|
|
6120
6120
|
}, B = () => {
|
|
6121
6121
|
S.value = !S.value;
|
|
6122
|
-
},
|
|
6122
|
+
}, P = [
|
|
6123
6123
|
{ label: "Starts with", value: "startsWith" },
|
|
6124
6124
|
{ label: "Contains", value: "contains" },
|
|
6125
6125
|
{ label: "Not contains", value: "notContains" },
|
|
@@ -6133,7 +6133,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6133
6133
|
{ label: "Less than or equal to", value: "lte" },
|
|
6134
6134
|
{ label: "Greater than", value: "gt" },
|
|
6135
6135
|
{ label: "Greater than or equal to", value: "gte" }
|
|
6136
|
-
],
|
|
6136
|
+
], A = [
|
|
6137
6137
|
{ label: "Equals", value: "equals" },
|
|
6138
6138
|
{ label: "Not equals", value: "notEquals" }
|
|
6139
6139
|
], q = [
|
|
@@ -6186,10 +6186,10 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6186
6186
|
break;
|
|
6187
6187
|
case "bool":
|
|
6188
6188
|
case "boolean":
|
|
6189
|
-
oe =
|
|
6189
|
+
oe = A;
|
|
6190
6190
|
break;
|
|
6191
6191
|
default:
|
|
6192
|
-
oe =
|
|
6192
|
+
oe = P;
|
|
6193
6193
|
}
|
|
6194
6194
|
return oe;
|
|
6195
6195
|
}, ve = (Z) => {
|
|
@@ -6313,7 +6313,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6313
6313
|
}, null, 8, ["modelValue"])
|
|
6314
6314
|
])
|
|
6315
6315
|
]),
|
|
6316
|
-
(b(!0), C(ue, null,
|
|
6316
|
+
(b(!0), C(ue, null, Pe(d.value, (fe, xt) => (b(), C("div", { key: xt }, [
|
|
6317
6317
|
fe.editing ? (b(), C("div", Zf, [
|
|
6318
6318
|
V(ze, { class: "mt-5" }),
|
|
6319
6319
|
w("div", ep, [
|
|
@@ -6440,7 +6440,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6440
6440
|
w("div", pp, ee((Kt = r.value) == null ? void 0 : Kt.totalRecords), 1),
|
|
6441
6441
|
w("div", mp, ee((sn = r.value) == null ? void 0 : sn.entityName), 1)
|
|
6442
6442
|
]),
|
|
6443
|
-
(b(!0), C(ue, null,
|
|
6443
|
+
(b(!0), C(ue, null, Pe(r.value.result, (fe, xt) => (b(), C("div", { key: xt }, [
|
|
6444
6444
|
w("div", gp, [
|
|
6445
6445
|
V(lt, {
|
|
6446
6446
|
disabled: R(fe[s.value.name]),
|
|
@@ -6631,7 +6631,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6631
6631
|
]);
|
|
6632
6632
|
};
|
|
6633
6633
|
}
|
|
6634
|
-
}, Fp = { style: { "font-weight": "700", "font-size": "1.25rem" } },
|
|
6634
|
+
}, Fp = { style: { "font-weight": "700", "font-size": "1.25rem" } }, Ap = { class: "flex flex-col" }, Pp = { class: "flex flex-row justify-between items-center" }, Dp = { class: "justify-start" }, Np = { class: "justify-start" }, Lp = "", Vp = {
|
|
6635
6635
|
__name: "CreateRelatedentity",
|
|
6636
6636
|
props: /* @__PURE__ */ Xe({
|
|
6637
6637
|
entity360Id: {
|
|
@@ -6702,7 +6702,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6702
6702
|
const T = K("Tab"), R = K("TabList"), I = K("Divider"), k = K("Button"), y = K("TabPanel"), E = K("TabPanels"), D = K("Tabs"), B = K("Drawer");
|
|
6703
6703
|
return b(), M(B, {
|
|
6704
6704
|
visible: n.value,
|
|
6705
|
-
"onUpdate:visible": x[3] || (x[3] = (
|
|
6705
|
+
"onUpdate:visible": x[3] || (x[3] = (P) => n.value = P),
|
|
6706
6706
|
blockScroll: !0,
|
|
6707
6707
|
position: "right",
|
|
6708
6708
|
class: "p-fluid layout-profile-sidebar",
|
|
@@ -6738,31 +6738,31 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6738
6738
|
default: Q(() => [
|
|
6739
6739
|
V(y, { value: "0" }, {
|
|
6740
6740
|
default: Q(() => [
|
|
6741
|
-
(b(!0), C(ue, null,
|
|
6742
|
-
var
|
|
6741
|
+
(b(!0), C(ue, null, Pe(G(c), (P, H) => {
|
|
6742
|
+
var A;
|
|
6743
6743
|
return b(), C("div", {
|
|
6744
6744
|
key: H,
|
|
6745
6745
|
class: "mt-3"
|
|
6746
6746
|
}, [
|
|
6747
|
-
!
|
|
6747
|
+
!P.autoGenerated && !P.foreignKey ? (b(), M(Yo, {
|
|
6748
6748
|
key: 0,
|
|
6749
|
-
modelValue: G(l)[
|
|
6750
|
-
"onUpdate:modelValue": (q) => G(l)[
|
|
6751
|
-
column:
|
|
6752
|
-
errors: (
|
|
6749
|
+
modelValue: G(l)[P.name],
|
|
6750
|
+
"onUpdate:modelValue": (q) => G(l)[P.name] = q,
|
|
6751
|
+
column: P,
|
|
6752
|
+
errors: (A = G(s)[P.name]) == null ? void 0 : A.messages,
|
|
6753
6753
|
onInput: G(f)
|
|
6754
6754
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"])) : U("", !0)
|
|
6755
6755
|
]);
|
|
6756
6756
|
}), 128)),
|
|
6757
|
-
w("div",
|
|
6757
|
+
w("div", Ap, [
|
|
6758
6758
|
V(I),
|
|
6759
|
-
w("div",
|
|
6759
|
+
w("div", Pp, [
|
|
6760
6760
|
w("div", Dp, [
|
|
6761
6761
|
V(k, {
|
|
6762
6762
|
label: "Cancel",
|
|
6763
6763
|
icon: "",
|
|
6764
6764
|
severity: "secondary",
|
|
6765
|
-
onClick: x[0] || (x[0] = (
|
|
6765
|
+
onClick: x[0] || (x[0] = (P) => n.value = !1)
|
|
6766
6766
|
})
|
|
6767
6767
|
]),
|
|
6768
6768
|
w("div", Np, [
|
|
@@ -6782,7 +6782,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6782
6782
|
t.linkedEntity.relationType == "ONE_TO_MANY" ? (b(), M(Sp, {
|
|
6783
6783
|
key: 0,
|
|
6784
6784
|
modelValue: n.value,
|
|
6785
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
6785
|
+
"onUpdate:modelValue": x[1] || (x[1] = (P) => n.value = P),
|
|
6786
6786
|
linkedEntity: t.linkedEntity,
|
|
6787
6787
|
entity360Name: t.entity360Name,
|
|
6788
6788
|
entity360Id: t.entity360Id,
|
|
@@ -6791,7 +6791,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6791
6791
|
t.linkedEntity.relationType == "MANY_TO_ONE" ? (b(), M(Rp, {
|
|
6792
6792
|
key: 1,
|
|
6793
6793
|
modelValue: n.value,
|
|
6794
|
-
"onUpdate:modelValue": x[2] || (x[2] = (
|
|
6794
|
+
"onUpdate:modelValue": x[2] || (x[2] = (P) => n.value = P),
|
|
6795
6795
|
linkedEntity: t.linkedEntity,
|
|
6796
6796
|
entity360Name: t.entity360Name,
|
|
6797
6797
|
entity360Id: t.entity360Id,
|
|
@@ -6871,7 +6871,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6871
6871
|
])
|
|
6872
6872
|
]),
|
|
6873
6873
|
n.value ? (b(), C("div", Kp, [
|
|
6874
|
-
(b(!0), C(ue, null,
|
|
6874
|
+
(b(!0), C(ue, null, Pe(t.linkedEntity.list, (f, d) => (b(), C("div", {
|
|
6875
6875
|
class: "flex flex-col",
|
|
6876
6876
|
key: d
|
|
6877
6877
|
}, [
|
|
@@ -6932,12 +6932,12 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6932
6932
|
},
|
|
6933
6933
|
emits: ["onSaveDialog"],
|
|
6934
6934
|
setup(t, { expose: e, emit: n }) {
|
|
6935
|
-
var B,
|
|
6935
|
+
var B, P;
|
|
6936
6936
|
const o = et(), r = yn(), i = t, a = _(!0), l = _(!1), c = _([]);
|
|
6937
|
-
let s = (B = r == null ? void 0 : r.params) == null ? void 0 : B.entityName, u = (
|
|
6937
|
+
let s = (B = r == null ? void 0 : r.params) == null ? void 0 : B.entityName, u = (P = r == null ? void 0 : r.params) == null ? void 0 : P.id;
|
|
6938
6938
|
i.entityName && (s = i.entityName), i.recordId && (u = i.recordId);
|
|
6939
6939
|
const f = n, { formData: d, columns: p, errors: m, backendErrors: g, isDataChange: h, linkedEntities: v, primarayColumn: S, clearErrors: x, saveRecord: T, getRelatedEntityRecordById: R, cancleRecord: I } = ei(s, u, f);
|
|
6940
|
-
|
|
6940
|
+
Ae(
|
|
6941
6941
|
() => o.globalConfigs.appId,
|
|
6942
6942
|
async (H) => {
|
|
6943
6943
|
H && R();
|
|
@@ -6953,18 +6953,18 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
6953
6953
|
}, D = (H) => {
|
|
6954
6954
|
if (!c.value || c.value.length === 0)
|
|
6955
6955
|
return [];
|
|
6956
|
-
const
|
|
6957
|
-
return
|
|
6956
|
+
const A = c.value.find((q) => q.entityName === H);
|
|
6957
|
+
return A && A.list ? A.list : (console.log("No related entity found"), []);
|
|
6958
6958
|
};
|
|
6959
6959
|
return e({
|
|
6960
6960
|
getRelatedEntity: D
|
|
6961
|
-
}),
|
|
6961
|
+
}), Ae(
|
|
6962
6962
|
() => v.value,
|
|
6963
6963
|
(H) => {
|
|
6964
6964
|
Array.isArray(H) && H.length > 0 && H[0] && (c.value = H);
|
|
6965
6965
|
},
|
|
6966
6966
|
{ immediate: !0, deep: !0 }
|
|
6967
|
-
), (H,
|
|
6967
|
+
), (H, A) => {
|
|
6968
6968
|
var ve;
|
|
6969
6969
|
const q = K("SplitterPanel"), N = K("Tab"), oe = K("TabList"), Y = K("TabPanel"), z = K("TabPanels"), X = K("Tabs"), ce = K("Splitter"), ye = K("Button");
|
|
6970
6970
|
return H.$slots["list-item-display-360"] ? (b(), C("div", Xp, [
|
|
@@ -7000,7 +7000,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
7000
7000
|
default: Q(() => [
|
|
7001
7001
|
w("div", Qp, [
|
|
7002
7002
|
w("div", {
|
|
7003
|
-
onClick:
|
|
7003
|
+
onClick: A[0] || (A[0] = (se) => k()),
|
|
7004
7004
|
class: "section-heading cursor-pointer"
|
|
7005
7005
|
}, [
|
|
7006
7006
|
a.value ? U("", !0) : (b(), C("i", Zp)),
|
|
@@ -7008,7 +7008,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
7008
7008
|
w("span", tm, " About this " + ee(G(s)), 1)
|
|
7009
7009
|
]),
|
|
7010
7010
|
a.value ? (b(), C("div", nm, [
|
|
7011
|
-
(b(!0), C(ue, null,
|
|
7011
|
+
(b(!0), C(ue, null, Pe(G(p), (se, de) => {
|
|
7012
7012
|
var we;
|
|
7013
7013
|
return b(), C("div", { key: de }, [
|
|
7014
7014
|
se.autoGenerated ? U("", !0) : (b(), M(Yo, {
|
|
@@ -7037,13 +7037,13 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
7037
7037
|
V(oe, null, {
|
|
7038
7038
|
default: Q(() => [
|
|
7039
7039
|
V(N, { value: "0" }, {
|
|
7040
|
-
default: Q(() =>
|
|
7040
|
+
default: Q(() => A[3] || (A[3] = [
|
|
7041
7041
|
Ye("Overview")
|
|
7042
7042
|
])),
|
|
7043
7043
|
_: 1
|
|
7044
7044
|
}),
|
|
7045
7045
|
V(N, { value: "1" }, {
|
|
7046
|
-
default: Q(() =>
|
|
7046
|
+
default: Q(() => A[4] || (A[4] = [
|
|
7047
7047
|
Ye("Activity")
|
|
7048
7048
|
])),
|
|
7049
7049
|
_: 1
|
|
@@ -7056,9 +7056,9 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
7056
7056
|
V(Y, { value: "0" }, {
|
|
7057
7057
|
default: Q(() => [
|
|
7058
7058
|
w("div", om, [
|
|
7059
|
-
|
|
7059
|
+
A[5] || (A[5] = w("h3", { class: "mt-2 text-xl font-semibold" }, "Data highlights", -1)),
|
|
7060
7060
|
w("div", rm, [
|
|
7061
|
-
(b(!0), C(ue, null,
|
|
7061
|
+
(b(!0), C(ue, null, Pe(G(p).filter((se) => se.autoGenerated), (se, de) => (b(), C("div", {
|
|
7062
7062
|
key: de,
|
|
7063
7063
|
class: "column-item"
|
|
7064
7064
|
}, [
|
|
@@ -7108,7 +7108,7 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
7108
7108
|
style: { height: "2rem", width: "2rem", left: "-20px" }
|
|
7109
7109
|
})),
|
|
7110
7110
|
l.value ? (b(), C("div", um, [
|
|
7111
|
-
(b(!0), C(ue, null,
|
|
7111
|
+
(b(!0), C(ue, null, Pe(G(v), (se, de) => (b(), C("div", { key: de }, [
|
|
7112
7112
|
V(Yp, {
|
|
7113
7113
|
entity360Name: G(s),
|
|
7114
7114
|
entity360Id: G(u),
|
|
@@ -7124,9 +7124,9 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
7124
7124
|
w("div", fm, [
|
|
7125
7125
|
V(ye, {
|
|
7126
7126
|
severity: "primary",
|
|
7127
|
-
onClick:
|
|
7127
|
+
onClick: A[1] || (A[1] = (se) => G(T)())
|
|
7128
7128
|
}, {
|
|
7129
|
-
default: Q(() =>
|
|
7129
|
+
default: Q(() => A[6] || (A[6] = [
|
|
7130
7130
|
Ye("Save")
|
|
7131
7131
|
])),
|
|
7132
7132
|
_: 1
|
|
@@ -7134,9 +7134,9 @@ const Pf = { key: 0 }, Af = { key: 1 }, ni = {
|
|
|
7134
7134
|
V(ye, {
|
|
7135
7135
|
style: { "margin-left": "10px" },
|
|
7136
7136
|
severity: "secondary",
|
|
7137
|
-
onClick:
|
|
7137
|
+
onClick: A[2] || (A[2] = (se) => G(I)())
|
|
7138
7138
|
}, {
|
|
7139
|
-
default: Q(() =>
|
|
7139
|
+
default: Q(() => A[7] || (A[7] = [
|
|
7140
7140
|
Ye("Cancel")
|
|
7141
7141
|
])),
|
|
7142
7142
|
_: 1
|
|
@@ -7237,9 +7237,9 @@ function er() {
|
|
|
7237
7237
|
return y;
|
|
7238
7238
|
}, g = (I, k) => {
|
|
7239
7239
|
const E = I.entity.entityDefinition.columns.filter((B) => B.autoGenerated).map((B) => B.name);
|
|
7240
|
-
return Object.entries(k).filter(([B]) => !E.includes(B)).map(([B,
|
|
7240
|
+
return Object.entries(k).filter(([B]) => !E.includes(B)).map(([B, P]) => ({
|
|
7241
7241
|
recordColumnName: B,
|
|
7242
|
-
recordColumnValue:
|
|
7242
|
+
recordColumnValue: P,
|
|
7243
7243
|
columnType: m(o.data, B)
|
|
7244
7244
|
}));
|
|
7245
7245
|
}, h = () => {
|
|
@@ -7249,29 +7249,29 @@ function er() {
|
|
|
7249
7249
|
name: "custom-validation",
|
|
7250
7250
|
test: function(D) {
|
|
7251
7251
|
const B = [];
|
|
7252
|
-
let
|
|
7252
|
+
let P = "";
|
|
7253
7253
|
if (E.required && (!D || D.trim() === ""))
|
|
7254
7254
|
if (E.validations) {
|
|
7255
|
-
|
|
7255
|
+
P = v(E.validations, "VALIDATE_REQUIRED"), B.push(P);
|
|
7256
7256
|
let H = x(E.validations, "VALIDATE_REQUIRED");
|
|
7257
7257
|
H && (H = "hint:" + H, B.push(H));
|
|
7258
7258
|
} else
|
|
7259
|
-
|
|
7259
|
+
P = E.displayName + " is required.", B.push(P);
|
|
7260
7260
|
else {
|
|
7261
7261
|
if (E.maxLength && D.length > E.maxLength)
|
|
7262
7262
|
if (E.validations) {
|
|
7263
|
-
|
|
7263
|
+
P = v(E.validations, "VALIDATE_MAXLENGTH"), B.push(P);
|
|
7264
7264
|
let H = x(E.validations, "VALIDATE_MAXLENGTH");
|
|
7265
7265
|
H && (H = "hint:" + H, B.push(H));
|
|
7266
7266
|
} else
|
|
7267
|
-
|
|
7267
|
+
P = E.displayName + " cannot exceed from " + E.maxLength + " characters", B.push(P);
|
|
7268
7268
|
if (E.regxId && !new RegExp(S(E.validations, "VALIDATE_REGX")).test(D))
|
|
7269
7269
|
if (E.validations) {
|
|
7270
|
-
|
|
7270
|
+
P = v(E.validations, "VALIDATE_REGX"), B.push(P);
|
|
7271
7271
|
let H = x(E.validations, "VALIDATE_REGX");
|
|
7272
7272
|
H && (H = "hint:" + H, B.push(H));
|
|
7273
7273
|
} else
|
|
7274
|
-
|
|
7274
|
+
P = E.displayName + " invalid format.", B.push(P);
|
|
7275
7275
|
}
|
|
7276
7276
|
return B.length > 0 ? this.createError({
|
|
7277
7277
|
message: B
|
|
@@ -7314,7 +7314,7 @@ function er() {
|
|
|
7314
7314
|
validate: !0
|
|
7315
7315
|
};
|
|
7316
7316
|
} catch (y) {
|
|
7317
|
-
const E = y.inner.reduce((
|
|
7317
|
+
const E = y.inner.reduce((P, H) => (P[H.path] || (P[H.path] = { messages: [] }), P[H.path].messages.push(...H.errors), P), {}), D = Object.entries(E).reduce((P, [H, A]) => (P[H] = { messages: A.messages }, P), {});
|
|
7318
7318
|
return n(D), {
|
|
7319
7319
|
validate: !1,
|
|
7320
7320
|
errors: e.value
|
|
@@ -7465,7 +7465,7 @@ const tr = {
|
|
|
7465
7465
|
default: Q(() => {
|
|
7466
7466
|
var v;
|
|
7467
7467
|
return [
|
|
7468
|
-
(b(!0), C(ue, null,
|
|
7468
|
+
(b(!0), C(ue, null, Pe(G(r), (S, x) => {
|
|
7469
7469
|
var T;
|
|
7470
7470
|
return b(), C("div", { key: x }, [
|
|
7471
7471
|
!S.autoGenerated && !S.foreignKey ? (b(), M(Yo, {
|
|
@@ -7538,7 +7538,7 @@ const tr = {
|
|
|
7538
7538
|
w("div", bm, [
|
|
7539
7539
|
w("div", ym, [
|
|
7540
7540
|
w("div", vm, [
|
|
7541
|
-
(b(!0), C(ue, null,
|
|
7541
|
+
(b(!0), C(ue, null, Pe(o.value, (p, m) => (b(), C("div", { key: m }, [
|
|
7542
7542
|
w("span", wm, ee(p.name) + " : ", 1),
|
|
7543
7543
|
V(ni, {
|
|
7544
7544
|
column: p,
|
|
@@ -7587,9 +7587,9 @@ const tr = {
|
|
|
7587
7587
|
},
|
|
7588
7588
|
setup(t) {
|
|
7589
7589
|
const e = at("entityObject"), n = _([]);
|
|
7590
|
-
return
|
|
7590
|
+
return Ae(() => e.state.data, (o) => {
|
|
7591
7591
|
o && (n.value = o.result, console.log("Entity state updated in child:", e));
|
|
7592
|
-
}, { immediate: !0 }), (o, r) => (b(!0), C(ue, null,
|
|
7592
|
+
}, { immediate: !0 }), (o, r) => (b(!0), C(ue, null, Pe(n.value, (i, a) => (b(), C("div", {
|
|
7593
7593
|
key: a,
|
|
7594
7594
|
class: "card rounded-md p-5 my-2 shadow-lg relative tile"
|
|
7595
7595
|
}, [
|
|
@@ -7605,7 +7605,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7605
7605
|
setup(t) {
|
|
7606
7606
|
const e = at("entityObject");
|
|
7607
7607
|
let n = _("");
|
|
7608
|
-
return
|
|
7608
|
+
return Ae(() => e.state.data, (o) => {
|
|
7609
7609
|
o && (n.value = o.entityName);
|
|
7610
7610
|
}, { immediate: !0 }), (o, r) => {
|
|
7611
7611
|
const i = K("Toolbar");
|
|
@@ -7620,7 +7620,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7620
7620
|
});
|
|
7621
7621
|
};
|
|
7622
7622
|
}
|
|
7623
|
-
}, Rm = { class: "flex flex-col mb-5" }, Fm = { class: "col-12" },
|
|
7623
|
+
}, Rm = { class: "flex flex-col mb-5" }, Fm = { class: "col-12" }, Am = { class: "flex flex-col mb-5" }, Pm = { class: "col-12" }, Dm = { key: 0 }, Nm = { class: "flex flex-col mb-5" }, Lm = { class: "col-12" }, Vm = { class: "flex flex-col mb-5" }, zm = { class: "col-12" }, jm = { class: "flex flex-col mb-5" }, Mm = { class: "col-12" }, Um = { class: "flex flex-row justify-between items-center" }, Hm = { key: 1 }, Wm = { class: "flex flex-row justify-between items-center" }, qm = {
|
|
7624
7624
|
key: 1,
|
|
7625
7625
|
class: "text-red-500"
|
|
7626
7626
|
}, Km = { class: "flex flex-col" }, Gm = { class: "flex flex-row justify-between items-center" }, Ym = {
|
|
@@ -7761,7 +7761,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7761
7761
|
t.sortCallback();
|
|
7762
7762
|
};
|
|
7763
7763
|
return (k, y) => {
|
|
7764
|
-
const E = K("Select"), D = K("Divider"), B = K("InputNumber"),
|
|
7764
|
+
const E = K("Select"), D = K("Divider"), B = K("InputNumber"), P = K("DatePicker"), H = K("InputText"), A = K("Button"), q = K("Drawer");
|
|
7765
7765
|
return b(), M(q, {
|
|
7766
7766
|
visible: o.value,
|
|
7767
7767
|
"onUpdate:visible": y[4] || (y[4] = (N) => o.value = N),
|
|
@@ -7789,11 +7789,11 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7789
7789
|
}, null, 8, ["modelValue", "options"])
|
|
7790
7790
|
])
|
|
7791
7791
|
]),
|
|
7792
|
-
w("div",
|
|
7792
|
+
w("div", Am, [
|
|
7793
7793
|
y[6] || (y[6] = w("div", { class: "col-12 font-bold" }, [
|
|
7794
7794
|
w("div", { class: "col-12 font-bold" }, "Sort Direction")
|
|
7795
7795
|
], -1)),
|
|
7796
|
-
w("div",
|
|
7796
|
+
w("div", Pm, [
|
|
7797
7797
|
V(E, {
|
|
7798
7798
|
modelValue: n.value,
|
|
7799
7799
|
"onUpdate:modelValue": y[2] || (y[2] = (N) => n.value = N),
|
|
@@ -7806,7 +7806,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7806
7806
|
}, null, 8, ["modelValue"])
|
|
7807
7807
|
])
|
|
7808
7808
|
]),
|
|
7809
|
-
(b(!0), C(ue, null,
|
|
7809
|
+
(b(!0), C(ue, null, Pe(r.value, (N, oe) => (b(), C("div", { key: oe }, [
|
|
7810
7810
|
N.editing ? (b(), C("div", Dm, [
|
|
7811
7811
|
V(D),
|
|
7812
7812
|
w("div", Nm, [
|
|
@@ -7850,7 +7850,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7850
7850
|
modelValue: N.value,
|
|
7851
7851
|
"onUpdate:modelValue": (Y) => N.value = Y,
|
|
7852
7852
|
placeholder: "Search value"
|
|
7853
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : v(N) == "date" ? (b(), M(
|
|
7853
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : v(N) == "date" ? (b(), M(P, {
|
|
7854
7854
|
key: 1,
|
|
7855
7855
|
class: "w-full",
|
|
7856
7856
|
modelValue: N.value,
|
|
@@ -7867,13 +7867,13 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7867
7867
|
])
|
|
7868
7868
|
]),
|
|
7869
7869
|
w("div", Um, [
|
|
7870
|
-
V(
|
|
7870
|
+
V(A, {
|
|
7871
7871
|
label: "Hide",
|
|
7872
7872
|
icon: "",
|
|
7873
7873
|
severity: "warn",
|
|
7874
7874
|
onClick: (Y) => T(N)
|
|
7875
7875
|
}, null, 8, ["onClick"]),
|
|
7876
|
-
V(
|
|
7876
|
+
V(A, {
|
|
7877
7877
|
label: "Delete",
|
|
7878
7878
|
icon: "",
|
|
7879
7879
|
severity: "danger",
|
|
@@ -7897,7 +7897,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7897
7897
|
}, ee(N.value ? " " + N.value : " value"), 3)
|
|
7898
7898
|
], 64)) : (b(), C("span", qm, "Filter is empty"))
|
|
7899
7899
|
]),
|
|
7900
|
-
V(
|
|
7900
|
+
V(A, {
|
|
7901
7901
|
label: "Edit",
|
|
7902
7902
|
icon: "",
|
|
7903
7903
|
severity: "info",
|
|
@@ -7909,14 +7909,14 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7909
7909
|
w("div", Km, [
|
|
7910
7910
|
V(D),
|
|
7911
7911
|
w("div", Gm, [
|
|
7912
|
-
V(
|
|
7912
|
+
V(A, {
|
|
7913
7913
|
label: "Add",
|
|
7914
7914
|
disabled: p.value.length === r.value.length,
|
|
7915
7915
|
icon: "",
|
|
7916
7916
|
severity: "success",
|
|
7917
7917
|
onClick: S
|
|
7918
7918
|
}, null, 8, ["disabled"]),
|
|
7919
|
-
V(
|
|
7919
|
+
V(A, {
|
|
7920
7920
|
label: "Apply",
|
|
7921
7921
|
severity: "info",
|
|
7922
7922
|
onClick: R
|
|
@@ -7957,7 +7957,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7957
7957
|
const k = f.externalFilterPayload;
|
|
7958
7958
|
i.value = ((y = k.sortBy) == null ? void 0 : y[0]) || "", a.value = k.sortDirection === "DESC" ? -1 : 1, l.value = k.fullTextSearch || "", o.value = k.filter || [], r.value = k.filter || [], h();
|
|
7959
7959
|
};
|
|
7960
|
-
|
|
7960
|
+
Ae(
|
|
7961
7961
|
() => e.state.data,
|
|
7962
7962
|
(k) => {
|
|
7963
7963
|
if (k && !u.value) {
|
|
@@ -8018,7 +8018,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8018
8018
|
return y ? y.type : null;
|
|
8019
8019
|
};
|
|
8020
8020
|
return (k, y) => {
|
|
8021
|
-
const E = K("Button"), D = K("InputIcon"), B = K("InputText"),
|
|
8021
|
+
const E = K("Button"), D = K("InputIcon"), B = K("InputText"), P = K("IconField"), H = K("Toolbar");
|
|
8022
8022
|
return b(), C(ue, null, [
|
|
8023
8023
|
V(H, { class: "p-2 my-2" }, {
|
|
8024
8024
|
start: Q(() => [
|
|
@@ -8029,7 +8029,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8029
8029
|
icon: "pi pi-filter",
|
|
8030
8030
|
label: "Filter",
|
|
8031
8031
|
severity: "info",
|
|
8032
|
-
onClick: y[0] || (y[0] = (
|
|
8032
|
+
onClick: y[0] || (y[0] = (A) => m())
|
|
8033
8033
|
})
|
|
8034
8034
|
]),
|
|
8035
8035
|
V(E, {
|
|
@@ -8039,24 +8039,24 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8039
8039
|
icon: "pi pi-filter-slash",
|
|
8040
8040
|
label: "Clear",
|
|
8041
8041
|
severity: "warn",
|
|
8042
|
-
onClick: y[1] || (y[1] = (
|
|
8042
|
+
onClick: y[1] || (y[1] = (A) => S())
|
|
8043
8043
|
})
|
|
8044
8044
|
]),
|
|
8045
8045
|
end: Q(() => [
|
|
8046
|
-
V(
|
|
8046
|
+
V(P, {
|
|
8047
8047
|
iconPosition: "right",
|
|
8048
8048
|
class: "block mt-2 md:mt-0"
|
|
8049
8049
|
}, {
|
|
8050
8050
|
default: Q(() => [
|
|
8051
8051
|
V(D, {
|
|
8052
|
-
onClick: y[2] || (y[2] = (
|
|
8052
|
+
onClick: y[2] || (y[2] = (A) => x()),
|
|
8053
8053
|
class: "pi pi-search"
|
|
8054
8054
|
}),
|
|
8055
8055
|
V(B, {
|
|
8056
8056
|
class: "w-full sm:w-auto",
|
|
8057
|
-
onKeyup: y[3] || (y[3] = jr((
|
|
8057
|
+
onKeyup: y[3] || (y[3] = jr((A) => x(), ["enter"])),
|
|
8058
8058
|
modelValue: l.value,
|
|
8059
|
-
"onUpdate:modelValue": y[4] || (y[4] = (
|
|
8059
|
+
"onUpdate:modelValue": y[4] || (y[4] = (A) => l.value = A),
|
|
8060
8060
|
placeholder: "Search..."
|
|
8061
8061
|
}, null, 8, ["modelValue"])
|
|
8062
8062
|
]),
|
|
@@ -8067,13 +8067,13 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8067
8067
|
}),
|
|
8068
8068
|
V(Ym, {
|
|
8069
8069
|
sortBy: i.value,
|
|
8070
|
-
"onUpdate:sortBy": y[5] || (y[5] = (
|
|
8070
|
+
"onUpdate:sortBy": y[5] || (y[5] = (A) => i.value = A),
|
|
8071
8071
|
sortDirection: a.value,
|
|
8072
|
-
"onUpdate:sortDirection": y[6] || (y[6] = (
|
|
8072
|
+
"onUpdate:sortDirection": y[6] || (y[6] = (A) => a.value = A),
|
|
8073
8073
|
showFilter: n.value,
|
|
8074
|
-
"onUpdate:showFilter": y[7] || (y[7] = (
|
|
8074
|
+
"onUpdate:showFilter": y[7] || (y[7] = (A) => n.value = A),
|
|
8075
8075
|
filters: o.value,
|
|
8076
|
-
"onUpdate:filters": y[8] || (y[8] = (
|
|
8076
|
+
"onUpdate:filters": y[8] || (y[8] = (A) => o.value = A),
|
|
8077
8077
|
headers: s.value,
|
|
8078
8078
|
operatorMap: d,
|
|
8079
8079
|
sortCallback: v,
|
|
@@ -8105,7 +8105,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8105
8105
|
i.setEntity(u), o.value = s.response.totalRecords, r.value = n.value * e.value;
|
|
8106
8106
|
}
|
|
8107
8107
|
};
|
|
8108
|
-
return
|
|
8108
|
+
return Ae(() => {
|
|
8109
8109
|
var l, c;
|
|
8110
8110
|
return (c = (l = i == null ? void 0 : i.state) == null ? void 0 : l.data) == null ? void 0 : c.totalRecords;
|
|
8111
8111
|
}, (l) => {
|
|
@@ -8174,7 +8174,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8174
8174
|
reload: () => {
|
|
8175
8175
|
console.log("reload data");
|
|
8176
8176
|
}
|
|
8177
|
-
}),
|
|
8177
|
+
}), Ae(
|
|
8178
8178
|
() => o.globalConfigs.appId,
|
|
8179
8179
|
async (a) => {
|
|
8180
8180
|
if (a) {
|
|
@@ -8190,7 +8190,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8190
8190
|
return a.$slots["list-item-display"] ? (b(), C(ue, { key: 0 }, [
|
|
8191
8191
|
t.showAddButton ? (b(), M(on, { key: 0 })) : U("", !0),
|
|
8192
8192
|
t.listFilerSlot ? (b(), M(Me(t.listFilter || nn), { key: 1 })) : U("", !0),
|
|
8193
|
-
(b(!0), C(ue, null,
|
|
8193
|
+
(b(!0), C(ue, null, Pe(((u = (s = (c = G(n)) == null ? void 0 : c.state) == null ? void 0 : s.data) == null ? void 0 : u.result) || [], (f) => me(a.$slots, "list-item-display", { item: f })), 256))
|
|
8194
8194
|
], 64)) : (b(), C(ue, { key: 1 }, [
|
|
8195
8195
|
(b(), M(Me(t.listHeader || Bm))),
|
|
8196
8196
|
(b(), M(Me(t.listFilter || nn))),
|
|
@@ -8346,9 +8346,9 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8346
8346
|
const i = n, a = t;
|
|
8347
8347
|
console.log("props externalFilterPayload", a.externalFilterPayload);
|
|
8348
8348
|
const l = _([]);
|
|
8349
|
-
return a.linkedEntity ?
|
|
8349
|
+
return a.linkedEntity ? Ae(() => a.linkedEntity, (u) => {
|
|
8350
8350
|
u && (l.value = u, i("linkedEntityChanged", u));
|
|
8351
|
-
}, { immediate: !0 }) :
|
|
8351
|
+
}, { immediate: !0 }) : Ae(() => o.state.data, (u) => {
|
|
8352
8352
|
u && (l.value = u.result, i("linkedEntityChanged", u.result));
|
|
8353
8353
|
}, { immediate: !0 }), e({
|
|
8354
8354
|
props: a,
|
|
@@ -8358,7 +8358,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8358
8358
|
filter: (u) => {
|
|
8359
8359
|
console.log("filter data in unordered", u);
|
|
8360
8360
|
}
|
|
8361
|
-
}),
|
|
8361
|
+
}), Ae(
|
|
8362
8362
|
() => r.globalConfigs.appId,
|
|
8363
8363
|
async (u) => {
|
|
8364
8364
|
if (u)
|
|
@@ -8383,7 +8383,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8383
8383
|
w("div", {
|
|
8384
8384
|
class: We(t.listClass)
|
|
8385
8385
|
}, [
|
|
8386
|
-
(b(!0), C(ue, null,
|
|
8386
|
+
(b(!0), C(ue, null, Pe(t.linkedEntity && t.linkedEntity.length > 0 ? t.linkedEntity : ((m = (p = (d = G(o)) == null ? void 0 : d.state) == null ? void 0 : p.data) == null ? void 0 : m.result) || [], (g) => me(u.$slots, "list-item-display", {
|
|
8387
8387
|
item: g,
|
|
8388
8388
|
class: We(t.listItemClass)
|
|
8389
8389
|
}, void 0, !0)), 256))
|
|
@@ -8402,7 +8402,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8402
8402
|
externalFilterPayload: a.externalFilterPayload
|
|
8403
8403
|
}, null, 8, ["externalFilterPayload"])) : U("", !0),
|
|
8404
8404
|
t.showAddButton ? (b(), M(on, { key: 1 })) : U("", !0),
|
|
8405
|
-
(b(!0), C(ue, null,
|
|
8405
|
+
(b(!0), C(ue, null, Pe(l.value, (g, h) => (b(), C("div", { key: h }, [
|
|
8406
8406
|
(b(), M(Me(t.listItemDisplay != null && t.listItemDisplay != "" ? t.listItemDisplay : og), ie({
|
|
8407
8407
|
key: g,
|
|
8408
8408
|
ref_for: !0
|
|
@@ -8473,7 +8473,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8473
8473
|
w("div", ug, [
|
|
8474
8474
|
w("div", cg, [
|
|
8475
8475
|
w("div", dg, [
|
|
8476
|
-
(b(!0), C(ue, null,
|
|
8476
|
+
(b(!0), C(ue, null, Pe(o.value, (g, h) => (b(), C("div", {
|
|
8477
8477
|
key: h,
|
|
8478
8478
|
class: "flex flex-col"
|
|
8479
8479
|
}, [
|
|
@@ -8550,7 +8550,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8550
8550
|
const n = er(), o = et();
|
|
8551
8551
|
en("entityObject", n);
|
|
8552
8552
|
const r = t, i = _([]);
|
|
8553
|
-
return
|
|
8553
|
+
return Ae(() => n.state.data, (c) => {
|
|
8554
8554
|
c && (i.value = c.result);
|
|
8555
8555
|
}, { immediate: !0 }), e({
|
|
8556
8556
|
props: r,
|
|
@@ -8560,7 +8560,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8560
8560
|
filter: () => {
|
|
8561
8561
|
console.log("filter data in unordered");
|
|
8562
8562
|
}
|
|
8563
|
-
}),
|
|
8563
|
+
}), Ae(
|
|
8564
8564
|
() => o.globalConfigs.appId,
|
|
8565
8565
|
async (c) => {
|
|
8566
8566
|
if (c) {
|
|
@@ -8577,7 +8577,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8577
8577
|
t.showAddButton ? (b(), M(on, { key: 0 })) : U("", !0),
|
|
8578
8578
|
t.showFilters ? (b(), M(Me(t.listFilter || nn), { key: 1 })) : U("", !0),
|
|
8579
8579
|
w("div", bg, [
|
|
8580
|
-
(b(!0), C(ue, null,
|
|
8580
|
+
(b(!0), C(ue, null, Pe(((d = (f = (u = G(n)) == null ? void 0 : u.state) == null ? void 0 : f.data) == null ? void 0 : d.result) || [], (p, m) => (b(), C("div", {
|
|
8581
8581
|
key: m,
|
|
8582
8582
|
class: "flex flex-col p-6 border border-gray-300 shadow-md rounded-lg bg-white w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5 2xl:w-1/8"
|
|
8583
8583
|
}, [
|
|
@@ -8591,7 +8591,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8591
8591
|
t.showFilters ? (b(), M(Me(t.listFilter || nn), { key: 0 })) : U("", !0),
|
|
8592
8592
|
t.showAddButton ? (b(), M(on, { key: 1 })) : U("", !0),
|
|
8593
8593
|
w("div", xg, [
|
|
8594
|
-
(b(!0), C(ue, null,
|
|
8594
|
+
(b(!0), C(ue, null, Pe(i.value, (p, m) => (b(), M(Me(t.listItemDisplay != null && t.listItemDisplay != "" ? t.listItemDisplay : hg), ie({
|
|
8595
8595
|
key: m,
|
|
8596
8596
|
ref_for: !0
|
|
8597
8597
|
}, { item: p, ...r }), null, 16))), 128))
|
|
@@ -8665,7 +8665,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8665
8665
|
w("div", Eg, [
|
|
8666
8666
|
w("div", Og, [
|
|
8667
8667
|
w("div", $g, [
|
|
8668
|
-
(b(!0), C(ue, null,
|
|
8668
|
+
(b(!0), C(ue, null, Pe(o.value, (g, h) => (b(), C("div", {
|
|
8669
8669
|
key: h,
|
|
8670
8670
|
class: "flex flex-col"
|
|
8671
8671
|
}, [
|
|
@@ -8769,7 +8769,7 @@ const nl = ["slide", "fade"], ol = [
|
|
|
8769
8769
|
touchDrag: !0,
|
|
8770
8770
|
transition: 300,
|
|
8771
8771
|
wrapAround: !1
|
|
8772
|
-
}, bn = Symbol("carousel"),
|
|
8772
|
+
}, bn = Symbol("carousel"), Ag = (t) => {
|
|
8773
8773
|
const e = xr([]), n = (o) => {
|
|
8774
8774
|
o !== void 0 ? e.slice(o).forEach((r, i) => {
|
|
8775
8775
|
var a;
|
|
@@ -8796,7 +8796,7 @@ const nl = ["slide", "fade"], ol = [
|
|
|
8796
8796
|
}
|
|
8797
8797
|
};
|
|
8798
8798
|
};
|
|
8799
|
-
function
|
|
8799
|
+
function Pg(t) {
|
|
8800
8800
|
return t.length === 0 ? 0 : t.reduce((n, o) => n + o, 0) / t.length;
|
|
8801
8801
|
}
|
|
8802
8802
|
function Zi({ slides: t, position: e, toShow: n }) {
|
|
@@ -8878,7 +8878,7 @@ function Mg(t, e, n) {
|
|
|
8878
8878
|
return 0;
|
|
8879
8879
|
}
|
|
8880
8880
|
}
|
|
8881
|
-
function
|
|
8881
|
+
function Pr({ slideSize: t, viewportSize: e, align: n, itemsToShow: o }) {
|
|
8882
8882
|
return o !== void 0 ? jg(n, o) : t !== void 0 && e !== void 0 ? Mg(n, t, e) : 0;
|
|
8883
8883
|
}
|
|
8884
8884
|
function rl(t = "", e = {}) {
|
|
@@ -9051,15 +9051,15 @@ const Ug = In({
|
|
|
9051
9051
|
],
|
|
9052
9052
|
setup(t, { slots: e, emit: n, expose: o }) {
|
|
9053
9053
|
var r;
|
|
9054
|
-
const i =
|
|
9055
|
-
|
|
9054
|
+
const i = Ag(n), a = i.getSlides(), l = ne(() => a.length), c = _(null), s = _(null), u = _(0), f = ne(() => Object.assign(Object.assign(Object.assign({}, He), Ng(t, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, He.i18n), t.i18n) })), d = xr(Object.assign({}, f.value)), p = _((r = t.modelValue) !== null && r !== void 0 ? r : 0), m = _(p.value);
|
|
9055
|
+
Ae(p, (L) => m.value = L);
|
|
9056
9056
|
const g = _(0), h = ne(() => Math.ceil((l.value - 1) / 2)), v = ne(() => l.value - 1), S = ne(() => 0);
|
|
9057
9057
|
let x = null, T = null, R = null;
|
|
9058
9058
|
const I = ne(() => u.value + d.gap), k = ne(() => {
|
|
9059
9059
|
const L = d.dir || "ltr";
|
|
9060
9060
|
return L in Qn ? Qn[L] : L;
|
|
9061
9061
|
}), y = ne(() => ["rtl", "btt"].includes(k.value)), E = ne(() => ["ttb", "btt"].includes(k.value)), D = ne(() => d.itemsToShow === "auto"), B = ne(() => E.value ? "height" : "width");
|
|
9062
|
-
function
|
|
9062
|
+
function P() {
|
|
9063
9063
|
var L;
|
|
9064
9064
|
if (!de.value)
|
|
9065
9065
|
return;
|
|
@@ -9067,8 +9067,8 @@ const Ug = In({
|
|
|
9067
9067
|
ae.some((ge) => J >= ge ? (Object.assign(re, t.breakpoints[ge]), re.i18n && Object.assign(re.i18n, f.value.i18n, t.breakpoints[ge].i18n), !0) : !1), Object.assign(d, f.value, re);
|
|
9068
9068
|
}
|
|
9069
9069
|
const H = hr(() => {
|
|
9070
|
-
|
|
9071
|
-
}),
|
|
9070
|
+
P(), X(), z();
|
|
9071
|
+
}), A = xr(/* @__PURE__ */ new Set()), q = _([]);
|
|
9072
9072
|
function N({ widthMultiplier: L, heightMultiplier: J }) {
|
|
9073
9073
|
q.value = a.map((ae) => {
|
|
9074
9074
|
var re;
|
|
@@ -9094,9 +9094,9 @@ const Ug = In({
|
|
|
9094
9094
|
function z() {
|
|
9095
9095
|
if (!s.value)
|
|
9096
9096
|
return;
|
|
9097
|
-
const L = zg(
|
|
9097
|
+
const L = zg(A);
|
|
9098
9098
|
if (Y(L), N(L), D.value)
|
|
9099
|
-
u.value =
|
|
9099
|
+
u.value = Pg(q.value.map((J) => J[B.value]));
|
|
9100
9100
|
else {
|
|
9101
9101
|
const J = Number(d.itemsToShow), ae = (J - 1) * d.gap;
|
|
9102
9102
|
u.value = (oe.value[B.value] - ae) / J;
|
|
@@ -9120,7 +9120,7 @@ const Ug = In({
|
|
|
9120
9120
|
let ye;
|
|
9121
9121
|
const ve = (L) => {
|
|
9122
9122
|
const J = L.target;
|
|
9123
|
-
if (!(!(J != null && J.contains(c.value)) || Array.isArray(ce.value) && ce.value.includes(L.animationName)) && (
|
|
9123
|
+
if (!(!(J != null && J.contains(c.value)) || Array.isArray(ce.value) && ce.value.includes(L.animationName)) && (A.add(J), !ye)) {
|
|
9124
9124
|
const ae = () => {
|
|
9125
9125
|
ye = requestAnimationFrame(() => {
|
|
9126
9126
|
z(), ae();
|
|
@@ -9130,12 +9130,12 @@ const Ug = In({
|
|
|
9130
9130
|
}
|
|
9131
9131
|
}, se = (L) => {
|
|
9132
9132
|
const J = L.target;
|
|
9133
|
-
J &&
|
|
9133
|
+
J && A.delete(J), ye && A.size === 0 && (cancelAnimationFrame(ye), z());
|
|
9134
9134
|
}, de = _(!1);
|
|
9135
9135
|
typeof document < "u" && $o(() => {
|
|
9136
9136
|
de.value && ce.value !== !1 ? (document.addEventListener("animationstart", ve), document.addEventListener("animationend", se)) : (document.removeEventListener("animationstart", ve), document.removeEventListener("animationend", se));
|
|
9137
9137
|
}), Ze(() => {
|
|
9138
|
-
de.value = !0,
|
|
9138
|
+
de.value = !0, P(), ze(), c.value && (R = new ResizeObserver(H), R.observe(c.value)), n("init");
|
|
9139
9139
|
}), Yl(() => {
|
|
9140
9140
|
de.value = !1, i.cleanup(), T && clearTimeout(T), ye && cancelAnimationFrame(ye), x && clearInterval(x), R && (R.disconnect(), R = null), typeof document < "u" && $e(), c.value && (c.value.removeEventListener("transitionend", z), c.value.removeEventListener("animationiteration", z));
|
|
9141
9141
|
});
|
|
@@ -9243,10 +9243,10 @@ const Ug = In({
|
|
|
9243
9243
|
lt(p.value - d.itemsToScroll, L);
|
|
9244
9244
|
}
|
|
9245
9245
|
function Kt() {
|
|
9246
|
-
|
|
9246
|
+
P(), X(), z(), Tt();
|
|
9247
9247
|
}
|
|
9248
|
-
|
|
9249
|
-
const sn =
|
|
9248
|
+
Ae(() => [f.value, t.breakpoints], () => P(), { deep: !0 }), Ae(() => t.autoplay, () => Tt());
|
|
9249
|
+
const sn = Ae(() => t.modelValue, (L) => {
|
|
9250
9250
|
L !== p.value && lt(Number(L), !0);
|
|
9251
9251
|
});
|
|
9252
9252
|
n("before-init");
|
|
@@ -9264,13 +9264,13 @@ const Ug = In({
|
|
|
9264
9264
|
var L;
|
|
9265
9265
|
if (D.value) {
|
|
9266
9266
|
const J = (p.value % a.length + a.length) % a.length;
|
|
9267
|
-
return
|
|
9267
|
+
return Pr({
|
|
9268
9268
|
slideSize: (L = q.value[J]) === null || L === void 0 ? void 0 : L[B.value],
|
|
9269
9269
|
viewportSize: oe.value[B.value],
|
|
9270
9270
|
align: d.snapAlign
|
|
9271
9271
|
});
|
|
9272
9272
|
}
|
|
9273
|
-
return
|
|
9273
|
+
return Pr({
|
|
9274
9274
|
align: d.snapAlign,
|
|
9275
9275
|
itemsToShow: +d.itemsToShow
|
|
9276
9276
|
});
|
|
@@ -9392,7 +9392,7 @@ const Ug = In({
|
|
|
9392
9392
|
prev: qt,
|
|
9393
9393
|
restartCarousel: Kt,
|
|
9394
9394
|
slideTo: lt,
|
|
9395
|
-
updateBreakpointsConfig:
|
|
9395
|
+
updateBreakpointsConfig: P,
|
|
9396
9396
|
updateSlideSize: z,
|
|
9397
9397
|
updateSlidesData: X
|
|
9398
9398
|
}), () => {
|
|
@@ -9411,12 +9411,12 @@ const Ug = In({
|
|
|
9411
9411
|
ref: c,
|
|
9412
9412
|
class: ["carousel", "is-disabled"]
|
|
9413
9413
|
}, Qe);
|
|
9414
|
-
const
|
|
9414
|
+
const An = ((L = e.addons) === null || L === void 0 ? void 0 : L.call(e, le)) || [], Pn = Je("ol", {
|
|
9415
9415
|
class: "carousel__track",
|
|
9416
9416
|
style: { transform: j.value },
|
|
9417
9417
|
onMousedownCapture: d.mouseDrag ? Ie : null,
|
|
9418
9418
|
onTouchstartPassiveCapture: d.touchDrag ? Ie : null
|
|
9419
|
-
}, Qe), Dn = Je("div", { class: "carousel__viewport", ref: s },
|
|
9419
|
+
}, Qe), Dn = Je("div", { class: "carousel__viewport", ref: s }, Pn);
|
|
9420
9420
|
return Je("section", {
|
|
9421
9421
|
ref: c,
|
|
9422
9422
|
class: [
|
|
@@ -9438,7 +9438,7 @@ const Ug = In({
|
|
|
9438
9438
|
onBlur: $e,
|
|
9439
9439
|
onMouseenter: kt,
|
|
9440
9440
|
onMouseleave: ht
|
|
9441
|
-
}, [Dn,
|
|
9441
|
+
}, [Dn, An, Je(Ug)]);
|
|
9442
9442
|
};
|
|
9443
9443
|
}
|
|
9444
9444
|
});
|
|
@@ -9528,7 +9528,7 @@ In({
|
|
|
9528
9528
|
const e = at(bn);
|
|
9529
9529
|
if (!e)
|
|
9530
9530
|
return () => "";
|
|
9531
|
-
const n = ne(() => e.config.itemsToShow), o = ne(() =>
|
|
9531
|
+
const n = ne(() => e.config.itemsToShow), o = ne(() => Pr({
|
|
9532
9532
|
align: e.config.snapAlign,
|
|
9533
9533
|
itemsToShow: n.value
|
|
9534
9534
|
})), r = ne(() => t.paginateByItemsToShow && n.value > 1), i = ne(() => Math.ceil((e.activeSlide - o.value) / n.value)), a = ne(() => Math.ceil(e.slidesCount / n.value)), l = (c) => il(r.value ? {
|
|
@@ -9672,7 +9672,7 @@ const aa = In({
|
|
|
9672
9672
|
const n = er(), o = et();
|
|
9673
9673
|
en("entityObject", n);
|
|
9674
9674
|
const r = t, i = _([]);
|
|
9675
|
-
return
|
|
9675
|
+
return Ae(() => n.state.data, (c) => {
|
|
9676
9676
|
c && (i.value = c.result);
|
|
9677
9677
|
}, { immediate: !0 }), e({
|
|
9678
9678
|
props: r,
|
|
@@ -9682,7 +9682,7 @@ const aa = In({
|
|
|
9682
9682
|
filter: () => {
|
|
9683
9683
|
console.log("filter data in unordered");
|
|
9684
9684
|
}
|
|
9685
|
-
}),
|
|
9685
|
+
}), Ae(
|
|
9686
9686
|
() => o.globalConfigs.appId,
|
|
9687
9687
|
async (c) => {
|
|
9688
9688
|
if (c) {
|
|
@@ -9708,7 +9708,7 @@ const aa = In({
|
|
|
9708
9708
|
V(G(ia))
|
|
9709
9709
|
]),
|
|
9710
9710
|
default: Q(() => [
|
|
9711
|
-
(b(!0), C(ue, null,
|
|
9711
|
+
(b(!0), C(ue, null, Pe(i.value, (u, f) => (b(), M(G(aa), { key: f }, {
|
|
9712
9712
|
default: Q(() => [
|
|
9713
9713
|
w("div", Kg, [
|
|
9714
9714
|
me(c.$slots, "list-item-display-carousel", { item: u }, void 0, !0)
|
|
@@ -9737,7 +9737,7 @@ const aa = In({
|
|
|
9737
9737
|
V(G(ia))
|
|
9738
9738
|
]),
|
|
9739
9739
|
default: Q(() => [
|
|
9740
|
-
(b(!0), C(ue, null,
|
|
9740
|
+
(b(!0), C(ue, null, Pe(i.value, (u, f) => (b(), M(G(aa), { key: f }, {
|
|
9741
9741
|
default: Q(() => [
|
|
9742
9742
|
(b(), M(Me(t.listItemDisplay && t.listItemDisplay !== "" ? t.listItemDisplay : Rg), ie({ ref_for: !0 }, { item: u, ...r }), null, 16))
|
|
9743
9743
|
]),
|
|
@@ -10191,12 +10191,12 @@ const Oh = /^(\d+)(th|st|nd|rd)?/i, $h = /\d+/i, _h = {
|
|
|
10191
10191
|
/^n/i,
|
|
10192
10192
|
/^d/i
|
|
10193
10193
|
]
|
|
10194
|
-
},
|
|
10194
|
+
}, Ah = {
|
|
10195
10195
|
narrow: /^[smtwf]/i,
|
|
10196
10196
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
10197
10197
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
10198
10198
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
10199
|
-
},
|
|
10199
|
+
}, Ph = {
|
|
10200
10200
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
10201
10201
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
10202
10202
|
}, Dh = {
|
|
@@ -10239,9 +10239,9 @@ const Oh = /^(\d+)(th|st|nd|rd)?/i, $h = /\d+/i, _h = {
|
|
|
10239
10239
|
defaultParseWidth: "any"
|
|
10240
10240
|
}),
|
|
10241
10241
|
day: Vn({
|
|
10242
|
-
matchPatterns:
|
|
10242
|
+
matchPatterns: Ah,
|
|
10243
10243
|
defaultMatchWidth: "wide",
|
|
10244
|
-
parsePatterns:
|
|
10244
|
+
parsePatterns: Ph,
|
|
10245
10245
|
defaultParseWidth: "any"
|
|
10246
10246
|
}),
|
|
10247
10247
|
dayPeriod: Vn({
|
|
@@ -11088,8 +11088,8 @@ function sb() {
|
|
|
11088
11088
|
}, e._ = n = {
|
|
11089
11089
|
// formats numbers separators, decimals places, signs, abbreviations
|
|
11090
11090
|
numberToFormat: function(s, u, f) {
|
|
11091
|
-
var d = i[e.options.currentLocale], p = !1, m = !1, g = 0, h = "", v = 1e12, S = 1e9, x = 1e6, T = 1e3, R = "", I = !1, k, y, E, D, B,
|
|
11092
|
-
if (s = s || 0, y = Math.abs(s), e._.includes(u, "(") ? (p = !0, u = u.replace(/[\(|\)]/g, "")) : (e._.includes(u, "+") || e._.includes(u, "-")) && (B = e._.includes(u, "+") ? u.indexOf("+") : s < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), e._.includes(u, "a") && (k = u.match(/a(k|m|b|t)?/), k = k ? k[1] : !1, e._.includes(u, " a") && (h = " "), u = u.replace(new RegExp(h + "a[kmbt]?"), ""), y >= v && !k || k === "t" ? (h += d.abbreviations.trillion, s = s / v) : y < v && y >= S && !k || k === "b" ? (h += d.abbreviations.billion, s = s / S) : y < S && y >= x && !k || k === "m" ? (h += d.abbreviations.million, s = s / x) : (y < x && y >= T && !k || k === "k") && (h += d.abbreviations.thousand, s = s / T)), e._.includes(u, "[.]") && (m = !0, u = u.replace("[.]", ".")), E = s.toString().split(".")[0], D = u.split(".")[1],
|
|
11091
|
+
var d = i[e.options.currentLocale], p = !1, m = !1, g = 0, h = "", v = 1e12, S = 1e9, x = 1e6, T = 1e3, R = "", I = !1, k, y, E, D, B, P, H;
|
|
11092
|
+
if (s = s || 0, y = Math.abs(s), e._.includes(u, "(") ? (p = !0, u = u.replace(/[\(|\)]/g, "")) : (e._.includes(u, "+") || e._.includes(u, "-")) && (B = e._.includes(u, "+") ? u.indexOf("+") : s < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), e._.includes(u, "a") && (k = u.match(/a(k|m|b|t)?/), k = k ? k[1] : !1, e._.includes(u, " a") && (h = " "), u = u.replace(new RegExp(h + "a[kmbt]?"), ""), y >= v && !k || k === "t" ? (h += d.abbreviations.trillion, s = s / v) : y < v && y >= S && !k || k === "b" ? (h += d.abbreviations.billion, s = s / S) : y < S && y >= x && !k || k === "m" ? (h += d.abbreviations.million, s = s / x) : (y < x && y >= T && !k || k === "k") && (h += d.abbreviations.thousand, s = s / T)), e._.includes(u, "[.]") && (m = !0, u = u.replace("[.]", ".")), E = s.toString().split(".")[0], D = u.split(".")[1], P = u.indexOf(","), g = (u.split(".")[0].split(",")[0].match(/0/g) || []).length, D ? (e._.includes(D, "[") ? (D = D.replace("]", ""), D = D.split("["), R = e._.toFixed(s, D[0].length + D[1].length, f, D[1].length)) : R = e._.toFixed(s, D.length, f), E = R.split(".")[0], e._.includes(R, ".") ? R = d.delimiters.decimal + R.split(".")[1] : R = "", m && Number(R.slice(1)) === 0 && (R = "")) : E = e._.toFixed(s, 0, f), h && !k && Number(E) >= 1e3 && h !== d.abbreviations.trillion)
|
|
11093
11093
|
switch (E = String(Number(E) / 1e3), h) {
|
|
11094
11094
|
case d.abbreviations.thousand:
|
|
11095
11095
|
h = d.abbreviations.million;
|
|
@@ -11102,9 +11102,9 @@ function sb() {
|
|
|
11102
11102
|
break;
|
|
11103
11103
|
}
|
|
11104
11104
|
if (e._.includes(E, "-") && (E = E.slice(1), I = !0), E.length < g)
|
|
11105
|
-
for (var
|
|
11105
|
+
for (var A = g - E.length; A > 0; A--)
|
|
11106
11106
|
E = "0" + E;
|
|
11107
|
-
return
|
|
11107
|
+
return P > -1 && (E = E.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), u.indexOf(".") === 0 && (E = ""), H = E + R + (h || ""), p ? H = (p && I ? "(" : "") + H + (p && I ? ")" : "") : B >= 0 ? H = B === 0 ? (I ? "-" : "+") + H : H + (I ? "-" : "+") : I && (H = "-" + H), H;
|
|
11108
11108
|
},
|
|
11109
11109
|
// unformats numbers separators, decimals places, signs, abbreviations
|
|
11110
11110
|
stringToNumber: function(s) {
|
|
@@ -11463,100 +11463,100 @@ function ub() {
|
|
|
11463
11463
|
const t = et(), { get: e, post: n, put: o, del: r } = an(), i = () => t.getAppId();
|
|
11464
11464
|
return {
|
|
11465
11465
|
getEntities: async () => {
|
|
11466
|
-
const
|
|
11467
|
-
return await e(`/api/app/v1/${
|
|
11466
|
+
const A = i();
|
|
11467
|
+
return await e(`/api/app/v1/${A}/entity`);
|
|
11468
11468
|
},
|
|
11469
|
-
getEntity: async (
|
|
11469
|
+
getEntity: async (A) => {
|
|
11470
11470
|
const q = i();
|
|
11471
|
-
return await e(`/api/app/v1/${q}/entity/${
|
|
11471
|
+
return await e(`/api/app/v1/${q}/entity/${A}`);
|
|
11472
11472
|
},
|
|
11473
|
-
saveEntity: async (
|
|
11473
|
+
saveEntity: async (A) => {
|
|
11474
11474
|
const q = i();
|
|
11475
|
-
return await n(`/api/app/v1/${q}/entity`,
|
|
11475
|
+
return await n(`/api/app/v1/${q}/entity`, A);
|
|
11476
11476
|
},
|
|
11477
|
-
updateEntityGeneralSettings: async (
|
|
11477
|
+
updateEntityGeneralSettings: async (A, q) => {
|
|
11478
11478
|
const N = i();
|
|
11479
|
-
return await o(`/api/app/v1/${N}/entity/${
|
|
11479
|
+
return await o(`/api/app/v1/${N}/entity/${A}/rename`, q);
|
|
11480
11480
|
},
|
|
11481
|
-
updateEntityAuditable: async (
|
|
11481
|
+
updateEntityAuditable: async (A, q) => {
|
|
11482
11482
|
const N = i();
|
|
11483
|
-
return await o(`/api/app/v1/${N}/entity/${
|
|
11483
|
+
return await o(`/api/app/v1/${N}/entity/${A}/auditable`, q);
|
|
11484
11484
|
},
|
|
11485
|
-
updateEntityRevisionEnabled: async (
|
|
11485
|
+
updateEntityRevisionEnabled: async (A, q) => {
|
|
11486
11486
|
const N = i();
|
|
11487
|
-
return await o(`/api/app/v1/${N}/entity/${
|
|
11487
|
+
return await o(`/api/app/v1/${N}/entity/${A}/revision`, q);
|
|
11488
11488
|
},
|
|
11489
|
-
updateEntitySoftDelete: async (
|
|
11489
|
+
updateEntitySoftDelete: async (A, q) => {
|
|
11490
11490
|
const N = i();
|
|
11491
|
-
return await o(`/api/app/v1/${N}/entity/${
|
|
11491
|
+
return await o(`/api/app/v1/${N}/entity/${A}/soft-delete`, q);
|
|
11492
11492
|
},
|
|
11493
|
-
updateEntityDeleteProtected: async (
|
|
11493
|
+
updateEntityDeleteProtected: async (A, q) => {
|
|
11494
11494
|
const N = i();
|
|
11495
|
-
return await o(`/api/app/v1/${N}/entity/${
|
|
11495
|
+
return await o(`/api/app/v1/${N}/entity/${A}/delete-protect`, q);
|
|
11496
11496
|
},
|
|
11497
|
-
updateEntityColumn: async (
|
|
11497
|
+
updateEntityColumn: async (A, q) => {
|
|
11498
11498
|
const N = i();
|
|
11499
|
-
return await o(`/api/app/v1/${N}/entity/${
|
|
11499
|
+
return await o(`/api/app/v1/${N}/entity/${A}/column`, q);
|
|
11500
11500
|
},
|
|
11501
|
-
saveEntityColumn: async (
|
|
11501
|
+
saveEntityColumn: async (A, q) => {
|
|
11502
11502
|
const N = i();
|
|
11503
|
-
return await n(`/api/app/v1/${N}/entity/${
|
|
11503
|
+
return await n(`/api/app/v1/${N}/entity/${A}/column`, q);
|
|
11504
11504
|
},
|
|
11505
|
-
dropEntityColumn: async (
|
|
11505
|
+
dropEntityColumn: async (A, q) => {
|
|
11506
11506
|
const N = i();
|
|
11507
|
-
return await r(`/api/app/v1/${N}/entity/${
|
|
11507
|
+
return await r(`/api/app/v1/${N}/entity/${A}/column/${q}`);
|
|
11508
11508
|
},
|
|
11509
|
-
saveForeignKey: async (
|
|
11509
|
+
saveForeignKey: async (A, q) => {
|
|
11510
11510
|
const N = i();
|
|
11511
11511
|
return await o(`/api/app/v1/${N}/entity/foreignKey`, q);
|
|
11512
11512
|
},
|
|
11513
|
-
dropForeignKey: async (
|
|
11513
|
+
dropForeignKey: async (A) => {
|
|
11514
11514
|
const q = i();
|
|
11515
|
-
return await r(`/api/app/v1/${q}/entity/foreignKey`,
|
|
11515
|
+
return await r(`/api/app/v1/${q}/entity/foreignKey`, A);
|
|
11516
11516
|
},
|
|
11517
|
-
saveUniqueConstraint: async (
|
|
11517
|
+
saveUniqueConstraint: async (A, q) => {
|
|
11518
11518
|
const N = i();
|
|
11519
|
-
return await n(`/api/app/v1/${N}/entity/${
|
|
11519
|
+
return await n(`/api/app/v1/${N}/entity/${A}/column/${q}/constraint`);
|
|
11520
11520
|
},
|
|
11521
|
-
dropUniqueConstraint: async (
|
|
11521
|
+
dropUniqueConstraint: async (A, q) => {
|
|
11522
11522
|
const N = i();
|
|
11523
|
-
return await r(`/api/app/v1/${N}/entity/${
|
|
11523
|
+
return await r(`/api/app/v1/${N}/entity/${A}/column/${q}/constraint`);
|
|
11524
11524
|
},
|
|
11525
|
-
saveIndex: async (
|
|
11525
|
+
saveIndex: async (A, q) => {
|
|
11526
11526
|
const N = i();
|
|
11527
|
-
return await n(`/api/app/v1/${N}/entity/${
|
|
11527
|
+
return await n(`/api/app/v1/${N}/entity/${A}/column-index`, q);
|
|
11528
11528
|
},
|
|
11529
|
-
dropIndex: async (
|
|
11529
|
+
dropIndex: async (A, q) => {
|
|
11530
11530
|
const N = i();
|
|
11531
|
-
return await r(`/api/app/v1/${N}/entity/${
|
|
11531
|
+
return await r(`/api/app/v1/${N}/entity/${A}/column-index`, q);
|
|
11532
11532
|
},
|
|
11533
|
-
deleteEntity: async (
|
|
11533
|
+
deleteEntity: async (A) => {
|
|
11534
11534
|
const q = i();
|
|
11535
|
-
return await r(`/api/app/v1/${q}/entity/${
|
|
11535
|
+
return await r(`/api/app/v1/${q}/entity/${A}`);
|
|
11536
11536
|
},
|
|
11537
|
-
getEntityEvents: async (
|
|
11537
|
+
getEntityEvents: async (A) => {
|
|
11538
11538
|
const q = i();
|
|
11539
|
-
return await e(`/api/app/v1/${q}/entity/${
|
|
11539
|
+
return await e(`/api/app/v1/${q}/entity/${A}/event`);
|
|
11540
11540
|
},
|
|
11541
|
-
saveEntityEvent: async (
|
|
11541
|
+
saveEntityEvent: async (A, q) => {
|
|
11542
11542
|
const N = i();
|
|
11543
|
-
return await n(`/api/app/v1/${N}/entity/${
|
|
11543
|
+
return await n(`/api/app/v1/${N}/entity/${A}/event`, q);
|
|
11544
11544
|
},
|
|
11545
|
-
deleteEntityEvent: async (
|
|
11545
|
+
deleteEntityEvent: async (A, q) => {
|
|
11546
11546
|
const N = i();
|
|
11547
|
-
return await r(`/api/app/v1/${N}/entity/${
|
|
11547
|
+
return await r(`/api/app/v1/${N}/entity/${A}/event/${q}`);
|
|
11548
11548
|
},
|
|
11549
|
-
updateEntityEvent: async (
|
|
11549
|
+
updateEntityEvent: async (A, q, N) => {
|
|
11550
11550
|
const oe = i();
|
|
11551
|
-
return await o(`/api/app/v1/${oe}/entity/${
|
|
11551
|
+
return await o(`/api/app/v1/${oe}/entity/${A}/event/${q}`, N);
|
|
11552
11552
|
},
|
|
11553
11553
|
getActionTypes: async () => {
|
|
11554
|
-
const
|
|
11555
|
-
return await e(`/api/app/v1/${
|
|
11554
|
+
const A = i();
|
|
11555
|
+
return await e(`/api/app/v1/${A}/action-type`);
|
|
11556
11556
|
},
|
|
11557
|
-
getActionConfigByType: async (
|
|
11557
|
+
getActionConfigByType: async (A) => {
|
|
11558
11558
|
const q = i();
|
|
11559
|
-
return await e(`/api/app/v1/${q}/notification-config/${
|
|
11559
|
+
return await e(`/api/app/v1/${q}/notification-config/${A}`);
|
|
11560
11560
|
}
|
|
11561
11561
|
};
|
|
11562
11562
|
}
|
|
@@ -11608,7 +11608,7 @@ const cb = /* @__PURE__ */ Hr("entitiesStore", {
|
|
|
11608
11608
|
}, l = () => {
|
|
11609
11609
|
t.onEntityChangeCallback(n.value.name);
|
|
11610
11610
|
};
|
|
11611
|
-
return
|
|
11611
|
+
return Ae(
|
|
11612
11612
|
() => e.globalConfigs.appId,
|
|
11613
11613
|
// The source to watch
|
|
11614
11614
|
async (c) => {
|
|
@@ -11652,7 +11652,7 @@ const cb = /* @__PURE__ */ Hr("entitiesStore", {
|
|
|
11652
11652
|
},
|
|
11653
11653
|
setup(t) {
|
|
11654
11654
|
const n = _(t.entityName);
|
|
11655
|
-
|
|
11655
|
+
Ae(n, (r) => {
|
|
11656
11656
|
console.log("Entity changed to:", r);
|
|
11657
11657
|
});
|
|
11658
11658
|
const o = (r) => {
|
|
@@ -11667,7 +11667,7 @@ const cb = /* @__PURE__ */ Hr("entitiesStore", {
|
|
|
11667
11667
|
}, null, 8, ["entityName"]))
|
|
11668
11668
|
]),
|
|
11669
11669
|
w("div", yb, [
|
|
11670
|
-
(b(), M(
|
|
11670
|
+
(b(), M(Ar, {
|
|
11671
11671
|
key: n.value,
|
|
11672
11672
|
entityName: n.value
|
|
11673
11673
|
}, null, 8, ["entityName"]))
|
|
@@ -11748,7 +11748,7 @@ const wb = ["onClick"], kb = ["onClick", "href"], xb = { class: "layout-menuitem
|
|
|
11748
11748
|
t.layoutType === "horizontal" ? "layout-menu-horizontal p-0 m-0 flex flex-row items-center gap-6" : "layout-menu-vertical p-0 m-0 flex flex-col gap-2"
|
|
11749
11749
|
]])
|
|
11750
11750
|
}, [
|
|
11751
|
-
(b(!0), C(ue, null,
|
|
11751
|
+
(b(!0), C(ue, null, Pe(r.value, (u, f) => (b(), C("li", {
|
|
11752
11752
|
key: u.id,
|
|
11753
11753
|
class: We(["layout-root-menuitem relative", { "is-open": u.isOpen }])
|
|
11754
11754
|
}, [
|
|
@@ -11777,7 +11777,7 @@ const wb = ["onClick"], kb = ["onClick", "href"], xb = { class: "layout-menuitem
|
|
|
11777
11777
|
t.layoutType === "horizontal" ? "submenu-horizontal absolute top-full left-0 mt-2 bg-white shadow-md rounded z-50" : "submenu-vertical absolute left-[144px] ml-4 space-y-1"
|
|
11778
11778
|
]])
|
|
11779
11779
|
}, [
|
|
11780
|
-
(b(!0), C(ue, null,
|
|
11780
|
+
(b(!0), C(ue, null, Pe(u.children, (d, p) => (b(), C("li", {
|
|
11781
11781
|
key: d.id
|
|
11782
11782
|
}, [
|
|
11783
11783
|
c.$slots["list-item-menu-child"] ? (b(), C("a", {
|
|
@@ -11877,10 +11877,10 @@ var $b = Object.defineProperty, _b = Object.defineProperties, Tb = Object.getOwn
|
|
|
11877
11877
|
return n;
|
|
11878
11878
|
}, Ib = oi(), jt = Ib;
|
|
11879
11879
|
function xa(t, e) {
|
|
11880
|
-
Zo(t) ? t.push(...e || []) :
|
|
11880
|
+
Zo(t) ? t.push(...e || []) : Pt(t) && Object.assign(t, e);
|
|
11881
11881
|
}
|
|
11882
11882
|
function Bb(t) {
|
|
11883
|
-
return
|
|
11883
|
+
return Pt(t) && t.hasOwnProperty("value") && t.hasOwnProperty("type") ? t.value : t;
|
|
11884
11884
|
}
|
|
11885
11885
|
function Rb(t) {
|
|
11886
11886
|
return t.replaceAll(/ /g, "").replace(/[^\w]/g, "-");
|
|
@@ -11911,13 +11911,13 @@ function pl(t, e = "", n = "", o = [], r) {
|
|
|
11911
11911
|
} else if (_f(t))
|
|
11912
11912
|
return t;
|
|
11913
11913
|
}
|
|
11914
|
-
function
|
|
11914
|
+
function Ab(t, e, n) {
|
|
11915
11915
|
ft(e, !1) && t.push(`${e}:${n};`);
|
|
11916
11916
|
}
|
|
11917
11917
|
function On(t, e) {
|
|
11918
11918
|
return t ? `${t}{${e}}` : "";
|
|
11919
11919
|
}
|
|
11920
|
-
var Gn = (...t) =>
|
|
11920
|
+
var Gn = (...t) => Pb(Te.getTheme(), ...t), Pb = (t = {}, e, n, o) => {
|
|
11921
11921
|
if (e) {
|
|
11922
11922
|
const { variable: r, options: i } = Te.defaults || {}, { prefix: a, transform: l } = (t == null ? void 0 : t.options) || i || {}, s = Ht(e, /{([^}]*)}/g) ? e : `{${e}}`;
|
|
11923
11923
|
return o === "value" || wn(o) && l === "strict" ? Te.getTokenValue(e) : pl(s, void 0, a, [r.excludedKeyRegex], n);
|
|
@@ -11971,11 +11971,11 @@ function Db(t, e = {}) {
|
|
|
11971
11971
|
const n = Te.defaults.variable, { prefix: o = n.prefix, selector: r = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = e, a = (s, u = "") => Object.entries(s).reduce(
|
|
11972
11972
|
(f, [d, p]) => {
|
|
11973
11973
|
const m = Ht(d, i) ? Nr(u) : Nr(u, Zs(d)), g = Bb(p);
|
|
11974
|
-
if (
|
|
11974
|
+
if (Pt(g)) {
|
|
11975
11975
|
const { variables: h, tokens: v } = a(g, m);
|
|
11976
11976
|
xa(f.tokens, v), xa(f.variables, h);
|
|
11977
11977
|
} else
|
|
11978
|
-
f.tokens.push((o ? m.replace(`${o}-`, "") : m).replaceAll("-", ".")),
|
|
11978
|
+
f.tokens.push((o ? m.replace(`${o}-`, "") : m).replaceAll("-", ".")), Ab(f.variables, fl(m), pl(g, m, o, [i]));
|
|
11979
11979
|
return f;
|
|
11980
11980
|
},
|
|
11981
11981
|
{ variables: [], tokens: [] }
|
|
@@ -12036,7 +12036,7 @@ var St = {
|
|
|
12036
12036
|
const { preset: d, options: p } = e;
|
|
12037
12037
|
let m, g, h, v, S, x, T;
|
|
12038
12038
|
if (Ee(d) && p.transform !== "strict") {
|
|
12039
|
-
const { primitive: R, semantic: I, extend: k } = d, y = I || {}, { colorScheme: E } = y, D = Vt(y, ["colorScheme"]), B = k || {}, { colorScheme:
|
|
12039
|
+
const { primitive: R, semantic: I, extend: k } = d, y = I || {}, { colorScheme: E } = y, D = Vt(y, ["colorScheme"]), B = k || {}, { colorScheme: P } = B, H = Vt(B, ["colorScheme"]), A = E || {}, { dark: q } = A, N = Vt(A, ["dark"]), oe = P || {}, { dark: Y } = oe, z = Vt(oe, ["dark"]), X = Ee(R) ? this._toVariables({ primitive: R }, p) : {}, ce = Ee(D) ? this._toVariables({ semantic: D }, p) : {}, ye = Ee(N) ? this._toVariables({ light: N }, p) : {}, ve = Ee(q) ? this._toVariables({ dark: q }, p) : {}, se = Ee(H) ? this._toVariables({ semantic: H }, p) : {}, de = Ee(z) ? this._toVariables({ light: z }, p) : {}, we = Ee(Y) ? this._toVariables({ dark: Y }, p) : {}, [Se, Ne] = [(i = X.declarations) != null ? i : "", X.tokens], [pt, tt] = [(a = ce.declarations) != null ? a : "", ce.tokens || []], [kt, ht] = [(l = ye.declarations) != null ? l : "", ye.tokens || []], [Z, W] = [(c = ve.declarations) != null ? c : "", ve.tokens || []], [$e, Ie] = [(s = se.declarations) != null ? s : "", se.tokens || []], [_e, Be] = [(u = de.declarations) != null ? u : "", de.tokens || []], [ze, st] = [(f = we.declarations) != null ? f : "", we.tokens || []];
|
|
12040
12040
|
m = this.transformCSS(t, Se, "light", "variable", p, o, r), g = Ne;
|
|
12041
12041
|
const Tt = this.transformCSS(t, `${pt}${kt}`, "light", "variable", p, o, r), Ke = this.transformCSS(t, `${Z}`, "dark", "variable", p, o, r);
|
|
12042
12042
|
h = `${Tt}${Ke}`, v = [.../* @__PURE__ */ new Set([...tt, ...ht, ...W])];
|
|
@@ -12063,7 +12063,7 @@ var St = {
|
|
|
12063
12063
|
var l, c, s;
|
|
12064
12064
|
let u, f, d;
|
|
12065
12065
|
if (Ee(e) && n.transform !== "strict") {
|
|
12066
|
-
const p = t.replace("-directive", ""), m = e, { colorScheme: g, extend: h, css: v } = m, S = Vt(m, ["colorScheme", "extend", "css"]), x = h || {}, { colorScheme: T } = x, R = Vt(x, ["colorScheme"]), I = g || {}, { dark: k } = I, y = Vt(I, ["dark"]), E = T || {}, { dark: D } = E, B = Vt(E, ["dark"]),
|
|
12066
|
+
const p = t.replace("-directive", ""), m = e, { colorScheme: g, extend: h, css: v } = m, S = Vt(m, ["colorScheme", "extend", "css"]), x = h || {}, { colorScheme: T } = x, R = Vt(x, ["colorScheme"]), I = g || {}, { dark: k } = I, y = Vt(I, ["dark"]), E = T || {}, { dark: D } = E, B = Vt(E, ["dark"]), P = Ee(S) ? this._toVariables({ [p]: Ve(Ve({}, S), R) }, n) : {}, H = Ee(y) ? this._toVariables({ [p]: Ve(Ve({}, y), B) }, n) : {}, A = Ee(k) ? this._toVariables({ [p]: Ve(Ve({}, k), D) }, n) : {}, [q, N] = [(l = P.declarations) != null ? l : "", P.tokens || []], [oe, Y] = [(c = H.declarations) != null ? c : "", H.tokens || []], [z, X] = [(s = A.declarations) != null ? s : "", A.tokens || []], ce = this.transformCSS(p, `${q}${oe}`, "light", "variable", n, r, i, a), ye = this.transformCSS(p, z, "dark", "variable", n, r, i, a);
|
|
12067
12067
|
u = `${ce}${ye}`, f = [.../* @__PURE__ */ new Set([...N, ...Y, ...X])], d = wt(v, { dt: Gn });
|
|
12068
12068
|
}
|
|
12069
12069
|
return {
|
|
@@ -12111,7 +12111,7 @@ var St = {
|
|
|
12111
12111
|
createTokens(t = {}, e, n = "", o = "", r = {}) {
|
|
12112
12112
|
return Object.entries(t).forEach(([i, a]) => {
|
|
12113
12113
|
const l = Ht(i, e.variable.excludedKeyRegex) ? n : n ? `${n}.${qi(i)}` : qi(i), c = o ? `${o}.${i}` : i;
|
|
12114
|
-
|
|
12114
|
+
Pt(a) ? this.createTokens(a, e, l, c, r) : (r[l] || (r[l] = {
|
|
12115
12115
|
paths: [],
|
|
12116
12116
|
computed(s, u = {}) {
|
|
12117
12117
|
var f, d;
|
|
@@ -12165,7 +12165,7 @@ var St = {
|
|
|
12165
12165
|
name: "primeui",
|
|
12166
12166
|
order: "primeui"
|
|
12167
12167
|
};
|
|
12168
|
-
|
|
12168
|
+
Pt(c) && (s.name = wt(c.name, { name: t, type: o })), Ee(s.name) && (e = On(`@layer ${s.name}`, e), i == null || i.layerNames(s.name));
|
|
12169
12169
|
}
|
|
12170
12170
|
return e;
|
|
12171
12171
|
}
|
|
@@ -12591,7 +12591,7 @@ function a0(t) {
|
|
|
12591
12591
|
}
|
|
12592
12592
|
var s0 = 0;
|
|
12593
12593
|
function l0(t) {
|
|
12594
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = _(!1), o = _(t), r = _(null), i = ii() ? window.document : void 0, a = e.document, l = a === void 0 ? i : a, c = e.immediate, s = c === void 0 ? !0 : c, u = e.manual, f = u === void 0 ? !1 : u, d = e.name, p = d === void 0 ? "style_".concat(++s0) : d, m = e.id, g = m === void 0 ? void 0 : m, h = e.media, v = h === void 0 ? void 0 : h, S = e.nonce, x = S === void 0 ? void 0 : S, T = e.first, R = T === void 0 ? !1 : T, I = e.onMounted, k = I === void 0 ? void 0 : I, y = e.onUpdated, E = y === void 0 ? void 0 : y, D = e.onLoad, B = D === void 0 ? void 0 : D,
|
|
12594
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = _(!1), o = _(t), r = _(null), i = ii() ? window.document : void 0, a = e.document, l = a === void 0 ? i : a, c = e.immediate, s = c === void 0 ? !0 : c, u = e.manual, f = u === void 0 ? !1 : u, d = e.name, p = d === void 0 ? "style_".concat(++s0) : d, m = e.id, g = m === void 0 ? void 0 : m, h = e.media, v = h === void 0 ? void 0 : h, S = e.nonce, x = S === void 0 ? void 0 : S, T = e.first, R = T === void 0 ? !1 : T, I = e.onMounted, k = I === void 0 ? void 0 : I, y = e.onUpdated, E = y === void 0 ? void 0 : y, D = e.onLoad, B = D === void 0 ? void 0 : D, P = e.props, H = P === void 0 ? {} : P, A = function() {
|
|
12595
12595
|
}, q = function(Y) {
|
|
12596
12596
|
var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12597
12597
|
if (l) {
|
|
@@ -12605,14 +12605,14 @@ function l0(t) {
|
|
|
12605
12605
|
return B == null ? void 0 : B(se, {
|
|
12606
12606
|
name: ce
|
|
12607
12607
|
});
|
|
12608
|
-
}, k == null || k(ce)), !n.value && (
|
|
12608
|
+
}, k == null || k(ce)), !n.value && (A = Ae(o, function(se) {
|
|
12609
12609
|
r.value.textContent = se, E == null || E(ce);
|
|
12610
12610
|
}, {
|
|
12611
12611
|
immediate: !0
|
|
12612
12612
|
}), n.value = !0);
|
|
12613
12613
|
}
|
|
12614
12614
|
}, N = function() {
|
|
12615
|
-
!l || !n.value || (
|
|
12615
|
+
!l || !n.value || (A(), Zb(r.value) && l.head.removeChild(r.value), n.value = !1);
|
|
12616
12616
|
};
|
|
12617
12617
|
return s && !f && a0(q), {
|
|
12618
12618
|
id: g,
|
|
@@ -13597,7 +13597,7 @@ var B0 = function(e) {
|
|
|
13597
13597
|
name: "badge",
|
|
13598
13598
|
theme: B0,
|
|
13599
13599
|
classes: R0
|
|
13600
|
-
}),
|
|
13600
|
+
}), A0 = {
|
|
13601
13601
|
name: "BaseBadge",
|
|
13602
13602
|
extends: kn,
|
|
13603
13603
|
props: {
|
|
@@ -13623,17 +13623,17 @@ var B0 = function(e) {
|
|
|
13623
13623
|
}
|
|
13624
13624
|
}, Sl = {
|
|
13625
13625
|
name: "Badge",
|
|
13626
|
-
extends:
|
|
13626
|
+
extends: A0,
|
|
13627
13627
|
inheritAttrs: !1
|
|
13628
13628
|
};
|
|
13629
|
-
function
|
|
13629
|
+
function P0(t, e, n, o, r, i) {
|
|
13630
13630
|
return b(), C("span", ie({
|
|
13631
13631
|
class: t.cx("root")
|
|
13632
13632
|
}, t.ptmi("root")), [me(t.$slots, "default", {}, function() {
|
|
13633
13633
|
return [Ye(ee(t.value), 1)];
|
|
13634
13634
|
})], 16);
|
|
13635
13635
|
}
|
|
13636
|
-
Sl.render =
|
|
13636
|
+
Sl.render = P0;
|
|
13637
13637
|
var Fa = oi();
|
|
13638
13638
|
function ro(t) {
|
|
13639
13639
|
"@babel/helpers - typeof";
|
|
@@ -13643,7 +13643,7 @@ function ro(t) {
|
|
|
13643
13643
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
13644
13644
|
}, ro(t);
|
|
13645
13645
|
}
|
|
13646
|
-
function
|
|
13646
|
+
function Aa(t, e) {
|
|
13647
13647
|
return V0(t) || L0(t, e) || N0(t, e) || D0();
|
|
13648
13648
|
}
|
|
13649
13649
|
function D0() {
|
|
@@ -13652,12 +13652,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13652
13652
|
}
|
|
13653
13653
|
function N0(t, e) {
|
|
13654
13654
|
if (t) {
|
|
13655
|
-
if (typeof t == "string") return
|
|
13655
|
+
if (typeof t == "string") return Pa(t, e);
|
|
13656
13656
|
var n = {}.toString.call(t).slice(8, -1);
|
|
13657
|
-
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
13657
|
+
return n === "Object" && t.constructor && (n = t.constructor.name), n === "Map" || n === "Set" ? Array.from(t) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Pa(t, e) : void 0;
|
|
13658
13658
|
}
|
|
13659
13659
|
}
|
|
13660
|
-
function
|
|
13660
|
+
function Pa(t, e) {
|
|
13661
13661
|
(e == null || e > t.length) && (e = t.length);
|
|
13662
13662
|
for (var n = 0, o = Array(e); n < e; n++) o[n] = t[n];
|
|
13663
13663
|
return o;
|
|
@@ -13723,7 +13723,7 @@ function j0(t, e) {
|
|
|
13723
13723
|
}
|
|
13724
13724
|
var ke = {
|
|
13725
13725
|
_getMeta: function() {
|
|
13726
|
-
return [
|
|
13726
|
+
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])];
|
|
13727
13727
|
},
|
|
13728
13728
|
_getConfig: function(e, n) {
|
|
13729
13729
|
var o, r, i;
|
|
@@ -13949,10 +13949,10 @@ var ke = {
|
|
|
13949
13949
|
};
|
|
13950
13950
|
},
|
|
13951
13951
|
extend: function() {
|
|
13952
|
-
var e = ke._getMeta.apply(ke, arguments), n =
|
|
13952
|
+
var e = ke._getMeta.apply(ke, arguments), n = Aa(e, 2), o = n[0], r = n[1];
|
|
13953
13953
|
return Oe({
|
|
13954
13954
|
extend: function() {
|
|
13955
|
-
var a = ke._getMeta.apply(ke, arguments), l =
|
|
13955
|
+
var a = ke._getMeta.apply(ke, arguments), l = Aa(a, 2), c = l[0], s = l[1];
|
|
13956
13956
|
return ke.extend(c, Oe(Oe(Oe({}, r), r == null ? void 0 : r.methods), s));
|
|
13957
13957
|
}
|
|
13958
13958
|
}, ke._extend(o, r));
|
|
@@ -15596,23 +15596,23 @@ var By = {
|
|
|
15596
15596
|
"p-inputtext-fluid": n.$fluid
|
|
15597
15597
|
}];
|
|
15598
15598
|
}
|
|
15599
|
-
},
|
|
15599
|
+
}, Ay = je.extend({
|
|
15600
15600
|
name: "inputtext",
|
|
15601
15601
|
theme: Ry,
|
|
15602
15602
|
classes: Fy
|
|
15603
|
-
}),
|
|
15603
|
+
}), Py = {
|
|
15604
15604
|
name: "BaseInputText",
|
|
15605
15605
|
extends: Fl,
|
|
15606
|
-
style:
|
|
15606
|
+
style: Ay,
|
|
15607
15607
|
provide: function() {
|
|
15608
15608
|
return {
|
|
15609
15609
|
$pcInputText: this,
|
|
15610
15610
|
$parentInstance: this
|
|
15611
15611
|
};
|
|
15612
15612
|
}
|
|
15613
|
-
},
|
|
15613
|
+
}, Al = {
|
|
15614
15614
|
name: "InputText",
|
|
15615
|
-
extends:
|
|
15615
|
+
extends: Py,
|
|
15616
15616
|
inheritAttrs: !1,
|
|
15617
15617
|
methods: {
|
|
15618
15618
|
onInput: function(e) {
|
|
@@ -15642,8 +15642,8 @@ function Ny(t, e, n, o, r, i) {
|
|
|
15642
15642
|
})
|
|
15643
15643
|
}, i.attrs), null, 16, Dy);
|
|
15644
15644
|
}
|
|
15645
|
-
|
|
15646
|
-
var Ly = oi(),
|
|
15645
|
+
Al.render = Ny;
|
|
15646
|
+
var Ly = oi(), Pl = {
|
|
15647
15647
|
name: "Portal",
|
|
15648
15648
|
props: {
|
|
15649
15649
|
appendTo: {
|
|
@@ -15677,7 +15677,7 @@ function Vy(t, e, n, o, r, i) {
|
|
|
15677
15677
|
to: n.appendTo
|
|
15678
15678
|
}, [me(t.$slots, "default")], 8, ["to"])) : U("", !0);
|
|
15679
15679
|
}
|
|
15680
|
-
|
|
15680
|
+
Pl.render = Vy;
|
|
15681
15681
|
var zy = function(e) {
|
|
15682
15682
|
var n = e.dt;
|
|
15683
15683
|
return `
|
|
@@ -16201,16 +16201,16 @@ var Nl = {
|
|
|
16201
16201
|
}
|
|
16202
16202
|
},
|
|
16203
16203
|
onScrollPositionChange: function(e) {
|
|
16204
|
-
var n = this, o = e.target, r = this.isBoth(), i = this.isHorizontal(), a = this.getContentPosition(), l = function(B,
|
|
16205
|
-
return B ? B >
|
|
16206
|
-
}, c = function(B,
|
|
16207
|
-
return Math.floor(B / (
|
|
16208
|
-
}, s = function(B,
|
|
16209
|
-
return B <= q ? q : N ? H -
|
|
16210
|
-
}, u = function(B,
|
|
16211
|
-
return B <= N ? 0 : Math.max(0, oe ? B <
|
|
16212
|
-
}, f = function(B,
|
|
16213
|
-
var oe =
|
|
16204
|
+
var n = this, o = e.target, r = this.isBoth(), i = this.isHorizontal(), a = this.getContentPosition(), l = function(B, P) {
|
|
16205
|
+
return B ? B > P ? B - P : B : 0;
|
|
16206
|
+
}, c = function(B, P) {
|
|
16207
|
+
return Math.floor(B / (P || B));
|
|
16208
|
+
}, s = function(B, P, H, A, q, N) {
|
|
16209
|
+
return B <= q ? q : N ? H - A - q : P + q - 1;
|
|
16210
|
+
}, u = function(B, P, H, A, q, N, oe) {
|
|
16211
|
+
return B <= N ? 0 : Math.max(0, oe ? B < P ? H : B - N : B > P ? H : B - 2 * N);
|
|
16212
|
+
}, f = function(B, P, H, A, q, N) {
|
|
16213
|
+
var oe = P + A + 2 * q;
|
|
16214
16214
|
return B >= q && (oe += q + 1), n.getLast(oe, N);
|
|
16215
16215
|
}, d = l(o.scrollTop, a.top), p = l(o.scrollLeft, a.left), m = r ? {
|
|
16216
16216
|
rows: 0,
|
|
@@ -16412,7 +16412,7 @@ function qy(t, e, n, o, r, i) {
|
|
|
16412
16412
|
ref: i.contentRef,
|
|
16413
16413
|
class: i.contentClass,
|
|
16414
16414
|
style: r.contentStyle
|
|
16415
|
-
}, t.ptm("content")), [(b(!0), C(ue, null,
|
|
16415
|
+
}, t.ptm("content")), [(b(!0), C(ue, null, Pe(i.loadedItems, function(l, c) {
|
|
16416
16416
|
return me(t.$slots, "item", {
|
|
16417
16417
|
key: c,
|
|
16418
16418
|
item: l,
|
|
@@ -16428,7 +16428,7 @@ function qy(t, e, n, o, r, i) {
|
|
|
16428
16428
|
class: i.loaderClass
|
|
16429
16429
|
}, t.ptm("loader")), [t.$slots && t.$slots.loader ? (b(!0), C(ue, {
|
|
16430
16430
|
key: 0
|
|
16431
|
-
},
|
|
16431
|
+
}, Pe(r.loaderArr, function(l, c) {
|
|
16432
16432
|
return me(t.$slots, "loader", {
|
|
16433
16433
|
key: c,
|
|
16434
16434
|
options: i.getLoaderOptions(c, i.isBoth() && {
|
|
@@ -17537,9 +17537,9 @@ var Vl = {
|
|
|
17537
17537
|
ripple: Cl
|
|
17538
17538
|
},
|
|
17539
17539
|
components: {
|
|
17540
|
-
InputText:
|
|
17540
|
+
InputText: Al,
|
|
17541
17541
|
VirtualScroller: Nl,
|
|
17542
|
-
Portal:
|
|
17542
|
+
Portal: Pl,
|
|
17543
17543
|
InputIcon: Rl,
|
|
17544
17544
|
IconField: Bl,
|
|
17545
17545
|
TimesIcon: Il,
|
|
@@ -17771,7 +17771,7 @@ function cv(t, e, n, o, r, i) {
|
|
|
17771
17771
|
class: [t.cx("list"), v],
|
|
17772
17772
|
style: R,
|
|
17773
17773
|
role: "listbox"
|
|
17774
|
-
}, t.ptm("list")), [(b(!0), C(ue, null,
|
|
17774
|
+
}, t.ptm("list")), [(b(!0), C(ue, null, Pe(x, function(k, y) {
|
|
17775
17775
|
return b(), C(ue, {
|
|
17776
17776
|
key: i.getOptionRenderKey(k, i.getOptionIndex(y, T))
|
|
17777
17777
|
}, [i.isOptionGroup(k) ? (b(), C("li", ie({
|
|
@@ -17989,14 +17989,14 @@ const dv = { class: "editable-label-editing flex items-center gap-2 w-full" }, K
|
|
|
17989
17989
|
}
|
|
17990
17990
|
Ze(() => {
|
|
17991
17991
|
r.options.length ? c.value = r.options : u(), f(r.modelValue);
|
|
17992
|
-
}),
|
|
17992
|
+
}), Ae(
|
|
17993
17993
|
() => r.modelValue,
|
|
17994
17994
|
(p) => {
|
|
17995
17995
|
a.value = p, f(p);
|
|
17996
17996
|
}
|
|
17997
|
-
),
|
|
17997
|
+
), Ae(a, (p) => {
|
|
17998
17998
|
d(p), i("update:modelValue", p), i("onChange", p);
|
|
17999
|
-
}),
|
|
17999
|
+
}), Ae(
|
|
18000
18000
|
() => r.options,
|
|
18001
18001
|
(p) => {
|
|
18002
18002
|
p.length && (c.value = p, f(r.modelValue));
|
|
@@ -18526,7 +18526,7 @@ var Fv = {
|
|
|
18526
18526
|
color: "{text.color}",
|
|
18527
18527
|
padding: "0 1.125rem 1.125rem 1.125rem"
|
|
18528
18528
|
}
|
|
18529
|
-
},
|
|
18529
|
+
}, Av = {
|
|
18530
18530
|
root: {
|
|
18531
18531
|
background: "{form.field.background}",
|
|
18532
18532
|
disabledBackground: "{form.field.disabled.background}",
|
|
@@ -18638,7 +18638,7 @@ var Fv = {
|
|
|
18638
18638
|
}
|
|
18639
18639
|
}
|
|
18640
18640
|
}
|
|
18641
|
-
},
|
|
18641
|
+
}, Pv = {
|
|
18642
18642
|
root: {
|
|
18643
18643
|
width: "2rem",
|
|
18644
18644
|
height: "2rem",
|
|
@@ -22175,14 +22175,14 @@ var Fv = {
|
|
|
22175
22175
|
}
|
|
22176
22176
|
}
|
|
22177
22177
|
}
|
|
22178
|
-
},
|
|
22178
|
+
}, A1 = {
|
|
22179
22179
|
root: {
|
|
22180
22180
|
gap: "1.125rem"
|
|
22181
22181
|
},
|
|
22182
22182
|
controls: {
|
|
22183
22183
|
gap: "0.5rem"
|
|
22184
22184
|
}
|
|
22185
|
-
},
|
|
22185
|
+
}, P1 = {
|
|
22186
22186
|
root: {
|
|
22187
22187
|
background: "{overlay.popover.background}",
|
|
22188
22188
|
borderColor: "{overlay.popover.border.color}",
|
|
@@ -23655,8 +23655,8 @@ function hw(t, e) {
|
|
|
23655
23655
|
var bw = es(es({}, Nv), {}, {
|
|
23656
23656
|
components: {
|
|
23657
23657
|
accordion: Fv,
|
|
23658
|
-
autocomplete:
|
|
23659
|
-
avatar:
|
|
23658
|
+
autocomplete: Av,
|
|
23659
|
+
avatar: Pv,
|
|
23660
23660
|
badge: Dv,
|
|
23661
23661
|
blockui: Lv,
|
|
23662
23662
|
breadcrumb: Vv,
|
|
@@ -23704,12 +23704,12 @@ var bw = es(es({}, Nv), {}, {
|
|
|
23704
23704
|
orderlist: $1,
|
|
23705
23705
|
organizationchart: _1,
|
|
23706
23706
|
overlaybadge: T1,
|
|
23707
|
-
popover:
|
|
23707
|
+
popover: P1,
|
|
23708
23708
|
paginator: I1,
|
|
23709
23709
|
password: F1,
|
|
23710
23710
|
panel: B1,
|
|
23711
23711
|
panelmenu: R1,
|
|
23712
|
-
picklist:
|
|
23712
|
+
picklist: A1,
|
|
23713
23713
|
progressbar: D1,
|
|
23714
23714
|
progressspinner: N1,
|
|
23715
23715
|
radiobutton: L1,
|
|
@@ -23982,10 +23982,16 @@ function Fw() {
|
|
|
23982
23982
|
et();
|
|
23983
23983
|
const { get: t, post: e, put: n, del: o } = an();
|
|
23984
23984
|
return {
|
|
23985
|
-
getActiveUser: async () => await t("/users/me")
|
|
23985
|
+
getActiveUser: async () => await t("/users/me"),
|
|
23986
|
+
getAppSecurity: async (f) => await t(`/api/app/v1/${f}/security`),
|
|
23987
|
+
enableAppSecurity: async (f, d) => await e(`/api/app/v1/${f}/security/enable`, d),
|
|
23988
|
+
getAppSecurityRules: async (f) => await t(`/api/app/v1/${f}/security/rules`),
|
|
23989
|
+
saveAppSecurityRule: async (f, d) => await e(`/api/app/v1/${f}/security/rules`, d),
|
|
23990
|
+
getAppSecurityRoles: async (f) => await t(`/api/app/v1/${f}/security/roles`),
|
|
23991
|
+
saveAppSecurityRoles: async (f, d) => await e(`/api/app/v1/${f}/security/roles`, d)
|
|
23986
23992
|
};
|
|
23987
23993
|
}
|
|
23988
|
-
function
|
|
23994
|
+
function Aw() {
|
|
23989
23995
|
const t = et(), { get: e, post: n, put: o, del: r } = an(), i = () => t.getAppId();
|
|
23990
23996
|
return {
|
|
23991
23997
|
getPage: async (f) => {
|
|
@@ -24010,7 +24016,7 @@ function Pw() {
|
|
|
24010
24016
|
}
|
|
24011
24017
|
};
|
|
24012
24018
|
}
|
|
24013
|
-
function
|
|
24019
|
+
function Pw() {
|
|
24014
24020
|
const t = et(), { get: e, post: n, put: o, del: r } = an(), i = () => t.getAppId();
|
|
24015
24021
|
return {
|
|
24016
24022
|
getLayouts: async () => {
|
|
@@ -24172,7 +24178,7 @@ function Dw({
|
|
|
24172
24178
|
}
|
|
24173
24179
|
const Nw = {
|
|
24174
24180
|
install(t, e) {
|
|
24175
|
-
t.component("CSEntityGrid",
|
|
24181
|
+
t.component("CSEntityGrid", Ar), t.component("csentitygrid", Ar), t.component("CSEntityList", Xi), t.component("csentitylist", Xi), t.component("CSFieldExpression", ba), t.component("csfieldexpression", ba), t.component("CSEntity360View", Yi), t.component("csentity360view", Yi), t.component("CSEntityListing", Ji), t.component("csentitylisting", Ji), t.component("CSEntityListingTile", Qi), t.component("csentitylistingtile", Qi), t.component("CSEntityListingCarousel", sa), t.component("csentitylistingcarousel", sa), t.component("CSEntitySelection", Oo), t.component("csentityselection", Oo), t.component("CSEntityExplorer", ya), t.component("csentityexplorer", ya), t.component("CSMenu", va), t.component("csmenu", va), t.component("CSTextInput", wa), t.component("cstextinput", wa), t.component("CSButton", La), t.component("csbutton", La), t.component("CSStateText", Va), t.component("csstatetext", Va), t.component("CSColorPicker", za), t.component("cscolorpicker", za), t.component("CSRangeInput", ja), t.component("csrangeinput", ja), t.component("CSSelector", Ka), t.component("csselector", Ka), t.component("CSDynamicSelection", co), t.component("csdynamicselection", co), t.component("CSEntityRecordSelection", Ga), t.component("csentityrecordselection", Ga), t.component("CSEntitySelection", Oo), t.component("csentityselection", Oo), t.component("CSMenuSelection", Ya), t.component("csmenuSelection", Ya), t.component("CSlabel", Xa), t.component("cslabel", Xa), t.component("CSLogin", Ja), t.component("cslogin", Ja), t.component("CSSignup", Qa), t.component("cssignup", Qa);
|
|
24176
24182
|
}
|
|
24177
24183
|
};
|
|
24178
24184
|
export {
|
|
@@ -24186,9 +24192,9 @@ export {
|
|
|
24186
24192
|
ub as useEntityService,
|
|
24187
24193
|
_w as useGetEntityRecord,
|
|
24188
24194
|
et as useGlobalConfigsStore,
|
|
24189
|
-
|
|
24195
|
+
Pw as useLayoutService,
|
|
24190
24196
|
vb as useMenuService,
|
|
24191
|
-
|
|
24197
|
+
Aw as usePageService,
|
|
24192
24198
|
Fw as useSecurityService,
|
|
24193
24199
|
$w as useThemeConfig,
|
|
24194
24200
|
Bw as useThemeService
|