codesaaz-core 0.2.7 → 0.2.8
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 +861 -849
- package/dist/codesaaz.umd.js +14 -14
- package/package.json +1 -1
package/dist/codesaaz.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mergeModels as xe, useModel as Ae, resolveComponent as K, openBlock as
|
|
1
|
+
import { mergeModels as xe, useModel as Ae, resolveComponent as K, openBlock as b, createBlock as j, mergeProps as te, computed as ne, hasInjectionContext as bu, inject as ot, toRaw as Ts, isRef as Vt, isReactive as Wr, toRef as yu, ref as E, watch as $e, reactive as Lt, effectScope as vu, getCurrentScope as wu, onScopeDispose as ku, nextTick as ct, toRefs as xu, markRaw as Su, createElementBlock as x, Fragment as ie, createElementVNode as v, createTextVNode as et, toDisplayString as Z, createCommentVNode as U, renderList as Ce, createVNode as q, toValue as Te, unref as ee, onMounted as Le, provide as sn, readonly as Is, watchEffect as Io, shallowRef as Cu, withCtx as oe, onUpdated as Bs, normalizeProps as Xt, guardReactiveProps as bo, renderSlot as fe, createSlots as Rn, withKeys as Wo, withModifiers as mn, withDirectives as xt, vShow as Eu, resolveDirective as qr, normalizeClass as ye, resolveDynamicComponent as De, defineComponent as _n, h as tt, shallowReactive as $r, onBeforeUnmount as Kr, useId as $u, getCurrentInstance as Rs, onUnmounted as Ou, cloneVNode as Tu, Teleport as Iu, Transition as Bu, normalizeStyle as Zn, vModelText as Pn, vModelCheckbox as Ps, createApp as Ru } 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 = {
|
|
@@ -24,7 +24,7 @@ const ma = {
|
|
|
24
24
|
const t = Ae(e, "modelValue");
|
|
25
25
|
return (n, o) => {
|
|
26
26
|
const r = K("InputText", !0);
|
|
27
|
-
return
|
|
27
|
+
return b(), j(r, te({
|
|
28
28
|
placeholder: e.placeholder,
|
|
29
29
|
disabled: e.disabled,
|
|
30
30
|
size: e.size,
|
|
@@ -68,7 +68,7 @@ const ma = {
|
|
|
68
68
|
const t = Ae(e, "modelValue");
|
|
69
69
|
return (n, o) => {
|
|
70
70
|
const r = K("InputNumber", !0);
|
|
71
|
-
return
|
|
71
|
+
return b(), j(r, te({
|
|
72
72
|
modelValue: t.value,
|
|
73
73
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
74
74
|
placeholder: e.placeholder,
|
|
@@ -95,7 +95,7 @@ const ma = {
|
|
|
95
95
|
const t = Ae(e, "modelValue");
|
|
96
96
|
return (n, o) => {
|
|
97
97
|
const r = K("ToggleSwitch");
|
|
98
|
-
return
|
|
98
|
+
return b(), j(r, {
|
|
99
99
|
modelValue: t.value,
|
|
100
100
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
101
101
|
disabled: e.disabled
|
|
@@ -124,7 +124,7 @@ const ma = {
|
|
|
124
124
|
const t = Ae(e, "modelValue");
|
|
125
125
|
return (n, o) => {
|
|
126
126
|
const r = K("RadioButton", !0);
|
|
127
|
-
return
|
|
127
|
+
return b(), j(r, {
|
|
128
128
|
modelValue: t.value,
|
|
129
129
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
130
130
|
value: e.optionValue,
|
|
@@ -148,7 +148,7 @@ const ma = {
|
|
|
148
148
|
const t = Ae(e, "modelValue");
|
|
149
149
|
return (n, o) => {
|
|
150
150
|
const r = K("ColorPicker", !0);
|
|
151
|
-
return
|
|
151
|
+
return b(), j(r, te({
|
|
152
152
|
modelValue: t.value,
|
|
153
153
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
154
154
|
format: e.format
|
|
@@ -182,7 +182,7 @@ const ma = {
|
|
|
182
182
|
const t = Ae(e, "modelValue");
|
|
183
183
|
return (n, o) => {
|
|
184
184
|
const r = K("DatePicker", !0);
|
|
185
|
-
return
|
|
185
|
+
return b(), j(r, te({
|
|
186
186
|
modelValue: t.value,
|
|
187
187
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
188
188
|
placeholder: e.placeholder,
|
|
@@ -225,7 +225,7 @@ const ma = {
|
|
|
225
225
|
const t = Ae(e, "modelValue");
|
|
226
226
|
return (n, o) => {
|
|
227
227
|
const r = K("Textarea");
|
|
228
|
-
return
|
|
228
|
+
return b(), j(r, te({
|
|
229
229
|
modelValue: t.value,
|
|
230
230
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
231
231
|
rows: e.rows,
|
|
@@ -261,7 +261,7 @@ const ma = {
|
|
|
261
261
|
const t = Ae(e, "modelValue");
|
|
262
262
|
return (n, o) => {
|
|
263
263
|
const r = K("Password");
|
|
264
|
-
return
|
|
264
|
+
return b(), j(r, te({
|
|
265
265
|
placeholder: e.placeholder,
|
|
266
266
|
disabled: e.disabled,
|
|
267
267
|
size: e.size,
|
|
@@ -299,7 +299,7 @@ const ma = {
|
|
|
299
299
|
const t = Ae(e, "modelValue");
|
|
300
300
|
return (n, o) => {
|
|
301
301
|
const r = K("DatePicker");
|
|
302
|
-
return
|
|
302
|
+
return b(), j(r, te({
|
|
303
303
|
modelValue: t.value,
|
|
304
304
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
305
305
|
placeholder: e.placeholder,
|
|
@@ -348,7 +348,7 @@ const ma = {
|
|
|
348
348
|
});
|
|
349
349
|
return (r, a) => {
|
|
350
350
|
const i = K("Knob");
|
|
351
|
-
return
|
|
351
|
+
return b(), j(i, te({
|
|
352
352
|
modelValue: n.value,
|
|
353
353
|
"onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
|
|
354
354
|
min: e.min,
|
|
@@ -385,7 +385,7 @@ const ma = {
|
|
|
385
385
|
const t = Ae(e, "modelValue");
|
|
386
386
|
return (n, o) => {
|
|
387
387
|
const r = K("InputMask", !0);
|
|
388
|
-
return
|
|
388
|
+
return b(), j(r, te({
|
|
389
389
|
id: "basic",
|
|
390
390
|
modelValue: t.value,
|
|
391
391
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
@@ -420,7 +420,7 @@ const ma = {
|
|
|
420
420
|
const t = Ae(e, "modelValue");
|
|
421
421
|
return (n, o) => {
|
|
422
422
|
const r = K("InputOtp");
|
|
423
|
-
return
|
|
423
|
+
return b(), j(r, te({
|
|
424
424
|
modelValue: t.value,
|
|
425
425
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
426
426
|
mask: e.mask,
|
|
@@ -448,7 +448,7 @@ const ma = {
|
|
|
448
448
|
const t = Ae(e, "modelValue");
|
|
449
449
|
return (n, o) => {
|
|
450
450
|
const r = K("Rating");
|
|
451
|
-
return
|
|
451
|
+
return b(), j(r, te({
|
|
452
452
|
modelValue: t.value,
|
|
453
453
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
454
454
|
stars: e.stars,
|
|
@@ -480,7 +480,7 @@ const ma = {
|
|
|
480
480
|
const t = Ae(e, "modelValue");
|
|
481
481
|
return (n, o) => {
|
|
482
482
|
const r = K("Slider");
|
|
483
|
-
return
|
|
483
|
+
return b(), j(r, te({
|
|
484
484
|
modelValue: t.value,
|
|
485
485
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
|
|
486
486
|
step: e.step,
|
|
@@ -566,7 +566,7 @@ function Ds(e, t, n = {}, o, r, a) {
|
|
|
566
566
|
const m = o.state.value[e];
|
|
567
567
|
!a && !m && (o.state.value[e] = {}), E({});
|
|
568
568
|
let g;
|
|
569
|
-
function
|
|
569
|
+
function h(O) {
|
|
570
570
|
let M;
|
|
571
571
|
l = u = !1, typeof O == "function" ? (O(o.state.value[e]), M = {
|
|
572
572
|
type: Yn.patchFunction,
|
|
@@ -592,10 +592,10 @@ function Ds(e, t, n = {}, o, r, a) {
|
|
|
592
592
|
/* istanbul ignore next */
|
|
593
593
|
_s
|
|
594
594
|
);
|
|
595
|
-
function
|
|
595
|
+
function w() {
|
|
596
596
|
i.stop(), f = [], d = [], o._s.delete(e);
|
|
597
597
|
}
|
|
598
|
-
const
|
|
598
|
+
const k = (O, M = "") => {
|
|
599
599
|
if (Ia in O)
|
|
600
600
|
return O[cr] = M, O;
|
|
601
601
|
const W = function() {
|
|
@@ -628,7 +628,7 @@ function Ds(e, t, n = {}, o, r, a) {
|
|
|
628
628
|
// _s: scope,
|
|
629
629
|
$id: e,
|
|
630
630
|
$onAction: Ta.bind(null, d),
|
|
631
|
-
$patch:
|
|
631
|
+
$patch: h,
|
|
632
632
|
$reset: y,
|
|
633
633
|
$subscribe(O, M = {}) {
|
|
634
634
|
const W = Ta(f, O, M.detached, () => T()), T = i.run(() => $e(() => o.state.value[e], (V) => {
|
|
@@ -640,23 +640,23 @@ function Ds(e, t, n = {}, o, r, a) {
|
|
|
640
640
|
}, nn({}, c, M)));
|
|
641
641
|
return W;
|
|
642
642
|
},
|
|
643
|
-
$dispose:
|
|
643
|
+
$dispose: w
|
|
644
644
|
}, $ = Lt(S);
|
|
645
645
|
o._s.set(e, $);
|
|
646
|
-
const I = (o._a && o._a.runWithContext || Au)(() => o._e.run(() => (i = vu()).run(() => t({ action:
|
|
646
|
+
const I = (o._a && o._a.runWithContext || Au)(() => o._e.run(() => (i = vu()).run(() => t({ action: k }))));
|
|
647
647
|
for (const O in I) {
|
|
648
648
|
const M = I[O];
|
|
649
649
|
if (Vt(M) && !Nu(M) || Wr(M))
|
|
650
650
|
a || (m && Du(M) && (Vt(M) ? M.value = m[O] : Tr(M, m[O])), o.state.value[e][O] = M);
|
|
651
651
|
else if (typeof M == "function") {
|
|
652
|
-
const W =
|
|
652
|
+
const W = k(M, O);
|
|
653
653
|
I[O] = W, s.actions[O] = M;
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
return nn($, I), nn(Ts($), I), Object.defineProperty($, "$state", {
|
|
657
657
|
get: () => o.state.value[e],
|
|
658
658
|
set: (O) => {
|
|
659
|
-
|
|
659
|
+
h((M) => {
|
|
660
660
|
nn(M, O);
|
|
661
661
|
});
|
|
662
662
|
}
|
|
@@ -1026,8 +1026,8 @@ function Xo(e, t, n) {
|
|
|
1026
1026
|
metaTokens: !0,
|
|
1027
1027
|
dots: !1,
|
|
1028
1028
|
indexes: !1
|
|
1029
|
-
}, !1, function(g,
|
|
1030
|
-
return !H.isUndefined(
|
|
1029
|
+
}, !1, function(g, h) {
|
|
1030
|
+
return !H.isUndefined(h[g]);
|
|
1031
1031
|
});
|
|
1032
1032
|
const o = n.metaTokens, r = n.visitor || u, a = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && H.isSpecCompliantForm(t);
|
|
1033
1033
|
if (!H.isFunction(r))
|
|
@@ -1040,21 +1040,21 @@ function Xo(e, t, n) {
|
|
|
1040
1040
|
throw new we("Blob is not supported. Use a Buffer instead.");
|
|
1041
1041
|
return H.isArrayBuffer(m) || H.isTypedArray(m) ? c && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
1042
1042
|
}
|
|
1043
|
-
function u(m, g,
|
|
1043
|
+
function u(m, g, h) {
|
|
1044
1044
|
let y = m;
|
|
1045
|
-
if (m && !
|
|
1045
|
+
if (m && !h && typeof m == "object") {
|
|
1046
1046
|
if (H.endsWith(g, "{}"))
|
|
1047
1047
|
g = o ? g : g.slice(0, -2), m = JSON.stringify(m);
|
|
1048
1048
|
else if (H.isArray(m) && $c(m) || (H.isFileList(m) || H.endsWith(g, "[]")) && (y = H.toArray(m)))
|
|
1049
|
-
return g = Ks(g), y.forEach(function(
|
|
1050
|
-
!(H.isUndefined(
|
|
1049
|
+
return g = Ks(g), y.forEach(function(k, S) {
|
|
1050
|
+
!(H.isUndefined(k) || k === null) && t.append(
|
|
1051
1051
|
// eslint-disable-next-line no-nested-ternary
|
|
1052
1052
|
i === !0 ? Pa([g], S, a) : i === null ? g : g + "[]",
|
|
1053
|
-
l(
|
|
1053
|
+
l(k)
|
|
1054
1054
|
);
|
|
1055
1055
|
}), !1;
|
|
1056
1056
|
}
|
|
1057
|
-
return Br(m) ? !0 : (t.append(Pa(
|
|
1057
|
+
return Br(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,
|
|
@@ -1065,14 +1065,14 @@ function Xo(e, t, n) {
|
|
|
1065
1065
|
if (!H.isUndefined(m)) {
|
|
1066
1066
|
if (f.indexOf(m) !== -1)
|
|
1067
1067
|
throw Error("Circular reference detected in " + g.join("."));
|
|
1068
|
-
f.push(m), H.forEach(m, function(y,
|
|
1068
|
+
f.push(m), H.forEach(m, function(y, w) {
|
|
1069
1069
|
(!(H.isUndefined(y) || y === null) && r.call(
|
|
1070
1070
|
t,
|
|
1071
1071
|
y,
|
|
1072
|
-
H.isString(
|
|
1072
|
+
H.isString(w) ? w.trim() : w,
|
|
1073
1073
|
g,
|
|
1074
1074
|
d
|
|
1075
|
-
)) === !0 && p(y, g ? g.concat(
|
|
1075
|
+
)) === !0 && p(y, g ? g.concat(w) : [w]);
|
|
1076
1076
|
}), f.pop();
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
@@ -1729,53 +1729,53 @@ const tl = (e) => {
|
|
|
1729
1729
|
function g() {
|
|
1730
1730
|
p && p(), m && m(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
|
|
1731
1731
|
}
|
|
1732
|
-
let
|
|
1733
|
-
|
|
1732
|
+
let h = new XMLHttpRequest();
|
|
1733
|
+
h.open(r.method.toUpperCase(), r.url, !0), h.timeout = r.timeout;
|
|
1734
1734
|
function y() {
|
|
1735
|
-
if (!
|
|
1735
|
+
if (!h)
|
|
1736
1736
|
return;
|
|
1737
|
-
const
|
|
1738
|
-
"getAllResponseHeaders" in
|
|
1737
|
+
const k = ft.from(
|
|
1738
|
+
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1739
1739
|
), $ = {
|
|
1740
|
-
data: !s || s === "text" || s === "json" ?
|
|
1741
|
-
status:
|
|
1742
|
-
statusText:
|
|
1743
|
-
headers:
|
|
1740
|
+
data: !s || s === "text" || s === "json" ? h.responseText : h.response,
|
|
1741
|
+
status: h.status,
|
|
1742
|
+
statusText: h.statusText,
|
|
1743
|
+
headers: k,
|
|
1744
1744
|
config: e,
|
|
1745
|
-
request:
|
|
1745
|
+
request: h
|
|
1746
1746
|
};
|
|
1747
1747
|
Zs(function(I) {
|
|
1748
1748
|
n(I), g();
|
|
1749
1749
|
}, function(I) {
|
|
1750
1750
|
o(I), g();
|
|
1751
|
-
}, $),
|
|
1752
|
-
}
|
|
1753
|
-
"onloadend" in
|
|
1754
|
-
!
|
|
1755
|
-
},
|
|
1756
|
-
|
|
1757
|
-
},
|
|
1758
|
-
o(new we("Network Error", we.ERR_NETWORK, e,
|
|
1759
|
-
},
|
|
1751
|
+
}, $), h = null;
|
|
1752
|
+
}
|
|
1753
|
+
"onloadend" in h ? h.onloadend = y : h.onreadystatechange = function() {
|
|
1754
|
+
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(y);
|
|
1755
|
+
}, h.onabort = function() {
|
|
1756
|
+
h && (o(new we("Request aborted", we.ECONNABORTED, e, h)), h = null);
|
|
1757
|
+
}, h.onerror = function() {
|
|
1758
|
+
o(new we("Network Error", we.ERR_NETWORK, e, h)), h = null;
|
|
1759
|
+
}, h.ontimeout = function() {
|
|
1760
1760
|
let S = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
1761
1761
|
const $ = r.transitional || Xs;
|
|
1762
1762
|
r.timeoutErrorMessage && (S = r.timeoutErrorMessage), o(new we(
|
|
1763
1763
|
S,
|
|
1764
1764
|
$.clarifyTimeoutError ? we.ETIMEDOUT : we.ECONNABORTED,
|
|
1765
1765
|
e,
|
|
1766
|
-
|
|
1767
|
-
)),
|
|
1768
|
-
}, a === void 0 && i.setContentType(null), "setRequestHeader" in
|
|
1769
|
-
|
|
1770
|
-
}), H.isUndefined(r.withCredentials) || (
|
|
1771
|
-
|
|
1766
|
+
h
|
|
1767
|
+
)), h = null;
|
|
1768
|
+
}, a === void 0 && i.setContentType(null), "setRequestHeader" in h && H.forEach(i.toJSON(), function(S, $) {
|
|
1769
|
+
h.setRequestHeader($, S);
|
|
1770
|
+
}), H.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), s && s !== "json" && (h.responseType = r.responseType), l && ([d, m] = Do(l, !0), h.addEventListener("progress", d)), c && h.upload && ([f, p] = Do(c), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", p)), (r.cancelToken || r.signal) && (u = (k) => {
|
|
1771
|
+
h && (o(!k || k.type ? new Nn(null, e, h) : k), h.abort(), h = null);
|
|
1772
1772
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
1773
|
-
const
|
|
1774
|
-
if (
|
|
1775
|
-
o(new we("Unsupported protocol " +
|
|
1773
|
+
const w = Kc(r.url);
|
|
1774
|
+
if (w && it.protocols.indexOf(w) === -1) {
|
|
1775
|
+
o(new we("Unsupported protocol " + w + ":", we.ERR_BAD_REQUEST, e));
|
|
1776
1776
|
return;
|
|
1777
1777
|
}
|
|
1778
|
-
|
|
1778
|
+
h.send(a || null);
|
|
1779
1779
|
});
|
|
1780
1780
|
}, nd = (e, t) => {
|
|
1781
1781
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
@@ -1920,9 +1920,9 @@ const ld = async (e) => {
|
|
|
1920
1920
|
const g = p && p.unsubscribe && (() => {
|
|
1921
1921
|
p.unsubscribe();
|
|
1922
1922
|
});
|
|
1923
|
-
let
|
|
1923
|
+
let h;
|
|
1924
1924
|
try {
|
|
1925
|
-
if (c && sd && n !== "get" && n !== "head" && (
|
|
1925
|
+
if (c && sd && n !== "get" && n !== "head" && (h = await ud(u, o)) !== 0) {
|
|
1926
1926
|
let $ = new Request(t, {
|
|
1927
1927
|
method: "POST",
|
|
1928
1928
|
body: o,
|
|
@@ -1930,7 +1930,7 @@ const ld = async (e) => {
|
|
|
1930
1930
|
}), N;
|
|
1931
1931
|
if (H.isFormData(o) && (N = $.headers.get("content-type")) && u.setContentType(N), $.body) {
|
|
1932
1932
|
const [I, O] = Da(
|
|
1933
|
-
|
|
1933
|
+
h,
|
|
1934
1934
|
Do(Na(c))
|
|
1935
1935
|
);
|
|
1936
1936
|
o = Va($.body, za, I, O);
|
|
@@ -1947,32 +1947,32 @@ const ld = async (e) => {
|
|
|
1947
1947
|
duplex: "half",
|
|
1948
1948
|
credentials: y ? f : void 0
|
|
1949
1949
|
});
|
|
1950
|
-
let
|
|
1951
|
-
const
|
|
1952
|
-
if (Pr && (s ||
|
|
1950
|
+
let w = await fetch(m);
|
|
1951
|
+
const k = Pr && (l === "stream" || l === "response");
|
|
1952
|
+
if (Pr && (s || k && g)) {
|
|
1953
1953
|
const $ = {};
|
|
1954
1954
|
["status", "statusText", "headers"].forEach((M) => {
|
|
1955
|
-
$[M] =
|
|
1955
|
+
$[M] = w[M];
|
|
1956
1956
|
});
|
|
1957
|
-
const N = H.toFiniteNumber(
|
|
1957
|
+
const N = H.toFiniteNumber(w.headers.get("content-length")), [I, O] = s && Da(
|
|
1958
1958
|
N,
|
|
1959
1959
|
Do(Na(s), !0)
|
|
1960
1960
|
) || [];
|
|
1961
|
-
|
|
1962
|
-
Va(
|
|
1961
|
+
w = new Response(
|
|
1962
|
+
Va(w.body, za, I, () => {
|
|
1963
1963
|
O && O(), g && g();
|
|
1964
1964
|
}),
|
|
1965
1965
|
$
|
|
1966
1966
|
);
|
|
1967
1967
|
}
|
|
1968
1968
|
l = l || "text";
|
|
1969
|
-
let S = await No[H.findKey(No, l) || "text"](
|
|
1970
|
-
return !
|
|
1969
|
+
let S = await No[H.findKey(No, l) || "text"](w, e);
|
|
1970
|
+
return !k && g && g(), await new Promise(($, N) => {
|
|
1971
1971
|
Zs($, N, {
|
|
1972
1972
|
data: S,
|
|
1973
|
-
headers: ft.from(
|
|
1974
|
-
status:
|
|
1975
|
-
statusText:
|
|
1973
|
+
headers: ft.from(w.headers),
|
|
1974
|
+
status: w.status,
|
|
1975
|
+
statusText: w.statusText,
|
|
1976
1976
|
config: e,
|
|
1977
1977
|
request: m
|
|
1978
1978
|
});
|
|
@@ -2181,8 +2181,8 @@ class bn {
|
|
|
2181
2181
|
const m = s[f++], g = s[f++];
|
|
2182
2182
|
try {
|
|
2183
2183
|
p = m(p);
|
|
2184
|
-
} catch (
|
|
2185
|
-
g.call(this,
|
|
2184
|
+
} catch (h) {
|
|
2185
|
+
g.call(this, h);
|
|
2186
2186
|
break;
|
|
2187
2187
|
}
|
|
2188
2188
|
}
|
|
@@ -2471,16 +2471,16 @@ function mt() {
|
|
|
2471
2471
|
headers: d = {},
|
|
2472
2472
|
showLoader: p = !1
|
|
2473
2473
|
}) => {
|
|
2474
|
-
const m = l.startsWith("http") ? l : o() + l, g = r(d),
|
|
2474
|
+
const m = l.startsWith("http") ? l : o() + l, g = r(d), h = f ? a(f) : null;
|
|
2475
2475
|
try {
|
|
2476
2476
|
const y = {
|
|
2477
2477
|
url: m,
|
|
2478
2478
|
method: u,
|
|
2479
2479
|
headers: g,
|
|
2480
|
-
data:
|
|
2480
|
+
data: h,
|
|
2481
2481
|
showLoader: p
|
|
2482
|
-
},
|
|
2483
|
-
return i(
|
|
2482
|
+
}, w = await n.request(y);
|
|
2483
|
+
return i(w);
|
|
2484
2484
|
} catch (y) {
|
|
2485
2485
|
return s(y);
|
|
2486
2486
|
}
|
|
@@ -2495,41 +2495,41 @@ function mt() {
|
|
|
2495
2495
|
function bt() {
|
|
2496
2496
|
const e = We(), { get: t, post: n, put: o, del: r } = mt(), a = () => e.getAppId();
|
|
2497
2497
|
return {
|
|
2498
|
-
getEntityRecords: async (g,
|
|
2499
|
-
const
|
|
2500
|
-
return await t(S,
|
|
2498
|
+
getEntityRecords: async (g, h = !1, y = {}) => {
|
|
2499
|
+
const w = a(), k = new URLSearchParams(y).toString(), S = k ? `/api/app/v1/${w}/entity/${g}/record?${k}` : `/api/app/v1/${w}/entity/${g}/record`;
|
|
2500
|
+
return await t(S, h);
|
|
2501
2501
|
},
|
|
2502
|
-
searchEntityRecords: async (g,
|
|
2503
|
-
const
|
|
2504
|
-
return await n(`/api/app/v1/${
|
|
2505
|
-
},
|
|
2506
|
-
getRelatedEntityRecord: async (g, b, y = !1) => {
|
|
2507
|
-
const k = a();
|
|
2508
|
-
return await t(`/api/app/v1/${k}/entity/${g}/link/record/${b}?fetchRelatedEntities=true`, y);
|
|
2502
|
+
searchEntityRecords: async (g, h, y = !1) => {
|
|
2503
|
+
const w = a();
|
|
2504
|
+
return await n(`/api/app/v1/${w}/entity/${g}/record/search`, h, y);
|
|
2509
2505
|
},
|
|
2510
|
-
|
|
2506
|
+
getRelatedEntityRecord: async (g, h, y = !1) => {
|
|
2511
2507
|
const w = a();
|
|
2512
|
-
return await
|
|
2508
|
+
return await t(`/api/app/v1/${w}/entity/${g}/link/record/${h}?fetchRelatedEntities=true`, y);
|
|
2513
2509
|
},
|
|
2514
|
-
|
|
2510
|
+
saveRelatedEntityRecord: async (g, h, y, w = !1) => {
|
|
2515
2511
|
const k = a();
|
|
2516
|
-
return await
|
|
2512
|
+
return await n(`/api/app/v1/${k}/entity/${g}/link/record/${h}`, y, w);
|
|
2517
2513
|
},
|
|
2518
|
-
|
|
2519
|
-
const
|
|
2520
|
-
return await
|
|
2514
|
+
getRecord: async (g, h, y = !1) => {
|
|
2515
|
+
const w = a();
|
|
2516
|
+
return await t(`/api/app/v1/${w}/entity/${g}/record/${h}?fetchRelatedEntities=false`, y);
|
|
2521
2517
|
},
|
|
2522
|
-
|
|
2518
|
+
addRecord: async (g, h, y = !1) => {
|
|
2523
2519
|
const w = a();
|
|
2524
|
-
return await
|
|
2520
|
+
return await n(`/api/app/v1/${w}/entity/${g}/record`, h, y);
|
|
2525
2521
|
},
|
|
2526
|
-
|
|
2522
|
+
updateRecord: async (g, h, y, w = !1) => {
|
|
2527
2523
|
const k = a();
|
|
2528
|
-
return await
|
|
2524
|
+
return await o(`/api/app/v1/${k}/entity/${g}/record/${h}`, y, w);
|
|
2529
2525
|
},
|
|
2530
|
-
|
|
2531
|
-
const
|
|
2532
|
-
return await
|
|
2526
|
+
deleteRecord: async (g, h, y = !1) => {
|
|
2527
|
+
const w = a();
|
|
2528
|
+
return await r(`/api/app/v1/${w}/entity/${g}/record/${h}`, y);
|
|
2529
|
+
},
|
|
2530
|
+
createSampleRecords: async (g, h, y = !1) => {
|
|
2531
|
+
const w = a();
|
|
2532
|
+
return await t(`/api/app/v1/${w}/entity/${g}/record/mock?recordCount=${h}`, y);
|
|
2533
2533
|
}
|
|
2534
2534
|
};
|
|
2535
2535
|
}
|
|
@@ -2552,9 +2552,9 @@ function hd(e = "") {
|
|
|
2552
2552
|
endsWith: "ENDS_WITH"
|
|
2553
2553
|
};
|
|
2554
2554
|
let o = E({}), r = E([]), a = E([]), i = E([]);
|
|
2555
|
-
const s = E(""), c = E(1), l = E(25), u = E(0), f = E(0), d = E(0), p = E(!1), m = E([]), g = E(""),
|
|
2555
|
+
const s = E(""), c = E(1), l = E(25), u = E(0), f = E(0), d = E(0), p = E(!1), m = E([]), g = E(""), h = E({}), y = async (C) => {
|
|
2556
2556
|
r.value = C.result, i.value = $(C.entity.entityDefinition.columns), a.value = S(C.entity.entityDefinition.columns);
|
|
2557
|
-
},
|
|
2557
|
+
}, w = async (C, B = !0) => {
|
|
2558
2558
|
p.value = !0;
|
|
2559
2559
|
try {
|
|
2560
2560
|
const D = await t.getEntityRecords(C);
|
|
@@ -2564,7 +2564,7 @@ function hd(e = "") {
|
|
|
2564
2564
|
} finally {
|
|
2565
2565
|
p.value = !1;
|
|
2566
2566
|
}
|
|
2567
|
-
},
|
|
2567
|
+
}, k = async (C = !0) => {
|
|
2568
2568
|
p.value = !0;
|
|
2569
2569
|
try {
|
|
2570
2570
|
const B = {
|
|
@@ -2593,13 +2593,13 @@ function hd(e = "") {
|
|
|
2593
2593
|
displayFormatKey: B.displayFormatKey,
|
|
2594
2594
|
displayFormat: B.displayFormat
|
|
2595
2595
|
})), $ = (C) => C.filter((B) => !(B.fieldType && B.fieldType === "ENTITY")), N = (C) => {
|
|
2596
|
-
s.value = C.sortField, c.value = C.sortOrder, d.value = 0,
|
|
2596
|
+
s.value = C.sortField, c.value = C.sortOrder, d.value = 0, k();
|
|
2597
2597
|
}, I = (C) => {
|
|
2598
|
-
l.value = C.rows, u.value = C.page, d.value = C.first,
|
|
2598
|
+
l.value = C.rows, u.value = C.page, d.value = C.first, k();
|
|
2599
2599
|
}, O = () => {
|
|
2600
|
-
|
|
2600
|
+
k();
|
|
2601
2601
|
}, M = () => {
|
|
2602
|
-
|
|
2602
|
+
k();
|
|
2603
2603
|
}, W = (C) => {
|
|
2604
2604
|
if (C)
|
|
2605
2605
|
switch (C.toLowerCase()) {
|
|
@@ -2622,7 +2622,7 @@ function hd(e = "") {
|
|
|
2622
2622
|
for (let C = 0; C < i.value.length; C++) {
|
|
2623
2623
|
const B = i.value[C];
|
|
2624
2624
|
if (B.primaryKey && B.primaryKey == !0) {
|
|
2625
|
-
|
|
2625
|
+
h.value = B, s.value = B.name;
|
|
2626
2626
|
break;
|
|
2627
2627
|
}
|
|
2628
2628
|
}
|
|
@@ -2640,15 +2640,15 @@ function hd(e = "") {
|
|
|
2640
2640
|
filterToSend: m,
|
|
2641
2641
|
fullTextSearch: g,
|
|
2642
2642
|
listingResponse: o,
|
|
2643
|
-
primarayKeyColumn:
|
|
2643
|
+
primarayKeyColumn: h,
|
|
2644
2644
|
onFullTextSearch: M,
|
|
2645
2645
|
getDatatypeByField: T,
|
|
2646
2646
|
getColumnDatatype: W,
|
|
2647
2647
|
onSort: N,
|
|
2648
2648
|
onPage: I,
|
|
2649
2649
|
onFilter: O,
|
|
2650
|
-
fetchEntityFilterData:
|
|
2651
|
-
fetchEntityByName:
|
|
2650
|
+
fetchEntityFilterData: k,
|
|
2651
|
+
fetchEntityByName: w,
|
|
2652
2652
|
showEntityData: y
|
|
2653
2653
|
};
|
|
2654
2654
|
}
|
|
@@ -2712,72 +2712,72 @@ const Je = (e, t) => {
|
|
|
2712
2712
|
return (a, i) => {
|
|
2713
2713
|
var f, d, p, m, g;
|
|
2714
2714
|
const s = K("DatePicker"), c = K("InputNumber"), l = K("InputText"), u = K("Checkbox");
|
|
2715
|
-
return
|
|
2716
|
-
!e.column.fieldType && e.column.inputComponent.toLowerCase() != "input_boolean" ? (
|
|
2715
|
+
return b(), x(ie, null, [
|
|
2716
|
+
!e.column.fieldType && e.column.inputComponent.toLowerCase() != "input_boolean" ? (b(), x("div", bd, [
|
|
2717
2717
|
v("label", {
|
|
2718
2718
|
class: "mb-1",
|
|
2719
2719
|
for: e.column.name
|
|
2720
2720
|
}, [
|
|
2721
2721
|
et(Z(e.column.displayName || e.column.name) + " ", 1),
|
|
2722
|
-
e.column.required ? (
|
|
2722
|
+
e.column.required ? (b(), x("span", vd, "*")) : U("", !0)
|
|
2723
2723
|
], 8, yd),
|
|
2724
|
-
e.column.inputComponent.toLowerCase() == "input_calendar" ? (
|
|
2724
|
+
e.column.inputComponent.toLowerCase() == "input_calendar" ? (b(), j(s, {
|
|
2725
2725
|
key: 0,
|
|
2726
2726
|
modelValue: n.value,
|
|
2727
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2727
|
+
"onUpdate:modelValue": i[0] || (i[0] = (h) => n.value = h),
|
|
2728
2728
|
id: e.column.name,
|
|
2729
2729
|
name: e.column.name,
|
|
2730
|
-
onDateSelect: i[1] || (i[1] = (
|
|
2730
|
+
onDateSelect: i[1] || (i[1] = (h) => r(e.column)),
|
|
2731
2731
|
invalid: ((f = e.errors) == null ? void 0 : f.length) > 0
|
|
2732
|
-
}, null, 8, ["modelValue", "id", "name", "invalid"])) : e.column.inputComponent.toLowerCase() == "input_number" ? (
|
|
2732
|
+
}, null, 8, ["modelValue", "id", "name", "invalid"])) : e.column.inputComponent.toLowerCase() == "input_number" ? (b(), j(c, {
|
|
2733
2733
|
key: 1,
|
|
2734
2734
|
modelValue: n.value,
|
|
2735
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
2735
|
+
"onUpdate:modelValue": i[2] || (i[2] = (h) => n.value = h),
|
|
2736
2736
|
mode: "decimal",
|
|
2737
2737
|
id: e.column.name,
|
|
2738
2738
|
name: e.column.name,
|
|
2739
2739
|
allowEmpty: !0,
|
|
2740
2740
|
format: !1,
|
|
2741
|
-
onInput: i[3] || (i[3] = (
|
|
2741
|
+
onInput: i[3] || (i[3] = (h) => r(e.column)),
|
|
2742
2742
|
invalid: ((d = e.errors) == null ? void 0 : d.length) > 0
|
|
2743
|
-
}, null, 8, ["modelValue", "id", "name", "invalid"])) : e.column.inputComponent.toLowerCase() == "input_float" ? (
|
|
2743
|
+
}, null, 8, ["modelValue", "id", "name", "invalid"])) : e.column.inputComponent.toLowerCase() == "input_float" ? (b(), j(c, {
|
|
2744
2744
|
key: 2,
|
|
2745
2745
|
modelValue: n.value,
|
|
2746
|
-
"onUpdate:modelValue": i[4] || (i[4] = (
|
|
2746
|
+
"onUpdate:modelValue": i[4] || (i[4] = (h) => n.value = h),
|
|
2747
2747
|
minFractionDigits: 2,
|
|
2748
2748
|
maxFractionDigits: 5,
|
|
2749
2749
|
id: e.column.name,
|
|
2750
2750
|
allowEmpty: !0,
|
|
2751
2751
|
name: e.column.name,
|
|
2752
|
-
onInput: i[5] || (i[5] = (
|
|
2752
|
+
onInput: i[5] || (i[5] = (h) => r(e.column)),
|
|
2753
2753
|
invalid: ((p = e.errors) == null ? void 0 : p.length) > 0
|
|
2754
|
-
}, null, 8, ["modelValue", "id", "name", "invalid"])) : (
|
|
2754
|
+
}, null, 8, ["modelValue", "id", "name", "invalid"])) : (b(), j(l, {
|
|
2755
2755
|
key: 3,
|
|
2756
2756
|
modelValue: n.value,
|
|
2757
|
-
"onUpdate:modelValue": i[6] || (i[6] = (
|
|
2757
|
+
"onUpdate:modelValue": i[6] || (i[6] = (h) => n.value = h),
|
|
2758
2758
|
id: e.column.name,
|
|
2759
2759
|
name: e.column.name,
|
|
2760
|
-
onInput: i[7] || (i[7] = (
|
|
2760
|
+
onInput: i[7] || (i[7] = (h) => r(e.column)),
|
|
2761
2761
|
invalid: ((m = e.errors) == null ? void 0 : m.length) > 0
|
|
2762
2762
|
}, null, 8, ["modelValue", "id", "name", "invalid"])),
|
|
2763
|
-
(
|
|
2763
|
+
(b(!0), x(ie, null, Ce(e.errors, (h, y) => (b(), x("div", {
|
|
2764
2764
|
key: y,
|
|
2765
2765
|
class: "text-red-500 mt-1 ml-2"
|
|
2766
2766
|
}, [
|
|
2767
|
-
|
|
2767
|
+
h.includes("hint:") ? (b(), x("small", kd, Z(h.split(":")[1]), 1)) : (b(), x("small", wd, Z(h), 1))
|
|
2768
2768
|
]))), 128))
|
|
2769
2769
|
])) : U("", !0),
|
|
2770
|
-
!e.column.fieldType && e.column.inputComponent.toLowerCase() == "input_boolean" ? (
|
|
2770
|
+
!e.column.fieldType && e.column.inputComponent.toLowerCase() == "input_boolean" ? (b(), x("div", xd, [
|
|
2771
2771
|
q(u, {
|
|
2772
2772
|
modelValue: n.value,
|
|
2773
|
-
"onUpdate:modelValue": i[8] || (i[8] = (
|
|
2773
|
+
"onUpdate:modelValue": i[8] || (i[8] = (h) => n.value = h),
|
|
2774
2774
|
invalid: ((g = e.errors) == null ? void 0 : g.length) > 0,
|
|
2775
|
-
onInput: i[9] || (i[9] = (
|
|
2775
|
+
onInput: i[9] || (i[9] = (h) => r(e.column.name)),
|
|
2776
2776
|
binary: ""
|
|
2777
2777
|
}, null, 8, ["modelValue", "invalid"]),
|
|
2778
2778
|
v("label", Sd, [
|
|
2779
2779
|
et(Z(e.column.displayName || e.column.name) + " ", 1),
|
|
2780
|
-
e.column.required ? (
|
|
2780
|
+
e.column.required ? (b(), x("span", Cd, "*")) : U("", !0)
|
|
2781
2781
|
])
|
|
2782
2782
|
])) : U("", !0)
|
|
2783
2783
|
], 64);
|
|
@@ -3324,13 +3324,13 @@ function gl(e) {
|
|
|
3324
3324
|
m(A, F[A]);
|
|
3325
3325
|
});
|
|
3326
3326
|
}
|
|
3327
|
-
const
|
|
3327
|
+
const h = ne(() => {
|
|
3328
3328
|
const F = u.value.reduce((A, X) => (X.errors.length && (A[Te(X.path)] = X.errors), A), {});
|
|
3329
3329
|
return Object.assign(Object.assign({}, f.value), F);
|
|
3330
|
-
}), y = ne(() => kt(
|
|
3331
|
-
const X =
|
|
3330
|
+
}), y = ne(() => kt(h.value).reduce((F, A) => {
|
|
3331
|
+
const X = h.value[A];
|
|
3332
3332
|
return X != null && X.length && (F[A] = X[0]), F;
|
|
3333
|
-
}, {})),
|
|
3333
|
+
}, {})), w = ne(() => u.value.reduce((F, A) => (F[Te(A.path)] = { name: Te(A.path) || "", label: A.label || "" }, F), {})), k = ne(() => u.value.reduce((F, A) => {
|
|
3334
3334
|
var X;
|
|
3335
3335
|
return F[Te(A.path)] = (X = A.bails) !== null && X !== void 0 ? X : !0, F;
|
|
3336
3336
|
}, {})), S = Object.assign({}, {}), $ = (t = void 0) !== null && t !== void 0 ? t : !1, { initialValues: N, originalInitialValues: I, setInitialValues: O } = rf(u, l), M = of(u, l, I, y), W = ne(() => u.value.reduce((F, A) => {
|
|
@@ -3483,7 +3483,7 @@ function gl(e) {
|
|
|
3483
3483
|
formId: n,
|
|
3484
3484
|
values: l,
|
|
3485
3485
|
controlledValues: W,
|
|
3486
|
-
errorBag:
|
|
3486
|
+
errorBag: h,
|
|
3487
3487
|
errors: y,
|
|
3488
3488
|
schema: T,
|
|
3489
3489
|
submitCount: s,
|
|
@@ -3645,8 +3645,8 @@ function gl(e) {
|
|
|
3645
3645
|
return { valid: !0, results: {}, errors: {}, source: "none" };
|
|
3646
3646
|
i.value = !0;
|
|
3647
3647
|
const A = ll(F) || rn(F) ? await ef(F, l) : await tf(F, l, {
|
|
3648
|
-
names:
|
|
3649
|
-
bailsMap:
|
|
3648
|
+
names: w.value,
|
|
3649
|
+
bailsMap: k.value
|
|
3650
3650
|
});
|
|
3651
3651
|
return i.value = !1, A;
|
|
3652
3652
|
}
|
|
@@ -3781,8 +3781,8 @@ function sf() {
|
|
|
3781
3781
|
this._size = 0, this._values = /* @__PURE__ */ Object.create(null);
|
|
3782
3782
|
}, e.prototype.get = function(y) {
|
|
3783
3783
|
return this._values[y];
|
|
3784
|
-
}, e.prototype.set = function(y,
|
|
3785
|
-
return this._size >= this._maxSize && this.clear(), y in this._values || this._size++, this._values[y] =
|
|
3784
|
+
}, e.prototype.set = function(y, w) {
|
|
3785
|
+
return this._size >= this._maxSize && this.clear(), y in this._values || this._size++, this._values[y] = w;
|
|
3786
3786
|
};
|
|
3787
3787
|
var t = /[^.^\]^[]+|(?=\[\]|\.\.)/g, n = /^\d+$/, o = /^\d/, r = /[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g, a = /^\s*(['"]?)(.*?)(\1)\s*$/, i = 512, s = new e(i), c = new e(i), l = new e(i);
|
|
3788
3788
|
br = {
|
|
@@ -3790,50 +3790,50 @@ function sf() {
|
|
|
3790
3790
|
split: f,
|
|
3791
3791
|
normalizePath: u,
|
|
3792
3792
|
setter: function(y) {
|
|
3793
|
-
var
|
|
3793
|
+
var w = u(y);
|
|
3794
3794
|
return c.get(y) || c.set(y, function(S, $) {
|
|
3795
|
-
for (var N = 0, I =
|
|
3796
|
-
var M =
|
|
3795
|
+
for (var N = 0, I = w.length, O = S; N < I - 1; ) {
|
|
3796
|
+
var M = w[N];
|
|
3797
3797
|
if (M === "__proto__" || M === "constructor" || M === "prototype")
|
|
3798
3798
|
return S;
|
|
3799
|
-
O = O[
|
|
3799
|
+
O = O[w[N++]];
|
|
3800
3800
|
}
|
|
3801
|
-
O[
|
|
3801
|
+
O[w[N]] = $;
|
|
3802
3802
|
});
|
|
3803
3803
|
},
|
|
3804
|
-
getter: function(y,
|
|
3805
|
-
var
|
|
3804
|
+
getter: function(y, w) {
|
|
3805
|
+
var k = u(y);
|
|
3806
3806
|
return l.get(y) || l.set(y, function($) {
|
|
3807
|
-
for (var N = 0, I =
|
|
3808
|
-
if ($ != null || !
|
|
3807
|
+
for (var N = 0, I = k.length; N < I; )
|
|
3808
|
+
if ($ != null || !w) $ = $[k[N++]];
|
|
3809
3809
|
else return;
|
|
3810
3810
|
return $;
|
|
3811
3811
|
});
|
|
3812
3812
|
},
|
|
3813
3813
|
join: function(y) {
|
|
3814
|
-
return y.reduce(function(
|
|
3815
|
-
return
|
|
3814
|
+
return y.reduce(function(w, k) {
|
|
3815
|
+
return w + (p(k) || n.test(k) ? "[" + k + "]" : (w ? "." : "") + k);
|
|
3816
3816
|
}, "");
|
|
3817
3817
|
},
|
|
3818
|
-
forEach: function(y,
|
|
3819
|
-
d(Array.isArray(y) ? y : f(y),
|
|
3818
|
+
forEach: function(y, w, k) {
|
|
3819
|
+
d(Array.isArray(y) ? y : f(y), w, k);
|
|
3820
3820
|
}
|
|
3821
3821
|
};
|
|
3822
3822
|
function u(y) {
|
|
3823
3823
|
return s.get(y) || s.set(
|
|
3824
3824
|
y,
|
|
3825
|
-
f(y).map(function(
|
|
3826
|
-
return
|
|
3825
|
+
f(y).map(function(w) {
|
|
3826
|
+
return w.replace(a, "$2");
|
|
3827
3827
|
})
|
|
3828
3828
|
);
|
|
3829
3829
|
}
|
|
3830
3830
|
function f(y) {
|
|
3831
3831
|
return y.match(t) || [""];
|
|
3832
3832
|
}
|
|
3833
|
-
function d(y,
|
|
3833
|
+
function d(y, w, k) {
|
|
3834
3834
|
var S = y.length, $, N, I, O;
|
|
3835
3835
|
for (N = 0; N < S; N++)
|
|
3836
|
-
$ = y[N], $ && (
|
|
3836
|
+
$ = y[N], $ && (h($) && ($ = '"' + $ + '"'), O = p($), I = !O && /^\d+$/.test($), w.call(k, $, O, I, N, y));
|
|
3837
3837
|
}
|
|
3838
3838
|
function p(y) {
|
|
3839
3839
|
return typeof y == "string" && y && ["'", '"'].indexOf(y.charAt(0)) !== -1;
|
|
@@ -3844,7 +3844,7 @@ function sf() {
|
|
|
3844
3844
|
function g(y) {
|
|
3845
3845
|
return r.test(y);
|
|
3846
3846
|
}
|
|
3847
|
-
function
|
|
3847
|
+
function h(y) {
|
|
3848
3848
|
return !p(y) && (m(y) || g(y));
|
|
3849
3849
|
}
|
|
3850
3850
|
return br;
|
|
@@ -3884,13 +3884,13 @@ function uf() {
|
|
|
3884
3884
|
return s;
|
|
3885
3885
|
function d(p, m, g) {
|
|
3886
3886
|
if (g.has(p)) {
|
|
3887
|
-
var
|
|
3887
|
+
var h;
|
|
3888
3888
|
try {
|
|
3889
|
-
|
|
3889
|
+
h = ", node was:" + JSON.stringify(p);
|
|
3890
3890
|
} catch {
|
|
3891
|
-
|
|
3891
|
+
h = "";
|
|
3892
3892
|
}
|
|
3893
|
-
throw new Error("Cyclic dependency" +
|
|
3893
|
+
throw new Error("Cyclic dependency" + h);
|
|
3894
3894
|
}
|
|
3895
3895
|
if (!f.has(p))
|
|
3896
3896
|
throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: " + JSON.stringify(p));
|
|
@@ -3900,8 +3900,8 @@ function uf() {
|
|
|
3900
3900
|
if (y = Array.from(y), m = y.length) {
|
|
3901
3901
|
g.add(p);
|
|
3902
3902
|
do {
|
|
3903
|
-
var
|
|
3904
|
-
d(
|
|
3903
|
+
var w = y[--m];
|
|
3904
|
+
d(w, f.get(w), g);
|
|
3905
3905
|
} while (m);
|
|
3906
3906
|
g.delete(p);
|
|
3907
3907
|
}
|
|
@@ -4158,13 +4158,13 @@ function $n(e) {
|
|
|
4158
4158
|
let {
|
|
4159
4159
|
parent: m,
|
|
4160
4160
|
context: g,
|
|
4161
|
-
abortEarly:
|
|
4161
|
+
abortEarly: h = i.spec.abortEarly,
|
|
4162
4162
|
disableStackTrace: y = i.spec.disableStackTrace
|
|
4163
4163
|
} = r;
|
|
4164
|
-
function
|
|
4164
|
+
function w(T) {
|
|
4165
4165
|
return kn.isRef(T) ? T.getValue(n, m, g) : T;
|
|
4166
4166
|
}
|
|
4167
|
-
function
|
|
4167
|
+
function k(T = {}) {
|
|
4168
4168
|
const V = Object.assign({
|
|
4169
4169
|
value: n,
|
|
4170
4170
|
originalValue: a,
|
|
@@ -4173,24 +4173,24 @@ function $n(e) {
|
|
|
4173
4173
|
spec: i.spec,
|
|
4174
4174
|
disableStackTrace: T.disableStackTrace || y
|
|
4175
4175
|
}, f, T.params);
|
|
4176
|
-
for (const B of Object.keys(V)) V[B] =
|
|
4176
|
+
for (const B of Object.keys(V)) V[B] = w(V[B]);
|
|
4177
4177
|
const C = new dt(dt.formatError(T.message || d, V), n, V.path, T.type || l, V.disableStackTrace);
|
|
4178
4178
|
return C.params = V, C;
|
|
4179
4179
|
}
|
|
4180
|
-
const S =
|
|
4180
|
+
const S = h ? s : c;
|
|
4181
4181
|
let $ = {
|
|
4182
4182
|
path: o,
|
|
4183
4183
|
parent: m,
|
|
4184
4184
|
type: l,
|
|
4185
4185
|
from: r.from,
|
|
4186
|
-
createError:
|
|
4187
|
-
resolve:
|
|
4186
|
+
createError: k,
|
|
4187
|
+
resolve: w,
|
|
4188
4188
|
options: r,
|
|
4189
4189
|
originalValue: a,
|
|
4190
4190
|
schema: i
|
|
4191
4191
|
};
|
|
4192
4192
|
const N = (T) => {
|
|
4193
|
-
dt.isError(T) ? S(T) : T ? c(null) : S(
|
|
4193
|
+
dt.isError(T) ? S(T) : T ? c(null) : S(k());
|
|
4194
4194
|
}, I = (T) => {
|
|
4195
4195
|
dt.isError(T) ? S(T) : s(T);
|
|
4196
4196
|
};
|
|
@@ -4439,9 +4439,9 @@ attempted value: ${i}
|
|
|
4439
4439
|
schema: this
|
|
4440
4440
|
};
|
|
4441
4441
|
for (let g = 0; g < a.length; g++) {
|
|
4442
|
-
const
|
|
4443
|
-
|
|
4444
|
-
|
|
4442
|
+
const h = a[g];
|
|
4443
|
+
h(m, u, function(w) {
|
|
4444
|
+
w && (Array.isArray(w) ? p.push(...w) : p.push(w)), --d <= 0 && f(p);
|
|
4445
4445
|
});
|
|
4446
4446
|
}
|
|
4447
4447
|
}
|
|
@@ -5075,8 +5075,8 @@ class Sl extends zt {
|
|
|
5075
5075
|
context: n.context,
|
|
5076
5076
|
parent: c
|
|
5077
5077
|
});
|
|
5078
|
-
let
|
|
5079
|
-
if (
|
|
5078
|
+
let h = d instanceof zt ? d.spec : void 0, y = h == null ? void 0 : h.strict;
|
|
5079
|
+
if (h != null && h.strip) {
|
|
5080
5080
|
u = u || f in r;
|
|
5081
5081
|
continue;
|
|
5082
5082
|
}
|
|
@@ -5284,7 +5284,7 @@ function aa(e, t, n, o) {
|
|
|
5284
5284
|
const l = E(null), u = E([]);
|
|
5285
5285
|
let f = E([]), d = E(!1);
|
|
5286
5286
|
const p = E({});
|
|
5287
|
-
let { handleSubmit: m, errors: g, setErrors:
|
|
5287
|
+
let { handleSubmit: m, errors: g, setErrors: h } = gl();
|
|
5288
5288
|
const y = async () => {
|
|
5289
5289
|
var L, _;
|
|
5290
5290
|
try {
|
|
@@ -5294,7 +5294,7 @@ function aa(e, t, n, o) {
|
|
|
5294
5294
|
(_ = P == null ? void 0 : P.data) != null && _.errorMessage ? o.add({ severity: "error", summary: "Error", detail: P.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while fetching records", life: 3e3 });
|
|
5295
5295
|
} finally {
|
|
5296
5296
|
}
|
|
5297
|
-
},
|
|
5297
|
+
}, w = async () => {
|
|
5298
5298
|
var L, _;
|
|
5299
5299
|
try {
|
|
5300
5300
|
const P = await r.getRecord(e, t);
|
|
@@ -5303,7 +5303,7 @@ function aa(e, t, n, o) {
|
|
|
5303
5303
|
(_ = P == null ? void 0 : P.data) != null && _.errorMessage ? o.add({ severity: "error", summary: "Error", detail: P.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
|
|
5304
5304
|
} finally {
|
|
5305
5305
|
}
|
|
5306
|
-
},
|
|
5306
|
+
}, k = async () => {
|
|
5307
5307
|
var L, _, P;
|
|
5308
5308
|
try {
|
|
5309
5309
|
const Y = await r.getRelatedEntityRecord(e, t);
|
|
@@ -5373,10 +5373,10 @@ function aa(e, t, n, o) {
|
|
|
5373
5373
|
}));
|
|
5374
5374
|
}, T = async (L = {}) => {
|
|
5375
5375
|
try {
|
|
5376
|
-
await l.value.validate(i.value, { abortEarly: !1 }),
|
|
5376
|
+
await l.value.validate(i.value, { abortEarly: !1 }), h({});
|
|
5377
5377
|
} catch (P) {
|
|
5378
5378
|
const Y = P.inner.reduce((ce, be) => (ce[be.path] || (ce[be.path] = { messages: [] }), ce[be.path].messages.push(...be.errors), ce), {}), Be = Object.entries(Y).reduce((ce, [be, pe]) => (ce[be] = { messages: pe.messages }, ce), {});
|
|
5379
|
-
|
|
5379
|
+
h(Be), o.add({ severity: "error", summary: "Error", detail: "Validation failed, see the errors", life: 3e3 });
|
|
5380
5380
|
return;
|
|
5381
5381
|
}
|
|
5382
5382
|
const _ = { dataDefinitions: W() };
|
|
@@ -5431,11 +5431,11 @@ function aa(e, t, n, o) {
|
|
|
5431
5431
|
if (_ == L[P].type)
|
|
5432
5432
|
return L[P].hint;
|
|
5433
5433
|
}, R = (L) => {
|
|
5434
|
-
|
|
5434
|
+
h({ ...g.value, [L]: null }), d.value = !0;
|
|
5435
5435
|
}, z = () => {
|
|
5436
5436
|
d.value = !1;
|
|
5437
5437
|
for (let L in i.value)
|
|
5438
|
-
i.value.hasOwnProperty(L) &&
|
|
5438
|
+
i.value.hasOwnProperty(L) && h({ ...g.value, [L]: null });
|
|
5439
5439
|
i.value = JSON.parse(JSON.stringify(s.value));
|
|
5440
5440
|
}, Q = () => {
|
|
5441
5441
|
for (let L = 0; L < c.value.length; L++) {
|
|
@@ -5457,8 +5457,8 @@ function aa(e, t, n, o) {
|
|
|
5457
5457
|
clearErrors: R,
|
|
5458
5458
|
saveRecord: T,
|
|
5459
5459
|
fetchAllRecords: y,
|
|
5460
|
-
fetchRecord:
|
|
5461
|
-
getRelatedEntityRecordById:
|
|
5460
|
+
fetchRecord: w,
|
|
5461
|
+
getRelatedEntityRecordById: k,
|
|
5462
5462
|
cancleRecord: z,
|
|
5463
5463
|
saveRelatedEntityRecord: I
|
|
5464
5464
|
};
|
|
@@ -5482,7 +5482,7 @@ const Mf = {
|
|
|
5482
5482
|
return (o, r) => {
|
|
5483
5483
|
var i;
|
|
5484
5484
|
const a = K("Message");
|
|
5485
|
-
return ((i = e.errors) == null ? void 0 : i.length) > 0 ? (
|
|
5485
|
+
return ((i = e.errors) == null ? void 0 : i.length) > 0 ? (b(), x("div", Mf, [
|
|
5486
5486
|
r[1] || (r[1] = v("h4", { class: "flex-1 font-bold text-red-500" }, "Errors", -1)),
|
|
5487
5487
|
v("div", jf, [
|
|
5488
5488
|
v("span", {
|
|
@@ -5490,8 +5490,8 @@ const Mf = {
|
|
|
5490
5490
|
class: "cursor-pointer underline showHideColor"
|
|
5491
5491
|
}, Z(ee(t) ? "Hide" : "Show"), 1)
|
|
5492
5492
|
]),
|
|
5493
|
-
ee(t) ? (
|
|
5494
|
-
(
|
|
5493
|
+
ee(t) ? (b(), x("ul", Uf, [
|
|
5494
|
+
(b(!0), x(ie, null, Ce(e.errors, (s, c) => (b(), x("li", {
|
|
5495
5495
|
key: c,
|
|
5496
5496
|
class: "mb-2"
|
|
5497
5497
|
}, [
|
|
@@ -5554,30 +5554,30 @@ const Mf = {
|
|
|
5554
5554
|
});
|
|
5555
5555
|
const p = async () => {
|
|
5556
5556
|
try {
|
|
5557
|
-
const
|
|
5558
|
-
|
|
5557
|
+
const h = await n(l.entityName);
|
|
5558
|
+
h && h.response && (u.value = h.response, g());
|
|
5559
5559
|
} catch {
|
|
5560
5560
|
} finally {
|
|
5561
5561
|
}
|
|
5562
5562
|
}, m = () => {
|
|
5563
5563
|
d("update:modelValue", f.value[l.relatedEntityColumn]);
|
|
5564
5564
|
}, g = () => {
|
|
5565
|
-
for (let
|
|
5566
|
-
const y = u.value.result[
|
|
5565
|
+
for (let h = 0; h < u.value.result.length; h++) {
|
|
5566
|
+
const y = u.value.result[h];
|
|
5567
5567
|
if (y[l.relatedEntityColumn] == l.modelValue) {
|
|
5568
5568
|
f.value = y;
|
|
5569
5569
|
break;
|
|
5570
5570
|
}
|
|
5571
5571
|
}
|
|
5572
5572
|
};
|
|
5573
|
-
return (
|
|
5574
|
-
const
|
|
5575
|
-
return
|
|
5573
|
+
return (h, y) => {
|
|
5574
|
+
const w = K("Select");
|
|
5575
|
+
return b(), x("div", Hf, [
|
|
5576
5576
|
v("label", { for: e.columnName }, Z(e.displayName || e.columnName), 9, Wf),
|
|
5577
|
-
q(
|
|
5577
|
+
q(w, {
|
|
5578
5578
|
modelValue: ee(f),
|
|
5579
5579
|
"onUpdate:modelValue": [
|
|
5580
|
-
y[0] || (y[0] = (
|
|
5580
|
+
y[0] || (y[0] = (k) => Vt(f) ? f.value = k : f = k),
|
|
5581
5581
|
m
|
|
5582
5582
|
],
|
|
5583
5583
|
"item-value": e.relatedEntityColumn,
|
|
@@ -5587,14 +5587,14 @@ const Mf = {
|
|
|
5587
5587
|
placeholder: "Select " + e.relatedEntityColumn,
|
|
5588
5588
|
class: "w-full"
|
|
5589
5589
|
}, {
|
|
5590
|
-
value: oe((
|
|
5591
|
-
|
|
5592
|
-
v("div", null, Z(
|
|
5593
|
-
])) : (
|
|
5590
|
+
value: oe((k) => [
|
|
5591
|
+
k.value ? (b(), x("div", qf, [
|
|
5592
|
+
v("div", null, Z(k.value[e.relatedEntityColumn]), 1)
|
|
5593
|
+
])) : (b(), x("span", Kf, Z(k.placeholder), 1))
|
|
5594
5594
|
]),
|
|
5595
|
-
option: oe((
|
|
5595
|
+
option: oe((k) => [
|
|
5596
5596
|
v("div", Gf, [
|
|
5597
|
-
v("div", null, Z(
|
|
5597
|
+
v("div", null, Z(k.option[e.relatedEntityColumn]), 1)
|
|
5598
5598
|
])
|
|
5599
5599
|
]),
|
|
5600
5600
|
_: 1
|
|
@@ -5629,8 +5629,8 @@ const Mf = {
|
|
|
5629
5629
|
return Le(() => {
|
|
5630
5630
|
e.recordId ? d() : f();
|
|
5631
5631
|
}), (p, m) => {
|
|
5632
|
-
const g = K("Button"),
|
|
5633
|
-
return n.value ? (
|
|
5632
|
+
const g = K("Button"), h = K("Dialog");
|
|
5633
|
+
return n.value ? (b(), j(h, {
|
|
5634
5634
|
key: 0,
|
|
5635
5635
|
showFooter: !1,
|
|
5636
5636
|
visible: n.value,
|
|
@@ -5641,8 +5641,8 @@ const Mf = {
|
|
|
5641
5641
|
class: "p-fluid"
|
|
5642
5642
|
}, {
|
|
5643
5643
|
header: oe(() => [
|
|
5644
|
-
e.recordId ? (
|
|
5645
|
-
e.recordId ? U("", !0) : (
|
|
5644
|
+
e.recordId ? (b(), x("span", Yf, "Edit " + Z(e.entityName) + " record details", 1)) : U("", !0),
|
|
5645
|
+
e.recordId ? U("", !0) : (b(), x("span", Xf, "Add " + Z(e.entityName) + " record details", 1))
|
|
5646
5646
|
]),
|
|
5647
5647
|
footer: oe(() => [
|
|
5648
5648
|
q(g, {
|
|
@@ -5663,29 +5663,29 @@ const Mf = {
|
|
|
5663
5663
|
default: oe(() => {
|
|
5664
5664
|
var y;
|
|
5665
5665
|
return [
|
|
5666
|
-
(
|
|
5666
|
+
(b(!0), x(ie, null, Ce(ee(i), (w, k) => {
|
|
5667
5667
|
var S;
|
|
5668
|
-
return
|
|
5669
|
-
!
|
|
5668
|
+
return b(), x("div", { key: k }, [
|
|
5669
|
+
!w.autoGenerated && !w.foreignKey ? (b(), j(Zo, {
|
|
5670
5670
|
key: 0,
|
|
5671
|
-
modelValue: ee(a)[
|
|
5672
|
-
"onUpdate:modelValue": ($) => ee(a)[
|
|
5673
|
-
column:
|
|
5674
|
-
errors: (S = ee(s)[
|
|
5671
|
+
modelValue: ee(a)[w.name],
|
|
5672
|
+
"onUpdate:modelValue": ($) => ee(a)[w.name] = $,
|
|
5673
|
+
column: w,
|
|
5674
|
+
errors: (S = ee(s)[w.name]) == null ? void 0 : S.messages,
|
|
5675
5675
|
onInput: ee(l)
|
|
5676
5676
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"])) : U("", !0),
|
|
5677
|
-
!
|
|
5677
|
+
!w.autoGenerated && w.foreignKey ? (b(), j(El, {
|
|
5678
5678
|
key: 1,
|
|
5679
|
-
modelValue: ee(a)[
|
|
5680
|
-
"onUpdate:modelValue": ($) => ee(a)[
|
|
5681
|
-
entityName:
|
|
5682
|
-
columnName:
|
|
5683
|
-
displayName:
|
|
5684
|
-
relatedEntityColumn:
|
|
5679
|
+
modelValue: ee(a)[w.name],
|
|
5680
|
+
"onUpdate:modelValue": ($) => ee(a)[w.name] = $,
|
|
5681
|
+
entityName: w.foreignKey.referencedEntityName,
|
|
5682
|
+
columnName: w.name,
|
|
5683
|
+
displayName: w.displayName,
|
|
5684
|
+
relatedEntityColumn: w.foreignKey.referencedColumnName
|
|
5685
5685
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "entityName", "columnName", "displayName", "relatedEntityColumn"])) : U("", !0)
|
|
5686
5686
|
]);
|
|
5687
5687
|
}), 128)),
|
|
5688
|
-
((y = ee(c)) == null ? void 0 : y.length) > 0 ? (
|
|
5688
|
+
((y = ee(c)) == null ? void 0 : y.length) > 0 ? (b(), j(Cl, {
|
|
5689
5689
|
key: 0,
|
|
5690
5690
|
errors: ee(c)
|
|
5691
5691
|
}, null, 8, ["errors"])) : U("", !0)
|
|
@@ -5723,7 +5723,7 @@ const Mf = {
|
|
|
5723
5723
|
};
|
|
5724
5724
|
return (i, s) => {
|
|
5725
5725
|
const c = K("Button"), l = K("Dialog");
|
|
5726
|
-
return
|
|
5726
|
+
return b(), j(l, {
|
|
5727
5727
|
visible: o.value,
|
|
5728
5728
|
"onUpdate:visible": s[1] || (s[1] = (u) => o.value = u),
|
|
5729
5729
|
style: { width: "450px" },
|
|
@@ -6147,12 +6147,12 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6147
6147
|
o();
|
|
6148
6148
|
}), Bs(() => {
|
|
6149
6149
|
o();
|
|
6150
|
-
}), (r, a) => e.column.displayFormatKey ? (
|
|
6150
|
+
}), (r, a) => e.column.displayFormatKey ? (b(), x("span", cp, [
|
|
6151
6151
|
v("span", {
|
|
6152
6152
|
ref_key: "el",
|
|
6153
6153
|
ref: t
|
|
6154
6154
|
}, Z(e.value), 513)
|
|
6155
|
-
])) : (
|
|
6155
|
+
])) : (b(), x("span", dp, Z(e.value), 1));
|
|
6156
6156
|
}
|
|
6157
6157
|
}, fp = { class: "my-2" }, pp = { class: "flex flex-col md:flex-row md:justify-between md:items-center" }, mp = { class: "flex flex-row gap-2" }, Lr = {
|
|
6158
6158
|
__name: "Grid",
|
|
@@ -6172,7 +6172,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6172
6172
|
setup(e) {
|
|
6173
6173
|
const t = We(), n = e;
|
|
6174
6174
|
console.log("columnsToShow", n.columnsToShow);
|
|
6175
|
-
const o = un(), r = E(n.entityName || o.params.entityName), a = E({}), i = E(""), s = E(!1), c = E(!1), { items: l, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection:
|
|
6175
|
+
const o = un(), r = E(n.entityName || o.params.entityName), a = E({}), i = E(""), s = E(!1), c = E(!1), { items: l, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: y, filterToSend: w, primarayKeyColumn: k, fullTextSearch: S, listingResponse: $, onFullTextSearch: N, getDatatypeByField: I, getColumnDatatype: O, onSort: M, onPage: W, onFilter: T, fetchEntityFilterData: V, fetchEntityByName: C, showEntityData: B } = hd(r.value), D = E();
|
|
6176
6176
|
let R = E(!1);
|
|
6177
6177
|
const z = (be) => {
|
|
6178
6178
|
a.value = be.reduce((pe, ke) => {
|
|
@@ -6200,15 +6200,15 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6200
6200
|
return ke.datatype == "bool" || ke.datatype == "boolean" ? pe[ke.field] = { value: null, matchMode: On.EQUALS } : pe[ke.field] = { operator: sp.AND, constraints: [{ value: null, matchMode: Ee }] }, pe;
|
|
6201
6201
|
}, {});
|
|
6202
6202
|
}, Q = () => {
|
|
6203
|
-
z(u.value),
|
|
6203
|
+
z(u.value), w.value = ce(a.value), T();
|
|
6204
6204
|
}, L = (be) => {
|
|
6205
|
-
|
|
6205
|
+
w.value = ce(a.value), T();
|
|
6206
6206
|
}, _ = (be) => {
|
|
6207
|
-
be ? i.value = be[
|
|
6207
|
+
be ? i.value = be[k.value.name] : i.value = "", s.value = !s.value;
|
|
6208
6208
|
}, P = () => {
|
|
6209
6209
|
s.value = !1, V(!1);
|
|
6210
6210
|
}, Y = (be) => {
|
|
6211
|
-
i.value = be[
|
|
6211
|
+
i.value = be[k.value.name], c.value = !0;
|
|
6212
6212
|
}, Be = () => {
|
|
6213
6213
|
c.value = !1, V(!1);
|
|
6214
6214
|
}, ce = (be) => Object.keys(be).map((pe) => {
|
|
@@ -6238,10 +6238,10 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6238
6238
|
!R.value && be && be.length && (z(be), R.value = !0);
|
|
6239
6239
|
}, { immediate: !0 }), (be, pe) => {
|
|
6240
6240
|
const ke = K("Button"), Ee = K("Toolbar"), gt = K("ProgressSpinner"), rt = K("InputIcon"), $t = K("IconField"), yt = K("DatePicker"), ae = K("InputNumber"), J = K("Checkbox"), Re = K("Column"), at = K("DataTable");
|
|
6241
|
-
return
|
|
6241
|
+
return b(), x(ie, null, [
|
|
6242
6242
|
v("div", Xt(bo(be.$attrs)), [
|
|
6243
6243
|
fe(be.$slots, "header"),
|
|
6244
|
-
e.showClearFilters || e.showAddButton ? (
|
|
6244
|
+
e.showClearFilters || e.showAddButton ? (b(), j(Ee, {
|
|
6245
6245
|
key: 0,
|
|
6246
6246
|
class: "mt-4",
|
|
6247
6247
|
style: { "margin-bottom": "10px" }
|
|
@@ -6290,7 +6290,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6290
6290
|
totalRecords: ee(d),
|
|
6291
6291
|
first: ee(f),
|
|
6292
6292
|
sortField: ee(g),
|
|
6293
|
-
sortOrder: ee(
|
|
6293
|
+
sortOrder: ee(h),
|
|
6294
6294
|
filters: a.value,
|
|
6295
6295
|
"onUpdate:filters": pe[5] || (pe[5] = (Me) => a.value = Me),
|
|
6296
6296
|
filterDisplay: "menu",
|
|
@@ -6311,7 +6311,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6311
6311
|
default: oe(() => {
|
|
6312
6312
|
var Me;
|
|
6313
6313
|
return [
|
|
6314
|
-
(
|
|
6314
|
+
(b(!0), x(ie, null, Ce(ee(u).filter((Pe) => !n.columnsToShow || n.columnsToShow.length === 0 || n.columnsToShow.includes(Pe.field)), (Pe) => (b(), j(Re, {
|
|
6315
6315
|
key: Pe.field,
|
|
6316
6316
|
dataType: ee(O)(Pe.datatype),
|
|
6317
6317
|
field: Pe.field,
|
|
@@ -6376,13 +6376,13 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6376
6376
|
key: "3"
|
|
6377
6377
|
} : void 0
|
|
6378
6378
|
]), 1032, ["dataType", "field", "header", "sortable"]))), 128)),
|
|
6379
|
-
((Me = ee(l)) == null ? void 0 : Me.length) > 0 && (e.editable || e.deleteable) ? (
|
|
6379
|
+
((Me = ee(l)) == null ? void 0 : Me.length) > 0 && (e.editable || e.deleteable) ? (b(), j(Re, {
|
|
6380
6380
|
key: 0,
|
|
6381
6381
|
header: "Actions"
|
|
6382
6382
|
}, {
|
|
6383
6383
|
body: oe(({ data: Pe }) => [
|
|
6384
6384
|
v("div", mp, [
|
|
6385
|
-
e.editable ? (
|
|
6385
|
+
e.editable ? (b(), j(ke, {
|
|
6386
6386
|
key: 0,
|
|
6387
6387
|
onClick: (_e) => _(Pe),
|
|
6388
6388
|
icon: "pi pi-pencil",
|
|
@@ -6392,7 +6392,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6392
6392
|
rounded: "",
|
|
6393
6393
|
"aria-label": "Edit"
|
|
6394
6394
|
}, null, 8, ["onClick"])) : U("", !0),
|
|
6395
|
-
e.deleteable ? (
|
|
6395
|
+
e.deleteable ? (b(), j(ke, {
|
|
6396
6396
|
key: 1,
|
|
6397
6397
|
onClick: (_e) => Y(Pe),
|
|
6398
6398
|
icon: "pi pi-trash",
|
|
@@ -6440,7 +6440,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6440
6440
|
]), 1032, ["value", "loading", "paginator", "rows", "totalRecords", "first", "sortField", "sortOrder", "filters", "onSort", "onPage"]),
|
|
6441
6441
|
fe(be.$slots, "footer")
|
|
6442
6442
|
], 16),
|
|
6443
|
-
s.value ? (
|
|
6443
|
+
s.value ? (b(), j(Jf, {
|
|
6444
6444
|
key: 0,
|
|
6445
6445
|
showForm: s.value,
|
|
6446
6446
|
"onUpdate:showForm": pe[7] || (pe[7] = (Me) => s.value = Me),
|
|
@@ -6448,7 +6448,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6448
6448
|
recordId: i.value,
|
|
6449
6449
|
onOnSaveDialog: P
|
|
6450
6450
|
}, null, 8, ["showForm", "entityName", "recordId"])) : U("", !0),
|
|
6451
|
-
c.value ? (
|
|
6451
|
+
c.value ? (b(), j(Qf, {
|
|
6452
6452
|
key: 1,
|
|
6453
6453
|
showDeleteDialog: c.value,
|
|
6454
6454
|
"onUpdate:showDeleteDialog": pe[8] || (pe[8] = (Me) => c.value = Me),
|
|
@@ -6488,14 +6488,14 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6488
6488
|
};
|
|
6489
6489
|
return (f, d) => {
|
|
6490
6490
|
const p = K("Button"), m = K("ContextMenu"), g = K("router-link");
|
|
6491
|
-
return
|
|
6492
|
-
onMouseenter: d[4] || (d[4] = mn((
|
|
6493
|
-
onMouseleave: d[5] || (d[5] = mn((
|
|
6491
|
+
return b(), x("div", {
|
|
6492
|
+
onMouseenter: d[4] || (d[4] = mn((h) => r.value = !0, ["prevent"])),
|
|
6493
|
+
onMouseleave: d[5] || (d[5] = mn((h) => r.value = !1, ["prevent"])),
|
|
6494
6494
|
class: "flex relative m-3",
|
|
6495
6495
|
style: { border: "1px solid var(--surface-border)", "border-radius": "5px" }
|
|
6496
6496
|
}, [
|
|
6497
6497
|
xt(q(p, {
|
|
6498
|
-
onClick: d[0] || (d[0] = (
|
|
6498
|
+
onClick: d[0] || (d[0] = (h) => l(h, e.linkEntityListItem)),
|
|
6499
6499
|
class: "!absolute right-0",
|
|
6500
6500
|
size: "small",
|
|
6501
6501
|
style: { width: "55px", height: "25px", "border-radius": "5px", "font-size": "12px" }
|
|
@@ -6511,9 +6511,9 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6511
6511
|
ref_key: "menu",
|
|
6512
6512
|
ref: o,
|
|
6513
6513
|
model: s.value,
|
|
6514
|
-
onMouseenter: d[1] || (d[1] = mn((
|
|
6515
|
-
onMouseleave: d[2] || (d[2] = mn((
|
|
6516
|
-
onHide: d[3] || (d[3] = (
|
|
6514
|
+
onMouseenter: d[1] || (d[1] = mn((h) => r.value = !0, ["prevent"])),
|
|
6515
|
+
onMouseleave: d[2] || (d[2] = mn((h) => r.value = !1, ["prevent"])),
|
|
6516
|
+
onHide: d[3] || (d[3] = (h) => u())
|
|
6517
6517
|
}, null, 8, ["model"]),
|
|
6518
6518
|
v("div", gp, [
|
|
6519
6519
|
v("div", hp, [
|
|
@@ -6573,9 +6573,9 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6573
6573
|
emits: ["update:modelValue"],
|
|
6574
6574
|
setup(e) {
|
|
6575
6575
|
un();
|
|
6576
|
-
const t = e, n = Ae(e, "modelValue"), o = new bt(), r = E({}), a = E([]), i = E({}), s = E([]), c = E([]), l = E({}), u = E("id"), f = E(1), d = E([]), p = E(25), m = E(0), g = E(0),
|
|
6576
|
+
const t = e, n = Ae(e, "modelValue"), o = new bt(), r = E({}), a = E([]), i = E({}), s = E([]), c = E([]), l = E({}), u = E("id"), f = E(1), d = E([]), p = E(25), m = E(0), g = E(0), h = E(0);
|
|
6577
6577
|
let y = E([]);
|
|
6578
|
-
const
|
|
6578
|
+
const w = E(!1), k = {
|
|
6579
6579
|
gt: "GREATER_THAN",
|
|
6580
6580
|
dateAfter: "GREATER_THAN",
|
|
6581
6581
|
equals: "EQUAL",
|
|
@@ -6659,7 +6659,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6659
6659
|
}
|
|
6660
6660
|
t.saveExistingRelatedEntityRecord(J);
|
|
6661
6661
|
}, T = () => {
|
|
6662
|
-
|
|
6662
|
+
w.value = !w.value;
|
|
6663
6663
|
}, V = [
|
|
6664
6664
|
{ label: "Starts with", value: "startsWith" },
|
|
6665
6665
|
{ label: "Contains", value: "contains" },
|
|
@@ -6755,7 +6755,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6755
6755
|
y.value = [];
|
|
6756
6756
|
for (let J = 0; J < ae.length; J++) {
|
|
6757
6757
|
const Re = ae[J];
|
|
6758
|
-
delete Re.editing, Re.columnName && Re.operator && Re.value && (Re.columnType = rt(Re.columnName), Re.operator =
|
|
6758
|
+
delete Re.editing, Re.columnName && Re.operator && Re.value && (Re.columnType = rt(Re.columnName), Re.operator = k[Re.operator], y.value.push(Re));
|
|
6759
6759
|
}
|
|
6760
6760
|
N();
|
|
6761
6761
|
}, Ee = (ae) => ae.map((J) => ({
|
|
@@ -6786,12 +6786,12 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6786
6786
|
return "text";
|
|
6787
6787
|
}
|
|
6788
6788
|
}, yt = (ae) => {
|
|
6789
|
-
p.value = ae.rows, m.value = ae.page,
|
|
6789
|
+
p.value = ae.rows, m.value = ae.page, h.value = ae.first, N();
|
|
6790
6790
|
};
|
|
6791
6791
|
return (ae, J) => {
|
|
6792
6792
|
var Qt, cn;
|
|
6793
6793
|
const Re = K("InputIcon"), at = K("InputText"), Me = K("IconField"), Pe = K("Select"), _e = K("Divider"), Ke = K("InputNumber"), Ft = K("DatePicker"), Qe = K("Button"), lt = K("Checkbox"), vt = K("Paginator"), Jt = qr("tooltip");
|
|
6794
|
-
return
|
|
6794
|
+
return b(), x(ie, null, [
|
|
6795
6795
|
v("div", vp, [
|
|
6796
6796
|
v("div", wp, [
|
|
6797
6797
|
q(Me, { class: "block mt-2 md:mt-0 w-full" }, {
|
|
@@ -6816,12 +6816,12 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6816
6816
|
class: "flex items-center cursor-pointer sorting-filter-section flex-1 line-height-4",
|
|
6817
6817
|
onClick: J[2] || (J[2] = (me) => T())
|
|
6818
6818
|
}, [
|
|
6819
|
-
|
|
6820
|
-
|
|
6819
|
+
w.value ? U("", !0) : (b(), x("div", xp)),
|
|
6820
|
+
w.value ? (b(), x("div", Sp)) : U("", !0),
|
|
6821
6821
|
J[9] || (J[9] = v("div", { class: "ml-3 font-bold" }, " Sorting & Filters ", -1))
|
|
6822
6822
|
])
|
|
6823
6823
|
]),
|
|
6824
|
-
|
|
6824
|
+
w.value ? (b(), x("div", Cp, [
|
|
6825
6825
|
v("div", Ep, [
|
|
6826
6826
|
J[10] || (J[10] = v("div", { class: "col-12 font-bold" }, "Sort Column", -1)),
|
|
6827
6827
|
v("div", $p, [
|
|
@@ -6854,8 +6854,8 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6854
6854
|
}, null, 8, ["modelValue"])
|
|
6855
6855
|
])
|
|
6856
6856
|
]),
|
|
6857
|
-
(
|
|
6858
|
-
me.editing ? (
|
|
6857
|
+
(b(!0), x(ie, null, Ce(d.value, (me, Ot) => (b(), x("div", { key: Ot }, [
|
|
6858
|
+
me.editing ? (b(), x("div", Ip, [
|
|
6859
6859
|
q(_e, { class: "mt-5" }),
|
|
6860
6860
|
v("div", Bp, [
|
|
6861
6861
|
J[12] || (J[12] = v("div", { class: "col-12 font-bold" }, "Filter Column", -1)),
|
|
@@ -6891,21 +6891,21 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6891
6891
|
v("div", Ap, [
|
|
6892
6892
|
J[14] || (J[14] = v("div", { class: "col-12 font-bold" }, "Filter value", -1)),
|
|
6893
6893
|
v("div", _p, [
|
|
6894
|
-
Be(me) == "numeric" ? (
|
|
6894
|
+
Be(me) == "numeric" ? (b(), j(Ke, {
|
|
6895
6895
|
key: 0,
|
|
6896
6896
|
format: !1,
|
|
6897
6897
|
class: "w-full",
|
|
6898
6898
|
modelValue: me.value,
|
|
6899
6899
|
"onUpdate:modelValue": (Ge) => me.value = Ge,
|
|
6900
6900
|
placeholder: "Search value"
|
|
6901
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : Be(me) == "date" ? (
|
|
6901
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : Be(me) == "date" ? (b(), j(Ft, {
|
|
6902
6902
|
key: 1,
|
|
6903
6903
|
class: "w-full",
|
|
6904
6904
|
modelValue: me.value,
|
|
6905
6905
|
"onUpdate:modelValue": (Ge) => me.value = Ge,
|
|
6906
6906
|
dateFormat: "mm/dd/yy",
|
|
6907
6907
|
placeholder: "mm/dd/yyyy"
|
|
6908
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (
|
|
6908
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (b(), j(at, {
|
|
6909
6909
|
key: 2,
|
|
6910
6910
|
modelValue: me.value,
|
|
6911
6911
|
"onUpdate:modelValue": (Ge) => me.value = Ge,
|
|
@@ -6931,11 +6931,11 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6931
6931
|
}, null, 8, ["onClick"])
|
|
6932
6932
|
])
|
|
6933
6933
|
])) : U("", !0),
|
|
6934
|
-
me.editing ? U("", !0) : (
|
|
6934
|
+
me.editing ? U("", !0) : (b(), x("div", Np, [
|
|
6935
6935
|
q(_e),
|
|
6936
6936
|
v("div", Lp, [
|
|
6937
6937
|
v("span", null, [
|
|
6938
|
-
me.columnName || me.operator || me.value ? (
|
|
6938
|
+
me.columnName || me.operator || me.value ? (b(), x(ie, { key: 0 }, [
|
|
6939
6939
|
v("span", {
|
|
6940
6940
|
class: ye({ "text-red-500": !me.columnName })
|
|
6941
6941
|
}, Z(me.columnName ? " " + me.columnName : " column"), 3),
|
|
@@ -6945,7 +6945,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6945
6945
|
v("span", {
|
|
6946
6946
|
class: ye({ "text-red-500": !me.value })
|
|
6947
6947
|
}, Z(me.value ? " " + me.value : " value"), 3)
|
|
6948
|
-
], 64)) : (
|
|
6948
|
+
], 64)) : (b(), x("span", Vp, "Filter is empty"))
|
|
6949
6949
|
]),
|
|
6950
6950
|
q(Qe, {
|
|
6951
6951
|
style: { width: "100px" },
|
|
@@ -6981,7 +6981,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6981
6981
|
v("div", Up, Z((Qt = r.value) == null ? void 0 : Qt.totalRecords), 1),
|
|
6982
6982
|
v("div", Hp, Z((cn = r.value) == null ? void 0 : cn.entityName), 1)
|
|
6983
6983
|
]),
|
|
6984
|
-
(
|
|
6984
|
+
(b(!0), x(ie, null, Ce(r.value.result, (me, Ot) => (b(), x("div", { key: Ot }, [
|
|
6985
6985
|
v("div", Wp, [
|
|
6986
6986
|
q(lt, {
|
|
6987
6987
|
disabled: $(me[l.value.name]),
|
|
@@ -6993,7 +6993,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
6993
6993
|
et(Z(e.linkedEntity.entityName) + " ", 1),
|
|
6994
6994
|
v("span", null, Z(me[l.value.name]), 1)
|
|
6995
6995
|
]),
|
|
6996
|
-
$(me[l.value.name]) ? xt((
|
|
6996
|
+
$(me[l.value.name]) ? xt((b(), x("div", Kp, null, 512)), [
|
|
6997
6997
|
[
|
|
6998
6998
|
Jt,
|
|
6999
6999
|
"This record is already associated.",
|
|
@@ -7076,19 +7076,19 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7076
7076
|
let d = E("");
|
|
7077
7077
|
const p = E({}), m = E({});
|
|
7078
7078
|
Le(async () => {
|
|
7079
|
-
console.log("linkedEntity"), console.log(c.linkedEntity), console.log("entity360Name"), console.log(c.entity360Name), console.log("entity360Id"), console.log(c.entity360Id), await
|
|
7079
|
+
console.log("linkedEntity"), console.log(c.linkedEntity), console.log("entity360Name"), console.log(c.entity360Name), console.log("entity360Id"), console.log(c.entity360Id), await h(), await g();
|
|
7080
7080
|
});
|
|
7081
7081
|
const g = async () => {
|
|
7082
7082
|
try {
|
|
7083
7083
|
const $ = await t(c.linkedEntity.entityName);
|
|
7084
|
-
$ && $.response && (u.value = $.response, await y($.response.entity.entityDefinition.columns), await
|
|
7084
|
+
$ && $.response && (u.value = $.response, await y($.response.entity.entityDefinition.columns), await k(), console.log(u.value));
|
|
7085
7085
|
} catch {
|
|
7086
7086
|
} finally {
|
|
7087
7087
|
}
|
|
7088
|
-
},
|
|
7088
|
+
}, h = async () => {
|
|
7089
7089
|
try {
|
|
7090
7090
|
const $ = await r(c.entity360Name, c.entity360Id);
|
|
7091
|
-
$ && $.response && (f.value = $.response, await
|
|
7091
|
+
$ && $.response && (f.value = $.response, await w($.response.entity.entityDefinition.columns), console.log(f.value));
|
|
7092
7092
|
} catch {
|
|
7093
7093
|
} finally {
|
|
7094
7094
|
}
|
|
@@ -7100,7 +7100,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7100
7100
|
break;
|
|
7101
7101
|
}
|
|
7102
7102
|
}
|
|
7103
|
-
},
|
|
7103
|
+
}, w = async ($) => {
|
|
7104
7104
|
for (let N = 0; N < $.length; N++) {
|
|
7105
7105
|
const I = $[N];
|
|
7106
7106
|
if (!I.autoGeneerated && I.foreignKey && I.foreignKey.referencedEntityName.toLowerCase() == c.linkedEntity.entityName.toLowerCase()) {
|
|
@@ -7108,7 +7108,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7108
7108
|
break;
|
|
7109
7109
|
}
|
|
7110
7110
|
}
|
|
7111
|
-
},
|
|
7111
|
+
}, k = async () => {
|
|
7112
7112
|
for (let $ = 0; $ < u.value.result.length; $++) {
|
|
7113
7113
|
const N = u.value.result[$];
|
|
7114
7114
|
if (N[p.value.name] == f.value.result[0][m.value.name]) {
|
|
@@ -7126,7 +7126,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7126
7126
|
};
|
|
7127
7127
|
return ($, N) => {
|
|
7128
7128
|
const I = K("Select"), O = K("Divider"), M = K("Button");
|
|
7129
|
-
return
|
|
7129
|
+
return b(), x("div", em, [
|
|
7130
7130
|
q(I, {
|
|
7131
7131
|
modelValue: ee(d),
|
|
7132
7132
|
"onUpdate:modelValue": N[0] || (N[0] = (W) => Vt(d) ? d.value = W : d = W),
|
|
@@ -7138,9 +7138,9 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7138
7138
|
class: "w-full"
|
|
7139
7139
|
}, {
|
|
7140
7140
|
value: oe((W) => [
|
|
7141
|
-
W.value ? (
|
|
7141
|
+
W.value ? (b(), x("div", tm, [
|
|
7142
7142
|
v("div", null, Z(W.value[p.value.name]), 1)
|
|
7143
|
-
])) : (
|
|
7143
|
+
])) : (b(), x("span", nm, Z(W.placeholder), 1))
|
|
7144
7144
|
]),
|
|
7145
7145
|
option: oe((W) => [
|
|
7146
7146
|
v("div", om, [
|
|
@@ -7198,12 +7198,12 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7198
7198
|
Le(() => {
|
|
7199
7199
|
m();
|
|
7200
7200
|
});
|
|
7201
|
-
const { formData: c, columns: l, errors: u, backendErrors: f, clearErrors: d, saveRecord: p, fetchAllRecords: m, saveRelatedEntityRecord: g } = aa(a, mm, i, o),
|
|
7201
|
+
const { formData: c, columns: l, errors: u, backendErrors: f, clearErrors: d, saveRecord: p, fetchAllRecords: m, saveRelatedEntityRecord: g } = aa(a, mm, i, o), h = () => {
|
|
7202
7202
|
for (let S = 0; S < l.value.length; S++) {
|
|
7203
7203
|
const $ = l.value[S];
|
|
7204
7204
|
!$.autoGenerated && $.foreignKey && (c.value[$.name] = r.entity360Id);
|
|
7205
7205
|
}
|
|
7206
|
-
const
|
|
7206
|
+
const k = {
|
|
7207
7207
|
relationType: r.linkedEntity.relationType,
|
|
7208
7208
|
linkedEntities: {
|
|
7209
7209
|
entityLinkage: [
|
|
@@ -7214,21 +7214,21 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7214
7214
|
]
|
|
7215
7215
|
}
|
|
7216
7216
|
};
|
|
7217
|
-
p(
|
|
7218
|
-
}, y = (
|
|
7217
|
+
p(k);
|
|
7218
|
+
}, y = (k) => {
|
|
7219
7219
|
var S;
|
|
7220
|
-
if (((S =
|
|
7220
|
+
if (((S = k == null ? void 0 : k.linkRecordIdList) == null ? void 0 : S.length) > 0) {
|
|
7221
7221
|
const $ = {
|
|
7222
7222
|
entityLinkage: [
|
|
7223
7223
|
{
|
|
7224
|
-
linkEntityName:
|
|
7225
|
-
linkRecordIdList:
|
|
7224
|
+
linkEntityName: k.linkEntityName,
|
|
7225
|
+
linkRecordIdList: k.linkRecordIdList
|
|
7226
7226
|
}
|
|
7227
7227
|
]
|
|
7228
7228
|
};
|
|
7229
7229
|
g(r.entity360Name, r.entity360Id, $);
|
|
7230
7230
|
}
|
|
7231
|
-
},
|
|
7231
|
+
}, w = (k) => {
|
|
7232
7232
|
const S = {
|
|
7233
7233
|
entityLinkage: [
|
|
7234
7234
|
{
|
|
@@ -7237,11 +7237,11 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7237
7237
|
}
|
|
7238
7238
|
]
|
|
7239
7239
|
};
|
|
7240
|
-
g(
|
|
7240
|
+
g(k.linkedEntityName, k.linkedEntityRecordId, S);
|
|
7241
7241
|
};
|
|
7242
|
-
return (
|
|
7242
|
+
return (k, S) => {
|
|
7243
7243
|
const $ = K("Tab"), N = K("TabList"), I = K("Divider"), O = K("Button"), M = K("TabPanel"), W = K("TabPanels"), T = K("Tabs"), V = K("Drawer");
|
|
7244
|
-
return
|
|
7244
|
+
return b(), j(V, {
|
|
7245
7245
|
visible: n.value,
|
|
7246
7246
|
"onUpdate:visible": S[3] || (S[3] = (C) => n.value = C),
|
|
7247
7247
|
blockScroll: !0,
|
|
@@ -7279,13 +7279,13 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7279
7279
|
default: oe(() => [
|
|
7280
7280
|
q(M, { value: "0" }, {
|
|
7281
7281
|
default: oe(() => [
|
|
7282
|
-
(
|
|
7282
|
+
(b(!0), x(ie, null, Ce(ee(l), (C, B) => {
|
|
7283
7283
|
var D;
|
|
7284
|
-
return
|
|
7284
|
+
return b(), x("div", {
|
|
7285
7285
|
key: B,
|
|
7286
7286
|
class: "mt-3"
|
|
7287
7287
|
}, [
|
|
7288
|
-
!C.autoGenerated && !C.foreignKey ? (
|
|
7288
|
+
!C.autoGenerated && !C.foreignKey ? (b(), j(Zo, {
|
|
7289
7289
|
key: 0,
|
|
7290
7290
|
modelValue: ee(c)[C.name],
|
|
7291
7291
|
"onUpdate:modelValue": (R) => ee(c)[C.name] = R,
|
|
@@ -7310,7 +7310,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7310
7310
|
q(O, {
|
|
7311
7311
|
label: "Save",
|
|
7312
7312
|
severity: "success",
|
|
7313
|
-
onClick:
|
|
7313
|
+
onClick: h
|
|
7314
7314
|
})
|
|
7315
7315
|
])
|
|
7316
7316
|
])
|
|
@@ -7320,7 +7320,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7320
7320
|
}),
|
|
7321
7321
|
q(M, { value: "1" }, {
|
|
7322
7322
|
default: oe(() => [
|
|
7323
|
-
e.linkedEntity.relationType == "ONE_TO_MANY" ? (
|
|
7323
|
+
e.linkedEntity.relationType == "ONE_TO_MANY" ? (b(), j(Zp, {
|
|
7324
7324
|
key: 0,
|
|
7325
7325
|
modelValue: n.value,
|
|
7326
7326
|
"onUpdate:modelValue": S[1] || (S[1] = (C) => n.value = C),
|
|
@@ -7329,14 +7329,14 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7329
7329
|
entity360Id: e.entity360Id,
|
|
7330
7330
|
saveExistingRelatedEntityRecord: y
|
|
7331
7331
|
}, null, 8, ["modelValue", "linkedEntity", "entity360Name", "entity360Id"])) : U("", !0),
|
|
7332
|
-
e.linkedEntity.relationType == "MANY_TO_ONE" ? (
|
|
7332
|
+
e.linkedEntity.relationType == "MANY_TO_ONE" ? (b(), j(lm, {
|
|
7333
7333
|
key: 1,
|
|
7334
7334
|
modelValue: n.value,
|
|
7335
7335
|
"onUpdate:modelValue": S[2] || (S[2] = (C) => n.value = C),
|
|
7336
7336
|
linkedEntity: e.linkedEntity,
|
|
7337
7337
|
entity360Name: e.entity360Name,
|
|
7338
7338
|
entity360Id: e.entity360Id,
|
|
7339
|
-
saveExistingEntityObject:
|
|
7339
|
+
saveExistingEntityObject: w
|
|
7340
7340
|
}, null, 8, ["modelValue", "linkedEntity", "entity360Name", "entity360Id"])) : U("", !0)
|
|
7341
7341
|
]),
|
|
7342
7342
|
_: 1
|
|
@@ -7390,15 +7390,15 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7390
7390
|
}, s = ne(() => t.linkedEntity.list.filter((c) => !c.is_deleted).length);
|
|
7391
7391
|
return (c, l) => {
|
|
7392
7392
|
const u = K("Button");
|
|
7393
|
-
return
|
|
7393
|
+
return b(), x(ie, null, [
|
|
7394
7394
|
v("div", hm, [
|
|
7395
7395
|
v("div", bm, [
|
|
7396
7396
|
v("div", {
|
|
7397
7397
|
class: "flex cursor-pointer items-center linked-entity-section grow line-height-4",
|
|
7398
7398
|
onClick: l[0] || (l[0] = (f) => r())
|
|
7399
7399
|
}, [
|
|
7400
|
-
n.value ? U("", !0) : (
|
|
7401
|
-
n.value ? (
|
|
7400
|
+
n.value ? U("", !0) : (b(), x("div", ym)),
|
|
7401
|
+
n.value ? (b(), x("div", vm)) : U("", !0),
|
|
7402
7402
|
v("div", wm, Z(e.linkedEntity.entityName), 1),
|
|
7403
7403
|
v("div", km, " (" + Z(s.value) + ") ", 1)
|
|
7404
7404
|
]),
|
|
@@ -7411,19 +7411,19 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7411
7411
|
})
|
|
7412
7412
|
])
|
|
7413
7413
|
]),
|
|
7414
|
-
n.value ? (
|
|
7415
|
-
(
|
|
7414
|
+
n.value ? (b(), x("div", Sm, [
|
|
7415
|
+
(b(!0), x(ie, null, Ce(e.linkedEntity.list, (f, d) => (b(), x("div", {
|
|
7416
7416
|
class: "flex flex-col",
|
|
7417
7417
|
key: d
|
|
7418
7418
|
}, [
|
|
7419
|
-
f.is_deleted ? U("", !0) : (
|
|
7419
|
+
f.is_deleted ? U("", !0) : (b(), j(yp, {
|
|
7420
7420
|
key: 0,
|
|
7421
7421
|
linkEntityListItem: f
|
|
7422
7422
|
}, null, 8, ["linkEntityListItem"]))
|
|
7423
7423
|
]))), 128))
|
|
7424
7424
|
])) : U("", !0)
|
|
7425
7425
|
]),
|
|
7426
|
-
o.value ? (
|
|
7426
|
+
o.value ? (b(), j(gm, {
|
|
7427
7427
|
key: 0,
|
|
7428
7428
|
showCreateRelatedEntityForm: o.value,
|
|
7429
7429
|
"onUpdate:showCreateRelatedEntityForm": l[2] || (l[2] = (f) => o.value = f),
|
|
@@ -7477,7 +7477,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7477
7477
|
const o = We(), r = un(), a = e, i = E(!0), s = E(!1), c = E([]);
|
|
7478
7478
|
let l = (T = r == null ? void 0 : r.params) == null ? void 0 : T.entityName, u = (V = r == null ? void 0 : r.params) == null ? void 0 : V.id;
|
|
7479
7479
|
a.entityName && (l = a.entityName), a.recordId && (u = a.recordId);
|
|
7480
|
-
const f = n, { formData: d, columns: p, errors: m, backendErrors: g, isDataChange:
|
|
7480
|
+
const f = n, { formData: d, columns: p, errors: m, backendErrors: g, isDataChange: h, linkedEntities: y, primarayColumn: w, clearErrors: k, saveRecord: S, getRelatedEntityRecordById: $, cancleRecord: N } = aa(l, u, f);
|
|
7481
7481
|
$e(
|
|
7482
7482
|
() => o.globalConfigs.appId,
|
|
7483
7483
|
async (C) => {
|
|
@@ -7508,7 +7508,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7508
7508
|
), (C, B) => {
|
|
7509
7509
|
var Be;
|
|
7510
7510
|
const D = K("SplitterPanel"), R = K("Tab"), z = K("TabList"), Q = K("TabPanel"), L = K("TabPanels"), _ = K("Tabs"), P = K("Splitter"), Y = K("Button");
|
|
7511
|
-
return C.$slots["list-item-display-360"] ? (
|
|
7511
|
+
return C.$slots["list-item-display-360"] ? (b(), x("div", $m, [
|
|
7512
7512
|
fe(C.$slots, "header", {}, void 0, !0),
|
|
7513
7513
|
v("div", null, [
|
|
7514
7514
|
fe(C.$slots, "list-item-display-360", Xt({
|
|
@@ -7524,7 +7524,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7524
7524
|
}), void 0, !0)
|
|
7525
7525
|
]),
|
|
7526
7526
|
fe(C.$slots, "footer", {}, void 0, !0)
|
|
7527
|
-
])) : (
|
|
7527
|
+
])) : (b(), x(ie, { key: 1 }, [
|
|
7528
7528
|
v("div", Om, [
|
|
7529
7529
|
q(P, {
|
|
7530
7530
|
class: "flex-1",
|
|
@@ -7544,21 +7544,21 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7544
7544
|
onClick: B[0] || (B[0] = (ce) => I()),
|
|
7545
7545
|
class: "section-heading cursor-pointer"
|
|
7546
7546
|
}, [
|
|
7547
|
-
i.value ? U("", !0) : (
|
|
7548
|
-
i.value ? (
|
|
7547
|
+
i.value ? U("", !0) : (b(), x("i", Im)),
|
|
7548
|
+
i.value ? (b(), x("i", Bm)) : U("", !0),
|
|
7549
7549
|
v("span", Rm, " About this " + Z(ee(l)), 1)
|
|
7550
7550
|
]),
|
|
7551
|
-
i.value ? (
|
|
7552
|
-
(
|
|
7551
|
+
i.value ? (b(), x("div", Pm, [
|
|
7552
|
+
(b(!0), x(ie, null, Ce(ee(p), (ce, be) => {
|
|
7553
7553
|
var pe;
|
|
7554
|
-
return
|
|
7555
|
-
ce.autoGenerated ? U("", !0) : (
|
|
7554
|
+
return b(), x("div", { key: be }, [
|
|
7555
|
+
ce.autoGenerated ? U("", !0) : (b(), j(Zo, {
|
|
7556
7556
|
key: 0,
|
|
7557
7557
|
modelValue: ee(d)[ce.name],
|
|
7558
7558
|
"onUpdate:modelValue": (ke) => ee(d)[ce.name] = ke,
|
|
7559
7559
|
column: ce,
|
|
7560
7560
|
errors: (pe = ee(m)[ce.name]) == null ? void 0 : pe.messages,
|
|
7561
|
-
onInput: ee(
|
|
7561
|
+
onInput: ee(k)
|
|
7562
7562
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"]))
|
|
7563
7563
|
]);
|
|
7564
7564
|
}), 128))
|
|
@@ -7599,7 +7599,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7599
7599
|
v("div", Fm, [
|
|
7600
7600
|
B[5] || (B[5] = v("h3", { class: "mt-2 text-xl font-semibold" }, "Data highlights", -1)),
|
|
7601
7601
|
v("div", Am, [
|
|
7602
|
-
(
|
|
7602
|
+
(b(!0), x(ie, null, Ce(ee(p).filter((ce) => ce.autoGenerated), (ce, be) => (b(), x("div", {
|
|
7603
7603
|
key: be,
|
|
7604
7604
|
class: "column-item"
|
|
7605
7605
|
}, [
|
|
@@ -7631,8 +7631,8 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7631
7631
|
]),
|
|
7632
7632
|
_: 1
|
|
7633
7633
|
}),
|
|
7634
|
-
((Be = ee(y)) == null ? void 0 : Be.length) > 0 ? (
|
|
7635
|
-
s.value ? (
|
|
7634
|
+
((Be = ee(y)) == null ? void 0 : Be.length) > 0 ? (b(), x("div", Lm, [
|
|
7635
|
+
s.value ? (b(), j(Y, {
|
|
7636
7636
|
key: 0,
|
|
7637
7637
|
icon: "pi pi-caret-right",
|
|
7638
7638
|
rounded: "",
|
|
@@ -7640,7 +7640,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7640
7640
|
"aria-label": "Filter",
|
|
7641
7641
|
style: { height: "2rem", width: "2rem", left: "-20px" }
|
|
7642
7642
|
})) : U("", !0),
|
|
7643
|
-
s.value ? U("", !0) : (
|
|
7643
|
+
s.value ? U("", !0) : (b(), j(Y, {
|
|
7644
7644
|
key: 1,
|
|
7645
7645
|
icon: "pi pi-caret-left",
|
|
7646
7646
|
rounded: "",
|
|
@@ -7648,8 +7648,8 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7648
7648
|
"aria-label": "Filter",
|
|
7649
7649
|
style: { height: "2rem", width: "2rem", left: "-20px" }
|
|
7650
7650
|
})),
|
|
7651
|
-
s.value ? (
|
|
7652
|
-
(
|
|
7651
|
+
s.value ? (b(), x("div", Vm, [
|
|
7652
|
+
(b(!0), x(ie, null, Ce(ee(y), (ce, be) => (b(), x("div", { key: be }, [
|
|
7653
7653
|
q(Em, {
|
|
7654
7654
|
entity360Name: ee(l),
|
|
7655
7655
|
entity360Id: ee(u),
|
|
@@ -7660,7 +7660,7 @@ const cp = { key: 0 }, dp = { key: 1 }, sa = {
|
|
|
7660
7660
|
])) : U("", !0)
|
|
7661
7661
|
])) : U("", !0)
|
|
7662
7662
|
]),
|
|
7663
|
-
ee(
|
|
7663
|
+
ee(h) ? (b(), x("div", zm, [
|
|
7664
7664
|
v("div", Mm, [
|
|
7665
7665
|
v("div", jm, [
|
|
7666
7666
|
q(Y, {
|
|
@@ -7767,7 +7767,7 @@ function rr() {
|
|
|
7767
7767
|
!D.autoGenerated && !D.fieldType && (D.type == "BOOLEAN" ? D.defaultValue ? C[D.name] = D.defaultValue : C[D.name] = !1 : C[D.name] = "");
|
|
7768
7768
|
}
|
|
7769
7769
|
return C;
|
|
7770
|
-
},
|
|
7770
|
+
}, h = (T, V) => {
|
|
7771
7771
|
let C = "";
|
|
7772
7772
|
const B = T.entity.entityDefinition.columns;
|
|
7773
7773
|
for (let D = 0; D < B.length; D++) {
|
|
@@ -7783,9 +7783,9 @@ function rr() {
|
|
|
7783
7783
|
return Object.entries(V).filter(([R]) => !B.includes(R)).map(([R, z]) => ({
|
|
7784
7784
|
recordColumnName: R,
|
|
7785
7785
|
recordColumnValue: z,
|
|
7786
|
-
columnType:
|
|
7786
|
+
columnType: h(r.data, R)
|
|
7787
7787
|
}));
|
|
7788
|
-
},
|
|
7788
|
+
}, w = () => {
|
|
7789
7789
|
const T = r.data.entity.entityDefinition.columns;
|
|
7790
7790
|
return ra().shape(
|
|
7791
7791
|
T.reduce((C, B) => (B.autoGenerated || (C[B.name] = oa().nullable(!1).test({
|
|
@@ -7795,7 +7795,7 @@ function rr() {
|
|
|
7795
7795
|
let z = "";
|
|
7796
7796
|
if (B.required && (!D || D.trim() === ""))
|
|
7797
7797
|
if (B.validations) {
|
|
7798
|
-
z =
|
|
7798
|
+
z = k(B.validations, "VALIDATE_REQUIRED"), R.push(z);
|
|
7799
7799
|
let Q = $(B.validations, "VALIDATE_REQUIRED");
|
|
7800
7800
|
Q && (Q = "hint:" + Q, R.push(Q));
|
|
7801
7801
|
} else
|
|
@@ -7803,14 +7803,14 @@ function rr() {
|
|
|
7803
7803
|
else {
|
|
7804
7804
|
if (B.maxLength && D.length > B.maxLength)
|
|
7805
7805
|
if (B.validations) {
|
|
7806
|
-
z =
|
|
7806
|
+
z = k(B.validations, "VALIDATE_MAXLENGTH"), R.push(z);
|
|
7807
7807
|
let Q = $(B.validations, "VALIDATE_MAXLENGTH");
|
|
7808
7808
|
Q && (Q = "hint:" + Q, R.push(Q));
|
|
7809
7809
|
} else
|
|
7810
7810
|
z = B.displayName + " cannot exceed from " + B.maxLength + " characters", R.push(z);
|
|
7811
7811
|
if (B.regxId && !new RegExp(S(B.validations, "VALIDATE_REGX")).test(D))
|
|
7812
7812
|
if (B.validations) {
|
|
7813
|
-
z =
|
|
7813
|
+
z = k(B.validations, "VALIDATE_REGX"), R.push(z);
|
|
7814
7814
|
let Q = $(B.validations, "VALIDATE_REGX");
|
|
7815
7815
|
Q && (Q = "hint:" + Q, R.push(Q));
|
|
7816
7816
|
} else
|
|
@@ -7823,7 +7823,7 @@ function rr() {
|
|
|
7823
7823
|
}
|
|
7824
7824
|
})), C), {})
|
|
7825
7825
|
);
|
|
7826
|
-
},
|
|
7826
|
+
}, k = (T, V) => {
|
|
7827
7827
|
for (let C = 0; C < T.length; C++)
|
|
7828
7828
|
if (V == T[C].type)
|
|
7829
7829
|
return T[C].message;
|
|
@@ -7908,7 +7908,7 @@ function rr() {
|
|
|
7908
7908
|
getPrimaryKeyColumn: m,
|
|
7909
7909
|
getFormData: g,
|
|
7910
7910
|
createDataToSave: y,
|
|
7911
|
-
createValidationSchema:
|
|
7911
|
+
createValidationSchema: w,
|
|
7912
7912
|
clearErrors: N,
|
|
7913
7913
|
validateData: I,
|
|
7914
7914
|
applyPreset: O,
|
|
@@ -7930,7 +7930,7 @@ const ar = {
|
|
|
7930
7930
|
};
|
|
7931
7931
|
return (a, i) => {
|
|
7932
7932
|
const s = K("Button"), c = K("Dialog");
|
|
7933
|
-
return
|
|
7933
|
+
return b(), j(c, {
|
|
7934
7934
|
visible: n.value,
|
|
7935
7935
|
"onUpdate:visible": i[2] || (i[2] = (l) => n.value = l),
|
|
7936
7936
|
style: { width: "450px" },
|
|
@@ -7991,10 +7991,10 @@ const ar = {
|
|
|
7991
7991
|
c.value = p.errors;
|
|
7992
7992
|
return;
|
|
7993
7993
|
}
|
|
7994
|
-
const m = n.getPrimaryKeyColumn(n.state.data), g = o.item[m.name],
|
|
7994
|
+
const m = n.getPrimaryKeyColumn(n.state.data), g = o.item[m.name], h = { dataDefinitions: n.createDataToSave(n.state.data, a.value) }, y = await n.updateRecord(n.state.data, g, h);
|
|
7995
7995
|
if (y && y.success) {
|
|
7996
7996
|
t.value = !1;
|
|
7997
|
-
const
|
|
7997
|
+
const w = {
|
|
7998
7998
|
sortBy: n.state.data.sortBy,
|
|
7999
7999
|
sortDirection: n.state.data.sortDirection,
|
|
8000
8000
|
pageSize: n.state.data.pageSize,
|
|
@@ -8002,9 +8002,9 @@ const ar = {
|
|
|
8002
8002
|
columnList: null,
|
|
8003
8003
|
filter: n.state.data.filters,
|
|
8004
8004
|
fullTextSearch: n.state.data.fullTextSearch
|
|
8005
|
-
},
|
|
8006
|
-
if (
|
|
8007
|
-
let S =
|
|
8005
|
+
}, k = await n.searchRecord(n.state.data, w);
|
|
8006
|
+
if (k != null && k.response) {
|
|
8007
|
+
let S = k == null ? void 0 : k.response;
|
|
8008
8008
|
n.setEntity(S);
|
|
8009
8009
|
}
|
|
8010
8010
|
} else
|
|
@@ -8023,8 +8023,8 @@ const ar = {
|
|
|
8023
8023
|
c.value = n.clearErrors(p);
|
|
8024
8024
|
};
|
|
8025
8025
|
return (p, m) => {
|
|
8026
|
-
const g = K("Button"),
|
|
8027
|
-
return t.value ? (
|
|
8026
|
+
const g = K("Button"), h = K("Dialog");
|
|
8027
|
+
return t.value ? (b(), j(h, {
|
|
8028
8028
|
key: 0,
|
|
8029
8029
|
showFooter: !1,
|
|
8030
8030
|
visible: t.value,
|
|
@@ -8035,8 +8035,8 @@ const ar = {
|
|
|
8035
8035
|
class: "p-fluid"
|
|
8036
8036
|
}, {
|
|
8037
8037
|
header: oe(() => [
|
|
8038
|
-
e.item ? (
|
|
8039
|
-
e.item ? U("", !0) : (
|
|
8038
|
+
e.item ? (b(), x("span", Ym, "Edit " + Z(ee(n).state.data.entityName) + " record details", 1)) : U("", !0),
|
|
8039
|
+
e.item ? U("", !0) : (b(), x("span", Xm, "Add " + Z(ee(n).state.data.entityName) + " record details", 1))
|
|
8040
8040
|
]),
|
|
8041
8041
|
footer: oe(() => [
|
|
8042
8042
|
q(g, {
|
|
@@ -8057,29 +8057,29 @@ const ar = {
|
|
|
8057
8057
|
default: oe(() => {
|
|
8058
8058
|
var y;
|
|
8059
8059
|
return [
|
|
8060
|
-
(
|
|
8060
|
+
(b(!0), x(ie, null, Ce(ee(r), (w, k) => {
|
|
8061
8061
|
var S;
|
|
8062
|
-
return
|
|
8063
|
-
!
|
|
8062
|
+
return b(), x("div", { key: k }, [
|
|
8063
|
+
!w.autoGenerated && !w.foreignKey ? (b(), j(Zo, {
|
|
8064
8064
|
key: 0,
|
|
8065
|
-
modelValue: ee(a)[
|
|
8066
|
-
"onUpdate:modelValue": ($) => ee(a)[
|
|
8067
|
-
column:
|
|
8068
|
-
errors: (S = ee(c)[
|
|
8065
|
+
modelValue: ee(a)[w.name],
|
|
8066
|
+
"onUpdate:modelValue": ($) => ee(a)[w.name] = $,
|
|
8067
|
+
column: w,
|
|
8068
|
+
errors: (S = ee(c)[w.name]) == null ? void 0 : S.messages,
|
|
8069
8069
|
onInput: d
|
|
8070
8070
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors"])) : U("", !0),
|
|
8071
|
-
!
|
|
8071
|
+
!w.autoGenerated && w.foreignKey ? (b(), j(El, {
|
|
8072
8072
|
key: 1,
|
|
8073
|
-
modelValue: ee(a)[
|
|
8074
|
-
"onUpdate:modelValue": ($) => ee(a)[
|
|
8075
|
-
entityName:
|
|
8076
|
-
columnName:
|
|
8077
|
-
displayName:
|
|
8078
|
-
relatedEntityColumn:
|
|
8073
|
+
modelValue: ee(a)[w.name],
|
|
8074
|
+
"onUpdate:modelValue": ($) => ee(a)[w.name] = $,
|
|
8075
|
+
entityName: w.foreignKey.referencedEntityName,
|
|
8076
|
+
columnName: w.name,
|
|
8077
|
+
displayName: w.displayName,
|
|
8078
|
+
relatedEntityColumn: w.foreignKey.referencedColumnName
|
|
8079
8079
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "entityName", "columnName", "displayName", "relatedEntityColumn"])) : U("", !0)
|
|
8080
8080
|
]);
|
|
8081
8081
|
}), 128)),
|
|
8082
|
-
((y = ee(i)) == null ? void 0 : y.length) > 0 ? (
|
|
8082
|
+
((y = ee(i)) == null ? void 0 : y.length) > 0 ? (b(), j(Cl, {
|
|
8083
8083
|
key: 0,
|
|
8084
8084
|
errors: ee(i)
|
|
8085
8085
|
}, null, 8, ["errors"])) : U("", !0)
|
|
@@ -8127,11 +8127,11 @@ const ar = {
|
|
|
8127
8127
|
};
|
|
8128
8128
|
return (u, f) => {
|
|
8129
8129
|
const d = K("Button");
|
|
8130
|
-
return
|
|
8130
|
+
return b(), x(ie, null, [
|
|
8131
8131
|
v("div", Jm, [
|
|
8132
8132
|
v("div", Qm, [
|
|
8133
8133
|
v("div", Zm, [
|
|
8134
|
-
(
|
|
8134
|
+
(b(!0), x(ie, null, Ce(o.value, (p, m) => (b(), x("div", { key: m }, [
|
|
8135
8135
|
v("span", eg, Z(p.name) + " : ", 1),
|
|
8136
8136
|
q(sa, {
|
|
8137
8137
|
column: p,
|
|
@@ -8158,13 +8158,13 @@ const ar = {
|
|
|
8158
8158
|
})
|
|
8159
8159
|
])
|
|
8160
8160
|
]),
|
|
8161
|
-
a.value ? (
|
|
8161
|
+
a.value ? (b(), j(wo, {
|
|
8162
8162
|
key: 0,
|
|
8163
8163
|
showEntityForm: a.value,
|
|
8164
8164
|
"onUpdate:showEntityForm": f[2] || (f[2] = (p) => a.value = p),
|
|
8165
8165
|
item: e.item
|
|
8166
8166
|
}, null, 8, ["showEntityForm", "item"])) : U("", !0),
|
|
8167
|
-
r.value ? (
|
|
8167
|
+
r.value ? (b(), j(ar, {
|
|
8168
8168
|
key: 1,
|
|
8169
8169
|
showDeleteDialog: r.value,
|
|
8170
8170
|
"onUpdate:showDeleteDialog": f[3] || (f[3] = (p) => r.value = p),
|
|
@@ -8182,11 +8182,11 @@ const ar = {
|
|
|
8182
8182
|
const t = ot("entityObject"), n = E([]);
|
|
8183
8183
|
return $e(() => t.state.data, (o) => {
|
|
8184
8184
|
o && (n.value = o.result, console.log("Entity state updated in child:", t));
|
|
8185
|
-
}, { immediate: !0 }), (o, r) => (
|
|
8185
|
+
}, { immediate: !0 }), (o, r) => (b(!0), x(ie, null, Ce(n.value, (a, i) => (b(), x("div", {
|
|
8186
8186
|
key: i,
|
|
8187
8187
|
class: "card rounded-md p-5 my-2 shadow-lg relative tile"
|
|
8188
8188
|
}, [
|
|
8189
|
-
(
|
|
8189
|
+
(b(), j(De(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : og), te({ ref_for: !0 }, { item: a }), null, 16))
|
|
8190
8190
|
]))), 128));
|
|
8191
8191
|
}
|
|
8192
8192
|
}, ag = /* @__PURE__ */ Je(rg, [["__scopeId", "data-v-f59ea2d9"]]), ig = {};
|
|
@@ -8202,7 +8202,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8202
8202
|
o && (n.value = o.entityName);
|
|
8203
8203
|
}, { immediate: !0 }), (o, r) => {
|
|
8204
8204
|
const a = K("Toolbar");
|
|
8205
|
-
return
|
|
8205
|
+
return b(), j(a, { class: "p-2 my-2" }, {
|
|
8206
8206
|
start: oe(() => [
|
|
8207
8207
|
v("div", ug, [
|
|
8208
8208
|
v("h2", cg, "EntityName: " + Z(ee(n)), 1)
|
|
@@ -8312,7 +8312,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8312
8312
|
break;
|
|
8313
8313
|
}
|
|
8314
8314
|
I.operator = O, I.value = "";
|
|
8315
|
-
},
|
|
8315
|
+
}, h = (I) => {
|
|
8316
8316
|
const O = e.getDatatypeByField(I.columnName);
|
|
8317
8317
|
switch (O && O.toLowerCase()) {
|
|
8318
8318
|
case "integer":
|
|
@@ -8336,7 +8336,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8336
8336
|
const O = e.getDatatypeByField(I.columnName);
|
|
8337
8337
|
return e.getColumnDatatype(O);
|
|
8338
8338
|
} else return "";
|
|
8339
|
-
},
|
|
8339
|
+
}, w = () => {
|
|
8340
8340
|
for (let I = 0; I < r.value.length; I++) {
|
|
8341
8341
|
const O = r.value[I];
|
|
8342
8342
|
O.editing = !1;
|
|
@@ -8344,7 +8344,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8344
8344
|
r.value.push(
|
|
8345
8345
|
{ columnName: "", value: "", operator: "", editing: !0 }
|
|
8346
8346
|
);
|
|
8347
|
-
},
|
|
8347
|
+
}, k = (I) => {
|
|
8348
8348
|
r.value.splice(I, 1);
|
|
8349
8349
|
}, S = (I) => {
|
|
8350
8350
|
I.editing = !I.editing;
|
|
@@ -8360,7 +8360,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8360
8360
|
};
|
|
8361
8361
|
return (I, O) => {
|
|
8362
8362
|
const M = K("Select"), W = K("Divider"), T = K("InputNumber"), V = K("DatePicker"), C = K("InputText"), B = K("Button"), D = K("Drawer");
|
|
8363
|
-
return
|
|
8363
|
+
return b(), j(D, {
|
|
8364
8364
|
visible: o.value,
|
|
8365
8365
|
"onUpdate:visible": O[4] || (O[4] = (R) => o.value = R),
|
|
8366
8366
|
header: "Sorting and Filter",
|
|
@@ -8404,8 +8404,8 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8404
8404
|
}, null, 8, ["modelValue"])
|
|
8405
8405
|
])
|
|
8406
8406
|
]),
|
|
8407
|
-
(
|
|
8408
|
-
R.editing ? (
|
|
8407
|
+
(b(!0), x(ie, null, Ce(r.value, (R, z) => (b(), x("div", { key: z }, [
|
|
8408
|
+
R.editing ? (b(), x("div", hg, [
|
|
8409
8409
|
q(W),
|
|
8410
8410
|
v("div", bg, [
|
|
8411
8411
|
O[7] || (O[7] = v("div", { class: "col-12 font-bold" }, "Filter Column", -1)),
|
|
@@ -8429,7 +8429,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8429
8429
|
q(M, {
|
|
8430
8430
|
modelValue: R.operator,
|
|
8431
8431
|
"onUpdate:modelValue": (Q) => R.operator = Q,
|
|
8432
|
-
options:
|
|
8432
|
+
options: h(R),
|
|
8433
8433
|
optionLabel: "label",
|
|
8434
8434
|
placeholder: "Select operator",
|
|
8435
8435
|
optionValue: "value",
|
|
@@ -8441,21 +8441,21 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8441
8441
|
v("div", kg, [
|
|
8442
8442
|
O[9] || (O[9] = v("div", { class: "col-12 font-bold" }, "Filter value", -1)),
|
|
8443
8443
|
v("div", xg, [
|
|
8444
|
-
y(R) == "numeric" ? (
|
|
8444
|
+
y(R) == "numeric" ? (b(), j(T, {
|
|
8445
8445
|
key: 0,
|
|
8446
8446
|
format: !1,
|
|
8447
8447
|
class: "w-full",
|
|
8448
8448
|
modelValue: R.value,
|
|
8449
8449
|
"onUpdate:modelValue": (Q) => R.value = Q,
|
|
8450
8450
|
placeholder: "Search value"
|
|
8451
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : y(R) == "date" ? (
|
|
8451
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : y(R) == "date" ? (b(), j(V, {
|
|
8452
8452
|
key: 1,
|
|
8453
8453
|
class: "w-full",
|
|
8454
8454
|
modelValue: R.value,
|
|
8455
8455
|
"onUpdate:modelValue": (Q) => R.value = Q,
|
|
8456
8456
|
dateFormat: "mm/dd/yy",
|
|
8457
8457
|
placeholder: "mm/dd/yyyy"
|
|
8458
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (
|
|
8458
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (b(), j(C, {
|
|
8459
8459
|
key: 2,
|
|
8460
8460
|
modelValue: R.value,
|
|
8461
8461
|
"onUpdate:modelValue": (Q) => R.value = Q,
|
|
@@ -8475,15 +8475,15 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8475
8475
|
label: "Delete",
|
|
8476
8476
|
icon: "",
|
|
8477
8477
|
severity: "danger",
|
|
8478
|
-
onClick: (Q) =>
|
|
8478
|
+
onClick: (Q) => k(z)
|
|
8479
8479
|
}, null, 8, ["onClick"])
|
|
8480
8480
|
])
|
|
8481
8481
|
])) : U("", !0),
|
|
8482
|
-
R.editing ? U("", !0) : (
|
|
8482
|
+
R.editing ? U("", !0) : (b(), x("div", Cg, [
|
|
8483
8483
|
q(W),
|
|
8484
8484
|
v("div", Eg, [
|
|
8485
8485
|
v("span", null, [
|
|
8486
|
-
R.columnName || R.operator || R.value ? (
|
|
8486
|
+
R.columnName || R.operator || R.value ? (b(), x(ie, { key: 0 }, [
|
|
8487
8487
|
v("span", {
|
|
8488
8488
|
class: ye({ "text-red-500": !R.columnName })
|
|
8489
8489
|
}, Z(R.columnName ? " " + R.columnName : " column"), 3),
|
|
@@ -8493,7 +8493,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8493
8493
|
v("span", {
|
|
8494
8494
|
class: ye({ "text-red-500": !R.value })
|
|
8495
8495
|
}, Z(R.value ? " " + R.value : " value"), 3)
|
|
8496
|
-
], 64)) : (
|
|
8496
|
+
], 64)) : (b(), x("span", $g, "Filter is empty"))
|
|
8497
8497
|
]),
|
|
8498
8498
|
q(B, {
|
|
8499
8499
|
label: "Edit",
|
|
@@ -8512,7 +8512,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8512
8512
|
disabled: p.value.length === r.value.length,
|
|
8513
8513
|
icon: "",
|
|
8514
8514
|
severity: "success",
|
|
8515
|
-
onClick:
|
|
8515
|
+
onClick: w
|
|
8516
8516
|
}, null, 8, ["disabled"]),
|
|
8517
8517
|
q(B, {
|
|
8518
8518
|
label: "Apply",
|
|
@@ -8557,7 +8557,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8557
8557
|
}, p = () => {
|
|
8558
8558
|
var O;
|
|
8559
8559
|
const I = f.externalFilterPayload;
|
|
8560
|
-
a.value = ((O = I.sortBy) == null ? void 0 : O[0]) || "", i.value = I.sortDirection === "DESC" ? -1 : 1, s.value = I.fullTextSearch || "", o.value = I.filter || [], r.value = I.filter || [],
|
|
8560
|
+
a.value = ((O = I.sortBy) == null ? void 0 : O[0]) || "", i.value = I.sortDirection === "DESC" ? -1 : 1, s.value = I.fullTextSearch || "", o.value = I.filter || [], r.value = I.filter || [], h();
|
|
8561
8561
|
};
|
|
8562
8562
|
$e(
|
|
8563
8563
|
() => t.state.data,
|
|
@@ -8575,8 +8575,8 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8575
8575
|
const m = () => {
|
|
8576
8576
|
n.value = !n.value;
|
|
8577
8577
|
}, g = (I) => {
|
|
8578
|
-
r.value = I,
|
|
8579
|
-
},
|
|
8578
|
+
r.value = I, h();
|
|
8579
|
+
}, h = async () => {
|
|
8580
8580
|
const I = t.state.data, O = {
|
|
8581
8581
|
sortBy: [a.value],
|
|
8582
8582
|
sortDirection: i.value === 1 ? "ASC" : "DESC",
|
|
@@ -8588,13 +8588,13 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8588
8588
|
}, M = await t.searchRecord(I, O);
|
|
8589
8589
|
M != null && M.success && t.setEntity(M.response);
|
|
8590
8590
|
}, y = () => {
|
|
8591
|
-
|
|
8592
|
-
},
|
|
8591
|
+
h();
|
|
8592
|
+
}, w = () => {
|
|
8593
8593
|
o.value = [], r.value = [];
|
|
8594
8594
|
const I = t.parsePrefilter(f.preFiltered);
|
|
8595
|
-
r.value = I,
|
|
8596
|
-
},
|
|
8597
|
-
|
|
8595
|
+
r.value = I, h();
|
|
8596
|
+
}, k = () => {
|
|
8597
|
+
h();
|
|
8598
8598
|
}, S = (I) => I.map((O) => ({
|
|
8599
8599
|
field: O.name,
|
|
8600
8600
|
name: O.displayName || O.name,
|
|
@@ -8623,7 +8623,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8623
8623
|
};
|
|
8624
8624
|
return (I, O) => {
|
|
8625
8625
|
const M = K("Button"), W = K("InputIcon"), T = K("InputText"), V = K("IconField"), C = K("Toolbar");
|
|
8626
|
-
return
|
|
8626
|
+
return b(), x(ie, null, [
|
|
8627
8627
|
q(C, { class: "p-2 my-2 border-none" }, {
|
|
8628
8628
|
start: oe(() => [
|
|
8629
8629
|
v("div", Bg, [
|
|
@@ -8641,7 +8641,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8641
8641
|
type: "button",
|
|
8642
8642
|
icon: "pi pi-filter-slash",
|
|
8643
8643
|
severity: "warn",
|
|
8644
|
-
onClick: O[1] || (O[1] = (B) =>
|
|
8644
|
+
onClick: O[1] || (O[1] = (B) => w())
|
|
8645
8645
|
})
|
|
8646
8646
|
]),
|
|
8647
8647
|
end: oe(() => [
|
|
@@ -8651,12 +8651,12 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8651
8651
|
}, {
|
|
8652
8652
|
default: oe(() => [
|
|
8653
8653
|
q(W, {
|
|
8654
|
-
onClick: O[2] || (O[2] = (B) =>
|
|
8654
|
+
onClick: O[2] || (O[2] = (B) => k()),
|
|
8655
8655
|
class: "pi pi-search"
|
|
8656
8656
|
}),
|
|
8657
8657
|
q(T, {
|
|
8658
8658
|
class: "w-full sm:w-auto",
|
|
8659
|
-
onKeyup: O[3] || (O[3] = Wo((B) =>
|
|
8659
|
+
onKeyup: O[3] || (O[3] = Wo((B) => k(), ["enter"])),
|
|
8660
8660
|
modelValue: s.value,
|
|
8661
8661
|
"onUpdate:modelValue": O[4] || (O[4] = (B) => s.value = B),
|
|
8662
8662
|
placeholder: "Search..."
|
|
@@ -8715,7 +8715,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8715
8715
|
o && (o.value = s);
|
|
8716
8716
|
}, { immediate: !0 }), (s, c) => {
|
|
8717
8717
|
const l = K("Paginator");
|
|
8718
|
-
return
|
|
8718
|
+
return b(), j(l, {
|
|
8719
8719
|
class: "my-4",
|
|
8720
8720
|
rows: t.value,
|
|
8721
8721
|
totalRecords: o.value,
|
|
@@ -8734,7 +8734,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8734
8734
|
};
|
|
8735
8735
|
return (o, r) => {
|
|
8736
8736
|
const a = K("Button");
|
|
8737
|
-
return
|
|
8737
|
+
return b(), x(ie, null, [
|
|
8738
8738
|
v("div", Pg, [
|
|
8739
8739
|
q(a, {
|
|
8740
8740
|
size: "medium",
|
|
@@ -8742,7 +8742,7 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8742
8742
|
onClick: r[0] || (r[0] = (i) => n())
|
|
8743
8743
|
})
|
|
8744
8744
|
]),
|
|
8745
|
-
t.value ? (
|
|
8745
|
+
t.value ? (b(), j(wo, {
|
|
8746
8746
|
key: 0,
|
|
8747
8747
|
showEntityForm: t.value,
|
|
8748
8748
|
"onUpdate:showEntityForm": r[1] || (r[1] = (i) => t.value = i)
|
|
@@ -8789,17 +8789,17 @@ const lg = /* @__PURE__ */ Je(ig, [["render", sg]]), ug = { class: "my-2" }, cg
|
|
|
8789
8789
|
{ immediate: !0 }
|
|
8790
8790
|
), (i, s) => {
|
|
8791
8791
|
var c, l, u;
|
|
8792
|
-
return i.$slots["list-item-display"] ? (
|
|
8793
|
-
e.showAddButton ? (
|
|
8794
|
-
e.listFilerSlot ? (
|
|
8795
|
-
(
|
|
8796
|
-
], 64)) : (
|
|
8797
|
-
(
|
|
8798
|
-
(
|
|
8799
|
-
e.showAddButton ? (
|
|
8800
|
-
(
|
|
8801
|
-
(
|
|
8802
|
-
(
|
|
8792
|
+
return i.$slots["list-item-display"] ? (b(), x(ie, { key: 0 }, [
|
|
8793
|
+
e.showAddButton ? (b(), j(Et, { key: 0 })) : U("", !0),
|
|
8794
|
+
e.listFilerSlot ? (b(), j(De(e.listFilter || Ct), { key: 1 })) : U("", !0),
|
|
8795
|
+
(b(!0), x(ie, null, Ce(((u = (l = (c = ee(n)) == null ? void 0 : c.state) == null ? void 0 : l.data) == null ? void 0 : u.result) || [], (f) => fe(i.$slots, "list-item-display", { item: f })), 256))
|
|
8796
|
+
], 64)) : (b(), x(ie, { key: 1 }, [
|
|
8797
|
+
(b(), j(De(e.listHeader || dg))),
|
|
8798
|
+
(b(), j(De(e.listFilter || Ct))),
|
|
8799
|
+
e.showAddButton ? (b(), j(Et, { key: 0 })) : U("", !0),
|
|
8800
|
+
(b(), j(De(e.listDisplay || ag), Xt(bo({ listItemDisplay: e.listItemDisplay })), null, 16)),
|
|
8801
|
+
(b(), j(De(e.listPagination || Nt))),
|
|
8802
|
+
(b(), j(De(e.listFooter || lg)))
|
|
8803
8803
|
], 64));
|
|
8804
8804
|
};
|
|
8805
8805
|
}
|
|
@@ -8808,21 +8808,21 @@ function Fg() {
|
|
|
8808
8808
|
We();
|
|
8809
8809
|
const { get: e, post: t, put: n, del: o } = mt();
|
|
8810
8810
|
return {
|
|
8811
|
-
getActiveUser: async (
|
|
8812
|
-
getAppSecurity: async (
|
|
8813
|
-
enableAppSecurity: async (
|
|
8814
|
-
getAppSecurityRules: async (
|
|
8815
|
-
saveAppSecurityRule: async (
|
|
8816
|
-
getAppSecurityRoles: async (
|
|
8817
|
-
saveAppSecurityRoles: async (
|
|
8818
|
-
getAppSecurityPermissions: async (
|
|
8819
|
-
saveAppSecurityPermission: async (
|
|
8820
|
-
deleteAppSecurityPermission: async (
|
|
8821
|
-
deleteAppSecurityRole: async (
|
|
8822
|
-
deleteAppSecurityAccessRule: async (
|
|
8823
|
-
getRolePermissions: async (
|
|
8824
|
-
linkPermissionToRole: async (
|
|
8825
|
-
unlinkPermissionFromRole: async (
|
|
8811
|
+
getActiveUser: async (k = !1) => await e("/users/me"),
|
|
8812
|
+
getAppSecurity: async (k, S = !1) => await e(`/api/app/v1/${k}/security`, S),
|
|
8813
|
+
enableAppSecurity: async (k, S, $ = !1) => await t(`/api/app/v1/${k}/security/enable`, S, $),
|
|
8814
|
+
getAppSecurityRules: async (k, S = !1) => await e(`/api/app/v1/${k}/security/rules`, S),
|
|
8815
|
+
saveAppSecurityRule: async (k, S, $ = !1) => await t(`/api/app/v1/${k}/security/rules`, S, $),
|
|
8816
|
+
getAppSecurityRoles: async (k, S = !1) => await e(`/api/app/v1/${k}/security/roles`, S),
|
|
8817
|
+
saveAppSecurityRoles: async (k, S, $ = !1) => await t(`/api/app/v1/${k}/security/roles`, S, $),
|
|
8818
|
+
getAppSecurityPermissions: async (k, S = !1) => await e(`/api/app/v1/${k}/security/permission`, S),
|
|
8819
|
+
saveAppSecurityPermission: async (k, S, $ = !1) => await t(`/api/app/v1/${k}/security/permission`, S, $),
|
|
8820
|
+
deleteAppSecurityPermission: async (k, S, $ = !1) => await o(`/api/app/v1/${k}/security/permission/${S}`, $),
|
|
8821
|
+
deleteAppSecurityRole: async (k, S, $ = !1) => await o(`/api/app/v1/${k}/security/roles/${S}`, $),
|
|
8822
|
+
deleteAppSecurityAccessRule: async (k, S, $ = !1) => await o(`/api/app/v1/${k}/security/rules/${S}`, $),
|
|
8823
|
+
getRolePermissions: async (k, S, $ = !1) => await e(`/api/app/v1/${k}/security/role/${S}/permission`, $),
|
|
8824
|
+
linkPermissionToRole: async (k, S, $, N = !1) => await t(`/api/app/v1/${k}/security/role/${S}/permission/${$}`, {}, N),
|
|
8825
|
+
unlinkPermissionFromRole: async (k, S, $, N = !1) => await o(`/api/app/v1/${k}/security/role/${S}/permission/${$}`, N)
|
|
8826
8826
|
};
|
|
8827
8827
|
}
|
|
8828
8828
|
const Zt = E({ role: [], permissions: [] }), wr = E(!1);
|
|
@@ -8957,7 +8957,7 @@ const Ag = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
8957
8957
|
const p = n.getPrimaryKeyColumn(n.state.data), m = t.item[p.name], g = await n.entityRecordDelete(n.state.data, m);
|
|
8958
8958
|
if (g != null && g.success) {
|
|
8959
8959
|
i.value = !1;
|
|
8960
|
-
const
|
|
8960
|
+
const h = await n.searchRecord(n.state.data, {
|
|
8961
8961
|
sortBy: n.state.data.sortBy,
|
|
8962
8962
|
sortDirection: n.state.data.sortDirection,
|
|
8963
8963
|
pageSize: n.state.data.pageSize,
|
|
@@ -8966,38 +8966,38 @@ const Ag = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
8966
8966
|
filter: n.state.data.filters,
|
|
8967
8967
|
fullTextSearch: n.state.data.fullTextSearch
|
|
8968
8968
|
});
|
|
8969
|
-
|
|
8969
|
+
h != null && h.response && n.setEntity(h.response);
|
|
8970
8970
|
}
|
|
8971
8971
|
};
|
|
8972
8972
|
return (p, m) => {
|
|
8973
8973
|
const g = K("Button");
|
|
8974
|
-
return
|
|
8974
|
+
return b(), x(ie, null, [
|
|
8975
8975
|
v("ul", {
|
|
8976
8976
|
class: ye([t.className, "space-y-2"])
|
|
8977
8977
|
}, [
|
|
8978
8978
|
v("li", Ag, [
|
|
8979
8979
|
v("div", null, [
|
|
8980
|
-
r.value ? (
|
|
8980
|
+
r.value ? (b(), x(ie, { key: 0 }, [
|
|
8981
8981
|
v("a", {
|
|
8982
8982
|
href: `${e.baseUrl}/${e.item[e.hrefKey]}`,
|
|
8983
8983
|
target: "_blank",
|
|
8984
8984
|
class: "hover:underline font-medium"
|
|
8985
8985
|
}, Z(a.value), 9, _g),
|
|
8986
8986
|
v("span", Dg, Z(c.value), 1)
|
|
8987
|
-
], 64)) : (
|
|
8987
|
+
], 64)) : (b(), x("span", Ng, "No matching field found for '" + Z(a.value) + "'.", 1))
|
|
8988
8988
|
]),
|
|
8989
8989
|
v("div", Lg, [
|
|
8990
|
-
e.editable ? (
|
|
8990
|
+
e.editable ? (b(), j(g, {
|
|
8991
8991
|
key: 0,
|
|
8992
|
-
onClick: m[0] || (m[0] = (
|
|
8992
|
+
onClick: m[0] || (m[0] = (h) => u()),
|
|
8993
8993
|
icon: "pi pi-pencil",
|
|
8994
8994
|
severity: "success",
|
|
8995
8995
|
variant: "text",
|
|
8996
8996
|
"aria-label": "Edit"
|
|
8997
8997
|
})) : U("", !0),
|
|
8998
|
-
e.deletable ? (
|
|
8998
|
+
e.deletable ? (b(), j(g, {
|
|
8999
8999
|
key: 1,
|
|
9000
|
-
onClick: m[1] || (m[1] = (
|
|
9000
|
+
onClick: m[1] || (m[1] = (h) => l()),
|
|
9001
9001
|
icon: "pi pi-trash",
|
|
9002
9002
|
severity: "danger",
|
|
9003
9003
|
variant: "text",
|
|
@@ -9006,16 +9006,16 @@ const Ag = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9006
9006
|
])
|
|
9007
9007
|
])
|
|
9008
9008
|
], 2),
|
|
9009
|
-
s.value ? (
|
|
9009
|
+
s.value ? (b(), j(wo, {
|
|
9010
9010
|
key: 0,
|
|
9011
9011
|
showEntityForm: s.value,
|
|
9012
|
-
"onUpdate:showEntityForm": m[2] || (m[2] = (
|
|
9012
|
+
"onUpdate:showEntityForm": m[2] || (m[2] = (h) => s.value = h),
|
|
9013
9013
|
item: e.item
|
|
9014
9014
|
}, null, 8, ["showEntityForm", "item"])) : U("", !0),
|
|
9015
|
-
i.value ? (
|
|
9015
|
+
i.value ? (b(), j(ar, {
|
|
9016
9016
|
key: 1,
|
|
9017
9017
|
showDeleteDialog: i.value,
|
|
9018
|
-
"onUpdate:showDeleteDialog": m[3] || (m[3] = (
|
|
9018
|
+
"onUpdate:showDeleteDialog": m[3] || (m[3] = (h) => i.value = h),
|
|
9019
9019
|
onOnDeleteItem: f
|
|
9020
9020
|
}, null, 8, ["showDeleteDialog"])) : U("", !0)
|
|
9021
9021
|
], 64);
|
|
@@ -9366,8 +9366,8 @@ _n({
|
|
|
9366
9366
|
var r;
|
|
9367
9367
|
const a = jg(n), i = a.getSlides(), s = ne(() => i.length), c = E(null), l = E(null), u = E(0), f = ne(() => Object.assign(Object.assign(Object.assign({}, Ye), Wg(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, Ye.i18n), e.i18n) })), d = $r(Object.assign({}, f.value)), p = E((r = e.modelValue) !== null && r !== void 0 ? r : 0), m = E(p.value);
|
|
9368
9368
|
$e(p, (G) => m.value = G);
|
|
9369
|
-
const g = E(0),
|
|
9370
|
-
let
|
|
9369
|
+
const g = E(0), h = ne(() => Math.ceil((s.value - 1) / 2)), y = ne(() => s.value - 1), w = ne(() => 0);
|
|
9370
|
+
let k = null, S = null, $ = null;
|
|
9371
9371
|
const N = ne(() => u.value + d.gap), I = ne(() => {
|
|
9372
9372
|
const G = d.dir || "ltr";
|
|
9373
9373
|
return G in no ? no[G] : G;
|
|
@@ -9419,7 +9419,7 @@ _n({
|
|
|
9419
9419
|
!d.wrapAround && s.value > 0 && (p.value = Ut({
|
|
9420
9420
|
val: p.value,
|
|
9421
9421
|
max: y.value,
|
|
9422
|
-
min:
|
|
9422
|
+
min: w.value
|
|
9423
9423
|
})), W.value || (d.itemsToShow = Ut({
|
|
9424
9424
|
val: Number(d.itemsToShow),
|
|
9425
9425
|
max: s.value,
|
|
@@ -9450,7 +9450,7 @@ _n({
|
|
|
9450
9450
|
}), Le(() => {
|
|
9451
9451
|
be.value = !0, V(), _e(), c.value && ($ = new ResizeObserver(C), $.observe(c.value)), n("init");
|
|
9452
9452
|
}), Kr(() => {
|
|
9453
|
-
be.value = !1, a.cleanup(), S && clearTimeout(S), Y && cancelAnimationFrame(Y),
|
|
9453
|
+
be.value = !1, a.cleanup(), S && clearTimeout(S), Y && cancelAnimationFrame(Y), k && clearInterval(k), $ && ($.disconnect(), $ = null), typeof document < "u" && Re(), c.value && (c.value.removeEventListener("transitionend", L), c.value.removeEventListener("animationiteration", L));
|
|
9454
9454
|
});
|
|
9455
9455
|
let pe = !1;
|
|
9456
9456
|
const ke = { x: 0, y: 0 }, Ee = Lt({ x: 0, y: 0 }), gt = E(!1), rt = E(!1), $t = () => {
|
|
@@ -9495,7 +9495,7 @@ _n({
|
|
|
9495
9495
|
m.value = d.wrapAround ? p.value + le : Ut({
|
|
9496
9496
|
val: p.value + le,
|
|
9497
9497
|
max: y.value,
|
|
9498
|
-
min:
|
|
9498
|
+
min: w.value
|
|
9499
9499
|
}), n("drag", { deltaX: Ee.x, deltaY: Ee.y });
|
|
9500
9500
|
});
|
|
9501
9501
|
function Pe() {
|
|
@@ -9510,12 +9510,12 @@ _n({
|
|
|
9510
9510
|
document.removeEventListener(G, Me), document.removeEventListener(re, Pe);
|
|
9511
9511
|
}
|
|
9512
9512
|
function _e() {
|
|
9513
|
-
!d.autoplay || d.autoplay <= 0 || (
|
|
9513
|
+
!d.autoplay || d.autoplay <= 0 || (k = setInterval(() => {
|
|
9514
9514
|
d.pauseAutoplayOnHover && gt.value || vt();
|
|
9515
9515
|
}, d.autoplay));
|
|
9516
9516
|
}
|
|
9517
9517
|
function Ke() {
|
|
9518
|
-
|
|
9518
|
+
k && (clearInterval(k), k = null);
|
|
9519
9519
|
}
|
|
9520
9520
|
function Ft() {
|
|
9521
9521
|
Ke(), _e();
|
|
@@ -9528,11 +9528,11 @@ _n({
|
|
|
9528
9528
|
g.value = p.value, d.wrapAround ? le = Fl({
|
|
9529
9529
|
val: ue,
|
|
9530
9530
|
max: y.value,
|
|
9531
|
-
min:
|
|
9531
|
+
min: w.value
|
|
9532
9532
|
}) : ue = Ut({
|
|
9533
9533
|
val: ue,
|
|
9534
9534
|
max: y.value,
|
|
9535
|
-
min:
|
|
9535
|
+
min: w.value
|
|
9536
9536
|
}), n("slide-start", {
|
|
9537
9537
|
slidingToIndex: G,
|
|
9538
9538
|
currentSlideIndex: p.value,
|
|
@@ -9678,7 +9678,7 @@ _n({
|
|
|
9678
9678
|
isSliding: Qe,
|
|
9679
9679
|
isVertical: M,
|
|
9680
9680
|
maxSlide: y,
|
|
9681
|
-
minSlide:
|
|
9681
|
+
minSlide: w,
|
|
9682
9682
|
nav: ge,
|
|
9683
9683
|
normalizedDir: I,
|
|
9684
9684
|
slideRegistry: a,
|
|
@@ -9693,8 +9693,8 @@ _n({
|
|
|
9693
9693
|
config: d,
|
|
9694
9694
|
currentSlide: p,
|
|
9695
9695
|
maxSlide: y,
|
|
9696
|
-
middleSlide:
|
|
9697
|
-
minSlide:
|
|
9696
|
+
middleSlide: h,
|
|
9697
|
+
minSlide: w,
|
|
9698
9698
|
slideSize: u,
|
|
9699
9699
|
slidesCount: s
|
|
9700
9700
|
});
|
|
@@ -10065,17 +10065,17 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10065
10065
|
setup(e, { expose: t, emit: n }) {
|
|
10066
10066
|
const o = e, r = We(), a = new bt();
|
|
10067
10067
|
E(null), E(null);
|
|
10068
|
-
const i = E("id"), s = E(1), c = E(25), l = E(0), u = E(null), f = n, d = E([]), p = E([]), m = E(!0), g = E(null), { hasMatchingRoleAndPermissions:
|
|
10068
|
+
const i = E("id"), s = E(1), c = E(25), l = E(0), u = E(null), f = n, d = E([]), p = E([]), m = E(!0), g = E(null), { hasMatchingRoleAndPermissions: h } = Sn(), y = rr();
|
|
10069
10069
|
sn("entityObject", y), Le(async () => {
|
|
10070
|
-
m.value = await
|
|
10070
|
+
m.value = await h(o.roles, o.permissions), console.log("props entitylist", o.preFiltered), o.preFiltered && I();
|
|
10071
10071
|
}), o.linkedEntity ? $e(() => o.linkedEntity, (C) => {
|
|
10072
10072
|
C && (d.value = C, f("linkedEntityChanged", C));
|
|
10073
10073
|
}, { immediate: !0 }) : $e(() => y.state.data, (C) => {
|
|
10074
10074
|
C && (d.value = C.result, f("linkedEntityChanged", C.result));
|
|
10075
10075
|
}, { immediate: !0 });
|
|
10076
|
-
const
|
|
10076
|
+
const w = (C) => {
|
|
10077
10077
|
u.value = C, y.state.data.filters = C, N(u.value);
|
|
10078
|
-
},
|
|
10078
|
+
}, k = () => {
|
|
10079
10079
|
u.value = null, i.value = "id", s.value = 1, y.state.data.filters = {}, N(u.value);
|
|
10080
10080
|
}, S = async (C, B) => {
|
|
10081
10081
|
i.value = C, s.value = B, u.value = y.state.data.filters ? y.state.data.filters : u.value, N(u.value);
|
|
@@ -10120,10 +10120,10 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10120
10120
|
const B = y.state.data.result.indexOf(C);
|
|
10121
10121
|
y.state.data.result.splice(B, 1);
|
|
10122
10122
|
},
|
|
10123
|
-
searchRecord:
|
|
10123
|
+
searchRecord: w,
|
|
10124
10124
|
searchByPageSize: $,
|
|
10125
10125
|
searchBySort: S,
|
|
10126
|
-
clearFilters:
|
|
10126
|
+
clearFilters: k
|
|
10127
10127
|
}), $e(
|
|
10128
10128
|
() => r.globalConfigs.appId,
|
|
10129
10129
|
async (C) => {
|
|
@@ -10147,27 +10147,27 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10147
10147
|
};
|
|
10148
10148
|
return (C, B) => {
|
|
10149
10149
|
var D, R, z;
|
|
10150
|
-
return m.value ? (
|
|
10150
|
+
return m.value ? (b(), x("div", te({ key: 0 }, C.$attrs, { class: "flex flex-col" }), [
|
|
10151
10151
|
fe(C.$slots, "header", {}, void 0, !0),
|
|
10152
|
-
C.$slots["list-item-display"] ? (
|
|
10152
|
+
C.$slots["list-item-display"] ? (b(), x(ie, { key: 0 }, [
|
|
10153
10153
|
v("div", th, [
|
|
10154
|
-
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (
|
|
10154
|
+
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", nh, [
|
|
10155
10155
|
v("div", oh, [
|
|
10156
|
-
e.showFilters ? (
|
|
10156
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), {
|
|
10157
10157
|
key: 0,
|
|
10158
10158
|
externalFilterPayload: o.externalFilterPayload,
|
|
10159
10159
|
preFiltered: o.preFiltered
|
|
10160
10160
|
}, null, 8, ["externalFilterPayload", "preFiltered"])) : U("", !0),
|
|
10161
|
-
e.showAddButton ? (
|
|
10162
|
-
e.showPagination ? (
|
|
10161
|
+
e.showAddButton ? (b(), j(Et, { key: 1 })) : U("", !0),
|
|
10162
|
+
e.showPagination ? (b(), j(De(e.listPagination || Nt), {
|
|
10163
10163
|
key: 2,
|
|
10164
10164
|
class: "ml-auto"
|
|
10165
10165
|
})) : U("", !0)
|
|
10166
10166
|
])
|
|
10167
10167
|
])) : U("", !0)
|
|
10168
10168
|
]),
|
|
10169
|
-
e.showPresets ? (
|
|
10170
|
-
(
|
|
10169
|
+
e.showPresets ? (b(), x("div", rh, [
|
|
10170
|
+
(b(!0), x(ie, null, Ce(p.value, (Q) => (b(), x("button", {
|
|
10171
10171
|
key: Q,
|
|
10172
10172
|
onClick: (L) => {
|
|
10173
10173
|
g.value = Q.name, V(Q.name);
|
|
@@ -10181,52 +10181,52 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10181
10181
|
v("div", {
|
|
10182
10182
|
class: ye(["flex flex-wrap", [o.decoration === "tiles" ? "" : "flex-col", `gap-${o.gap}`, o.scrollHeight ? `overflow-y-auto h-[${o.scrollHeight}]` : "", o.justifyContent ? `justify-${o.justifyContent}` : "justify-center"]])
|
|
10183
10183
|
}, [
|
|
10184
|
-
(
|
|
10184
|
+
(b(!0), x(ie, null, Ce(e.linkedEntity && e.linkedEntity.length > 0 ? e.linkedEntity : ((z = (R = (D = ee(y)) == null ? void 0 : D.state) == null ? void 0 : R.data) == null ? void 0 : z.result) || [], (Q) => fe(C.$slots, "list-item-display", Xt({
|
|
10185
10185
|
item: Q,
|
|
10186
10186
|
class: e.listItemClass,
|
|
10187
10187
|
[e.variable || ""]: Q
|
|
10188
10188
|
}), void 0, !0)), 256))
|
|
10189
10189
|
], 2),
|
|
10190
|
-
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (
|
|
10190
|
+
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", ih, [
|
|
10191
10191
|
v("div", sh, [
|
|
10192
|
-
e.showFilters ? (
|
|
10192
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), {
|
|
10193
10193
|
key: 0,
|
|
10194
10194
|
externalFilterPayload: o.externalFilterPayload,
|
|
10195
10195
|
preFiltered: o.preFiltered
|
|
10196
10196
|
}, null, 8, ["externalFilterPayload", "preFiltered"])) : U("", !0),
|
|
10197
|
-
e.showAddButton ? (
|
|
10198
|
-
e.showPagination ? (
|
|
10197
|
+
e.showAddButton ? (b(), j(Et, { key: 1 })) : U("", !0),
|
|
10198
|
+
e.showPagination ? (b(), j(De(e.listPagination || Nt), {
|
|
10199
10199
|
key: 2,
|
|
10200
10200
|
class: "ml-auto"
|
|
10201
10201
|
})) : U("", !0)
|
|
10202
10202
|
])
|
|
10203
10203
|
])) : U("", !0)
|
|
10204
|
-
], 64)) : (
|
|
10205
|
-
e.entityName ? U("", !0) : (
|
|
10204
|
+
], 64)) : (b(), x(ie, { key: 1 }, [
|
|
10205
|
+
e.entityName ? U("", !0) : (b(), x("div", lh, [
|
|
10206
10206
|
v("p", uh, [
|
|
10207
10207
|
B[0] || (B[0] = et(" Error: Missing required props - ")),
|
|
10208
|
-
e.entityName ? U("", !0) : (
|
|
10208
|
+
e.entityName ? U("", !0) : (b(), x("span", ch, "Entity Name"))
|
|
10209
10209
|
])
|
|
10210
10210
|
])),
|
|
10211
10211
|
v("div", null, [
|
|
10212
10212
|
v("div", dh, [
|
|
10213
|
-
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (
|
|
10213
|
+
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", fh, [
|
|
10214
10214
|
v("div", ph, [
|
|
10215
|
-
e.showFilters ? (
|
|
10215
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), {
|
|
10216
10216
|
key: 0,
|
|
10217
10217
|
externalFilterPayload: o.externalFilterPayload,
|
|
10218
10218
|
preFiltered: o.preFiltered
|
|
10219
10219
|
}, null, 8, ["externalFilterPayload", "preFiltered"])) : U("", !0),
|
|
10220
|
-
e.showAddButton ? (
|
|
10221
|
-
e.showPagination ? (
|
|
10220
|
+
e.showAddButton ? (b(), j(Et, { key: 1 })) : U("", !0),
|
|
10221
|
+
e.showPagination ? (b(), j(De(e.listPagination || Nt), {
|
|
10222
10222
|
key: 2,
|
|
10223
10223
|
class: "ml-auto"
|
|
10224
10224
|
})) : U("", !0)
|
|
10225
10225
|
])
|
|
10226
10226
|
])) : U("", !0)
|
|
10227
10227
|
]),
|
|
10228
|
-
e.showPresets ? (
|
|
10229
|
-
(
|
|
10228
|
+
e.showPresets ? (b(), x("div", mh, [
|
|
10229
|
+
(b(!0), x(ie, null, Ce(p.value, (Q) => (b(), x("button", {
|
|
10230
10230
|
key: Q,
|
|
10231
10231
|
onClick: (L) => {
|
|
10232
10232
|
g.value = Q.name, V(Q.name);
|
|
@@ -10237,22 +10237,22 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10237
10237
|
]])
|
|
10238
10238
|
}, Z(Q.name), 11, gh))), 128))
|
|
10239
10239
|
])) : U("", !0),
|
|
10240
|
-
(
|
|
10241
|
-
(
|
|
10240
|
+
(b(!0), x(ie, null, Ce(d.value, (Q, L) => (b(), x("div", { key: L }, [
|
|
10241
|
+
(b(), j(De(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : zg), te({
|
|
10242
10242
|
key: Q,
|
|
10243
10243
|
preFiltered: o.preFiltered,
|
|
10244
10244
|
ref_for: !0
|
|
10245
10245
|
}, { item: Q, ...o }), null, 16, ["preFiltered"]))
|
|
10246
10246
|
]))), 128)),
|
|
10247
|
-
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (
|
|
10247
|
+
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", hh, [
|
|
10248
10248
|
v("div", bh, [
|
|
10249
|
-
e.showFilters ? (
|
|
10249
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), {
|
|
10250
10250
|
key: 0,
|
|
10251
10251
|
externalFilterPayload: o.externalFilterPayload,
|
|
10252
10252
|
preFiltered: o.preFiltered
|
|
10253
10253
|
}, null, 8, ["externalFilterPayload", "preFiltered"])) : U("", !0),
|
|
10254
|
-
e.showAddButton ? (
|
|
10255
|
-
e.showPagination ? (
|
|
10254
|
+
e.showAddButton ? (b(), j(Et, { key: 1 })) : U("", !0),
|
|
10255
|
+
e.showPagination ? (b(), j(De(e.listPagination || Nt), {
|
|
10256
10256
|
key: 2,
|
|
10257
10257
|
class: "ml-auto"
|
|
10258
10258
|
})) : U("", !0)
|
|
@@ -10262,7 +10262,7 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10262
10262
|
fe(C.$slots, "footer", {}, void 0, !0)
|
|
10263
10263
|
], 64)),
|
|
10264
10264
|
fe(C.$slots, "footer", {}, void 0, !0)
|
|
10265
|
-
], 16)) : (
|
|
10265
|
+
], 16)) : (b(), x("p", yh, "You do not have the required permissions to access this feature."));
|
|
10266
10266
|
};
|
|
10267
10267
|
}
|
|
10268
10268
|
}, Ci = /* @__PURE__ */ Je(vh, [["__scopeId", "data-v-896c5db8"]]), wh = { class: "p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col" }, kh = { class: "flex justify-between items-start gap-4" }, xh = { class: "flex-grow" }, Sh = { class: "flex flex-col gap-2" }, Ch = { class: "font-bold text-gray-700" }, Eh = { class: "text-gray-600" }, $h = { class: "flex flex-col gap-2" }, Oh = {
|
|
@@ -10317,13 +10317,13 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10317
10317
|
};
|
|
10318
10318
|
return (d, p) => {
|
|
10319
10319
|
const m = K("Button");
|
|
10320
|
-
return
|
|
10320
|
+
return b(), x(ie, null, [
|
|
10321
10321
|
v("div", wh, [
|
|
10322
10322
|
v("div", kh, [
|
|
10323
10323
|
v("div", xh, [
|
|
10324
10324
|
v("div", Sh, [
|
|
10325
|
-
(
|
|
10326
|
-
key:
|
|
10325
|
+
(b(!0), x(ie, null, Ce(o.value, (g, h) => (b(), x("div", {
|
|
10326
|
+
key: h,
|
|
10327
10327
|
class: "flex flex-col"
|
|
10328
10328
|
}, [
|
|
10329
10329
|
v("span", Ch, Z(g.displayName || g.name) + ":", 1),
|
|
@@ -10332,7 +10332,7 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10332
10332
|
])
|
|
10333
10333
|
]),
|
|
10334
10334
|
v("div", $h, [
|
|
10335
|
-
e.editable ? (
|
|
10335
|
+
e.editable ? (b(), j(m, {
|
|
10336
10336
|
key: 0,
|
|
10337
10337
|
onClick: p[0] || (p[0] = (g) => l()),
|
|
10338
10338
|
icon: "pi pi-pencil",
|
|
@@ -10340,7 +10340,7 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10340
10340
|
rounded: "",
|
|
10341
10341
|
"aria-label": "Edit"
|
|
10342
10342
|
})) : U("", !0),
|
|
10343
|
-
e.deletable ? (
|
|
10343
|
+
e.deletable ? (b(), j(m, {
|
|
10344
10344
|
key: 1,
|
|
10345
10345
|
onClick: p[1] || (p[1] = (g) => c()),
|
|
10346
10346
|
icon: "pi pi-trash",
|
|
@@ -10351,13 +10351,13 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10351
10351
|
])
|
|
10352
10352
|
])
|
|
10353
10353
|
]),
|
|
10354
|
-
s.value ? (
|
|
10354
|
+
s.value ? (b(), j(wo, {
|
|
10355
10355
|
key: 0,
|
|
10356
10356
|
showEntityForm: s.value,
|
|
10357
10357
|
"onUpdate:showEntityForm": p[2] || (p[2] = (g) => s.value = g),
|
|
10358
10358
|
item: e.item
|
|
10359
10359
|
}, null, 8, ["showEntityForm", "item"])) : U("", !0),
|
|
10360
|
-
i.value ? (
|
|
10360
|
+
i.value ? (b(), j(ar, {
|
|
10361
10361
|
key: 1,
|
|
10362
10362
|
showDeleteDialog: i.value,
|
|
10363
10363
|
"onUpdate:showDeleteDialog": p[3] || (p[3] = (g) => i.value = g),
|
|
@@ -10420,13 +10420,13 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10420
10420
|
{ immediate: !0 }
|
|
10421
10421
|
), (c, l) => {
|
|
10422
10422
|
var u, f, d;
|
|
10423
|
-
return
|
|
10424
|
-
c.$slots["list-item-display-tile"] ? (
|
|
10423
|
+
return b(), x("div", Xt(bo(c.$attrs)), [
|
|
10424
|
+
c.$slots["list-item-display-tile"] ? (b(), x(ie, { key: 0 }, [
|
|
10425
10425
|
fe(c.$slots, "header", {}, void 0, !0),
|
|
10426
|
-
e.showAddButton ? (
|
|
10427
|
-
e.showFilters ? (
|
|
10426
|
+
e.showAddButton ? (b(), j(Et, { key: 0 })) : U("", !0),
|
|
10427
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), { key: 1 })) : U("", !0),
|
|
10428
10428
|
v("div", Ih, [
|
|
10429
|
-
(
|
|
10429
|
+
(b(!0), x(ie, null, Ce(((d = (f = (u = ee(n)) == null ? void 0 : u.state) == null ? void 0 : f.data) == null ? void 0 : d.result) || [], (p, m) => (b(), x("div", {
|
|
10430
10430
|
key: m,
|
|
10431
10431
|
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"
|
|
10432
10432
|
}, [
|
|
@@ -10434,22 +10434,22 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10434
10434
|
]))), 128))
|
|
10435
10435
|
]),
|
|
10436
10436
|
fe(c.$slots, "footer", {}, void 0, !0)
|
|
10437
|
-
], 64)) : (
|
|
10437
|
+
], 64)) : (b(), x(ie, { key: 1 }, [
|
|
10438
10438
|
fe(c.$slots, "header", {}, void 0, !0),
|
|
10439
|
-
e.entityName ? (
|
|
10440
|
-
e.showFilters ? (
|
|
10441
|
-
e.showAddButton ? (
|
|
10439
|
+
e.entityName ? (b(), x("div", Fh, [
|
|
10440
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), { key: 0 })) : U("", !0),
|
|
10441
|
+
e.showAddButton ? (b(), j(Et, { key: 1 })) : U("", !0),
|
|
10442
10442
|
v("div", Ah, [
|
|
10443
|
-
(
|
|
10443
|
+
(b(!0), x(ie, null, Ce(a.value, (p, m) => (b(), j(De(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : Th), te({
|
|
10444
10444
|
key: m,
|
|
10445
10445
|
ref_for: !0
|
|
10446
10446
|
}, { item: p, ...r }), null, 16))), 128))
|
|
10447
10447
|
]),
|
|
10448
|
-
e.showPagination ? (
|
|
10449
|
-
])) : (
|
|
10448
|
+
e.showPagination ? (b(), j(De(e.listPagination || Nt), { key: 2 })) : U("", !0)
|
|
10449
|
+
])) : (b(), x("div", Bh, [
|
|
10450
10450
|
v("p", Rh, [
|
|
10451
10451
|
l[0] || (l[0] = et(" Error: Missing required props - ")),
|
|
10452
|
-
e.entityName ? U("", !0) : (
|
|
10452
|
+
e.entityName ? U("", !0) : (b(), x("span", Ph, "Entity Name"))
|
|
10453
10453
|
])
|
|
10454
10454
|
])),
|
|
10455
10455
|
fe(c.$slots, "footer", {}, void 0, !0)
|
|
@@ -10513,13 +10513,13 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10513
10513
|
};
|
|
10514
10514
|
return (d, p) => {
|
|
10515
10515
|
const m = K("Button");
|
|
10516
|
-
return
|
|
10516
|
+
return b(), x(ie, null, [
|
|
10517
10517
|
v("div", Dh, [
|
|
10518
10518
|
v("div", Nh, [
|
|
10519
10519
|
v("div", Lh, [
|
|
10520
10520
|
v("div", Vh, [
|
|
10521
|
-
(
|
|
10522
|
-
key:
|
|
10521
|
+
(b(!0), x(ie, null, Ce(o.value, (g, h) => (b(), x("div", {
|
|
10522
|
+
key: h,
|
|
10523
10523
|
class: "flex flex-col"
|
|
10524
10524
|
}, [
|
|
10525
10525
|
v("span", zh, Z(g.displayName || g.name) + ":", 1),
|
|
@@ -10528,7 +10528,7 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10528
10528
|
])
|
|
10529
10529
|
]),
|
|
10530
10530
|
v("div", jh, [
|
|
10531
|
-
e.editable ? (
|
|
10531
|
+
e.editable ? (b(), j(m, {
|
|
10532
10532
|
key: 0,
|
|
10533
10533
|
onClick: p[0] || (p[0] = (g) => l()),
|
|
10534
10534
|
icon: "pi pi-pencil",
|
|
@@ -10536,7 +10536,7 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10536
10536
|
variant: "text",
|
|
10537
10537
|
"aria-label": "Edit"
|
|
10538
10538
|
})) : U("", !0),
|
|
10539
|
-
e.deletable ? (
|
|
10539
|
+
e.deletable ? (b(), j(m, {
|
|
10540
10540
|
key: 1,
|
|
10541
10541
|
onClick: p[1] || (p[1] = (g) => c()),
|
|
10542
10542
|
icon: "pi pi-trash",
|
|
@@ -10547,13 +10547,13 @@ const th = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
10547
10547
|
])
|
|
10548
10548
|
])
|
|
10549
10549
|
]),
|
|
10550
|
-
s.value ? (
|
|
10550
|
+
s.value ? (b(), j(wo, {
|
|
10551
10551
|
key: 0,
|
|
10552
10552
|
showEntityForm: s.value,
|
|
10553
10553
|
"onUpdate:showEntityForm": p[2] || (p[2] = (g) => s.value = g),
|
|
10554
10554
|
item: e.item
|
|
10555
10555
|
}, null, 8, ["showEntityForm", "item"])) : U("", !0),
|
|
10556
|
-
i.value ? (
|
|
10556
|
+
i.value ? (b(), j(ar, {
|
|
10557
10557
|
key: 1,
|
|
10558
10558
|
showDeleteDialog: i.value,
|
|
10559
10559
|
"onUpdate:showDeleteDialog": p[3] || (p[3] = (g) => i.value = g),
|
|
@@ -10613,8 +10613,8 @@ function Yh(e, t, n = !0) {
|
|
|
10613
10613
|
var o, r, a, i;
|
|
10614
10614
|
if (e) {
|
|
10615
10615
|
const s = e.offsetParent ? { width: e.offsetWidth, height: e.offsetHeight } : Al(e), c = s.height, l = s.width, u = t.offsetHeight, f = t.offsetWidth, d = t.getBoundingClientRect(), p = Gh(), m = Kh(), g = _l();
|
|
10616
|
-
let
|
|
10617
|
-
d.top + u + c > g.height ? (
|
|
10616
|
+
let h, y, w = "top";
|
|
10617
|
+
d.top + u + c > g.height ? (h = d.top + p - c, w = "bottom", h < 0 && (h = p)) : h = u + d.top + p, d.left + l > g.width ? y = Math.max(0, d.left + m + f - l) : y = d.left + m, e.style.top = h + "px", e.style.left = y + "px", e.style.transformOrigin = w, n && (e.style.marginTop = w === "bottom" ? `calc(${(r = (o = zo(/-anchor-gutter$/)) == null ? void 0 : o.value) != null ? r : "2px"} * -1)` : (i = (a = zo(/-anchor-gutter$/)) == null ? void 0 : a.value) != null ? i : "");
|
|
10618
10618
|
}
|
|
10619
10619
|
}
|
|
10620
10620
|
function Xh(e, t) {
|
|
@@ -10923,8 +10923,8 @@ function vb(e, t = {}) {
|
|
|
10923
10923
|
(f, [d, p]) => {
|
|
10924
10924
|
const m = Yt(d, a) ? Mr(u) : Mr(u, Ol(d)), g = mb(p);
|
|
10925
10925
|
if (Mt(g)) {
|
|
10926
|
-
const { variables:
|
|
10927
|
-
Oi(f.tokens, y), Oi(f.variables,
|
|
10926
|
+
const { variables: h, tokens: y } = i(g, m);
|
|
10927
|
+
Oi(f.tokens, y), Oi(f.variables, h);
|
|
10928
10928
|
} else
|
|
10929
10929
|
f.tokens.push((o ? m.replace(`${o}-`, "") : m).replaceAll("-", ".")), bb(f.variables, Ml(m), jl(g, m, o, [a]));
|
|
10930
10930
|
return f;
|
|
@@ -10985,14 +10985,14 @@ var Tt = {
|
|
|
10985
10985
|
getCommon({ name: e = "", theme: t = {}, params: n, set: o, defaults: r }) {
|
|
10986
10986
|
var a, i, s, c, l, u, f;
|
|
10987
10987
|
const { preset: d, options: p } = t;
|
|
10988
|
-
let m, g,
|
|
10988
|
+
let m, g, h, y, w, k, S;
|
|
10989
10989
|
if (Ie(d) && p.transform !== "strict") {
|
|
10990
10990
|
const { primitive: $, semantic: N, extend: I } = d, O = N || {}, { colorScheme: M } = O, W = Ht(O, ["colorScheme"]), T = I || {}, { colorScheme: V } = T, C = Ht(T, ["colorScheme"]), B = M || {}, { dark: D } = B, R = Ht(B, ["dark"]), z = V || {}, { dark: Q } = z, L = Ht(z, ["dark"]), _ = Ie($) ? this._toVariables({ primitive: $ }, p) : {}, P = Ie(W) ? this._toVariables({ semantic: W }, p) : {}, Y = Ie(R) ? this._toVariables({ light: R }, p) : {}, Be = Ie(D) ? this._toVariables({ dark: D }, p) : {}, ce = Ie(C) ? this._toVariables({ semantic: C }, p) : {}, be = Ie(L) ? this._toVariables({ light: L }, p) : {}, pe = Ie(Q) ? this._toVariables({ dark: Q }, p) : {}, [ke, Ee] = [(a = _.declarations) != null ? a : "", _.tokens], [gt, rt] = [(i = P.declarations) != null ? i : "", P.tokens || []], [$t, yt] = [(s = Y.declarations) != null ? s : "", Y.tokens || []], [ae, J] = [(c = Be.declarations) != null ? c : "", Be.tokens || []], [Re, at] = [(l = ce.declarations) != null ? l : "", ce.tokens || []], [Me, Pe] = [(u = be.declarations) != null ? u : "", be.tokens || []], [_e, Ke] = [(f = pe.declarations) != null ? f : "", pe.tokens || []];
|
|
10991
10991
|
m = this.transformCSS(e, ke, "light", "variable", p, o, r), g = Ee;
|
|
10992
10992
|
const Ft = this.transformCSS(e, `${gt}${$t}`, "light", "variable", p, o, r), Qe = this.transformCSS(e, `${ae}`, "dark", "variable", p, o, r);
|
|
10993
|
-
|
|
10993
|
+
h = `${Ft}${Qe}`, y = [.../* @__PURE__ */ new Set([...rt, ...yt, ...J])];
|
|
10994
10994
|
const lt = this.transformCSS(e, `${Re}${Me}color-scheme:light`, "light", "variable", p, o, r), vt = this.transformCSS(e, `${_e}color-scheme:dark`, "dark", "variable", p, o, r);
|
|
10995
|
-
|
|
10995
|
+
w = `${lt}${vt}`, k = [.../* @__PURE__ */ new Set([...at, ...Pe, ...Ke])], S = St(d.css, { dt: Qn });
|
|
10996
10996
|
}
|
|
10997
10997
|
return {
|
|
10998
10998
|
primitive: {
|
|
@@ -11000,12 +11000,12 @@ var Tt = {
|
|
|
11000
11000
|
tokens: g
|
|
11001
11001
|
},
|
|
11002
11002
|
semantic: {
|
|
11003
|
-
css:
|
|
11003
|
+
css: h,
|
|
11004
11004
|
tokens: y
|
|
11005
11005
|
},
|
|
11006
11006
|
global: {
|
|
11007
|
-
css:
|
|
11008
|
-
tokens:
|
|
11007
|
+
css: w,
|
|
11008
|
+
tokens: k
|
|
11009
11009
|
},
|
|
11010
11010
|
style: S
|
|
11011
11011
|
};
|
|
@@ -11014,7 +11014,7 @@ var Tt = {
|
|
|
11014
11014
|
var s, c, l;
|
|
11015
11015
|
let u, f, d;
|
|
11016
11016
|
if (Ie(t) && n.transform !== "strict") {
|
|
11017
|
-
const p = e.replace("-directive", ""), m = t, { colorScheme: g, extend:
|
|
11017
|
+
const p = e.replace("-directive", ""), m = t, { colorScheme: g, extend: h, css: y } = m, w = Ht(m, ["colorScheme", "extend", "css"]), k = h || {}, { colorScheme: S } = k, $ = Ht(k, ["colorScheme"]), N = g || {}, { dark: I } = N, O = Ht(N, ["dark"]), M = S || {}, { dark: W } = M, T = Ht(M, ["dark"]), V = Ie(w) ? this._toVariables({ [p]: He(He({}, w), $) }, n) : {}, C = Ie(O) ? this._toVariables({ [p]: He(He({}, O), T) }, n) : {}, B = Ie(I) ? this._toVariables({ [p]: He(He({}, I), W) }, n) : {}, [D, R] = [(s = V.declarations) != null ? s : "", V.tokens || []], [z, Q] = [(c = C.declarations) != null ? c : "", C.tokens || []], [L, _] = [(l = B.declarations) != null ? l : "", B.tokens || []], P = this.transformCSS(p, `${D}${z}`, "light", "variable", n, r, a, i), Y = this.transformCSS(p, L, "dark", "variable", n, r, a, i);
|
|
11018
11018
|
u = `${P}${Y}`, f = [.../* @__PURE__ */ new Set([...R, ...Q, ..._])], d = St(y, { dt: Qn });
|
|
11019
11019
|
}
|
|
11020
11020
|
return {
|
|
@@ -11077,11 +11077,11 @@ var Tt = {
|
|
|
11077
11077
|
let d = i;
|
|
11078
11078
|
if (u.name = this.path, u.binding || (u.binding = {}), Yt(i, f)) {
|
|
11079
11079
|
const m = i.trim().replaceAll(f, (y) => {
|
|
11080
|
-
var
|
|
11081
|
-
const
|
|
11080
|
+
var w;
|
|
11081
|
+
const k = y.replace(/{|}/g, ""), S = (w = r[k]) == null ? void 0 : w.computed(l, u);
|
|
11082
11082
|
return or(S) && S.length === 2 ? `light-dark(${S[0].value},${S[1].value})` : S == null ? void 0 : S.value;
|
|
11083
|
-
}), g = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,
|
|
11084
|
-
d = Yt(m.replace(
|
|
11083
|
+
}), g = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, h = /var\([^)]+\)/g;
|
|
11084
|
+
d = Yt(m.replace(h, "0"), g) ? `calc(${m})` : m;
|
|
11085
11085
|
}
|
|
11086
11086
|
return xn(u.binding) && delete u.binding, {
|
|
11087
11087
|
colorScheme: l,
|
|
@@ -11316,11 +11316,11 @@ function Cb(e) {
|
|
|
11316
11316
|
}
|
|
11317
11317
|
var Eb = 0;
|
|
11318
11318
|
function $b(e) {
|
|
11319
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = E(!1), o = E(e), r = E(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(++Eb) : d, m = t.id, g = m === void 0 ? void 0 : m,
|
|
11319
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = E(!1), o = E(e), r = E(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(++Eb) : d, m = t.id, g = m === void 0 ? void 0 : m, h = t.media, y = h === void 0 ? void 0 : h, w = t.nonce, k = w === void 0 ? void 0 : w, S = t.first, $ = S === void 0 ? !1 : S, N = t.onMounted, I = N === void 0 ? void 0 : N, O = t.onUpdated, M = O === void 0 ? void 0 : O, W = t.onLoad, T = W === void 0 ? void 0 : W, V = t.props, C = V === void 0 ? {} : V, B = function() {
|
|
11320
11320
|
}, D = function(Q) {
|
|
11321
11321
|
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
11322
11322
|
if (s) {
|
|
11323
|
-
var _ = Ii(Ii({}, C), L), P = _.name || p, Y = _.id || g, Be = _.nonce ||
|
|
11323
|
+
var _ = Ii(Ii({}, C), L), P = _.name || p, Y = _.id || g, Be = _.nonce || k;
|
|
11324
11324
|
r.value = s.querySelector('style[data-primevue-style-id="'.concat(P, '"]')) || s.getElementById(Y) || s.createElement("style"), r.value.isConnected || (o.value = Q || e, Mo(r.value, {
|
|
11325
11325
|
type: "text/css",
|
|
11326
11326
|
id: Y,
|
|
@@ -11807,8 +11807,8 @@ var Cn = {
|
|
|
11807
11807
|
beforeCreate: function() {
|
|
11808
11808
|
var t, n, o, r, a, i, s, c, l, u, f, d = (t = this.pt) === null || t === void 0 ? void 0 : t._usept, p = d ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, m = d ? (o = this.pt) === null || o === void 0 || (o = o.value) === null || o === void 0 ? void 0 : o[this.$.type.name] : this.pt;
|
|
11809
11809
|
(r = m || p) === null || r === void 0 || (r = r.hooks) === null || r === void 0 || (a = r.onBeforeCreate) === null || a === void 0 || a.call(r);
|
|
11810
|
-
var g = (i = this.$primevueConfig) === null || i === void 0 || (i = i.pt) === null || i === void 0 ? void 0 : i._usept,
|
|
11811
|
-
(u = y ||
|
|
11810
|
+
var g = (i = this.$primevueConfig) === null || i === void 0 || (i = i.pt) === null || i === void 0 ? void 0 : i._usept, h = g ? (s = this.$primevue) === null || s === void 0 || (s = s.config) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s.originalValue : void 0, y = g ? (c = this.$primevue) === null || c === void 0 || (c = c.config) === null || c === void 0 || (c = c.pt) === null || c === void 0 ? void 0 : c.value : (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 ? void 0 : l.pt;
|
|
11811
|
+
(u = y || h) === null || u === void 0 || (u = u[this.$.type.name]) === null || u === void 0 || (u = u.hooks) === null || u === void 0 || (f = u.onBeforeCreate) === null || f === void 0 || f.call(u), this.$attrSelector = da("pc");
|
|
11812
11812
|
},
|
|
11813
11813
|
created: function() {
|
|
11814
11814
|
this._hook("onCreated");
|
|
@@ -11878,16 +11878,16 @@ var Cn = {
|
|
|
11878
11878
|
}, this.$styleOptions), l), Ne.setLoadedStyleName("common");
|
|
11879
11879
|
}
|
|
11880
11880
|
if (!Ne.isStyleNameLoaded((t = this.$style) === null || t === void 0 ? void 0 : t.name) && (n = this.$style) !== null && n !== void 0 && n.name) {
|
|
11881
|
-
var u, f, d, p, m = ((u = this.$style) === null || u === void 0 || (f = u.getComponentTheme) === null || f === void 0 ? void 0 : f.call(u)) || {}, g = m.css,
|
|
11881
|
+
var u, f, d, p, m = ((u = this.$style) === null || u === void 0 || (f = u.getComponentTheme) === null || f === void 0 ? void 0 : f.call(u)) || {}, g = m.css, h = m.style;
|
|
11882
11882
|
(d = this.$style) === null || d === void 0 || d.load(g, Oe({
|
|
11883
11883
|
name: "".concat(this.$style.name, "-variables")
|
|
11884
11884
|
}, this.$styleOptions)), (p = this.$style) === null || p === void 0 || p.loadTheme(Oe({
|
|
11885
11885
|
name: "".concat(this.$style.name, "-style")
|
|
11886
|
-
}, this.$styleOptions),
|
|
11886
|
+
}, this.$styleOptions), h), Ne.setLoadedStyleName(this.$style.name);
|
|
11887
11887
|
}
|
|
11888
11888
|
if (!Ne.isStyleNameLoaded("layer-order")) {
|
|
11889
|
-
var y,
|
|
11890
|
-
qe.load(
|
|
11889
|
+
var y, w, k = (y = this.$style) === null || y === void 0 || (w = y.getLayerOrderThemeCSS) === null || w === void 0 ? void 0 : w.call(y);
|
|
11890
|
+
qe.load(k, Oe({
|
|
11891
11891
|
name: "layer-order",
|
|
11892
11892
|
first: !0
|
|
11893
11893
|
}, this.$styleOptions)), Ne.setLoadedStyleName("layer-order");
|
|
@@ -12211,7 +12211,7 @@ var Ln = {
|
|
|
12211
12211
|
extends: Ln
|
|
12212
12212
|
};
|
|
12213
12213
|
function Gb(e, t, n, o, r, a) {
|
|
12214
|
-
return
|
|
12214
|
+
return b(), x("svg", te({
|
|
12215
12215
|
width: "14",
|
|
12216
12216
|
height: "14",
|
|
12217
12217
|
viewBox: "0 0 14 14",
|
|
@@ -12228,7 +12228,7 @@ var sr = {
|
|
|
12228
12228
|
extends: Ln
|
|
12229
12229
|
};
|
|
12230
12230
|
function Yb(e, t, n, o, r, a) {
|
|
12231
|
-
return
|
|
12231
|
+
return b(), x("svg", te({
|
|
12232
12232
|
width: "14",
|
|
12233
12233
|
height: "14",
|
|
12234
12234
|
viewBox: "0 0 14 14",
|
|
@@ -12369,7 +12369,7 @@ var Xb = function(t) {
|
|
|
12369
12369
|
inheritAttrs: !1
|
|
12370
12370
|
};
|
|
12371
12371
|
function e0(e, t, n, o, r, a) {
|
|
12372
|
-
return
|
|
12372
|
+
return b(), x("span", te({
|
|
12373
12373
|
class: e.cx("root")
|
|
12374
12374
|
}, e.ptmi("root")), [fe(e.$slots, "default", {}, function() {
|
|
12375
12375
|
return [et(Z(e.value), 1)];
|
|
@@ -12474,14 +12474,14 @@ var Se = {
|
|
|
12474
12474
|
_getOptionValue: ia,
|
|
12475
12475
|
_getPTValue: function() {
|
|
12476
12476
|
var t, n, o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, c = function() {
|
|
12477
|
-
var
|
|
12478
|
-
return pt(
|
|
12479
|
-
class:
|
|
12480
|
-
} :
|
|
12477
|
+
var w = Se._getOptionValue.apply(Se, arguments);
|
|
12478
|
+
return pt(w) || or(w) ? {
|
|
12479
|
+
class: w
|
|
12480
|
+
} : w;
|
|
12481
12481
|
}, l = ((t = o.binding) === null || t === void 0 || (t = t.value) === null || t === void 0 ? void 0 : t.ptOptions) || ((n = o.$primevueConfig) === null || n === void 0 ? void 0 : n.ptOptions) || {}, u = l.mergeSections, f = u === void 0 ? !0 : u, d = l.mergeProps, p = d === void 0 ? !1 : d, m = s ? Se._useDefaultPT(o, o.defaultPT(), c, a, i) : void 0, g = Se._usePT(o, Se._getPT(r, o.$name), c, a, Fe(Fe({}, i), {}, {
|
|
12482
12482
|
global: m || {}
|
|
12483
|
-
})),
|
|
12484
|
-
return f || !f && g ? p ? Se._mergeProps(o, p, m, g,
|
|
12483
|
+
})), h = Se._getPTDatasets(o, a);
|
|
12484
|
+
return f || !f && g ? p ? Se._mergeProps(o, p, m, g, h) : Fe(Fe(Fe({}, m), g), h) : Fe(Fe({}, g), h);
|
|
12485
12485
|
},
|
|
12486
12486
|
_getPTDatasets: function() {
|
|
12487
12487
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", o = "data-pc-";
|
|
@@ -12499,8 +12499,8 @@ var Se = {
|
|
|
12499
12499
|
} : r(t);
|
|
12500
12500
|
},
|
|
12501
12501
|
_usePT: function() {
|
|
12502
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, o = arguments.length > 2 ? arguments[2] : void 0, r = arguments.length > 3 ? arguments[3] : void 0, a = arguments.length > 4 ? arguments[4] : void 0, i = function(
|
|
12503
|
-
return o(
|
|
12502
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0, o = arguments.length > 2 ? arguments[2] : void 0, r = arguments.length > 3 ? arguments[3] : void 0, a = arguments.length > 4 ? arguments[4] : void 0, i = function(h) {
|
|
12503
|
+
return o(h, r, a);
|
|
12504
12504
|
};
|
|
12505
12505
|
if (n != null && n.hasOwnProperty("_usept")) {
|
|
12506
12506
|
var s, c = n._usept || ((s = t.$primevueConfig) === null || s === void 0 ? void 0 : s.ptOptions) || {}, l = c.mergeSections, u = l === void 0 ? !0 : l, f = c.mergeProps, d = f === void 0 ? !1 : f, p = i(n.originalValue), m = i(n.value);
|
|
@@ -12543,12 +12543,12 @@ var Se = {
|
|
|
12543
12543
|
}, a), d), Ne.setLoadedStyleName("common");
|
|
12544
12544
|
}
|
|
12545
12545
|
if (!Ne.isStyleNameLoaded((n = r.$style) === null || n === void 0 ? void 0 : n.name) && (o = r.$style) !== null && o !== void 0 && o.name) {
|
|
12546
|
-
var p, m, g,
|
|
12547
|
-
(g = r.$style) === null || g === void 0 || g.load(
|
|
12546
|
+
var p, m, g, h, y = ((p = r.$style) === null || p === void 0 || (m = p.getDirectiveTheme) === null || m === void 0 ? void 0 : m.call(p)) || {}, w = y.css, k = y.style;
|
|
12547
|
+
(g = r.$style) === null || g === void 0 || g.load(w, Fe({
|
|
12548
12548
|
name: "".concat(r.$style.name, "-variables")
|
|
12549
|
-
}, a)), (
|
|
12549
|
+
}, a)), (h = r.$style) === null || h === void 0 || h.loadTheme(Fe({
|
|
12550
12550
|
name: "".concat(r.$style.name, "-style")
|
|
12551
|
-
}, a),
|
|
12551
|
+
}, a), k), Ne.setLoadedStyleName(r.$style.name);
|
|
12552
12552
|
}
|
|
12553
12553
|
if (!Ne.isStyleNameLoaded("layer-order")) {
|
|
12554
12554
|
var S, $, N = (S = r.$style) === null || S === void 0 || ($ = S.getLayerOrderThemeCSS) === null || $ === void 0 ? void 0 : $.call(S);
|
|
@@ -12591,15 +12591,15 @@ var Se = {
|
|
|
12591
12591
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = function(i, s, c, l, u) {
|
|
12592
12592
|
var f, d, p, m;
|
|
12593
12593
|
s._$instances = s._$instances || {};
|
|
12594
|
-
var g = Se._getConfig(c, l),
|
|
12595
|
-
s._$instances[t] = Fe(Fe({},
|
|
12594
|
+
var g = Se._getConfig(c, l), h = s._$instances[t] || {}, y = xn(h) ? Fe(Fe({}, n), n == null ? void 0 : n.methods) : {};
|
|
12595
|
+
s._$instances[t] = Fe(Fe({}, h), {}, {
|
|
12596
12596
|
/* new instance variables to pass in directive methods */
|
|
12597
12597
|
$name: t,
|
|
12598
12598
|
$host: s,
|
|
12599
12599
|
$binding: c,
|
|
12600
12600
|
$modifiers: c == null ? void 0 : c.modifiers,
|
|
12601
12601
|
$value: c == null ? void 0 : c.value,
|
|
12602
|
-
$el:
|
|
12602
|
+
$el: h.$el || s || void 0,
|
|
12603
12603
|
$style: Fe({
|
|
12604
12604
|
classes: void 0,
|
|
12605
12605
|
inlineStyles: void 0,
|
|
@@ -12614,39 +12614,39 @@ var Se = {
|
|
|
12614
12614
|
$attrSelector: (f = s.$pd) === null || f === void 0 || (f = f[t]) === null || f === void 0 ? void 0 : f.attrSelector,
|
|
12615
12615
|
/* computed instance variables */
|
|
12616
12616
|
defaultPT: function() {
|
|
12617
|
-
return Se._getPT(g == null ? void 0 : g.pt, void 0, function(
|
|
12617
|
+
return Se._getPT(g == null ? void 0 : g.pt, void 0, function(k) {
|
|
12618
12618
|
var S;
|
|
12619
|
-
return
|
|
12619
|
+
return k == null || (S = k.directives) === null || S === void 0 ? void 0 : S[t];
|
|
12620
12620
|
});
|
|
12621
12621
|
},
|
|
12622
12622
|
isUnstyled: function() {
|
|
12623
|
-
var
|
|
12624
|
-
return ((
|
|
12623
|
+
var k, S;
|
|
12624
|
+
return ((k = s.$instance) === null || k === void 0 || (k = k.$binding) === null || k === void 0 || (k = k.value) === null || k === void 0 ? void 0 : k.unstyled) !== void 0 ? (S = s.$instance) === null || S === void 0 || (S = S.$binding) === null || S === void 0 || (S = S.value) === null || S === void 0 ? void 0 : S.unstyled : g == null ? void 0 : g.unstyled;
|
|
12625
12625
|
},
|
|
12626
12626
|
theme: function() {
|
|
12627
|
-
var
|
|
12628
|
-
return (
|
|
12627
|
+
var k;
|
|
12628
|
+
return (k = s.$instance) === null || k === void 0 || (k = k.$primevueConfig) === null || k === void 0 ? void 0 : k.theme;
|
|
12629
12629
|
},
|
|
12630
12630
|
preset: function() {
|
|
12631
|
-
var
|
|
12632
|
-
return (
|
|
12631
|
+
var k;
|
|
12632
|
+
return (k = s.$instance) === null || k === void 0 || (k = k.$binding) === null || k === void 0 || (k = k.value) === null || k === void 0 ? void 0 : k.dt;
|
|
12633
12633
|
},
|
|
12634
12634
|
/* instance's methods */
|
|
12635
12635
|
ptm: function() {
|
|
12636
|
-
var
|
|
12637
|
-
return Se._getPTValue(s.$instance, (
|
|
12636
|
+
var k, S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12637
|
+
return Se._getPTValue(s.$instance, (k = s.$instance) === null || k === void 0 || (k = k.$binding) === null || k === void 0 || (k = k.value) === null || k === void 0 ? void 0 : k.pt, S, Fe({}, $));
|
|
12638
12638
|
},
|
|
12639
12639
|
ptmo: function() {
|
|
12640
|
-
var
|
|
12641
|
-
return Se._getPTValue(s.$instance,
|
|
12640
|
+
var k = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", $ = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12641
|
+
return Se._getPTValue(s.$instance, k, S, $, !1);
|
|
12642
12642
|
},
|
|
12643
12643
|
cx: function() {
|
|
12644
|
-
var
|
|
12645
|
-
return (
|
|
12644
|
+
var k, S, $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12645
|
+
return (k = s.$instance) !== null && k !== void 0 && k.isUnstyled() ? void 0 : Se._getOptionValue((S = s.$instance) === null || S === void 0 || (S = S.$style) === null || S === void 0 ? void 0 : S.classes, $, Fe({}, N));
|
|
12646
12646
|
},
|
|
12647
12647
|
sx: function() {
|
|
12648
|
-
var
|
|
12649
|
-
return $ ? Se._getOptionValue((
|
|
12648
|
+
var k, S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, N = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12649
|
+
return $ ? Se._getOptionValue((k = s.$instance) === null || k === void 0 || (k = k.$style) === null || k === void 0 ? void 0 : k.inlineStyles, S, Fe({}, N)) : void 0;
|
|
12650
12650
|
}
|
|
12651
12651
|
}, y), s.$instance = s._$instances[t], (d = (p = s.$instance)[i]) === null || d === void 0 || d.call(p, s, c, l, u), s["$".concat(t)] = s.$instance, Se._hook(t, i, s, c, l, u), s.$pd || (s.$pd = {}), s.$pd[t] = Fe(Fe({}, (m = s.$pd) === null || m === void 0 ? void 0 : m[t]), {}, {
|
|
12652
12652
|
name: t,
|
|
@@ -12655,11 +12655,11 @@ var Se = {
|
|
|
12655
12655
|
}, r = function(i) {
|
|
12656
12656
|
var s, c, l, u, f, d = (s = i.$instance) === null || s === void 0 ? void 0 : s.watch;
|
|
12657
12657
|
d == null || (c = d.config) === null || c === void 0 || c.call(i.$instance, (l = i.$instance) === null || l === void 0 ? void 0 : l.$primevueConfig), Li.on("config:change", function(p) {
|
|
12658
|
-
var m, g = p.newValue,
|
|
12659
|
-
return d == null || (m = d.config) === null || m === void 0 ? void 0 : m.call(i.$instance, g,
|
|
12658
|
+
var m, g = p.newValue, h = p.oldValue;
|
|
12659
|
+
return d == null || (m = d.config) === null || m === void 0 ? void 0 : m.call(i.$instance, g, h);
|
|
12660
12660
|
}), d == null || (u = d["config.ripple"]) === null || u === void 0 || u.call(i.$instance, (f = i.$instance) === null || f === void 0 || (f = f.$primevueConfig) === null || f === void 0 ? void 0 : f.ripple), Li.on("config:ripple:change", function(p) {
|
|
12661
|
-
var m, g = p.newValue,
|
|
12662
|
-
return d == null || (m = d["config.ripple"]) === null || m === void 0 ? void 0 : m.call(i.$instance, g,
|
|
12661
|
+
var m, g = p.newValue, h = p.oldValue;
|
|
12662
|
+
return d == null || (m = d["config.ripple"]) === null || m === void 0 ? void 0 : m.call(i.$instance, g, h);
|
|
12663
12663
|
});
|
|
12664
12664
|
};
|
|
12665
12665
|
return {
|
|
@@ -13668,7 +13668,7 @@ function C0(e, t, n, o, r, a) {
|
|
|
13668
13668
|
key: 1,
|
|
13669
13669
|
class: ye(e.cx("root")),
|
|
13670
13670
|
a11yAttrs: a.a11yAttrs
|
|
13671
|
-
}) : xt((
|
|
13671
|
+
}) : xt((b(), j(De(e.as), te({
|
|
13672
13672
|
key: 0,
|
|
13673
13673
|
class: e.cx("root")
|
|
13674
13674
|
}, a.attrs), {
|
|
@@ -13678,10 +13678,10 @@ function C0(e, t, n, o, r, a) {
|
|
|
13678
13678
|
key: 0,
|
|
13679
13679
|
class: [e.cx("loadingIcon"), e.cx("icon")]
|
|
13680
13680
|
}, e.ptm("loadingIcon")), function() {
|
|
13681
|
-
return [e.loadingIcon ? (
|
|
13681
|
+
return [e.loadingIcon ? (b(), x("span", te({
|
|
13682
13682
|
key: 0,
|
|
13683
13683
|
class: [e.cx("loadingIcon"), e.cx("icon"), e.loadingIcon]
|
|
13684
|
-
}, e.ptm("loadingIcon")), null, 16)) : (
|
|
13684
|
+
}, e.ptm("loadingIcon")), null, 16)) : (b(), j(i, te({
|
|
13685
13685
|
key: 1,
|
|
13686
13686
|
class: [e.cx("loadingIcon"), e.cx("icon")],
|
|
13687
13687
|
spin: ""
|
|
@@ -13690,13 +13690,13 @@ function C0(e, t, n, o, r, a) {
|
|
|
13690
13690
|
key: 1,
|
|
13691
13691
|
class: [e.cx("icon")]
|
|
13692
13692
|
}, e.ptm("icon")), function() {
|
|
13693
|
-
return [e.icon ? (
|
|
13693
|
+
return [e.icon ? (b(), x("span", te({
|
|
13694
13694
|
key: 0,
|
|
13695
13695
|
class: [e.cx("icon"), e.icon, e.iconClass]
|
|
13696
13696
|
}, e.ptm("icon")), null, 16)) : U("", !0)];
|
|
13697
13697
|
}), v("span", te({
|
|
13698
13698
|
class: e.cx("label")
|
|
13699
|
-
}, e.ptm("label")), Z(e.label || " "), 17), e.badge ? (
|
|
13699
|
+
}, e.ptm("label")), Z(e.label || " "), 17), e.badge ? (b(), j(s, {
|
|
13700
13700
|
key: 2,
|
|
13701
13701
|
value: e.badge,
|
|
13702
13702
|
class: ye(e.badgeClass),
|
|
@@ -13823,14 +13823,14 @@ const E0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13823
13823
|
}
|
|
13824
13824
|
},
|
|
13825
13825
|
setup(e, { expose: t, emit: n }) {
|
|
13826
|
-
const o = We(), r = new bt(), a = n, i = e, s = E("id"), c = E(1), l = E(25), u = E(0), f = E(null), d = E([]), p = E([]), m = E(!0), g = E(null), { hasMatchingRoleAndPermissions:
|
|
13826
|
+
const o = We(), r = new bt(), a = n, i = e, s = E("id"), c = E(1), l = E(25), u = E(0), f = E(null), d = E([]), p = E([]), m = E(!0), g = E(null), { hasMatchingRoleAndPermissions: h } = Sn(), y = rr();
|
|
13827
13827
|
sn("entityObject", y);
|
|
13828
|
-
const
|
|
13829
|
-
const R =
|
|
13828
|
+
const w = E(null), k = (D) => {
|
|
13829
|
+
const R = w.value;
|
|
13830
13830
|
R && (R.scrollLeft += D * 266);
|
|
13831
13831
|
};
|
|
13832
13832
|
Le(async () => {
|
|
13833
|
-
m.value = await
|
|
13833
|
+
m.value = await h(i.roles, i.permissions), console.log("props entitylist", i.preFiltered), i.preFiltered && M();
|
|
13834
13834
|
}), i.linkedEntity ? $e(() => i.linkedEntity, (D) => {
|
|
13835
13835
|
D && (d.value = D, a("linkedEntityChanged", D));
|
|
13836
13836
|
}, { immediate: !0 }) : $e(() => y.state.data, (D) => {
|
|
@@ -13903,27 +13903,27 @@ const E0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13903
13903
|
const R = await y.applyPreset(D, i.entityName);
|
|
13904
13904
|
y.state.data = R || {};
|
|
13905
13905
|
};
|
|
13906
|
-
return (D, R) => (
|
|
13907
|
-
D.$slots["list-item-display"] ? (
|
|
13906
|
+
return (D, R) => (b(), x("div", Xt(bo(D.$attrs)), [
|
|
13907
|
+
D.$slots["list-item-display"] ? (b(), x(ie, { key: 0 }, [
|
|
13908
13908
|
fe(D.$slots, "header", {}, void 0, !0),
|
|
13909
13909
|
v("div", E0, [
|
|
13910
|
-
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (
|
|
13910
|
+
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", $0, [
|
|
13911
13911
|
v("div", O0, [
|
|
13912
|
-
e.showFilters ? (
|
|
13912
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), {
|
|
13913
13913
|
key: 0,
|
|
13914
13914
|
externalFilterPayload: i.externalFilterPayload,
|
|
13915
13915
|
preFiltered: i.preFiltered
|
|
13916
13916
|
}, null, 8, ["externalFilterPayload", "preFiltered"])) : U("", !0),
|
|
13917
|
-
e.showAddButton ? (
|
|
13918
|
-
e.showPagination ? (
|
|
13917
|
+
e.showAddButton ? (b(), j(Et, { key: 1 })) : U("", !0),
|
|
13918
|
+
e.showPagination ? (b(), j(De(e.listPagination || Nt), {
|
|
13919
13919
|
key: 2,
|
|
13920
13920
|
class: "ml-auto"
|
|
13921
13921
|
})) : U("", !0)
|
|
13922
13922
|
])
|
|
13923
13923
|
])) : U("", !0)
|
|
13924
13924
|
]),
|
|
13925
|
-
e.showPresets ? (
|
|
13926
|
-
(
|
|
13925
|
+
e.showPresets ? (b(), x("div", T0, [
|
|
13926
|
+
(b(!0), x(ie, null, Ce(p.value, (z) => (b(), x("button", {
|
|
13927
13927
|
key: z,
|
|
13928
13928
|
onClick: (Q) => {
|
|
13929
13929
|
g.value = z.name, B(z.name);
|
|
@@ -13933,17 +13933,17 @@ const E0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13933
13933
|
]])
|
|
13934
13934
|
}, Z(z.name), 11, I0))), 128))
|
|
13935
13935
|
])) : U("", !0),
|
|
13936
|
-
d.value.length > 0 ? (
|
|
13936
|
+
d.value.length > 0 ? (b(), x("div", B0, [
|
|
13937
13937
|
v("button", {
|
|
13938
|
-
onClick: R[0] || (R[0] = (z) =>
|
|
13938
|
+
onClick: R[0] || (R[0] = (z) => k(-1)),
|
|
13939
13939
|
class: "absolute left-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
|
|
13940
13940
|
}, " ◀ "),
|
|
13941
13941
|
v("div", {
|
|
13942
13942
|
ref_key: "carouselRef",
|
|
13943
|
-
ref:
|
|
13943
|
+
ref: w,
|
|
13944
13944
|
class: "flex overflow-x-auto no-scrollbar gap-4 py-2 px-10 scroll-smooth"
|
|
13945
13945
|
}, [
|
|
13946
|
-
(
|
|
13946
|
+
(b(!0), x(ie, null, Ce(d.value, (z) => (b(), x("div", {
|
|
13947
13947
|
key: z.id,
|
|
13948
13948
|
class: "min-w-[250px] flex-shrink-0"
|
|
13949
13949
|
}, [
|
|
@@ -13951,84 +13951,84 @@ const E0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13951
13951
|
]))), 128))
|
|
13952
13952
|
], 512),
|
|
13953
13953
|
v("button", {
|
|
13954
|
-
onClick: R[1] || (R[1] = (z) =>
|
|
13954
|
+
onClick: R[1] || (R[1] = (z) => k(1)),
|
|
13955
13955
|
class: "absolute right-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
|
|
13956
13956
|
}, " ▶ ")
|
|
13957
13957
|
])) : U("", !0),
|
|
13958
|
-
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (
|
|
13958
|
+
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", R0, [
|
|
13959
13959
|
v("div", P0, [
|
|
13960
|
-
e.showFilters ? (
|
|
13960
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), {
|
|
13961
13961
|
key: 0,
|
|
13962
13962
|
externalFilterPayload: i.externalFilterPayload,
|
|
13963
13963
|
preFiltered: i.preFiltered
|
|
13964
13964
|
}, null, 8, ["externalFilterPayload", "preFiltered"])) : U("", !0),
|
|
13965
|
-
e.showAddButton ? (
|
|
13966
|
-
e.showPagination ? (
|
|
13965
|
+
e.showAddButton ? (b(), j(Et, { key: 1 })) : U("", !0),
|
|
13966
|
+
e.showPagination ? (b(), j(De(e.listPagination || Nt), {
|
|
13967
13967
|
key: 2,
|
|
13968
13968
|
class: "ml-auto"
|
|
13969
13969
|
})) : U("", !0)
|
|
13970
13970
|
])
|
|
13971
13971
|
])) : U("", !0),
|
|
13972
13972
|
fe(D.$slots, "footer", {}, void 0, !0)
|
|
13973
|
-
], 64)) : (
|
|
13973
|
+
], 64)) : (b(), x(ie, { key: 1 }, [
|
|
13974
13974
|
fe(D.$slots, "header", {}, void 0, !0),
|
|
13975
|
-
e.entityName ? (
|
|
13975
|
+
e.entityName ? (b(), x("div", D0, [
|
|
13976
13976
|
v("div", N0, [
|
|
13977
|
-
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (
|
|
13977
|
+
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", L0, [
|
|
13978
13978
|
v("div", V0, [
|
|
13979
|
-
e.showFilters ? (
|
|
13979
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), {
|
|
13980
13980
|
key: 0,
|
|
13981
13981
|
externalFilterPayload: i.externalFilterPayload,
|
|
13982
13982
|
preFiltered: i.preFiltered
|
|
13983
13983
|
}, null, 8, ["externalFilterPayload", "preFiltered"])) : U("", !0),
|
|
13984
|
-
e.showAddButton ? (
|
|
13985
|
-
e.showPagination ? (
|
|
13984
|
+
e.showAddButton ? (b(), j(Et, { key: 1 })) : U("", !0),
|
|
13985
|
+
e.showPagination ? (b(), j(De(e.listPagination || Nt), {
|
|
13986
13986
|
key: 2,
|
|
13987
13987
|
class: "ml-auto"
|
|
13988
13988
|
})) : U("", !0)
|
|
13989
13989
|
])
|
|
13990
13990
|
])) : U("", !0)
|
|
13991
13991
|
]),
|
|
13992
|
-
d.value.length > 0 ? (
|
|
13992
|
+
d.value.length > 0 ? (b(), x("div", z0, [
|
|
13993
13993
|
v("button", {
|
|
13994
|
-
onClick: R[2] || (R[2] = (z) =>
|
|
13994
|
+
onClick: R[2] || (R[2] = (z) => k(-1)),
|
|
13995
13995
|
class: "absolute left-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
|
|
13996
13996
|
}, " ◀ "),
|
|
13997
13997
|
v("div", {
|
|
13998
13998
|
ref_key: "carouselRef",
|
|
13999
|
-
ref:
|
|
13999
|
+
ref: w,
|
|
14000
14000
|
class: "flex overflow-x-auto no-scrollbar gap-4 py-2 px-10 scroll-smooth"
|
|
14001
14001
|
}, [
|
|
14002
|
-
(
|
|
14002
|
+
(b(!0), x(ie, null, Ce(d.value, (z) => (b(), x("div", {
|
|
14003
14003
|
key: z.id,
|
|
14004
14004
|
class: "min-w-[250px] flex-shrink-0"
|
|
14005
14005
|
}, [
|
|
14006
|
-
(
|
|
14006
|
+
(b(), j(De(e.listItemDisplay && e.listItemDisplay !== "" ? e.listItemDisplay : Hh), te({ ref_for: !0 }, { item: z, ...i }), null, 16))
|
|
14007
14007
|
]))), 128))
|
|
14008
14008
|
], 512),
|
|
14009
14009
|
v("button", {
|
|
14010
|
-
onClick: R[3] || (R[3] = (z) =>
|
|
14010
|
+
onClick: R[3] || (R[3] = (z) => k(1)),
|
|
14011
14011
|
class: "absolute right-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
|
|
14012
14012
|
}, " ▶ ")
|
|
14013
14013
|
])) : U("", !0),
|
|
14014
|
-
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (
|
|
14014
|
+
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", M0, [
|
|
14015
14015
|
v("div", j0, [
|
|
14016
|
-
e.showFilters ? (
|
|
14016
|
+
e.showFilters ? (b(), j(De(e.listFilter || Ct), {
|
|
14017
14017
|
key: 0,
|
|
14018
14018
|
externalFilterPayload: i.externalFilterPayload,
|
|
14019
14019
|
preFiltered: i.preFiltered
|
|
14020
14020
|
}, null, 8, ["externalFilterPayload", "preFiltered"])) : U("", !0),
|
|
14021
|
-
e.showAddButton ? (
|
|
14022
|
-
e.showPagination ? (
|
|
14021
|
+
e.showAddButton ? (b(), j(Et, { key: 1 })) : U("", !0),
|
|
14022
|
+
e.showPagination ? (b(), j(De(e.listPagination || Nt), {
|
|
14023
14023
|
key: 2,
|
|
14024
14024
|
class: "ml-auto"
|
|
14025
14025
|
})) : U("", !0)
|
|
14026
14026
|
])
|
|
14027
14027
|
])) : U("", !0)
|
|
14028
|
-
])) : (
|
|
14028
|
+
])) : (b(), x("div", F0, [
|
|
14029
14029
|
v("p", A0, [
|
|
14030
14030
|
R[4] || (R[4] = et(" Error: Missing required props - ")),
|
|
14031
|
-
e.entityName ? U("", !0) : (
|
|
14031
|
+
e.entityName ? U("", !0) : (b(), x("span", _0, "Entity Name"))
|
|
14032
14032
|
])
|
|
14033
14033
|
])),
|
|
14034
14034
|
fe(D.$slots, "footer", {}, void 0, !0)
|
|
@@ -15271,8 +15271,8 @@ function Yy(e, t, n) {
|
|
|
15271
15271
|
let c = t.match(Wy).map((m) => {
|
|
15272
15272
|
const g = m[0];
|
|
15273
15273
|
if (g === "p" || g === "P") {
|
|
15274
|
-
const
|
|
15275
|
-
return
|
|
15274
|
+
const h = Dy[g];
|
|
15275
|
+
return h(m, r.formatLong);
|
|
15276
15276
|
}
|
|
15277
15277
|
return m;
|
|
15278
15278
|
}).join("").match(Hy).map((m) => {
|
|
@@ -15299,8 +15299,8 @@ function Yy(e, t, n) {
|
|
|
15299
15299
|
if (!m.isToken) return m.value;
|
|
15300
15300
|
const g = m.value;
|
|
15301
15301
|
(My(g) || zy(g)) && jy(g, t, String(e));
|
|
15302
|
-
const
|
|
15303
|
-
return
|
|
15302
|
+
const h = Ki[g[0]];
|
|
15303
|
+
return h(s, g, r.localize, l);
|
|
15304
15304
|
}).join("");
|
|
15305
15305
|
}
|
|
15306
15306
|
function Xy(e) {
|
|
@@ -15366,23 +15366,23 @@ function Qy() {
|
|
|
15366
15366
|
}, t._ = n = {
|
|
15367
15367
|
// formats numbers separators, decimals places, signs, abbreviations
|
|
15368
15368
|
numberToFormat: function(l, u, f) {
|
|
15369
|
-
var d = a[t.options.currentLocale], p = !1, m = !1, g = 0,
|
|
15370
|
-
if (l = l || 0, O = Math.abs(l), t._.includes(u, "(") ? (p = !0, u = u.replace(/[\(|\)]/g, "")) : (t._.includes(u, "+") || t._.includes(u, "-")) && (T = t._.includes(u, "+") ? u.indexOf("+") : l < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), t._.includes(u, "a") && (I = u.match(/a(k|m|b|t)?/), I = I ? I[1] : !1, t._.includes(u, " a") && (
|
|
15371
|
-
switch (M = String(Number(M) / 1e3),
|
|
15369
|
+
var d = a[t.options.currentLocale], p = !1, m = !1, g = 0, h = "", y = 1e12, w = 1e9, k = 1e6, S = 1e3, $ = "", N = !1, I, O, M, W, T, V, C;
|
|
15370
|
+
if (l = l || 0, O = Math.abs(l), t._.includes(u, "(") ? (p = !0, u = u.replace(/[\(|\)]/g, "")) : (t._.includes(u, "+") || t._.includes(u, "-")) && (T = t._.includes(u, "+") ? u.indexOf("+") : l < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), t._.includes(u, "a") && (I = u.match(/a(k|m|b|t)?/), I = I ? I[1] : !1, t._.includes(u, " a") && (h = " "), u = u.replace(new RegExp(h + "a[kmbt]?"), ""), O >= y && !I || I === "t" ? (h += d.abbreviations.trillion, l = l / y) : O < y && O >= w && !I || I === "b" ? (h += d.abbreviations.billion, l = l / w) : O < w && O >= k && !I || I === "m" ? (h += d.abbreviations.million, l = l / k) : (O < k && O >= S && !I || I === "k") && (h += d.abbreviations.thousand, l = l / S)), t._.includes(u, "[.]") && (m = !0, u = u.replace("[.]", ".")), M = l.toString().split(".")[0], W = u.split(".")[1], V = u.indexOf(","), g = (u.split(".")[0].split(",")[0].match(/0/g) || []).length, W ? (t._.includes(W, "[") ? (W = W.replace("]", ""), W = W.split("["), $ = t._.toFixed(l, W[0].length + W[1].length, f, W[1].length)) : $ = t._.toFixed(l, W.length, f), M = $.split(".")[0], t._.includes($, ".") ? $ = d.delimiters.decimal + $.split(".")[1] : $ = "", m && Number($.slice(1)) === 0 && ($ = "")) : M = t._.toFixed(l, 0, f), h && !I && Number(M) >= 1e3 && h !== d.abbreviations.trillion)
|
|
15371
|
+
switch (M = String(Number(M) / 1e3), h) {
|
|
15372
15372
|
case d.abbreviations.thousand:
|
|
15373
|
-
|
|
15373
|
+
h = d.abbreviations.million;
|
|
15374
15374
|
break;
|
|
15375
15375
|
case d.abbreviations.million:
|
|
15376
|
-
|
|
15376
|
+
h = d.abbreviations.billion;
|
|
15377
15377
|
break;
|
|
15378
15378
|
case d.abbreviations.billion:
|
|
15379
|
-
|
|
15379
|
+
h = d.abbreviations.trillion;
|
|
15380
15380
|
break;
|
|
15381
15381
|
}
|
|
15382
15382
|
if (t._.includes(M, "-") && (M = M.slice(1), N = !0), M.length < g)
|
|
15383
15383
|
for (var B = g - M.length; B > 0; B--)
|
|
15384
15384
|
M = "0" + M;
|
|
15385
|
-
return V > -1 && (M = M.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), u.indexOf(".") === 0 && (M = ""), C = M + $ + (
|
|
15385
|
+
return V > -1 && (M = M.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), u.indexOf(".") === 0 && (M = ""), C = M + $ + (h || ""), p ? C = (p && N ? "(" : "") + C + (p && N ? ")" : "") : T >= 0 ? C = T === 0 ? (N ? "-" : "+") + C : C + (N ? "-" : "+") : N && (C = "-" + C), C;
|
|
15386
15386
|
},
|
|
15387
15387
|
// unformats numbers separators, decimals places, signs, abbreviations
|
|
15388
15388
|
stringToNumber: function(l) {
|
|
@@ -15463,8 +15463,8 @@ function Qy() {
|
|
|
15463
15463
|
* problems for accounting- and finance-related software.
|
|
15464
15464
|
*/
|
|
15465
15465
|
toFixed: function(l, u, f, d) {
|
|
15466
|
-
var p = l.toString().split("."), m = u - (d || 0), g,
|
|
15467
|
-
return p.length === 2 ? g = Math.min(Math.max(p[1].length, m), u) : g = m, y = Math.pow(10, g),
|
|
15466
|
+
var p = l.toString().split("."), m = u - (d || 0), g, h, y, w;
|
|
15467
|
+
return p.length === 2 ? g = Math.min(Math.max(p[1].length, m), u) : g = m, y = Math.pow(10, g), w = (f(l + "e+" + g) / y).toFixed(g), d > u - g && (h = new RegExp("\\.?0{1," + (d - (u - g)) + "}$"), w = w.replace(h, "")), w;
|
|
15468
15468
|
}
|
|
15469
15469
|
}, t.options = s, t.formats = r, t.locales = a, t.locale = function(l) {
|
|
15470
15470
|
return l && (s.currentLocale = l.toLowerCase()), s.currentLocale;
|
|
@@ -15488,7 +15488,7 @@ function Qy() {
|
|
|
15488
15488
|
throw new TypeError(u + " " + l + " already registered.");
|
|
15489
15489
|
return this[l + "s"][u] = f, f;
|
|
15490
15490
|
}, t.validate = function(l, u) {
|
|
15491
|
-
var f, d, p, m, g,
|
|
15491
|
+
var f, d, p, m, g, h, y, w;
|
|
15492
15492
|
if (typeof l != "string" && (l += "", console.warn && console.warn("Numeral.js: Value is not string. It has been co-erced to: ", l)), l = l.trim(), l.match(/^\d+$/))
|
|
15493
15493
|
return !0;
|
|
15494
15494
|
if (l === "")
|
|
@@ -15498,7 +15498,7 @@ function Qy() {
|
|
|
15498
15498
|
} catch {
|
|
15499
15499
|
y = t.localeData(t.locale());
|
|
15500
15500
|
}
|
|
15501
|
-
return p = y.currency.symbol, g = y.abbreviations, f = y.delimiters.decimal, y.delimiters.thousands === "." ? d = "\\." : d = y.delimiters.thousands,
|
|
15501
|
+
return p = y.currency.symbol, g = y.abbreviations, f = y.delimiters.decimal, y.delimiters.thousands === "." ? d = "\\." : d = y.delimiters.thousands, w = l.match(/^[^\d]+/), w !== null && (l = l.substr(1), w[0] !== p) || (w = l.match(/[^\d]+$/), w !== null && (l = l.slice(0, -1), w[0] !== g.thousand && w[0] !== g.million && w[0] !== g.billion && w[0] !== g.trillion)) ? !1 : (h = new RegExp(d + "{2}"), l.match(/[^\d.,]/g) ? !1 : (m = l.split(f), m.length > 2 ? !1 : m.length < 2 ? !!m[0].match(/^\d+.*\d$/) && !m[0].match(h) : m[0].length === 1 ? !!m[0].match(/^\d+$/) && !m[0].match(h) && !!m[1].match(/^\d+$/) : !!m[0].match(/^\d+.*\d$/) && !m[0].match(h) && !!m[1].match(/^\d+$/)));
|
|
15502
15502
|
}, t.fn = c.prototype = {
|
|
15503
15503
|
clone: function() {
|
|
15504
15504
|
return t(this);
|
|
@@ -15607,28 +15607,28 @@ function Qy() {
|
|
|
15607
15607
|
unformat: new RegExp(d)
|
|
15608
15608
|
},
|
|
15609
15609
|
format: function(p, m, g) {
|
|
15610
|
-
var
|
|
15611
|
-
for (m = m.replace(/\s?i?b/, ""),
|
|
15612
|
-
if (S = Math.pow(y.base,
|
|
15613
|
-
|
|
15610
|
+
var h, y = t._.includes(m, "ib") ? u : l, w = t._.includes(m, " b") || t._.includes(m, " ib") ? " " : "", k, S, $;
|
|
15611
|
+
for (m = m.replace(/\s?i?b/, ""), k = 0; k <= y.suffixes.length; k++)
|
|
15612
|
+
if (S = Math.pow(y.base, k), $ = Math.pow(y.base, k + 1), p === null || p === 0 || p >= S && p < $) {
|
|
15613
|
+
w += y.suffixes[k], S > 0 && (p = p / S);
|
|
15614
15614
|
break;
|
|
15615
15615
|
}
|
|
15616
|
-
return
|
|
15616
|
+
return h = t._.numberToFormat(p, m, g), h + w;
|
|
15617
15617
|
},
|
|
15618
15618
|
unformat: function(p) {
|
|
15619
|
-
var m = t._.stringToNumber(p), g,
|
|
15619
|
+
var m = t._.stringToNumber(p), g, h;
|
|
15620
15620
|
if (m) {
|
|
15621
15621
|
for (g = l.suffixes.length - 1; g >= 0; g--) {
|
|
15622
15622
|
if (t._.includes(p, l.suffixes[g])) {
|
|
15623
|
-
|
|
15623
|
+
h = Math.pow(l.base, g);
|
|
15624
15624
|
break;
|
|
15625
15625
|
}
|
|
15626
15626
|
if (t._.includes(p, u.suffixes[g])) {
|
|
15627
|
-
|
|
15627
|
+
h = Math.pow(u.base, g);
|
|
15628
15628
|
break;
|
|
15629
15629
|
}
|
|
15630
15630
|
}
|
|
15631
|
-
m *=
|
|
15631
|
+
m *= h || 1;
|
|
15632
15632
|
}
|
|
15633
15633
|
return m;
|
|
15634
15634
|
}
|
|
@@ -15642,23 +15642,23 @@ function Qy() {
|
|
|
15642
15642
|
var d = t.locales[t.options.currentLocale], p = {
|
|
15643
15643
|
before: u.match(/^([\+|\-|\(|\s|\$]*)/)[0],
|
|
15644
15644
|
after: u.match(/([\+|\-|\)|\s|\$]*)$/)[0]
|
|
15645
|
-
}, m, g,
|
|
15646
|
-
for (u = u.replace(/\s?\$\s?/, ""), m = t._.numberToFormat(l, u, f), l >= 0 ? (p.before = p.before.replace(/[\-\(]/, ""), p.after = p.after.replace(/[\-\)]/, "")) : l < 0 && !t._.includes(p.before, "-") && !t._.includes(p.before, "(") && (p.before = "-" + p.before),
|
|
15647
|
-
switch (g = p.before[
|
|
15645
|
+
}, m, g, h;
|
|
15646
|
+
for (u = u.replace(/\s?\$\s?/, ""), m = t._.numberToFormat(l, u, f), l >= 0 ? (p.before = p.before.replace(/[\-\(]/, ""), p.after = p.after.replace(/[\-\)]/, "")) : l < 0 && !t._.includes(p.before, "-") && !t._.includes(p.before, "(") && (p.before = "-" + p.before), h = 0; h < p.before.length; h++)
|
|
15647
|
+
switch (g = p.before[h], g) {
|
|
15648
15648
|
case "$":
|
|
15649
|
-
m = t._.insert(m, d.currency.symbol,
|
|
15649
|
+
m = t._.insert(m, d.currency.symbol, h);
|
|
15650
15650
|
break;
|
|
15651
15651
|
case " ":
|
|
15652
|
-
m = t._.insert(m, " ",
|
|
15652
|
+
m = t._.insert(m, " ", h + d.currency.symbol.length - 1);
|
|
15653
15653
|
break;
|
|
15654
15654
|
}
|
|
15655
|
-
for (
|
|
15656
|
-
switch (g = p.after[
|
|
15655
|
+
for (h = p.after.length - 1; h >= 0; h--)
|
|
15656
|
+
switch (g = p.after[h], g) {
|
|
15657
15657
|
case "$":
|
|
15658
|
-
m =
|
|
15658
|
+
m = h === p.after.length - 1 ? m + d.currency.symbol : t._.insert(m, d.currency.symbol, -(p.after.length - (1 + h)));
|
|
15659
15659
|
break;
|
|
15660
15660
|
case " ":
|
|
15661
|
-
m =
|
|
15661
|
+
m = h === p.after.length - 1 ? m + " " : t._.insert(m, " ", -(p.after.length - (1 + h) + d.currency.symbol.length - 1));
|
|
15662
15662
|
break;
|
|
15663
15663
|
}
|
|
15664
15664
|
return m;
|
|
@@ -15677,9 +15677,9 @@ function Qy() {
|
|
|
15677
15677
|
unformat: function(l) {
|
|
15678
15678
|
var u = t._.includes(l, "e+") ? l.split("e+") : l.split("e-"), f = Number(u[0]), d = Number(u[1]);
|
|
15679
15679
|
d = t._.includes(l, "e-") ? d *= -1 : d;
|
|
15680
|
-
function p(m, g,
|
|
15681
|
-
var
|
|
15682
|
-
return
|
|
15680
|
+
function p(m, g, h, y) {
|
|
15681
|
+
var w = t._.correctionFactor(m, g), k = m * w * (g * w) / (w * w);
|
|
15682
|
+
return k;
|
|
15683
15683
|
}
|
|
15684
15684
|
return t._.reduce([f, Math.pow(10, d)], p, 1);
|
|
15685
15685
|
}
|
|
@@ -15734,7 +15734,7 @@ const Qi = /* @__PURE__ */ hl(Zy), Zi = {
|
|
|
15734
15734
|
props: ["value", "type", "displayFormat"],
|
|
15735
15735
|
setup(e) {
|
|
15736
15736
|
const t = ne(() => n()), n = () => e.type === "DATE" ? o() : e.type === "NUMBER" ? r() : e.value, o = () => Yy(e.value, e.displayFormat ? e.displayFormat : "MM/dd/yyyy"), r = () => e.displayFormat ? e.displayFormat === "currency" ? Qi(e.value).format("$0,0.00") : Qi(e.value).format(e.displayFormat) : e.value;
|
|
15737
|
-
return (a, i) => (
|
|
15737
|
+
return (a, i) => (b(), x("span", null, Z(t.value), 1));
|
|
15738
15738
|
}
|
|
15739
15739
|
};
|
|
15740
15740
|
function tu() {
|
|
@@ -16016,7 +16016,7 @@ const ev = /* @__PURE__ */ qo("entitiesStore", {
|
|
|
16016
16016
|
{ immediate: !0 }
|
|
16017
16017
|
), (c, l) => {
|
|
16018
16018
|
const u = K("Select");
|
|
16019
|
-
return
|
|
16019
|
+
return b(), x("div", tv, [
|
|
16020
16020
|
q(u, {
|
|
16021
16021
|
modelValue: n.value,
|
|
16022
16022
|
"onUpdate:modelValue": [
|
|
@@ -16030,9 +16030,9 @@ const ev = /* @__PURE__ */ qo("entitiesStore", {
|
|
|
16030
16030
|
class: "w-full"
|
|
16031
16031
|
}, {
|
|
16032
16032
|
value: oe((f) => [
|
|
16033
|
-
f.value ? (
|
|
16033
|
+
f.value ? (b(), x("div", nv, [
|
|
16034
16034
|
v("div", null, Z(f.value.name), 1)
|
|
16035
|
-
])) : (
|
|
16035
|
+
])) : (b(), x("span", ov, Z(f.placeholder), 1))
|
|
16036
16036
|
]),
|
|
16037
16037
|
option: oe((f) => [
|
|
16038
16038
|
v("div", rv, [
|
|
@@ -16057,16 +16057,16 @@ const ev = /* @__PURE__ */ qo("entitiesStore", {
|
|
|
16057
16057
|
const o = (r) => {
|
|
16058
16058
|
n.value = r;
|
|
16059
16059
|
};
|
|
16060
|
-
return (r, a) => (
|
|
16060
|
+
return (r, a) => (b(), x("div", iv, [
|
|
16061
16061
|
v("div", sv, [
|
|
16062
|
-
(
|
|
16062
|
+
(b(), j(av, {
|
|
16063
16063
|
key: n.value,
|
|
16064
16064
|
entityName: n.value,
|
|
16065
16065
|
onEntityChangeCallback: o
|
|
16066
16066
|
}, null, 8, ["entityName"]))
|
|
16067
16067
|
]),
|
|
16068
16068
|
v("div", lv, [
|
|
16069
|
-
(
|
|
16069
|
+
(b(), j(Lr, {
|
|
16070
16070
|
key: n.value,
|
|
16071
16071
|
entityName: n.value
|
|
16072
16072
|
}, null, 8, ["entityName"]))
|
|
@@ -16129,7 +16129,7 @@ const nu = {
|
|
|
16129
16129
|
c !== n.item && (c.isOpen = !1);
|
|
16130
16130
|
}), n.item.isOpen = !n.item.isOpen) : n.item.route && n.item.url ? t.push(n.item.url) : !n.item.route && n.item.url && (window.location.href = n.item.url);
|
|
16131
16131
|
};
|
|
16132
|
-
return (s, c) => (
|
|
16132
|
+
return (s, c) => (b(), x("div", {
|
|
16133
16133
|
class: "relative",
|
|
16134
16134
|
onMouseenter: c[1] || (c[1] = (l) => e.openTrigger === "hover" && ee(o) ? r() : null),
|
|
16135
16135
|
onMouseleave: c[2] || (c[2] = (l) => e.openTrigger === "hover" && ee(o) ? a() : null)
|
|
@@ -16143,34 +16143,34 @@ const nu = {
|
|
|
16143
16143
|
!e.isChild && e.hasSlotParent ? fe(s.$slots, "list-item-menu-parent", {
|
|
16144
16144
|
key: 0,
|
|
16145
16145
|
item: e.item
|
|
16146
|
-
}) : e.isChild ? U("", !0) : (
|
|
16146
|
+
}) : e.isChild ? U("", !0) : (b(), x("div", {
|
|
16147
16147
|
key: 1,
|
|
16148
16148
|
class: ye(["px-2 py-1 whitespace-nowrap", [
|
|
16149
16149
|
e.iconPosition === "top" || e.iconPosition === "bottom" ? "flex flex-col items-center justify-center gap-1" : "flex flex-row items-center gap-1"
|
|
16150
16150
|
]])
|
|
16151
16151
|
}, [
|
|
16152
|
-
e.iconPosition === "top" ? (
|
|
16152
|
+
e.iconPosition === "top" ? (b(), x(ie, { key: 0 }, [
|
|
16153
16153
|
v("i", {
|
|
16154
16154
|
class: ye([e.item.mediumIcon, e.iconSize])
|
|
16155
16155
|
}, null, 2),
|
|
16156
16156
|
v("span", {
|
|
16157
16157
|
class: ye(e.labelSize)
|
|
16158
16158
|
}, Z(e.item.displayLabel), 3)
|
|
16159
|
-
], 64)) : e.iconPosition === "bottom" ? (
|
|
16159
|
+
], 64)) : e.iconPosition === "bottom" ? (b(), x(ie, { key: 1 }, [
|
|
16160
16160
|
v("span", {
|
|
16161
16161
|
class: ye(e.labelSize)
|
|
16162
16162
|
}, Z(e.item.displayLabel), 3),
|
|
16163
16163
|
v("i", {
|
|
16164
16164
|
class: ye([e.item.mediumIcon, e.iconSize])
|
|
16165
16165
|
}, null, 2)
|
|
16166
|
-
], 64)) : e.iconPosition === "right" ? (
|
|
16166
|
+
], 64)) : e.iconPosition === "right" ? (b(), x(ie, { key: 2 }, [
|
|
16167
16167
|
v("span", {
|
|
16168
16168
|
class: ye(e.labelSize)
|
|
16169
16169
|
}, Z(e.item.displayLabel), 3),
|
|
16170
16170
|
v("i", {
|
|
16171
16171
|
class: ye([e.item.mediumIcon, e.iconSize])
|
|
16172
16172
|
}, null, 2)
|
|
16173
|
-
], 64)) : (
|
|
16173
|
+
], 64)) : (b(), x(ie, { key: 3 }, [
|
|
16174
16174
|
v("i", {
|
|
16175
16175
|
class: ye([e.item.mediumIcon, e.iconSize])
|
|
16176
16176
|
}, null, 2),
|
|
@@ -16182,34 +16182,34 @@ const nu = {
|
|
|
16182
16182
|
e.isChild && e.hasSlotChild ? fe(s.$slots, "list-item-menu-child", {
|
|
16183
16183
|
key: 2,
|
|
16184
16184
|
item: e.item
|
|
16185
|
-
}) : e.isChild ? (
|
|
16185
|
+
}) : e.isChild ? (b(), x("div", {
|
|
16186
16186
|
key: 3,
|
|
16187
16187
|
class: ye(["whitespace-nowrap", [
|
|
16188
16188
|
e.iconPosition === "top" || e.iconPosition === "bottom" ? "flex flex-col items-start gap-1" : "flex flex-row items-center gap-2"
|
|
16189
16189
|
]])
|
|
16190
16190
|
}, [
|
|
16191
|
-
e.iconPosition === "top" ? (
|
|
16191
|
+
e.iconPosition === "top" ? (b(), x(ie, { key: 0 }, [
|
|
16192
16192
|
v("i", {
|
|
16193
16193
|
class: ye([e.item.mediumIcon, e.iconSize])
|
|
16194
16194
|
}, null, 2),
|
|
16195
16195
|
v("span", {
|
|
16196
16196
|
class: ye(e.labelSize)
|
|
16197
16197
|
}, Z(e.item.displayLabel), 3)
|
|
16198
|
-
], 64)) : e.iconPosition === "bottom" ? (
|
|
16198
|
+
], 64)) : e.iconPosition === "bottom" ? (b(), x(ie, { key: 1 }, [
|
|
16199
16199
|
v("span", {
|
|
16200
16200
|
class: ye(e.labelSize)
|
|
16201
16201
|
}, Z(e.item.displayLabel), 3),
|
|
16202
16202
|
v("i", {
|
|
16203
16203
|
class: ye([e.item.mediumIcon, e.iconSize])
|
|
16204
16204
|
}, null, 2)
|
|
16205
|
-
], 64)) : e.iconPosition === "right" ? (
|
|
16205
|
+
], 64)) : e.iconPosition === "right" ? (b(), x(ie, { key: 2 }, [
|
|
16206
16206
|
v("span", {
|
|
16207
16207
|
class: ye(e.labelSize)
|
|
16208
16208
|
}, Z(e.item.displayLabel), 3),
|
|
16209
16209
|
v("i", {
|
|
16210
16210
|
class: ye([e.item.mediumIcon, e.iconSize])
|
|
16211
16211
|
}, null, 2)
|
|
16212
|
-
], 64)) : (
|
|
16212
|
+
], 64)) : (b(), x(ie, { key: 3 }, [
|
|
16213
16213
|
v("i", {
|
|
16214
16214
|
class: ye([e.item.mediumIcon, e.iconSize])
|
|
16215
16215
|
}, null, 2),
|
|
@@ -16220,11 +16220,11 @@ const nu = {
|
|
|
16220
16220
|
], 2)) : U("", !0)
|
|
16221
16221
|
])
|
|
16222
16222
|
], 2),
|
|
16223
|
-
e.item.isOpen && e.item.children.length ? (
|
|
16223
|
+
e.item.isOpen && e.item.children.length ? (b(), x("ul", {
|
|
16224
16224
|
key: 0,
|
|
16225
16225
|
class: ye(["list-none mt-1", e.layoutType === "horizontal" ? "absolute left-0 top-full ml-4" : "ml-4 pl-2"])
|
|
16226
16226
|
}, [
|
|
16227
|
-
(
|
|
16227
|
+
(b(!0), x(ie, null, Ce(e.item.children, (l) => (b(), j(nu, {
|
|
16228
16228
|
key: l.id,
|
|
16229
16229
|
item: l,
|
|
16230
16230
|
layoutType: e.layoutType,
|
|
@@ -16287,11 +16287,11 @@ const nu = {
|
|
|
16287
16287
|
}), (s, c) => s.$slots["list-wrapper"] ? fe(s.$slots, "list-wrapper", {
|
|
16288
16288
|
key: 0,
|
|
16289
16289
|
menuItems: n.value
|
|
16290
|
-
}) : (
|
|
16290
|
+
}) : (b(), x("ul", {
|
|
16291
16291
|
key: 1,
|
|
16292
16292
|
class: ye(["p-0", e.layoutType === "horizontal" ? `flex flex-row gap-${t.gap}` : `flex flex-col gap-${t.gap}`])
|
|
16293
16293
|
}, [
|
|
16294
|
-
(
|
|
16294
|
+
(b(!0), x(ie, null, Ce(n.value, (l) => (b(), j(nu, {
|
|
16295
16295
|
key: l.id,
|
|
16296
16296
|
item: l,
|
|
16297
16297
|
parentItems: n.value,
|
|
@@ -16341,7 +16341,7 @@ const nu = {
|
|
|
16341
16341
|
}
|
|
16342
16342
|
return (r, a) => {
|
|
16343
16343
|
const i = K("InputText");
|
|
16344
|
-
return
|
|
16344
|
+
return b(), x("div", null, [
|
|
16345
16345
|
q(i, te({
|
|
16346
16346
|
class: "w-full",
|
|
16347
16347
|
value: e.modelValue,
|
|
@@ -16392,14 +16392,14 @@ const nu = {
|
|
|
16392
16392
|
function r(a) {
|
|
16393
16393
|
t.onClick && t.onClick(a);
|
|
16394
16394
|
}
|
|
16395
|
-
return (a, i) => n.value ? (
|
|
16395
|
+
return (a, i) => n.value ? (b(), j(ee(Xl), {
|
|
16396
16396
|
key: 0,
|
|
16397
16397
|
label: e.label,
|
|
16398
16398
|
size: e.size,
|
|
16399
16399
|
onClick: r,
|
|
16400
16400
|
severity: e.severity,
|
|
16401
16401
|
icon: e.iconName
|
|
16402
|
-
}, null, 8, ["label", "size", "severity", "icon"])) : (
|
|
16402
|
+
}, null, 8, ["label", "size", "severity", "icon"])) : (b(), x("p", cv, "You do not have the required permissions to access this feature."));
|
|
16403
16403
|
}
|
|
16404
16404
|
}, dv = {
|
|
16405
16405
|
name: "StateFullText",
|
|
@@ -16415,7 +16415,7 @@ const nu = {
|
|
|
16415
16415
|
}
|
|
16416
16416
|
};
|
|
16417
16417
|
function fv(e, t, n, o, r, a) {
|
|
16418
|
-
return
|
|
16418
|
+
return b(), x("span", null, Z(n.value), 1);
|
|
16419
16419
|
}
|
|
16420
16420
|
const rs = /* @__PURE__ */ Je(dv, [["render", fv]]), pv = ["min", "max", "value"], as = {
|
|
16421
16421
|
__name: "RangeInput",
|
|
@@ -16443,7 +16443,7 @@ const rs = /* @__PURE__ */ Je(dv, [["render", fv]]), pv = ["min", "max", "value"
|
|
|
16443
16443
|
function o(r) {
|
|
16444
16444
|
n("update:modelValue", r.target.value);
|
|
16445
16445
|
}
|
|
16446
|
-
return (r, a) => e.type === "range" ? (
|
|
16446
|
+
return (r, a) => e.type === "range" ? (b(), x("input", {
|
|
16447
16447
|
key: 0,
|
|
16448
16448
|
type: "range",
|
|
16449
16449
|
min: e.min,
|
|
@@ -16544,7 +16544,7 @@ var ou = {
|
|
|
16544
16544
|
extends: Ln
|
|
16545
16545
|
};
|
|
16546
16546
|
function kv(e, t, n, o, r, a) {
|
|
16547
|
-
return
|
|
16547
|
+
return b(), x("svg", te({
|
|
16548
16548
|
width: "14",
|
|
16549
16549
|
height: "14",
|
|
16550
16550
|
viewBox: "0 0 14 14",
|
|
@@ -16563,7 +16563,7 @@ var ru = {
|
|
|
16563
16563
|
extends: Ln
|
|
16564
16564
|
};
|
|
16565
16565
|
function xv(e, t, n, o, r, a) {
|
|
16566
|
-
return
|
|
16566
|
+
return b(), x("svg", te({
|
|
16567
16567
|
width: "14",
|
|
16568
16568
|
height: "14",
|
|
16569
16569
|
viewBox: "0 0 14 14",
|
|
@@ -16580,7 +16580,7 @@ var au = {
|
|
|
16580
16580
|
extends: Ln
|
|
16581
16581
|
};
|
|
16582
16582
|
function Sv(e, t, n, o, r, a) {
|
|
16583
|
-
return
|
|
16583
|
+
return b(), x("svg", te({
|
|
16584
16584
|
width: "14",
|
|
16585
16585
|
height: "14",
|
|
16586
16586
|
viewBox: "0 0 14 14",
|
|
@@ -16599,7 +16599,7 @@ var iu = {
|
|
|
16599
16599
|
extends: Ln
|
|
16600
16600
|
};
|
|
16601
16601
|
function Cv(e, t, n, o, r, a) {
|
|
16602
|
-
return
|
|
16602
|
+
return b(), x("svg", te({
|
|
16603
16603
|
width: "14",
|
|
16604
16604
|
height: "14",
|
|
16605
16605
|
viewBox: "0 0 14 14",
|
|
@@ -16678,7 +16678,7 @@ var Ev = function(t) {
|
|
|
16678
16678
|
inheritAttrs: !1
|
|
16679
16679
|
};
|
|
16680
16680
|
function Iv(e, t, n, o, r, a) {
|
|
16681
|
-
return
|
|
16681
|
+
return b(), x("div", te({
|
|
16682
16682
|
class: e.cx("root")
|
|
16683
16683
|
}, e.ptmi("root")), [fe(e.$slots, "default")], 16);
|
|
16684
16684
|
}
|
|
@@ -16712,7 +16712,7 @@ var Bv = {
|
|
|
16712
16712
|
}
|
|
16713
16713
|
};
|
|
16714
16714
|
function Fv(e, t, n, o, r, a) {
|
|
16715
|
-
return
|
|
16715
|
+
return b(), x("span", te({
|
|
16716
16716
|
class: a.containerClass
|
|
16717
16717
|
}, e.ptmi("root")), [fe(e.$slots, "default")], 16);
|
|
16718
16718
|
}
|
|
@@ -16991,7 +16991,7 @@ var Av = {
|
|
|
16991
16991
|
}
|
|
16992
16992
|
}, Vv = ["value", "disabled", "aria-invalid"];
|
|
16993
16993
|
function zv(e, t, n, o, r, a) {
|
|
16994
|
-
return
|
|
16994
|
+
return b(), x("input", te({
|
|
16995
16995
|
type: "text",
|
|
16996
16996
|
class: e.cx("root"),
|
|
16997
16997
|
value: e.d_value,
|
|
@@ -17032,7 +17032,7 @@ var Mv = ca(), du = {
|
|
|
17032
17032
|
function jv(e, t, n, o, r, a) {
|
|
17033
17033
|
return a.inline ? fe(e.$slots, "default", {
|
|
17034
17034
|
key: 0
|
|
17035
|
-
}) : r.mounted ? (
|
|
17035
|
+
}) : r.mounted ? (b(), j(Iu, {
|
|
17036
17036
|
key: 1,
|
|
17037
17037
|
to: n.appendTo
|
|
17038
17038
|
}, [fe(e.$slots, "default")], 8, ["to"])) : U("", !0);
|
|
@@ -17361,12 +17361,12 @@ var pu = {
|
|
|
17361
17361
|
return I > -1;
|
|
17362
17362
|
}) : t > -1;
|
|
17363
17363
|
if (i) {
|
|
17364
|
-
var s = this.first, c = this.element, l = c.scrollTop, u = l === void 0 ? 0 : l, f = c.scrollLeft, d = f === void 0 ? 0 : f, p = this.calculateNumItems(), m = p.numToleratedItems, g = this.getContentPosition(),
|
|
17364
|
+
var s = this.first, c = this.element, l = c.scrollTop, u = l === void 0 ? 0 : l, f = c.scrollLeft, d = f === void 0 ? 0 : f, p = this.calculateNumItems(), m = p.numToleratedItems, g = this.getContentPosition(), h = this.itemSize, y = function() {
|
|
17365
17365
|
var O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, M = arguments.length > 1 ? arguments[1] : void 0;
|
|
17366
17366
|
return O <= M ? 0 : O;
|
|
17367
|
-
},
|
|
17367
|
+
}, w = function(O, M, W) {
|
|
17368
17368
|
return O * M + W;
|
|
17369
|
-
},
|
|
17369
|
+
}, k = function() {
|
|
17370
17370
|
var O = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
17371
17371
|
return n.scrollTo({
|
|
17372
17372
|
left: O,
|
|
@@ -17380,21 +17380,21 @@ var pu = {
|
|
|
17380
17380
|
r ? (S = {
|
|
17381
17381
|
rows: y(t[0], m[0]),
|
|
17382
17382
|
cols: y(t[1], m[1])
|
|
17383
|
-
}, w(
|
|
17383
|
+
}, k(w(S.cols, h[1], g.left), w(S.rows, h[0], g.top)), N = this.lastScrollPos.top !== u || this.lastScrollPos.left !== d, $ = S.rows !== s.rows || S.cols !== s.cols) : (S = y(t, m), a ? k(w(S, h, g.left), u) : k(d, w(S, h, g.top)), N = this.lastScrollPos !== (a ? d : u), $ = S !== s), this.isRangeChanged = $, N && (this.first = S);
|
|
17384
17384
|
}
|
|
17385
17385
|
},
|
|
17386
17386
|
scrollInView: function(t, n) {
|
|
17387
17387
|
var o = this, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "auto";
|
|
17388
17388
|
if (n) {
|
|
17389
|
-
var a = this.isBoth(), i = this.isHorizontal(), s = a ? t.every(function(
|
|
17390
|
-
return
|
|
17389
|
+
var a = this.isBoth(), i = this.isHorizontal(), s = a ? t.every(function(h) {
|
|
17390
|
+
return h > -1;
|
|
17391
17391
|
}) : t > -1;
|
|
17392
17392
|
if (s) {
|
|
17393
17393
|
var c = this.getRenderedRange(), l = c.first, u = c.viewport, f = function() {
|
|
17394
|
-
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0,
|
|
17394
|
+
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
17395
17395
|
return o.scrollTo({
|
|
17396
17396
|
left: y,
|
|
17397
|
-
top:
|
|
17397
|
+
top: w,
|
|
17398
17398
|
behavior: r
|
|
17399
17399
|
});
|
|
17400
17400
|
}, d = n === "to-start", p = n === "to-end";
|
|
@@ -17575,24 +17575,24 @@ var pu = {
|
|
|
17575
17575
|
}, d = s(o.scrollTop, i.top), p = s(o.scrollLeft, i.left), m = r ? {
|
|
17576
17576
|
rows: 0,
|
|
17577
17577
|
cols: 0
|
|
17578
|
-
} : 0, g = this.last,
|
|
17578
|
+
} : 0, g = this.last, h = !1, y = this.lastScrollPos;
|
|
17579
17579
|
if (r) {
|
|
17580
|
-
var
|
|
17581
|
-
if (!this.appendOnly || this.appendOnly && (
|
|
17580
|
+
var w = this.lastScrollPos.top <= d, k = this.lastScrollPos.left <= p;
|
|
17581
|
+
if (!this.appendOnly || this.appendOnly && (w || k)) {
|
|
17582
17582
|
var S = {
|
|
17583
17583
|
rows: c(d, this.itemSize[0]),
|
|
17584
17584
|
cols: c(p, this.itemSize[1])
|
|
17585
17585
|
}, $ = {
|
|
17586
|
-
rows: l(S.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0],
|
|
17587
|
-
cols: l(S.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1],
|
|
17586
|
+
rows: l(S.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], w),
|
|
17587
|
+
cols: l(S.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], k)
|
|
17588
17588
|
};
|
|
17589
17589
|
m = {
|
|
17590
|
-
rows: u(S.rows, $.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0],
|
|
17591
|
-
cols: u(S.cols, $.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1],
|
|
17590
|
+
rows: u(S.rows, $.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], w),
|
|
17591
|
+
cols: u(S.cols, $.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], k)
|
|
17592
17592
|
}, g = {
|
|
17593
17593
|
rows: f(S.rows, m.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
|
|
17594
17594
|
cols: f(S.cols, m.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], !0)
|
|
17595
|
-
},
|
|
17595
|
+
}, h = m.rows !== this.first.rows || g.rows !== this.last.rows || m.cols !== this.first.cols || g.cols !== this.last.cols || this.isRangeChanged, y = {
|
|
17596
17596
|
top: d,
|
|
17597
17597
|
left: p
|
|
17598
17598
|
};
|
|
@@ -17601,13 +17601,13 @@ var pu = {
|
|
|
17601
17601
|
var N = a ? p : d, I = this.lastScrollPos <= N;
|
|
17602
17602
|
if (!this.appendOnly || this.appendOnly && I) {
|
|
17603
17603
|
var O = c(N, this.itemSize), M = l(O, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, I);
|
|
17604
|
-
m = u(O, M, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, I), g = f(O, m, this.last, this.numItemsInViewport, this.d_numToleratedItems),
|
|
17604
|
+
m = u(O, M, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, I), g = f(O, m, this.last, this.numItemsInViewport, this.d_numToleratedItems), h = m !== this.first || g !== this.last || this.isRangeChanged, y = N;
|
|
17605
17605
|
}
|
|
17606
17606
|
}
|
|
17607
17607
|
return {
|
|
17608
17608
|
first: m,
|
|
17609
17609
|
last: g,
|
|
17610
|
-
isRangeChanged:
|
|
17610
|
+
isRangeChanged: h,
|
|
17611
17611
|
scrollPos: y
|
|
17612
17612
|
};
|
|
17613
17613
|
},
|
|
@@ -17737,13 +17737,13 @@ var pu = {
|
|
|
17737
17737
|
}, Gv = ["tabindex"];
|
|
17738
17738
|
function Yv(e, t, n, o, r, a) {
|
|
17739
17739
|
var i = K("SpinnerIcon");
|
|
17740
|
-
return e.disabled ? (
|
|
17740
|
+
return e.disabled ? (b(), x(ie, {
|
|
17741
17741
|
key: 1
|
|
17742
17742
|
}, [fe(e.$slots, "default"), fe(e.$slots, "content", {
|
|
17743
17743
|
items: e.items,
|
|
17744
17744
|
rows: e.items,
|
|
17745
17745
|
columns: a.loadedColumns
|
|
17746
|
-
})], 64)) : (
|
|
17746
|
+
})], 64)) : (b(), x("div", te({
|
|
17747
17747
|
key: 0,
|
|
17748
17748
|
ref: a.elementRef,
|
|
17749
17749
|
class: a.containerClass,
|
|
@@ -17772,21 +17772,21 @@ function Yv(e, t, n, o, r, a) {
|
|
|
17772
17772
|
ref: a.contentRef,
|
|
17773
17773
|
class: a.contentClass,
|
|
17774
17774
|
style: r.contentStyle
|
|
17775
|
-
}, e.ptm("content")), [(
|
|
17775
|
+
}, e.ptm("content")), [(b(!0), x(ie, null, Ce(a.loadedItems, function(s, c) {
|
|
17776
17776
|
return fe(e.$slots, "item", {
|
|
17777
17777
|
key: c,
|
|
17778
17778
|
item: s,
|
|
17779
17779
|
options: a.getOptions(c)
|
|
17780
17780
|
});
|
|
17781
17781
|
}), 128))], 16)];
|
|
17782
|
-
}), e.showSpacer ? (
|
|
17782
|
+
}), e.showSpacer ? (b(), x("div", te({
|
|
17783
17783
|
key: 0,
|
|
17784
17784
|
class: "p-virtualscroller-spacer",
|
|
17785
17785
|
style: r.spacerStyle
|
|
17786
|
-
}, e.ptm("spacer")), null, 16)) : U("", !0), !e.loaderDisabled && e.showLoader && r.d_loading ? (
|
|
17786
|
+
}, e.ptm("spacer")), null, 16)) : U("", !0), !e.loaderDisabled && e.showLoader && r.d_loading ? (b(), x("div", te({
|
|
17787
17787
|
key: 1,
|
|
17788
17788
|
class: a.loaderClass
|
|
17789
|
-
}, e.ptm("loader")), [e.$slots && e.$slots.loader ? (
|
|
17789
|
+
}, e.ptm("loader")), [e.$slots && e.$slots.loader ? (b(!0), x(ie, {
|
|
17790
17790
|
key: 0
|
|
17791
17791
|
}, Ce(r.loaderArr, function(s, c) {
|
|
17792
17792
|
return fe(e.$slots, "loader", {
|
|
@@ -18912,14 +18912,14 @@ var gu = {
|
|
|
18912
18912
|
}, s1 = ["id"], l1 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"], u1 = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled"], c1 = ["id"], d1 = ["id"], f1 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
|
|
18913
18913
|
function p1(e, t, n, o, r, a) {
|
|
18914
18914
|
var i = K("SpinnerIcon"), s = K("InputText"), c = K("SearchIcon"), l = K("InputIcon"), u = K("IconField"), f = K("CheckIcon"), d = K("BlankIcon"), p = K("VirtualScroller"), m = K("Portal"), g = qr("ripple");
|
|
18915
|
-
return
|
|
18915
|
+
return b(), x("div", te({
|
|
18916
18916
|
ref: "container",
|
|
18917
18917
|
id: r.id,
|
|
18918
18918
|
class: e.cx("root"),
|
|
18919
18919
|
onClick: t[11] || (t[11] = function() {
|
|
18920
18920
|
return a.onContainerClick && a.onContainerClick.apply(a, arguments);
|
|
18921
18921
|
})
|
|
18922
|
-
}, e.ptmi("root")), [e.editable ? (
|
|
18922
|
+
}, e.ptmi("root")), [e.editable ? (b(), x("input", te({
|
|
18923
18923
|
key: 0,
|
|
18924
18924
|
ref: "focusInput",
|
|
18925
18925
|
id: e.labelId || e.inputId,
|
|
@@ -18951,7 +18951,7 @@ function p1(e, t, n, o, r, a) {
|
|
|
18951
18951
|
onInput: t[3] || (t[3] = function() {
|
|
18952
18952
|
return a.onEditableInput && a.onEditableInput.apply(a, arguments);
|
|
18953
18953
|
})
|
|
18954
|
-
}, e.ptm("label")), null, 16, l1)) : (
|
|
18954
|
+
}, e.ptm("label")), null, 16, l1)) : (b(), x("span", te({
|
|
18955
18955
|
key: 1,
|
|
18956
18956
|
ref: "focusInput",
|
|
18957
18957
|
id: e.labelId || e.inputId,
|
|
@@ -18979,14 +18979,14 @@ function p1(e, t, n, o, r, a) {
|
|
|
18979
18979
|
value: e.d_value,
|
|
18980
18980
|
placeholder: e.placeholder
|
|
18981
18981
|
}, function() {
|
|
18982
|
-
var
|
|
18983
|
-
return [et(Z(a.label === "p-emptylabel" ? " " : (
|
|
18982
|
+
var h;
|
|
18983
|
+
return [et(Z(a.label === "p-emptylabel" ? " " : (h = a.label) !== null && h !== void 0 ? h : "empty"), 1)];
|
|
18984
18984
|
})], 16, u1)), a.isClearIconVisible ? fe(e.$slots, "clearicon", {
|
|
18985
18985
|
key: 2,
|
|
18986
18986
|
class: ye(e.cx("clearIcon")),
|
|
18987
18987
|
clearCallback: a.onClearClick
|
|
18988
18988
|
}, function() {
|
|
18989
|
-
return [(
|
|
18989
|
+
return [(b(), j(De(e.clearIcon ? "i" : "TimesIcon"), te({
|
|
18990
18990
|
ref: "clearIcon",
|
|
18991
18991
|
class: [e.cx("clearIcon"), e.clearIcon],
|
|
18992
18992
|
onClick: a.onClearClick
|
|
@@ -18999,11 +18999,11 @@ function p1(e, t, n, o, r, a) {
|
|
|
18999
18999
|
key: 0,
|
|
19000
19000
|
class: ye(e.cx("loadingIcon"))
|
|
19001
19001
|
}, function() {
|
|
19002
|
-
return [e.loadingIcon ? (
|
|
19002
|
+
return [e.loadingIcon ? (b(), x("span", te({
|
|
19003
19003
|
key: 0,
|
|
19004
19004
|
class: [e.cx("loadingIcon"), "pi-spin", e.loadingIcon],
|
|
19005
19005
|
"aria-hidden": "true"
|
|
19006
|
-
}, e.ptm("loadingIcon")), null, 16)) : (
|
|
19006
|
+
}, e.ptm("loadingIcon")), null, 16)) : (b(), j(i, te({
|
|
19007
19007
|
key: 1,
|
|
19008
19008
|
class: e.cx("loadingIcon"),
|
|
19009
19009
|
spin: "",
|
|
@@ -19013,7 +19013,7 @@ function p1(e, t, n, o, r, a) {
|
|
|
19013
19013
|
key: 1,
|
|
19014
19014
|
class: ye(e.cx("dropdownIcon"))
|
|
19015
19015
|
}, function() {
|
|
19016
|
-
return [(
|
|
19016
|
+
return [(b(), j(De(e.dropdownIcon ? "span" : "ChevronDownIcon"), te({
|
|
19017
19017
|
class: [e.cx("dropdownIcon"), e.dropdownIcon],
|
|
19018
19018
|
"aria-hidden": "true"
|
|
19019
19019
|
}, e.ptm("dropdownIcon")), null, 16, ["class"]))];
|
|
@@ -19029,7 +19029,7 @@ function p1(e, t, n, o, r, a) {
|
|
|
19029
19029
|
onAfterLeave: a.onOverlayAfterLeave
|
|
19030
19030
|
}, e.ptm("transition")), {
|
|
19031
19031
|
default: oe(function() {
|
|
19032
|
-
return [r.overlayVisible ? (
|
|
19032
|
+
return [r.overlayVisible ? (b(), x("div", te({
|
|
19033
19033
|
key: 0,
|
|
19034
19034
|
ref: a.overlayRef,
|
|
19035
19035
|
class: [e.cx("overlay"), e.panelClass, e.overlayClass],
|
|
@@ -19055,7 +19055,7 @@ function p1(e, t, n, o, r, a) {
|
|
|
19055
19055
|
}), null, 16), fe(e.$slots, "header", {
|
|
19056
19056
|
value: e.d_value,
|
|
19057
19057
|
options: a.visibleOptions
|
|
19058
|
-
}), e.filter ? (
|
|
19058
|
+
}), e.filter ? (b(), x("div", te({
|
|
19059
19059
|
key: 0,
|
|
19060
19060
|
class: e.cx("header")
|
|
19061
19061
|
}, e.ptm("header")), [q(u, {
|
|
@@ -19087,10 +19087,10 @@ function p1(e, t, n, o, r, a) {
|
|
|
19087
19087
|
}, {
|
|
19088
19088
|
default: oe(function() {
|
|
19089
19089
|
return [fe(e.$slots, "filtericon", {}, function() {
|
|
19090
|
-
return [e.filterIcon ? (
|
|
19090
|
+
return [e.filterIcon ? (b(), x("span", te({
|
|
19091
19091
|
key: 0,
|
|
19092
19092
|
class: e.filterIcon
|
|
19093
|
-
}, e.ptm("filterIcon")), null, 16)) : (
|
|
19093
|
+
}, e.ptm("filterIcon")), null, 16)) : (b(), j(c, Xt(te({
|
|
19094
19094
|
key: 1
|
|
19095
19095
|
}, e.ptm("filterIcon"))), null, 16))];
|
|
19096
19096
|
})];
|
|
@@ -19121,20 +19121,20 @@ function p1(e, t, n, o, r, a) {
|
|
|
19121
19121
|
disabled: a.virtualScrollerDisabled,
|
|
19122
19122
|
pt: e.ptm("virtualScroller")
|
|
19123
19123
|
}), Rn({
|
|
19124
|
-
content: oe(function(
|
|
19125
|
-
var y =
|
|
19124
|
+
content: oe(function(h) {
|
|
19125
|
+
var y = h.styleClass, w = h.contentRef, k = h.items, S = h.getItemOptions, $ = h.contentStyle, N = h.itemSize;
|
|
19126
19126
|
return [v("ul", te({
|
|
19127
19127
|
ref: function(O) {
|
|
19128
|
-
return a.listRef(O,
|
|
19128
|
+
return a.listRef(O, w);
|
|
19129
19129
|
},
|
|
19130
19130
|
id: r.id + "_list",
|
|
19131
19131
|
class: [e.cx("list"), y],
|
|
19132
19132
|
style: $,
|
|
19133
19133
|
role: "listbox"
|
|
19134
|
-
}, e.ptm("list")), [(
|
|
19135
|
-
return
|
|
19134
|
+
}, e.ptm("list")), [(b(!0), x(ie, null, Ce(k, function(I, O) {
|
|
19135
|
+
return b(), x(ie, {
|
|
19136
19136
|
key: a.getOptionRenderKey(I, a.getOptionIndex(O, S))
|
|
19137
|
-
}, [a.isOptionGroup(I) ? (
|
|
19137
|
+
}, [a.isOptionGroup(I) ? (b(), x("li", te({
|
|
19138
19138
|
key: 0,
|
|
19139
19139
|
id: r.id + "_" + a.getOptionIndex(O, S),
|
|
19140
19140
|
style: {
|
|
@@ -19151,7 +19151,7 @@ function p1(e, t, n, o, r, a) {
|
|
|
19151
19151
|
class: e.cx("optionGroupLabel"),
|
|
19152
19152
|
ref_for: !0
|
|
19153
19153
|
}, e.ptm("optionGroupLabel")), Z(a.getOptionGroupLabel(I.optionGroup)), 17)];
|
|
19154
|
-
})], 16, d1)) : xt((
|
|
19154
|
+
})], 16, d1)) : xt((b(), x("li", te({
|
|
19155
19155
|
key: 1,
|
|
19156
19156
|
id: r.id + "_" + a.getOptionIndex(O, S),
|
|
19157
19157
|
class: e.cx("option", {
|
|
@@ -19177,13 +19177,13 @@ function p1(e, t, n, o, r, a) {
|
|
|
19177
19177
|
"data-p-focused": r.focusedOptionIndex === a.getOptionIndex(O, S),
|
|
19178
19178
|
"data-p-disabled": a.isOptionDisabled(I),
|
|
19179
19179
|
ref_for: !0
|
|
19180
|
-
}, a.getPTItemOptions(I, S, O, "option")), [e.checkmark ? (
|
|
19180
|
+
}, a.getPTItemOptions(I, S, O, "option")), [e.checkmark ? (b(), x(ie, {
|
|
19181
19181
|
key: 0
|
|
19182
|
-
}, [a.isSelected(I) ? (
|
|
19182
|
+
}, [a.isSelected(I) ? (b(), j(f, te({
|
|
19183
19183
|
key: 0,
|
|
19184
19184
|
class: e.cx("optionCheckIcon"),
|
|
19185
19185
|
ref_for: !0
|
|
19186
|
-
}, e.ptm("optionCheckIcon")), null, 16, ["class"])) : (
|
|
19186
|
+
}, e.ptm("optionCheckIcon")), null, 16, ["class"])) : (b(), j(d, te({
|
|
19187
19187
|
key: 1,
|
|
19188
19188
|
class: e.cx("optionBlankIcon"),
|
|
19189
19189
|
ref_for: !0
|
|
@@ -19197,7 +19197,7 @@ function p1(e, t, n, o, r, a) {
|
|
|
19197
19197
|
ref_for: !0
|
|
19198
19198
|
}, e.ptm("optionLabel")), Z(a.getOptionLabel(I)), 17)];
|
|
19199
19199
|
})], 16, f1)), [[g]])], 64);
|
|
19200
|
-
}), 128)), r.filterValue && (!
|
|
19200
|
+
}), 128)), r.filterValue && (!k || k && k.length === 0) ? (b(), x("li", te({
|
|
19201
19201
|
key: 0,
|
|
19202
19202
|
class: e.cx("emptyMessage"),
|
|
19203
19203
|
role: "option"
|
|
@@ -19205,7 +19205,7 @@ function p1(e, t, n, o, r, a) {
|
|
|
19205
19205
|
"data-p-hidden-accessible": !0
|
|
19206
19206
|
}), [fe(e.$slots, "emptyfilter", {}, function() {
|
|
19207
19207
|
return [et(Z(a.emptyFilterMessageText), 1)];
|
|
19208
|
-
})], 16)) : !e.options || e.options && e.options.length === 0 ? (
|
|
19208
|
+
})], 16)) : !e.options || e.options && e.options.length === 0 ? (b(), x("li", te({
|
|
19209
19209
|
key: 1,
|
|
19210
19210
|
class: e.cx("emptyMessage"),
|
|
19211
19211
|
role: "option"
|
|
@@ -19218,8 +19218,8 @@ function p1(e, t, n, o, r, a) {
|
|
|
19218
19218
|
_: 2
|
|
19219
19219
|
}, [e.$slots.loader ? {
|
|
19220
19220
|
name: "loader",
|
|
19221
|
-
fn: oe(function(
|
|
19222
|
-
var y =
|
|
19221
|
+
fn: oe(function(h) {
|
|
19222
|
+
var y = h.options;
|
|
19223
19223
|
return [fe(e.$slots, "loader", {
|
|
19224
19224
|
options: y
|
|
19225
19225
|
})];
|
|
@@ -19228,7 +19228,7 @@ function p1(e, t, n, o, r, a) {
|
|
|
19228
19228
|
} : void 0]), 1040, ["items", "style", "disabled", "pt"])], 16), fe(e.$slots, "footer", {
|
|
19229
19229
|
value: e.d_value,
|
|
19230
19230
|
options: a.visibleOptions
|
|
19231
|
-
}), !e.options || e.options && e.options.length === 0 ? (
|
|
19231
|
+
}), !e.options || e.options && e.options.length === 0 ? (b(), x("span", te({
|
|
19232
19232
|
key: 1,
|
|
19233
19233
|
role: "status",
|
|
19234
19234
|
"aria-live": "polite",
|
|
@@ -19276,7 +19276,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19276
19276
|
},
|
|
19277
19277
|
setup(e) {
|
|
19278
19278
|
const t = e;
|
|
19279
|
-
return E(!1), E(t.label), (n, o) => (
|
|
19279
|
+
return E(!1), E(t.label), (n, o) => (b(), x("div", m1, [
|
|
19280
19280
|
q(ee(gu), {
|
|
19281
19281
|
modelValue: n.selectedCity,
|
|
19282
19282
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => n.selectedCity = r),
|
|
@@ -19328,15 +19328,15 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19328
19328
|
), u = ne(
|
|
19329
19329
|
() => r.options.length ? "value" : r.valueField
|
|
19330
19330
|
);
|
|
19331
|
-
function f(g,
|
|
19332
|
-
const y =
|
|
19331
|
+
function f(g, h) {
|
|
19332
|
+
const y = h.split(".").reduce((w, k) => {
|
|
19333
19333
|
var $;
|
|
19334
|
-
const S =
|
|
19334
|
+
const S = k.match(/^(\w+)\[(\d+)\]$/);
|
|
19335
19335
|
if (S) {
|
|
19336
19336
|
const [, N, I] = S;
|
|
19337
|
-
return (($ =
|
|
19337
|
+
return (($ = w == null ? void 0 : w[N]) == null ? void 0 : $[parseInt(I)]) ?? null;
|
|
19338
19338
|
} else
|
|
19339
|
-
return
|
|
19339
|
+
return w == null ? void 0 : w[k];
|
|
19340
19340
|
}, g);
|
|
19341
19341
|
return Array.isArray(y) ? y : y ? [y] : [];
|
|
19342
19342
|
}
|
|
@@ -19352,8 +19352,8 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19352
19352
|
...r.method.toUpperCase() === "POST" ? { body: "{}" } : {}
|
|
19353
19353
|
})).json();
|
|
19354
19354
|
r.jsonPath ? c.value = f(y, r.jsonPath) : c.value = [], p(r.modelValue);
|
|
19355
|
-
} catch (
|
|
19356
|
-
console.error("Error fetching options:",
|
|
19355
|
+
} catch (h) {
|
|
19356
|
+
console.error("Error fetching options:", h);
|
|
19357
19357
|
}
|
|
19358
19358
|
}
|
|
19359
19359
|
Le(() => {
|
|
@@ -19373,22 +19373,22 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19373
19373
|
{ immediate: !0 }
|
|
19374
19374
|
);
|
|
19375
19375
|
function p(g) {
|
|
19376
|
-
const
|
|
19376
|
+
const h = c.value.find(
|
|
19377
19377
|
(y) => String(y[u.value]) === String(g)
|
|
19378
19378
|
);
|
|
19379
|
-
|
|
19379
|
+
h ? (s.value = h, i.value = h[u.value]) : s.value = null;
|
|
19380
19380
|
}
|
|
19381
19381
|
function m(g) {
|
|
19382
|
-
const
|
|
19382
|
+
const h = c.value.find(
|
|
19383
19383
|
(y) => String(y[u.value]) === String(g)
|
|
19384
19384
|
);
|
|
19385
|
-
|
|
19385
|
+
h ? s.value = h : s.value = null;
|
|
19386
19386
|
}
|
|
19387
|
-
return (g,
|
|
19387
|
+
return (g, h) => {
|
|
19388
19388
|
const y = K("Select");
|
|
19389
|
-
return
|
|
19389
|
+
return b(), j(y, {
|
|
19390
19390
|
modelValue: i.value,
|
|
19391
|
-
"onUpdate:modelValue":
|
|
19391
|
+
"onUpdate:modelValue": h[0] || (h[0] = (w) => i.value = w),
|
|
19392
19392
|
options: c.value,
|
|
19393
19393
|
filter: r.options.length == 0,
|
|
19394
19394
|
optionLabel: l.value,
|
|
@@ -19396,14 +19396,14 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19396
19396
|
placeholder: "Select an option",
|
|
19397
19397
|
class: "w-full"
|
|
19398
19398
|
}, {
|
|
19399
|
-
value: oe((
|
|
19400
|
-
s.value ? (
|
|
19399
|
+
value: oe((w) => [
|
|
19400
|
+
s.value ? (b(), x("div", g1, [
|
|
19401
19401
|
v("div", null, Z(s.value[l.value] || s.value.label), 1)
|
|
19402
|
-
])) : (
|
|
19402
|
+
])) : (b(), x("span", h1, Z(w.placeholder), 1))
|
|
19403
19403
|
]),
|
|
19404
|
-
option: oe((
|
|
19404
|
+
option: oe((w) => [
|
|
19405
19405
|
v("div", b1, [
|
|
19406
|
-
v("div", null, Z(
|
|
19406
|
+
v("div", null, Z(w.option[l.value] || w.option.label), 1)
|
|
19407
19407
|
])
|
|
19408
19408
|
]),
|
|
19409
19409
|
_: 1
|
|
@@ -19465,7 +19465,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19465
19465
|
function c(l) {
|
|
19466
19466
|
r("update:modelValue", JSON.stringify(l)), r("onChange", JSON.stringify(l));
|
|
19467
19467
|
}
|
|
19468
|
-
return (l, u) => i.value ? (
|
|
19468
|
+
return (l, u) => i.value ? (b(), j(go, {
|
|
19469
19469
|
key: 0,
|
|
19470
19470
|
modelValue: n.value,
|
|
19471
19471
|
"onUpdate:modelValue": u[0] || (u[0] = (f) => n.value = f),
|
|
@@ -19476,7 +19476,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19476
19476
|
options: e.options,
|
|
19477
19477
|
onOnChange: c,
|
|
19478
19478
|
valueField: e.valueField
|
|
19479
|
-
}, null, 8, ["modelValue", "url", "displayField", "options", "valueField"])) : (
|
|
19479
|
+
}, null, 8, ["modelValue", "url", "displayField", "options", "valueField"])) : (b(), x("p", v1, "You do not have the required permissions to access this feature."));
|
|
19480
19480
|
}
|
|
19481
19481
|
}, k1 = { key: 1 }, x1 = "/api/app/v1/${appid}/entity", ps = {
|
|
19482
19482
|
__name: "EntitySelection",
|
|
@@ -19508,7 +19508,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19508
19508
|
function i(s) {
|
|
19509
19509
|
o("update:entity-name", s), o("onChange", s);
|
|
19510
19510
|
}
|
|
19511
|
-
return (s, c) => r.value ? (
|
|
19511
|
+
return (s, c) => r.value ? (b(), j(go, {
|
|
19512
19512
|
key: 0,
|
|
19513
19513
|
modelValue: e.entityName,
|
|
19514
19514
|
url: x1,
|
|
@@ -19517,7 +19517,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19517
19517
|
method: "GET",
|
|
19518
19518
|
onOnChange: i,
|
|
19519
19519
|
valueField: "name"
|
|
19520
|
-
}, null, 8, ["modelValue"])) : (
|
|
19520
|
+
}, null, 8, ["modelValue"])) : (b(), x("p", k1, "You do not have the required permissions to access this feature."));
|
|
19521
19521
|
}
|
|
19522
19522
|
}, S1 = {
|
|
19523
19523
|
key: 0,
|
|
@@ -19538,7 +19538,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19538
19538
|
const a = async () => (await t.getEntities()).response, i = async () => (await n.getRestEntities()).response;
|
|
19539
19539
|
return (s, c) => {
|
|
19540
19540
|
const l = K("Select");
|
|
19541
|
-
return
|
|
19541
|
+
return b(), j(l, {
|
|
19542
19542
|
class: "text-sm w-full",
|
|
19543
19543
|
modelValue: r.value,
|
|
19544
19544
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => r.value = u),
|
|
@@ -19549,9 +19549,9 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19549
19549
|
placeholder: "Select entity"
|
|
19550
19550
|
}, {
|
|
19551
19551
|
value: oe((u) => [
|
|
19552
|
-
u.value ? (
|
|
19552
|
+
u.value ? (b(), x("div", S1, [
|
|
19553
19553
|
v("div", null, Z(u.value), 1)
|
|
19554
|
-
])) : (
|
|
19554
|
+
])) : (b(), x("span", C1, Z(u.placeholder), 1))
|
|
19555
19555
|
]),
|
|
19556
19556
|
option: oe((u) => [
|
|
19557
19557
|
v("div", E1, [
|
|
@@ -19601,7 +19601,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19601
19601
|
function o(r) {
|
|
19602
19602
|
n("update:modelValue", r), n("onChange", r);
|
|
19603
19603
|
}
|
|
19604
|
-
return (r, a) => (
|
|
19604
|
+
return (r, a) => (b(), j(go, {
|
|
19605
19605
|
modelValue: e.menuName,
|
|
19606
19606
|
url: $1,
|
|
19607
19607
|
jsonPath: "response",
|
|
@@ -19656,29 +19656,29 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19656
19656
|
);
|
|
19657
19657
|
function f(m, g) {
|
|
19658
19658
|
if (!g) return Array.isArray(m) ? m : [];
|
|
19659
|
-
const
|
|
19659
|
+
const h = g.split(".").reduce((y, w) => {
|
|
19660
19660
|
var S;
|
|
19661
|
-
const
|
|
19662
|
-
if (
|
|
19663
|
-
const [, $, N] =
|
|
19661
|
+
const k = w.match(/^(\w+)\[(\d+)\]$/);
|
|
19662
|
+
if (k) {
|
|
19663
|
+
const [, $, N] = k;
|
|
19664
19664
|
return ((S = y == null ? void 0 : y[$]) == null ? void 0 : S[parseInt(N)]) ?? null;
|
|
19665
19665
|
} else
|
|
19666
|
-
return y == null ? void 0 : y[
|
|
19666
|
+
return y == null ? void 0 : y[w];
|
|
19667
19667
|
}, m);
|
|
19668
|
-
return console.log("Extracted value:",
|
|
19668
|
+
return console.log("Extracted value:", h), Array.isArray(h) ? h : h ? [h] : [];
|
|
19669
19669
|
}
|
|
19670
19670
|
async function d() {
|
|
19671
19671
|
if (!r.url || r.options.length) return;
|
|
19672
19672
|
const m = r.url.includes("appid") ? r.url.replace("${appid}", o()) : r.url;
|
|
19673
19673
|
try {
|
|
19674
|
-
const
|
|
19674
|
+
const h = await (await fetch(m, {
|
|
19675
19675
|
method: r.method.toUpperCase(),
|
|
19676
19676
|
headers: {
|
|
19677
19677
|
"Content-Type": "application/json"
|
|
19678
19678
|
},
|
|
19679
19679
|
...r.method.toUpperCase() === "POST" ? { body: "{}" } : {}
|
|
19680
19680
|
})).json();
|
|
19681
|
-
s.value = f(
|
|
19681
|
+
s.value = f(h, r.jsonPath), p(r.modelValue);
|
|
19682
19682
|
} catch (g) {
|
|
19683
19683
|
console.error("Error fetching options:", g);
|
|
19684
19684
|
}
|
|
@@ -19692,7 +19692,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19692
19692
|
}
|
|
19693
19693
|
), $e(i, (m) => {
|
|
19694
19694
|
let g = [];
|
|
19695
|
-
l.value ? g = m : g = m.map((
|
|
19695
|
+
l.value ? g = m : g = m.map((h) => h), JSON.stringify(g) !== JSON.stringify(r.modelValue) && (a("update:modelValue", g), a("onChange", g));
|
|
19696
19696
|
}), $e(
|
|
19697
19697
|
() => r.options,
|
|
19698
19698
|
(m) => {
|
|
@@ -19704,8 +19704,8 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19704
19704
|
i.value = Array.isArray(m) ? [...m] : [];
|
|
19705
19705
|
}
|
|
19706
19706
|
return (m, g) => {
|
|
19707
|
-
const
|
|
19708
|
-
return
|
|
19707
|
+
const h = K("MultiSelect");
|
|
19708
|
+
return b(), j(h, {
|
|
19709
19709
|
modelValue: i.value,
|
|
19710
19710
|
"onUpdate:modelValue": g[0] || (g[0] = (y) => i.value = y),
|
|
19711
19711
|
options: s.value,
|
|
@@ -19772,7 +19772,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19772
19772
|
function i(s) {
|
|
19773
19773
|
o("update:modelValue", JSON.stringify(s)), o("onChange", JSON.stringify(s));
|
|
19774
19774
|
}
|
|
19775
|
-
return (s, c) => r.value ? (
|
|
19775
|
+
return (s, c) => r.value ? (b(), j(hu, {
|
|
19776
19776
|
key: 0,
|
|
19777
19777
|
modelValue: e.modelValue,
|
|
19778
19778
|
url: B1,
|
|
@@ -19783,7 +19783,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19783
19783
|
onOnChange: i,
|
|
19784
19784
|
valueField: e.valueField,
|
|
19785
19785
|
placeholder: "Select Roles..."
|
|
19786
|
-
}, null, 8, ["modelValue", "options", "valueField"])) : (
|
|
19786
|
+
}, null, 8, ["modelValue", "options", "valueField"])) : (b(), x("p", I1, "You do not have the required permissions to access this feature."));
|
|
19787
19787
|
}
|
|
19788
19788
|
}, R1 = { key: 1 }, P1 = "/api/app/v1/${appid}/security/permission", bs = {
|
|
19789
19789
|
__name: "PermissionSelection",
|
|
@@ -19824,7 +19824,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19824
19824
|
function i(s) {
|
|
19825
19825
|
o("update:modelValue", JSON.stringify(s)), o("onChange", JSON.stringify(s));
|
|
19826
19826
|
}
|
|
19827
|
-
return (s, c) => r.value ? (
|
|
19827
|
+
return (s, c) => r.value ? (b(), j(hu, {
|
|
19828
19828
|
key: 0,
|
|
19829
19829
|
modelValue: e.modelValue,
|
|
19830
19830
|
url: P1,
|
|
@@ -19835,7 +19835,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19835
19835
|
onOnChange: i,
|
|
19836
19836
|
valueField: e.valueField,
|
|
19837
19837
|
placeholder: "Select Permissions..."
|
|
19838
|
-
}, null, 8, ["modelValue", "options", "valueField"])) : (
|
|
19838
|
+
}, null, 8, ["modelValue", "options", "valueField"])) : (b(), x("p", R1, "You do not have the required permissions to access this feature."));
|
|
19839
19839
|
}
|
|
19840
19840
|
}, ys = {
|
|
19841
19841
|
__name: "label",
|
|
@@ -19850,7 +19850,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19850
19850
|
}
|
|
19851
19851
|
},
|
|
19852
19852
|
setup(e) {
|
|
19853
|
-
return (t, n) => (
|
|
19853
|
+
return (t, n) => (b(), x("div", Xt(bo(t.$attrs)), [
|
|
19854
19854
|
v("span", {
|
|
19855
19855
|
style: Zn({ fontSize: e.labelFontSize + "px", textAlign: t.textAlign })
|
|
19856
19856
|
}, Z(e.label), 5)
|
|
@@ -19911,7 +19911,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
19911
19911
|
}
|
|
19912
19912
|
return `${i} ${s}`;
|
|
19913
19913
|
});
|
|
19914
|
-
return (i, s) => (
|
|
19914
|
+
return (i, s) => (b(), x("div", F1, [
|
|
19915
19915
|
v("h2", A1, Z(e.title), 1),
|
|
19916
19916
|
v("form", {
|
|
19917
19917
|
action: e.formSubmitUrl,
|
|
@@ -20015,7 +20015,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
20015
20015
|
}
|
|
20016
20016
|
return `${s} ${c} border-radius: 4px;`;
|
|
20017
20017
|
});
|
|
20018
|
-
return (s, c) => (
|
|
20018
|
+
return (s, c) => (b(), x("div", V1, [
|
|
20019
20019
|
v("h2", z1, Z(e.title), 1),
|
|
20020
20020
|
v("form", {
|
|
20021
20021
|
action: e.formSubmitUrl,
|
|
@@ -20113,29 +20113,29 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
20113
20113
|
}, m = async () => {
|
|
20114
20114
|
await p(), a.value && (o("update:modelValue", a.value), o("onChange", a.value));
|
|
20115
20115
|
}, g = (S) => {
|
|
20116
|
-
clearTimeout(
|
|
20117
|
-
},
|
|
20116
|
+
clearTimeout(k), a.value = S.name, i.value = !1, o("update:modelValue", S.name), o("onChange", S.name);
|
|
20117
|
+
}, h = (S, $) => {
|
|
20118
20118
|
S === "library" && (f.value = $), S === "category" && (d.value = $), m();
|
|
20119
20119
|
}, y = (S) => {
|
|
20120
20120
|
r.value && !r.value.contains(S.target) && (i.value = !1);
|
|
20121
|
-
},
|
|
20121
|
+
}, w = ne(() => c.value.slice(0, nw));
|
|
20122
20122
|
Le(() => {
|
|
20123
20123
|
p(), document.addEventListener("click", y);
|
|
20124
20124
|
}), Kr(() => {
|
|
20125
20125
|
document.removeEventListener("click", y);
|
|
20126
20126
|
});
|
|
20127
|
-
let
|
|
20127
|
+
let k;
|
|
20128
20128
|
return $e(a, () => {
|
|
20129
|
-
clearTimeout(
|
|
20129
|
+
clearTimeout(k), k = setTimeout(m, 300);
|
|
20130
20130
|
}), $e(() => n.modelValue, (S) => {
|
|
20131
20131
|
a.value = S;
|
|
20132
|
-
}), (S, $) => (
|
|
20132
|
+
}), (S, $) => (b(), x("div", {
|
|
20133
20133
|
class: "icon-selection w-full max-w-md mx-auto relative",
|
|
20134
20134
|
ref_key: "iconContainer",
|
|
20135
20135
|
ref: r
|
|
20136
20136
|
}, [
|
|
20137
20137
|
v("div", q1, [
|
|
20138
|
-
a.value ? (
|
|
20138
|
+
a.value ? (b(), x("i", {
|
|
20139
20139
|
key: 0,
|
|
20140
20140
|
class: ye(["fa", a.value, "fa-lg", "text-gray-600", "mr-2"]),
|
|
20141
20141
|
style: { "min-width": "20px" }
|
|
@@ -20151,29 +20151,29 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
20151
20151
|
]),
|
|
20152
20152
|
$[2] || ($[2] = v("i", { class: "fas fa-search text-xl text-gray-700" }, null, -1))
|
|
20153
20153
|
]),
|
|
20154
|
-
i.value ? (
|
|
20154
|
+
i.value ? (b(), x("div", K1, [
|
|
20155
20155
|
v("div", G1, [
|
|
20156
|
-
(
|
|
20156
|
+
(b(), x(ie, null, Ce(l, (N) => v("button", {
|
|
20157
20157
|
key: N,
|
|
20158
20158
|
class: ye([
|
|
20159
20159
|
"flex-1 p-1 text-sm rounded font-semibold",
|
|
20160
20160
|
f.value === N ? "bg-blue-500 text-white" : "bg-gray-200 text-gray-700"
|
|
20161
20161
|
]),
|
|
20162
|
-
onClick: (I) =>
|
|
20162
|
+
onClick: (I) => h("library", N)
|
|
20163
20163
|
}, Z(N), 11, Y1)), 64))
|
|
20164
20164
|
]),
|
|
20165
20165
|
v("div", X1, [
|
|
20166
|
-
(
|
|
20166
|
+
(b(), x(ie, null, Ce(u, (N) => v("button", {
|
|
20167
20167
|
key: N,
|
|
20168
20168
|
class: ye([
|
|
20169
20169
|
"flex-1 p-1 text-sm rounded font-semibold capitalize",
|
|
20170
20170
|
d.value === N ? "bg-blue-500 text-white" : "bg-gray-200 text-gray-700"
|
|
20171
20171
|
]),
|
|
20172
|
-
onClick: (I) =>
|
|
20172
|
+
onClick: (I) => h("category", N)
|
|
20173
20173
|
}, Z(N), 11, J1)), 64))
|
|
20174
20174
|
]),
|
|
20175
|
-
c.value.length ? (
|
|
20176
|
-
(
|
|
20175
|
+
c.value.length ? (b(), x("div", Q1, [
|
|
20176
|
+
(b(!0), x(ie, null, Ce(w.value, (N, I) => (b(), x("div", {
|
|
20177
20177
|
key: I,
|
|
20178
20178
|
class: "icon-item text-center cursor-pointer hover:bg-gray-100 p-2 rounded transition-all",
|
|
20179
20179
|
onClick: (O) => g(N)
|
|
@@ -20183,7 +20183,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
20183
20183
|
}, null, 2),
|
|
20184
20184
|
v("div", ew, Z(N.name), 1)
|
|
20185
20185
|
], 8, Z1))), 128))
|
|
20186
|
-
])) : (
|
|
20186
|
+
])) : (b(), x("div", tw, "No icons found"))
|
|
20187
20187
|
])) : U("", !0)
|
|
20188
20188
|
], 512));
|
|
20189
20189
|
}
|
|
@@ -20199,10 +20199,10 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
20199
20199
|
}
|
|
20200
20200
|
},
|
|
20201
20201
|
setup(e) {
|
|
20202
|
-
return (t, n) => e.iconName ? (
|
|
20202
|
+
return (t, n) => e.iconName ? (b(), x("i", {
|
|
20203
20203
|
key: 0,
|
|
20204
20204
|
class: ye([e.iconName, "text-xl", "text-gray-700"])
|
|
20205
|
-
}, null, 2)) : (
|
|
20205
|
+
}, null, 2)) : (b(), x("span", ow, "Please Select Icon from Settings"));
|
|
20206
20206
|
}
|
|
20207
20207
|
}, xs = /* @__PURE__ */ Je(rw, [["__scopeId", "data-v-e95232b1"]]), aw = {
|
|
20208
20208
|
key: 0,
|
|
@@ -20211,7 +20211,7 @@ const m1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, d
|
|
|
20211
20211
|
__name: "GlobalLoader",
|
|
20212
20212
|
setup(e) {
|
|
20213
20213
|
const t = Zr(), { loading: n } = Vu(t);
|
|
20214
|
-
return (o, r) => ee(n) ? (
|
|
20214
|
+
return (o, r) => ee(n) ? (b(), x("div", aw, r[0] || (r[0] = [
|
|
20215
20215
|
v("div", { class: "global-loader-container" }, [
|
|
20216
20216
|
v("div", { class: "global-loader-spinner" }, [
|
|
20217
20217
|
v("div", { class: "spinner" })
|
|
@@ -20267,7 +20267,7 @@ const lw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20267
20267
|
u.value = T, p();
|
|
20268
20268
|
}, g = () => {
|
|
20269
20269
|
p(), c.value || (c.value = !0);
|
|
20270
|
-
},
|
|
20270
|
+
}, h = () => {
|
|
20271
20271
|
c.value = !0;
|
|
20272
20272
|
}, y = (T) => {
|
|
20273
20273
|
const V = T == null ? void 0 : T.trim();
|
|
@@ -20276,9 +20276,9 @@ const lw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20276
20276
|
return;
|
|
20277
20277
|
}
|
|
20278
20278
|
d.value = [...d.value, V], s.value = "", c.value = !1, $();
|
|
20279
|
-
}, k = (T) => {
|
|
20280
|
-
d.value = d.value.filter((V) => V !== T);
|
|
20281
20279
|
}, w = (T) => {
|
|
20280
|
+
d.value = d.value.filter((V) => V !== T);
|
|
20281
|
+
}, k = (T) => {
|
|
20282
20282
|
y(T), c.value = !1;
|
|
20283
20283
|
}, S = () => {
|
|
20284
20284
|
s.value.trim() && y(s.value);
|
|
@@ -20289,11 +20289,11 @@ const lw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20289
20289
|
(D = T == null ? void 0 : T.focus) == null || D.call(T);
|
|
20290
20290
|
});
|
|
20291
20291
|
}, N = (T) => {
|
|
20292
|
-
T.target === T.currentTarget && ($(), c.value ||
|
|
20292
|
+
T.target === T.currentTarget && ($(), c.value || h());
|
|
20293
20293
|
}, I = (T) => {
|
|
20294
|
-
T.target.closest(".p-chip-remove-icon") || ($(), c.value ||
|
|
20294
|
+
T.target.closest(".p-chip-remove-icon") || ($(), c.value || h());
|
|
20295
20295
|
}, O = (T) => {
|
|
20296
|
-
T.target === T.currentTarget && ($(), c.value ||
|
|
20296
|
+
T.target === T.currentTarget && ($(), c.value || h());
|
|
20297
20297
|
}, M = (T) => {
|
|
20298
20298
|
T == null || T.stopPropagation(), c.value = !c.value, c.value && $();
|
|
20299
20299
|
}, W = (T) => {
|
|
@@ -20306,7 +20306,7 @@ const lw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20306
20306
|
document.removeEventListener("click", W);
|
|
20307
20307
|
}), (T, V) => {
|
|
20308
20308
|
const C = K("Chip"), B = K("InputText"), D = K("Button");
|
|
20309
|
-
return
|
|
20309
|
+
return b(), x("div", {
|
|
20310
20310
|
class: "relative w-full multi-select-chips-wrapper",
|
|
20311
20311
|
onClick: O
|
|
20312
20312
|
}, [
|
|
@@ -20315,11 +20315,11 @@ const lw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20315
20315
|
class: "flex flex-wrap items-center flex-1 gap-2 p-1 min-h-full",
|
|
20316
20316
|
onClick: N
|
|
20317
20317
|
}, [
|
|
20318
|
-
(
|
|
20318
|
+
(b(!0), x(ie, null, Ce(d.value, (R, z) => (b(), j(C, {
|
|
20319
20319
|
key: `chip-${z}-${R}`,
|
|
20320
20320
|
label: R,
|
|
20321
20321
|
removable: "",
|
|
20322
|
-
onRemove: (Q) =>
|
|
20322
|
+
onRemove: (Q) => w(R),
|
|
20323
20323
|
onClick: I,
|
|
20324
20324
|
class: "m-0 flex-shrink-0 whitespace-nowrap h-fit self-center"
|
|
20325
20325
|
}, null, 8, ["label", "onRemove"]))), 128)),
|
|
@@ -20333,7 +20333,7 @@ const lw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20333
20333
|
placeholder: d.value.length === 0 ? e.placeholder : "",
|
|
20334
20334
|
onKeydown: Wo(mn(S, ["prevent"]), ["enter"]),
|
|
20335
20335
|
onInput: g,
|
|
20336
|
-
onFocus:
|
|
20336
|
+
onFocus: h,
|
|
20337
20337
|
disabled: e.disabled,
|
|
20338
20338
|
class: "w-full p-0 border-0 shadow-none focus:ring-0 focus:outline-none focus:shadow-none bg-transparent"
|
|
20339
20339
|
}, null, 8, ["modelValue", "placeholder", "onKeydown", "disabled"])
|
|
@@ -20350,7 +20350,7 @@ const lw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20350
20350
|
}, null, 8, ["disabled"])
|
|
20351
20351
|
])
|
|
20352
20352
|
]),
|
|
20353
|
-
c.value ? (
|
|
20353
|
+
c.value ? (b(), x("div", {
|
|
20354
20354
|
key: 0,
|
|
20355
20355
|
ref_key: "dropdownRef",
|
|
20356
20356
|
ref: i,
|
|
@@ -20358,7 +20358,7 @@ const lw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20358
20358
|
}, [
|
|
20359
20359
|
v("div", cw, [
|
|
20360
20360
|
v("div", dw, [
|
|
20361
|
-
(
|
|
20361
|
+
(b(!0), x(ie, null, Ce(l.value, (R) => (b(), j(D, {
|
|
20362
20362
|
key: R,
|
|
20363
20363
|
size: "small",
|
|
20364
20364
|
class: ye([
|
|
@@ -20371,10 +20371,10 @@ const lw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20371
20371
|
])
|
|
20372
20372
|
]),
|
|
20373
20373
|
v("div", fw, [
|
|
20374
|
-
f.value.length === 0 ? (
|
|
20374
|
+
f.value.length === 0 ? (b(), x("div", pw, " No options found ")) : (b(!0), x(ie, { key: 1 }, Ce(f.value, (R, z) => (b(), x("div", {
|
|
20375
20375
|
key: `opt-${z}-${R}`,
|
|
20376
20376
|
class: "px-3 py-2 text-sm cursor-pointer hover:bg-gray-100",
|
|
20377
|
-
onClick: mn((Q) =>
|
|
20377
|
+
onClick: mn((Q) => k(R), ["stop"])
|
|
20378
20378
|
}, Z(R), 9, mw))), 128))
|
|
20379
20379
|
])
|
|
20380
20380
|
], 512)) : U("", !0)
|
|
@@ -20441,7 +20441,7 @@ const bw = { class: "w-full" }, Es = {
|
|
|
20441
20441
|
c();
|
|
20442
20442
|
}), (f, d) => {
|
|
20443
20443
|
const p = K("Select");
|
|
20444
|
-
return
|
|
20444
|
+
return b(), x("div", bw, [
|
|
20445
20445
|
q(p, {
|
|
20446
20446
|
modelValue: i.value,
|
|
20447
20447
|
"onUpdate:modelValue": d[0] || (d[0] = (m) => i.value = m),
|
|
@@ -25847,12 +25847,12 @@ function mx() {
|
|
|
25847
25847
|
function u() {
|
|
25848
25848
|
const m = i.value.find((g) => g.name === t.primary);
|
|
25849
25849
|
if (m.name === "noir") {
|
|
25850
|
-
const g = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950],
|
|
25850
|
+
const g = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950], h = {};
|
|
25851
25851
|
return g.forEach((y) => {
|
|
25852
|
-
|
|
25852
|
+
h[y] = `{surface.${y}}`;
|
|
25853
25853
|
}), {
|
|
25854
25854
|
semantic: {
|
|
25855
|
-
primary:
|
|
25855
|
+
primary: h,
|
|
25856
25856
|
colorScheme: {
|
|
25857
25857
|
light: {
|
|
25858
25858
|
primary: {
|
|
@@ -25925,29 +25925,29 @@ function mx() {
|
|
|
25925
25925
|
function f(m) {
|
|
25926
25926
|
var g;
|
|
25927
25927
|
if ((g = m.semantic) != null && g.primary) {
|
|
25928
|
-
const
|
|
25929
|
-
document.documentElement.style.setProperty("--p-button-primary-background",
|
|
25928
|
+
const h = m.semantic.primary[500];
|
|
25929
|
+
document.documentElement.style.setProperty("--p-button-primary-background", h), document.documentElement.style.setProperty("--p-button-primary-border-color", h);
|
|
25930
25930
|
}
|
|
25931
25931
|
}
|
|
25932
25932
|
function d(m, g) {
|
|
25933
|
-
let
|
|
25933
|
+
let h;
|
|
25934
25934
|
if (m === "primary") {
|
|
25935
|
-
if (
|
|
25936
|
-
t.primary =
|
|
25935
|
+
if (h = i.value.find((y) => y.name === g), !h) return;
|
|
25936
|
+
t.primary = h.name, f({
|
|
25937
25937
|
semantic: {
|
|
25938
|
-
primary:
|
|
25938
|
+
primary: h.palette
|
|
25939
25939
|
}
|
|
25940
25940
|
});
|
|
25941
25941
|
}
|
|
25942
25942
|
if (m === "surface") {
|
|
25943
|
-
if (
|
|
25944
|
-
t.surface =
|
|
25943
|
+
if (h = s.value.find((y) => y.name === g), !h) return;
|
|
25944
|
+
t.surface = h.name, wb(h.palette);
|
|
25945
25945
|
}
|
|
25946
25946
|
}
|
|
25947
25947
|
function p() {
|
|
25948
|
-
var
|
|
25948
|
+
var h;
|
|
25949
25949
|
t.preset = a.value;
|
|
25950
|
-
const m = r[a.value], g = (
|
|
25950
|
+
const m = r[a.value], g = (h = s.value.find((y) => y.name === t.surface)) == null ? void 0 : h.palette;
|
|
25951
25951
|
Ul().preset(m).preset(u()).surfacePalette(g).use({ useDefaultOptions: !0 });
|
|
25952
25952
|
}
|
|
25953
25953
|
return {
|
|
@@ -26113,31 +26113,43 @@ function Sx() {
|
|
|
26113
26113
|
function Cx() {
|
|
26114
26114
|
const e = We(), { get: t, post: n, put: o, del: r } = mt(), a = () => e.getAppId();
|
|
26115
26115
|
return {
|
|
26116
|
-
getConnectionByID: async (
|
|
26117
|
-
const
|
|
26118
|
-
return await t(`/api/app/v1/${
|
|
26116
|
+
getConnectionByID: async (h, y = !1) => {
|
|
26117
|
+
const w = a();
|
|
26118
|
+
return await t(`/api/app/v1/${w}/external-connection/${h}`, y);
|
|
26119
26119
|
},
|
|
26120
|
-
createConnection: async (
|
|
26121
|
-
const
|
|
26122
|
-
return await n(`/api/app/v1/${
|
|
26120
|
+
createConnection: async (h, y = !1) => {
|
|
26121
|
+
const w = a();
|
|
26122
|
+
return await n(`/api/app/v1/${w}/external-connection`, h, y);
|
|
26123
26123
|
},
|
|
26124
|
-
updateConnection: async (
|
|
26125
|
-
const
|
|
26126
|
-
return await o(`/api/app/v1/${
|
|
26124
|
+
updateConnection: async (h, y, w = !1) => {
|
|
26125
|
+
const k = a();
|
|
26126
|
+
return await o(`/api/app/v1/${k}/external-connection/${h}`, y, w);
|
|
26127
26127
|
},
|
|
26128
|
-
deleteConnection: async (
|
|
26129
|
-
const
|
|
26130
|
-
return await r(`/api/app/v1/${
|
|
26128
|
+
deleteConnection: async (h, y = !1) => {
|
|
26129
|
+
const w = a();
|
|
26130
|
+
return await r(`/api/app/v1/${w}/external-connection/${h}`, y);
|
|
26131
26131
|
},
|
|
26132
|
-
getAllConnections: async (
|
|
26133
|
-
const
|
|
26134
|
-
return await t(`/api/app/v1/${
|
|
26132
|
+
getAllConnections: async (h = !1) => {
|
|
26133
|
+
const y = a();
|
|
26134
|
+
return await t(`/api/app/v1/${y}/external-connection`, h);
|
|
26135
26135
|
},
|
|
26136
|
-
initiateAuthorization: async (
|
|
26137
|
-
const
|
|
26138
|
-
return await t(`/api/app/v1/${
|
|
26136
|
+
initiateAuthorization: async (h, y = !1) => {
|
|
26137
|
+
const w = a();
|
|
26138
|
+
return await t(`/api/app/v1/${w}/external-connection/${h}/authorize`, y);
|
|
26139
26139
|
},
|
|
26140
|
-
testConnection: async (
|
|
26140
|
+
testConnection: async (h, y = !1) => await n("/api/platform/v1/datasource/connection", h, y),
|
|
26141
|
+
addConnectionResource: async (h, y, w = !1) => {
|
|
26142
|
+
const k = a();
|
|
26143
|
+
return await n(`/api/app/v1/${k}/external-connection/${h}/import-openapi`, y, w);
|
|
26144
|
+
},
|
|
26145
|
+
getConnectionResource: async (h, y = !1) => {
|
|
26146
|
+
const w = a();
|
|
26147
|
+
return await t(`/api/app/v1/${w}/external-connection/resource/${h}`, y);
|
|
26148
|
+
},
|
|
26149
|
+
deleteConnectionResource: async (h, y = !1) => {
|
|
26150
|
+
const w = a();
|
|
26151
|
+
return await r(`/api/app/v1/${w}/external-connection/resource/${h}`, y);
|
|
26152
|
+
}
|
|
26141
26153
|
};
|
|
26142
26154
|
}
|
|
26143
26155
|
const rx = { style: {
|
|
@@ -26211,7 +26223,7 @@ const rx = { style: {
|
|
|
26211
26223
|
padding: "1rem"
|
|
26212
26224
|
};
|
|
26213
26225
|
});
|
|
26214
|
-
return (c, l) => (
|
|
26226
|
+
return (c, l) => (b(), x("div", rx, [
|
|
26215
26227
|
v("div", ax, [
|
|
26216
26228
|
v("div", {
|
|
26217
26229
|
style: Zn(s.value)
|