codesaaz-core 0.4.0 → 0.4.2
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 +433 -431
- package/dist/codesaaz.umd.js +1 -1
- package/package.json +1 -1
package/dist/codesaaz.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mergeModels as Se, useModel as Ae, resolveComponent as q, openBlock as b, createBlock as M, mergeProps as te, computed as ne, hasInjectionContext as bu, inject as nt, toRaw as Ts, isRef as Vt, isReactive as Wr, toRef as yu, ref as $, watch as Oe, reactive as Lt, effectScope as vu, getCurrentScope as wu, onScopeDispose as ku, nextTick as dt, toRefs as xu, markRaw as Su, createElementBlock as S, Fragment as ie, createElementVNode as w, createTextVNode as et, toDisplayString as Z, createCommentVNode as U, renderList as $e, createVNode as K, toValue as Ie, unref as ee, onMounted as Le, provide as sn, readonly as Is, watchEffect as Io, shallowRef as Cu, withCtx as oe, onUpdated as
|
|
1
|
+
import { mergeModels as Se, useModel as Ae, resolveComponent as q, openBlock as b, createBlock as M, mergeProps as te, computed as ne, hasInjectionContext as bu, inject as nt, toRaw as Ts, isRef as Vt, isReactive as Wr, toRef as yu, ref as $, watch as Oe, reactive as Lt, effectScope as vu, getCurrentScope as wu, onScopeDispose as ku, nextTick as dt, toRefs as xu, markRaw as Su, createElementBlock as S, Fragment as ie, createElementVNode as w, createTextVNode as et, toDisplayString as Z, createCommentVNode as U, renderList as $e, createVNode as K, toValue as Ie, unref as ee, onMounted as Le, provide as sn, readonly as Is, watchEffect as Io, shallowRef as Cu, withCtx as oe, onUpdated as Rs, normalizeProps as Qt, guardReactiveProps as bo, renderSlot as me, createSlots as Bn, withKeys as Wo, withModifiers as mn, withDirectives as xt, vShow as $u, resolveDirective as qr, normalizeClass as ve, resolveDynamicComponent as Ne, defineComponent as _n, h as tt, shallowReactive as Er, onBeforeUnmount as Kr, useId as Eu, getCurrentInstance as Bs, onUnmounted as Ou, cloneVNode as Tu, Teleport as Iu, Transition as Ru, normalizeStyle as Zn, vModelText as Pn, vModelCheckbox as Ps, createApp as Bu } from "vue";
|
|
2
2
|
import { useRoute as un, useRouter as Pu } from "vue-router";
|
|
3
3
|
import { useToast as Fs, InputText as pa } from "primevue";
|
|
4
4
|
const ma = {
|
|
@@ -601,7 +601,7 @@ function Ns(e, t, n = {}, o, r, a) {
|
|
|
601
601
|
const W = function() {
|
|
602
602
|
Gr(o);
|
|
603
603
|
const T = Array.from(arguments), V = [], C = [];
|
|
604
|
-
function
|
|
604
|
+
function R(z) {
|
|
605
605
|
V.push(z);
|
|
606
606
|
}
|
|
607
607
|
function _(z) {
|
|
@@ -611,7 +611,7 @@ function Ns(e, t, n = {}, o, r, a) {
|
|
|
611
611
|
args: T,
|
|
612
612
|
name: W[cr],
|
|
613
613
|
store: E,
|
|
614
|
-
after:
|
|
614
|
+
after: R,
|
|
615
615
|
onError: _
|
|
616
616
|
});
|
|
617
617
|
let P;
|
|
@@ -725,25 +725,25 @@ function Ds(e, t) {
|
|
|
725
725
|
const { toString: zu } = Object.prototype, { getPrototypeOf: Yr } = Object, Ko = /* @__PURE__ */ ((e) => (t) => {
|
|
726
726
|
const n = zu.call(t);
|
|
727
727
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
728
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
728
|
+
})(/* @__PURE__ */ Object.create(null)), Bt = (e) => (e = e.toLowerCase(), (t) => Ko(t) === e), Go = (e) => (t) => typeof t === e, { isArray: Nn } = Array, eo = Go("undefined");
|
|
729
729
|
function Mu(e) {
|
|
730
730
|
return e !== null && !eo(e) && e.constructor !== null && !eo(e.constructor) && ht(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
731
731
|
}
|
|
732
|
-
const Ls =
|
|
732
|
+
const Ls = Bt("ArrayBuffer");
|
|
733
733
|
function ju(e) {
|
|
734
734
|
let t;
|
|
735
735
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ls(e.buffer), t;
|
|
736
736
|
}
|
|
737
|
-
const Uu = Go("string"), ht = Go("function"), Vs = Go("number"), Yo = (e) => e !== null && typeof e == "object", Hu = (e) => e === !0 || e === !1,
|
|
737
|
+
const Uu = Go("string"), ht = Go("function"), Vs = Go("number"), Yo = (e) => e !== null && typeof e == "object", Hu = (e) => e === !0 || e === !1, Ro = (e) => {
|
|
738
738
|
if (Ko(e) !== "object")
|
|
739
739
|
return !1;
|
|
740
740
|
const t = Yr(e);
|
|
741
741
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
742
|
-
}, Wu =
|
|
742
|
+
}, Wu = Bt("Date"), qu = Bt("File"), Ku = Bt("Blob"), Gu = Bt("FileList"), Yu = (e) => Yo(e) && ht(e.pipe), Qu = (e) => {
|
|
743
743
|
let t;
|
|
744
744
|
return e && (typeof FormData == "function" && e instanceof FormData || ht(e.append) && ((t = Ko(e)) === "formdata" || // detect form-data instance
|
|
745
745
|
t === "object" && ht(e.toString) && e.toString() === "[object FormData]"));
|
|
746
|
-
}, Xu =
|
|
746
|
+
}, Xu = Bt("URLSearchParams"), [Ju, Zu, ec, tc] = ["ReadableStream", "Request", "Response", "Headers"].map(Bt), nc = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
747
747
|
function yo(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
748
748
|
if (e === null || typeof e > "u")
|
|
749
749
|
return;
|
|
@@ -771,7 +771,7 @@ const gn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
771
771
|
function Ir() {
|
|
772
772
|
const { caseless: e } = Ms(this) && this || {}, t = {}, n = (o, r) => {
|
|
773
773
|
const a = e && zs(t, r) || r;
|
|
774
|
-
|
|
774
|
+
Ro(t[a]) && Ro(o) ? t[a] = Ir(t[a], o) : Ro(o) ? t[a] = Ir({}, o) : Nn(o) ? t[a] = o.slice() : t[a] = o;
|
|
775
775
|
};
|
|
776
776
|
for (let o = 0, r = arguments.length; o < r; o++)
|
|
777
777
|
arguments[o] && yo(arguments[o], n);
|
|
@@ -819,12 +819,12 @@ const oc = (e, t, n, { allOwnKeys: o } = {}) => (yo(t, (r, a) => {
|
|
|
819
819
|
for (; (n = e.exec(t)) !== null; )
|
|
820
820
|
o.push(n);
|
|
821
821
|
return o;
|
|
822
|
-
}, fc =
|
|
822
|
+
}, fc = Bt("HTMLFormElement"), pc = (e) => e.toLowerCase().replace(
|
|
823
823
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
824
824
|
function(n, o, r) {
|
|
825
825
|
return o.toUpperCase() + r;
|
|
826
826
|
}
|
|
827
|
-
),
|
|
827
|
+
), Ra = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), mc = Bt("RegExp"), js = (e, t) => {
|
|
828
828
|
const n = Object.getOwnPropertyDescriptors(e), o = {};
|
|
829
829
|
yo(n, (r, a) => {
|
|
830
830
|
let i;
|
|
@@ -853,10 +853,10 @@ const oc = (e, t, n, { allOwnKeys: o } = {}) => (yo(t, (r, a) => {
|
|
|
853
853
|
};
|
|
854
854
|
return Nn(e) ? o(e) : o(String(e).split(t)), n;
|
|
855
855
|
}, bc = () => {
|
|
856
|
-
}, yc = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, dr = "abcdefghijklmnopqrstuvwxyz",
|
|
857
|
-
DIGIT:
|
|
856
|
+
}, yc = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, dr = "abcdefghijklmnopqrstuvwxyz", Ba = "0123456789", Us = {
|
|
857
|
+
DIGIT: Ba,
|
|
858
858
|
ALPHA: dr,
|
|
859
|
-
ALPHA_DIGIT: dr + dr.toUpperCase() +
|
|
859
|
+
ALPHA_DIGIT: dr + dr.toUpperCase() + Ba
|
|
860
860
|
}, vc = (e = 16, t = Us.ALPHA_DIGIT) => {
|
|
861
861
|
let n = "";
|
|
862
862
|
const { length: o } = t;
|
|
@@ -884,7 +884,7 @@ const kc = (e) => {
|
|
|
884
884
|
return o;
|
|
885
885
|
};
|
|
886
886
|
return n(e, 0);
|
|
887
|
-
}, xc =
|
|
887
|
+
}, xc = Bt("AsyncFunction"), Sc = (e) => e && (Yo(e) || ht(e)) && ht(e.then) && ht(e.catch), Hs = ((e, t) => e ? setImmediate : t ? ((n, o) => (gn.addEventListener("message", ({ source: r, data: a }) => {
|
|
888
888
|
r === gn && a === n && o.length && o.shift()();
|
|
889
889
|
}, !1), (r) => {
|
|
890
890
|
o.push(r), gn.postMessage(n, "*");
|
|
@@ -901,7 +901,7 @@ const kc = (e) => {
|
|
|
901
901
|
isNumber: Vs,
|
|
902
902
|
isBoolean: Hu,
|
|
903
903
|
isObject: Yo,
|
|
904
|
-
isPlainObject:
|
|
904
|
+
isPlainObject: Ro,
|
|
905
905
|
isReadableStream: Ju,
|
|
906
906
|
isRequest: Zu,
|
|
907
907
|
isResponse: ec,
|
|
@@ -924,14 +924,14 @@ const kc = (e) => {
|
|
|
924
924
|
inherits: ac,
|
|
925
925
|
toFlatObject: ic,
|
|
926
926
|
kindOf: Ko,
|
|
927
|
-
kindOfTest:
|
|
927
|
+
kindOfTest: Bt,
|
|
928
928
|
endsWith: sc,
|
|
929
929
|
toArray: lc,
|
|
930
930
|
forEachEntry: cc,
|
|
931
931
|
matchAll: dc,
|
|
932
932
|
isHTMLForm: fc,
|
|
933
|
-
hasOwnProperty:
|
|
934
|
-
hasOwnProp:
|
|
933
|
+
hasOwnProperty: Ra,
|
|
934
|
+
hasOwnProp: Ra,
|
|
935
935
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
936
936
|
reduceDescriptors: js,
|
|
937
937
|
freezeMethods: gc,
|
|
@@ -1002,7 +1002,7 @@ xe.from = (e, t, n, o, r, a) => {
|
|
|
1002
1002
|
}, (s) => s !== "isAxiosError"), xe.call(i, e.message, t, n, o, r), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
|
|
1003
1003
|
};
|
|
1004
1004
|
const $c = null;
|
|
1005
|
-
function
|
|
1005
|
+
function Rr(e) {
|
|
1006
1006
|
return H.isPlainObject(e) || H.isArray(e);
|
|
1007
1007
|
}
|
|
1008
1008
|
function Ks(e) {
|
|
@@ -1014,7 +1014,7 @@ function Pa(e, t, n) {
|
|
|
1014
1014
|
}).join(n ? "." : "") : t;
|
|
1015
1015
|
}
|
|
1016
1016
|
function Ec(e) {
|
|
1017
|
-
return H.isArray(e) && !e.some(
|
|
1017
|
+
return H.isArray(e) && !e.some(Rr);
|
|
1018
1018
|
}
|
|
1019
1019
|
const Oc = H.toFlatObject(H, {}, null, function(t) {
|
|
1020
1020
|
return /^is[A-Z]/.test(t);
|
|
@@ -1054,12 +1054,12 @@ function Qo(e, t, n) {
|
|
|
1054
1054
|
);
|
|
1055
1055
|
}), !1;
|
|
1056
1056
|
}
|
|
1057
|
-
return
|
|
1057
|
+
return Rr(m) ? !0 : (t.append(Pa(h, g, a), l(m)), !1);
|
|
1058
1058
|
}
|
|
1059
1059
|
const f = [], d = Object.assign(Oc, {
|
|
1060
1060
|
defaultVisitor: u,
|
|
1061
1061
|
convertValue: l,
|
|
1062
|
-
isVisitable:
|
|
1062
|
+
isVisitable: Rr
|
|
1063
1063
|
});
|
|
1064
1064
|
function p(m, g) {
|
|
1065
1065
|
if (!H.isUndefined(m)) {
|
|
@@ -1185,21 +1185,21 @@ const Qs = {
|
|
|
1185
1185
|
silentJSONParsing: !0,
|
|
1186
1186
|
forcedJSONParsing: !0,
|
|
1187
1187
|
clarifyTimeoutError: !1
|
|
1188
|
-
}, Ic = typeof URLSearchParams < "u" ? URLSearchParams : Qr,
|
|
1188
|
+
}, Ic = typeof URLSearchParams < "u" ? URLSearchParams : Qr, Rc = typeof FormData < "u" ? FormData : null, Bc = typeof Blob < "u" ? Blob : null, Pc = {
|
|
1189
1189
|
isBrowser: !0,
|
|
1190
1190
|
classes: {
|
|
1191
1191
|
URLSearchParams: Ic,
|
|
1192
|
-
FormData:
|
|
1193
|
-
Blob:
|
|
1192
|
+
FormData: Rc,
|
|
1193
|
+
Blob: Bc
|
|
1194
1194
|
},
|
|
1195
1195
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1196
|
-
}, Xr = typeof window < "u" && typeof document < "u",
|
|
1196
|
+
}, Xr = typeof window < "u" && typeof document < "u", Br = typeof navigator == "object" && navigator || void 0, Fc = Xr && (!Br || ["ReactNative", "NativeScript", "NS"].indexOf(Br.product) < 0), Ac = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1197
1197
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", _c = Xr && window.location.href || "http://localhost", Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1198
1198
|
__proto__: null,
|
|
1199
1199
|
hasBrowserEnv: Xr,
|
|
1200
1200
|
hasStandardBrowserEnv: Fc,
|
|
1201
1201
|
hasStandardBrowserWebWorkerEnv: Ac,
|
|
1202
|
-
navigator:
|
|
1202
|
+
navigator: Br,
|
|
1203
1203
|
origin: _c
|
|
1204
1204
|
}, Symbol.toStringTag, { value: "Module" })), st = {
|
|
1205
1205
|
...Nc,
|
|
@@ -1347,8 +1347,8 @@ const Mc = H.toObjectSet([
|
|
|
1347
1347
|
function jn(e) {
|
|
1348
1348
|
return e && String(e).trim().toLowerCase();
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1351
|
-
return e === !1 || e == null ? e : H.isArray(e) ? e.map(
|
|
1350
|
+
function Bo(e) {
|
|
1351
|
+
return e === !1 || e == null ? e : H.isArray(e) ? e.map(Bo) : String(e);
|
|
1352
1352
|
}
|
|
1353
1353
|
function Uc(e) {
|
|
1354
1354
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -1393,7 +1393,7 @@ class pt {
|
|
|
1393
1393
|
if (!u)
|
|
1394
1394
|
throw new Error("header name must be a non-empty string");
|
|
1395
1395
|
const f = H.findKey(r, u);
|
|
1396
|
-
(!f || r[f] === void 0 || l === !0 || l === void 0 && r[f] !== !1) && (r[f || c] =
|
|
1396
|
+
(!f || r[f] === void 0 || l === !0 || l === void 0 && r[f] !== !1) && (r[f || c] = Bo(s));
|
|
1397
1397
|
}
|
|
1398
1398
|
const i = (s, c) => H.forEach(s, (l, u) => a(l, u, c));
|
|
1399
1399
|
if (H.isPlainObject(t) || t instanceof this.constructor)
|
|
@@ -1456,11 +1456,11 @@ class pt {
|
|
|
1456
1456
|
return H.forEach(this, (r, a) => {
|
|
1457
1457
|
const i = H.findKey(o, a);
|
|
1458
1458
|
if (i) {
|
|
1459
|
-
n[i] =
|
|
1459
|
+
n[i] = Bo(r), delete n[a];
|
|
1460
1460
|
return;
|
|
1461
1461
|
}
|
|
1462
1462
|
const s = t ? Wc(a) : String(a).trim();
|
|
1463
|
-
s !== a && delete n[a], n[s] =
|
|
1463
|
+
s !== a && delete n[a], n[s] = Bo(r), o[s] = !0;
|
|
1464
1464
|
}), this;
|
|
1465
1465
|
}
|
|
1466
1466
|
concat(...t) {
|
|
@@ -2558,7 +2558,7 @@ function hd(e = "") {
|
|
|
2558
2558
|
let o = $({}), r = $([]), a = $([]), i = $([]);
|
|
2559
2559
|
const s = $(""), c = $(1), l = $(25), u = $(0), f = $(0), d = $(0), p = $(!1), m = $([]), g = $(""), h = $({}), y = async (C) => {
|
|
2560
2560
|
r.value = C.result, i.value = E(C.entity.entityDefinition.columns), a.value = x(C.entity.entityDefinition.columns);
|
|
2561
|
-
}, k = async (C,
|
|
2561
|
+
}, k = async (C, R = !0) => {
|
|
2562
2562
|
p.value = !0;
|
|
2563
2563
|
try {
|
|
2564
2564
|
const _ = await t.getEntityRecords(C);
|
|
@@ -2571,7 +2571,7 @@ function hd(e = "") {
|
|
|
2571
2571
|
}, v = async (C = !0) => {
|
|
2572
2572
|
p.value = !0;
|
|
2573
2573
|
try {
|
|
2574
|
-
const
|
|
2574
|
+
const R = {
|
|
2575
2575
|
sortBy: [s.value],
|
|
2576
2576
|
sortDirection: c.value === 1 ? "ASC" : "DESC",
|
|
2577
2577
|
pageSize: l.value,
|
|
@@ -2580,23 +2580,23 @@ function hd(e = "") {
|
|
|
2580
2580
|
filter: m.value,
|
|
2581
2581
|
fullTextSearch: g.value
|
|
2582
2582
|
};
|
|
2583
|
-
Object.keys(
|
|
2584
|
-
const _ = await t.searchEntityRecords(e,
|
|
2583
|
+
Object.keys(R.filter).length === 0 && (R.filter = []);
|
|
2584
|
+
const _ = await t.searchEntityRecords(e, R);
|
|
2585
2585
|
_ && _.response && (p.value = !1, o.value = _.response, r.value = _.response.result, f.value = _.response.totalRecords, d.value = u.value * l.value);
|
|
2586
|
-
} catch (
|
|
2587
|
-
console.error("Error fetching entity:",
|
|
2586
|
+
} catch (R) {
|
|
2587
|
+
console.error("Error fetching entity:", R.errorMessage);
|
|
2588
2588
|
} finally {
|
|
2589
2589
|
p.value = !1;
|
|
2590
2590
|
}
|
|
2591
|
-
}, x = (C) => C.filter((
|
|
2592
|
-
field:
|
|
2593
|
-
name:
|
|
2594
|
-
filterable:
|
|
2595
|
-
datatype:
|
|
2591
|
+
}, x = (C) => C.filter((R) => R.fieldType !== "ENTITY").map((R) => ({
|
|
2592
|
+
field: R.name,
|
|
2593
|
+
name: R.displayName ? R.displayName : R.name,
|
|
2594
|
+
filterable: R.filterable,
|
|
2595
|
+
datatype: R.type,
|
|
2596
2596
|
sortable: !0,
|
|
2597
|
-
displayFormatKey:
|
|
2598
|
-
displayFormat:
|
|
2599
|
-
})), E = (C) => C.filter((
|
|
2597
|
+
displayFormatKey: R.displayFormatKey,
|
|
2598
|
+
displayFormat: R.displayFormat
|
|
2599
|
+
})), E = (C) => C.filter((R) => !(R.fieldType && R.fieldType === "ENTITY")), D = (C) => {
|
|
2600
2600
|
s.value = C.sortField, c.value = C.sortOrder, d.value = 0, v();
|
|
2601
2601
|
}, I = (C) => {
|
|
2602
2602
|
l.value = C.rows, u.value = C.page, d.value = C.first, v();
|
|
@@ -2620,13 +2620,13 @@ function hd(e = "") {
|
|
|
2620
2620
|
return "text";
|
|
2621
2621
|
}
|
|
2622
2622
|
}, T = (C) => {
|
|
2623
|
-
const
|
|
2624
|
-
return
|
|
2623
|
+
const R = a.value.find((_) => _.field === C);
|
|
2624
|
+
return R ? R.datatype : null;
|
|
2625
2625
|
}, V = () => {
|
|
2626
2626
|
for (let C = 0; C < i.value.length; C++) {
|
|
2627
|
-
const
|
|
2628
|
-
if (
|
|
2629
|
-
h.value =
|
|
2627
|
+
const R = i.value[C];
|
|
2628
|
+
if (R.primaryKey && R.primaryKey == !0) {
|
|
2629
|
+
h.value = R, s.value = R.name;
|
|
2630
2630
|
break;
|
|
2631
2631
|
}
|
|
2632
2632
|
}
|
|
@@ -2800,7 +2800,7 @@ function Od() {
|
|
|
2800
2800
|
* (c) 2024 Abdelrahman Awad
|
|
2801
2801
|
* @license MIT
|
|
2802
2802
|
*/
|
|
2803
|
-
function
|
|
2803
|
+
function Rt(e) {
|
|
2804
2804
|
return typeof e == "function";
|
|
2805
2805
|
}
|
|
2806
2806
|
function sl(e) {
|
|
@@ -2849,9 +2849,9 @@ function xo(e) {
|
|
|
2849
2849
|
}
|
|
2850
2850
|
return n;
|
|
2851
2851
|
}
|
|
2852
|
-
const
|
|
2853
|
-
function
|
|
2854
|
-
return
|
|
2852
|
+
const Rd = {};
|
|
2853
|
+
function Bd(e) {
|
|
2854
|
+
return Rd[e];
|
|
2855
2855
|
}
|
|
2856
2856
|
function qa(e, t, n) {
|
|
2857
2857
|
typeof n.value == "object" && (n.value = Ue(n.value)), !n.enumerable || n.get || n.set || !n.configurable || !n.writable || t === "__proto__" ? Object.defineProperty(e, t, n) : e[t] = n.value;
|
|
@@ -2873,13 +2873,13 @@ function Ue(e) {
|
|
|
2873
2873
|
}
|
|
2874
2874
|
const Pd = Symbol("vee-validate-form"), Fd = Symbol("vee-validate-form-context"), Ad = typeof window < "u";
|
|
2875
2875
|
function _d(e) {
|
|
2876
|
-
return
|
|
2876
|
+
return Rt(e) && !!e.__locatorRef;
|
|
2877
2877
|
}
|
|
2878
2878
|
function rn(e) {
|
|
2879
|
-
return !!e &&
|
|
2879
|
+
return !!e && Rt(e.parse) && e.__type === "VVTypedSchema";
|
|
2880
2880
|
}
|
|
2881
2881
|
function ll(e) {
|
|
2882
|
-
return !!e &&
|
|
2882
|
+
return !!e && Rt(e.validate);
|
|
2883
2883
|
}
|
|
2884
2884
|
function Nd(e) {
|
|
2885
2885
|
return e === "checkbox" || e === "radio";
|
|
@@ -2903,7 +2903,7 @@ function zd(e) {
|
|
|
2903
2903
|
return cl(e) && e.target && "submit" in e.target;
|
|
2904
2904
|
}
|
|
2905
2905
|
function cl(e) {
|
|
2906
|
-
return e ? !!(typeof Event < "u" &&
|
|
2906
|
+
return e ? !!(typeof Event < "u" && Rt(Event) && e instanceof Event || e && e.srcElement) : !1;
|
|
2907
2907
|
}
|
|
2908
2908
|
function Qn(e, t) {
|
|
2909
2909
|
if (e === t)
|
|
@@ -3162,7 +3162,7 @@ async function Xd(e, t) {
|
|
|
3162
3162
|
const n = e.rules;
|
|
3163
3163
|
if (rn(n) || ll(n))
|
|
3164
3164
|
return Zd(t, Object.assign(Object.assign({}, e), { rules: n }));
|
|
3165
|
-
if (
|
|
3165
|
+
if (Rt(n) || Array.isArray(n)) {
|
|
3166
3166
|
const s = {
|
|
3167
3167
|
field: e.label || e.name,
|
|
3168
3168
|
name: e.name,
|
|
@@ -3241,7 +3241,7 @@ async function Zd(e, t) {
|
|
|
3241
3241
|
};
|
|
3242
3242
|
}
|
|
3243
3243
|
async function ef(e, t, n) {
|
|
3244
|
-
const o =
|
|
3244
|
+
const o = Bd(n.name);
|
|
3245
3245
|
if (!o)
|
|
3246
3246
|
throw new Error(`No such validator '${n.name}' exists.`);
|
|
3247
3247
|
const r = tf(n.params, e.formData), a = {
|
|
@@ -3309,7 +3309,7 @@ let rf = 0;
|
|
|
3309
3309
|
const Co = ["bails", "fieldsCount", "id", "multiple", "type", "validate"];
|
|
3310
3310
|
function ml(e) {
|
|
3311
3311
|
const n = Object.assign({}, Ie({})), o = ee(void 0);
|
|
3312
|
-
return o && rn(o) &&
|
|
3312
|
+
return o && rn(o) && Rt(o.cast) ? Ue(o.cast(n) || {}) : Ue(n);
|
|
3313
3313
|
}
|
|
3314
3314
|
function gl(e) {
|
|
3315
3315
|
var t;
|
|
@@ -3398,7 +3398,7 @@ function gl(e) {
|
|
|
3398
3398
|
});
|
|
3399
3399
|
}), Ve;
|
|
3400
3400
|
}
|
|
3401
|
-
const C = Qa(vt, 5),
|
|
3401
|
+
const C = Qa(vt, 5), R = Qa(vt, 5), _ = Md(async (F) => await (F === "silent" ? C() : R()), (F, [A]) => {
|
|
3402
3402
|
const Q = kt(we.errorBag.value), he = [
|
|
3403
3403
|
.../* @__PURE__ */ new Set([...kt(F.results), ...u.value.map((ke) => ke.path), ...Q])
|
|
3404
3404
|
].sort().reduce((ke, pe) => {
|
|
@@ -3435,7 +3435,7 @@ function gl(e) {
|
|
|
3435
3435
|
}), ye = [], L = null;
|
|
3436
3436
|
})), L;
|
|
3437
3437
|
}
|
|
3438
|
-
function
|
|
3438
|
+
function B(F) {
|
|
3439
3439
|
return function(Q, se) {
|
|
3440
3440
|
return function(ke) {
|
|
3441
3441
|
return ke instanceof Event && (ke.preventDefault(), ke.stopPropagation()), P((pe) => pe.touched = !0), a.value = !0, s.value++, _e().then((pe) => {
|
|
@@ -3468,8 +3468,8 @@ function gl(e) {
|
|
|
3468
3468
|
};
|
|
3469
3469
|
};
|
|
3470
3470
|
}
|
|
3471
|
-
const de =
|
|
3472
|
-
de.withControlled =
|
|
3471
|
+
const de = B(!1);
|
|
3472
|
+
de.withControlled = B(!0);
|
|
3473
3473
|
function ue(F, A) {
|
|
3474
3474
|
const Q = u.value.findIndex((he) => he.path === F && (Array.isArray(he.id) ? he.id.includes(A) : he.id === A)), se = u.value[Q];
|
|
3475
3475
|
if (!(Q === -1 || !se)) {
|
|
@@ -3531,7 +3531,7 @@ function gl(e) {
|
|
|
3531
3531
|
destroyPath: fe,
|
|
3532
3532
|
isFieldTouched: ae,
|
|
3533
3533
|
isFieldDirty: X,
|
|
3534
|
-
isFieldValid:
|
|
3534
|
+
isFieldValid: Be
|
|
3535
3535
|
};
|
|
3536
3536
|
function Ee(F, A, Q = !0) {
|
|
3537
3537
|
const se = Ue(A), he = typeof F == "string" ? F : F.path;
|
|
@@ -3572,7 +3572,7 @@ function gl(e) {
|
|
|
3572
3572
|
const A = z(F);
|
|
3573
3573
|
return A ? A.dirty : u.value.filter((Q) => Q.path.startsWith(F)).some((Q) => Q.dirty);
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function Be(F) {
|
|
3576
3576
|
const A = z(F);
|
|
3577
3577
|
return A ? A.valid : u.value.filter((Q) => Q.path.startsWith(F)).every((Q) => Q.valid);
|
|
3578
3578
|
}
|
|
@@ -3596,7 +3596,7 @@ function gl(e) {
|
|
|
3596
3596
|
}
|
|
3597
3597
|
function Pe(F, A) {
|
|
3598
3598
|
let Q = Ue(F != null && F.values ? F.values : I.value);
|
|
3599
|
-
Q = A != null && A.force ? Q : to(I.value, Q), Q = rn(T) &&
|
|
3599
|
+
Q = A != null && A.force ? Q : to(I.value, Q), Q = rn(T) && Rt(T.cast) ? T.cast(Q) : Q, O(Q, { force: A == null ? void 0 : A.force }), P((se) => {
|
|
3600
3600
|
var he;
|
|
3601
3601
|
se.__flags.pendingReset = !0, se.validated = !1, se.touched = ((he = F == null ? void 0 : F.touched) === null || he === void 0 ? void 0 : he[Ie(se.path)]) || !1, Ee(Ie(se.path), Gt(Q, Ie(se.path)), !1), m(Ie(se.path), void 0);
|
|
3602
3602
|
}), A != null && A.force ? gt(Q, !1) : at(Q, !1), g((F == null ? void 0 : F.errors) || {}), s.value = (F == null ? void 0 : F.submitCount) || 0, dt(() => {
|
|
@@ -3671,7 +3671,7 @@ function gl(e) {
|
|
|
3671
3671
|
(F = we.validateSchema) === null || F === void 0 || F.call(we, "validated-only");
|
|
3672
3672
|
}), sn(Pd, we);
|
|
3673
3673
|
function Jt(F, A) {
|
|
3674
|
-
const Q =
|
|
3674
|
+
const Q = Rt(A) || A == null ? void 0 : A.label, se = z(Ie(F)) || V(F, { label: Q }), he = () => Rt(A) ? A(So(se, Co)) : A || {};
|
|
3675
3675
|
function ke() {
|
|
3676
3676
|
var le;
|
|
3677
3677
|
se.touched = !0, ((le = he().validateOnBlur) !== null && le !== void 0 ? le : Kn().validateOnBlur) && Ke(Ie(se.path));
|
|
@@ -3694,7 +3694,7 @@ function gl(e) {
|
|
|
3694
3694
|
onInput: pe,
|
|
3695
3695
|
onBlur: ke
|
|
3696
3696
|
};
|
|
3697
|
-
return
|
|
3697
|
+
return Rt(A) ? Object.assign(Object.assign({}, le), A(So(se, Co)).props || {}) : A != null && A.props ? Object.assign(Object.assign({}, le), A.props(So(se, Co))) : le;
|
|
3698
3698
|
});
|
|
3699
3699
|
return [Et(F, () => {
|
|
3700
3700
|
var le, be, Ve;
|
|
@@ -3730,7 +3730,7 @@ function gl(e) {
|
|
|
3730
3730
|
Q.value = pe;
|
|
3731
3731
|
}
|
|
3732
3732
|
return ne(() => {
|
|
3733
|
-
const pe =
|
|
3733
|
+
const pe = Rt(A) ? A(So(he, Co)) : A || {};
|
|
3734
3734
|
return Object.assign({ [pe.model || "modelValue"]: Q.value, [`onUpdate:${pe.model || "modelValue"}`]: ke }, se.value);
|
|
3735
3735
|
});
|
|
3736
3736
|
}
|
|
@@ -4184,7 +4184,7 @@ function En(e) {
|
|
|
4184
4184
|
spec: i.spec,
|
|
4185
4185
|
disableStackTrace: T.disableStackTrace || y
|
|
4186
4186
|
}, f, T.params);
|
|
4187
|
-
for (const
|
|
4187
|
+
for (const R of Object.keys(V)) V[R] = k(V[R]);
|
|
4188
4188
|
const C = new ft(ft.formatError(T.message || d, V), n, V.path, T.type || l, V.disableStackTrace);
|
|
4189
4189
|
return C.params = V, C;
|
|
4190
4190
|
}
|
|
@@ -4275,7 +4275,7 @@ class Vo extends Set {
|
|
|
4275
4275
|
return t.forEach((r) => o.add(r)), n.forEach((r) => o.delete(r)), o;
|
|
4276
4276
|
}
|
|
4277
4277
|
}
|
|
4278
|
-
function
|
|
4278
|
+
function Rn(e, t = /* @__PURE__ */ new Map()) {
|
|
4279
4279
|
if (na(e) || !e || typeof e != "object") return e;
|
|
4280
4280
|
if (t.has(e)) return t.get(e);
|
|
4281
4281
|
let n;
|
|
@@ -4285,16 +4285,16 @@ function Bn(e, t = /* @__PURE__ */ new Map()) {
|
|
|
4285
4285
|
n = new RegExp(e), t.set(e, n);
|
|
4286
4286
|
else if (Array.isArray(e)) {
|
|
4287
4287
|
n = new Array(e.length), t.set(e, n);
|
|
4288
|
-
for (let o = 0; o < e.length; o++) n[o] =
|
|
4288
|
+
for (let o = 0; o < e.length; o++) n[o] = Rn(e[o], t);
|
|
4289
4289
|
} else if (e instanceof Map) {
|
|
4290
4290
|
n = /* @__PURE__ */ new Map(), t.set(e, n);
|
|
4291
|
-
for (const [o, r] of e.entries()) n.set(o,
|
|
4291
|
+
for (const [o, r] of e.entries()) n.set(o, Rn(r, t));
|
|
4292
4292
|
} else if (e instanceof Set) {
|
|
4293
4293
|
n = /* @__PURE__ */ new Set(), t.set(e, n);
|
|
4294
|
-
for (const o of e) n.add(
|
|
4294
|
+
for (const o of e) n.add(Rn(o, t));
|
|
4295
4295
|
} else if (e instanceof Object) {
|
|
4296
4296
|
n = {}, t.set(e, n);
|
|
4297
|
-
for (const [o, r] of Object.entries(e)) n[o] =
|
|
4297
|
+
for (const [o, r] of Object.entries(e)) n[o] = Rn(r, t);
|
|
4298
4298
|
} else
|
|
4299
4299
|
throw Error(`Unable to clone ${e}`);
|
|
4300
4300
|
return n;
|
|
@@ -4324,7 +4324,7 @@ class zt {
|
|
|
4324
4324
|
if (this._mutate)
|
|
4325
4325
|
return t && Object.assign(this.spec, t), this;
|
|
4326
4326
|
const n = Object.create(Object.getPrototypeOf(this));
|
|
4327
|
-
return n.type = this.type, n._typeCheck = this._typeCheck, n._whitelist = this._whitelist.clone(), n._blacklist = this._blacklist.clone(), n.internalTests = Object.assign({}, this.internalTests), n.exclusiveTests = Object.assign({}, this.exclusiveTests), n.deps = [...this.deps], n.conditions = [...this.conditions], n.tests = [...this.tests], n.transforms = [...this.transforms], n.spec =
|
|
4327
|
+
return n.type = this.type, n._typeCheck = this._typeCheck, n._whitelist = this._whitelist.clone(), n._blacklist = this._blacklist.clone(), n.internalTests = Object.assign({}, this.internalTests), n.exclusiveTests = Object.assign({}, this.exclusiveTests), n.deps = [...this.deps], n.conditions = [...this.conditions], n.tests = [...this.tests], n.transforms = [...this.transforms], n.spec = Rn(Object.assign({}, this.spec, t)), n;
|
|
4328
4328
|
}
|
|
4329
4329
|
label(t) {
|
|
4330
4330
|
let n = this.clone();
|
|
@@ -4527,7 +4527,7 @@ attempted value: ${i}
|
|
|
4527
4527
|
}
|
|
4528
4528
|
_getDefault(t) {
|
|
4529
4529
|
let n = this.spec.default;
|
|
4530
|
-
return n == null ? n : typeof n == "function" ? n.call(this, t) :
|
|
4530
|
+
return n == null ? n : typeof n == "function" ? n.call(this, t) : Rn(n);
|
|
4531
4531
|
}
|
|
4532
4532
|
getDefault(t) {
|
|
4533
4533
|
return this.resolve(t || {})._getDefault(t);
|
|
@@ -4762,7 +4762,7 @@ let Tf = (
|
|
|
4762
4762
|
), If = (
|
|
4763
4763
|
// eslint-disable-next-line
|
|
4764
4764
|
/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i
|
|
4765
|
-
),
|
|
4765
|
+
), Rf = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, Bf = "^\\d{4}-\\d{2}-\\d{2}", Pf = "\\d{2}:\\d{2}:\\d{2}", Ff = "(([+-]\\d{2}(:?\\d{2})?)|Z)", Af = new RegExp(`${Bf}T${Pf}(\\.\\d+)?${Ff}$`), _f = (e) => hn(e) || e === e.trim(), Nf = {}.toString();
|
|
4766
4766
|
function oa() {
|
|
4767
4767
|
return new kl();
|
|
4768
4768
|
}
|
|
@@ -4865,7 +4865,7 @@ class kl extends zt {
|
|
|
4865
4865
|
});
|
|
4866
4866
|
}
|
|
4867
4867
|
uuid(t = ct.uuid) {
|
|
4868
|
-
return this.matches(
|
|
4868
|
+
return this.matches(Rf, {
|
|
4869
4869
|
name: "uuid",
|
|
4870
4870
|
message: t,
|
|
4871
4871
|
excludeEmptyString: !1
|
|
@@ -5299,31 +5299,31 @@ function aa(e, t, n, o) {
|
|
|
5299
5299
|
const k = async () => {
|
|
5300
5300
|
var L, N;
|
|
5301
5301
|
try {
|
|
5302
|
-
const
|
|
5303
|
-
|
|
5304
|
-
} catch (
|
|
5305
|
-
(N =
|
|
5302
|
+
const B = await r.getEntityRecords(e);
|
|
5303
|
+
B && B.response && (i.value = B.response, l.value = (L = B.response.entity.entityDefinition) == null ? void 0 : L.columns, ye(), j(), C());
|
|
5304
|
+
} catch (B) {
|
|
5305
|
+
(N = B == null ? void 0 : B.data) != null && N.errorMessage ? a.add({ severity: "error", summary: "Error", detail: B.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while fetching records", life: 3e3 });
|
|
5306
5306
|
} finally {
|
|
5307
5307
|
}
|
|
5308
5308
|
}, v = async () => {
|
|
5309
5309
|
var L, N;
|
|
5310
5310
|
try {
|
|
5311
|
-
const
|
|
5312
|
-
if (
|
|
5313
|
-
if (i.value =
|
|
5311
|
+
const B = await r.getRecord(e, t);
|
|
5312
|
+
if (B && B.response) {
|
|
5313
|
+
if (i.value = B.response, l.value = (L = B.response.entity.entityDefinition) == null ? void 0 : L.columns, ye(), B.response.result && B.response.result.length > 0)
|
|
5314
5314
|
try {
|
|
5315
|
-
s.value = JSON.parse(JSON.stringify(
|
|
5315
|
+
s.value = JSON.parse(JSON.stringify(B.response.result[0]));
|
|
5316
5316
|
} catch (Y) {
|
|
5317
|
-
console.error("JSON Parse Error in fetchRecord", Y), s.value = { ...
|
|
5317
|
+
console.error("JSON Parse Error in fetchRecord", Y), s.value = { ...B.response.result[0] };
|
|
5318
5318
|
}
|
|
5319
5319
|
C();
|
|
5320
5320
|
}
|
|
5321
|
-
} catch (
|
|
5322
|
-
(N =
|
|
5321
|
+
} catch (B) {
|
|
5322
|
+
(N = B == null ? void 0 : B.data) != null && N.errorMessage ? a.add({ severity: "error", summary: "Error", detail: B.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
|
|
5323
5323
|
} finally {
|
|
5324
5324
|
}
|
|
5325
5325
|
}, x = async () => {
|
|
5326
|
-
var L, N,
|
|
5326
|
+
var L, N, B;
|
|
5327
5327
|
try {
|
|
5328
5328
|
const Y = await r.getRelatedEntityRecord(e, t);
|
|
5329
5329
|
if (Y && Y.response) {
|
|
@@ -5342,41 +5342,41 @@ function aa(e, t, n, o) {
|
|
|
5342
5342
|
}))), c.value = JSON.parse(JSON.stringify(s.value)), C();
|
|
5343
5343
|
}
|
|
5344
5344
|
} catch (Y) {
|
|
5345
|
-
console.error("Error in getRelatedEntityRecordById", Y), (
|
|
5345
|
+
console.error("Error in getRelatedEntityRecordById", Y), (B = Y == null ? void 0 : Y.data) != null && B.errorMessage ? a.add({ severity: "error", summary: "Error", detail: Y.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
|
|
5346
5346
|
} finally {
|
|
5347
5347
|
}
|
|
5348
5348
|
}, E = async (L) => {
|
|
5349
5349
|
var N;
|
|
5350
5350
|
try {
|
|
5351
|
-
let
|
|
5352
|
-
|
|
5353
|
-
} catch (
|
|
5354
|
-
|
|
5351
|
+
let B = await r.addRecord(e, L);
|
|
5352
|
+
B && B.response ? (a.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, recordId: t })) : (N = B == null ? void 0 : B.data) != null && N.errorMessage ? a.add({ severity: "error", summary: "Error", detail: B.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while saving record", life: 3e3 });
|
|
5353
|
+
} catch (B) {
|
|
5354
|
+
B.validationErrors && (f.value = JSON.parse(JSON.stringify(B.validationErrors))), console.error("Error fetching entity:", B.errorMessage);
|
|
5355
5355
|
} finally {
|
|
5356
5356
|
}
|
|
5357
5357
|
}, D = async (L, N) => {
|
|
5358
5358
|
try {
|
|
5359
|
-
let
|
|
5360
|
-
if (
|
|
5361
|
-
let Y = await r.saveRelatedEntityRecord(e,
|
|
5359
|
+
let B = await r.addRecord(e, N);
|
|
5360
|
+
if (B && B.response) {
|
|
5361
|
+
let Y = await r.saveRelatedEntityRecord(e, B.response.recordId, L.linkedEntities);
|
|
5362
5362
|
Y && Y.response && n("onSaveDialog", { entityName: e, recordId: t }), a.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 });
|
|
5363
5363
|
}
|
|
5364
|
-
} catch (
|
|
5365
|
-
|
|
5364
|
+
} catch (B) {
|
|
5365
|
+
B.validationErrors && (f.value = JSON.parse(JSON.stringify(B.validationErrors))), console.error("Error fetching entity:", B.errorMessage);
|
|
5366
5366
|
} finally {
|
|
5367
5367
|
}
|
|
5368
5368
|
}, I = async (L) => {
|
|
5369
5369
|
var N;
|
|
5370
5370
|
try {
|
|
5371
|
-
const
|
|
5372
|
-
|
|
5373
|
-
} catch (
|
|
5374
|
-
|
|
5371
|
+
const B = await r.updateRecord(e, t, L);
|
|
5372
|
+
B && B.response ? (a.add({ severity: "success", summary: "Success", detail: "Record update successfuly", life: 3e3 }), p.value = !1, c.value = JSON.parse(JSON.stringify(s.value)), n("onSaveDialog", { entityName: e, recordId: t })) : (N = B == null ? void 0 : B.data) != null && N.errorMessage ? a.add({ severity: "error", summary: "Error", detail: B.data.errorMessage, life: 3e3 }) : a.add({ severity: "error", summary: "Error", detail: "Error while updating record", life: 3e3 });
|
|
5373
|
+
} catch (B) {
|
|
5374
|
+
B.validationErrors && (f.value = JSON.parse(JSON.stringify(B.errvalidationErrorsors))), console.error("Error fetching entity:", B.errorMessage);
|
|
5375
5375
|
} finally {
|
|
5376
5376
|
}
|
|
5377
|
-
}, O = async (L, N,
|
|
5377
|
+
}, O = async (L, N, B) => {
|
|
5378
5378
|
try {
|
|
5379
|
-
let Y = await r.saveRelatedEntityRecord(L, N,
|
|
5379
|
+
let Y = await r.saveRelatedEntityRecord(L, N, B);
|
|
5380
5380
|
Y && Y.response && (a.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, enityRecordId: N }));
|
|
5381
5381
|
} catch (Y) {
|
|
5382
5382
|
Y.validationErrors && (f.value = JSON.parse(JSON.stringify(Y.validationErrors))), console.error("Error fetching entity:", Y.errorMessage);
|
|
@@ -5389,8 +5389,8 @@ function aa(e, t, n, o) {
|
|
|
5389
5389
|
}
|
|
5390
5390
|
}, W = (L) => {
|
|
5391
5391
|
let N = "";
|
|
5392
|
-
for (let
|
|
5393
|
-
let Y = l.value[
|
|
5392
|
+
for (let B = 0; B < l.value.length; B++) {
|
|
5393
|
+
let Y = l.value[B];
|
|
5394
5394
|
if (L == Y.name) {
|
|
5395
5395
|
N = Y.type;
|
|
5396
5396
|
break;
|
|
@@ -5398,17 +5398,17 @@ function aa(e, t, n, o) {
|
|
|
5398
5398
|
}
|
|
5399
5399
|
return N;
|
|
5400
5400
|
}, T = () => {
|
|
5401
|
-
const L = l.value.filter((
|
|
5402
|
-
return Object.entries(s.value).filter(([
|
|
5403
|
-
recordColumnName:
|
|
5401
|
+
const L = l.value.filter((B) => B.autoGenerated || B.fieldType).map((B) => B.name);
|
|
5402
|
+
return Object.entries(s.value).filter(([B]) => !L.includes(B)).map(([B, Y]) => ({
|
|
5403
|
+
recordColumnName: B,
|
|
5404
5404
|
recordColumnValue: Y,
|
|
5405
|
-
columnType: W(
|
|
5405
|
+
columnType: W(B)
|
|
5406
5406
|
}));
|
|
5407
5407
|
}, V = async (L = {}) => {
|
|
5408
5408
|
try {
|
|
5409
5409
|
await u.value.validate(s.value, { abortEarly: !1 }), y({});
|
|
5410
|
-
} catch (
|
|
5411
|
-
const Y =
|
|
5410
|
+
} catch (B) {
|
|
5411
|
+
const Y = B.inner.reduce((ue, fe) => (ue[fe.path] || (ue[fe.path] = { messages: [] }), ue[fe.path].messages.push(...fe.errors), ue), {}), de = Object.entries(Y).reduce((ue, [fe, we]) => (ue[fe] = { messages: we.messages }, ue), {});
|
|
5412
5412
|
y(de), a.add({ severity: "error", summary: "Error", detail: "Validation failed, see the errors", life: 3e3 });
|
|
5413
5413
|
return;
|
|
5414
5414
|
}
|
|
@@ -5418,27 +5418,27 @@ function aa(e, t, n, o) {
|
|
|
5418
5418
|
u.value = ra().shape(
|
|
5419
5419
|
l.value.reduce((L, N) => (N.autoGenerated || N.fieldType || (L[N.name] = oa().nullable(!1).test({
|
|
5420
5420
|
name: "custom-validation",
|
|
5421
|
-
test: function(
|
|
5421
|
+
test: function(B) {
|
|
5422
5422
|
const Y = [];
|
|
5423
5423
|
let de = "";
|
|
5424
|
-
if (N.required && (!
|
|
5424
|
+
if (N.required && (!B || B.trim() === ""))
|
|
5425
5425
|
if (N.validations) {
|
|
5426
|
-
de =
|
|
5426
|
+
de = R(N.validations, "VALIDATE_REQUIRED"), Y.push(de);
|
|
5427
5427
|
let ue = P(N.validations, "VALIDATE_REQUIRED");
|
|
5428
5428
|
ue && (ue = "hint:" + ue, Y.push(ue));
|
|
5429
5429
|
} else
|
|
5430
5430
|
de = N.displayName + " is required.", Y.push(de);
|
|
5431
5431
|
else {
|
|
5432
|
-
if (N.maxLength &&
|
|
5432
|
+
if (N.maxLength && B.length > N.maxLength)
|
|
5433
5433
|
if (N.validations) {
|
|
5434
|
-
de =
|
|
5434
|
+
de = R(N.validations, "VALIDATE_MAXLENGTH"), Y.push(de);
|
|
5435
5435
|
let ue = P(N.validations, "VALIDATE_MAXLENGTH");
|
|
5436
5436
|
ue && (ue = "hint:" + ue, Y.push(ue));
|
|
5437
5437
|
} else
|
|
5438
5438
|
de = N.displayName + " cannot exceed from " + N.maxLength + " characters", Y.push(de);
|
|
5439
|
-
if (N.regxId && !new RegExp(_(N.validations, "VALIDATE_REGX")).test(
|
|
5439
|
+
if (N.regxId && !new RegExp(_(N.validations, "VALIDATE_REGX")).test(B))
|
|
5440
5440
|
if (N.validations) {
|
|
5441
|
-
de =
|
|
5441
|
+
de = R(N.validations, "VALIDATE_REGX"), Y.push(de);
|
|
5442
5442
|
let ue = P(N.validations, "VALIDATE_REGX");
|
|
5443
5443
|
ue && (ue = "hint:" + ue, Y.push(ue));
|
|
5444
5444
|
} else
|
|
@@ -5451,18 +5451,18 @@ function aa(e, t, n, o) {
|
|
|
5451
5451
|
}
|
|
5452
5452
|
})), L), {})
|
|
5453
5453
|
);
|
|
5454
|
-
},
|
|
5455
|
-
for (let
|
|
5456
|
-
if (N == L[
|
|
5457
|
-
return L[
|
|
5454
|
+
}, R = (L, N) => {
|
|
5455
|
+
for (let B = 0; B < L.length; B++)
|
|
5456
|
+
if (N == L[B].type)
|
|
5457
|
+
return L[B].message;
|
|
5458
5458
|
}, _ = (L, N) => {
|
|
5459
|
-
for (let
|
|
5460
|
-
if (N == L[
|
|
5461
|
-
return L[
|
|
5459
|
+
for (let B = 0; B < L.length; B++)
|
|
5460
|
+
if (N == L[B].type)
|
|
5461
|
+
return L[B].regx;
|
|
5462
5462
|
}, P = (L, N) => {
|
|
5463
|
-
for (let
|
|
5464
|
-
if (N == L[
|
|
5465
|
-
return L[
|
|
5463
|
+
for (let B = 0; B < L.length; B++)
|
|
5464
|
+
if (N == L[B].type)
|
|
5465
|
+
return L[B].hint;
|
|
5466
5466
|
}, z = (L) => {
|
|
5467
5467
|
y({ ...h.value, [L]: null }), p.value = !0;
|
|
5468
5468
|
}, J = () => {
|
|
@@ -5832,7 +5832,7 @@ function ap(e, t) {
|
|
|
5832
5832
|
function nr(e) {
|
|
5833
5833
|
return !!(e && e.constructor && e.call && e.apply);
|
|
5834
5834
|
}
|
|
5835
|
-
function
|
|
5835
|
+
function Re(e) {
|
|
5836
5836
|
return !xn(e);
|
|
5837
5837
|
}
|
|
5838
5838
|
function Kt(e, t) {
|
|
@@ -5840,7 +5840,7 @@ function Kt(e, t) {
|
|
|
5840
5840
|
return null;
|
|
5841
5841
|
try {
|
|
5842
5842
|
const n = e[t];
|
|
5843
|
-
if (
|
|
5843
|
+
if (Re(n)) return n;
|
|
5844
5844
|
} catch {
|
|
5845
5845
|
}
|
|
5846
5846
|
if (Object.keys(e).length) {
|
|
@@ -5865,7 +5865,7 @@ function El(e, t, n) {
|
|
|
5865
5865
|
}
|
|
5866
5866
|
function ci(e, t) {
|
|
5867
5867
|
let n = -1;
|
|
5868
|
-
if (
|
|
5868
|
+
if (Re(e))
|
|
5869
5869
|
try {
|
|
5870
5870
|
n = e.findLastIndex(t);
|
|
5871
5871
|
} catch {
|
|
@@ -5893,10 +5893,10 @@ function or(e, t = !0) {
|
|
|
5893
5893
|
return Array.isArray(e) && (t || e.length !== 0);
|
|
5894
5894
|
}
|
|
5895
5895
|
function ip(e) {
|
|
5896
|
-
return
|
|
5896
|
+
return Re(e) && !isNaN(e);
|
|
5897
5897
|
}
|
|
5898
5898
|
function sp(e = "") {
|
|
5899
|
-
return
|
|
5899
|
+
return Re(e) && e.length === 1 && !!e.match(/\S| /);
|
|
5900
5900
|
}
|
|
5901
5901
|
function Yt(e, t) {
|
|
5902
5902
|
if (t) {
|
|
@@ -6178,7 +6178,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6178
6178
|
}
|
|
6179
6179
|
return Le(() => {
|
|
6180
6180
|
o();
|
|
6181
|
-
}),
|
|
6181
|
+
}), Rs(() => {
|
|
6182
6182
|
o();
|
|
6183
6183
|
}), (r, a) => e.column.displayFormatKey ? (b(), S("span", fp, [
|
|
6184
6184
|
w("span", {
|
|
@@ -6205,7 +6205,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6205
6205
|
setup(e) {
|
|
6206
6206
|
const t = je(), n = e;
|
|
6207
6207
|
console.log("columnsToShow", n.columnsToShow);
|
|
6208
|
-
const o = un(), r = $(n.entityName || o.params.entityName), a = $({}), i = $(""), s = $(!1), c = $(!1), { items: l, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: y, filterToSend: k, primarayKeyColumn: v, fullTextSearch: x, listingResponse: E, onFullTextSearch: D, getDatatypeByField: I, getColumnDatatype: O, onSort: j, onPage: W, onFilter: T, fetchEntityFilterData: V, fetchEntityByName: C, showEntityData:
|
|
6208
|
+
const o = un(), r = $(n.entityName || o.params.entityName), a = $({}), i = $(""), s = $(!1), c = $(!1), { items: l, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: y, filterToSend: k, primarayKeyColumn: v, fullTextSearch: x, listingResponse: E, onFullTextSearch: D, getDatatypeByField: I, getColumnDatatype: O, onSort: j, onPage: W, onFilter: T, fetchEntityFilterData: V, fetchEntityByName: C, showEntityData: R } = hd(r.value), _ = $();
|
|
6209
6209
|
let P = $(!1);
|
|
6210
6210
|
const z = (ue) => {
|
|
6211
6211
|
a.value = ue.reduce((fe, we) => {
|
|
@@ -6240,7 +6240,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6240
6240
|
ue ? i.value = ue[v.value.name] : i.value = "", s.value = !s.value;
|
|
6241
6241
|
}, N = () => {
|
|
6242
6242
|
s.value = !1, V(!1);
|
|
6243
|
-
},
|
|
6243
|
+
}, B = (ue) => {
|
|
6244
6244
|
i.value = ue[v.value.name], c.value = !0;
|
|
6245
6245
|
}, Y = () => {
|
|
6246
6246
|
c.value = !1, V(!1);
|
|
@@ -6259,18 +6259,18 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6259
6259
|
} : [];
|
|
6260
6260
|
}).flat();
|
|
6261
6261
|
return Le(() => {
|
|
6262
|
-
n.entityData ?
|
|
6262
|
+
n.entityData ? R(n.entityData) : C(r.value);
|
|
6263
6263
|
}), Oe(
|
|
6264
6264
|
() => t.globalConfigs.appId,
|
|
6265
6265
|
// The source to watch
|
|
6266
6266
|
async (ue) => {
|
|
6267
|
-
ue && (n.entityData ?
|
|
6267
|
+
ue && (n.entityData ? R(n.entityData) : C(r.value));
|
|
6268
6268
|
},
|
|
6269
6269
|
{ immediate: !0 }
|
|
6270
6270
|
), Oe(() => u.value, (ue) => {
|
|
6271
6271
|
!P.value && ue && ue.length && (z(ue), P.value = !0);
|
|
6272
6272
|
}, { immediate: !0 }), (ue, fe) => {
|
|
6273
|
-
const we = q("Button"), Ee = q("Toolbar"), gt = q("ProgressSpinner"), at = q("InputIcon"), Et = q("IconField"), yt = q("DatePicker"), ae = q("InputNumber"), X = q("Checkbox"),
|
|
6273
|
+
const we = q("Button"), Ee = q("Toolbar"), gt = q("ProgressSpinner"), at = q("InputIcon"), Et = q("IconField"), yt = q("DatePicker"), ae = q("InputNumber"), X = q("Checkbox"), Be = q("Column"), it = q("DataTable");
|
|
6274
6274
|
return b(), S(ie, null, [
|
|
6275
6275
|
w("div", Qt(bo(ue.$attrs)), [
|
|
6276
6276
|
me(ue.$slots, "header"),
|
|
@@ -6278,7 +6278,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6278
6278
|
key: 0,
|
|
6279
6279
|
class: "mt-4",
|
|
6280
6280
|
style: { "margin-bottom": "10px" }
|
|
6281
|
-
},
|
|
6281
|
+
}, Bn({ _: 2 }, [
|
|
6282
6282
|
e.showClearFilters ? {
|
|
6283
6283
|
name: "start",
|
|
6284
6284
|
fn: oe(() => [
|
|
@@ -6334,7 +6334,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6334
6334
|
size: "small",
|
|
6335
6335
|
paginatorTemplate: "FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",
|
|
6336
6336
|
currentPageReportTemplate: "Showing {first} to {last} of {totalRecords} items"
|
|
6337
|
-
},
|
|
6337
|
+
}, Bn({
|
|
6338
6338
|
empty: oe(() => [
|
|
6339
6339
|
fe[9] || (fe[9] = et(" No data found. "))
|
|
6340
6340
|
]),
|
|
@@ -6344,7 +6344,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6344
6344
|
default: oe(() => {
|
|
6345
6345
|
var Me;
|
|
6346
6346
|
return [
|
|
6347
|
-
(b(!0), S(ie, null, $e(ee(u).filter((Pe) => !n.columnsToShow || n.columnsToShow.length === 0 || n.columnsToShow.includes(Pe.field)), (Pe) => (b(), M(
|
|
6347
|
+
(b(!0), S(ie, null, $e(ee(u).filter((Pe) => !n.columnsToShow || n.columnsToShow.length === 0 || n.columnsToShow.includes(Pe.field)), (Pe) => (b(), M(Be, {
|
|
6348
6348
|
key: Pe.field,
|
|
6349
6349
|
dataType: ee(O)(Pe.datatype),
|
|
6350
6350
|
field: Pe.field,
|
|
@@ -6353,7 +6353,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6353
6353
|
showAddButton: !1,
|
|
6354
6354
|
showFilterOperator: !1,
|
|
6355
6355
|
style: { "text-wrap": "nowrap" }
|
|
6356
|
-
},
|
|
6356
|
+
}, Bn({
|
|
6357
6357
|
body: oe(({ data: _e }) => [
|
|
6358
6358
|
K(sa, {
|
|
6359
6359
|
column: Pe,
|
|
@@ -6409,7 +6409,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6409
6409
|
key: "3"
|
|
6410
6410
|
} : void 0
|
|
6411
6411
|
]), 1032, ["dataType", "field", "header", "sortable"]))), 128)),
|
|
6412
|
-
((Me = ee(l)) == null ? void 0 : Me.length) > 0 && (e.editable || e.deleteable) ? (b(), M(
|
|
6412
|
+
((Me = ee(l)) == null ? void 0 : Me.length) > 0 && (e.editable || e.deleteable) ? (b(), M(Be, {
|
|
6413
6413
|
key: 0,
|
|
6414
6414
|
header: "Actions"
|
|
6415
6415
|
}, {
|
|
@@ -6427,7 +6427,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6427
6427
|
}, null, 8, ["onClick"])) : U("", !0),
|
|
6428
6428
|
e.deleteable ? (b(), M(we, {
|
|
6429
6429
|
key: 1,
|
|
6430
|
-
onClick: (_e) =>
|
|
6430
|
+
onClick: (_e) => B(Pe),
|
|
6431
6431
|
icon: "pi pi-trash",
|
|
6432
6432
|
severity: "danger",
|
|
6433
6433
|
variant: "text",
|
|
@@ -6572,7 +6572,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6572
6572
|
}, $p = {
|
|
6573
6573
|
key: 1,
|
|
6574
6574
|
class: "pi pi-caret-down"
|
|
6575
|
-
}, Ep = { key: 0 }, Op = { class: "flex flex-col mt-5" }, Tp = { class: "col-12" }, Ip = { class: "flex flex-col mt-5" },
|
|
6575
|
+
}, Ep = { key: 0 }, Op = { class: "flex flex-col mt-5" }, Tp = { class: "col-12" }, Ip = { class: "flex flex-col mt-5" }, Rp = { class: "col-12 font-bold" }, Bp = { key: 0 }, Pp = { class: "flex flex-col mt-5" }, Fp = { class: "col-12" }, Ap = { class: "flex flex-col mt-5" }, _p = { class: "col-12" }, Np = { class: "flex flex-col mt-5" }, Dp = { class: "col-12" }, Lp = { class: "flex flex-row justify-between items-center mt-5" }, Vp = {
|
|
6576
6576
|
key: 1,
|
|
6577
6577
|
class: "mt-2"
|
|
6578
6578
|
}, zp = { class: "flex flex-row justify-between items-center" }, Mp = {
|
|
@@ -6679,13 +6679,13 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6679
6679
|
}
|
|
6680
6680
|
}, W = () => {
|
|
6681
6681
|
let ae = JSON.parse(JSON.stringify(a.value));
|
|
6682
|
-
ae = ae.filter((
|
|
6682
|
+
ae = ae.filter((Be) => !E(Be));
|
|
6683
6683
|
let X = {
|
|
6684
6684
|
linkEntityName: r.value.entityName,
|
|
6685
6685
|
linkRecordIdList: []
|
|
6686
6686
|
};
|
|
6687
|
-
for (let
|
|
6688
|
-
const it = ae[
|
|
6687
|
+
for (let Be = 0; Be < ae.length; Be++) {
|
|
6688
|
+
const it = ae[Be];
|
|
6689
6689
|
X.linkRecordIdList.push(
|
|
6690
6690
|
it
|
|
6691
6691
|
);
|
|
@@ -6707,7 +6707,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6707
6707
|
{ label: "Less than or equal to", value: "lte" },
|
|
6708
6708
|
{ label: "Greater than", value: "gt" },
|
|
6709
6709
|
{ label: "Greater than or equal to", value: "gte" }
|
|
6710
|
-
],
|
|
6710
|
+
], R = [
|
|
6711
6711
|
{ label: "Equals", value: "equals" },
|
|
6712
6712
|
{ label: "Not equals", value: "notEquals" }
|
|
6713
6713
|
], _ = [
|
|
@@ -6721,8 +6721,8 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6721
6721
|
];
|
|
6722
6722
|
let z = [];
|
|
6723
6723
|
const J = ne(() => c.value.filter((ae) => ae.sortable)), ye = ne(() => c.value.filter((ae) => ae.filterable)), L = (ae) => c.value.filter((X) => {
|
|
6724
|
-
var
|
|
6725
|
-
return X.filterable ? ((
|
|
6724
|
+
var Be;
|
|
6725
|
+
return X.filterable ? ((Be = d.value[ae]) == null ? void 0 : Be.columnName) === X.name ? !0 : !d.value.some((it, Me) => Me !== ae && it.columnName === X.name) : !1;
|
|
6726
6726
|
}).map((X) => ({
|
|
6727
6727
|
label: X.name,
|
|
6728
6728
|
value: X.field
|
|
@@ -6747,7 +6747,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6747
6747
|
break;
|
|
6748
6748
|
}
|
|
6749
6749
|
ae.operator = X, ae.value = "";
|
|
6750
|
-
},
|
|
6750
|
+
}, B = (ae) => {
|
|
6751
6751
|
const X = at(ae.columnName);
|
|
6752
6752
|
switch (X && X.toLowerCase()) {
|
|
6753
6753
|
case "integer":
|
|
@@ -6760,7 +6760,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6760
6760
|
break;
|
|
6761
6761
|
case "bool":
|
|
6762
6762
|
case "boolean":
|
|
6763
|
-
z =
|
|
6763
|
+
z = R;
|
|
6764
6764
|
break;
|
|
6765
6765
|
default:
|
|
6766
6766
|
z = V;
|
|
@@ -6787,8 +6787,8 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6787
6787
|
let ae = JSON.parse(JSON.stringify(d.value));
|
|
6788
6788
|
y.value = [];
|
|
6789
6789
|
for (let X = 0; X < ae.length; X++) {
|
|
6790
|
-
const
|
|
6791
|
-
delete
|
|
6790
|
+
const Be = ae[X];
|
|
6791
|
+
delete Be.editing, Be.columnName && Be.operator && Be.value && (Be.columnType = at(Be.columnName), Be.operator = v[Be.operator], y.value.push(Be));
|
|
6792
6792
|
}
|
|
6793
6793
|
D();
|
|
6794
6794
|
}, Ee = (ae) => ae.map((X) => ({
|
|
@@ -6802,7 +6802,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6802
6802
|
})), gt = () => {
|
|
6803
6803
|
D();
|
|
6804
6804
|
}, at = (ae) => {
|
|
6805
|
-
const X = c.value.find((
|
|
6805
|
+
const X = c.value.find((Be) => Be.field === ae);
|
|
6806
6806
|
return X ? X.datatype : null;
|
|
6807
6807
|
}, Et = (ae) => {
|
|
6808
6808
|
switch (ae.toLowerCase()) {
|
|
@@ -6823,13 +6823,13 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6823
6823
|
};
|
|
6824
6824
|
return (ae, X) => {
|
|
6825
6825
|
var Jt, cn;
|
|
6826
|
-
const
|
|
6826
|
+
const Be = q("InputIcon"), it = q("InputText"), Me = q("IconField"), Pe = q("Select"), _e = q("Divider"), Ke = q("InputNumber"), Ft = q("DatePicker"), Je = q("Button"), ut = q("Checkbox"), vt = q("Paginator"), Xt = qr("tooltip");
|
|
6827
6827
|
return b(), S(ie, null, [
|
|
6828
6828
|
w("div", kp, [
|
|
6829
6829
|
w("div", xp, [
|
|
6830
6830
|
K(Me, { class: "block mt-2 md:mt-0 w-full" }, {
|
|
6831
6831
|
default: oe(() => [
|
|
6832
|
-
K(
|
|
6832
|
+
K(Be, {
|
|
6833
6833
|
onClick: X[0] || (X[0] = () => {
|
|
6834
6834
|
}),
|
|
6835
6835
|
class: "pi pi-search"
|
|
@@ -6874,7 +6874,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6874
6874
|
X[11] || (X[11] = w("div", { class: "col-12 font-bold" }, [
|
|
6875
6875
|
w("div", { class: "col-12 font-bold" }, "Sort Direction")
|
|
6876
6876
|
], -1)),
|
|
6877
|
-
w("div",
|
|
6877
|
+
w("div", Rp, [
|
|
6878
6878
|
K(Pe, {
|
|
6879
6879
|
modelValue: f.value,
|
|
6880
6880
|
"onUpdate:modelValue": X[5] || (X[5] = (ge) => f.value = ge),
|
|
@@ -6888,7 +6888,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6888
6888
|
])
|
|
6889
6889
|
]),
|
|
6890
6890
|
(b(!0), S(ie, null, $e(d.value, (ge, Ot) => (b(), S("div", { key: Ot }, [
|
|
6891
|
-
ge.editing ? (b(), S("div",
|
|
6891
|
+
ge.editing ? (b(), S("div", Bp, [
|
|
6892
6892
|
K(_e, { class: "mt-5" }),
|
|
6893
6893
|
w("div", Pp, [
|
|
6894
6894
|
X[12] || (X[12] = w("div", { class: "col-12 font-bold" }, "Filter Column", -1)),
|
|
@@ -6912,7 +6912,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
6912
6912
|
K(Pe, {
|
|
6913
6913
|
modelValue: ge.operator,
|
|
6914
6914
|
"onUpdate:modelValue": (Ge) => ge.operator = Ge,
|
|
6915
|
-
options:
|
|
6915
|
+
options: B(ge),
|
|
6916
6916
|
optionLabel: "label",
|
|
6917
6917
|
placeholder: "Select operator",
|
|
6918
6918
|
optionValue: "value",
|
|
@@ -7312,10 +7312,10 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7312
7312
|
default: oe(() => [
|
|
7313
7313
|
K(j, { value: "0" }, {
|
|
7314
7314
|
default: oe(() => [
|
|
7315
|
-
(b(!0), S(ie, null, $e(ee(l), (C,
|
|
7315
|
+
(b(!0), S(ie, null, $e(ee(l), (C, R) => {
|
|
7316
7316
|
var _;
|
|
7317
7317
|
return b(), S("div", {
|
|
7318
|
-
key:
|
|
7318
|
+
key: R,
|
|
7319
7319
|
class: "mt-3"
|
|
7320
7320
|
}, [
|
|
7321
7321
|
!C.autoGenerated && !C.foreignKey ? (b(), M(Zo, {
|
|
@@ -7468,7 +7468,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7468
7468
|
], 64);
|
|
7469
7469
|
};
|
|
7470
7470
|
}
|
|
7471
|
-
}, Om = /* @__PURE__ */ Xe(Em, [["__scopeId", "data-v-412eec44"]]), Tm = { key: 0 }, Im = { class: "flex" },
|
|
7471
|
+
}, Om = /* @__PURE__ */ Xe(Em, [["__scopeId", "data-v-412eec44"]]), Tm = { key: 0 }, Im = { class: "flex" }, Rm = { class: "p-3 mt-3 flex-col items-center" }, Bm = {
|
|
7472
7472
|
key: 0,
|
|
7473
7473
|
class: "pi pi-caret-right"
|
|
7474
7474
|
}, Pm = {
|
|
@@ -7527,8 +7527,8 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7527
7527
|
}, W = (C) => {
|
|
7528
7528
|
if (!c.value || c.value.length === 0)
|
|
7529
7529
|
return [];
|
|
7530
|
-
const
|
|
7531
|
-
return
|
|
7530
|
+
const R = c.value.find((_) => _.entityName === C);
|
|
7531
|
+
return R && R.list ? R.list : (console.log("No related entity found"), []);
|
|
7532
7532
|
};
|
|
7533
7533
|
return t({
|
|
7534
7534
|
getRelatedEntity: W
|
|
@@ -7538,9 +7538,9 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7538
7538
|
Array.isArray(C) && C.length > 0 ? c.value = C : c.value = [];
|
|
7539
7539
|
},
|
|
7540
7540
|
{ immediate: !0, deep: !0 }
|
|
7541
|
-
), (C,
|
|
7541
|
+
), (C, R) => {
|
|
7542
7542
|
var Y;
|
|
7543
|
-
const _ = q("SplitterPanel"), P = q("Tab"), z = q("TabList"), J = q("TabPanel"), ye = q("TabPanels"), L = q("Tabs"), N = q("Splitter"),
|
|
7543
|
+
const _ = q("SplitterPanel"), P = q("Tab"), z = q("TabList"), J = q("TabPanel"), ye = q("TabPanels"), L = q("Tabs"), N = q("Splitter"), B = q("Button");
|
|
7544
7544
|
return C.$slots["list-item-display-360"] ? (b(), S("div", Tm, [
|
|
7545
7545
|
me(C.$slots, "header", {}, void 0, !0),
|
|
7546
7546
|
w("div", null, [
|
|
@@ -7572,12 +7572,12 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7572
7572
|
maxSize: 20
|
|
7573
7573
|
}, {
|
|
7574
7574
|
default: oe(() => [
|
|
7575
|
-
w("div",
|
|
7575
|
+
w("div", Rm, [
|
|
7576
7576
|
w("div", {
|
|
7577
|
-
onClick:
|
|
7577
|
+
onClick: R[0] || (R[0] = (de) => I()),
|
|
7578
7578
|
class: "section-heading cursor-pointer"
|
|
7579
7579
|
}, [
|
|
7580
|
-
i.value ? U("", !0) : (b(), S("i",
|
|
7580
|
+
i.value ? U("", !0) : (b(), S("i", Bm)),
|
|
7581
7581
|
i.value ? (b(), S("i", Pm)) : U("", !0),
|
|
7582
7582
|
w("span", Fm, " About this " + Z(ee(l)), 1)
|
|
7583
7583
|
]),
|
|
@@ -7611,13 +7611,13 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7611
7611
|
K(z, null, {
|
|
7612
7612
|
default: oe(() => [
|
|
7613
7613
|
K(P, { value: "0" }, {
|
|
7614
|
-
default: oe(() =>
|
|
7614
|
+
default: oe(() => R[3] || (R[3] = [
|
|
7615
7615
|
et("Overview")
|
|
7616
7616
|
])),
|
|
7617
7617
|
_: 1
|
|
7618
7618
|
}),
|
|
7619
7619
|
K(P, { value: "1" }, {
|
|
7620
|
-
default: oe(() =>
|
|
7620
|
+
default: oe(() => R[4] || (R[4] = [
|
|
7621
7621
|
et("Activity")
|
|
7622
7622
|
])),
|
|
7623
7623
|
_: 1
|
|
@@ -7630,7 +7630,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7630
7630
|
K(J, { value: "0" }, {
|
|
7631
7631
|
default: oe(() => [
|
|
7632
7632
|
w("div", _m, [
|
|
7633
|
-
|
|
7633
|
+
R[5] || (R[5] = w("h3", { class: "mt-2 text-xl font-semibold" }, "Data highlights", -1)),
|
|
7634
7634
|
w("div", Nm, [
|
|
7635
7635
|
(b(!0), S(ie, null, $e(ee(p).filter((de) => de.autoGenerated), (de, ue) => (b(), S("div", {
|
|
7636
7636
|
key: ue,
|
|
@@ -7665,7 +7665,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7665
7665
|
_: 1
|
|
7666
7666
|
}),
|
|
7667
7667
|
((Y = ee(y)) == null ? void 0 : Y.length) > 0 ? (b(), S("div", zm, [
|
|
7668
|
-
s.value ? (b(), M(
|
|
7668
|
+
s.value ? (b(), M(B, {
|
|
7669
7669
|
key: 0,
|
|
7670
7670
|
icon: "pi pi-caret-right",
|
|
7671
7671
|
rounded: "",
|
|
@@ -7673,7 +7673,7 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7673
7673
|
"aria-label": "Filter",
|
|
7674
7674
|
style: { height: "2rem", width: "2rem", left: "-20px" }
|
|
7675
7675
|
})) : U("", !0),
|
|
7676
|
-
s.value ? U("", !0) : (b(), M(
|
|
7676
|
+
s.value ? U("", !0) : (b(), M(B, {
|
|
7677
7677
|
key: 1,
|
|
7678
7678
|
icon: "pi pi-caret-left",
|
|
7679
7679
|
rounded: "",
|
|
@@ -7696,21 +7696,21 @@ const fp = { key: 0 }, pp = { key: 1 }, sa = {
|
|
|
7696
7696
|
ee(h) ? (b(), S("div", jm, [
|
|
7697
7697
|
w("div", Um, [
|
|
7698
7698
|
w("div", Hm, [
|
|
7699
|
-
K(
|
|
7699
|
+
K(B, {
|
|
7700
7700
|
severity: "primary",
|
|
7701
|
-
onClick:
|
|
7701
|
+
onClick: R[1] || (R[1] = (de) => ee(x)())
|
|
7702
7702
|
}, {
|
|
7703
|
-
default: oe(() =>
|
|
7703
|
+
default: oe(() => R[6] || (R[6] = [
|
|
7704
7704
|
et("Save")
|
|
7705
7705
|
])),
|
|
7706
7706
|
_: 1
|
|
7707
7707
|
}),
|
|
7708
|
-
K(
|
|
7708
|
+
K(B, {
|
|
7709
7709
|
style: { "margin-left": "10px" },
|
|
7710
7710
|
severity: "secondary",
|
|
7711
|
-
onClick:
|
|
7711
|
+
onClick: R[2] || (R[2] = (de) => ee(D)())
|
|
7712
7712
|
}, {
|
|
7713
|
-
default: oe(() =>
|
|
7713
|
+
default: oe(() => R[7] || (R[7] = [
|
|
7714
7714
|
et("Cancel")
|
|
7715
7715
|
])),
|
|
7716
7716
|
_: 1
|
|
@@ -7752,11 +7752,11 @@ function rr() {
|
|
|
7752
7752
|
}
|
|
7753
7753
|
}, c = async (T, V, C) => {
|
|
7754
7754
|
try {
|
|
7755
|
-
const
|
|
7756
|
-
if (
|
|
7757
|
-
return
|
|
7758
|
-
} catch (
|
|
7759
|
-
return
|
|
7755
|
+
const R = await t.updateRecord(T.entityName, V, C);
|
|
7756
|
+
if (R && R.response)
|
|
7757
|
+
return R;
|
|
7758
|
+
} catch (R) {
|
|
7759
|
+
return R;
|
|
7760
7760
|
} finally {
|
|
7761
7761
|
}
|
|
7762
7762
|
}, l = async (T, V) => {
|
|
@@ -7784,8 +7784,8 @@ function rr() {
|
|
|
7784
7784
|
}, p = (T) => T.filter((V) => !(V.fieldType && V.fieldType === "ENTITY")), m = (T) => {
|
|
7785
7785
|
const V = T.entity.entityDefinition.columns;
|
|
7786
7786
|
let C = {};
|
|
7787
|
-
for (let
|
|
7788
|
-
const _ = V[
|
|
7787
|
+
for (let R = 0; R < V.length; R++) {
|
|
7788
|
+
const _ = V[R];
|
|
7789
7789
|
if (_.primaryKey && _.primaryKey == !0) {
|
|
7790
7790
|
C = _;
|
|
7791
7791
|
break;
|
|
@@ -7795,16 +7795,16 @@ function rr() {
|
|
|
7795
7795
|
}, g = (T) => {
|
|
7796
7796
|
const V = T.entity.entityDefinition.columns;
|
|
7797
7797
|
let C = {};
|
|
7798
|
-
for (let
|
|
7799
|
-
let _ = V[
|
|
7798
|
+
for (let R = 0; R < V.length; R++) {
|
|
7799
|
+
let _ = V[R];
|
|
7800
7800
|
!_.autoGenerated && !_.fieldType && (_.type == "BOOLEAN" ? _.defaultValue ? C[_.name] = _.defaultValue : C[_.name] = !1 : C[_.name] = "");
|
|
7801
7801
|
}
|
|
7802
7802
|
return C;
|
|
7803
7803
|
}, h = (T, V) => {
|
|
7804
7804
|
let C = "";
|
|
7805
|
-
const
|
|
7806
|
-
for (let _ = 0; _ <
|
|
7807
|
-
let P =
|
|
7805
|
+
const R = T.entity.entityDefinition.columns;
|
|
7806
|
+
for (let _ = 0; _ < R.length; _++) {
|
|
7807
|
+
let P = R[_];
|
|
7808
7808
|
if (V == P.name) {
|
|
7809
7809
|
C = P.type;
|
|
7810
7810
|
break;
|
|
@@ -7812,8 +7812,8 @@ function rr() {
|
|
|
7812
7812
|
}
|
|
7813
7813
|
return C;
|
|
7814
7814
|
}, y = (T, V) => {
|
|
7815
|
-
const
|
|
7816
|
-
return Object.entries(V).filter(([P]) => !
|
|
7815
|
+
const R = T.entity.entityDefinition.columns.filter((P) => P.autoGenerated).map((P) => P.name);
|
|
7816
|
+
return Object.entries(V).filter(([P]) => !R.includes(P)).map(([P, z]) => ({
|
|
7817
7817
|
recordColumnName: P,
|
|
7818
7818
|
recordColumnValue: z,
|
|
7819
7819
|
columnType: h(r.data, P)
|
|
@@ -7821,33 +7821,33 @@ function rr() {
|
|
|
7821
7821
|
}, k = () => {
|
|
7822
7822
|
const T = r.data.entity.entityDefinition.columns;
|
|
7823
7823
|
return ra().shape(
|
|
7824
|
-
T.reduce((C,
|
|
7824
|
+
T.reduce((C, R) => (R.autoGenerated || (C[R.name] = oa().nullable(!1).test({
|
|
7825
7825
|
name: "custom-validation",
|
|
7826
7826
|
test: function(_) {
|
|
7827
7827
|
const P = [];
|
|
7828
7828
|
let z = "";
|
|
7829
|
-
if (
|
|
7830
|
-
if (
|
|
7831
|
-
z = v(
|
|
7832
|
-
let J = E(
|
|
7829
|
+
if (R.required && (!_ || _.trim() === ""))
|
|
7830
|
+
if (R.validations) {
|
|
7831
|
+
z = v(R.validations, "VALIDATE_REQUIRED"), P.push(z);
|
|
7832
|
+
let J = E(R.validations, "VALIDATE_REQUIRED");
|
|
7833
7833
|
J && (J = "hint:" + J, P.push(J));
|
|
7834
7834
|
} else
|
|
7835
|
-
z =
|
|
7835
|
+
z = R.displayName + " is required.", P.push(z);
|
|
7836
7836
|
else {
|
|
7837
|
-
if (
|
|
7838
|
-
if (
|
|
7839
|
-
z = v(
|
|
7840
|
-
let J = E(
|
|
7837
|
+
if (R.maxLength && _.length > R.maxLength)
|
|
7838
|
+
if (R.validations) {
|
|
7839
|
+
z = v(R.validations, "VALIDATE_MAXLENGTH"), P.push(z);
|
|
7840
|
+
let J = E(R.validations, "VALIDATE_MAXLENGTH");
|
|
7841
7841
|
J && (J = "hint:" + J, P.push(J));
|
|
7842
7842
|
} else
|
|
7843
|
-
z =
|
|
7844
|
-
if (
|
|
7845
|
-
if (
|
|
7846
|
-
z = v(
|
|
7847
|
-
let J = E(
|
|
7843
|
+
z = R.displayName + " cannot exceed from " + R.maxLength + " characters", P.push(z);
|
|
7844
|
+
if (R.regxId && !new RegExp(x(R.validations, "VALIDATE_REGX")).test(_))
|
|
7845
|
+
if (R.validations) {
|
|
7846
|
+
z = v(R.validations, "VALIDATE_REGX"), P.push(z);
|
|
7847
|
+
let J = E(R.validations, "VALIDATE_REGX");
|
|
7848
7848
|
J && (J = "hint:" + J, P.push(J));
|
|
7849
7849
|
} else
|
|
7850
|
-
z =
|
|
7850
|
+
z = R.displayName + " invalid format.", P.push(z);
|
|
7851
7851
|
}
|
|
7852
7852
|
return P.length > 0 ? this.createError({
|
|
7853
7853
|
message: P
|
|
@@ -7874,7 +7874,7 @@ function rr() {
|
|
|
7874
7874
|
validate: !0
|
|
7875
7875
|
};
|
|
7876
7876
|
} catch (C) {
|
|
7877
|
-
const
|
|
7877
|
+
const R = C.inner.reduce((z, J) => (z[J.path] || (z[J.path] = { messages: [] }), z[J.path].messages.push(...J.errors), z), {}), _ = Object.entries(R).reduce((z, [J, ye]) => (z[J] = { messages: ye.messages }, z), {});
|
|
7878
7878
|
return o(_), {
|
|
7879
7879
|
validate: !1,
|
|
7880
7880
|
errors: n.value
|
|
@@ -7891,18 +7891,18 @@ function rr() {
|
|
|
7891
7891
|
filter: hi.value,
|
|
7892
7892
|
fullTextSearch: "",
|
|
7893
7893
|
presetName: T
|
|
7894
|
-
},
|
|
7895
|
-
if (
|
|
7896
|
-
return
|
|
7894
|
+
}, R = await t.searchEntityRecords(V, C);
|
|
7895
|
+
if (R.success)
|
|
7896
|
+
return R.response;
|
|
7897
7897
|
}, j = (T) => {
|
|
7898
7898
|
const V = ["==", "!=", "<=", ">=", "<", ">"];
|
|
7899
|
-
return T.split("&&").map((
|
|
7899
|
+
return T.split("&&").map((R) => {
|
|
7900
7900
|
let _, P, z;
|
|
7901
|
-
const J = V.find((L) =>
|
|
7901
|
+
const J = V.find((L) => R.includes(L));
|
|
7902
7902
|
if (J)
|
|
7903
|
-
[_, z] =
|
|
7903
|
+
[_, z] = R.split(J).map((L) => L.trim()), P = J;
|
|
7904
7904
|
else
|
|
7905
|
-
return console.warn("No valid operator found in filter:",
|
|
7905
|
+
return console.warn("No valid operator found in filter:", R), null;
|
|
7906
7906
|
const ye = (e == null ? void 0 : e(z)) ?? z;
|
|
7907
7907
|
return console.log("Parsed filter:", { field: _, operator: P, value: ye }), {
|
|
7908
7908
|
columnName: _,
|
|
@@ -8249,7 +8249,7 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
|
|
|
8249
8249
|
}, mg = { class: "flex flex-col mb-5" }, gg = { class: "col-12" }, hg = { class: "flex flex-col mb-5" }, bg = { class: "col-12" }, yg = { key: 0 }, vg = { class: "flex flex-col mb-5" }, wg = { class: "col-12" }, kg = { class: "flex flex-col mb-5" }, xg = { class: "col-12" }, Sg = { class: "flex flex-col mb-5" }, Cg = { class: "col-12" }, $g = { class: "flex flex-row justify-between items-center" }, Eg = { key: 1 }, Og = { class: "flex flex-row justify-between items-center" }, Tg = {
|
|
8250
8250
|
key: 1,
|
|
8251
8251
|
class: "text-red-500"
|
|
8252
|
-
}, Ig = { class: "flex flex-col" },
|
|
8252
|
+
}, Ig = { class: "flex flex-col" }, Rg = { class: "flex flex-row justify-between items-center" }, Bg = {
|
|
8253
8253
|
__name: "FilterSortSidebar",
|
|
8254
8254
|
props: /* @__PURE__ */ Se({
|
|
8255
8255
|
headers: Array,
|
|
@@ -8392,7 +8392,7 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
|
|
|
8392
8392
|
e.sortCallback();
|
|
8393
8393
|
};
|
|
8394
8394
|
return (I, O) => {
|
|
8395
|
-
const j = q("Select"), W = q("Divider"), T = q("InputNumber"), V = q("DatePicker"), C = q("InputText"),
|
|
8395
|
+
const j = q("Select"), W = q("Divider"), T = q("InputNumber"), V = q("DatePicker"), C = q("InputText"), R = q("Button"), _ = q("Drawer");
|
|
8396
8396
|
return b(), M(_, {
|
|
8397
8397
|
visible: o.value,
|
|
8398
8398
|
"onUpdate:visible": O[4] || (O[4] = (P) => o.value = P),
|
|
@@ -8498,13 +8498,13 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
|
|
|
8498
8498
|
])
|
|
8499
8499
|
]),
|
|
8500
8500
|
w("div", $g, [
|
|
8501
|
-
K(
|
|
8501
|
+
K(R, {
|
|
8502
8502
|
label: "Hide",
|
|
8503
8503
|
icon: "",
|
|
8504
8504
|
severity: "warn",
|
|
8505
8505
|
onClick: (J) => x(P)
|
|
8506
8506
|
}, null, 8, ["onClick"]),
|
|
8507
|
-
K(
|
|
8507
|
+
K(R, {
|
|
8508
8508
|
label: "Delete",
|
|
8509
8509
|
icon: "",
|
|
8510
8510
|
severity: "danger",
|
|
@@ -8528,7 +8528,7 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
|
|
|
8528
8528
|
}, Z(P.value ? " " + P.value : " value"), 3)
|
|
8529
8529
|
], 64)) : (b(), S("span", Tg, "Filter is empty"))
|
|
8530
8530
|
]),
|
|
8531
|
-
K(
|
|
8531
|
+
K(R, {
|
|
8532
8532
|
label: "Edit",
|
|
8533
8533
|
icon: "",
|
|
8534
8534
|
severity: "info",
|
|
@@ -8539,15 +8539,15 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
|
|
|
8539
8539
|
]))), 128)),
|
|
8540
8540
|
w("div", Ig, [
|
|
8541
8541
|
K(W),
|
|
8542
|
-
w("div",
|
|
8543
|
-
K(
|
|
8542
|
+
w("div", Rg, [
|
|
8543
|
+
K(R, {
|
|
8544
8544
|
label: "Add",
|
|
8545
8545
|
disabled: p.value.length === r.value.length,
|
|
8546
8546
|
icon: "",
|
|
8547
8547
|
severity: "success",
|
|
8548
8548
|
onClick: k
|
|
8549
8549
|
}, null, 8, ["disabled"]),
|
|
8550
|
-
K(
|
|
8550
|
+
K(R, {
|
|
8551
8551
|
label: "Apply",
|
|
8552
8552
|
severity: "info",
|
|
8553
8553
|
onClick: E
|
|
@@ -8665,7 +8665,7 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
|
|
|
8665
8665
|
size: "medium",
|
|
8666
8666
|
icon: "pi pi-filter",
|
|
8667
8667
|
severity: "info",
|
|
8668
|
-
onClick: O[0] || (O[0] = (
|
|
8668
|
+
onClick: O[0] || (O[0] = (R) => m())
|
|
8669
8669
|
})
|
|
8670
8670
|
]),
|
|
8671
8671
|
K(j, {
|
|
@@ -8674,7 +8674,7 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
|
|
|
8674
8674
|
type: "button",
|
|
8675
8675
|
icon: "pi pi-filter-slash",
|
|
8676
8676
|
severity: "warn",
|
|
8677
|
-
onClick: O[1] || (O[1] = (
|
|
8677
|
+
onClick: O[1] || (O[1] = (R) => k())
|
|
8678
8678
|
})
|
|
8679
8679
|
]),
|
|
8680
8680
|
end: oe(() => [
|
|
@@ -8684,14 +8684,14 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
|
|
|
8684
8684
|
}, {
|
|
8685
8685
|
default: oe(() => [
|
|
8686
8686
|
K(W, {
|
|
8687
|
-
onClick: O[2] || (O[2] = (
|
|
8687
|
+
onClick: O[2] || (O[2] = (R) => v()),
|
|
8688
8688
|
class: "pi pi-search"
|
|
8689
8689
|
}),
|
|
8690
8690
|
K(T, {
|
|
8691
8691
|
class: "w-full sm:w-auto",
|
|
8692
|
-
onKeyup: O[3] || (O[3] = Wo((
|
|
8692
|
+
onKeyup: O[3] || (O[3] = Wo((R) => v(), ["enter"])),
|
|
8693
8693
|
modelValue: s.value,
|
|
8694
|
-
"onUpdate:modelValue": O[4] || (O[4] = (
|
|
8694
|
+
"onUpdate:modelValue": O[4] || (O[4] = (R) => s.value = R),
|
|
8695
8695
|
placeholder: "Search..."
|
|
8696
8696
|
}, null, 8, ["modelValue"])
|
|
8697
8697
|
]),
|
|
@@ -8700,15 +8700,15 @@ const cg = /* @__PURE__ */ Xe(lg, [["render", ug]]), dg = { class: "my-2" }, fg
|
|
|
8700
8700
|
]),
|
|
8701
8701
|
_: 1
|
|
8702
8702
|
}),
|
|
8703
|
-
K(
|
|
8703
|
+
K(Bg, {
|
|
8704
8704
|
sortBy: a.value,
|
|
8705
|
-
"onUpdate:sortBy": O[5] || (O[5] = (
|
|
8705
|
+
"onUpdate:sortBy": O[5] || (O[5] = (R) => a.value = R),
|
|
8706
8706
|
sortDirection: i.value,
|
|
8707
|
-
"onUpdate:sortDirection": O[6] || (O[6] = (
|
|
8707
|
+
"onUpdate:sortDirection": O[6] || (O[6] = (R) => i.value = R),
|
|
8708
8708
|
showFilter: n.value,
|
|
8709
|
-
"onUpdate:showFilter": O[7] || (O[7] = (
|
|
8709
|
+
"onUpdate:showFilter": O[7] || (O[7] = (R) => n.value = R),
|
|
8710
8710
|
filters: o.value,
|
|
8711
|
-
"onUpdate:filters": O[8] || (O[8] = (
|
|
8711
|
+
"onUpdate:filters": O[8] || (O[8] = (R) => o.value = R),
|
|
8712
8712
|
headers: l.value,
|
|
8713
8713
|
operatorMap: d,
|
|
8714
8714
|
sortCallback: y,
|
|
@@ -9087,7 +9087,7 @@ const Tl = ["viewport", "carousel"], no = {
|
|
|
9087
9087
|
itemXofY: "Item {currentSlide} of {slidesCount}"
|
|
9088
9088
|
};
|
|
9089
9089
|
Object.values(no);
|
|
9090
|
-
const
|
|
9090
|
+
const Rl = ["slide", "fade"], Bl = [
|
|
9091
9091
|
"center",
|
|
9092
9092
|
"start",
|
|
9093
9093
|
"end",
|
|
@@ -9109,8 +9109,8 @@ const Bl = ["slide", "fade"], Rl = [
|
|
|
9109
9109
|
mouseDrag: !0,
|
|
9110
9110
|
pauseAutoplayOnHover: !1,
|
|
9111
9111
|
preventExcessiveDragging: !1,
|
|
9112
|
-
slideEffect:
|
|
9113
|
-
snapAlign:
|
|
9112
|
+
slideEffect: Rl[0],
|
|
9113
|
+
snapAlign: Bl[0],
|
|
9114
9114
|
touchDrag: !0,
|
|
9115
9115
|
transition: 300,
|
|
9116
9116
|
wrapAround: !1
|
|
@@ -9349,14 +9349,14 @@ const Zg = _n({
|
|
|
9349
9349
|
snapAlign: {
|
|
9350
9350
|
default: Ye.snapAlign,
|
|
9351
9351
|
validator(e) {
|
|
9352
|
-
return
|
|
9352
|
+
return Bl.includes(e);
|
|
9353
9353
|
}
|
|
9354
9354
|
},
|
|
9355
9355
|
slideEffect: {
|
|
9356
9356
|
type: String,
|
|
9357
9357
|
default: Ye.slideEffect,
|
|
9358
9358
|
validator(e) {
|
|
9359
|
-
return
|
|
9359
|
+
return Rl.includes(e);
|
|
9360
9360
|
}
|
|
9361
9361
|
},
|
|
9362
9362
|
// sliding transition time in ms
|
|
@@ -9414,7 +9414,7 @@ _n({
|
|
|
9414
9414
|
}
|
|
9415
9415
|
const C = kr(() => {
|
|
9416
9416
|
V(), L(), ye();
|
|
9417
|
-
}),
|
|
9417
|
+
}), R = Er(/* @__PURE__ */ new Set()), _ = $([]);
|
|
9418
9418
|
function P({ widthMultiplier: G, heightMultiplier: re }) {
|
|
9419
9419
|
_.value = i.map((ce) => {
|
|
9420
9420
|
var le;
|
|
@@ -9440,7 +9440,7 @@ _n({
|
|
|
9440
9440
|
function ye() {
|
|
9441
9441
|
if (!l.value)
|
|
9442
9442
|
return;
|
|
9443
|
-
const G = Qg(
|
|
9443
|
+
const G = Qg(R);
|
|
9444
9444
|
if (J(G), P(G), W.value)
|
|
9445
9445
|
u.value = Wg(_.value.map((re) => re[T.value]));
|
|
9446
9446
|
else {
|
|
@@ -9463,12 +9463,12 @@ _n({
|
|
|
9463
9463
|
Io(() => L()), Io(() => {
|
|
9464
9464
|
ye();
|
|
9465
9465
|
});
|
|
9466
|
-
let
|
|
9466
|
+
let B;
|
|
9467
9467
|
const Y = (G) => {
|
|
9468
9468
|
const re = G.target;
|
|
9469
|
-
if (!(!(re != null && re.contains(c.value)) || Array.isArray(N.value) && N.value.includes(G.animationName)) && (
|
|
9469
|
+
if (!(!(re != null && re.contains(c.value)) || Array.isArray(N.value) && N.value.includes(G.animationName)) && (R.add(re), !B)) {
|
|
9470
9470
|
const ce = () => {
|
|
9471
|
-
|
|
9471
|
+
B = requestAnimationFrame(() => {
|
|
9472
9472
|
ye(), ce();
|
|
9473
9473
|
});
|
|
9474
9474
|
};
|
|
@@ -9476,14 +9476,14 @@ _n({
|
|
|
9476
9476
|
}
|
|
9477
9477
|
}, de = (G) => {
|
|
9478
9478
|
const re = G.target;
|
|
9479
|
-
re &&
|
|
9479
|
+
re && R.delete(re), B && R.size === 0 && (cancelAnimationFrame(B), ye());
|
|
9480
9480
|
}, ue = $(!1);
|
|
9481
9481
|
typeof document < "u" && Io(() => {
|
|
9482
9482
|
ue.value && N.value !== !1 ? (document.addEventListener("animationstart", Y), document.addEventListener("animationend", de)) : (document.removeEventListener("animationstart", Y), document.removeEventListener("animationend", de));
|
|
9483
9483
|
}), Le(() => {
|
|
9484
9484
|
ue.value = !0, V(), _e(), c.value && (E = new ResizeObserver(C), E.observe(c.value)), n("init");
|
|
9485
9485
|
}), Kr(() => {
|
|
9486
|
-
ue.value = !1, a.cleanup(), x && clearTimeout(x),
|
|
9486
|
+
ue.value = !1, a.cleanup(), x && clearTimeout(x), B && cancelAnimationFrame(B), v && clearInterval(v), E && (E.disconnect(), E = null), typeof document < "u" && Be(), c.value && (c.value.removeEventListener("transitionend", ye), c.value.removeEventListener("animationiteration", ye));
|
|
9487
9487
|
});
|
|
9488
9488
|
let fe = !1;
|
|
9489
9489
|
const we = { x: 0, y: 0 }, Ee = Lt({ x: 0, y: 0 }), gt = $(!1), at = $(!1), Et = () => {
|
|
@@ -9504,7 +9504,7 @@ _n({
|
|
|
9504
9504
|
}
|
|
9505
9505
|
}, 200), X = () => {
|
|
9506
9506
|
document.addEventListener("keydown", ae);
|
|
9507
|
-
},
|
|
9507
|
+
}, Be = () => {
|
|
9508
9508
|
document.removeEventListener("keydown", ae);
|
|
9509
9509
|
};
|
|
9510
9510
|
function it(G) {
|
|
@@ -9781,7 +9781,7 @@ _n({
|
|
|
9781
9781
|
"aria-label": d.i18n.ariaGallery,
|
|
9782
9782
|
tabindex: "0",
|
|
9783
9783
|
onFocus: X,
|
|
9784
|
-
onBlur:
|
|
9784
|
+
onBlur: Be,
|
|
9785
9785
|
onMouseenter: Et,
|
|
9786
9786
|
onMouseleave: yt
|
|
9787
9787
|
}, [Mn, Vn, tt(Zg)]);
|
|
@@ -9938,7 +9938,7 @@ _n({
|
|
|
9938
9938
|
return () => "";
|
|
9939
9939
|
const a = $(e.index), i = (m) => {
|
|
9940
9940
|
a.value = m;
|
|
9941
|
-
}, s =
|
|
9941
|
+
}, s = Bs(), c = () => {
|
|
9942
9942
|
const m = s.vnode.el;
|
|
9943
9943
|
return m ? m.getBoundingClientRect() : { width: 0, height: 0 };
|
|
9944
9944
|
};
|
|
@@ -9957,7 +9957,7 @@ _n({
|
|
|
9957
9957
|
r.slideRegistry.unregisterSlide(s);
|
|
9958
9958
|
}), e.isClone && (Le(() => {
|
|
9959
9959
|
wi(s.vnode);
|
|
9960
|
-
}),
|
|
9960
|
+
}), Rs(() => {
|
|
9961
9961
|
wi(s.vnode);
|
|
9962
9962
|
})), () => {
|
|
9963
9963
|
var m, g;
|
|
@@ -10110,12 +10110,12 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10110
10110
|
u.value = C, y.state.data.filters = C, D(u.value);
|
|
10111
10111
|
}, v = () => {
|
|
10112
10112
|
u.value = null, i.value = "id", s.value = 1, y.state.data.filters = {}, D(u.value);
|
|
10113
|
-
}, x = async (C,
|
|
10114
|
-
i.value = C, s.value =
|
|
10113
|
+
}, x = async (C, R) => {
|
|
10114
|
+
i.value = C, s.value = R, u.value = y.state.data.filters ? y.state.data.filters : u.value, D(u.value);
|
|
10115
10115
|
}, E = (C) => {
|
|
10116
10116
|
c.value = C, u.value = y.state.data.filters ? y.state.data.filters : u.value, D(u.value);
|
|
10117
10117
|
}, D = async (C) => {
|
|
10118
|
-
var
|
|
10118
|
+
var R, _;
|
|
10119
10119
|
console.log("entity state filter", y);
|
|
10120
10120
|
try {
|
|
10121
10121
|
const P = {
|
|
@@ -10129,7 +10129,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10129
10129
|
};
|
|
10130
10130
|
o.fetchParentEntities && (P.fetchParentEntities = o.fetchParentEntities), o.fetchChildEntities !== void 0 && (P.fetchChildEntities = o.fetchChildEntities), o.relatedEntities && (P.relatedEntities = o.relatedEntities.split(",").map((J) => J.trim())), o.fetchList && (P.fetchList = o.fetchList);
|
|
10131
10131
|
const z = await a.searchEntityRecords(o.entityName, P);
|
|
10132
|
-
z && z.response ? (y.setEntity(z.response), p.value = ((_ = (
|
|
10132
|
+
z && z.response ? (y.setEntity(z.response), p.value = ((_ = (R = y == null ? void 0 : y.state) == null ? void 0 : R.data) == null ? void 0 : _.presets) || []) : console.error("Error fetching entity data:", z);
|
|
10133
10133
|
} catch {
|
|
10134
10134
|
}
|
|
10135
10135
|
}, I = async () => {
|
|
@@ -10146,12 +10146,12 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10146
10146
|
console.log("filter data in unordered", C);
|
|
10147
10147
|
},
|
|
10148
10148
|
addToCurrentList: (C) => {
|
|
10149
|
-
var
|
|
10150
|
-
(_ = (
|
|
10149
|
+
var R, _;
|
|
10150
|
+
(_ = (R = y == null ? void 0 : y.state) == null ? void 0 : R.data) != null && _.result && y.state.data.result.push(C);
|
|
10151
10151
|
},
|
|
10152
10152
|
deleteFromCurrentList: (C) => {
|
|
10153
|
-
const
|
|
10154
|
-
y.state.data.result.splice(
|
|
10153
|
+
const R = y.state.data.result.indexOf(C);
|
|
10154
|
+
y.state.data.result.splice(R, 1);
|
|
10155
10155
|
},
|
|
10156
10156
|
searchRecord: k,
|
|
10157
10157
|
searchByPageSize: E,
|
|
@@ -10160,7 +10160,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10160
10160
|
}), Oe(
|
|
10161
10161
|
() => r.globalConfigs.appId,
|
|
10162
10162
|
async (C) => {
|
|
10163
|
-
var
|
|
10163
|
+
var R, _;
|
|
10164
10164
|
if (C) {
|
|
10165
10165
|
if (o.linkedEntity && o.linkedEntity.length > 0)
|
|
10166
10166
|
y.setEntity(o.linkedEntity);
|
|
@@ -10168,17 +10168,17 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10168
10168
|
const P = {};
|
|
10169
10169
|
o.fetchParentEntities !== void 0 && (P.fetchParentEntities = o.fetchParentEntities), o.fetchChildEntities !== void 0 && (P.fetchChildEntities = o.fetchChildEntities), o.relatedEntities && (P.relatedEntities = o.relatedEntities.split(",").map((J) => J.trim())), o.fetchList && (P.fetchList = o.fetchList);
|
|
10170
10170
|
const z = await y.getEntity(o.entityName, P);
|
|
10171
|
-
p.value = ((_ = (
|
|
10171
|
+
p.value = ((_ = (R = z == null ? void 0 : z.response) == null ? void 0 : R.entity) == null ? void 0 : _.presets) || [], console.log("Fetched presets data:", p.value), y.setEntity(z.success ? z.response : { result: [] });
|
|
10172
10172
|
}
|
|
10173
10173
|
}
|
|
10174
10174
|
},
|
|
10175
10175
|
{ immediate: !0 }
|
|
10176
10176
|
);
|
|
10177
10177
|
const V = async (C) => {
|
|
10178
|
-
const
|
|
10179
|
-
y.state.data =
|
|
10178
|
+
const R = await y.applyPreset(C, o.entityName);
|
|
10179
|
+
y.state.data = R || {};
|
|
10180
10180
|
};
|
|
10181
|
-
return (C,
|
|
10181
|
+
return (C, R) => {
|
|
10182
10182
|
var _, P, z;
|
|
10183
10183
|
return m.value ? (b(), S("div", te({ key: 0 }, C.$attrs, { class: "flex flex-col" }), [
|
|
10184
10184
|
me(C.$slots, "header", {}, void 0, !0),
|
|
@@ -10237,7 +10237,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10237
10237
|
], 64)) : (b(), S(ie, { key: 1 }, [
|
|
10238
10238
|
e.entityName ? U("", !0) : (b(), S("div", ch, [
|
|
10239
10239
|
w("p", dh, [
|
|
10240
|
-
|
|
10240
|
+
R[0] || (R[0] = et(" Error: Missing required props - ")),
|
|
10241
10241
|
e.entityName ? U("", !0) : (b(), S("span", fh, "Entity Name"))
|
|
10242
10242
|
])
|
|
10243
10243
|
])),
|
|
@@ -10399,7 +10399,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10399
10399
|
], 64);
|
|
10400
10400
|
};
|
|
10401
10401
|
}
|
|
10402
|
-
},
|
|
10402
|
+
}, Rh = /* @__PURE__ */ Xe(Ih, [["__scopeId", "data-v-c78e676f"]]), Bh = { class: "flex flex-wrap gap-4 p-2" }, Ph = {
|
|
10403
10403
|
key: 0,
|
|
10404
10404
|
class: "error-message"
|
|
10405
10405
|
}, Fh = { class: "text-red-500 font-bold" }, Ah = { key: 0 }, _h = { key: 1 }, Nh = { class: "flex flex-wrap gap-4 p-4" }, Dh = {
|
|
@@ -10458,7 +10458,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10458
10458
|
me(c.$slots, "header", {}, void 0, !0),
|
|
10459
10459
|
e.showAddButton ? (b(), M($t, { key: 0 })) : U("", !0),
|
|
10460
10460
|
e.showFilters ? (b(), M(Ne(e.listFilter || Ct), { key: 1 })) : U("", !0),
|
|
10461
|
-
w("div",
|
|
10461
|
+
w("div", Bh, [
|
|
10462
10462
|
(b(!0), S(ie, null, $e(((d = (f = (u = ee(n)) == null ? void 0 : u.state) == null ? void 0 : f.data) == null ? void 0 : d.result) || [], (p, m) => (b(), S("div", {
|
|
10463
10463
|
key: m,
|
|
10464
10464
|
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"
|
|
@@ -10473,7 +10473,7 @@ const oh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10473
10473
|
e.showFilters ? (b(), M(Ne(e.listFilter || Ct), { key: 0 })) : U("", !0),
|
|
10474
10474
|
e.showAddButton ? (b(), M($t, { key: 1 })) : U("", !0),
|
|
10475
10475
|
w("div", Nh, [
|
|
10476
|
-
(b(!0), S(ie, null, $e(a.value, (p, m) => (b(), M(Ne(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay :
|
|
10476
|
+
(b(!0), S(ie, null, $e(a.value, (p, m) => (b(), M(Ne(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : Rh), te({
|
|
10477
10477
|
key: m,
|
|
10478
10478
|
ref_for: !0
|
|
10479
10479
|
}, { item: p, ...r }), null, 16))), 128))
|
|
@@ -10887,7 +10887,7 @@ function jl(e, t = "", n = "", o = [], r) {
|
|
|
10887
10887
|
if (Yt(i, a)) {
|
|
10888
10888
|
const s = i.replaceAll(a, (u) => {
|
|
10889
10889
|
const d = u.replace(/{|}/g, "").split(".").filter((p) => !o.some((m) => Yt(p, m)));
|
|
10890
|
-
return `var(${Ml(n, Ol(d.join("-")))}${
|
|
10890
|
+
return `var(${Ml(n, Ol(d.join("-")))}${Re(r) ? `, ${r}` : ""})`;
|
|
10891
10891
|
}), c = /(\d+\s+[\+\-\*\/]\s+\d+)/g, l = /var\([^)]+\)/g;
|
|
10892
10892
|
return Yt(s.replace(l, "0"), c) ? `calc(${s})` : s;
|
|
10893
10893
|
}
|
|
@@ -11019,12 +11019,12 @@ var Tt = {
|
|
|
11019
11019
|
var a, i, s, c, l, u, f;
|
|
11020
11020
|
const { preset: d, options: p } = t;
|
|
11021
11021
|
let m, g, h, y, k, v, x;
|
|
11022
|
-
if (
|
|
11023
|
-
const { primitive: E, semantic: D, extend: I } = d, O = D || {}, { colorScheme: j } = O, W = Ht(O, ["colorScheme"]), T = I || {}, { colorScheme: V } = T, C = Ht(T, ["colorScheme"]),
|
|
11022
|
+
if (Re(d) && p.transform !== "strict") {
|
|
11023
|
+
const { primitive: E, semantic: D, extend: I } = d, O = D || {}, { colorScheme: j } = O, W = Ht(O, ["colorScheme"]), T = I || {}, { colorScheme: V } = T, C = Ht(T, ["colorScheme"]), R = j || {}, { dark: _ } = R, P = Ht(R, ["dark"]), z = V || {}, { dark: J } = z, ye = Ht(z, ["dark"]), L = Re(E) ? this._toVariables({ primitive: E }, p) : {}, N = Re(W) ? this._toVariables({ semantic: W }, p) : {}, B = Re(P) ? this._toVariables({ light: P }, p) : {}, Y = Re(_) ? this._toVariables({ dark: _ }, p) : {}, de = Re(C) ? this._toVariables({ semantic: C }, p) : {}, ue = Re(ye) ? this._toVariables({ light: ye }, p) : {}, fe = Re(J) ? this._toVariables({ dark: J }, p) : {}, [we, Ee] = [(a = L.declarations) != null ? a : "", L.tokens], [gt, at] = [(i = N.declarations) != null ? i : "", N.tokens || []], [Et, yt] = [(s = B.declarations) != null ? s : "", B.tokens || []], [ae, X] = [(c = Y.declarations) != null ? c : "", Y.tokens || []], [Be, it] = [(l = de.declarations) != null ? l : "", de.tokens || []], [Me, Pe] = [(u = ue.declarations) != null ? u : "", ue.tokens || []], [_e, Ke] = [(f = fe.declarations) != null ? f : "", fe.tokens || []];
|
|
11024
11024
|
m = this.transformCSS(e, we, "light", "variable", p, o, r), g = Ee;
|
|
11025
11025
|
const Ft = this.transformCSS(e, `${gt}${Et}`, "light", "variable", p, o, r), Je = this.transformCSS(e, `${ae}`, "dark", "variable", p, o, r);
|
|
11026
11026
|
h = `${Ft}${Je}`, y = [.../* @__PURE__ */ new Set([...at, ...yt, ...X])];
|
|
11027
|
-
const ut = this.transformCSS(e, `${
|
|
11027
|
+
const ut = this.transformCSS(e, `${Be}${Me}color-scheme:light`, "light", "variable", p, o, r), vt = this.transformCSS(e, `${_e}color-scheme:dark`, "dark", "variable", p, o, r);
|
|
11028
11028
|
k = `${ut}${vt}`, v = [.../* @__PURE__ */ new Set([...it, ...Pe, ...Ke])], x = St(d.css, { dt: Jn });
|
|
11029
11029
|
}
|
|
11030
11030
|
return {
|
|
@@ -11046,9 +11046,9 @@ var Tt = {
|
|
|
11046
11046
|
getPreset({ name: e = "", preset: t = {}, options: n, params: o, set: r, defaults: a, selector: i }) {
|
|
11047
11047
|
var s, c, l;
|
|
11048
11048
|
let u, f, d;
|
|
11049
|
-
if (
|
|
11050
|
-
const p = e.replace("-directive", ""), m = t, { colorScheme: g, extend: h, css: y } = m, k = Ht(m, ["colorScheme", "extend", "css"]), v = h || {}, { colorScheme: x } = v, E = Ht(v, ["colorScheme"]), D = g || {}, { dark: I } = D, O = Ht(D, ["dark"]), j = x || {}, { dark: W } = j, T = Ht(j, ["dark"]), V =
|
|
11051
|
-
u = `${N}${
|
|
11049
|
+
if (Re(t) && n.transform !== "strict") {
|
|
11050
|
+
const p = e.replace("-directive", ""), m = t, { colorScheme: g, extend: h, css: y } = m, k = Ht(m, ["colorScheme", "extend", "css"]), v = h || {}, { colorScheme: x } = v, E = Ht(v, ["colorScheme"]), D = g || {}, { dark: I } = D, O = Ht(D, ["dark"]), j = x || {}, { dark: W } = j, T = Ht(j, ["dark"]), V = Re(k) ? this._toVariables({ [p]: We(We({}, k), E) }, n) : {}, C = Re(O) ? this._toVariables({ [p]: We(We({}, O), T) }, n) : {}, R = Re(I) ? this._toVariables({ [p]: We(We({}, I), W) }, n) : {}, [_, P] = [(s = V.declarations) != null ? s : "", V.tokens || []], [z, J] = [(c = C.declarations) != null ? c : "", C.tokens || []], [ye, L] = [(l = R.declarations) != null ? l : "", R.tokens || []], N = this.transformCSS(p, `${_}${z}`, "light", "variable", n, r, a, i), B = this.transformCSS(p, ye, "dark", "variable", n, r, a, i);
|
|
11051
|
+
u = `${N}${B}`, f = [.../* @__PURE__ */ new Set([...P, ...J, ...L])], d = St(y, { dt: Jn });
|
|
11052
11052
|
}
|
|
11053
11053
|
return {
|
|
11054
11054
|
css: u,
|
|
@@ -11135,21 +11135,21 @@ var Tt = {
|
|
|
11135
11135
|
}, void 0);
|
|
11136
11136
|
},
|
|
11137
11137
|
getSelectorRule(e, t, n, o) {
|
|
11138
|
-
return n === "class" || n === "attr" ? In(
|
|
11138
|
+
return n === "class" || n === "attr" ? In(Re(t) ? `${e}${t},${e} ${t}` : e, o) : In(e, Re(t) ? In(t, o) : o);
|
|
11139
11139
|
},
|
|
11140
11140
|
transformCSS(e, t, n, o, r = {}, a, i, s) {
|
|
11141
|
-
if (
|
|
11141
|
+
if (Re(t)) {
|
|
11142
11142
|
const { cssLayer: c } = r;
|
|
11143
11143
|
if (o !== "style") {
|
|
11144
11144
|
const l = this.getColorSchemeOption(r, i);
|
|
11145
|
-
t = n === "dark" ? l.reduce((u, { type: f, selector: d }) => (
|
|
11145
|
+
t = n === "dark" ? l.reduce((u, { type: f, selector: d }) => (Re(d) && (u += d.includes("[CSS]") ? d.replace("[CSS]", t) : this.getSelectorRule(d, s, f, t)), u), "") : In(s ?? ":root", t);
|
|
11146
11146
|
}
|
|
11147
11147
|
if (c) {
|
|
11148
11148
|
const l = {
|
|
11149
11149
|
name: "primeui",
|
|
11150
11150
|
order: "primeui"
|
|
11151
11151
|
};
|
|
11152
|
-
Mt(c) && (l.name = St(c.name, { name: e, type: o })),
|
|
11152
|
+
Mt(c) && (l.name = St(c.name, { name: e, type: o })), Re(l.name) && (t = In(`@layer ${l.name}`, t), a == null || a.layerNames(l.name));
|
|
11153
11153
|
}
|
|
11154
11154
|
return t;
|
|
11155
11155
|
}
|
|
@@ -11345,32 +11345,32 @@ function $b(e, t) {
|
|
|
11345
11345
|
}
|
|
11346
11346
|
function Eb(e) {
|
|
11347
11347
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
11348
|
-
|
|
11348
|
+
Bs() ? Le(e) : t ? e() : dt(e);
|
|
11349
11349
|
}
|
|
11350
11350
|
var Ob = 0;
|
|
11351
11351
|
function Tb(e) {
|
|
11352
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = $(!1), o = $(e), r = $(null), a = ua() ? window.document : void 0, i = t.document, s = i === void 0 ? a : i, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, f = u === void 0 ? !1 : u, d = t.name, p = d === void 0 ? "style_".concat(++Ob) : d, m = t.id, g = m === void 0 ? void 0 : m, h = t.media, y = h === void 0 ? void 0 : h, k = t.nonce, v = k === void 0 ? void 0 : k, x = t.first, E = x === void 0 ? !1 : x, D = t.onMounted, I = D === void 0 ? void 0 : D, O = t.onUpdated, j = O === void 0 ? void 0 : O, W = t.onLoad, T = W === void 0 ? void 0 : W, V = t.props, C = V === void 0 ? {} : V,
|
|
11352
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = $(!1), o = $(e), r = $(null), a = ua() ? window.document : void 0, i = t.document, s = i === void 0 ? a : i, c = t.immediate, l = c === void 0 ? !0 : c, u = t.manual, f = u === void 0 ? !1 : u, d = t.name, p = d === void 0 ? "style_".concat(++Ob) : d, m = t.id, g = m === void 0 ? void 0 : m, h = t.media, y = h === void 0 ? void 0 : h, k = t.nonce, v = k === void 0 ? void 0 : k, x = t.first, E = x === void 0 ? !1 : x, D = t.onMounted, I = D === void 0 ? void 0 : D, O = t.onUpdated, j = O === void 0 ? void 0 : O, W = t.onLoad, T = W === void 0 ? void 0 : W, V = t.props, C = V === void 0 ? {} : V, R = function() {
|
|
11353
11353
|
}, _ = function(J) {
|
|
11354
11354
|
var ye = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
11355
11355
|
if (s) {
|
|
11356
|
-
var L = Ii(Ii({}, C), ye), N = L.name || p,
|
|
11357
|
-
r.value = s.querySelector('style[data-primevue-style-id="'.concat(N, '"]')) || s.getElementById(
|
|
11356
|
+
var L = Ii(Ii({}, C), ye), N = L.name || p, B = L.id || g, Y = L.nonce || v;
|
|
11357
|
+
r.value = s.querySelector('style[data-primevue-style-id="'.concat(N, '"]')) || s.getElementById(B) || s.createElement("style"), r.value.isConnected || (o.value = J || e, Mo(r.value, {
|
|
11358
11358
|
type: "text/css",
|
|
11359
|
-
id:
|
|
11359
|
+
id: B,
|
|
11360
11360
|
media: y,
|
|
11361
11361
|
nonce: Y
|
|
11362
11362
|
}), E ? s.head.prepend(r.value) : s.head.appendChild(r.value), db(r.value, "data-primevue-style-id", N), Mo(r.value, L), r.value.onload = function(de) {
|
|
11363
11363
|
return T == null ? void 0 : T(de, {
|
|
11364
11364
|
name: N
|
|
11365
11365
|
});
|
|
11366
|
-
}, I == null || I(N)), !n.value && (
|
|
11366
|
+
}, I == null || I(N)), !n.value && (R = Oe(o, function(de) {
|
|
11367
11367
|
r.value.textContent = de, j == null || j(N);
|
|
11368
11368
|
}, {
|
|
11369
11369
|
immediate: !0
|
|
11370
11370
|
}), n.value = !0);
|
|
11371
11371
|
}
|
|
11372
11372
|
}, P = function() {
|
|
11373
|
-
!s || !n.value || (
|
|
11373
|
+
!s || !n.value || (R(), lb(r.value) && s.head.removeChild(r.value), n.value = !1);
|
|
11374
11374
|
};
|
|
11375
11375
|
return l && !f && Eb(_), {
|
|
11376
11376
|
id: g,
|
|
@@ -11390,26 +11390,26 @@ function ro(e) {
|
|
|
11390
11390
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
11391
11391
|
}, ro(e);
|
|
11392
11392
|
}
|
|
11393
|
-
function
|
|
11394
|
-
return Pb(e) ||
|
|
11393
|
+
function Ri(e, t) {
|
|
11394
|
+
return Pb(e) || Bb(e, t) || Rb(e, t) || Ib();
|
|
11395
11395
|
}
|
|
11396
11396
|
function Ib() {
|
|
11397
11397
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11398
11398
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
11399
11399
|
}
|
|
11400
|
-
function
|
|
11400
|
+
function Rb(e, t) {
|
|
11401
11401
|
if (e) {
|
|
11402
|
-
if (typeof e == "string") return
|
|
11402
|
+
if (typeof e == "string") return Bi(e, t);
|
|
11403
11403
|
var n = {}.toString.call(e).slice(8, -1);
|
|
11404
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
11404
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Bi(e, t) : void 0;
|
|
11405
11405
|
}
|
|
11406
11406
|
}
|
|
11407
|
-
function
|
|
11407
|
+
function Bi(e, t) {
|
|
11408
11408
|
(t == null || t > e.length) && (t = e.length);
|
|
11409
11409
|
for (var n = 0, o = Array(t); n < t; n++) o[n] = e[n];
|
|
11410
11410
|
return o;
|
|
11411
11411
|
}
|
|
11412
|
-
function
|
|
11412
|
+
function Bb(e, t) {
|
|
11413
11413
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
11414
11414
|
if (n != null) {
|
|
11415
11415
|
var o, r, a, i, s = [], c = !0, l = !1;
|
|
@@ -11628,7 +11628,7 @@ var Nb = function(t) {
|
|
|
11628
11628
|
}, r = o(St(t, {
|
|
11629
11629
|
dt: Jn
|
|
11630
11630
|
}));
|
|
11631
|
-
return
|
|
11631
|
+
return Re(r) ? Tb(Xn(r), Sr({
|
|
11632
11632
|
name: this.name
|
|
11633
11633
|
}, n)) : {};
|
|
11634
11634
|
},
|
|
@@ -11664,10 +11664,10 @@ var Nb = function(t) {
|
|
|
11664
11664
|
var o = St(this.css, {
|
|
11665
11665
|
dt: Jn
|
|
11666
11666
|
}) || "", r = Xn("".concat(o).concat(t)), a = Object.entries(n).reduce(function(i, s) {
|
|
11667
|
-
var c =
|
|
11667
|
+
var c = Ri(s, 2), l = c[0], u = c[1];
|
|
11668
11668
|
return i.push("".concat(l, '="').concat(u, '"')) && i;
|
|
11669
11669
|
}, []).join(" ");
|
|
11670
|
-
return
|
|
11670
|
+
return Re(r) ? '<style type="text/css" data-primevue-style-id="'.concat(this.name, '" ').concat(a, ">").concat(r, "</style>") : "";
|
|
11671
11671
|
}
|
|
11672
11672
|
return "";
|
|
11673
11673
|
},
|
|
@@ -11681,10 +11681,10 @@ var Nb = function(t) {
|
|
|
11681
11681
|
var r = this.name === "base" ? "global-style" : "".concat(this.name, "-style"), a = St(this.theme, {
|
|
11682
11682
|
dt: Jn
|
|
11683
11683
|
}), i = Xn(De.transformCSS(r, a)), s = Object.entries(n).reduce(function(c, l) {
|
|
11684
|
-
var u =
|
|
11684
|
+
var u = Ri(l, 2), f = u[0], d = u[1];
|
|
11685
11685
|
return c.push("".concat(f, '="').concat(d, '"')) && c;
|
|
11686
11686
|
}, []).join(" ");
|
|
11687
|
-
|
|
11687
|
+
Re(i) && o.push('<style type="text/css" data-primevue-style-id="'.concat(r, '" ').concat(s, ">").concat(i, "</style>"));
|
|
11688
11688
|
}
|
|
11689
11689
|
return o.join("");
|
|
11690
11690
|
},
|
|
@@ -11891,7 +11891,7 @@ var Cn = {
|
|
|
11891
11891
|
},
|
|
11892
11892
|
_loadGlobalStyles: function() {
|
|
11893
11893
|
var t = this._useGlobalPT(this._getOptionValue, "global.css", this.$params);
|
|
11894
|
-
|
|
11894
|
+
Re(t) && qe.load(t, Te({
|
|
11895
11895
|
name: "global"
|
|
11896
11896
|
}, this.$styleOptions));
|
|
11897
11897
|
},
|
|
@@ -11970,7 +11970,7 @@ var Cn = {
|
|
|
11970
11970
|
);
|
|
11971
11971
|
},
|
|
11972
11972
|
_getPTDatasets: function() {
|
|
11973
|
-
var t, n, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = "data-pc-", a = o === "root" &&
|
|
11973
|
+
var t, n, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", r = "data-pc-", a = o === "root" && Re((t = this.pt) === null || t === void 0 ? void 0 : t["data-pc-section"]);
|
|
11974
11974
|
return o !== "transition" && Te(Te({}, o === "root" && Te(Te(Gn({}, "".concat(r, "name"), It(a ? (n = this.pt) === null || n === void 0 ? void 0 : n["data-pc-section"] : this.$.type.name)), a && Gn({}, "".concat(r, "extend"), It(this.$.type.name))), ua() && Gn({}, "".concat(this.$attrSelector), ""))), {}, Gn({}, "".concat(r, "section"), It(o)));
|
|
11975
11975
|
},
|
|
11976
11976
|
_getPTClassValue: function() {
|
|
@@ -12355,7 +12355,7 @@ var Jb = function(t) {
|
|
|
12355
12355
|
root: function(t) {
|
|
12356
12356
|
var n = t.props, o = t.instance;
|
|
12357
12357
|
return ["p-badge p-component", {
|
|
12358
|
-
"p-badge-circle":
|
|
12358
|
+
"p-badge-circle": Re(n.value) && String(n.value).length === 1,
|
|
12359
12359
|
"p-badge-dot": xn(n.value) && !o.$slots.default,
|
|
12360
12360
|
"p-badge-sm": n.size === "small",
|
|
12361
12361
|
"p-badge-lg": n.size === "large",
|
|
@@ -13746,10 +13746,10 @@ Ql.render = E0;
|
|
|
13746
13746
|
const O0 = { class: "flex items-center justify-between rounded-md w-full overflow-hidden" }, T0 = {
|
|
13747
13747
|
key: 0,
|
|
13748
13748
|
class: "flex flex-col w-full bg-white rounded-lg gap-2"
|
|
13749
|
-
}, I0 = { class: "flex items-center justify-center gap-2 flex-wrap" },
|
|
13749
|
+
}, I0 = { class: "flex items-center justify-center gap-2 flex-wrap" }, R0 = {
|
|
13750
13750
|
key: 0,
|
|
13751
13751
|
class: "flex items-center gap-3 overflow-x-auto mb-3 p-3 scrollbar-none pr-4"
|
|
13752
|
-
},
|
|
13752
|
+
}, B0 = ["onClick"], P0 = {
|
|
13753
13753
|
key: 1,
|
|
13754
13754
|
class: "relative"
|
|
13755
13755
|
}, F0 = {
|
|
@@ -13932,7 +13932,7 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13932
13932
|
},
|
|
13933
13933
|
{ immediate: !0 }
|
|
13934
13934
|
);
|
|
13935
|
-
const
|
|
13935
|
+
const R = async (_) => {
|
|
13936
13936
|
const P = await y.applyPreset(_, i.entityName);
|
|
13937
13937
|
y.state.data = P || {};
|
|
13938
13938
|
};
|
|
@@ -13955,16 +13955,16 @@ const O0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13955
13955
|
])
|
|
13956
13956
|
])) : U("", !0)
|
|
13957
13957
|
]),
|
|
13958
|
-
e.showPresets ? (b(), S("div",
|
|
13958
|
+
e.showPresets ? (b(), S("div", R0, [
|
|
13959
13959
|
(b(!0), S(ie, null, $e(p.value, (z) => (b(), S("button", {
|
|
13960
13960
|
key: z,
|
|
13961
13961
|
onClick: (J) => {
|
|
13962
|
-
g.value = z.name,
|
|
13962
|
+
g.value = z.name, R(z.name);
|
|
13963
13963
|
},
|
|
13964
13964
|
class: ve(["px-4 py-2 rounded-full text-sm", [
|
|
13965
13965
|
g.value === z.name ? "bg-blue-800 text-white" : "bg-blue-100 text-blue-700"
|
|
13966
13966
|
]])
|
|
13967
|
-
}, Z(z.name), 11,
|
|
13967
|
+
}, Z(z.name), 11, B0))), 128))
|
|
13968
13968
|
])) : U("", !0),
|
|
13969
13969
|
d.value.length > 0 ? (b(), S("div", P0, [
|
|
13970
13970
|
w("button", {
|
|
@@ -14513,7 +14513,7 @@ const vy = /^(\d+)(th|st|nd|rd)?/i, wy = /\d+/i, ky = {
|
|
|
14513
14513
|
}, Iy = {
|
|
14514
14514
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
14515
14515
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
14516
|
-
},
|
|
14516
|
+
}, Ry = {
|
|
14517
14517
|
any: {
|
|
14518
14518
|
am: /^a/i,
|
|
14519
14519
|
pm: /^p/i,
|
|
@@ -14524,7 +14524,7 @@ const vy = /^(\d+)(th|st|nd|rd)?/i, wy = /\d+/i, ky = {
|
|
|
14524
14524
|
evening: /evening/i,
|
|
14525
14525
|
night: /night/i
|
|
14526
14526
|
}
|
|
14527
|
-
},
|
|
14527
|
+
}, By = {
|
|
14528
14528
|
ordinalNumber: yy({
|
|
14529
14529
|
matchPattern: vy,
|
|
14530
14530
|
parsePattern: wy,
|
|
@@ -14558,7 +14558,7 @@ const vy = /^(\d+)(th|st|nd|rd)?/i, wy = /\d+/i, ky = {
|
|
|
14558
14558
|
dayPeriod: Wn({
|
|
14559
14559
|
matchPatterns: Iy,
|
|
14560
14560
|
defaultMatchWidth: "any",
|
|
14561
|
-
parsePatterns:
|
|
14561
|
+
parsePatterns: Ry,
|
|
14562
14562
|
defaultParseWidth: "any"
|
|
14563
14563
|
})
|
|
14564
14564
|
}, Py = {
|
|
@@ -14567,7 +14567,7 @@ const vy = /^(\d+)(th|st|nd|rd)?/i, wy = /\d+/i, ky = {
|
|
|
14567
14567
|
formatLong: ay,
|
|
14568
14568
|
formatRelative: sy,
|
|
14569
14569
|
localize: gy,
|
|
14570
|
-
match:
|
|
14570
|
+
match: By,
|
|
14571
14571
|
options: {
|
|
14572
14572
|
weekStartsOn: 0,
|
|
14573
14573
|
firstWeekContainsDate: 1
|
|
@@ -15413,7 +15413,7 @@ function ev() {
|
|
|
15413
15413
|
break;
|
|
15414
15414
|
}
|
|
15415
15415
|
if (t._.includes(j, "-") && (j = j.slice(1), D = !0), j.length < g)
|
|
15416
|
-
for (var
|
|
15416
|
+
for (var R = g - j.length; R > 0; R--)
|
|
15417
15417
|
j = "0" + j;
|
|
15418
15418
|
return V > -1 && (j = j.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), u.indexOf(".") === 0 && (j = ""), C = j + E + (h || ""), p ? C = (p && D ? "(" : "") + C + (p && D ? ")" : "") : T >= 0 ? C = T === 0 ? (D ? "-" : "+") + C : C + (D ? "-" : "+") : D && (C = "-" + C), C;
|
|
15419
15419
|
},
|
|
@@ -15778,141 +15778,141 @@ function tu() {
|
|
|
15778
15778
|
return await t(`/api/app/v1/${N}/entity`, L);
|
|
15779
15779
|
},
|
|
15780
15780
|
getEntity: async (L, N = !1) => {
|
|
15781
|
-
const
|
|
15782
|
-
return await t(`/api/app/v1/${
|
|
15781
|
+
const B = a();
|
|
15782
|
+
return await t(`/api/app/v1/${B}/entity/${L}`, N);
|
|
15783
15783
|
},
|
|
15784
15784
|
saveEntity: async (L, N = !1) => {
|
|
15785
|
-
const
|
|
15786
|
-
return await n(`/api/app/v1/${
|
|
15785
|
+
const B = a();
|
|
15786
|
+
return await n(`/api/app/v1/${B}/entity`, L, N);
|
|
15787
15787
|
},
|
|
15788
|
-
updateEntityGeneralSettings: async (L, N,
|
|
15788
|
+
updateEntityGeneralSettings: async (L, N, B = !1) => {
|
|
15789
15789
|
const Y = a();
|
|
15790
15790
|
return await o(
|
|
15791
15791
|
`/api/app/v1/${Y}/entity/${L}/rename`,
|
|
15792
15792
|
N,
|
|
15793
|
-
|
|
15793
|
+
B
|
|
15794
15794
|
);
|
|
15795
15795
|
},
|
|
15796
|
-
updateEntityAuditable: async (L, N,
|
|
15796
|
+
updateEntityAuditable: async (L, N, B = !1) => {
|
|
15797
15797
|
const Y = a();
|
|
15798
15798
|
return await o(
|
|
15799
15799
|
`/api/app/v1/${Y}/entity/${L}/auditable`,
|
|
15800
15800
|
N,
|
|
15801
|
-
|
|
15801
|
+
B
|
|
15802
15802
|
);
|
|
15803
15803
|
},
|
|
15804
|
-
updateEntityRevisionEnabled: async (L, N,
|
|
15804
|
+
updateEntityRevisionEnabled: async (L, N, B = !1) => {
|
|
15805
15805
|
const Y = a();
|
|
15806
15806
|
return await o(
|
|
15807
15807
|
`/api/app/v1/${Y}/entity/${L}/revision`,
|
|
15808
15808
|
N,
|
|
15809
|
-
|
|
15809
|
+
B
|
|
15810
15810
|
);
|
|
15811
15811
|
},
|
|
15812
|
-
updateEntitySoftDelete: async (L, N,
|
|
15812
|
+
updateEntitySoftDelete: async (L, N, B = !1) => {
|
|
15813
15813
|
const Y = a();
|
|
15814
15814
|
return await o(
|
|
15815
15815
|
`/api/app/v1/${Y}/entity/${L}/soft-delete`,
|
|
15816
15816
|
N,
|
|
15817
|
-
|
|
15817
|
+
B
|
|
15818
15818
|
);
|
|
15819
15819
|
},
|
|
15820
|
-
updateEntityDeleteProtected: async (L, N,
|
|
15820
|
+
updateEntityDeleteProtected: async (L, N, B = !1) => {
|
|
15821
15821
|
const Y = a();
|
|
15822
15822
|
return await o(
|
|
15823
15823
|
`/api/app/v1/${Y}/entity/${L}/delete-protect`,
|
|
15824
15824
|
N,
|
|
15825
|
-
|
|
15825
|
+
B
|
|
15826
15826
|
);
|
|
15827
15827
|
},
|
|
15828
|
-
updateEntityColumn: async (L, N,
|
|
15828
|
+
updateEntityColumn: async (L, N, B = !1) => {
|
|
15829
15829
|
const Y = a();
|
|
15830
15830
|
return await o(
|
|
15831
15831
|
`/api/app/v1/${Y}/entity/${L}/column`,
|
|
15832
15832
|
N,
|
|
15833
|
-
|
|
15833
|
+
B
|
|
15834
15834
|
);
|
|
15835
15835
|
},
|
|
15836
|
-
saveEntityColumn: async (L, N,
|
|
15836
|
+
saveEntityColumn: async (L, N, B = !1) => {
|
|
15837
15837
|
const Y = a();
|
|
15838
15838
|
return await n(
|
|
15839
15839
|
`/api/app/v1/${Y}/entity/${L}/column`,
|
|
15840
15840
|
N,
|
|
15841
|
-
|
|
15841
|
+
B
|
|
15842
15842
|
);
|
|
15843
15843
|
},
|
|
15844
|
-
dropEntityColumn: async (L, N,
|
|
15844
|
+
dropEntityColumn: async (L, N, B = !1) => {
|
|
15845
15845
|
const Y = a();
|
|
15846
15846
|
return await r(
|
|
15847
15847
|
`/api/app/v1/${Y}/entity/${L}/column/${N}`,
|
|
15848
15848
|
{},
|
|
15849
|
-
|
|
15849
|
+
B
|
|
15850
15850
|
);
|
|
15851
15851
|
},
|
|
15852
|
-
saveForeignKey: async (L, N,
|
|
15852
|
+
saveForeignKey: async (L, N, B = !1) => {
|
|
15853
15853
|
const Y = a();
|
|
15854
|
-
return await o(`/api/app/v1/${Y}/entity/foreignKey`, N,
|
|
15854
|
+
return await o(`/api/app/v1/${Y}/entity/foreignKey`, N, B);
|
|
15855
15855
|
},
|
|
15856
15856
|
dropForeignKey: async (L, N = !1) => {
|
|
15857
|
-
const
|
|
15858
|
-
return await r(`/api/app/v1/${
|
|
15857
|
+
const B = a();
|
|
15858
|
+
return await r(`/api/app/v1/${B}/entity/foreignKey`, L, N);
|
|
15859
15859
|
},
|
|
15860
|
-
saveUniqueConstraint: async (L, N,
|
|
15860
|
+
saveUniqueConstraint: async (L, N, B = !1) => {
|
|
15861
15861
|
const Y = a();
|
|
15862
15862
|
return await n(
|
|
15863
15863
|
`/api/app/v1/${Y}/entity/${L}/column/${N}/constraint`,
|
|
15864
|
-
|
|
15864
|
+
B
|
|
15865
15865
|
);
|
|
15866
15866
|
},
|
|
15867
|
-
dropUniqueConstraint: async (L, N,
|
|
15867
|
+
dropUniqueConstraint: async (L, N, B = !1) => {
|
|
15868
15868
|
const Y = a();
|
|
15869
15869
|
return await r(
|
|
15870
15870
|
`/api/app/v1/${Y}/entity/${L}/column/${N}/constraint`,
|
|
15871
15871
|
{},
|
|
15872
|
-
|
|
15872
|
+
B
|
|
15873
15873
|
);
|
|
15874
15874
|
},
|
|
15875
|
-
saveIndex: async (L, N,
|
|
15875
|
+
saveIndex: async (L, N, B = !1) => {
|
|
15876
15876
|
const Y = a();
|
|
15877
15877
|
return await n(
|
|
15878
15878
|
`/api/app/v1/${Y}/entity/${L}/column-index`,
|
|
15879
15879
|
N,
|
|
15880
|
-
|
|
15880
|
+
B
|
|
15881
15881
|
);
|
|
15882
15882
|
},
|
|
15883
|
-
dropIndex: async (L, N,
|
|
15883
|
+
dropIndex: async (L, N, B = !1) => {
|
|
15884
15884
|
const Y = a();
|
|
15885
15885
|
return await r(
|
|
15886
15886
|
`/api/app/v1/${Y}/entity/${L}/column-index`,
|
|
15887
15887
|
N,
|
|
15888
|
-
|
|
15888
|
+
B
|
|
15889
15889
|
);
|
|
15890
15890
|
},
|
|
15891
15891
|
deleteEntity: async (L, N = !1) => {
|
|
15892
|
-
const
|
|
15893
|
-
return await r(`/api/app/v1/${
|
|
15892
|
+
const B = a();
|
|
15893
|
+
return await r(`/api/app/v1/${B}/entity/${L}`, {}, N);
|
|
15894
15894
|
},
|
|
15895
15895
|
getEntityEvents: async (L, N = !1) => {
|
|
15896
|
-
const
|
|
15897
|
-
return await t(`/api/app/v1/${
|
|
15896
|
+
const B = a();
|
|
15897
|
+
return await t(`/api/app/v1/${B}/entity/${L}/event`, N);
|
|
15898
15898
|
},
|
|
15899
|
-
saveEntityEvent: async (L, N,
|
|
15899
|
+
saveEntityEvent: async (L, N, B = !1) => {
|
|
15900
15900
|
const Y = a();
|
|
15901
15901
|
return await n(
|
|
15902
15902
|
`/api/app/v1/${Y}/entity/${L}/event`,
|
|
15903
15903
|
N,
|
|
15904
|
-
|
|
15904
|
+
B
|
|
15905
15905
|
);
|
|
15906
15906
|
},
|
|
15907
15907
|
deleteEntityEvent: async (L, N) => {
|
|
15908
|
-
const
|
|
15909
|
-
return await r(`/api/app/v1/${
|
|
15908
|
+
const B = a();
|
|
15909
|
+
return await r(`/api/app/v1/${B}/entity/${L}/event/${N}`);
|
|
15910
15910
|
},
|
|
15911
|
-
updateEntityEvent: async (L, N,
|
|
15911
|
+
updateEntityEvent: async (L, N, B, Y = !1) => {
|
|
15912
15912
|
const de = a();
|
|
15913
15913
|
return await o(
|
|
15914
15914
|
`/api/app/v1/${de}/entity/${L}/event/${N}`,
|
|
15915
|
-
|
|
15915
|
+
B,
|
|
15916
15916
|
Y
|
|
15917
15917
|
);
|
|
15918
15918
|
},
|
|
@@ -15921,41 +15921,41 @@ function tu() {
|
|
|
15921
15921
|
return await t(`/api/app/v1/${N}/action-type`, L);
|
|
15922
15922
|
},
|
|
15923
15923
|
getActionConfigByType: async (L, N = !1) => {
|
|
15924
|
-
const
|
|
15925
|
-
return await t(`/api/app/v1/${
|
|
15924
|
+
const B = a();
|
|
15925
|
+
return await t(`/api/app/v1/${B}/notification-config/${L}`, N);
|
|
15926
15926
|
},
|
|
15927
|
-
enableCache: async (L, N,
|
|
15927
|
+
enableCache: async (L, N, B = !1) => {
|
|
15928
15928
|
const Y = a();
|
|
15929
15929
|
return await o(
|
|
15930
15930
|
`/api/app/v1/${Y}/entity/${L}/enableCache`,
|
|
15931
15931
|
N,
|
|
15932
|
-
|
|
15932
|
+
B
|
|
15933
15933
|
);
|
|
15934
15934
|
},
|
|
15935
|
-
addOrUpdatePresets: async (L, N,
|
|
15935
|
+
addOrUpdatePresets: async (L, N, B = !1) => {
|
|
15936
15936
|
const Y = a();
|
|
15937
15937
|
return await n(
|
|
15938
15938
|
`/api/app/v1/${Y}/entity/${L}/preset`,
|
|
15939
15939
|
N,
|
|
15940
|
-
|
|
15940
|
+
B
|
|
15941
15941
|
);
|
|
15942
15942
|
},
|
|
15943
15943
|
updateEntity: async (L, N = !1) => {
|
|
15944
|
-
const
|
|
15945
|
-
return await o(`/api/app/v1/${
|
|
15944
|
+
const B = a();
|
|
15945
|
+
return await o(`/api/app/v1/${B}/entity`, L, N);
|
|
15946
15946
|
},
|
|
15947
|
-
deletePreset: async (L, N,
|
|
15947
|
+
deletePreset: async (L, N, B = !1) => {
|
|
15948
15948
|
const Y = a();
|
|
15949
15949
|
return await r(
|
|
15950
15950
|
`/api/app/v1/${Y}/entity/${L}/preset/${N}`,
|
|
15951
15951
|
{},
|
|
15952
|
-
|
|
15952
|
+
B
|
|
15953
15953
|
);
|
|
15954
15954
|
},
|
|
15955
15955
|
validateSqlScript: async (L, N = !1) => {
|
|
15956
|
-
const
|
|
15956
|
+
const B = a();
|
|
15957
15957
|
return await n(
|
|
15958
|
-
`/api/app/v1/${
|
|
15958
|
+
`/api/app/v1/${B}/entity/validate-sql`,
|
|
15959
15959
|
L,
|
|
15960
15960
|
N
|
|
15961
15961
|
);
|
|
@@ -16274,7 +16274,7 @@ const nu = {
|
|
|
16274
16274
|
hasSlotChild: e.hasSlotChild,
|
|
16275
16275
|
onToggle: e.onToggle,
|
|
16276
16276
|
parentItems: e.item.children
|
|
16277
|
-
},
|
|
16277
|
+
}, Bn({ _: 2 }, [
|
|
16278
16278
|
e.hasSlotParent ? {
|
|
16279
16279
|
name: "list-item-menu-parent",
|
|
16280
16280
|
fn: oe((u) => [
|
|
@@ -16340,7 +16340,7 @@ const nu = {
|
|
|
16340
16340
|
hasSlotParent: s.$slots["list-item-menu-parent"],
|
|
16341
16341
|
hasSlotChild: s.$slots["list-item-menu-child"],
|
|
16342
16342
|
onToggle: a
|
|
16343
|
-
},
|
|
16343
|
+
}, Bn({ _: 2 }, [
|
|
16344
16344
|
s.$slots["list-item-menu-parent"] ? {
|
|
16345
16345
|
name: "list-item-menu-parent",
|
|
16346
16346
|
fn: oe((u) => [
|
|
@@ -16699,7 +16699,7 @@ var Ov = function(t) {
|
|
|
16699
16699
|
name: "iconfield",
|
|
16700
16700
|
theme: Ov,
|
|
16701
16701
|
classes: Tv
|
|
16702
|
-
}),
|
|
16702
|
+
}), Rv = {
|
|
16703
16703
|
name: "BaseIconField",
|
|
16704
16704
|
extends: Cn,
|
|
16705
16705
|
style: Iv,
|
|
@@ -16711,15 +16711,15 @@ var Ov = function(t) {
|
|
|
16711
16711
|
}
|
|
16712
16712
|
}, su = {
|
|
16713
16713
|
name: "IconField",
|
|
16714
|
-
extends:
|
|
16714
|
+
extends: Rv,
|
|
16715
16715
|
inheritAttrs: !1
|
|
16716
16716
|
};
|
|
16717
|
-
function
|
|
16717
|
+
function Bv(e, t, n, o, r, a) {
|
|
16718
16718
|
return b(), S("div", te({
|
|
16719
16719
|
class: e.cx("root")
|
|
16720
16720
|
}, e.ptmi("root")), [me(e.$slots, "default")], 16);
|
|
16721
16721
|
}
|
|
16722
|
-
su.render =
|
|
16722
|
+
su.render = Bv;
|
|
16723
16723
|
var Pv = {
|
|
16724
16724
|
root: "p-inputicon"
|
|
16725
16725
|
}, Fv = qe.extend({
|
|
@@ -16840,7 +16840,7 @@ var Nv = {
|
|
|
16840
16840
|
},
|
|
16841
16841
|
computed: {
|
|
16842
16842
|
$filled: function() {
|
|
16843
|
-
return
|
|
16843
|
+
return Re(this.d_value);
|
|
16844
16844
|
},
|
|
16845
16845
|
$invalid: function() {
|
|
16846
16846
|
var t, n, o, r;
|
|
@@ -17602,12 +17602,12 @@ var pu = {
|
|
|
17602
17602
|
return T ? T > V ? T - V : T : 0;
|
|
17603
17603
|
}, c = function(T, V) {
|
|
17604
17604
|
return Math.floor(T / (V || T));
|
|
17605
|
-
}, l = function(T, V, C,
|
|
17606
|
-
return T <= _ ? _ : P ? C -
|
|
17607
|
-
}, u = function(T, V, C,
|
|
17605
|
+
}, l = function(T, V, C, R, _, P) {
|
|
17606
|
+
return T <= _ ? _ : P ? C - R - _ : V + _ - 1;
|
|
17607
|
+
}, u = function(T, V, C, R, _, P, z) {
|
|
17608
17608
|
return T <= P ? 0 : Math.max(0, z ? T < V ? C : T - P : T > V ? C : T - 2 * P);
|
|
17609
|
-
}, f = function(T, V, C,
|
|
17610
|
-
var z = V +
|
|
17609
|
+
}, f = function(T, V, C, R, _, P) {
|
|
17610
|
+
var z = V + R + 2 * _;
|
|
17611
17611
|
return T >= _ && (z += _ + 1), n.getLast(z, P);
|
|
17612
17612
|
}, d = s(o.scrollTop, i.top), p = s(o.scrollLeft, i.left), m = r ? {
|
|
17613
17613
|
rows: 0,
|
|
@@ -18527,7 +18527,7 @@ var gu = {
|
|
|
18527
18527
|
var n = t.target.value;
|
|
18528
18528
|
this.searchValue = "";
|
|
18529
18529
|
var o = this.searchOptions(t, n);
|
|
18530
|
-
!o && (this.focusedOptionIndex = -1), this.updateModel(t, n), !this.overlayVisible &&
|
|
18530
|
+
!o && (this.focusedOptionIndex = -1), this.updateModel(t, n), !this.overlayVisible && Re(n) && this.show();
|
|
18531
18531
|
},
|
|
18532
18532
|
onContainerClick: function(t) {
|
|
18533
18533
|
this.disabled || this.loading || t.target.tagName === "INPUT" || t.target.getAttribute("data-pc-section") === "clearicon" || t.target.closest('[data-pc-section="clearicon"]') || ((!this.overlay || !this.overlay.contains(t.target)) && (this.overlayVisible ? this.hide(!0) : this.show(!0)), this.clicked = !0);
|
|
@@ -18751,7 +18751,7 @@ var gu = {
|
|
|
18751
18751
|
return this.isValidOption(t) && typeof this.getOptionLabel(t) == "string" && ((n = this.getOptionLabel(t)) === null || n === void 0 ? void 0 : n.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)));
|
|
18752
18752
|
},
|
|
18753
18753
|
isValidOption: function(t) {
|
|
18754
|
-
return
|
|
18754
|
+
return Re(t) && !(this.isOptionDisabled(t) || this.isOptionGroup(t));
|
|
18755
18755
|
},
|
|
18756
18756
|
isValidSelectedOption: function(t) {
|
|
18757
18757
|
return this.isValidOption(t) && this.isSelected(t);
|
|
@@ -18801,7 +18801,7 @@ var gu = {
|
|
|
18801
18801
|
var o = this;
|
|
18802
18802
|
this.searchValue = (this.searchValue || "") + n;
|
|
18803
18803
|
var r = -1, a = !1;
|
|
18804
|
-
return
|
|
18804
|
+
return Re(this.searchValue) && (this.focusedOptionIndex !== -1 ? (r = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(i) {
|
|
18805
18805
|
return o.isOptionMatched(i);
|
|
18806
18806
|
}), r = r === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function(i) {
|
|
18807
18807
|
return o.isOptionMatched(i);
|
|
@@ -18894,7 +18894,7 @@ var gu = {
|
|
|
18894
18894
|
return this.filterFields || [this.optionLabel];
|
|
18895
18895
|
},
|
|
18896
18896
|
filterResultMessageText: function() {
|
|
18897
|
-
return
|
|
18897
|
+
return Re(this.visibleOptions) ? this.filterMessageText.replaceAll("{0}", this.visibleOptions.length) : this.emptyFilterMessageText;
|
|
18898
18898
|
},
|
|
18899
18899
|
filterMessageText: function() {
|
|
18900
18900
|
return this.filterMessage || this.$primevue.config.locale.searchMessage || "";
|
|
@@ -18924,7 +18924,7 @@ var gu = {
|
|
|
18924
18924
|
}).length;
|
|
18925
18925
|
},
|
|
18926
18926
|
isClearIconVisible: function() {
|
|
18927
|
-
return this.showClear && this.d_value != null &&
|
|
18927
|
+
return this.showClear && this.d_value != null && Re(this.options);
|
|
18928
18928
|
},
|
|
18929
18929
|
virtualScrollerDisabled: function() {
|
|
18930
18930
|
return !this.virtualScrollerOptions;
|
|
@@ -19058,7 +19058,7 @@ function g1(e, t, n, o, r, a) {
|
|
|
19058
19058
|
appendTo: e.appendTo
|
|
19059
19059
|
}, {
|
|
19060
19060
|
default: oe(function() {
|
|
19061
|
-
return [K(
|
|
19061
|
+
return [K(Ru, te({
|
|
19062
19062
|
name: "p-connected-overlay",
|
|
19063
19063
|
onEnter: a.onOverlayEnter,
|
|
19064
19064
|
onAfterEnter: a.onOverlayAfterEnter,
|
|
@@ -19157,7 +19157,7 @@ function g1(e, t, n, o, r, a) {
|
|
|
19157
19157
|
tabindex: -1,
|
|
19158
19158
|
disabled: a.virtualScrollerDisabled,
|
|
19159
19159
|
pt: e.ptm("virtualScroller")
|
|
19160
|
-
}),
|
|
19160
|
+
}), Bn({
|
|
19161
19161
|
content: oe(function(h) {
|
|
19162
19162
|
var y = h.styleClass, k = h.contentRef, v = h.items, x = h.getItemOptions, E = h.contentStyle, D = h.itemSize;
|
|
19163
19163
|
return [w("ul", te({
|
|
@@ -19667,7 +19667,7 @@ const h1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19667
19667
|
valueField: e.valueField
|
|
19668
19668
|
}, null, 8, ["modelValue", "displayField", "options", "valueField"]));
|
|
19669
19669
|
}
|
|
19670
|
-
}, I1 = { class: "flex items-center" },
|
|
19670
|
+
}, I1 = { class: "flex items-center" }, R1 = {
|
|
19671
19671
|
__name: "DynamicMultiSelection",
|
|
19672
19672
|
props: {
|
|
19673
19673
|
modelValue: {
|
|
@@ -19780,7 +19780,7 @@ const h1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19780
19780
|
}, 8, ["modelValue", "options", "filter", "optionLabel", "optionValue", "placeholder"]);
|
|
19781
19781
|
};
|
|
19782
19782
|
}
|
|
19783
|
-
}, hu = /* @__PURE__ */ Xe(
|
|
19783
|
+
}, hu = /* @__PURE__ */ Xe(R1, [["__scopeId", "data-v-e5723a1c"]]), B1 = { key: 1 }, P1 = "/api/app/v1/${appid}/security/roles", hs = {
|
|
19784
19784
|
__name: "RolesSelection",
|
|
19785
19785
|
props: /* @__PURE__ */ Se({
|
|
19786
19786
|
valueField: {
|
|
@@ -19838,7 +19838,7 @@ const h1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19838
19838
|
onOnChange: i,
|
|
19839
19839
|
valueField: e.valueField,
|
|
19840
19840
|
placeholder: "Select Roles..."
|
|
19841
|
-
}, null, 8, ["modelValue", "options", "valueField"])) : (b(), S("p",
|
|
19841
|
+
}, null, 8, ["modelValue", "options", "valueField"])) : (b(), S("p", B1, "You do not have the required permissions to access this feature."));
|
|
19842
19842
|
}
|
|
19843
19843
|
}, F1 = { key: 1 }, A1 = "/api/app/v1/${appid}/security/permission", bs = {
|
|
19844
19844
|
__name: "PermissionSelection",
|
|
@@ -20339,8 +20339,8 @@ const cw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20339
20339
|
s.value.trim() && y(s.value);
|
|
20340
20340
|
}, E = () => {
|
|
20341
20341
|
dt(() => {
|
|
20342
|
-
var V, C,
|
|
20343
|
-
const T = ((C = (V = a.value) == null ? void 0 : V.$el) == null ? void 0 : C.querySelector("input")) || ((
|
|
20342
|
+
var V, C, R, _;
|
|
20343
|
+
const T = ((C = (V = a.value) == null ? void 0 : V.$el) == null ? void 0 : C.querySelector("input")) || ((R = a.value) == null ? void 0 : R.$el) || a.value;
|
|
20344
20344
|
(_ = T == null ? void 0 : T.focus) == null || _.call(T);
|
|
20345
20345
|
});
|
|
20346
20346
|
}, D = (T) => {
|
|
@@ -20360,7 +20360,7 @@ const cw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20360
20360
|
}), Kr(() => {
|
|
20361
20361
|
document.removeEventListener("click", W);
|
|
20362
20362
|
}), (T, V) => {
|
|
20363
|
-
const C = q("Chip"),
|
|
20363
|
+
const C = q("Chip"), R = q("InputText"), _ = q("Button");
|
|
20364
20364
|
return b(), S("div", {
|
|
20365
20365
|
class: "relative w-full multi-select-chips-wrapper",
|
|
20366
20366
|
onClick: O
|
|
@@ -20379,7 +20379,7 @@ const cw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20379
20379
|
class: "m-0 flex-shrink-0 whitespace-nowrap h-fit self-center"
|
|
20380
20380
|
}, null, 8, ["label", "onRemove"]))), 128)),
|
|
20381
20381
|
w("div", dw, [
|
|
20382
|
-
K(
|
|
20382
|
+
K(R, {
|
|
20383
20383
|
style: { border: "none" },
|
|
20384
20384
|
ref_key: "inputRef",
|
|
20385
20385
|
ref: a,
|
|
@@ -22085,7 +22085,7 @@ var kw = {
|
|
|
22085
22085
|
subtitle: {
|
|
22086
22086
|
color: "{text.muted.color}"
|
|
22087
22087
|
}
|
|
22088
|
-
},
|
|
22088
|
+
}, Rw = {
|
|
22089
22089
|
root: {
|
|
22090
22090
|
transitionDuration: "{transition.duration}"
|
|
22091
22091
|
},
|
|
@@ -22124,7 +22124,7 @@ var kw = {
|
|
|
22124
22124
|
}
|
|
22125
22125
|
}
|
|
22126
22126
|
}
|
|
22127
|
-
},
|
|
22127
|
+
}, Bw = {
|
|
22128
22128
|
root: {
|
|
22129
22129
|
background: "{form.field.background}",
|
|
22130
22130
|
disabledBackground: "{form.field.disabled.background}",
|
|
@@ -24449,7 +24449,7 @@ var kw = {
|
|
|
24449
24449
|
}
|
|
24450
24450
|
}
|
|
24451
24451
|
}
|
|
24452
|
-
},
|
|
24452
|
+
}, Rk = {
|
|
24453
24453
|
root: {
|
|
24454
24454
|
background: "{form.field.background}",
|
|
24455
24455
|
disabledBackground: "{form.field.disabled.background}",
|
|
@@ -24533,7 +24533,7 @@ var kw = {
|
|
|
24533
24533
|
emptyMessage: {
|
|
24534
24534
|
padding: "{list.option.padding}"
|
|
24535
24535
|
}
|
|
24536
|
-
},
|
|
24536
|
+
}, Bk = {
|
|
24537
24537
|
root: {
|
|
24538
24538
|
borderRadius: "{form.field.border.radius}"
|
|
24539
24539
|
},
|
|
@@ -25779,8 +25779,8 @@ var ax = Os(Os({}, $w), {}, {
|
|
|
25779
25779
|
button: Tw,
|
|
25780
25780
|
datepicker: zw,
|
|
25781
25781
|
card: Iw,
|
|
25782
|
-
carousel:
|
|
25783
|
-
cascadeselect:
|
|
25782
|
+
carousel: Rw,
|
|
25783
|
+
cascadeselect: Bw,
|
|
25784
25784
|
checkbox: Pw,
|
|
25785
25785
|
chip: Fw,
|
|
25786
25786
|
colorpicker: Aw,
|
|
@@ -25831,8 +25831,8 @@ var ax = Os(Os({}, $w), {}, {
|
|
|
25831
25831
|
radiobutton: Ek,
|
|
25832
25832
|
rating: Ok,
|
|
25833
25833
|
scrollpanel: Ik,
|
|
25834
|
-
select:
|
|
25835
|
-
selectbutton:
|
|
25834
|
+
select: Rk,
|
|
25835
|
+
selectbutton: Bk,
|
|
25836
25836
|
skeleton: Pk,
|
|
25837
25837
|
slider: Fk,
|
|
25838
25838
|
speeddial: Ak,
|
|
@@ -26087,15 +26087,15 @@ function kx() {
|
|
|
26087
26087
|
function xx() {
|
|
26088
26088
|
const e = new fa();
|
|
26089
26089
|
return { externalRestAPICall: async (n, o = !1) => {
|
|
26090
|
-
var r;
|
|
26090
|
+
var r, a, i;
|
|
26091
26091
|
try {
|
|
26092
26092
|
n.httpMethod = (r = n.httpMethod) == null ? void 0 : r.toUpperCase();
|
|
26093
|
-
const
|
|
26094
|
-
if ((
|
|
26095
|
-
throw a;
|
|
26096
|
-
return
|
|
26097
|
-
} catch (
|
|
26098
|
-
throw
|
|
26093
|
+
const s = await e.externalRestAPI(n, o);
|
|
26094
|
+
if ((s == null ? void 0 : s.success) === !1)
|
|
26095
|
+
throw (a = s == null ? void 0 : s.response) == null ? void 0 : a.result;
|
|
26096
|
+
return ((i = s == null ? void 0 : s.response) == null ? void 0 : i.result) ?? (s == null ? void 0 : s.response);
|
|
26097
|
+
} catch (s) {
|
|
26098
|
+
throw s;
|
|
26099
26099
|
} finally {
|
|
26100
26100
|
}
|
|
26101
26101
|
} };
|
|
@@ -26388,7 +26388,7 @@ function Ix({
|
|
|
26388
26388
|
console.log("📣 openGlobalDialog called"), console.log({ typppessss: e, title: t, message: n, onSuccess: o, onCancel: r });
|
|
26389
26389
|
const a = $(!0), i = document.createElement("div");
|
|
26390
26390
|
document.body.appendChild(i);
|
|
26391
|
-
const s =
|
|
26391
|
+
const s = Bu({
|
|
26392
26392
|
setup() {
|
|
26393
26393
|
function c() {
|
|
26394
26394
|
o(), u();
|
|
@@ -26416,7 +26416,7 @@ function Ix({
|
|
|
26416
26416
|
});
|
|
26417
26417
|
s.mount(i);
|
|
26418
26418
|
}
|
|
26419
|
-
function
|
|
26419
|
+
function Rx() {
|
|
26420
26420
|
const e = je(), { get: t, post: n, put: o, del: r } = rt(), a = () => e.getAppId();
|
|
26421
26421
|
return {
|
|
26422
26422
|
getAssets: async (u, f = 0, d = 50, p = !1) => {
|
|
@@ -26440,7 +26440,7 @@ function Bx() {
|
|
|
26440
26440
|
}
|
|
26441
26441
|
};
|
|
26442
26442
|
}
|
|
26443
|
-
function
|
|
26443
|
+
function Bx() {
|
|
26444
26444
|
const e = je(), { get: t, post: n, put: o, del: r } = rt(), a = () => e.getAppId();
|
|
26445
26445
|
return {
|
|
26446
26446
|
getExtrenalSystemByID: async (d, p = !1) => {
|
|
@@ -26494,13 +26494,15 @@ function Fx() {
|
|
|
26494
26494
|
je();
|
|
26495
26495
|
const { get: e, post: t, put: n, del: o } = rt();
|
|
26496
26496
|
return {
|
|
26497
|
-
getSubUsers: async (
|
|
26498
|
-
createSubUser: async (
|
|
26499
|
-
inviteSubUser: async (
|
|
26500
|
-
acceptSubUser: async (
|
|
26501
|
-
editSubUser: async (
|
|
26502
|
-
deleteSubUser: async (
|
|
26503
|
-
setSubuserStatus: async (
|
|
26497
|
+
getSubUsers: async (p = !1) => await e("/api/platform/v1/user/sub-users", p),
|
|
26498
|
+
createSubUser: async (p, m = !1) => await t("/api/platform/v1/user", p, m),
|
|
26499
|
+
inviteSubUser: async (p, m) => await t("/api/platform/v1/user/invitation", p, m),
|
|
26500
|
+
acceptSubUser: async (p, m) => await t(`/api/platform/v1/user/invitation/accept?token=${p.token}`, p, m),
|
|
26501
|
+
editSubUser: async (p, m, g) => await n(`/api/platform/v1/user/${p}`, m, g),
|
|
26502
|
+
deleteSubUser: async (p, m) => await o(`/api/platform/v1/user/${p}`, {}, m),
|
|
26503
|
+
setSubuserStatus: async (p, m, g) => await n(`/api/platform/v1/user/${p}/status`, m, g),
|
|
26504
|
+
getAllPlatFormRoles: async (p = !1) => await e("/api/platform/v1/roles", p),
|
|
26505
|
+
getPlatFormRolePermissions: async (p, m = !1) => await e(`/api/platform/v1/role/${p}/permission`, m)
|
|
26504
26506
|
};
|
|
26505
26507
|
}
|
|
26506
26508
|
const Ax = {
|
|
@@ -26512,7 +26514,7 @@ export {
|
|
|
26512
26514
|
Ax as default,
|
|
26513
26515
|
Ix as openGlobalDialog,
|
|
26514
26516
|
wx as useAddEntityRecord,
|
|
26515
|
-
|
|
26517
|
+
Rx as useAssetsService,
|
|
26516
26518
|
uw as useClassesService,
|
|
26517
26519
|
$x as useComponentService,
|
|
26518
26520
|
Tx as useConnectionService,
|
|
@@ -26525,7 +26527,7 @@ export {
|
|
|
26525
26527
|
Sx as useExecuteQuery,
|
|
26526
26528
|
xx as useExternalRestAPI,
|
|
26527
26529
|
fa as useExternalRestService,
|
|
26528
|
-
|
|
26530
|
+
Bx as useExternalSystemService,
|
|
26529
26531
|
vx as useGetAllEntityRecords,
|
|
26530
26532
|
yx as useGetEntityRecord,
|
|
26531
26533
|
je as useGlobalConfigsStore,
|