codesaaz-core 0.0.79 → 0.0.80
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 +826 -822
- package/dist/codesaaz.umd.js +9 -9
- package/package.json +1 -1
package/dist/codesaaz.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hasInjectionContext as ru, inject as et, ref as O, watch as Ie, reactive as Lt, effectScope as iu, isRef as Xt, isReactive as ms, toRaw as au, getCurrentScope as su, onScopeDispose as lu, nextTick as mt, toRefs as uu, markRaw as cu, computed as
|
|
1
|
+
import { hasInjectionContext as ru, inject as et, ref as O, watch as Ie, reactive as Lt, effectScope as iu, isRef as Xt, isReactive as ms, toRaw as au, getCurrentScope as su, onScopeDispose as lu, nextTick as mt, toRefs as uu, markRaw as cu, computed as Z, mergeModels as We, useModel as ot, resolveComponent as q, openBlock as b, createElementBlock as x, Fragment as ae, createElementVNode as v, createTextVNode as Ge, toDisplayString as X, createCommentVNode as N, createBlock as V, renderList as we, createVNode as H, toValue as Ee, unref as G, onMounted as Ve, provide as ln, readonly as hs, watchEffect as Bo, shallowRef as du, withCtx as te, onUpdated as gs, normalizeProps as Vt, guardReactiveProps as Dn, renderSlot as ue, createSlots as Er, withKeys as qr, withModifiers as So, withDirectives as wt, vShow as fu, resolveDirective as Gr, normalizeClass as Ne, resolveDynamicComponent as Oe, mergeProps as Y, defineComponent as Vn, h as Ze, shallowReactive as $r, onBeforeUnmount as bs, useId as pu, getCurrentInstance as ys, onUnmounted as mu, cloneVNode as hu, normalizeStyle as wn, Teleport as gu, Transition as bu, vModelText as An, vModelCheckbox as vs, createApp as yu } from "vue";
|
|
2
2
|
import { useRoute as Sn, useRouter as vu } from "vue-router";
|
|
3
3
|
import { InputText as gi } from "primevue";
|
|
4
4
|
/*!
|
|
@@ -61,7 +61,7 @@ function Eu(e, t, n, o) {
|
|
|
61
61
|
function l() {
|
|
62
62
|
s || (n.state.value[e] = r ? r() : {});
|
|
63
63
|
const c = uu(n.state.value[e]);
|
|
64
|
-
return on(c, i, Object.keys(a || {}).reduce((d, f) => (d[f] = cu(
|
|
64
|
+
return on(c, i, Object.keys(a || {}).reduce((d, f) => (d[f] = cu(Z(() => {
|
|
65
65
|
Yr(n);
|
|
66
66
|
const p = n._s.get(e);
|
|
67
67
|
return a[f].call(p, p);
|
|
@@ -110,27 +110,27 @@ function xs(e, t, n = {}, o, r, i) {
|
|
|
110
110
|
return k[cr] = w, k;
|
|
111
111
|
const T = function() {
|
|
112
112
|
Yr(o);
|
|
113
|
-
const B = Array.from(arguments),
|
|
114
|
-
function j(
|
|
115
|
-
|
|
113
|
+
const B = Array.from(arguments), P = [], M = [];
|
|
114
|
+
function j(re) {
|
|
115
|
+
P.push(re);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
M.push(
|
|
117
|
+
function ee(re) {
|
|
118
|
+
M.push(re);
|
|
119
119
|
}
|
|
120
120
|
$n(f, {
|
|
121
121
|
args: B,
|
|
122
122
|
name: T[cr],
|
|
123
123
|
store: I,
|
|
124
124
|
after: j,
|
|
125
|
-
onError:
|
|
125
|
+
onError: ee
|
|
126
126
|
});
|
|
127
|
-
let
|
|
127
|
+
let J;
|
|
128
128
|
try {
|
|
129
|
-
|
|
130
|
-
} catch (
|
|
131
|
-
throw $n(M,
|
|
129
|
+
J = k.apply(this && this.$id === e ? this : I, B);
|
|
130
|
+
} catch (re) {
|
|
131
|
+
throw $n(M, re), re;
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return J instanceof Promise ? J.then((re) => ($n(P, re), re)).catch((re) => ($n(M, re), Promise.reject(re))) : ($n(P, J), J);
|
|
134
134
|
};
|
|
135
135
|
return T[yi] = !0, T[cr] = w, T;
|
|
136
136
|
}, $ = {
|
|
@@ -141,12 +141,12 @@ function xs(e, t, n = {}, o, r, i) {
|
|
|
141
141
|
$patch: g,
|
|
142
142
|
$reset: y,
|
|
143
143
|
$subscribe(k, w = {}) {
|
|
144
|
-
const T = bi(d, k, w.detached, () => B()), B = a.run(() => Ie(() => o.state.value[e], (
|
|
144
|
+
const T = bi(d, k, w.detached, () => B()), B = a.run(() => Ie(() => o.state.value[e], (P) => {
|
|
145
145
|
(w.flush === "sync" ? c : l) && k({
|
|
146
146
|
storeId: e,
|
|
147
147
|
type: Qn.direct,
|
|
148
148
|
events: p
|
|
149
|
-
},
|
|
149
|
+
}, P);
|
|
150
150
|
}, on({}, u, w)));
|
|
151
151
|
return T;
|
|
152
152
|
},
|
|
@@ -2040,7 +2040,7 @@ function od(e = "") {
|
|
|
2040
2040
|
endsWith: "ENDS_WITH"
|
|
2041
2041
|
};
|
|
2042
2042
|
let o = O({}), r = O([]), i = O([]), a = O([]);
|
|
2043
|
-
const s = O(""), u = O(1), l = O(25), c = O(0), d = O(0), f = O(0), p = O(!1), m = O([]), h = O(""), g = O({}), y = async (B,
|
|
2043
|
+
const s = O(""), u = O(1), l = O(25), c = O(0), d = O(0), f = O(0), p = O(!1), m = O([]), h = O(""), g = O({}), y = async (B, P = !0) => {
|
|
2044
2044
|
p.value = !0;
|
|
2045
2045
|
try {
|
|
2046
2046
|
const M = await t.getEntityRecords(B);
|
|
@@ -2053,7 +2053,7 @@ function od(e = "") {
|
|
|
2053
2053
|
}, C = async (B = !0) => {
|
|
2054
2054
|
p.value = !0;
|
|
2055
2055
|
try {
|
|
2056
|
-
const
|
|
2056
|
+
const P = {
|
|
2057
2057
|
sortBy: [s.value],
|
|
2058
2058
|
sortDirection: u.value === 1 ? "ASC" : "DESC",
|
|
2059
2059
|
pageSize: l.value,
|
|
@@ -2062,22 +2062,22 @@ function od(e = "") {
|
|
|
2062
2062
|
filter: m.value,
|
|
2063
2063
|
fullTextSearch: h.value
|
|
2064
2064
|
};
|
|
2065
|
-
Object.keys(
|
|
2066
|
-
const M = await t.searchEntityRecords(e,
|
|
2065
|
+
Object.keys(P.filter).length === 0 && (P.filter = []);
|
|
2066
|
+
const M = await t.searchEntityRecords(e, P);
|
|
2067
2067
|
M && M.response && (p.value = !1, o.value = M.response, r.value = M.response.result, d.value = M.response.totalRecords, f.value = c.value * l.value);
|
|
2068
|
-
} catch (
|
|
2069
|
-
console.error("Error fetching entity:",
|
|
2068
|
+
} catch (P) {
|
|
2069
|
+
console.error("Error fetching entity:", P.errorMessage);
|
|
2070
2070
|
} finally {
|
|
2071
2071
|
p.value = !1;
|
|
2072
2072
|
}
|
|
2073
|
-
}, S = (B) => B.map((
|
|
2074
|
-
field:
|
|
2075
|
-
name:
|
|
2076
|
-
filterable:
|
|
2077
|
-
datatype:
|
|
2073
|
+
}, S = (B) => B.map((P) => ({
|
|
2074
|
+
field: P.name,
|
|
2075
|
+
name: P.displayName ? P.displayName : P.name,
|
|
2076
|
+
filterable: P.filterable,
|
|
2077
|
+
datatype: P.type,
|
|
2078
2078
|
sortable: !0,
|
|
2079
|
-
displayFormatKey:
|
|
2080
|
-
displayFormat:
|
|
2079
|
+
displayFormatKey: P.displayFormatKey,
|
|
2080
|
+
displayFormat: P.displayFormat
|
|
2081
2081
|
})), $ = (B) => {
|
|
2082
2082
|
s.value = B.sortField, u.value = B.sortOrder, f.value = 0, C();
|
|
2083
2083
|
}, I = (B) => {
|
|
@@ -2101,13 +2101,13 @@ function od(e = "") {
|
|
|
2101
2101
|
return "text";
|
|
2102
2102
|
}
|
|
2103
2103
|
}, w = (B) => {
|
|
2104
|
-
const
|
|
2105
|
-
return
|
|
2104
|
+
const P = i.value.find((M) => M.field === B);
|
|
2105
|
+
return P ? P.datatype : null;
|
|
2106
2106
|
}, T = () => {
|
|
2107
2107
|
for (let B = 0; B < a.value.length; B++) {
|
|
2108
|
-
const
|
|
2109
|
-
if (
|
|
2110
|
-
g.value =
|
|
2108
|
+
const P = a.value[B];
|
|
2109
|
+
if (P.primaryKey && P.primaryKey == !0) {
|
|
2110
|
+
g.value = P, s.value = P.name;
|
|
2111
2111
|
break;
|
|
2112
2112
|
}
|
|
2113
2113
|
}
|
|
@@ -2203,7 +2203,7 @@ const Qe = (e, t) => {
|
|
|
2203
2203
|
for: e.column.name
|
|
2204
2204
|
}, [
|
|
2205
2205
|
Ge(X(e.column.displayName || e.column.name) + " ", 1),
|
|
2206
|
-
e.column.required ? (b(), x("span", ad, "*")) :
|
|
2206
|
+
e.column.required ? (b(), x("span", ad, "*")) : N("", !0)
|
|
2207
2207
|
], 8, id),
|
|
2208
2208
|
e.column.inputComponent.toLowerCase() == "input_date" ? (b(), V(s, {
|
|
2209
2209
|
key: 0,
|
|
@@ -2248,7 +2248,7 @@ const Qe = (e, t) => {
|
|
|
2248
2248
|
}, [
|
|
2249
2249
|
g.includes("hint:") ? (b(), x("small", ld, X(g.split(":")[1]), 1)) : (b(), x("small", sd, X(g), 1))
|
|
2250
2250
|
]))), 128))
|
|
2251
|
-
])) :
|
|
2251
|
+
])) : N("", !0),
|
|
2252
2252
|
e.column.inputComponent.toLowerCase() == "input_boolean" ? (b(), x("div", ud, [
|
|
2253
2253
|
H(c, {
|
|
2254
2254
|
modelValue: n.value,
|
|
@@ -2259,9 +2259,9 @@ const Qe = (e, t) => {
|
|
|
2259
2259
|
}, null, 8, ["modelValue", "invalid"]),
|
|
2260
2260
|
v("label", cd, [
|
|
2261
2261
|
Ge(X(e.column.displayName || e.column.name) + " ", 1),
|
|
2262
|
-
e.column.required ? (b(), x("span", dd, "*")) :
|
|
2262
|
+
e.column.required ? (b(), x("span", dd, "*")) : N("", !0)
|
|
2263
2263
|
])
|
|
2264
|
-
])) :
|
|
2264
|
+
])) : N("", !0)
|
|
2265
2265
|
], 64);
|
|
2266
2266
|
};
|
|
2267
2267
|
}
|
|
@@ -2790,14 +2790,14 @@ function tl(e) {
|
|
|
2790
2790
|
f.value = c.value.reduce((F, R) => (F[Co(Ee(R.path))] = R, F), {});
|
|
2791
2791
|
});
|
|
2792
2792
|
function m(F, R) {
|
|
2793
|
-
const W =
|
|
2793
|
+
const W = re(F);
|
|
2794
2794
|
if (!W) {
|
|
2795
2795
|
typeof F == "string" && (d.value[Co(F)] = zi(R));
|
|
2796
2796
|
return;
|
|
2797
2797
|
}
|
|
2798
2798
|
if (typeof F == "string") {
|
|
2799
|
-
const
|
|
2800
|
-
d.value[
|
|
2799
|
+
const oe = Co(F);
|
|
2800
|
+
d.value[oe] && delete d.value[oe];
|
|
2801
2801
|
}
|
|
2802
2802
|
W.errors = zi(R), W.valid = !W.errors.length;
|
|
2803
2803
|
}
|
|
@@ -2806,30 +2806,30 @@ function tl(e) {
|
|
|
2806
2806
|
m(R, F[R]);
|
|
2807
2807
|
});
|
|
2808
2808
|
}
|
|
2809
|
-
const g =
|
|
2809
|
+
const g = Z(() => {
|
|
2810
2810
|
const F = c.value.reduce((R, W) => (W.errors.length && (R[Ee(W.path)] = W.errors), R), {});
|
|
2811
2811
|
return Object.assign(Object.assign({}, d.value), F);
|
|
2812
|
-
}), y =
|
|
2812
|
+
}), y = Z(() => vt(g.value).reduce((F, R) => {
|
|
2813
2813
|
const W = g.value[R];
|
|
2814
2814
|
return W != null && W.length && (F[R] = W[0]), F;
|
|
2815
|
-
}, {})), C =
|
|
2815
|
+
}, {})), C = Z(() => c.value.reduce((F, R) => (F[Ee(R.path)] = { name: Ee(R.path) || "", label: R.label || "" }, F), {})), S = Z(() => c.value.reduce((F, R) => {
|
|
2816
2816
|
var W;
|
|
2817
2817
|
return F[Ee(R.path)] = (W = R.bails) !== null && W !== void 0 ? W : !0, F;
|
|
2818
|
-
}, {})), $ = Object.assign({}, {}), I = (t = void 0) !== null && t !== void 0 ? t : !1, { initialValues: _, originalInitialValues: E, setInitialValues: k } = Wd(c, l), w = Hd(c, l, E, y), T =
|
|
2818
|
+
}, {})), $ = Object.assign({}, {}), I = (t = void 0) !== null && t !== void 0 ? t : !1, { initialValues: _, originalInitialValues: E, setInitialValues: k } = Wd(c, l), w = Hd(c, l, E, y), T = Z(() => c.value.reduce((F, R) => {
|
|
2819
2819
|
const W = Gt(l, Ee(R.path));
|
|
2820
2820
|
return Wt(F, Ee(R.path), W), F;
|
|
2821
2821
|
}, {})), B = void 0;
|
|
2822
|
-
function
|
|
2823
|
-
var W,
|
|
2824
|
-
const me =
|
|
2822
|
+
function P(F, R) {
|
|
2823
|
+
var W, oe;
|
|
2824
|
+
const me = Z(() => Gt(_.value, Ee(F))), ge = f.value[Ee(F)], ce = (R == null ? void 0 : R.type) === "checkbox" || (R == null ? void 0 : R.type) === "radio";
|
|
2825
2825
|
if (ge && ce) {
|
|
2826
2826
|
ge.multiple = !0;
|
|
2827
2827
|
const je = r++;
|
|
2828
2828
|
return Array.isArray(ge.id) ? ge.id.push(je) : ge.id = [ge.id, je], ge.fieldsCount++, ge.__flags.pendingUnmount[je] = !1, ge;
|
|
2829
2829
|
}
|
|
2830
|
-
const U =
|
|
2831
|
-
se !== -1 &&
|
|
2832
|
-
const ie =
|
|
2830
|
+
const U = Z(() => Gt(l, Ee(F))), Q = Ee(F), se = A.findIndex((je) => je === Q);
|
|
2831
|
+
se !== -1 && A.splice(se, 1);
|
|
2832
|
+
const ie = Z(() => {
|
|
2833
2833
|
var je, nt, Mn, Un;
|
|
2834
2834
|
const Hn = Ee(B);
|
|
2835
2835
|
if (an(Hn))
|
|
@@ -2842,11 +2842,11 @@ function tl(e) {
|
|
|
2842
2842
|
touched: !1,
|
|
2843
2843
|
pending: !1,
|
|
2844
2844
|
valid: !0,
|
|
2845
|
-
validated: !!(!((W = $[
|
|
2845
|
+
validated: !!(!((W = $[Q]) === null || W === void 0) && W.length),
|
|
2846
2846
|
required: ie,
|
|
2847
2847
|
initialValue: me,
|
|
2848
2848
|
errors: du([]),
|
|
2849
|
-
bails: (
|
|
2849
|
+
bails: (oe = R == null ? void 0 : R.bails) !== null && oe !== void 0 ? oe : !1,
|
|
2850
2850
|
label: R == null ? void 0 : R.label,
|
|
2851
2851
|
type: (R == null ? void 0 : R.type) || "default",
|
|
2852
2852
|
value: U,
|
|
@@ -2857,10 +2857,10 @@ function tl(e) {
|
|
|
2857
2857
|
},
|
|
2858
2858
|
fieldsCount: 1,
|
|
2859
2859
|
validate: R == null ? void 0 : R.validate,
|
|
2860
|
-
dirty:
|
|
2860
|
+
dirty: Z(() => !Zn(G(U), G(me)))
|
|
2861
2861
|
});
|
|
2862
|
-
return c.value.push(Pe), f.value[
|
|
2863
|
-
st(
|
|
2862
|
+
return c.value.push(Pe), f.value[Q] = Pe, p(), y.value[Q] && !$[Q] && mt(() => {
|
|
2863
|
+
st(Q, { mode: "silent" });
|
|
2864
2864
|
}), Xt(F) && Ie(F, (je) => {
|
|
2865
2865
|
p();
|
|
2866
2866
|
const nt = Le(U.value);
|
|
@@ -2869,12 +2869,12 @@ function tl(e) {
|
|
|
2869
2869
|
});
|
|
2870
2870
|
}), Pe;
|
|
2871
2871
|
}
|
|
2872
|
-
const M = Vi(bt, 5), j = Vi(bt, 5),
|
|
2872
|
+
const M = Vi(bt, 5), j = Vi(bt, 5), ee = $d(async (F) => await (F === "silent" ? M() : j()), (F, [R]) => {
|
|
2873
2873
|
const W = vt(Ce.errorBag.value), me = [
|
|
2874
2874
|
.../* @__PURE__ */ new Set([...vt(F.results), ...c.value.map((ge) => ge.path), ...W])
|
|
2875
2875
|
].sort().reduce((ge, ce) => {
|
|
2876
2876
|
var U;
|
|
2877
|
-
const
|
|
2877
|
+
const Q = ce, se = re(Q) || D(Q), ie = ((U = F.results[Q]) === null || U === void 0 ? void 0 : U.errors) || [], he = Ee(se == null ? void 0 : se.path) || Q, Pe = Kd({ errors: ie, valid: !ie.length }, ge.results[he]);
|
|
2878
2878
|
return ge.results[he] = Pe, Pe.valid || (ge.errors[he] = Pe.errors[0]), se && d.value[he] && delete d.value[he], se ? (se.valid = Pe.valid, R === "silent" || R === "validated-only" && !se.validated || m(se, Pe.errors), ge) : (m(he, ie), ge);
|
|
2879
2879
|
}, {
|
|
2880
2880
|
valid: F.valid,
|
|
@@ -2884,39 +2884,39 @@ function tl(e) {
|
|
|
2884
2884
|
});
|
|
2885
2885
|
return F.values && (me.values = F.values, me.source = F.source), vt(me.results).forEach((ge) => {
|
|
2886
2886
|
var ce;
|
|
2887
|
-
const U =
|
|
2887
|
+
const U = re(ge);
|
|
2888
2888
|
U && R !== "silent" && (R === "validated-only" && !U.validated || m(U, (ce = me.results[ge]) === null || ce === void 0 ? void 0 : ce.errors));
|
|
2889
2889
|
}), me;
|
|
2890
2890
|
});
|
|
2891
|
-
function
|
|
2891
|
+
function J(F) {
|
|
2892
2892
|
c.value.forEach(F);
|
|
2893
2893
|
}
|
|
2894
|
-
function
|
|
2894
|
+
function re(F) {
|
|
2895
2895
|
const R = typeof F == "string" ? Co(F) : F;
|
|
2896
2896
|
return typeof R == "string" ? f.value[R] : R;
|
|
2897
2897
|
}
|
|
2898
|
-
function
|
|
2899
|
-
return c.value.filter((W) => F.startsWith(Ee(W.path))).reduce((W,
|
|
2898
|
+
function D(F) {
|
|
2899
|
+
return c.value.filter((W) => F.startsWith(Ee(W.path))).reduce((W, oe) => W ? oe.path.length > W.path.length ? oe : W : oe, void 0);
|
|
2900
2900
|
}
|
|
2901
|
-
let
|
|
2901
|
+
let A = [], z;
|
|
2902
2902
|
function de(F) {
|
|
2903
|
-
return
|
|
2904
|
-
[...
|
|
2903
|
+
return A.push(F), z || (z = mt(() => {
|
|
2904
|
+
[...A].sort().reverse().forEach((W) => {
|
|
2905
2905
|
Li(l, W);
|
|
2906
|
-
}),
|
|
2907
|
-
})),
|
|
2906
|
+
}), A = [], z = null;
|
|
2907
|
+
})), z;
|
|
2908
2908
|
}
|
|
2909
2909
|
function ye(F) {
|
|
2910
|
-
return function(W,
|
|
2910
|
+
return function(W, oe) {
|
|
2911
2911
|
return function(ge) {
|
|
2912
|
-
return ge instanceof Event && (ge.preventDefault(), ge.stopPropagation()),
|
|
2912
|
+
return ge instanceof Event && (ge.preventDefault(), ge.stopPropagation()), J((ce) => ce.touched = !0), i.value = !0, s.value++, He().then((ce) => {
|
|
2913
2913
|
const U = Le(l);
|
|
2914
2914
|
if (ce.valid && typeof W == "function") {
|
|
2915
|
-
const
|
|
2916
|
-
let se = F ?
|
|
2915
|
+
const Q = Le(T.value);
|
|
2916
|
+
let se = F ? Q : U;
|
|
2917
2917
|
return ce.values && (se = ce.source === "schema" ? ce.values : Object.assign({}, se, ce.values)), W(se, {
|
|
2918
2918
|
evt: ge,
|
|
2919
|
-
controlledValues:
|
|
2919
|
+
controlledValues: Q,
|
|
2920
2920
|
setErrors: h,
|
|
2921
2921
|
setFieldError: m,
|
|
2922
2922
|
setTouched: Re,
|
|
@@ -2927,7 +2927,7 @@ function tl(e) {
|
|
|
2927
2927
|
resetField: Be
|
|
2928
2928
|
});
|
|
2929
2929
|
}
|
|
2930
|
-
!ce.valid && typeof
|
|
2930
|
+
!ce.valid && typeof oe == "function" && oe({
|
|
2931
2931
|
values: U,
|
|
2932
2932
|
evt: ge,
|
|
2933
2933
|
errors: ce.errors,
|
|
@@ -2942,15 +2942,15 @@ function tl(e) {
|
|
|
2942
2942
|
const le = ye(!1);
|
|
2943
2943
|
le.withControlled = ye(!0);
|
|
2944
2944
|
function fe(F, R) {
|
|
2945
|
-
const W = c.value.findIndex((me) => me.path === F && (Array.isArray(me.id) ? me.id.includes(R) : me.id === R)),
|
|
2946
|
-
if (!(W === -1 || !
|
|
2945
|
+
const W = c.value.findIndex((me) => me.path === F && (Array.isArray(me.id) ? me.id.includes(R) : me.id === R)), oe = c.value[W];
|
|
2946
|
+
if (!(W === -1 || !oe)) {
|
|
2947
2947
|
if (mt(() => {
|
|
2948
2948
|
st(F, { mode: "silent", warn: !1 });
|
|
2949
|
-
}),
|
|
2950
|
-
const me =
|
|
2951
|
-
me >= 0 &&
|
|
2949
|
+
}), oe.multiple && oe.fieldsCount && oe.fieldsCount--, Array.isArray(oe.id)) {
|
|
2950
|
+
const me = oe.id.indexOf(R);
|
|
2951
|
+
me >= 0 && oe.id.splice(me, 1), delete oe.__flags.pendingUnmount[R];
|
|
2952
2952
|
}
|
|
2953
|
-
(!
|
|
2953
|
+
(!oe.multiple || oe.fieldsCount <= 0) && (c.value.splice(W, 1), Rt(F), p(), delete f.value[F]);
|
|
2954
2954
|
}
|
|
2955
2955
|
}
|
|
2956
2956
|
function ke(F) {
|
|
@@ -2974,7 +2974,7 @@ function tl(e) {
|
|
|
2974
2974
|
isValidating: a,
|
|
2975
2975
|
fieldArrays: u,
|
|
2976
2976
|
keepValuesOnUnmount: I,
|
|
2977
|
-
validateSchema: G(B) ?
|
|
2977
|
+
validateSchema: G(B) ? ee : void 0,
|
|
2978
2978
|
validate: He,
|
|
2979
2979
|
setFieldError: m,
|
|
2980
2980
|
validateField: st,
|
|
@@ -2993,20 +2993,20 @@ function tl(e) {
|
|
|
2993
2993
|
stageInitialValue: Xe,
|
|
2994
2994
|
unsetInitialValue: Rt,
|
|
2995
2995
|
setFieldInitialValue: lt,
|
|
2996
|
-
createPathState:
|
|
2997
|
-
getPathState:
|
|
2996
|
+
createPathState: P,
|
|
2997
|
+
getPathState: re,
|
|
2998
2998
|
unsetPathValue: de,
|
|
2999
2999
|
removePathState: fe,
|
|
3000
3000
|
initialValues: _,
|
|
3001
3001
|
getAllPathStates: () => c.value,
|
|
3002
3002
|
destroyPath: ke,
|
|
3003
|
-
isFieldTouched:
|
|
3003
|
+
isFieldTouched: ne,
|
|
3004
3004
|
isFieldDirty: K,
|
|
3005
3005
|
isFieldValid: _e
|
|
3006
3006
|
};
|
|
3007
3007
|
function ze(F, R, W = !0) {
|
|
3008
|
-
const
|
|
3009
|
-
|
|
3008
|
+
const oe = Le(R), me = typeof F == "string" ? F : F.path;
|
|
3009
|
+
re(me) || P(me), Wt(l, me, oe), W && st(me);
|
|
3010
3010
|
}
|
|
3011
3011
|
function pt(F, R = !0) {
|
|
3012
3012
|
vt(l).forEach((W) => {
|
|
@@ -3019,37 +3019,37 @@ function tl(e) {
|
|
|
3019
3019
|
oo(l, F), u.forEach((W) => W && W.reset()), R && He();
|
|
3020
3020
|
}
|
|
3021
3021
|
function Ct(F, R) {
|
|
3022
|
-
const W =
|
|
3023
|
-
return
|
|
3022
|
+
const W = re(Ee(F)) || P(F);
|
|
3023
|
+
return Z({
|
|
3024
3024
|
get() {
|
|
3025
3025
|
return W.value;
|
|
3026
3026
|
},
|
|
3027
|
-
set(
|
|
3027
|
+
set(oe) {
|
|
3028
3028
|
var me;
|
|
3029
3029
|
const ge = Ee(F);
|
|
3030
|
-
ze(ge,
|
|
3030
|
+
ze(ge, oe, (me = Ee(R)) !== null && me !== void 0 ? me : !1);
|
|
3031
3031
|
}
|
|
3032
3032
|
});
|
|
3033
3033
|
}
|
|
3034
3034
|
function gt(F, R) {
|
|
3035
|
-
const W =
|
|
3035
|
+
const W = re(F);
|
|
3036
3036
|
W && (W.touched = R);
|
|
3037
3037
|
}
|
|
3038
|
-
function
|
|
3039
|
-
const R =
|
|
3038
|
+
function ne(F) {
|
|
3039
|
+
const R = re(F);
|
|
3040
3040
|
return R ? R.touched : c.value.filter((W) => W.path.startsWith(F)).some((W) => W.touched);
|
|
3041
3041
|
}
|
|
3042
3042
|
function K(F) {
|
|
3043
|
-
const R =
|
|
3043
|
+
const R = re(F);
|
|
3044
3044
|
return R ? R.dirty : c.value.filter((W) => W.path.startsWith(F)).some((W) => W.dirty);
|
|
3045
3045
|
}
|
|
3046
3046
|
function _e(F) {
|
|
3047
|
-
const R =
|
|
3047
|
+
const R = re(F);
|
|
3048
3048
|
return R ? R.valid : c.value.filter((W) => W.path.startsWith(F)).every((W) => W.valid);
|
|
3049
3049
|
}
|
|
3050
3050
|
function Re(F) {
|
|
3051
3051
|
if (typeof F == "boolean") {
|
|
3052
|
-
|
|
3052
|
+
J((R) => {
|
|
3053
3053
|
R.touched = F;
|
|
3054
3054
|
});
|
|
3055
3055
|
return;
|
|
@@ -3060,25 +3060,25 @@ function tl(e) {
|
|
|
3060
3060
|
}
|
|
3061
3061
|
function Be(F, R) {
|
|
3062
3062
|
var W;
|
|
3063
|
-
const
|
|
3064
|
-
me && (me.__flags.pendingReset = !0), lt(F, Le(
|
|
3063
|
+
const oe = R && "value" in R ? R.value : Gt(_.value, F), me = re(F);
|
|
3064
|
+
me && (me.__flags.pendingReset = !0), lt(F, Le(oe), !0), ze(F, oe, !1), gt(F, (W = R == null ? void 0 : R.touched) !== null && W !== void 0 ? W : !1), m(F, (R == null ? void 0 : R.errors) || []), mt(() => {
|
|
3065
3065
|
me && (me.__flags.pendingReset = !1);
|
|
3066
3066
|
});
|
|
3067
3067
|
}
|
|
3068
3068
|
function Ae(F, R) {
|
|
3069
3069
|
let W = Le(F != null && F.values ? F.values : E.value);
|
|
3070
|
-
W = R != null && R.force ? W : oo(E.value, W), W = an(B) && It(B.cast) ? B.cast(W) : W, k(W, { force: R == null ? void 0 : R.force }),
|
|
3070
|
+
W = R != null && R.force ? W : oo(E.value, W), W = an(B) && It(B.cast) ? B.cast(W) : W, k(W, { force: R == null ? void 0 : R.force }), J((oe) => {
|
|
3071
3071
|
var me;
|
|
3072
|
-
|
|
3072
|
+
oe.__flags.pendingReset = !0, oe.validated = !1, oe.touched = ((me = F == null ? void 0 : F.touched) === null || me === void 0 ? void 0 : me[Ee(oe.path)]) || !1, ze(Ee(oe.path), Gt(W, Ee(oe.path)), !1), m(Ee(oe.path), void 0);
|
|
3073
3073
|
}), R != null && R.force ? pt(W, !1) : rt(W, !1), h((F == null ? void 0 : F.errors) || {}), s.value = (F == null ? void 0 : F.submitCount) || 0, mt(() => {
|
|
3074
|
-
He({ mode: "silent" }),
|
|
3075
|
-
|
|
3074
|
+
He({ mode: "silent" }), J((oe) => {
|
|
3075
|
+
oe.__flags.pendingReset = !1;
|
|
3076
3076
|
});
|
|
3077
3077
|
});
|
|
3078
3078
|
}
|
|
3079
3079
|
async function He(F) {
|
|
3080
3080
|
const R = (F == null ? void 0 : F.mode) || "force";
|
|
3081
|
-
if (R === "force" &&
|
|
3081
|
+
if (R === "force" && J((ce) => ce.validated = !0), Ce.validateSchema)
|
|
3082
3082
|
return Ce.validateSchema(R);
|
|
3083
3083
|
a.value = !0;
|
|
3084
3084
|
const W = await Promise.all(c.value.map((ce) => ce.validate ? ce.validate(F).then((U) => ({
|
|
@@ -3093,15 +3093,15 @@ function tl(e) {
|
|
|
3093
3093
|
value: void 0
|
|
3094
3094
|
})));
|
|
3095
3095
|
a.value = !1;
|
|
3096
|
-
const
|
|
3096
|
+
const oe = {}, me = {}, ge = {};
|
|
3097
3097
|
for (const ce of W)
|
|
3098
|
-
|
|
3098
|
+
oe[ce.key] = {
|
|
3099
3099
|
valid: ce.valid,
|
|
3100
3100
|
errors: ce.errors
|
|
3101
3101
|
}, ce.value && Wt(ge, ce.key, ce.value), ce.errors.length && (me[ce.key] = ce.errors[0]);
|
|
3102
3102
|
return {
|
|
3103
3103
|
valid: W.every((ce) => ce.valid),
|
|
3104
|
-
results:
|
|
3104
|
+
results: oe,
|
|
3105
3105
|
errors: me,
|
|
3106
3106
|
values: ge,
|
|
3107
3107
|
source: "fields"
|
|
@@ -3109,8 +3109,8 @@ function tl(e) {
|
|
|
3109
3109
|
}
|
|
3110
3110
|
async function st(F, R) {
|
|
3111
3111
|
var W;
|
|
3112
|
-
const
|
|
3113
|
-
return
|
|
3112
|
+
const oe = re(F);
|
|
3113
|
+
return oe && (R == null ? void 0 : R.mode) !== "silent" && (oe.validated = !0), oe != null && oe.validate ? oe.validate(R) : (!oe && (W = R == null ? void 0 : R.warn), Promise.resolve({ errors: [], valid: !0 }));
|
|
3114
3114
|
}
|
|
3115
3115
|
function Rt(F) {
|
|
3116
3116
|
Li(_.value, F);
|
|
@@ -3142,53 +3142,53 @@ function tl(e) {
|
|
|
3142
3142
|
(F = Ce.validateSchema) === null || F === void 0 || F.call(Ce, "validated-only");
|
|
3143
3143
|
}), ln(bd, Ce);
|
|
3144
3144
|
function Zt(F, R) {
|
|
3145
|
-
const W = It(R) || R == null ? void 0 : R.label,
|
|
3145
|
+
const W = It(R) || R == null ? void 0 : R.label, oe = re(Ee(F)) || P(F, { label: W }), me = () => It(R) ? R(Eo(oe, $o)) : R || {};
|
|
3146
3146
|
function ge() {
|
|
3147
3147
|
var ie;
|
|
3148
|
-
|
|
3148
|
+
oe.touched = !0, ((ie = me().validateOnBlur) !== null && ie !== void 0 ? ie : Xn().validateOnBlur) && st(Ee(oe.path));
|
|
3149
3149
|
}
|
|
3150
3150
|
function ce() {
|
|
3151
3151
|
var ie;
|
|
3152
3152
|
((ie = me().validateOnInput) !== null && ie !== void 0 ? ie : Xn().validateOnInput) && mt(() => {
|
|
3153
|
-
st(Ee(
|
|
3153
|
+
st(Ee(oe.path));
|
|
3154
3154
|
});
|
|
3155
3155
|
}
|
|
3156
3156
|
function U() {
|
|
3157
3157
|
var ie;
|
|
3158
3158
|
((ie = me().validateOnChange) !== null && ie !== void 0 ? ie : Xn().validateOnChange) && mt(() => {
|
|
3159
|
-
st(Ee(
|
|
3159
|
+
st(Ee(oe.path));
|
|
3160
3160
|
});
|
|
3161
3161
|
}
|
|
3162
|
-
const
|
|
3162
|
+
const Q = Z(() => {
|
|
3163
3163
|
const ie = {
|
|
3164
3164
|
onChange: U,
|
|
3165
3165
|
onInput: ce,
|
|
3166
3166
|
onBlur: ge
|
|
3167
3167
|
};
|
|
3168
|
-
return It(R) ? Object.assign(Object.assign({}, ie), R(Eo(
|
|
3168
|
+
return It(R) ? Object.assign(Object.assign({}, ie), R(Eo(oe, $o)).props || {}) : R != null && R.props ? Object.assign(Object.assign({}, ie), R.props(Eo(oe, $o))) : ie;
|
|
3169
3169
|
});
|
|
3170
3170
|
return [Ct(F, () => {
|
|
3171
3171
|
var ie, he, Pe;
|
|
3172
3172
|
return (Pe = (ie = me().validateOnModelUpdate) !== null && ie !== void 0 ? ie : (he = Xn()) === null || he === void 0 ? void 0 : he.validateOnModelUpdate) !== null && Pe !== void 0 ? Pe : !0;
|
|
3173
|
-
}),
|
|
3173
|
+
}), Q];
|
|
3174
3174
|
}
|
|
3175
3175
|
function fn(F) {
|
|
3176
3176
|
return Array.isArray(F) ? F.map((R) => Ct(R, !0)) : Ct(F);
|
|
3177
3177
|
}
|
|
3178
3178
|
function pe(F, R) {
|
|
3179
|
-
const [W,
|
|
3179
|
+
const [W, oe] = Zt(F, R);
|
|
3180
3180
|
function me() {
|
|
3181
|
-
|
|
3181
|
+
oe.value.onBlur();
|
|
3182
3182
|
}
|
|
3183
3183
|
function ge(U) {
|
|
3184
|
-
const
|
|
3185
|
-
ze(Ee(F),
|
|
3184
|
+
const Q = ji(U);
|
|
3185
|
+
ze(Ee(F), Q, !1), oe.value.onInput();
|
|
3186
3186
|
}
|
|
3187
3187
|
function ce(U) {
|
|
3188
|
-
const
|
|
3189
|
-
ze(Ee(F),
|
|
3188
|
+
const Q = ji(U);
|
|
3189
|
+
ze(Ee(F), Q, !1), oe.value.onChange();
|
|
3190
3190
|
}
|
|
3191
|
-
return
|
|
3191
|
+
return Z(() => Object.assign(Object.assign({}, oe.value), {
|
|
3192
3192
|
onBlur: me,
|
|
3193
3193
|
onInput: ge,
|
|
3194
3194
|
onChange: ce,
|
|
@@ -3196,13 +3196,13 @@ function tl(e) {
|
|
|
3196
3196
|
}));
|
|
3197
3197
|
}
|
|
3198
3198
|
function Et(F, R) {
|
|
3199
|
-
const [W,
|
|
3199
|
+
const [W, oe] = Zt(F, R), me = re(Ee(F));
|
|
3200
3200
|
function ge(ce) {
|
|
3201
3201
|
W.value = ce;
|
|
3202
3202
|
}
|
|
3203
|
-
return
|
|
3203
|
+
return Z(() => {
|
|
3204
3204
|
const ce = It(R) ? R(Eo(me, $o)) : R || {};
|
|
3205
|
-
return Object.assign({ [ce.model || "modelValue"]: W.value, [`onUpdate:${ce.model || "modelValue"}`]: ge },
|
|
3205
|
+
return Object.assign({ [ce.model || "modelValue"]: W.value, [`onUpdate:${ce.model || "modelValue"}`]: ge }, oe.value);
|
|
3206
3206
|
});
|
|
3207
3207
|
}
|
|
3208
3208
|
const Ke = Object.assign(Object.assign({}, Ce), { values: hs(l), handleReset: () => Ae(), submitForm: Qt });
|
|
@@ -3213,7 +3213,7 @@ function Hd(e, t, n, o) {
|
|
|
3213
3213
|
touched: "some",
|
|
3214
3214
|
pending: "some",
|
|
3215
3215
|
valid: "every"
|
|
3216
|
-
}, i =
|
|
3216
|
+
}, i = Z(() => !Zn(t, G(n)));
|
|
3217
3217
|
function a() {
|
|
3218
3218
|
const u = e.value;
|
|
3219
3219
|
return vt(r).reduce((l, c) => {
|
|
@@ -3225,7 +3225,7 @@ function Hd(e, t, n, o) {
|
|
|
3225
3225
|
return Bo(() => {
|
|
3226
3226
|
const u = a();
|
|
3227
3227
|
s.touched = u.touched, s.valid = u.valid, s.pending = u.pending;
|
|
3228
|
-
}),
|
|
3228
|
+
}), Z(() => Object.assign(Object.assign({ initialValues: G(n) }, s), { valid: s.valid && !vt(o.value).length, dirty: i.value }));
|
|
3229
3229
|
}
|
|
3230
3230
|
function Wd(e, t, n) {
|
|
3231
3231
|
const o = el(), r = O(o), i = O(Le(o));
|
|
@@ -3647,7 +3647,7 @@ function On(e) {
|
|
|
3647
3647
|
return Cn.isRef(B) ? B.getValue(n, m, h) : B;
|
|
3648
3648
|
}
|
|
3649
3649
|
function S(B = {}) {
|
|
3650
|
-
const
|
|
3650
|
+
const P = Object.assign({
|
|
3651
3651
|
value: n,
|
|
3652
3652
|
originalValue: i,
|
|
3653
3653
|
label: a.spec.label,
|
|
@@ -3655,9 +3655,9 @@ function On(e) {
|
|
|
3655
3655
|
spec: a.spec,
|
|
3656
3656
|
disableStackTrace: B.disableStackTrace || y
|
|
3657
3657
|
}, d, B.params);
|
|
3658
|
-
for (const j of Object.keys(
|
|
3659
|
-
const M = new ct(ct.formatError(B.message || f,
|
|
3660
|
-
return M.params =
|
|
3658
|
+
for (const j of Object.keys(P)) P[j] = C(P[j]);
|
|
3659
|
+
const M = new ct(ct.formatError(B.message || f, P), n, P.path, B.type || l, P.disableStackTrace);
|
|
3660
|
+
return M.params = P, M;
|
|
3661
3661
|
}
|
|
3662
3662
|
const $ = g ? s : u;
|
|
3663
3663
|
let I = {
|
|
@@ -4768,160 +4768,160 @@ function ai(e, t, n) {
|
|
|
4768
4768
|
const f = O({});
|
|
4769
4769
|
let { handleSubmit: p, errors: m, setErrors: h } = tl();
|
|
4770
4770
|
const g = async () => {
|
|
4771
|
-
var
|
|
4771
|
+
var D;
|
|
4772
4772
|
try {
|
|
4773
|
-
const
|
|
4774
|
-
|
|
4775
|
-
} catch (
|
|
4776
|
-
toast.add({ severity: "error", summary: "Error", detail:
|
|
4773
|
+
const A = await o.getEntityRecords(e);
|
|
4774
|
+
A && A.response && (r.value = A.response, s.value = (D = A.response.entity.entityDefinition) == null ? void 0 : D.columns, re(), E(), B());
|
|
4775
|
+
} catch (A) {
|
|
4776
|
+
toast.add({ severity: "error", summary: "Error", detail: A.errorMessage, life: 3e3 });
|
|
4777
4777
|
} finally {
|
|
4778
4778
|
}
|
|
4779
4779
|
}, y = async () => {
|
|
4780
|
-
var
|
|
4780
|
+
var D;
|
|
4781
4781
|
try {
|
|
4782
|
-
const
|
|
4783
|
-
|
|
4784
|
-
} catch (
|
|
4785
|
-
console.error("Error fetching entity:",
|
|
4782
|
+
const A = await o.getRecord(e, t);
|
|
4783
|
+
A && A.response && (r.value = A.response, s.value = (D = A.response.entity.entityDefinition) == null ? void 0 : D.columns, re(), i.value = JSON.parse(JSON.stringify(A.response.result[0])), B());
|
|
4784
|
+
} catch (A) {
|
|
4785
|
+
console.error("Error fetching entity:", A.errorMessage);
|
|
4786
4786
|
} finally {
|
|
4787
4787
|
}
|
|
4788
4788
|
}, C = async () => {
|
|
4789
|
-
var
|
|
4789
|
+
var D, A;
|
|
4790
4790
|
try {
|
|
4791
|
-
const
|
|
4792
|
-
|
|
4793
|
-
} catch (
|
|
4794
|
-
console.error("Error fetching entity:",
|
|
4791
|
+
const z = await o.getRelatedEntityRecord(e, t);
|
|
4792
|
+
z && z.response && (r.value = z.response, s.value = (A = (D = z.response.entity) == null ? void 0 : D.entityDefinition) == null ? void 0 : A.columns, re(), i.value = JSON.parse(JSON.stringify(z.response.result[0])), i.value.entityName && delete i.value.entityName, i.value.linkedEntities && delete i.value.linkedEntities, c.value = z.response.result[0].linkedEntities, a.value = JSON.parse(JSON.stringify(i.value)), B());
|
|
4793
|
+
} catch (z) {
|
|
4794
|
+
console.error("Error fetching entity:", z.errorMessage);
|
|
4795
4795
|
} finally {
|
|
4796
4796
|
}
|
|
4797
|
-
}, S = async (
|
|
4797
|
+
}, S = async (D) => {
|
|
4798
4798
|
try {
|
|
4799
|
-
let
|
|
4800
|
-
|
|
4801
|
-
} catch (
|
|
4802
|
-
|
|
4799
|
+
let A = await o.addRecord(e, D);
|
|
4800
|
+
A && A.response && n("onSaveDialog", { entityName: e, recordId: t });
|
|
4801
|
+
} catch (A) {
|
|
4802
|
+
A.validationErrors && (l.value = JSON.parse(JSON.stringify(A.validationErrors))), console.error("Error fetching entity:", A.errorMessage);
|
|
4803
4803
|
} finally {
|
|
4804
4804
|
}
|
|
4805
|
-
}, $ = async (
|
|
4805
|
+
}, $ = async (D, A) => {
|
|
4806
4806
|
try {
|
|
4807
|
-
let
|
|
4808
|
-
if (
|
|
4809
|
-
let de = await o.saveRelatedEntityRecord(e,
|
|
4807
|
+
let z = await o.addRecord(e, A);
|
|
4808
|
+
if (z && z.response) {
|
|
4809
|
+
let de = await o.saveRelatedEntityRecord(e, z.response.recordId, D.linkedEntities);
|
|
4810
4810
|
de && de.response && n("onSaveDialog", { entityName: e, recordId: t });
|
|
4811
4811
|
}
|
|
4812
|
-
} catch (
|
|
4813
|
-
|
|
4812
|
+
} catch (z) {
|
|
4813
|
+
z.validationErrors && (l.value = JSON.parse(JSON.stringify(z.validationErrors))), console.error("Error fetching entity:", z.errorMessage);
|
|
4814
4814
|
} finally {
|
|
4815
4815
|
}
|
|
4816
|
-
}, I = async (
|
|
4816
|
+
}, I = async (D) => {
|
|
4817
4817
|
try {
|
|
4818
|
-
const
|
|
4819
|
-
|
|
4820
|
-
} catch (
|
|
4821
|
-
|
|
4818
|
+
const A = await o.updateRecord(e, t, D);
|
|
4819
|
+
A && A.response && (d.value = !1, a.value = JSON.parse(JSON.stringify(i.value)), n("onSaveDialog", { entityName: e, recordId: t }));
|
|
4820
|
+
} catch (A) {
|
|
4821
|
+
A.validationErrors && (l.value = JSON.parse(JSON.stringify(A.errvalidationErrorsors))), console.error("Error fetching entity:", A.errorMessage);
|
|
4822
4822
|
} finally {
|
|
4823
4823
|
}
|
|
4824
|
-
}, _ = async (
|
|
4824
|
+
}, _ = async (D, A, z) => {
|
|
4825
4825
|
try {
|
|
4826
|
-
let de = await o.saveRelatedEntityRecord(
|
|
4827
|
-
de && de.response && n("onSaveDialog", { entityName: e, enityRecordId:
|
|
4826
|
+
let de = await o.saveRelatedEntityRecord(D, A, z);
|
|
4827
|
+
de && de.response && n("onSaveDialog", { entityName: e, enityRecordId: A });
|
|
4828
4828
|
} catch (de) {
|
|
4829
4829
|
de.validationErrors && (l.value = JSON.parse(JSON.stringify(de.validationErrors))), console.error("Error fetching entity:", de.errorMessage);
|
|
4830
4830
|
} finally {
|
|
4831
4831
|
}
|
|
4832
4832
|
}, E = () => {
|
|
4833
|
-
for (let
|
|
4834
|
-
let
|
|
4835
|
-
|
|
4836
|
-
}
|
|
4837
|
-
}, k = (
|
|
4838
|
-
let
|
|
4839
|
-
for (let
|
|
4840
|
-
let de = s.value[
|
|
4841
|
-
if (
|
|
4842
|
-
|
|
4833
|
+
for (let D = 0; D < s.value.length; D++) {
|
|
4834
|
+
let A = s.value[D];
|
|
4835
|
+
A.autoGenerated || (i.value[A.name] = "");
|
|
4836
|
+
}
|
|
4837
|
+
}, k = (D) => {
|
|
4838
|
+
let A = "";
|
|
4839
|
+
for (let z = 0; z < s.value.length; z++) {
|
|
4840
|
+
let de = s.value[z];
|
|
4841
|
+
if (D == de.name) {
|
|
4842
|
+
A = de.type;
|
|
4843
4843
|
break;
|
|
4844
4844
|
}
|
|
4845
4845
|
}
|
|
4846
|
-
return
|
|
4846
|
+
return A;
|
|
4847
4847
|
}, w = () => {
|
|
4848
|
-
const
|
|
4849
|
-
return Object.entries(i.value).filter(([
|
|
4850
|
-
recordColumnName:
|
|
4848
|
+
const D = s.value.filter((z) => z.autoGenerated).map((z) => z.name);
|
|
4849
|
+
return Object.entries(i.value).filter(([z]) => !D.includes(z)).map(([z, de]) => ({
|
|
4850
|
+
recordColumnName: z,
|
|
4851
4851
|
recordColumnValue: de,
|
|
4852
|
-
columnType: k(
|
|
4852
|
+
columnType: k(z)
|
|
4853
4853
|
}));
|
|
4854
|
-
}, T = async (
|
|
4854
|
+
}, T = async (D = {}) => {
|
|
4855
4855
|
try {
|
|
4856
4856
|
await u.value.validate(i.value, { abortEarly: !1 }), h({});
|
|
4857
|
-
} catch (
|
|
4858
|
-
const de =
|
|
4857
|
+
} catch (z) {
|
|
4858
|
+
const de = z.inner.reduce((ve, le) => (ve[le.path] || (ve[le.path] = { messages: [] }), ve[le.path].messages.push(...le.errors), ve), {}), ye = Object.entries(de).reduce((ve, [le, fe]) => (ve[le] = { messages: fe.messages }, ve), {});
|
|
4859
4859
|
h(ye);
|
|
4860
4860
|
return;
|
|
4861
4861
|
}
|
|
4862
|
-
const
|
|
4863
|
-
t ? await I(
|
|
4862
|
+
const A = { dataDefinitions: w() };
|
|
4863
|
+
t ? await I(A) : D.relationType == "MANY_TO_ONE" ? await $(D, A) : await S(A);
|
|
4864
4864
|
}, B = () => {
|
|
4865
4865
|
u.value = ii().shape(
|
|
4866
|
-
s.value.reduce((
|
|
4866
|
+
s.value.reduce((D, A) => (A.autoGenerated || (D[A.name] = ri().nullable(!1).test({
|
|
4867
4867
|
name: "custom-validation",
|
|
4868
|
-
test: function(
|
|
4868
|
+
test: function(z) {
|
|
4869
4869
|
const de = [];
|
|
4870
4870
|
let ye = "";
|
|
4871
|
-
if (
|
|
4872
|
-
if (
|
|
4873
|
-
ye = A
|
|
4874
|
-
let ve = j(
|
|
4871
|
+
if (A.required && (!z || z.trim() === ""))
|
|
4872
|
+
if (A.validations) {
|
|
4873
|
+
ye = P(A.validations, "VALIDATE_REQUIRED"), de.push(ye);
|
|
4874
|
+
let ve = j(A.validations, "VALIDATE_REQUIRED");
|
|
4875
4875
|
ve && (ve = "hint:" + ve, de.push(ve));
|
|
4876
4876
|
} else
|
|
4877
|
-
ye =
|
|
4877
|
+
ye = A.displayName + " is required.", de.push(ye);
|
|
4878
4878
|
else {
|
|
4879
|
-
if (
|
|
4880
|
-
if (
|
|
4881
|
-
ye = A
|
|
4882
|
-
let ve = j(
|
|
4879
|
+
if (A.maxLength && z.length > A.maxLength)
|
|
4880
|
+
if (A.validations) {
|
|
4881
|
+
ye = P(A.validations, "VALIDATE_MAXLENGTH"), de.push(ye);
|
|
4882
|
+
let ve = j(A.validations, "VALIDATE_MAXLENGTH");
|
|
4883
4883
|
ve && (ve = "hint:" + ve, de.push(ve));
|
|
4884
4884
|
} else
|
|
4885
|
-
ye =
|
|
4886
|
-
if (
|
|
4887
|
-
if (
|
|
4888
|
-
ye = A
|
|
4889
|
-
let ve = j(
|
|
4885
|
+
ye = A.displayName + " cannot exceed from " + A.maxLength + " characters", de.push(ye);
|
|
4886
|
+
if (A.regxId && !new RegExp(M(A.validations, "VALIDATE_REGX")).test(z))
|
|
4887
|
+
if (A.validations) {
|
|
4888
|
+
ye = P(A.validations, "VALIDATE_REGX"), de.push(ye);
|
|
4889
|
+
let ve = j(A.validations, "VALIDATE_REGX");
|
|
4890
4890
|
ve && (ve = "hint:" + ve, de.push(ve));
|
|
4891
4891
|
} else
|
|
4892
|
-
ye =
|
|
4892
|
+
ye = A.displayName + " invalid format.", de.push(ye);
|
|
4893
4893
|
}
|
|
4894
4894
|
return de.length > 0 ? this.createError({
|
|
4895
4895
|
message: de
|
|
4896
4896
|
// This will return the array of errors
|
|
4897
4897
|
}) : !0;
|
|
4898
4898
|
}
|
|
4899
|
-
})),
|
|
4899
|
+
})), D), {})
|
|
4900
4900
|
);
|
|
4901
|
-
},
|
|
4902
|
-
for (let
|
|
4903
|
-
if (
|
|
4904
|
-
return
|
|
4905
|
-
}, M = (
|
|
4906
|
-
for (let
|
|
4907
|
-
if (
|
|
4908
|
-
return
|
|
4909
|
-
}, j = (
|
|
4910
|
-
for (let
|
|
4911
|
-
if (
|
|
4912
|
-
return
|
|
4913
|
-
},
|
|
4914
|
-
h({ ...m.value, [
|
|
4915
|
-
},
|
|
4901
|
+
}, P = (D, A) => {
|
|
4902
|
+
for (let z = 0; z < D.length; z++)
|
|
4903
|
+
if (A == D[z].type)
|
|
4904
|
+
return D[z].message;
|
|
4905
|
+
}, M = (D, A) => {
|
|
4906
|
+
for (let z = 0; z < D.length; z++)
|
|
4907
|
+
if (A == D[z].type)
|
|
4908
|
+
return D[z].regx;
|
|
4909
|
+
}, j = (D, A) => {
|
|
4910
|
+
for (let z = 0; z < D.length; z++)
|
|
4911
|
+
if (A == D[z].type)
|
|
4912
|
+
return D[z].hint;
|
|
4913
|
+
}, ee = (D) => {
|
|
4914
|
+
h({ ...m.value, [D]: null }), d.value = !0;
|
|
4915
|
+
}, J = () => {
|
|
4916
4916
|
d.value = !1;
|
|
4917
|
-
for (let
|
|
4918
|
-
i.value.hasOwnProperty(
|
|
4917
|
+
for (let D in i.value)
|
|
4918
|
+
i.value.hasOwnProperty(D) && h({ ...m.value, [D]: null });
|
|
4919
4919
|
i.value = JSON.parse(JSON.stringify(a.value));
|
|
4920
|
-
},
|
|
4921
|
-
for (let
|
|
4922
|
-
const
|
|
4923
|
-
if (
|
|
4924
|
-
f.value =
|
|
4920
|
+
}, re = () => {
|
|
4921
|
+
for (let D = 0; D < s.value.length; D++) {
|
|
4922
|
+
const A = s.value[D];
|
|
4923
|
+
if (A.primaryKey && A.primaryKey == !0) {
|
|
4924
|
+
f.value = A;
|
|
4925
4925
|
break;
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
@@ -4934,12 +4934,12 @@ function ai(e, t, n) {
|
|
|
4934
4934
|
isDataChange: d,
|
|
4935
4935
|
linkedEntities: c,
|
|
4936
4936
|
primarayKeyColumn: f,
|
|
4937
|
-
clearErrors:
|
|
4937
|
+
clearErrors: ee,
|
|
4938
4938
|
saveRecord: T,
|
|
4939
4939
|
fetchAllRecords: g,
|
|
4940
4940
|
fetchRecord: y,
|
|
4941
4941
|
getRelatedEntityRecordById: C,
|
|
4942
|
-
cancleRecord:
|
|
4942
|
+
cancleRecord: J,
|
|
4943
4943
|
saveRelatedEntityRecord: _
|
|
4944
4944
|
};
|
|
4945
4945
|
}
|
|
@@ -4980,14 +4980,14 @@ const If = {
|
|
|
4980
4980
|
closable: !1,
|
|
4981
4981
|
severity: "error"
|
|
4982
4982
|
}, {
|
|
4983
|
-
default:
|
|
4983
|
+
default: te(() => [
|
|
4984
4984
|
Ge(X(s.message), 1)
|
|
4985
4985
|
]),
|
|
4986
4986
|
_: 2
|
|
4987
4987
|
}, 1024)
|
|
4988
4988
|
]))), 128))
|
|
4989
|
-
])) :
|
|
4990
|
-
])) :
|
|
4989
|
+
])) : N("", !0)
|
|
4990
|
+
])) : N("", !0);
|
|
4991
4991
|
};
|
|
4992
4992
|
}
|
|
4993
4993
|
}, Bf = { class: "field flex flex-col mb-3" }, Ff = ["for"], Rf = {
|
|
@@ -5064,12 +5064,12 @@ const If = {
|
|
|
5064
5064
|
placeholder: "Select " + e.relatedEntityColumn,
|
|
5065
5065
|
class: "w-full"
|
|
5066
5066
|
}, {
|
|
5067
|
-
value:
|
|
5067
|
+
value: te((S) => [
|
|
5068
5068
|
S.value ? (b(), x("div", Rf, [
|
|
5069
5069
|
v("div", null, X(S.value[e.relatedEntityColumn]), 1)
|
|
5070
5070
|
])) : (b(), x("span", Af, X(S.placeholder), 1))
|
|
5071
5071
|
]),
|
|
5072
|
-
option:
|
|
5072
|
+
option: te((S) => [
|
|
5073
5073
|
v("div", Pf, [
|
|
5074
5074
|
v("div", null, X(S.option[e.relatedEntityColumn]), 1)
|
|
5075
5075
|
])
|
|
@@ -5117,11 +5117,11 @@ const If = {
|
|
|
5117
5117
|
modal: !0,
|
|
5118
5118
|
class: "p-fluid"
|
|
5119
5119
|
}, {
|
|
5120
|
-
header:
|
|
5121
|
-
e.recordId ? (b(), x("span", Df, "Edit " + X(e.entityName) + " record details", 1)) :
|
|
5122
|
-
e.recordId ?
|
|
5120
|
+
header: te(() => [
|
|
5121
|
+
e.recordId ? (b(), x("span", Df, "Edit " + X(e.entityName) + " record details", 1)) : N("", !0),
|
|
5122
|
+
e.recordId ? N("", !0) : (b(), x("span", Nf, "Add " + X(e.entityName) + " record details", 1))
|
|
5123
5123
|
]),
|
|
5124
|
-
footer:
|
|
5124
|
+
footer: te(() => [
|
|
5125
5125
|
H(m, {
|
|
5126
5126
|
type: "button",
|
|
5127
5127
|
icon: "",
|
|
@@ -5137,7 +5137,7 @@ const If = {
|
|
|
5137
5137
|
onClick: p[1] || (p[1] = (g) => G(l)())
|
|
5138
5138
|
})
|
|
5139
5139
|
]),
|
|
5140
|
-
default:
|
|
5140
|
+
default: te(() => {
|
|
5141
5141
|
var g;
|
|
5142
5142
|
return [
|
|
5143
5143
|
(b(!0), x(ae, null, we(G(i), (y, C) => {
|
|
@@ -5150,7 +5150,7 @@ const If = {
|
|
|
5150
5150
|
column: y,
|
|
5151
5151
|
errors: (S = G(a)[y.name]) == null ? void 0 : S.messages,
|
|
5152
5152
|
onInput: G(u)
|
|
5153
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"])) :
|
|
5153
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"])) : N("", !0),
|
|
5154
5154
|
!y.autoGenerated && y.foreignKey ? (b(), V(dl, {
|
|
5155
5155
|
key: 1,
|
|
5156
5156
|
modelValue: G(r)[y.name],
|
|
@@ -5158,17 +5158,17 @@ const If = {
|
|
|
5158
5158
|
entityName: y.foreignKey.referencedEntityName,
|
|
5159
5159
|
columnName: y.name,
|
|
5160
5160
|
relatedEntityColumn: y.foreignKey.referencedColumnName
|
|
5161
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "entityName", "columnName", "relatedEntityColumn"])) :
|
|
5161
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "entityName", "columnName", "relatedEntityColumn"])) : N("", !0)
|
|
5162
5162
|
]);
|
|
5163
5163
|
}), 128)),
|
|
5164
5164
|
((g = G(s)) == null ? void 0 : g.length) > 0 ? (b(), V(cl, {
|
|
5165
5165
|
key: 0,
|
|
5166
5166
|
errors: G(s)
|
|
5167
|
-
}, null, 8, ["errors"])) :
|
|
5167
|
+
}, null, 8, ["errors"])) : N("", !0)
|
|
5168
5168
|
];
|
|
5169
5169
|
}),
|
|
5170
5170
|
_: 1
|
|
5171
|
-
}, 8, ["visible"])) :
|
|
5171
|
+
}, 8, ["visible"])) : N("", !0);
|
|
5172
5172
|
};
|
|
5173
5173
|
}
|
|
5174
5174
|
}, Vf = {
|
|
@@ -5206,7 +5206,7 @@ const If = {
|
|
|
5206
5206
|
header: "Confirm",
|
|
5207
5207
|
modal: !0
|
|
5208
5208
|
}, {
|
|
5209
|
-
footer:
|
|
5209
|
+
footer: te(() => [
|
|
5210
5210
|
H(u, {
|
|
5211
5211
|
label: "No",
|
|
5212
5212
|
icon: "pi pi-times",
|
|
@@ -5220,7 +5220,7 @@ const If = {
|
|
|
5220
5220
|
onClick: i
|
|
5221
5221
|
})
|
|
5222
5222
|
]),
|
|
5223
|
-
default:
|
|
5223
|
+
default: te(() => [
|
|
5224
5224
|
s[2] || (s[2] = v("div", { class: "flex items-center justify-center" }, [
|
|
5225
5225
|
v("i", {
|
|
5226
5226
|
class: "pi pi-exclamation-triangle mr-3",
|
|
@@ -5657,9 +5657,9 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5657
5657
|
setup(e) {
|
|
5658
5658
|
const t = tt(), n = e;
|
|
5659
5659
|
console.log("columnsToShow", n.columnsToShow);
|
|
5660
|
-
const o = Sn(), r = O(n.entityName || o.params.entityName), i = O({}), a = O(""), s = O(!1), u = O(!1), { items: l, headers: c, first: d, totalRecords: f, pageSize: p, loading: m, sortBy: h, sortDirection: g, operatorMap: y, filterToSend: C, primarayKeyColumn: S, fullTextSearch: $, listingResponse: I, onFullTextSearch: _, getDatatypeByField: E, getColumnDatatype: k, onSort: w, onPage: T, onFilter: B, fetchEntityFilterData:
|
|
5661
|
-
let
|
|
5662
|
-
const
|
|
5660
|
+
const o = Sn(), r = O(n.entityName || o.params.entityName), i = O({}), a = O(""), s = O(!1), u = O(!1), { items: l, headers: c, first: d, totalRecords: f, pageSize: p, loading: m, sortBy: h, sortDirection: g, operatorMap: y, filterToSend: C, primarayKeyColumn: S, fullTextSearch: $, listingResponse: I, onFullTextSearch: _, getDatatypeByField: E, getColumnDatatype: k, onSort: w, onPage: T, onFilter: B, fetchEntityFilterData: P, fetchEntityByName: M } = od(r.value), j = O();
|
|
5661
|
+
let ee = O(!1);
|
|
5662
|
+
const J = (le) => {
|
|
5663
5663
|
i.value = le.reduce((fe, ke) => {
|
|
5664
5664
|
if (!ke.filterable)
|
|
5665
5665
|
return fe;
|
|
@@ -5684,18 +5684,18 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5684
5684
|
}
|
|
5685
5685
|
return ke.datatype == "bool" || ke.datatype == "boolean" ? fe[ke.field] = { value: null, matchMode: In.EQUALS } : fe[ke.field] = { operator: Jf.AND, constraints: [{ value: null, matchMode: Ce }] }, fe;
|
|
5686
5686
|
}, {});
|
|
5687
|
-
},
|
|
5688
|
-
|
|
5689
|
-
},
|
|
5687
|
+
}, re = () => {
|
|
5688
|
+
J(c.value), C.value = ve(i.value), B();
|
|
5689
|
+
}, D = (le) => {
|
|
5690
5690
|
C.value = ve(i.value), B();
|
|
5691
|
-
},
|
|
5691
|
+
}, A = (le) => {
|
|
5692
5692
|
le ? a.value = le[S.value.name] : a.value = "", s.value = !s.value;
|
|
5693
|
-
},
|
|
5694
|
-
s.value = !1,
|
|
5693
|
+
}, z = () => {
|
|
5694
|
+
s.value = !1, P(!1);
|
|
5695
5695
|
}, de = (le) => {
|
|
5696
5696
|
a.value = le[S.value.name], u.value = !0;
|
|
5697
5697
|
}, ye = () => {
|
|
5698
|
-
u.value = !1,
|
|
5698
|
+
u.value = !1, P(!1);
|
|
5699
5699
|
}, ve = (le) => Object.keys(le).map((fe) => {
|
|
5700
5700
|
const ke = le[fe];
|
|
5701
5701
|
return ke.constraints ? ke.constraints.filter((Ce) => Ce.value !== null && Ce.value !== "").map((Ce) => ({
|
|
@@ -5718,9 +5718,9 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5718
5718
|
},
|
|
5719
5719
|
{ immediate: !0 }
|
|
5720
5720
|
), Ie(() => c.value, (le) => {
|
|
5721
|
-
!
|
|
5721
|
+
!ee.value && le && le.length && (J(le), ee.value = !0);
|
|
5722
5722
|
}, { immediate: !0 }), (le, fe) => {
|
|
5723
|
-
const ke = q("Button"), Ce = q("Toolbar"), ze = q("ProgressSpinner"), pt = q("InputIcon"), rt = q("IconField"), Ct = q("DatePicker"), gt = q("InputNumber"),
|
|
5723
|
+
const ke = q("Button"), Ce = q("Toolbar"), ze = q("ProgressSpinner"), pt = q("InputIcon"), rt = q("IconField"), Ct = q("DatePicker"), gt = q("InputNumber"), ne = q("Checkbox"), K = q("Column"), _e = q("DataTable");
|
|
5724
5724
|
return b(), x(ae, null, [
|
|
5725
5725
|
v("div", Vt(Dn(le.$attrs)), [
|
|
5726
5726
|
ue(le.$slots, "header"),
|
|
@@ -5730,14 +5730,14 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5730
5730
|
}, Er({ _: 2 }, [
|
|
5731
5731
|
e.showClearFilters ? {
|
|
5732
5732
|
name: "start",
|
|
5733
|
-
fn:
|
|
5733
|
+
fn: te(() => [
|
|
5734
5734
|
v("div", np, [
|
|
5735
5735
|
H(ke, {
|
|
5736
5736
|
type: "button",
|
|
5737
5737
|
icon: "pi pi-filter-slash",
|
|
5738
5738
|
label: "Clear",
|
|
5739
5739
|
severity: "warning",
|
|
5740
|
-
onClick: fe[0] || (fe[0] = (Re) =>
|
|
5740
|
+
onClick: fe[0] || (fe[0] = (Re) => re())
|
|
5741
5741
|
})
|
|
5742
5742
|
])
|
|
5743
5743
|
]),
|
|
@@ -5745,18 +5745,18 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5745
5745
|
} : void 0,
|
|
5746
5746
|
e.showAddButton ? {
|
|
5747
5747
|
name: "end",
|
|
5748
|
-
fn:
|
|
5748
|
+
fn: te(() => [
|
|
5749
5749
|
H(ke, {
|
|
5750
5750
|
label: "Add",
|
|
5751
5751
|
icon: "pi pi-plus",
|
|
5752
5752
|
class: "mr-2",
|
|
5753
5753
|
severity: "success",
|
|
5754
|
-
onClick: fe[1] || (fe[1] = (Re) =>
|
|
5754
|
+
onClick: fe[1] || (fe[1] = (Re) => A())
|
|
5755
5755
|
})
|
|
5756
5756
|
]),
|
|
5757
5757
|
key: "1"
|
|
5758
5758
|
} : void 0
|
|
5759
|
-
]), 1024)) :
|
|
5759
|
+
]), 1024)) : N("", !0),
|
|
5760
5760
|
H(_e, {
|
|
5761
5761
|
lazy: "",
|
|
5762
5762
|
value: G(l),
|
|
@@ -5780,24 +5780,24 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5780
5780
|
scrollHeight: "400px",
|
|
5781
5781
|
onSort: G(w),
|
|
5782
5782
|
onPage: G(T),
|
|
5783
|
-
onFilter: fe[6] || (fe[6] = (Re) =>
|
|
5783
|
+
onFilter: fe[6] || (fe[6] = (Re) => D()),
|
|
5784
5784
|
size: "large",
|
|
5785
5785
|
paginatorTemplate: "FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",
|
|
5786
5786
|
currentPageReportTemplate: "Showing {first} to {last} of {totalRecords} items"
|
|
5787
5787
|
}, {
|
|
5788
|
-
empty:
|
|
5788
|
+
empty: te(() => fe[9] || (fe[9] = [
|
|
5789
5789
|
Ge(" No data found. ")
|
|
5790
5790
|
])),
|
|
5791
|
-
loading:
|
|
5791
|
+
loading: te(() => [
|
|
5792
5792
|
H(ze)
|
|
5793
5793
|
]),
|
|
5794
|
-
header:
|
|
5794
|
+
header: te(() => [
|
|
5795
5795
|
v("div", op, [
|
|
5796
5796
|
H(rt, {
|
|
5797
5797
|
iconPosition: "left",
|
|
5798
5798
|
class: "block mt-2 md:mt-0"
|
|
5799
5799
|
}, {
|
|
5800
|
-
default:
|
|
5800
|
+
default: te(() => [
|
|
5801
5801
|
H(pt, {
|
|
5802
5802
|
class: "pi pi-search",
|
|
5803
5803
|
onClick: fe[2] || (fe[2] = (Re) => G(_)())
|
|
@@ -5814,7 +5814,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5814
5814
|
})
|
|
5815
5815
|
])
|
|
5816
5816
|
]),
|
|
5817
|
-
default:
|
|
5817
|
+
default: te(() => {
|
|
5818
5818
|
var Re;
|
|
5819
5819
|
return [
|
|
5820
5820
|
(b(!0), x(ae, null, we(G(c).filter((Be) => !n.columnsToShow || n.columnsToShow.length === 0 || n.columnsToShow.includes(Be.field)), (Be) => (b(), V(K, {
|
|
@@ -5827,7 +5827,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5827
5827
|
showFilterOperator: !1,
|
|
5828
5828
|
style: { "text-wrap": "nowrap" }
|
|
5829
5829
|
}, Er({
|
|
5830
|
-
body:
|
|
5830
|
+
body: te(({ data: Ae }) => [
|
|
5831
5831
|
H(li, {
|
|
5832
5832
|
column: Be,
|
|
5833
5833
|
value: Ae[Be.field]
|
|
@@ -5837,7 +5837,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5837
5837
|
}, [
|
|
5838
5838
|
Be.datatype.toLowerCase() === "date" && Be.filterable ? {
|
|
5839
5839
|
name: "filter",
|
|
5840
|
-
fn:
|
|
5840
|
+
fn: te(({ filterModel: Ae }) => [
|
|
5841
5841
|
H(Ct, {
|
|
5842
5842
|
modelValue: Ae.value,
|
|
5843
5843
|
"onUpdate:modelValue": (He) => Ae.value = He,
|
|
@@ -5848,7 +5848,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5848
5848
|
key: "0"
|
|
5849
5849
|
} : Be.datatype.toLowerCase() === "int" && Be.filterable ? {
|
|
5850
5850
|
name: "filter",
|
|
5851
|
-
fn:
|
|
5851
|
+
fn: te(({ filterModel: Ae }) => [
|
|
5852
5852
|
H(gt, {
|
|
5853
5853
|
modelValue: Ae.value,
|
|
5854
5854
|
"onUpdate:modelValue": (He) => Ae.value = He,
|
|
@@ -5858,8 +5858,8 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5858
5858
|
key: "1"
|
|
5859
5859
|
} : Be.datatype.toLowerCase() === "boolean" && Be.filterable ? {
|
|
5860
5860
|
name: "filter",
|
|
5861
|
-
fn:
|
|
5862
|
-
H(
|
|
5861
|
+
fn: te(({ filterModel: Ae }) => [
|
|
5862
|
+
H(ne, {
|
|
5863
5863
|
modelValue: Ae.value,
|
|
5864
5864
|
"onUpdate:modelValue": (He) => Ae.value = He,
|
|
5865
5865
|
indeterminate: Ae.value === null,
|
|
@@ -5869,7 +5869,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5869
5869
|
key: "2"
|
|
5870
5870
|
} : Be.filterable ? {
|
|
5871
5871
|
name: "filter",
|
|
5872
|
-
fn:
|
|
5872
|
+
fn: te(({ filterModel: Ae }) => [
|
|
5873
5873
|
H(G(gi), {
|
|
5874
5874
|
style: { width: "150px" },
|
|
5875
5875
|
type: "text",
|
|
@@ -5886,17 +5886,17 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5886
5886
|
key: 0,
|
|
5887
5887
|
header: "Actions"
|
|
5888
5888
|
}, {
|
|
5889
|
-
body:
|
|
5889
|
+
body: te(({ data: Be }) => [
|
|
5890
5890
|
v("div", rp, [
|
|
5891
5891
|
e.editable ? (b(), V(ke, {
|
|
5892
5892
|
key: 0,
|
|
5893
|
-
onClick: (Ae) =>
|
|
5893
|
+
onClick: (Ae) => A(Be),
|
|
5894
5894
|
icon: "pi pi-pencil",
|
|
5895
5895
|
severity: "success",
|
|
5896
5896
|
size: "",
|
|
5897
5897
|
rounded: "",
|
|
5898
5898
|
"aria-label": "Edit"
|
|
5899
|
-
}, null, 8, ["onClick"])) :
|
|
5899
|
+
}, null, 8, ["onClick"])) : N("", !0),
|
|
5900
5900
|
e.deleteable ? (b(), V(ke, {
|
|
5901
5901
|
key: 1,
|
|
5902
5902
|
onClick: (Ae) => de(Be),
|
|
@@ -5904,11 +5904,11 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5904
5904
|
severity: "danger",
|
|
5905
5905
|
rounded: "",
|
|
5906
5906
|
"aria-label": "Delete"
|
|
5907
|
-
}, null, 8, ["onClick"])) :
|
|
5907
|
+
}, null, 8, ["onClick"])) : N("", !0)
|
|
5908
5908
|
])
|
|
5909
5909
|
]),
|
|
5910
5910
|
_: 1
|
|
5911
|
-
})) :
|
|
5911
|
+
})) : N("", !0)
|
|
5912
5912
|
];
|
|
5913
5913
|
}),
|
|
5914
5914
|
_: 1
|
|
@@ -5921,8 +5921,8 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5921
5921
|
"onUpdate:showForm": fe[7] || (fe[7] = (Re) => s.value = Re),
|
|
5922
5922
|
entityName: G(I).entityName,
|
|
5923
5923
|
recordId: a.value,
|
|
5924
|
-
onOnSaveDialog:
|
|
5925
|
-
}, null, 8, ["showForm", "entityName", "recordId"])) :
|
|
5924
|
+
onOnSaveDialog: z
|
|
5925
|
+
}, null, 8, ["showForm", "entityName", "recordId"])) : N("", !0),
|
|
5926
5926
|
u.value ? (b(), V(Vf, {
|
|
5927
5927
|
key: 1,
|
|
5928
5928
|
showDeleteDialog: u.value,
|
|
@@ -5930,7 +5930,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5930
5930
|
entityName: G(I).entityName,
|
|
5931
5931
|
recordId: a.value,
|
|
5932
5932
|
onOnDeleteItem: ye
|
|
5933
|
-
}, null, 8, ["showDeleteDialog", "entityName", "recordId"])) :
|
|
5933
|
+
}, null, 8, ["showDeleteDialog", "entityName", "recordId"])) : N("", !0)
|
|
5934
5934
|
], 64);
|
|
5935
5935
|
};
|
|
5936
5936
|
}
|
|
@@ -5975,7 +5975,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5975
5975
|
size: "small",
|
|
5976
5976
|
style: { width: "55px", height: "25px", "border-radius": "5px", "font-size": "12px" }
|
|
5977
5977
|
}, {
|
|
5978
|
-
default:
|
|
5978
|
+
default: te(() => f[6] || (f[6] = [
|
|
5979
5979
|
Ge(" More")
|
|
5980
5980
|
])),
|
|
5981
5981
|
_: 1
|
|
@@ -5997,7 +5997,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
5997
5997
|
to: { name: "entity360view", params: { entityName: e.linkEntityListItem.entityName, id: e.linkEntityListItem.id, appId: n.value } },
|
|
5998
5998
|
target: "_blank"
|
|
5999
5999
|
}, {
|
|
6000
|
-
default:
|
|
6000
|
+
default: te(() => f[7] || (f[7] = [
|
|
6001
6001
|
v("div", { class: "pi pi-external-link ml-3" }, null, -1)
|
|
6002
6002
|
])),
|
|
6003
6003
|
_: 1
|
|
@@ -6086,9 +6086,9 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6086
6086
|
Ve(() => {
|
|
6087
6087
|
_();
|
|
6088
6088
|
});
|
|
6089
|
-
const I = (
|
|
6089
|
+
const I = (ne) => t.linkedEntity.list.some((K) => K[l.value.name] === ne), _ = async () => {
|
|
6090
6090
|
try {
|
|
6091
|
-
const
|
|
6091
|
+
const ne = {
|
|
6092
6092
|
sortBy: [c.value],
|
|
6093
6093
|
sortDirection: d.value === 1 ? "ASC" : "DESC",
|
|
6094
6094
|
pageSize: p.value,
|
|
@@ -6096,38 +6096,38 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6096
6096
|
columnList: null,
|
|
6097
6097
|
filter: y.value,
|
|
6098
6098
|
fullTextSearch: ""
|
|
6099
|
-
}, K = await o.searchEntityRecords(t.linkedEntity.entityName,
|
|
6099
|
+
}, K = await o.searchEntityRecords(t.linkedEntity.entityName, ne);
|
|
6100
6100
|
K && K.response && (r.value = K.response, s.value = K.response.entity.entityDefinition.columns, u.value = ze(K.response.entity.entityDefinition.columns), h.value = K.response.totalRecords, await E(), await k(), w());
|
|
6101
6101
|
} catch {
|
|
6102
6102
|
} finally {
|
|
6103
6103
|
}
|
|
6104
6104
|
}, E = async () => {
|
|
6105
|
-
for (let
|
|
6106
|
-
const K = s.value[
|
|
6105
|
+
for (let ne = 0; ne < s.value.length; ne++) {
|
|
6106
|
+
const K = s.value[ne];
|
|
6107
6107
|
!K.autoGeneerated && K.foreignKey && K.foreignKey.referencedEntityName.toLowerCase() == t.entity360Name.toLowerCase() && (a.value = K);
|
|
6108
6108
|
}
|
|
6109
6109
|
}, k = async () => {
|
|
6110
|
-
for (let
|
|
6111
|
-
const K = s.value[
|
|
6110
|
+
for (let ne = 0; ne < s.value.length; ne++) {
|
|
6111
|
+
const K = s.value[ne];
|
|
6112
6112
|
if (K.primaryKey && K.primaryKey == !0) {
|
|
6113
6113
|
l.value = K;
|
|
6114
6114
|
break;
|
|
6115
6115
|
}
|
|
6116
6116
|
}
|
|
6117
6117
|
}, w = () => {
|
|
6118
|
-
for (let
|
|
6119
|
-
const K = t.linkedEntity.list[
|
|
6118
|
+
for (let ne = 0; ne < t.linkedEntity.list.length; ne++) {
|
|
6119
|
+
const K = t.linkedEntity.list[ne];
|
|
6120
6120
|
K.is_deleted == !1 && K[a.value.name] == t.entity360Id && i.value.push(K[l.value.name]);
|
|
6121
6121
|
}
|
|
6122
6122
|
}, T = () => {
|
|
6123
|
-
let
|
|
6124
|
-
|
|
6123
|
+
let ne = JSON.parse(JSON.stringify(i.value));
|
|
6124
|
+
ne = ne.filter((_e) => !I(_e));
|
|
6125
6125
|
let K = {
|
|
6126
6126
|
linkEntityName: r.value.entityName,
|
|
6127
6127
|
linkRecordIdList: []
|
|
6128
6128
|
};
|
|
6129
|
-
for (let _e = 0; _e <
|
|
6130
|
-
const Re =
|
|
6129
|
+
for (let _e = 0; _e < ne.length; _e++) {
|
|
6130
|
+
const Re = ne[_e];
|
|
6131
6131
|
K.linkRecordIdList.push(
|
|
6132
6132
|
Re
|
|
6133
6133
|
);
|
|
@@ -6135,7 +6135,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6135
6135
|
t.saveExistingRelatedEntityRecord(K);
|
|
6136
6136
|
}, B = () => {
|
|
6137
6137
|
C.value = !C.value;
|
|
6138
|
-
},
|
|
6138
|
+
}, P = [
|
|
6139
6139
|
{ label: "Starts with", value: "startsWith" },
|
|
6140
6140
|
{ label: "Contains", value: "contains" },
|
|
6141
6141
|
{ label: "Not contains", value: "notContains" },
|
|
@@ -6152,25 +6152,25 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6152
6152
|
], j = [
|
|
6153
6153
|
{ label: "Equals", value: "equals" },
|
|
6154
6154
|
{ label: "Not equals", value: "notEquals" }
|
|
6155
|
-
],
|
|
6155
|
+
], ee = [
|
|
6156
6156
|
{ label: "Date is", value: "dateIs" },
|
|
6157
6157
|
{ label: "Date is not", value: "dateIsNot" },
|
|
6158
6158
|
{ label: "Date is before", value: "dateBefore" },
|
|
6159
6159
|
{ label: "Date is after", value: "dateAfter" }
|
|
6160
|
-
],
|
|
6160
|
+
], J = [
|
|
6161
6161
|
{ label: "ASC", value: 1 },
|
|
6162
6162
|
{ label: "DESC", value: -1 }
|
|
6163
6163
|
];
|
|
6164
|
-
let
|
|
6165
|
-
const
|
|
6164
|
+
let re = [];
|
|
6165
|
+
const D = Z(() => u.value.filter((ne) => ne.sortable)), A = Z(() => u.value.filter((ne) => ne.filterable)), z = (ne) => u.value.filter((K) => {
|
|
6166
6166
|
var _e;
|
|
6167
|
-
return K.filterable ? ((_e = f.value[
|
|
6167
|
+
return K.filterable ? ((_e = f.value[ne]) == null ? void 0 : _e.columnName) === K.name ? !0 : !f.value.some((Re, Be) => Be !== ne && Re.columnName === K.name) : !1;
|
|
6168
6168
|
}).map((K) => ({
|
|
6169
6169
|
label: K.name,
|
|
6170
6170
|
value: K.field
|
|
6171
|
-
})), de = (
|
|
6171
|
+
})), de = (ne) => {
|
|
6172
6172
|
let K = "";
|
|
6173
|
-
switch (rt(
|
|
6173
|
+
switch (rt(ne.columnName).toLowerCase()) {
|
|
6174
6174
|
case "string":
|
|
6175
6175
|
case "uuid":
|
|
6176
6176
|
K = "startsWith";
|
|
@@ -6188,52 +6188,52 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6188
6188
|
K = "equals";
|
|
6189
6189
|
break;
|
|
6190
6190
|
}
|
|
6191
|
-
|
|
6192
|
-
}, ye = (
|
|
6193
|
-
const K = rt(
|
|
6191
|
+
ne.operator = K, ne.value = "";
|
|
6192
|
+
}, ye = (ne) => {
|
|
6193
|
+
const K = rt(ne.columnName);
|
|
6194
6194
|
switch (K && K.toLowerCase()) {
|
|
6195
6195
|
case "integer":
|
|
6196
6196
|
case "int":
|
|
6197
6197
|
case "numeric":
|
|
6198
|
-
|
|
6198
|
+
re = M;
|
|
6199
6199
|
break;
|
|
6200
6200
|
case "date":
|
|
6201
|
-
|
|
6201
|
+
re = ee;
|
|
6202
6202
|
break;
|
|
6203
6203
|
case "bool":
|
|
6204
6204
|
case "boolean":
|
|
6205
|
-
|
|
6205
|
+
re = j;
|
|
6206
6206
|
break;
|
|
6207
6207
|
default:
|
|
6208
|
-
|
|
6208
|
+
re = P;
|
|
6209
6209
|
}
|
|
6210
|
-
return
|
|
6211
|
-
}, ve = (
|
|
6212
|
-
if (
|
|
6213
|
-
const K = rt(
|
|
6210
|
+
return re;
|
|
6211
|
+
}, ve = (ne) => {
|
|
6212
|
+
if (ne && ne.columnName) {
|
|
6213
|
+
const K = rt(ne.columnName);
|
|
6214
6214
|
return Ct(K);
|
|
6215
6215
|
} else return "";
|
|
6216
6216
|
}, le = () => {
|
|
6217
|
-
for (let
|
|
6218
|
-
const K = f.value[
|
|
6217
|
+
for (let ne = 0; ne < f.value.length; ne++) {
|
|
6218
|
+
const K = f.value[ne];
|
|
6219
6219
|
K.editing = !1;
|
|
6220
6220
|
}
|
|
6221
6221
|
f.value.push(
|
|
6222
6222
|
{ columnName: "", value: "", operator: "", editing: !0 }
|
|
6223
6223
|
);
|
|
6224
|
-
}, fe = (
|
|
6225
|
-
f.value.splice(
|
|
6226
|
-
}, ke = (
|
|
6227
|
-
|
|
6224
|
+
}, fe = (ne) => {
|
|
6225
|
+
f.value.splice(ne, 1);
|
|
6226
|
+
}, ke = (ne) => {
|
|
6227
|
+
ne.editing = !ne.editing;
|
|
6228
6228
|
}, Ce = () => {
|
|
6229
|
-
let
|
|
6229
|
+
let ne = JSON.parse(JSON.stringify(f.value));
|
|
6230
6230
|
y.value = [];
|
|
6231
|
-
for (let K = 0; K <
|
|
6232
|
-
const _e =
|
|
6231
|
+
for (let K = 0; K < ne.length; K++) {
|
|
6232
|
+
const _e = ne[K];
|
|
6233
6233
|
delete _e.editing, _e.columnName && _e.operator && _e.value && (_e.columnType = rt(_e.columnName), _e.operator = S[_e.operator], y.value.push(_e));
|
|
6234
6234
|
}
|
|
6235
6235
|
_();
|
|
6236
|
-
}, ze = (
|
|
6236
|
+
}, ze = (ne) => ne.map((K) => ({
|
|
6237
6237
|
field: K.name,
|
|
6238
6238
|
name: K.displayName ? K.displayName : K.name,
|
|
6239
6239
|
filterable: K.filterable,
|
|
@@ -6243,11 +6243,11 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6243
6243
|
displayFormat: K.displayFormat
|
|
6244
6244
|
})), pt = () => {
|
|
6245
6245
|
_();
|
|
6246
|
-
}, rt = (
|
|
6247
|
-
const K = u.value.find((_e) => _e.field ===
|
|
6246
|
+
}, rt = (ne) => {
|
|
6247
|
+
const K = u.value.find((_e) => _e.field === ne);
|
|
6248
6248
|
return K ? K.datatype : null;
|
|
6249
|
-
}, Ct = (
|
|
6250
|
-
switch (
|
|
6249
|
+
}, Ct = (ne) => {
|
|
6250
|
+
switch (ne.toLowerCase()) {
|
|
6251
6251
|
case "integer":
|
|
6252
6252
|
case "int":
|
|
6253
6253
|
case "numeric":
|
|
@@ -6260,17 +6260,17 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6260
6260
|
default:
|
|
6261
6261
|
return "text";
|
|
6262
6262
|
}
|
|
6263
|
-
}, gt = (
|
|
6264
|
-
p.value =
|
|
6263
|
+
}, gt = (ne) => {
|
|
6264
|
+
p.value = ne.rows, m.value = ne.page, g.value = ne.first, _();
|
|
6265
6265
|
};
|
|
6266
|
-
return (
|
|
6266
|
+
return (ne, K) => {
|
|
6267
6267
|
var Zt, fn;
|
|
6268
6268
|
const _e = q("InputIcon"), Re = q("InputText"), Be = q("IconField"), Ae = q("Select"), He = q("Divider"), st = q("InputNumber"), Rt = q("DatePicker"), Xe = q("Button"), lt = q("Checkbox"), bt = q("Paginator"), Qt = Gr("tooltip");
|
|
6269
6269
|
return b(), x(ae, null, [
|
|
6270
6270
|
v("div", up, [
|
|
6271
6271
|
v("div", cp, [
|
|
6272
6272
|
H(Be, { class: "block mt-2 md:mt-0 w-full" }, {
|
|
6273
|
-
default:
|
|
6273
|
+
default: te(() => [
|
|
6274
6274
|
H(_e, {
|
|
6275
6275
|
onClick: K[0] || (K[0] = () => {
|
|
6276
6276
|
}),
|
|
@@ -6291,8 +6291,8 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6291
6291
|
class: "flex items-center cursor-pointer sorting-filter-section flex-1 line-height-4",
|
|
6292
6292
|
onClick: K[2] || (K[2] = (pe) => B())
|
|
6293
6293
|
}, [
|
|
6294
|
-
C.value ?
|
|
6295
|
-
C.value ? (b(), x("div", pp)) :
|
|
6294
|
+
C.value ? N("", !0) : (b(), x("div", fp)),
|
|
6295
|
+
C.value ? (b(), x("div", pp)) : N("", !0),
|
|
6296
6296
|
K[9] || (K[9] = v("div", { class: "ml-3 font-bold" }, " Sorting & Filters ", -1))
|
|
6297
6297
|
])
|
|
6298
6298
|
]),
|
|
@@ -6303,12 +6303,12 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6303
6303
|
H(Ae, {
|
|
6304
6304
|
modelValue: c.value,
|
|
6305
6305
|
"onUpdate:modelValue": K[3] || (K[3] = (pe) => c.value = pe),
|
|
6306
|
-
options:
|
|
6306
|
+
options: D.value,
|
|
6307
6307
|
optionLabel: "name",
|
|
6308
6308
|
optionValue: "field",
|
|
6309
6309
|
highlightOnSelect: !1,
|
|
6310
6310
|
class: "w-full",
|
|
6311
|
-
onChange: K[4] || (K[4] = (pe) => pt(
|
|
6311
|
+
onChange: K[4] || (K[4] = (pe) => pt(ne.event))
|
|
6312
6312
|
}, null, 8, ["modelValue", "options"])
|
|
6313
6313
|
])
|
|
6314
6314
|
]),
|
|
@@ -6320,12 +6320,12 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6320
6320
|
H(Ae, {
|
|
6321
6321
|
modelValue: d.value,
|
|
6322
6322
|
"onUpdate:modelValue": K[5] || (K[5] = (pe) => d.value = pe),
|
|
6323
|
-
options:
|
|
6323
|
+
options: J,
|
|
6324
6324
|
optionLabel: "label",
|
|
6325
6325
|
optionValue: "value",
|
|
6326
6326
|
highlightOnSelect: !1,
|
|
6327
6327
|
class: "w-full",
|
|
6328
|
-
onChange: K[6] || (K[6] = (pe) => pt(
|
|
6328
|
+
onChange: K[6] || (K[6] = (pe) => pt(ne.event))
|
|
6329
6329
|
}, null, 8, ["modelValue"])
|
|
6330
6330
|
])
|
|
6331
6331
|
]),
|
|
@@ -6338,7 +6338,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6338
6338
|
H(Ae, {
|
|
6339
6339
|
modelValue: pe.columnName,
|
|
6340
6340
|
"onUpdate:modelValue": (Ke) => pe.columnName = Ke,
|
|
6341
|
-
options:
|
|
6341
|
+
options: z(Et),
|
|
6342
6342
|
optionLabel: "label",
|
|
6343
6343
|
placeholder: "Select column",
|
|
6344
6344
|
optionValue: "value",
|
|
@@ -6405,8 +6405,8 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6405
6405
|
onClick: (Ke) => fe(Et)
|
|
6406
6406
|
}, null, 8, ["onClick"])
|
|
6407
6407
|
])
|
|
6408
|
-
])) :
|
|
6409
|
-
pe.editing ?
|
|
6408
|
+
])) : N("", !0),
|
|
6409
|
+
pe.editing ? N("", !0) : (b(), x("div", Op, [
|
|
6410
6410
|
H(He),
|
|
6411
6411
|
v("div", Ip, [
|
|
6412
6412
|
v("span", null, [
|
|
@@ -6438,7 +6438,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6438
6438
|
H(Xe, {
|
|
6439
6439
|
style: { width: "100px" },
|
|
6440
6440
|
label: "Add",
|
|
6441
|
-
disabled:
|
|
6441
|
+
disabled: A.value.length === f.value.length,
|
|
6442
6442
|
icon: "",
|
|
6443
6443
|
severity: "success",
|
|
6444
6444
|
onClick: le
|
|
@@ -6451,7 +6451,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6451
6451
|
})
|
|
6452
6452
|
])
|
|
6453
6453
|
])
|
|
6454
|
-
])) :
|
|
6454
|
+
])) : N("", !0),
|
|
6455
6455
|
v("div", Fp, [
|
|
6456
6456
|
v("div", Rp, X((Zt = r.value) == null ? void 0 : Zt.totalRecords), 1),
|
|
6457
6457
|
v("div", Ap, X((fn = r.value) == null ? void 0 : fn.entityName), 1)
|
|
@@ -6475,7 +6475,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6475
6475
|
void 0,
|
|
6476
6476
|
{ left: !0 }
|
|
6477
6477
|
]
|
|
6478
|
-
]) :
|
|
6478
|
+
]) : N("", !0)
|
|
6479
6479
|
])
|
|
6480
6480
|
]))), 128)),
|
|
6481
6481
|
H(bt, {
|
|
@@ -6612,12 +6612,12 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6612
6612
|
placeholder: "Select " + p.value.name,
|
|
6613
6613
|
class: "w-full"
|
|
6614
6614
|
}, {
|
|
6615
|
-
value:
|
|
6615
|
+
value: te((T) => [
|
|
6616
6616
|
T.value ? (b(), x("div", Wp, [
|
|
6617
6617
|
v("div", null, X(T.value[p.value.name]), 1)
|
|
6618
6618
|
])) : (b(), x("span", Kp, X(T.placeholder), 1))
|
|
6619
6619
|
]),
|
|
6620
|
-
option:
|
|
6620
|
+
option: te((T) => [
|
|
6621
6621
|
v("div", qp, [
|
|
6622
6622
|
v("div", null, X(T.option[p.value.name]), 1)
|
|
6623
6623
|
])
|
|
@@ -6718,7 +6718,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6718
6718
|
const $ = q("Tab"), I = q("TabList"), _ = q("Divider"), E = q("Button"), k = q("TabPanel"), w = q("TabPanels"), T = q("Tabs"), B = q("Drawer");
|
|
6719
6719
|
return b(), V(B, {
|
|
6720
6720
|
visible: n.value,
|
|
6721
|
-
"onUpdate:visible": S[3] || (S[3] = (
|
|
6721
|
+
"onUpdate:visible": S[3] || (S[3] = (P) => n.value = P),
|
|
6722
6722
|
blockScroll: !0,
|
|
6723
6723
|
position: "right",
|
|
6724
6724
|
class: "p-fluid layout-profile-sidebar",
|
|
@@ -6727,22 +6727,22 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6727
6727
|
closeButton: "ml-auto"
|
|
6728
6728
|
}
|
|
6729
6729
|
}, {
|
|
6730
|
-
header:
|
|
6730
|
+
header: te(() => [
|
|
6731
6731
|
v("span", Zp, X(a.value) + " " + X(e.linkedEntity.entityName), 1)
|
|
6732
6732
|
]),
|
|
6733
|
-
default:
|
|
6733
|
+
default: te(() => [
|
|
6734
6734
|
H(T, { value: "1" }, {
|
|
6735
|
-
default:
|
|
6735
|
+
default: te(() => [
|
|
6736
6736
|
H(I, null, {
|
|
6737
|
-
default:
|
|
6737
|
+
default: te(() => [
|
|
6738
6738
|
H($, { value: "0" }, {
|
|
6739
|
-
default:
|
|
6739
|
+
default: te(() => S[4] || (S[4] = [
|
|
6740
6740
|
Ge("Create new")
|
|
6741
6741
|
])),
|
|
6742
6742
|
_: 1
|
|
6743
6743
|
}),
|
|
6744
6744
|
H($, { value: "1" }, {
|
|
6745
|
-
default:
|
|
6745
|
+
default: te(() => S[5] || (S[5] = [
|
|
6746
6746
|
Ge("Add existing")
|
|
6747
6747
|
])),
|
|
6748
6748
|
_: 1
|
|
@@ -6751,23 +6751,23 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6751
6751
|
_: 1
|
|
6752
6752
|
}),
|
|
6753
6753
|
H(w, null, {
|
|
6754
|
-
default:
|
|
6754
|
+
default: te(() => [
|
|
6755
6755
|
H(k, { value: "0" }, {
|
|
6756
|
-
default:
|
|
6757
|
-
(b(!0), x(ae, null, we(G(u), (
|
|
6756
|
+
default: te(() => [
|
|
6757
|
+
(b(!0), x(ae, null, we(G(u), (P, M) => {
|
|
6758
6758
|
var j;
|
|
6759
6759
|
return b(), x("div", {
|
|
6760
6760
|
key: M,
|
|
6761
6761
|
class: "mt-3"
|
|
6762
6762
|
}, [
|
|
6763
|
-
!
|
|
6763
|
+
!P.autoGenerated && !P.foreignKey ? (b(), V(er, {
|
|
6764
6764
|
key: 0,
|
|
6765
|
-
modelValue: G(s)[
|
|
6766
|
-
"onUpdate:modelValue": (
|
|
6767
|
-
column:
|
|
6768
|
-
errors: (j = G(l)[
|
|
6765
|
+
modelValue: G(s)[P.name],
|
|
6766
|
+
"onUpdate:modelValue": (ee) => G(s)[P.name] = ee,
|
|
6767
|
+
column: P,
|
|
6768
|
+
errors: (j = G(l)[P.name]) == null ? void 0 : j.messages,
|
|
6769
6769
|
onInput: G(d)
|
|
6770
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"])) :
|
|
6770
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"])) : N("", !0)
|
|
6771
6771
|
]);
|
|
6772
6772
|
}), 128)),
|
|
6773
6773
|
v("div", em, [
|
|
@@ -6778,7 +6778,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6778
6778
|
label: "Cancel",
|
|
6779
6779
|
icon: "",
|
|
6780
6780
|
severity: "secondary",
|
|
6781
|
-
onClick: S[0] || (S[0] = (
|
|
6781
|
+
onClick: S[0] || (S[0] = (P) => n.value = !1)
|
|
6782
6782
|
})
|
|
6783
6783
|
]),
|
|
6784
6784
|
v("div", om, [
|
|
@@ -6794,25 +6794,25 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6794
6794
|
_: 1
|
|
6795
6795
|
}),
|
|
6796
6796
|
H(k, { value: "1" }, {
|
|
6797
|
-
default:
|
|
6797
|
+
default: te(() => [
|
|
6798
6798
|
e.linkedEntity.relationType == "ONE_TO_MANY" ? (b(), V(Up, {
|
|
6799
6799
|
key: 0,
|
|
6800
6800
|
modelValue: n.value,
|
|
6801
|
-
"onUpdate:modelValue": S[1] || (S[1] = (
|
|
6801
|
+
"onUpdate:modelValue": S[1] || (S[1] = (P) => n.value = P),
|
|
6802
6802
|
linkedEntity: e.linkedEntity,
|
|
6803
6803
|
entity360Name: e.entity360Name,
|
|
6804
6804
|
entity360Id: e.entity360Id,
|
|
6805
6805
|
saveExistingRelatedEntityRecord: g
|
|
6806
|
-
}, null, 8, ["modelValue", "linkedEntity", "entity360Name", "entity360Id"])) :
|
|
6806
|
+
}, null, 8, ["modelValue", "linkedEntity", "entity360Name", "entity360Id"])) : N("", !0),
|
|
6807
6807
|
e.linkedEntity.relationType == "MANY_TO_ONE" ? (b(), V(Qp, {
|
|
6808
6808
|
key: 1,
|
|
6809
6809
|
modelValue: n.value,
|
|
6810
|
-
"onUpdate:modelValue": S[2] || (S[2] = (
|
|
6810
|
+
"onUpdate:modelValue": S[2] || (S[2] = (P) => n.value = P),
|
|
6811
6811
|
linkedEntity: e.linkedEntity,
|
|
6812
6812
|
entity360Name: e.entity360Name,
|
|
6813
6813
|
entity360Id: e.entity360Id,
|
|
6814
6814
|
saveExistingEntityObject: y
|
|
6815
|
-
}, null, 8, ["modelValue", "linkedEntity", "entity360Name", "entity360Id"])) :
|
|
6815
|
+
}, null, 8, ["modelValue", "linkedEntity", "entity360Name", "entity360Id"])) : N("", !0)
|
|
6816
6816
|
]),
|
|
6817
6817
|
_: 1
|
|
6818
6818
|
})
|
|
@@ -6862,7 +6862,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6862
6862
|
o.value = !o.value;
|
|
6863
6863
|
}, a = () => {
|
|
6864
6864
|
o.value = !1, t.onSaveRelatedEnttity();
|
|
6865
|
-
}, s =
|
|
6865
|
+
}, s = Z(() => t.linkedEntity.list.filter((u) => !u.is_deleted).length);
|
|
6866
6866
|
return (u, l) => {
|
|
6867
6867
|
const c = q("Button");
|
|
6868
6868
|
return b(), x(ae, null, [
|
|
@@ -6872,8 +6872,8 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6872
6872
|
class: "flex cursor-pointer items-center linked-entity-section grow line-height-4",
|
|
6873
6873
|
onClick: l[0] || (l[0] = (d) => r())
|
|
6874
6874
|
}, [
|
|
6875
|
-
n.value ?
|
|
6876
|
-
n.value ? (b(), x("div", um)) :
|
|
6875
|
+
n.value ? N("", !0) : (b(), x("div", lm)),
|
|
6876
|
+
n.value ? (b(), x("div", um)) : N("", !0),
|
|
6877
6877
|
v("div", cm, X(e.linkedEntity.entityName), 1),
|
|
6878
6878
|
v("div", dm, " (" + X(s.value) + ") ", 1)
|
|
6879
6879
|
]),
|
|
@@ -6891,12 +6891,12 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6891
6891
|
class: "flex flex-col",
|
|
6892
6892
|
key: f
|
|
6893
6893
|
}, [
|
|
6894
|
-
d.is_deleted ?
|
|
6894
|
+
d.is_deleted ? N("", !0) : (b(), V(lp, {
|
|
6895
6895
|
key: 0,
|
|
6896
6896
|
linkEntityListItem: d
|
|
6897
6897
|
}, null, 8, ["linkEntityListItem"]))
|
|
6898
6898
|
]))), 128))
|
|
6899
|
-
])) :
|
|
6899
|
+
])) : N("", !0)
|
|
6900
6900
|
]),
|
|
6901
6901
|
o.value ? (b(), V(im, {
|
|
6902
6902
|
key: 0,
|
|
@@ -6906,7 +6906,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6906
6906
|
entity360Name: e.entity360Name,
|
|
6907
6907
|
entity360Id: e.entity360Id,
|
|
6908
6908
|
onOnSaveDialog: a
|
|
6909
|
-
}, null, 8, ["showCreateRelatedEntityForm", "linkedEntity", "entity360Name", "entity360Id"])) :
|
|
6909
|
+
}, null, 8, ["showCreateRelatedEntityForm", "linkedEntity", "entity360Name", "entity360Id"])) : N("", !0)
|
|
6910
6910
|
], 64);
|
|
6911
6911
|
};
|
|
6912
6912
|
}
|
|
@@ -6948,9 +6948,9 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6948
6948
|
},
|
|
6949
6949
|
emits: ["onSaveDialog"],
|
|
6950
6950
|
setup(e, { expose: t, emit: n }) {
|
|
6951
|
-
var B,
|
|
6951
|
+
var B, P;
|
|
6952
6952
|
const o = tt(), r = Sn(), i = e, a = O(!0), s = O(!1), u = O([]);
|
|
6953
|
-
let l = (B = r == null ? void 0 : r.params) == null ? void 0 : B.entityName, c = (
|
|
6953
|
+
let l = (B = r == null ? void 0 : r.params) == null ? void 0 : B.entityName, c = (P = r == null ? void 0 : r.params) == null ? void 0 : P.id;
|
|
6954
6954
|
i.entityName && (l = i.entityName), i.recordId && (c = i.recordId);
|
|
6955
6955
|
const d = n, { formData: f, columns: p, errors: m, backendErrors: h, isDataChange: g, linkedEntities: y, primarayColumn: C, clearErrors: S, saveRecord: $, getRelatedEntityRecordById: I, cancleRecord: _ } = ai(l, c, d);
|
|
6956
6956
|
Ie(
|
|
@@ -6969,7 +6969,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6969
6969
|
}, T = (M) => {
|
|
6970
6970
|
if (!u.value || u.value.length === 0)
|
|
6971
6971
|
return [];
|
|
6972
|
-
const j = u.value.find((
|
|
6972
|
+
const j = u.value.find((ee) => ee.entityName === M);
|
|
6973
6973
|
return j && j.list ? j.list : (console.log("No related entity found"), []);
|
|
6974
6974
|
};
|
|
6975
6975
|
return t({
|
|
@@ -6982,7 +6982,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
6982
6982
|
{ immediate: !0, deep: !0 }
|
|
6983
6983
|
), (M, j) => {
|
|
6984
6984
|
var ve;
|
|
6985
|
-
const
|
|
6985
|
+
const ee = q("SplitterPanel"), J = q("Tab"), re = q("TabList"), D = q("TabPanel"), A = q("TabPanels"), z = q("Tabs"), de = q("Splitter"), ye = q("Button");
|
|
6986
6986
|
return M.$slots["list-item-display-360"] ? (b(), x("div", gm, [
|
|
6987
6987
|
ue(M.$slots, "header", {}, void 0, !0),
|
|
6988
6988
|
v("div", null, [
|
|
@@ -7007,27 +7007,27 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
7007
7007
|
gutterSize: 8,
|
|
7008
7008
|
size: 100
|
|
7009
7009
|
}, {
|
|
7010
|
-
default:
|
|
7011
|
-
H(
|
|
7010
|
+
default: te(() => [
|
|
7011
|
+
H(ee, {
|
|
7012
7012
|
size: 20,
|
|
7013
7013
|
minSize: 10,
|
|
7014
7014
|
maxSize: 20
|
|
7015
7015
|
}, {
|
|
7016
|
-
default:
|
|
7016
|
+
default: te(() => [
|
|
7017
7017
|
v("div", ym, [
|
|
7018
7018
|
v("div", {
|
|
7019
7019
|
onClick: j[0] || (j[0] = (le) => E()),
|
|
7020
7020
|
class: "section-heading cursor-pointer"
|
|
7021
7021
|
}, [
|
|
7022
|
-
a.value ?
|
|
7023
|
-
a.value ? (b(), x("i", wm)) :
|
|
7022
|
+
a.value ? N("", !0) : (b(), x("i", vm)),
|
|
7023
|
+
a.value ? (b(), x("i", wm)) : N("", !0),
|
|
7024
7024
|
v("span", km, " About this " + X(G(l)), 1)
|
|
7025
7025
|
]),
|
|
7026
7026
|
a.value ? (b(), x("div", xm, [
|
|
7027
7027
|
(b(!0), x(ae, null, we(G(p), (le, fe) => {
|
|
7028
7028
|
var ke;
|
|
7029
7029
|
return b(), x("div", { key: fe }, [
|
|
7030
|
-
le.autoGenerated ?
|
|
7030
|
+
le.autoGenerated ? N("", !0) : (b(), V(er, {
|
|
7031
7031
|
key: 0,
|
|
7032
7032
|
modelValue: G(f)[le.name],
|
|
7033
7033
|
"onUpdate:modelValue": (Ce) => G(f)[le.name] = Ce,
|
|
@@ -7037,29 +7037,29 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
7037
7037
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"]))
|
|
7038
7038
|
]);
|
|
7039
7039
|
}), 128))
|
|
7040
|
-
])) :
|
|
7040
|
+
])) : N("", !0)
|
|
7041
7041
|
])
|
|
7042
7042
|
]),
|
|
7043
7043
|
_: 1
|
|
7044
7044
|
}),
|
|
7045
|
-
H(
|
|
7045
|
+
H(ee, {
|
|
7046
7046
|
size: 55,
|
|
7047
7047
|
minSize: 35,
|
|
7048
7048
|
style: { height: "100%" }
|
|
7049
7049
|
}, {
|
|
7050
|
-
default:
|
|
7051
|
-
H(
|
|
7052
|
-
default:
|
|
7053
|
-
H(
|
|
7054
|
-
default:
|
|
7055
|
-
H(
|
|
7056
|
-
default:
|
|
7050
|
+
default: te(() => [
|
|
7051
|
+
H(z, { value: "0" }, {
|
|
7052
|
+
default: te(() => [
|
|
7053
|
+
H(re, null, {
|
|
7054
|
+
default: te(() => [
|
|
7055
|
+
H(J, { value: "0" }, {
|
|
7056
|
+
default: te(() => j[3] || (j[3] = [
|
|
7057
7057
|
Ge("Overview")
|
|
7058
7058
|
])),
|
|
7059
7059
|
_: 1
|
|
7060
7060
|
}),
|
|
7061
|
-
H(
|
|
7062
|
-
default:
|
|
7061
|
+
H(J, { value: "1" }, {
|
|
7062
|
+
default: te(() => j[4] || (j[4] = [
|
|
7063
7063
|
Ge("Activity")
|
|
7064
7064
|
])),
|
|
7065
7065
|
_: 1
|
|
@@ -7067,10 +7067,10 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
7067
7067
|
]),
|
|
7068
7068
|
_: 1
|
|
7069
7069
|
}),
|
|
7070
|
-
H(
|
|
7071
|
-
default:
|
|
7072
|
-
H(
|
|
7073
|
-
default:
|
|
7070
|
+
H(A, null, {
|
|
7071
|
+
default: te(() => [
|
|
7072
|
+
H(D, { value: "0" }, {
|
|
7073
|
+
default: te(() => [
|
|
7074
7074
|
v("div", Sm, [
|
|
7075
7075
|
j[5] || (j[5] = v("h3", { class: "mt-2 text-xl font-semibold" }, "Data highlights", -1)),
|
|
7076
7076
|
v("div", Cm, [
|
|
@@ -7093,7 +7093,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
7093
7093
|
]),
|
|
7094
7094
|
_: 1
|
|
7095
7095
|
}),
|
|
7096
|
-
H(
|
|
7096
|
+
H(D, { value: "1" })
|
|
7097
7097
|
]),
|
|
7098
7098
|
_: 1
|
|
7099
7099
|
})
|
|
@@ -7114,8 +7114,8 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
7114
7114
|
onClick: k,
|
|
7115
7115
|
"aria-label": "Filter",
|
|
7116
7116
|
style: { height: "2rem", width: "2rem", left: "-20px" }
|
|
7117
|
-
})) :
|
|
7118
|
-
s.value ?
|
|
7117
|
+
})) : N("", !0),
|
|
7118
|
+
s.value ? N("", !0) : (b(), V(ye, {
|
|
7119
7119
|
key: 1,
|
|
7120
7120
|
icon: "pi pi-caret-left",
|
|
7121
7121
|
rounded: "",
|
|
@@ -7132,8 +7132,8 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
7132
7132
|
onSaveRelatedEnttity: w
|
|
7133
7133
|
}, null, 8, ["entity360Name", "entity360Id", "linkedEntity"])
|
|
7134
7134
|
]))), 128))
|
|
7135
|
-
])) :
|
|
7136
|
-
])) :
|
|
7135
|
+
])) : N("", !0)
|
|
7136
|
+
])) : N("", !0)
|
|
7137
7137
|
]),
|
|
7138
7138
|
G(g) ? (b(), x("div", _m, [
|
|
7139
7139
|
v("div", Bm, [
|
|
@@ -7142,7 +7142,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
7142
7142
|
severity: "primary",
|
|
7143
7143
|
onClick: j[1] || (j[1] = (le) => G($)())
|
|
7144
7144
|
}, {
|
|
7145
|
-
default:
|
|
7145
|
+
default: te(() => j[6] || (j[6] = [
|
|
7146
7146
|
Ge("Save")
|
|
7147
7147
|
])),
|
|
7148
7148
|
_: 1
|
|
@@ -7152,7 +7152,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
7152
7152
|
severity: "secondary",
|
|
7153
7153
|
onClick: j[2] || (j[2] = (le) => G(_)())
|
|
7154
7154
|
}, {
|
|
7155
|
-
default:
|
|
7155
|
+
default: te(() => j[7] || (j[7] = [
|
|
7156
7156
|
Ge("Cancel")
|
|
7157
7157
|
])),
|
|
7158
7158
|
_: 1
|
|
@@ -7160,7 +7160,7 @@ const ep = { key: 0 }, tp = { key: 1 }, li = {
|
|
|
7160
7160
|
]),
|
|
7161
7161
|
v("div", Rm, " You've changed property in the " + X(G(l)) + ". ", 1)
|
|
7162
7162
|
])
|
|
7163
|
-
])) :
|
|
7163
|
+
])) : N("", !0)
|
|
7164
7164
|
], 64));
|
|
7165
7165
|
};
|
|
7166
7166
|
}
|
|
@@ -7245,19 +7245,19 @@ function ir() {
|
|
|
7245
7245
|
let w = "";
|
|
7246
7246
|
const T = E.entity.entityDefinition.columns;
|
|
7247
7247
|
for (let B = 0; B < T.length; B++) {
|
|
7248
|
-
let
|
|
7249
|
-
if (k ==
|
|
7250
|
-
w =
|
|
7248
|
+
let P = T[B];
|
|
7249
|
+
if (k == P.name) {
|
|
7250
|
+
w = P.type;
|
|
7251
7251
|
break;
|
|
7252
7252
|
}
|
|
7253
7253
|
}
|
|
7254
7254
|
return w;
|
|
7255
7255
|
}, h = (E, k) => {
|
|
7256
|
-
const T = E.entity.entityDefinition.columns.filter((
|
|
7257
|
-
return Object.entries(k).filter(([
|
|
7258
|
-
recordColumnName:
|
|
7256
|
+
const T = E.entity.entityDefinition.columns.filter((P) => P.autoGenerated).map((P) => P.name);
|
|
7257
|
+
return Object.entries(k).filter(([P]) => !T.includes(P)).map(([P, M]) => ({
|
|
7258
|
+
recordColumnName: P,
|
|
7259
7259
|
recordColumnValue: M,
|
|
7260
|
-
columnType: m(o.data,
|
|
7260
|
+
columnType: m(o.data, P)
|
|
7261
7261
|
}));
|
|
7262
7262
|
}, g = () => {
|
|
7263
7263
|
const E = o.data.entity.entityDefinition.columns;
|
|
@@ -7265,33 +7265,33 @@ function ir() {
|
|
|
7265
7265
|
E.reduce((w, T) => (T.autoGenerated || (w[T.name] = ri().nullable(!1).test({
|
|
7266
7266
|
name: "custom-validation",
|
|
7267
7267
|
test: function(B) {
|
|
7268
|
-
const
|
|
7268
|
+
const P = [];
|
|
7269
7269
|
let M = "";
|
|
7270
7270
|
if (T.required && (!B || B.trim() === ""))
|
|
7271
7271
|
if (T.validations) {
|
|
7272
|
-
M = y(T.validations, "VALIDATE_REQUIRED"),
|
|
7272
|
+
M = y(T.validations, "VALIDATE_REQUIRED"), P.push(M);
|
|
7273
7273
|
let j = S(T.validations, "VALIDATE_REQUIRED");
|
|
7274
|
-
j && (j = "hint:" + j,
|
|
7274
|
+
j && (j = "hint:" + j, P.push(j));
|
|
7275
7275
|
} else
|
|
7276
|
-
M = T.displayName + " is required.",
|
|
7276
|
+
M = T.displayName + " is required.", P.push(M);
|
|
7277
7277
|
else {
|
|
7278
7278
|
if (T.maxLength && B.length > T.maxLength)
|
|
7279
7279
|
if (T.validations) {
|
|
7280
|
-
M = y(T.validations, "VALIDATE_MAXLENGTH"),
|
|
7280
|
+
M = y(T.validations, "VALIDATE_MAXLENGTH"), P.push(M);
|
|
7281
7281
|
let j = S(T.validations, "VALIDATE_MAXLENGTH");
|
|
7282
|
-
j && (j = "hint:" + j,
|
|
7282
|
+
j && (j = "hint:" + j, P.push(j));
|
|
7283
7283
|
} else
|
|
7284
|
-
M = T.displayName + " cannot exceed from " + T.maxLength + " characters",
|
|
7284
|
+
M = T.displayName + " cannot exceed from " + T.maxLength + " characters", P.push(M);
|
|
7285
7285
|
if (T.regxId && !new RegExp(C(T.validations, "VALIDATE_REGX")).test(B))
|
|
7286
7286
|
if (T.validations) {
|
|
7287
|
-
M = y(T.validations, "VALIDATE_REGX"),
|
|
7287
|
+
M = y(T.validations, "VALIDATE_REGX"), P.push(M);
|
|
7288
7288
|
let j = S(T.validations, "VALIDATE_REGX");
|
|
7289
|
-
j && (j = "hint:" + j,
|
|
7289
|
+
j && (j = "hint:" + j, P.push(j));
|
|
7290
7290
|
} else
|
|
7291
|
-
M = T.displayName + " invalid format.",
|
|
7291
|
+
M = T.displayName + " invalid format.", P.push(M);
|
|
7292
7292
|
}
|
|
7293
|
-
return
|
|
7294
|
-
message:
|
|
7293
|
+
return P.length > 0 ? this.createError({
|
|
7294
|
+
message: P
|
|
7295
7295
|
// This will return the array of errors
|
|
7296
7296
|
}) : !0;
|
|
7297
7297
|
}
|
|
@@ -7331,7 +7331,7 @@ function ir() {
|
|
|
7331
7331
|
validate: !0
|
|
7332
7332
|
};
|
|
7333
7333
|
} catch (w) {
|
|
7334
|
-
const T = w.inner.reduce((M, j) => (M[j.path] || (M[j.path] = { messages: [] }), M[j.path].messages.push(...j.errors), M), {}), B = Object.entries(T).reduce((M, [j,
|
|
7334
|
+
const T = w.inner.reduce((M, j) => (M[j.path] || (M[j.path] = { messages: [] }), M[j.path].messages.push(...j.errors), M), {}), B = Object.entries(T).reduce((M, [j, ee]) => (M[j] = { messages: ee.messages }, M), {});
|
|
7335
7335
|
return n(B), {
|
|
7336
7336
|
validate: !1,
|
|
7337
7337
|
errors: t.value
|
|
@@ -7377,7 +7377,7 @@ const ar = {
|
|
|
7377
7377
|
header: "Confirm",
|
|
7378
7378
|
modal: !0
|
|
7379
7379
|
}, {
|
|
7380
|
-
footer:
|
|
7380
|
+
footer: te(() => [
|
|
7381
7381
|
H(s, {
|
|
7382
7382
|
label: "No",
|
|
7383
7383
|
icon: "pi pi-times",
|
|
@@ -7391,7 +7391,7 @@ const ar = {
|
|
|
7391
7391
|
onClick: a[1] || (a[1] = (l) => r(!0))
|
|
7392
7392
|
})
|
|
7393
7393
|
]),
|
|
7394
|
-
default:
|
|
7394
|
+
default: te(() => [
|
|
7395
7395
|
a[3] || (a[3] = v("div", { class: "flex items-center justify-center" }, [
|
|
7396
7396
|
v("i", {
|
|
7397
7397
|
class: "pi pi-exclamation-triangle mr-3",
|
|
@@ -7474,11 +7474,11 @@ const ar = {
|
|
|
7474
7474
|
modal: !0,
|
|
7475
7475
|
class: "p-fluid"
|
|
7476
7476
|
}, {
|
|
7477
|
-
header:
|
|
7478
|
-
e.item ? (b(), x("span", Vm, "Edit " + X(G(n).state.data.entityName) + " record details", 1)) :
|
|
7479
|
-
e.item ?
|
|
7477
|
+
header: te(() => [
|
|
7478
|
+
e.item ? (b(), x("span", Vm, "Edit " + X(G(n).state.data.entityName) + " record details", 1)) : N("", !0),
|
|
7479
|
+
e.item ? N("", !0) : (b(), x("span", zm, "Add " + X(G(n).state.data.entityName) + " record details", 1))
|
|
7480
7480
|
]),
|
|
7481
|
-
footer:
|
|
7481
|
+
footer: te(() => [
|
|
7482
7482
|
H(h, {
|
|
7483
7483
|
type: "button",
|
|
7484
7484
|
icon: "",
|
|
@@ -7494,7 +7494,7 @@ const ar = {
|
|
|
7494
7494
|
onClick: m[1] || (m[1] = (y) => d())
|
|
7495
7495
|
})
|
|
7496
7496
|
]),
|
|
7497
|
-
default:
|
|
7497
|
+
default: te(() => {
|
|
7498
7498
|
var y;
|
|
7499
7499
|
return [
|
|
7500
7500
|
(b(!0), x(ae, null, we(G(r), (C, S) => {
|
|
@@ -7507,7 +7507,7 @@ const ar = {
|
|
|
7507
7507
|
column: C,
|
|
7508
7508
|
errors: ($ = G(u)[C.name]) == null ? void 0 : $.messages,
|
|
7509
7509
|
onInput: f
|
|
7510
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors"])) :
|
|
7510
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors"])) : N("", !0),
|
|
7511
7511
|
!C.autoGenerated && C.foreignKey ? (b(), V(dl, {
|
|
7512
7512
|
key: 1,
|
|
7513
7513
|
modelValue: G(i)[C.name],
|
|
@@ -7515,17 +7515,17 @@ const ar = {
|
|
|
7515
7515
|
entityName: C.foreignKey.referencedEntityName,
|
|
7516
7516
|
columnName: C.name,
|
|
7517
7517
|
relatedEntityColumn: C.foreignKey.referencedColumnName
|
|
7518
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "entityName", "columnName", "relatedEntityColumn"])) :
|
|
7518
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "entityName", "columnName", "relatedEntityColumn"])) : N("", !0)
|
|
7519
7519
|
]);
|
|
7520
7520
|
}), 128)),
|
|
7521
7521
|
((y = G(a)) == null ? void 0 : y.length) > 0 ? (b(), V(cl, {
|
|
7522
7522
|
key: 0,
|
|
7523
7523
|
errors: G(a)
|
|
7524
|
-
}, null, 8, ["errors"])) :
|
|
7524
|
+
}, null, 8, ["errors"])) : N("", !0)
|
|
7525
7525
|
];
|
|
7526
7526
|
}),
|
|
7527
7527
|
_: 1
|
|
7528
|
-
}, 8, ["visible"])) :
|
|
7528
|
+
}, 8, ["visible"])) : N("", !0);
|
|
7529
7529
|
};
|
|
7530
7530
|
}
|
|
7531
7531
|
}, jm = { class: "flex justify-between items-start" }, Mm = { class: "flex-grow-1" }, Um = { class: "tile-grid" }, Hm = { class: "font-bold text-lg text-700" }, Wm = { class: "flex flex-col gap-2" }, Km = {
|
|
@@ -7602,13 +7602,13 @@ const ar = {
|
|
|
7602
7602
|
showEntityForm: i.value,
|
|
7603
7603
|
"onUpdate:showEntityForm": d[2] || (d[2] = (p) => i.value = p),
|
|
7604
7604
|
item: e.item
|
|
7605
|
-
}, null, 8, ["showEntityForm", "item"])) :
|
|
7605
|
+
}, null, 8, ["showEntityForm", "item"])) : N("", !0),
|
|
7606
7606
|
r.value ? (b(), V(ar, {
|
|
7607
7607
|
key: 1,
|
|
7608
7608
|
showDeleteDialog: r.value,
|
|
7609
7609
|
"onUpdate:showDeleteDialog": d[3] || (d[3] = (p) => r.value = p),
|
|
7610
7610
|
onOnDeleteItem: u
|
|
7611
|
-
}, null, 8, ["showDeleteDialog"])) :
|
|
7611
|
+
}, null, 8, ["showDeleteDialog"])) : N("", !0)
|
|
7612
7612
|
], 64);
|
|
7613
7613
|
};
|
|
7614
7614
|
}
|
|
@@ -7642,12 +7642,12 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
7642
7642
|
}, { immediate: !0 }), (o, r) => {
|
|
7643
7643
|
const i = q("Toolbar");
|
|
7644
7644
|
return b(), V(i, { class: "p-2 my-2" }, {
|
|
7645
|
-
start:
|
|
7645
|
+
start: te(() => [
|
|
7646
7646
|
v("div", Zm, [
|
|
7647
7647
|
v("h2", eh, "EntityName: " + X(G(n)), 1)
|
|
7648
7648
|
])
|
|
7649
7649
|
]),
|
|
7650
|
-
end:
|
|
7650
|
+
end: te(() => r[0] || (r[0] = [])),
|
|
7651
7651
|
_: 1
|
|
7652
7652
|
});
|
|
7653
7653
|
};
|
|
@@ -7720,13 +7720,13 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
7720
7720
|
{ label: "DESC", value: -1 }
|
|
7721
7721
|
];
|
|
7722
7722
|
let d = [];
|
|
7723
|
-
const f =
|
|
7723
|
+
const f = Z(() => {
|
|
7724
7724
|
var w;
|
|
7725
7725
|
const E = e.preFiltered ? ((w = e.preFiltered.match(/\b\w+(?==)/g)) == null ? void 0 : w.map((T) => T.trim().toLowerCase())) || [] : [];
|
|
7726
7726
|
return e.headers.filter((T) => T.sortable && !E.includes(T.field.toLowerCase()));
|
|
7727
|
-
}), p =
|
|
7727
|
+
}), p = Z(() => e.headers.filter((E) => E.filterable)), m = (E) => e.headers.filter((k) => {
|
|
7728
7728
|
var T, B;
|
|
7729
|
-
return k.filterable ? ((T = r.value[E]) == null ? void 0 : T.columnName) === k.name ? !0 : (e.preFiltered ? ((B = e.preFiltered.match(/\b\w+(?==)/g)) == null ? void 0 : B.map((
|
|
7729
|
+
return k.filterable ? ((T = r.value[E]) == null ? void 0 : T.columnName) === k.name ? !0 : (e.preFiltered ? ((B = e.preFiltered.match(/\b\w+(?==)/g)) == null ? void 0 : B.map((P) => P.trim().toLowerCase())) || [] : []).includes(k.field.toLowerCase()) ? !1 : !r.value.some((P, M) => M !== E && P.columnName === k.name) : !1;
|
|
7730
7730
|
}).map((k) => ({
|
|
7731
7731
|
label: k.name,
|
|
7732
7732
|
value: k.field
|
|
@@ -7798,10 +7798,10 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
7798
7798
|
e.sortCallback();
|
|
7799
7799
|
};
|
|
7800
7800
|
return (E, k) => {
|
|
7801
|
-
const w = q("Select"), T = q("Divider"), B = q("InputNumber"),
|
|
7802
|
-
return b(), V(
|
|
7801
|
+
const w = q("Select"), T = q("Divider"), B = q("InputNumber"), P = q("DatePicker"), M = q("InputText"), j = q("Button"), ee = q("Drawer");
|
|
7802
|
+
return b(), V(ee, {
|
|
7803
7803
|
visible: o.value,
|
|
7804
|
-
"onUpdate:visible": k[4] || (k[4] = (
|
|
7804
|
+
"onUpdate:visible": k[4] || (k[4] = (J) => o.value = J),
|
|
7805
7805
|
header: "Sorting and Filter",
|
|
7806
7806
|
blockScroll: !0,
|
|
7807
7807
|
position: "right",
|
|
@@ -7810,19 +7810,19 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
7810
7810
|
closeButton: "ml-auto"
|
|
7811
7811
|
}
|
|
7812
7812
|
}, {
|
|
7813
|
-
default:
|
|
7813
|
+
default: te(() => [
|
|
7814
7814
|
v("div", nh, [
|
|
7815
7815
|
k[5] || (k[5] = v("div", { class: "col-12 font-bold" }, "Sort Column", -1)),
|
|
7816
7816
|
v("div", oh, [
|
|
7817
7817
|
H(w, {
|
|
7818
7818
|
modelValue: t.value,
|
|
7819
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
7819
|
+
"onUpdate:modelValue": k[0] || (k[0] = (J) => t.value = J),
|
|
7820
7820
|
options: f.value,
|
|
7821
7821
|
optionLabel: "name",
|
|
7822
7822
|
optionValue: "field",
|
|
7823
7823
|
highlightOnSelect: !1,
|
|
7824
7824
|
class: "w-full",
|
|
7825
|
-
onChange: k[1] || (k[1] = (
|
|
7825
|
+
onChange: k[1] || (k[1] = (J) => _(E.event))
|
|
7826
7826
|
}, null, 8, ["modelValue", "options"])
|
|
7827
7827
|
])
|
|
7828
7828
|
]),
|
|
@@ -7833,32 +7833,32 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
7833
7833
|
v("div", ih, [
|
|
7834
7834
|
H(w, {
|
|
7835
7835
|
modelValue: n.value,
|
|
7836
|
-
"onUpdate:modelValue": k[2] || (k[2] = (
|
|
7836
|
+
"onUpdate:modelValue": k[2] || (k[2] = (J) => n.value = J),
|
|
7837
7837
|
options: c,
|
|
7838
7838
|
optionLabel: "label",
|
|
7839
7839
|
optionValue: "value",
|
|
7840
7840
|
highlightOnSelect: !1,
|
|
7841
7841
|
class: "w-full",
|
|
7842
|
-
onChange: k[3] || (k[3] = (
|
|
7842
|
+
onChange: k[3] || (k[3] = (J) => _(E.event))
|
|
7843
7843
|
}, null, 8, ["modelValue"])
|
|
7844
7844
|
])
|
|
7845
7845
|
]),
|
|
7846
|
-
(b(!0), x(ae, null, we(r.value, (
|
|
7847
|
-
|
|
7846
|
+
(b(!0), x(ae, null, we(r.value, (J, re) => (b(), x("div", { key: re }, [
|
|
7847
|
+
J.editing ? (b(), x("div", ah, [
|
|
7848
7848
|
H(T),
|
|
7849
7849
|
v("div", sh, [
|
|
7850
7850
|
k[7] || (k[7] = v("div", { class: "col-12 font-bold" }, "Filter Column", -1)),
|
|
7851
7851
|
v("div", lh, [
|
|
7852
7852
|
H(w, {
|
|
7853
|
-
modelValue:
|
|
7854
|
-
"onUpdate:modelValue": (
|
|
7855
|
-
options: m(
|
|
7853
|
+
modelValue: J.columnName,
|
|
7854
|
+
"onUpdate:modelValue": (D) => J.columnName = D,
|
|
7855
|
+
options: m(re),
|
|
7856
7856
|
optionLabel: "label",
|
|
7857
7857
|
placeholder: "Select column",
|
|
7858
7858
|
optionValue: "value",
|
|
7859
7859
|
highlightOnSelect: !1,
|
|
7860
7860
|
class: "w-full",
|
|
7861
|
-
onChange: (
|
|
7861
|
+
onChange: (D) => h(J)
|
|
7862
7862
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange"])
|
|
7863
7863
|
])
|
|
7864
7864
|
]),
|
|
@@ -7866,9 +7866,9 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
7866
7866
|
k[8] || (k[8] = v("div", { class: "col-12 font-bold" }, "Filter Operator", -1)),
|
|
7867
7867
|
v("div", ch, [
|
|
7868
7868
|
H(w, {
|
|
7869
|
-
modelValue:
|
|
7870
|
-
"onUpdate:modelValue": (
|
|
7871
|
-
options: g(
|
|
7869
|
+
modelValue: J.operator,
|
|
7870
|
+
"onUpdate:modelValue": (D) => J.operator = D,
|
|
7871
|
+
options: g(J),
|
|
7872
7872
|
optionLabel: "label",
|
|
7873
7873
|
placeholder: "Select operator",
|
|
7874
7874
|
optionValue: "value",
|
|
@@ -7880,24 +7880,24 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
7880
7880
|
v("div", dh, [
|
|
7881
7881
|
k[9] || (k[9] = v("div", { class: "col-12 font-bold" }, "Filter value", -1)),
|
|
7882
7882
|
v("div", fh, [
|
|
7883
|
-
y(
|
|
7883
|
+
y(J) == "numeric" ? (b(), V(B, {
|
|
7884
7884
|
key: 0,
|
|
7885
7885
|
format: !1,
|
|
7886
7886
|
class: "w-full",
|
|
7887
|
-
modelValue:
|
|
7888
|
-
"onUpdate:modelValue": (
|
|
7887
|
+
modelValue: J.value,
|
|
7888
|
+
"onUpdate:modelValue": (D) => J.value = D,
|
|
7889
7889
|
placeholder: "Search value"
|
|
7890
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : y(
|
|
7890
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : y(J) == "date" ? (b(), V(P, {
|
|
7891
7891
|
key: 1,
|
|
7892
7892
|
class: "w-full",
|
|
7893
|
-
modelValue:
|
|
7894
|
-
"onUpdate:modelValue": (
|
|
7893
|
+
modelValue: J.value,
|
|
7894
|
+
"onUpdate:modelValue": (D) => J.value = D,
|
|
7895
7895
|
dateFormat: "mm/dd/yy",
|
|
7896
7896
|
placeholder: "mm/dd/yyyy"
|
|
7897
7897
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])) : (b(), V(M, {
|
|
7898
7898
|
key: 2,
|
|
7899
|
-
modelValue:
|
|
7900
|
-
"onUpdate:modelValue": (
|
|
7899
|
+
modelValue: J.value,
|
|
7900
|
+
"onUpdate:modelValue": (D) => J.value = D,
|
|
7901
7901
|
class: "w-full",
|
|
7902
7902
|
placeholder: "Search value"
|
|
7903
7903
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
@@ -7908,37 +7908,37 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
7908
7908
|
label: "Hide",
|
|
7909
7909
|
icon: "",
|
|
7910
7910
|
severity: "warn",
|
|
7911
|
-
onClick: (
|
|
7911
|
+
onClick: (D) => $(J)
|
|
7912
7912
|
}, null, 8, ["onClick"]),
|
|
7913
7913
|
H(j, {
|
|
7914
7914
|
label: "Delete",
|
|
7915
7915
|
icon: "",
|
|
7916
7916
|
severity: "danger",
|
|
7917
|
-
onClick: (
|
|
7917
|
+
onClick: (D) => S(re)
|
|
7918
7918
|
}, null, 8, ["onClick"])
|
|
7919
7919
|
])
|
|
7920
|
-
])) :
|
|
7921
|
-
|
|
7920
|
+
])) : N("", !0),
|
|
7921
|
+
J.editing ? N("", !0) : (b(), x("div", mh, [
|
|
7922
7922
|
H(T),
|
|
7923
7923
|
v("div", hh, [
|
|
7924
7924
|
v("span", null, [
|
|
7925
|
-
|
|
7925
|
+
J.columnName || J.operator || J.value ? (b(), x(ae, { key: 0 }, [
|
|
7926
7926
|
v("span", {
|
|
7927
|
-
class: Ne({ "text-red-500": !
|
|
7928
|
-
}, X(
|
|
7927
|
+
class: Ne({ "text-red-500": !J.columnName })
|
|
7928
|
+
}, X(J.columnName ? " " + J.columnName : " column"), 3),
|
|
7929
7929
|
v("span", {
|
|
7930
|
-
class: Ne({ "text-red-500": !i[
|
|
7931
|
-
}, X(
|
|
7930
|
+
class: Ne({ "text-red-500": !i[J.operator] })
|
|
7931
|
+
}, X(J.operator ? " " + i[J.operator] : " operator"), 3),
|
|
7932
7932
|
v("span", {
|
|
7933
|
-
class: Ne({ "text-red-500": !
|
|
7934
|
-
}, X(
|
|
7933
|
+
class: Ne({ "text-red-500": !J.value })
|
|
7934
|
+
}, X(J.value ? " " + J.value : " value"), 3)
|
|
7935
7935
|
], 64)) : (b(), x("span", gh, "Filter is empty"))
|
|
7936
7936
|
]),
|
|
7937
7937
|
H(j, {
|
|
7938
7938
|
label: "Edit",
|
|
7939
7939
|
icon: "",
|
|
7940
7940
|
severity: "info",
|
|
7941
|
-
onClick: (
|
|
7941
|
+
onClick: (D) => $(J)
|
|
7942
7942
|
}, null, 8, ["onClick"])
|
|
7943
7943
|
])
|
|
7944
7944
|
]))
|
|
@@ -8030,7 +8030,7 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
8030
8030
|
var w;
|
|
8031
8031
|
o.value = [], r.value = [];
|
|
8032
8032
|
const k = ((w = d.preFiltered) == null ? void 0 : w.split("&&").map((T) => {
|
|
8033
|
-
const [B,
|
|
8033
|
+
const [B, P] = T.split("=").map((j) => j.trim()), M = f == null ? void 0 : f(P);
|
|
8034
8034
|
return {
|
|
8035
8035
|
columnName: B,
|
|
8036
8036
|
value: M,
|
|
@@ -8068,17 +8068,17 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
8068
8068
|
return w ? w.type : null;
|
|
8069
8069
|
};
|
|
8070
8070
|
return (k, w) => {
|
|
8071
|
-
const T = q("Button"), B = q("InputIcon"),
|
|
8071
|
+
const T = q("Button"), B = q("InputIcon"), P = q("InputText"), M = q("IconField"), j = q("Toolbar");
|
|
8072
8072
|
return b(), x(ae, null, [
|
|
8073
8073
|
H(j, { class: "p-2 my-2 border-none" }, {
|
|
8074
|
-
start:
|
|
8074
|
+
start: te(() => [
|
|
8075
8075
|
v("div", wh, [
|
|
8076
8076
|
H(T, {
|
|
8077
8077
|
type: "button",
|
|
8078
8078
|
size: "medium",
|
|
8079
8079
|
icon: "pi pi-filter",
|
|
8080
8080
|
severity: "info",
|
|
8081
|
-
onClick: w[0] || (w[0] = (
|
|
8081
|
+
onClick: w[0] || (w[0] = (ee) => h())
|
|
8082
8082
|
})
|
|
8083
8083
|
]),
|
|
8084
8084
|
H(T, {
|
|
@@ -8087,24 +8087,24 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
8087
8087
|
type: "button",
|
|
8088
8088
|
icon: "pi pi-filter-slash",
|
|
8089
8089
|
severity: "warn",
|
|
8090
|
-
onClick: w[1] || (w[1] = (
|
|
8090
|
+
onClick: w[1] || (w[1] = (ee) => S())
|
|
8091
8091
|
})
|
|
8092
8092
|
]),
|
|
8093
|
-
end:
|
|
8093
|
+
end: te(() => [
|
|
8094
8094
|
H(M, {
|
|
8095
8095
|
iconPosition: "right",
|
|
8096
8096
|
class: "block mt-2 md:mt-0"
|
|
8097
8097
|
}, {
|
|
8098
|
-
default:
|
|
8098
|
+
default: te(() => [
|
|
8099
8099
|
H(B, {
|
|
8100
|
-
onClick: w[2] || (w[2] = (
|
|
8100
|
+
onClick: w[2] || (w[2] = (ee) => $()),
|
|
8101
8101
|
class: "pi pi-search"
|
|
8102
8102
|
}),
|
|
8103
|
-
H(
|
|
8103
|
+
H(P, {
|
|
8104
8104
|
class: "w-full sm:w-auto",
|
|
8105
|
-
onKeyup: w[3] || (w[3] = qr((
|
|
8105
|
+
onKeyup: w[3] || (w[3] = qr((ee) => $(), ["enter"])),
|
|
8106
8106
|
modelValue: s.value,
|
|
8107
|
-
"onUpdate:modelValue": w[4] || (w[4] = (
|
|
8107
|
+
"onUpdate:modelValue": w[4] || (w[4] = (ee) => s.value = ee),
|
|
8108
8108
|
placeholder: "Search..."
|
|
8109
8109
|
}, null, 8, ["modelValue"])
|
|
8110
8110
|
]),
|
|
@@ -8115,13 +8115,13 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
8115
8115
|
}),
|
|
8116
8116
|
H(vh, {
|
|
8117
8117
|
sortBy: i.value,
|
|
8118
|
-
"onUpdate:sortBy": w[5] || (w[5] = (
|
|
8118
|
+
"onUpdate:sortBy": w[5] || (w[5] = (ee) => i.value = ee),
|
|
8119
8119
|
sortDirection: a.value,
|
|
8120
|
-
"onUpdate:sortDirection": w[6] || (w[6] = (
|
|
8120
|
+
"onUpdate:sortDirection": w[6] || (w[6] = (ee) => a.value = ee),
|
|
8121
8121
|
showFilter: n.value,
|
|
8122
|
-
"onUpdate:showFilter": w[7] || (w[7] = (
|
|
8122
|
+
"onUpdate:showFilter": w[7] || (w[7] = (ee) => n.value = ee),
|
|
8123
8123
|
filters: o.value,
|
|
8124
|
-
"onUpdate:filters": w[8] || (w[8] = (
|
|
8124
|
+
"onUpdate:filters": w[8] || (w[8] = (ee) => o.value = ee),
|
|
8125
8125
|
headers: l.value,
|
|
8126
8126
|
operatorMap: p,
|
|
8127
8127
|
sortCallback: C,
|
|
@@ -8192,7 +8192,7 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
8192
8192
|
key: 0,
|
|
8193
8193
|
showEntityForm: t.value,
|
|
8194
8194
|
"onUpdate:showEntityForm": r[1] || (r[1] = (a) => t.value = a)
|
|
8195
|
-
}, null, 8, ["showEntityForm"])) :
|
|
8195
|
+
}, null, 8, ["showEntityForm"])) : N("", !0)
|
|
8196
8196
|
], 64);
|
|
8197
8197
|
};
|
|
8198
8198
|
}
|
|
@@ -8236,13 +8236,13 @@ const Qm = /* @__PURE__ */ Qe(Xm, [["render", Jm]]), Zm = { class: "my-2" }, eh
|
|
|
8236
8236
|
), (a, s) => {
|
|
8237
8237
|
var u, l, c;
|
|
8238
8238
|
return a.$slots["list-item-display"] ? (b(), x(ae, { key: 0 }, [
|
|
8239
|
-
e.showAddButton ? (b(), V(St, { key: 0 })) :
|
|
8240
|
-
e.listFilerSlot ? (b(), V(Oe(e.listFilter || xt), { key: 1 })) :
|
|
8239
|
+
e.showAddButton ? (b(), V(St, { key: 0 })) : N("", !0),
|
|
8240
|
+
e.listFilerSlot ? (b(), V(Oe(e.listFilter || xt), { key: 1 })) : N("", !0),
|
|
8241
8241
|
(b(!0), x(ae, null, we(((c = (l = (u = G(n)) == null ? void 0 : u.state) == null ? void 0 : l.data) == null ? void 0 : c.result) || [], (d) => ue(a.$slots, "list-item-display", { item: d })), 256))
|
|
8242
8242
|
], 64)) : (b(), x(ae, { key: 1 }, [
|
|
8243
8243
|
(b(), V(Oe(e.listHeader || th))),
|
|
8244
8244
|
(b(), V(Oe(e.listFilter || xt))),
|
|
8245
|
-
e.showAddButton ? (b(), V(St, { key: 0 })) :
|
|
8245
|
+
e.showAddButton ? (b(), V(St, { key: 0 })) : N("", !0),
|
|
8246
8246
|
(b(), V(Oe(e.listDisplay || Ym), Vt(Dn({ listItemDisplay: e.listItemDisplay })), null, 16)),
|
|
8247
8247
|
(b(), V(Oe(e.listPagination || Nt))),
|
|
8248
8248
|
(b(), V(Oe(e.listFooter || Qm)))
|
|
@@ -8424,7 +8424,7 @@ const Ch = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
8424
8424
|
severity: "success",
|
|
8425
8425
|
rounded: "",
|
|
8426
8426
|
"aria-label": "Edit"
|
|
8427
|
-
})) :
|
|
8427
|
+
})) : N("", !0),
|
|
8428
8428
|
e.deletable ? (b(), V(h, {
|
|
8429
8429
|
key: 1,
|
|
8430
8430
|
onClick: m[1] || (m[1] = (g) => l()),
|
|
@@ -8432,7 +8432,7 @@ const Ch = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
8432
8432
|
severity: "danger",
|
|
8433
8433
|
rounded: "",
|
|
8434
8434
|
"aria-label": "Delete"
|
|
8435
|
-
})) :
|
|
8435
|
+
})) : N("", !0)
|
|
8436
8436
|
])
|
|
8437
8437
|
])
|
|
8438
8438
|
], 2),
|
|
@@ -8441,13 +8441,13 @@ const Ch = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
8441
8441
|
showEntityForm: s.value,
|
|
8442
8442
|
"onUpdate:showEntityForm": m[2] || (m[2] = (g) => s.value = g),
|
|
8443
8443
|
item: e.item
|
|
8444
|
-
}, null, 8, ["showEntityForm", "item"])) :
|
|
8444
|
+
}, null, 8, ["showEntityForm", "item"])) : N("", !0),
|
|
8445
8445
|
a.value ? (b(), V(ar, {
|
|
8446
8446
|
key: 1,
|
|
8447
8447
|
showDeleteDialog: a.value,
|
|
8448
8448
|
"onUpdate:showDeleteDialog": m[3] || (m[3] = (g) => a.value = g),
|
|
8449
8449
|
onOnDeleteItem: d
|
|
8450
|
-
}, null, 8, ["showDeleteDialog"])) :
|
|
8450
|
+
}, null, 8, ["showDeleteDialog"])) : N("", !0)
|
|
8451
8451
|
], 64);
|
|
8452
8452
|
};
|
|
8453
8453
|
}
|
|
@@ -8794,58 +8794,58 @@ Vn({
|
|
|
8794
8794
|
],
|
|
8795
8795
|
setup(e, { slots: t, emit: n, expose: o }) {
|
|
8796
8796
|
var r;
|
|
8797
|
-
const i = Fh(n), a = i.getSlides(), s =
|
|
8797
|
+
const i = Fh(n), a = i.getSlides(), s = Z(() => a.length), u = O(null), l = O(null), c = O(0), d = Z(() => Object.assign(Object.assign(Object.assign({}, qe), Ph(e, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, qe.i18n), e.i18n) })), f = $r(Object.assign({}, d.value)), p = O((r = e.modelValue) !== null && r !== void 0 ? r : 0), m = O(p.value);
|
|
8798
8798
|
Ie(p, (U) => m.value = U);
|
|
8799
|
-
const h = O(0), g =
|
|
8799
|
+
const h = O(0), g = Z(() => Math.ceil((s.value - 1) / 2)), y = Z(() => s.value - 1), C = Z(() => 0);
|
|
8800
8800
|
let S = null, $ = null, I = null;
|
|
8801
|
-
const _ =
|
|
8801
|
+
const _ = Z(() => c.value + f.gap), E = Z(() => {
|
|
8802
8802
|
const U = f.dir || "ltr";
|
|
8803
8803
|
return U in ro ? ro[U] : U;
|
|
8804
|
-
}), k =
|
|
8805
|
-
function
|
|
8804
|
+
}), k = Z(() => ["rtl", "btt"].includes(E.value)), w = Z(() => ["ttb", "btt"].includes(E.value)), T = Z(() => f.itemsToShow === "auto"), B = Z(() => w.value ? "height" : "width");
|
|
8805
|
+
function P() {
|
|
8806
8806
|
var U;
|
|
8807
8807
|
if (!fe.value)
|
|
8808
8808
|
return;
|
|
8809
|
-
const
|
|
8810
|
-
se.some((he) =>
|
|
8809
|
+
const Q = (d.value.breakpointMode === "carousel" ? (U = u.value) === null || U === void 0 ? void 0 : U.getBoundingClientRect().width : typeof window < "u" ? window.innerWidth : 0) || 0, se = Object.keys(e.breakpoints || {}).map((he) => Number(he)).sort((he, Pe) => +Pe - +he), ie = {};
|
|
8810
|
+
se.some((he) => Q >= he ? (Object.assign(ie, e.breakpoints[he]), ie.i18n && Object.assign(ie.i18n, d.value.i18n, e.breakpoints[he].i18n), !0) : !1), Object.assign(f, d.value, ie);
|
|
8811
8811
|
}
|
|
8812
8812
|
const M = kr(() => {
|
|
8813
|
-
|
|
8814
|
-
}), j = $r(/* @__PURE__ */ new Set()),
|
|
8815
|
-
function
|
|
8816
|
-
|
|
8813
|
+
P(), z(), A();
|
|
8814
|
+
}), j = $r(/* @__PURE__ */ new Set()), ee = O([]);
|
|
8815
|
+
function J({ widthMultiplier: U, heightMultiplier: Q }) {
|
|
8816
|
+
ee.value = a.map((se) => {
|
|
8817
8817
|
var ie;
|
|
8818
8818
|
const he = (ie = se.exposed) === null || ie === void 0 ? void 0 : ie.getBoundingRect();
|
|
8819
8819
|
return {
|
|
8820
8820
|
width: he.width * U,
|
|
8821
|
-
height: he.height *
|
|
8821
|
+
height: he.height * Q
|
|
8822
8822
|
};
|
|
8823
8823
|
});
|
|
8824
8824
|
}
|
|
8825
|
-
const
|
|
8825
|
+
const re = O({
|
|
8826
8826
|
width: 0,
|
|
8827
8827
|
height: 0
|
|
8828
8828
|
});
|
|
8829
|
-
function
|
|
8829
|
+
function D({ widthMultiplier: U, heightMultiplier: Q }) {
|
|
8830
8830
|
var se;
|
|
8831
8831
|
const ie = ((se = l.value) === null || se === void 0 ? void 0 : se.getBoundingClientRect()) || { width: 0, height: 0 };
|
|
8832
|
-
|
|
8832
|
+
re.value = {
|
|
8833
8833
|
width: ie.width * U,
|
|
8834
|
-
height: ie.height *
|
|
8834
|
+
height: ie.height * Q
|
|
8835
8835
|
};
|
|
8836
8836
|
}
|
|
8837
|
-
function
|
|
8837
|
+
function A() {
|
|
8838
8838
|
if (!l.value)
|
|
8839
8839
|
return;
|
|
8840
8840
|
const U = Lh(j);
|
|
8841
|
-
if (
|
|
8842
|
-
c.value = Rh(
|
|
8841
|
+
if (D(U), J(U), T.value)
|
|
8842
|
+
c.value = Rh(ee.value.map((Q) => Q[B.value]));
|
|
8843
8843
|
else {
|
|
8844
|
-
const
|
|
8845
|
-
c.value = (
|
|
8844
|
+
const Q = Number(f.itemsToShow), se = (Q - 1) * f.gap;
|
|
8845
|
+
c.value = (re.value[B.value] - se) / Q;
|
|
8846
8846
|
}
|
|
8847
8847
|
}
|
|
8848
|
-
function
|
|
8848
|
+
function z() {
|
|
8849
8849
|
!f.wrapAround && s.value > 0 && (p.value = Ut({
|
|
8850
8850
|
val: p.value,
|
|
8851
8851
|
max: y.value,
|
|
@@ -8856,38 +8856,38 @@ Vn({
|
|
|
8856
8856
|
min: 1
|
|
8857
8857
|
}));
|
|
8858
8858
|
}
|
|
8859
|
-
const de =
|
|
8860
|
-
Bo(() =>
|
|
8861
|
-
|
|
8859
|
+
const de = Z(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
|
|
8860
|
+
Bo(() => z()), Bo(() => {
|
|
8861
|
+
A();
|
|
8862
8862
|
});
|
|
8863
8863
|
let ye;
|
|
8864
8864
|
const ve = (U) => {
|
|
8865
|
-
const
|
|
8866
|
-
if (!(!(
|
|
8865
|
+
const Q = U.target;
|
|
8866
|
+
if (!(!(Q != null && Q.contains(u.value)) || Array.isArray(de.value) && de.value.includes(U.animationName)) && (j.add(Q), !ye)) {
|
|
8867
8867
|
const se = () => {
|
|
8868
8868
|
ye = requestAnimationFrame(() => {
|
|
8869
|
-
|
|
8869
|
+
A(), se();
|
|
8870
8870
|
});
|
|
8871
8871
|
};
|
|
8872
8872
|
se();
|
|
8873
8873
|
}
|
|
8874
8874
|
}, le = (U) => {
|
|
8875
|
-
const
|
|
8876
|
-
|
|
8875
|
+
const Q = U.target;
|
|
8876
|
+
Q && j.delete(Q), ye && j.size === 0 && (cancelAnimationFrame(ye), A());
|
|
8877
8877
|
}, fe = O(!1);
|
|
8878
8878
|
typeof document < "u" && Bo(() => {
|
|
8879
8879
|
fe.value && de.value !== !1 ? (document.addEventListener("animationstart", ve), document.addEventListener("animationend", le)) : (document.removeEventListener("animationstart", ve), document.removeEventListener("animationend", le));
|
|
8880
8880
|
}), Ve(() => {
|
|
8881
|
-
fe.value = !0,
|
|
8881
|
+
fe.value = !0, P(), He(), u.value && (I = new ResizeObserver(M), I.observe(u.value)), n("init");
|
|
8882
8882
|
}), bs(() => {
|
|
8883
|
-
fe.value = !1, i.cleanup(), $ && clearTimeout($), ye && cancelAnimationFrame(ye), S && clearInterval(S), I && (I.disconnect(), I = null), typeof document < "u" && _e(), u.value && (u.value.removeEventListener("transitionend",
|
|
8883
|
+
fe.value = !1, i.cleanup(), $ && clearTimeout($), ye && cancelAnimationFrame(ye), S && clearInterval(S), I && (I.disconnect(), I = null), typeof document < "u" && _e(), u.value && (u.value.removeEventListener("transitionend", A), u.value.removeEventListener("animationiteration", A));
|
|
8884
8884
|
});
|
|
8885
8885
|
let ke = !1;
|
|
8886
8886
|
const Ce = { x: 0, y: 0 }, ze = Lt({ x: 0, y: 0 }), pt = O(!1), rt = O(!1), Ct = () => {
|
|
8887
8887
|
pt.value = !0;
|
|
8888
8888
|
}, gt = () => {
|
|
8889
8889
|
pt.value = !1;
|
|
8890
|
-
},
|
|
8890
|
+
}, ne = kr((U) => {
|
|
8891
8891
|
if (!U.ctrlKey)
|
|
8892
8892
|
switch (U.key) {
|
|
8893
8893
|
case "ArrowLeft":
|
|
@@ -8900,13 +8900,13 @@ Vn({
|
|
|
8900
8900
|
break;
|
|
8901
8901
|
}
|
|
8902
8902
|
}, 200), K = () => {
|
|
8903
|
-
document.addEventListener("keydown",
|
|
8903
|
+
document.addEventListener("keydown", ne);
|
|
8904
8904
|
}, _e = () => {
|
|
8905
|
-
document.removeEventListener("keydown",
|
|
8905
|
+
document.removeEventListener("keydown", ne);
|
|
8906
8906
|
};
|
|
8907
8907
|
function Re(U) {
|
|
8908
|
-
const
|
|
8909
|
-
if (["INPUT", "TEXTAREA", "SELECT"].includes(
|
|
8908
|
+
const Q = U.target.tagName;
|
|
8909
|
+
if (["INPUT", "TEXTAREA", "SELECT"].includes(Q) || Xe.value || (ke = U.type === "touchstart", !ke && (U.preventDefault(), U.button !== 0)))
|
|
8910
8910
|
return;
|
|
8911
8911
|
Ce.x = "touches" in U ? U.touches[0].clientX : U.clientX, Ce.y = "touches" in U ? U.touches[0].clientY : U.clientY;
|
|
8912
8912
|
const se = ke ? "touchmove" : "mousemove", ie = ke ? "touchend" : "mouseup";
|
|
@@ -8914,8 +8914,8 @@ Vn({
|
|
|
8914
8914
|
}
|
|
8915
8915
|
const Be = kr((U) => {
|
|
8916
8916
|
rt.value = !0;
|
|
8917
|
-
const
|
|
8918
|
-
ze.x =
|
|
8917
|
+
const Q = "touches" in U ? U.touches[0].clientX : U.clientX, se = "touches" in U ? U.touches[0].clientY : U.clientY;
|
|
8918
|
+
ze.x = Q - Ce.x, ze.y = se - Ce.y;
|
|
8919
8919
|
const ie = Dh({
|
|
8920
8920
|
isVertical: w.value,
|
|
8921
8921
|
isReversed: k.value,
|
|
@@ -8936,8 +8936,8 @@ Vn({
|
|
|
8936
8936
|
window.addEventListener("click", se);
|
|
8937
8937
|
}
|
|
8938
8938
|
lt(m.value), ze.x = 0, ze.y = 0, rt.value = !1;
|
|
8939
|
-
const U = ke ? "touchmove" : "mousemove",
|
|
8940
|
-
document.removeEventListener(U, Be), document.removeEventListener(
|
|
8939
|
+
const U = ke ? "touchmove" : "mousemove", Q = ke ? "touchend" : "mouseup";
|
|
8940
|
+
document.removeEventListener(U, Be), document.removeEventListener(Q, Ae);
|
|
8941
8941
|
}
|
|
8942
8942
|
function He() {
|
|
8943
8943
|
!f.autoplay || f.autoplay <= 0 || (S = setInterval(() => {
|
|
@@ -8951,8 +8951,8 @@ Vn({
|
|
|
8951
8951
|
st(), He();
|
|
8952
8952
|
}
|
|
8953
8953
|
const Xe = O(!1);
|
|
8954
|
-
function lt(U,
|
|
8955
|
-
if (!
|
|
8954
|
+
function lt(U, Q = !1) {
|
|
8955
|
+
if (!Q && Xe.value)
|
|
8956
8956
|
return;
|
|
8957
8957
|
let se = U, ie = U;
|
|
8958
8958
|
h.value = p.value, f.wrapAround ? ie = vl({
|
|
@@ -8986,30 +8986,30 @@ Vn({
|
|
|
8986
8986
|
lt(p.value - f.itemsToScroll, U);
|
|
8987
8987
|
}
|
|
8988
8988
|
function Zt() {
|
|
8989
|
-
|
|
8989
|
+
P(), z(), A(), Rt();
|
|
8990
8990
|
}
|
|
8991
|
-
Ie(() => [d.value, e.breakpoints], () =>
|
|
8991
|
+
Ie(() => [d.value, e.breakpoints], () => P(), { deep: !0 }), Ie(() => e.autoplay, () => Rt());
|
|
8992
8992
|
const fn = Ie(() => e.modelValue, (U) => {
|
|
8993
8993
|
U !== p.value && lt(Number(U), !0);
|
|
8994
8994
|
});
|
|
8995
8995
|
n("before-init");
|
|
8996
|
-
const pe =
|
|
8996
|
+
const pe = Z(() => {
|
|
8997
8997
|
if (!f.wrapAround)
|
|
8998
8998
|
return { before: 0, after: 0 };
|
|
8999
8999
|
if (T.value)
|
|
9000
9000
|
return { before: a.length, after: a.length };
|
|
9001
|
-
const U = Number(f.itemsToShow),
|
|
9001
|
+
const U = Number(f.itemsToShow), Q = Math.ceil(U + (f.itemsToScroll - 1)), se = Q - m.value, ie = Q - (s.value - (m.value + 1));
|
|
9002
9002
|
return {
|
|
9003
9003
|
before: Math.max(0, se),
|
|
9004
9004
|
after: Math.max(0, ie)
|
|
9005
9005
|
};
|
|
9006
|
-
}), Et =
|
|
9006
|
+
}), Et = Z(() => pe.value.before ? T.value ? ee.value.slice(-1 * pe.value.before).reduce((U, Q) => U + Q[B.value] + f.gap, 0) * -1 : pe.value.before * _.value * -1 : 0), Ke = Z(() => {
|
|
9007
9007
|
var U;
|
|
9008
9008
|
if (T.value) {
|
|
9009
|
-
const
|
|
9009
|
+
const Q = (p.value % a.length + a.length) % a.length;
|
|
9010
9010
|
return Vr({
|
|
9011
|
-
slideSize: (U =
|
|
9012
|
-
viewportSize:
|
|
9011
|
+
slideSize: (U = ee.value[Q]) === null || U === void 0 ? void 0 : U[B.value],
|
|
9012
|
+
viewportSize: re.value[B.value],
|
|
9013
9013
|
align: f.snapAlign
|
|
9014
9014
|
});
|
|
9015
9015
|
}
|
|
@@ -9017,28 +9017,28 @@ Vn({
|
|
|
9017
9017
|
align: f.snapAlign,
|
|
9018
9018
|
itemsToShow: +f.itemsToShow
|
|
9019
9019
|
});
|
|
9020
|
-
}), F =
|
|
9020
|
+
}), F = Z(() => {
|
|
9021
9021
|
let U = 0;
|
|
9022
9022
|
if (T.value) {
|
|
9023
|
-
if (p.value < 0 ? U =
|
|
9024
|
-
const
|
|
9023
|
+
if (p.value < 0 ? U = ee.value.slice(p.value).reduce((Q, se) => Q + se[B.value] + f.gap, 0) * -1 : U = ee.value.slice(0, p.value).reduce((Q, se) => Q + se[B.value] + f.gap, 0), U -= Ke.value, !f.wrapAround) {
|
|
9024
|
+
const Q = ee.value.reduce((se, ie) => se + ie[B.value] + f.gap, 0) - re.value[B.value] - f.gap;
|
|
9025
9025
|
U = Ut({
|
|
9026
9026
|
val: U,
|
|
9027
|
-
max:
|
|
9027
|
+
max: Q,
|
|
9028
9028
|
min: 0
|
|
9029
9029
|
});
|
|
9030
9030
|
}
|
|
9031
9031
|
} else {
|
|
9032
|
-
let
|
|
9033
|
-
f.wrapAround || (
|
|
9034
|
-
val:
|
|
9032
|
+
let Q = p.value - Ke.value;
|
|
9033
|
+
f.wrapAround || (Q = Ut({
|
|
9034
|
+
val: Q,
|
|
9035
9035
|
max: s.value - +f.itemsToShow,
|
|
9036
9036
|
min: 0
|
|
9037
|
-
})), U =
|
|
9037
|
+
})), U = Q * _.value;
|
|
9038
9038
|
}
|
|
9039
9039
|
return U * (k.value ? 1 : -1);
|
|
9040
|
-
}), R =
|
|
9041
|
-
var U,
|
|
9040
|
+
}), R = Z(() => {
|
|
9041
|
+
var U, Q;
|
|
9042
9042
|
if (!T.value) {
|
|
9043
9043
|
const he = p.value - Ke.value;
|
|
9044
9044
|
return f.wrapAround ? {
|
|
@@ -9063,16 +9063,16 @@ Vn({
|
|
|
9063
9063
|
const je = Math.abs(F.value + Et.value);
|
|
9064
9064
|
for (; he <= je; ) {
|
|
9065
9065
|
const nt = (Pe % a.length + a.length) % a.length;
|
|
9066
|
-
he += ((U =
|
|
9066
|
+
he += ((U = ee.value[nt]) === null || U === void 0 ? void 0 : U[B.value]) + f.gap, Pe++;
|
|
9067
9067
|
}
|
|
9068
9068
|
se = Pe - 1;
|
|
9069
9069
|
}
|
|
9070
9070
|
let ie = 0;
|
|
9071
9071
|
{
|
|
9072
9072
|
let he = se, Pe = 0;
|
|
9073
|
-
for (he < 0 ? Pe =
|
|
9073
|
+
for (he < 0 ? Pe = ee.value.slice(0, he).reduce((je, nt) => je + nt[B.value] + f.gap, 0) - Math.abs(F.value + Et.value) : Pe = ee.value.slice(0, he).reduce((je, nt) => je + nt[B.value] + f.gap, 0) - Math.abs(F.value); Pe < re.value[B.value]; ) {
|
|
9074
9074
|
const je = (he % a.length + a.length) % a.length;
|
|
9075
|
-
Pe += ((
|
|
9075
|
+
Pe += ((Q = ee.value[je]) === null || Q === void 0 ? void 0 : Q[B.value]) + f.gap, he++;
|
|
9076
9076
|
}
|
|
9077
9077
|
ie = he - 1;
|
|
9078
9078
|
}
|
|
@@ -9080,14 +9080,14 @@ Vn({
|
|
|
9080
9080
|
min: Math.floor(se),
|
|
9081
9081
|
max: Math.ceil(ie)
|
|
9082
9082
|
};
|
|
9083
|
-
}), W =
|
|
9083
|
+
}), W = Z(() => {
|
|
9084
9084
|
if (f.slideEffect === "fade")
|
|
9085
9085
|
return;
|
|
9086
|
-
const U = w.value ? "Y" : "X",
|
|
9087
|
-
let se = F.value +
|
|
9086
|
+
const U = w.value ? "Y" : "X", Q = w.value ? ze.y : ze.x;
|
|
9087
|
+
let se = F.value + Q;
|
|
9088
9088
|
if (!f.wrapAround && f.preventExcessiveDragging) {
|
|
9089
9089
|
let ie = 0;
|
|
9090
|
-
T.value ? ie =
|
|
9090
|
+
T.value ? ie = ee.value.reduce((je, nt) => je + nt[B.value], 0) : ie = (s.value - Number(f.itemsToShow)) * _.value;
|
|
9091
9091
|
const he = k.value ? 0 : -1 * ie, Pe = k.value ? ie : 0;
|
|
9092
9092
|
se = Ut({
|
|
9093
9093
|
val: se,
|
|
@@ -9096,7 +9096,7 @@ Vn({
|
|
|
9096
9096
|
});
|
|
9097
9097
|
}
|
|
9098
9098
|
return `translate${U}(${se}px)`;
|
|
9099
|
-
}),
|
|
9099
|
+
}), oe = Z(() => ({
|
|
9100
9100
|
"--vc-transition-duration": Xe.value ? To(f.transition, "ms") : void 0,
|
|
9101
9101
|
"--vc-slide-gap": To(f.gap),
|
|
9102
9102
|
"--vc-carousel-height": To(f.height),
|
|
@@ -9135,12 +9135,12 @@ Vn({
|
|
|
9135
9135
|
prev: Qt,
|
|
9136
9136
|
restartCarousel: Zt,
|
|
9137
9137
|
slideTo: lt,
|
|
9138
|
-
updateBreakpointsConfig:
|
|
9139
|
-
updateSlideSize:
|
|
9140
|
-
updateSlidesData:
|
|
9138
|
+
updateBreakpointsConfig: P,
|
|
9139
|
+
updateSlideSize: A,
|
|
9140
|
+
updateSlidesData: z
|
|
9141
9141
|
}), () => {
|
|
9142
9142
|
var U;
|
|
9143
|
-
const
|
|
9143
|
+
const Q = t.default || t.slides, se = (Q == null ? void 0 : Q(ce)) || [], { before: ie, after: he } = pe.value, Pe = la({
|
|
9144
9144
|
slides: a,
|
|
9145
9145
|
position: "before",
|
|
9146
9146
|
toShow: ie
|
|
@@ -9174,7 +9174,7 @@ Vn({
|
|
|
9174
9174
|
}
|
|
9175
9175
|
],
|
|
9176
9176
|
dir: E.value,
|
|
9177
|
-
style:
|
|
9177
|
+
style: oe.value,
|
|
9178
9178
|
"aria-label": f.i18n.ariaGallery,
|
|
9179
9179
|
tabindex: "0",
|
|
9180
9180
|
onFocus: K,
|
|
@@ -9243,7 +9243,7 @@ Vn({
|
|
|
9243
9243
|
ltr: "arrowRight",
|
|
9244
9244
|
rtl: "arrowLeft",
|
|
9245
9245
|
ttb: "arrowDown"
|
|
9246
|
-
})[o.normalizedDir], u =
|
|
9246
|
+
})[o.normalizedDir], u = Z(() => !o.config.wrapAround && o.currentSlide <= o.minSlide), l = Z(() => !o.config.wrapAround && o.currentSlide >= o.maxSlide);
|
|
9247
9247
|
return () => {
|
|
9248
9248
|
const { i18n: c } = o.config, d = Ze("button", Object.assign(Object.assign({ type: "button", disabled: u.value, "aria-label": c.ariaPreviousSlide, title: c.ariaPreviousSlide, onClick: o.nav.prev }, n), { class: [
|
|
9249
9249
|
"carousel__prev",
|
|
@@ -9272,10 +9272,10 @@ Vn({
|
|
|
9272
9272
|
const t = et(xn);
|
|
9273
9273
|
if (!t)
|
|
9274
9274
|
return () => "";
|
|
9275
|
-
const n =
|
|
9275
|
+
const n = Z(() => t.config.itemsToShow), o = Z(() => Vr({
|
|
9276
9276
|
align: t.config.snapAlign,
|
|
9277
9277
|
itemsToShow: n.value
|
|
9278
|
-
})), r =
|
|
9278
|
+
})), r = Z(() => e.paginateByItemsToShow && n.value > 1), i = Z(() => Math.ceil((t.activeSlide - o.value) / n.value)), a = Z(() => Math.ceil(t.slidesCount / n.value)), s = (u) => vl(r.value ? {
|
|
9279
9279
|
val: i.value,
|
|
9280
9280
|
max: a.value - 1,
|
|
9281
9281
|
min: 0
|
|
@@ -9344,7 +9344,7 @@ Vn({
|
|
|
9344
9344
|
setIndex: a,
|
|
9345
9345
|
getBoundingRect: u
|
|
9346
9346
|
});
|
|
9347
|
-
const l =
|
|
9347
|
+
const l = Z(() => i.value === r.activeSlide), c = Z(() => i.value === r.activeSlide - 1), d = Z(() => i.value === r.activeSlide + 1), f = Z(() => i.value >= r.visibleRange.min && i.value <= r.visibleRange.max), p = Z(() => {
|
|
9348
9348
|
if (r.config.itemsToShow === "auto")
|
|
9349
9349
|
return;
|
|
9350
9350
|
const m = r.config.itemsToShow, h = r.config.gap > 0 && m > 1 ? `calc(${100 / m}% - ${r.config.gap * (m - 1) / m}px)` : `${100 / m}%`;
|
|
@@ -9504,8 +9504,8 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9504
9504
|
columnList: null,
|
|
9505
9505
|
filter: w,
|
|
9506
9506
|
fullTextSearch: ""
|
|
9507
|
-
},
|
|
9508
|
-
|
|
9507
|
+
}, P = await i.searchEntityRecords(d.entityName, B);
|
|
9508
|
+
P && P.response ? (o.state.data = P.response, p.value = ((T = o.state.data) == null ? void 0 : T.presets) || [], f.value = P.response.result) : console.error("Error fetching entity data:", P);
|
|
9509
9509
|
} catch (B) {
|
|
9510
9510
|
toast.add({ severity: "error", summary: "Error", detail: (B == null ? void 0 : B.errorMessage) || "Failed to fetch data", life: 3e3 });
|
|
9511
9511
|
}
|
|
@@ -9516,9 +9516,9 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9516
9516
|
return;
|
|
9517
9517
|
}
|
|
9518
9518
|
const w = ((T = d.preFiltered) == null ? void 0 : T.split("&&").map((B) => {
|
|
9519
|
-
const [
|
|
9520
|
-
return console.log("Parsed filter:", { field:
|
|
9521
|
-
columnName:
|
|
9519
|
+
const [P, M] = B.split("=").map((ee) => ee.trim()), j = (y == null ? void 0 : y(M)) ?? M;
|
|
9520
|
+
return console.log("Parsed filter:", { field: P, value: j }), {
|
|
9521
|
+
columnName: P,
|
|
9522
9522
|
value: j,
|
|
9523
9523
|
operator: "EQUAL",
|
|
9524
9524
|
columnType: typeof j == "string" ? "STRING" : "INT"
|
|
@@ -9550,8 +9550,8 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9550
9550
|
if (d.linkedEntity && d.linkedEntity.length > 0)
|
|
9551
9551
|
o.setEntity(d.linkedEntity);
|
|
9552
9552
|
else if (!d.preFiltered) {
|
|
9553
|
-
const
|
|
9554
|
-
p.value = ((B = (T =
|
|
9553
|
+
const P = await o.getEntity(d.entityName);
|
|
9554
|
+
p.value = ((B = (T = P == null ? void 0 : P.response) == null ? void 0 : T.entity) == null ? void 0 : B.presets) || [], o.setEntity(P.success ? P.response : { result: [] });
|
|
9555
9555
|
}
|
|
9556
9556
|
}
|
|
9557
9557
|
},
|
|
@@ -9562,7 +9562,7 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9562
9562
|
o.state.data = T || {};
|
|
9563
9563
|
};
|
|
9564
9564
|
return (w, T) => {
|
|
9565
|
-
var B,
|
|
9565
|
+
var B, P, M;
|
|
9566
9566
|
return m.value ? (b(), x("div", Y({ key: 0 }, w.$attrs, { class: "flex flex-col" }), [
|
|
9567
9567
|
ue(w.$slots, "header", {}, void 0, !0),
|
|
9568
9568
|
w.$slots["list-item-display"] ? (b(), x(ae, { key: 0 }, [
|
|
@@ -9573,19 +9573,19 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9573
9573
|
key: 0,
|
|
9574
9574
|
externalFilterPayload: d.externalFilterPayload,
|
|
9575
9575
|
preFiltered: d.preFiltered
|
|
9576
|
-
}, null, 8, ["externalFilterPayload", "preFiltered"])) :
|
|
9577
|
-
e.showAddButton ? (b(), V(St, { key: 1 })) :
|
|
9576
|
+
}, null, 8, ["externalFilterPayload", "preFiltered"])) : N("", !0),
|
|
9577
|
+
e.showAddButton ? (b(), V(St, { key: 1 })) : N("", !0),
|
|
9578
9578
|
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), {
|
|
9579
9579
|
key: 2,
|
|
9580
9580
|
class: "ml-auto"
|
|
9581
|
-
})) :
|
|
9581
|
+
})) : N("", !0)
|
|
9582
9582
|
])
|
|
9583
|
-
])) :
|
|
9583
|
+
])) : N("", !0)
|
|
9584
9584
|
]),
|
|
9585
9585
|
e.showPresets ? (b(), x("div", Gh, [
|
|
9586
9586
|
(b(!0), x(ae, null, we(p.value, (j) => (b(), x("button", {
|
|
9587
9587
|
key: j,
|
|
9588
|
-
onClick: (
|
|
9588
|
+
onClick: (ee) => {
|
|
9589
9589
|
h.value = j.name, k(j.name);
|
|
9590
9590
|
},
|
|
9591
9591
|
class: Ne(["bg-blue-100 text-blue-700 px-4 py-2 rounded-full text-sm", [
|
|
@@ -9593,11 +9593,11 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9593
9593
|
h.value === j.name ? "bg-blue-800 text-white" : "bg-blue-100 text-blue-700"
|
|
9594
9594
|
]])
|
|
9595
9595
|
}, X(j.name), 11, Yh))), 128))
|
|
9596
|
-
])) :
|
|
9596
|
+
])) : N("", !0),
|
|
9597
9597
|
v("div", {
|
|
9598
9598
|
class: Ne(["flex flex-wrap", [d.decoration === "tiles" ? "" : "flex-col", `gap-${d.gap}`, d.scrollHeight ? `overflow-y-auto h-[${d.scrollHeight}]` : "", d.justifyContent ? `justify-${d.justifyContent}` : "justify-center"]])
|
|
9599
9599
|
}, [
|
|
9600
|
-
(b(!0), x(ae, null, we(e.linkedEntity && e.linkedEntity.length > 0 ? e.linkedEntity : ((M = (
|
|
9600
|
+
(b(!0), x(ae, null, we(e.linkedEntity && e.linkedEntity.length > 0 ? e.linkedEntity : ((M = (P = (B = G(o)) == null ? void 0 : B.state) == null ? void 0 : P.data) == null ? void 0 : M.result) || [], (j) => ue(w.$slots, "list-item-display", Vt({
|
|
9601
9601
|
item: j,
|
|
9602
9602
|
class: e.listItemClass,
|
|
9603
9603
|
[e.variable || ""]: j
|
|
@@ -9609,19 +9609,19 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9609
9609
|
key: 0,
|
|
9610
9610
|
externalFilterPayload: d.externalFilterPayload,
|
|
9611
9611
|
preFiltered: d.preFiltered
|
|
9612
|
-
}, null, 8, ["externalFilterPayload", "preFiltered"])) :
|
|
9613
|
-
e.showAddButton ? (b(), V(St, { key: 1 })) :
|
|
9612
|
+
}, null, 8, ["externalFilterPayload", "preFiltered"])) : N("", !0),
|
|
9613
|
+
e.showAddButton ? (b(), V(St, { key: 1 })) : N("", !0),
|
|
9614
9614
|
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), {
|
|
9615
9615
|
key: 2,
|
|
9616
9616
|
class: "ml-auto"
|
|
9617
|
-
})) :
|
|
9617
|
+
})) : N("", !0)
|
|
9618
9618
|
])
|
|
9619
|
-
])) :
|
|
9619
|
+
])) : N("", !0)
|
|
9620
9620
|
], 64)) : (b(), x(ae, { key: 1 }, [
|
|
9621
|
-
e.entityName ?
|
|
9621
|
+
e.entityName ? N("", !0) : (b(), x("div", Qh, [
|
|
9622
9622
|
v("p", Zh, [
|
|
9623
9623
|
T[0] || (T[0] = Ge(" Error: Missing required props - ")),
|
|
9624
|
-
e.entityName ?
|
|
9624
|
+
e.entityName ? N("", !0) : (b(), x("span", eg, "Entity Name"))
|
|
9625
9625
|
])
|
|
9626
9626
|
])),
|
|
9627
9627
|
v("div", null, [
|
|
@@ -9632,19 +9632,19 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9632
9632
|
key: 0,
|
|
9633
9633
|
externalFilterPayload: d.externalFilterPayload,
|
|
9634
9634
|
preFiltered: d.preFiltered
|
|
9635
|
-
}, null, 8, ["externalFilterPayload", "preFiltered"])) :
|
|
9636
|
-
e.showAddButton ? (b(), V(St, { key: 1 })) :
|
|
9635
|
+
}, null, 8, ["externalFilterPayload", "preFiltered"])) : N("", !0),
|
|
9636
|
+
e.showAddButton ? (b(), V(St, { key: 1 })) : N("", !0),
|
|
9637
9637
|
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), {
|
|
9638
9638
|
key: 2,
|
|
9639
9639
|
class: "ml-auto"
|
|
9640
|
-
})) :
|
|
9640
|
+
})) : N("", !0)
|
|
9641
9641
|
])
|
|
9642
|
-
])) :
|
|
9642
|
+
])) : N("", !0)
|
|
9643
9643
|
]),
|
|
9644
9644
|
e.showPresets ? (b(), x("div", rg, [
|
|
9645
9645
|
(b(!0), x(ae, null, we(p.value, (j) => (b(), x("button", {
|
|
9646
9646
|
key: j,
|
|
9647
|
-
onClick: (
|
|
9647
|
+
onClick: (ee) => {
|
|
9648
9648
|
h.value = j.name, k(j.name);
|
|
9649
9649
|
},
|
|
9650
9650
|
class: Ne(["bg-blue-100 text-blue-700 px-4 py-2 rounded-full text-sm", [
|
|
@@ -9652,8 +9652,8 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9652
9652
|
h.value === j.name ? "bg-blue-800 text-white" : "bg-blue-100 text-blue-700"
|
|
9653
9653
|
]])
|
|
9654
9654
|
}, X(j.name), 11, ig))), 128))
|
|
9655
|
-
])) :
|
|
9656
|
-
(b(!0), x(ae, null, we(f.value, (j,
|
|
9655
|
+
])) : N("", !0),
|
|
9656
|
+
(b(!0), x(ae, null, we(f.value, (j, ee) => (b(), x("div", { key: ee }, [
|
|
9657
9657
|
(b(), V(Oe(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : _h), Y({
|
|
9658
9658
|
key: j,
|
|
9659
9659
|
preFiltered: d.preFiltered,
|
|
@@ -9666,14 +9666,14 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9666
9666
|
key: 0,
|
|
9667
9667
|
externalFilterPayload: d.externalFilterPayload,
|
|
9668
9668
|
preFiltered: d.preFiltered
|
|
9669
|
-
}, null, 8, ["externalFilterPayload", "preFiltered"])) :
|
|
9670
|
-
e.showAddButton ? (b(), V(St, { key: 1 })) :
|
|
9669
|
+
}, null, 8, ["externalFilterPayload", "preFiltered"])) : N("", !0),
|
|
9670
|
+
e.showAddButton ? (b(), V(St, { key: 1 })) : N("", !0),
|
|
9671
9671
|
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), {
|
|
9672
9672
|
key: 2,
|
|
9673
9673
|
class: "ml-auto"
|
|
9674
|
-
})) :
|
|
9674
|
+
})) : N("", !0)
|
|
9675
9675
|
])
|
|
9676
|
-
])) :
|
|
9676
|
+
])) : N("", !0)
|
|
9677
9677
|
]),
|
|
9678
9678
|
ue(w.$slots, "footer", {}, void 0, !0)
|
|
9679
9679
|
], 64)),
|
|
@@ -9755,7 +9755,7 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9755
9755
|
severity: "success",
|
|
9756
9756
|
rounded: "",
|
|
9757
9757
|
"aria-label": "Edit"
|
|
9758
|
-
})) :
|
|
9758
|
+
})) : N("", !0),
|
|
9759
9759
|
e.deletable ? (b(), V(m, {
|
|
9760
9760
|
key: 1,
|
|
9761
9761
|
onClick: p[1] || (p[1] = (h) => u()),
|
|
@@ -9763,7 +9763,7 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9763
9763
|
severity: "danger",
|
|
9764
9764
|
rounded: "",
|
|
9765
9765
|
"aria-label": "Delete"
|
|
9766
|
-
})) :
|
|
9766
|
+
})) : N("", !0)
|
|
9767
9767
|
])
|
|
9768
9768
|
])
|
|
9769
9769
|
]),
|
|
@@ -9772,13 +9772,13 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9772
9772
|
showEntityForm: s.value,
|
|
9773
9773
|
"onUpdate:showEntityForm": p[2] || (p[2] = (h) => s.value = h),
|
|
9774
9774
|
item: e.item
|
|
9775
|
-
}, null, 8, ["showEntityForm", "item"])) :
|
|
9775
|
+
}, null, 8, ["showEntityForm", "item"])) : N("", !0),
|
|
9776
9776
|
a.value ? (b(), V(ar, {
|
|
9777
9777
|
key: 1,
|
|
9778
9778
|
showDeleteDialog: a.value,
|
|
9779
9779
|
"onUpdate:showDeleteDialog": p[3] || (p[3] = (h) => a.value = h),
|
|
9780
9780
|
onOnDeleteItem: c
|
|
9781
|
-
}, null, 8, ["showDeleteDialog"])) :
|
|
9781
|
+
}, null, 8, ["showDeleteDialog"])) : N("", !0)
|
|
9782
9782
|
], 64);
|
|
9783
9783
|
};
|
|
9784
9784
|
}
|
|
@@ -9839,8 +9839,8 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9839
9839
|
return b(), x("div", Vt(Dn(u.$attrs)), [
|
|
9840
9840
|
u.$slots["list-item-display-tile"] ? (b(), x(ae, { key: 0 }, [
|
|
9841
9841
|
ue(u.$slots, "header", {}, void 0, !0),
|
|
9842
|
-
e.showAddButton ? (b(), V(St, { key: 0 })) :
|
|
9843
|
-
e.showFilters ? (b(), V(Oe(e.listFilter || xt), { key: 1 })) :
|
|
9842
|
+
e.showAddButton ? (b(), V(St, { key: 0 })) : N("", !0),
|
|
9843
|
+
e.showFilters ? (b(), V(Oe(e.listFilter || xt), { key: 1 })) : N("", !0),
|
|
9844
9844
|
v("div", vg, [
|
|
9845
9845
|
(b(!0), x(ae, null, we(((f = (d = (c = G(n)) == null ? void 0 : c.state) == null ? void 0 : d.data) == null ? void 0 : f.result) || [], (p, m) => (b(), x("div", {
|
|
9846
9846
|
key: m,
|
|
@@ -9853,19 +9853,19 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9853
9853
|
], 64)) : (b(), x(ae, { key: 1 }, [
|
|
9854
9854
|
ue(u.$slots, "header", {}, void 0, !0),
|
|
9855
9855
|
e.entityName ? (b(), x("div", Sg, [
|
|
9856
|
-
e.showFilters ? (b(), V(Oe(e.listFilter || xt), { key: 0 })) :
|
|
9857
|
-
e.showAddButton ? (b(), V(St, { key: 1 })) :
|
|
9856
|
+
e.showFilters ? (b(), V(Oe(e.listFilter || xt), { key: 0 })) : N("", !0),
|
|
9857
|
+
e.showAddButton ? (b(), V(St, { key: 1 })) : N("", !0),
|
|
9858
9858
|
v("div", Cg, [
|
|
9859
9859
|
(b(!0), x(ae, null, we(i.value, (p, m) => (b(), V(Oe(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : yg), Y({
|
|
9860
9860
|
key: m,
|
|
9861
9861
|
ref_for: !0
|
|
9862
9862
|
}, { item: p, ...r }), null, 16))), 128))
|
|
9863
9863
|
]),
|
|
9864
|
-
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), { key: 2 })) :
|
|
9864
|
+
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), { key: 2 })) : N("", !0)
|
|
9865
9865
|
])) : (b(), x("div", wg, [
|
|
9866
9866
|
v("p", kg, [
|
|
9867
9867
|
l[0] || (l[0] = Ge(" Error: Missing required props - ")),
|
|
9868
|
-
e.entityName ?
|
|
9868
|
+
e.entityName ? N("", !0) : (b(), x("span", xg, "Entity Name"))
|
|
9869
9869
|
])
|
|
9870
9870
|
])),
|
|
9871
9871
|
ue(u.$slots, "footer", {}, void 0, !0)
|
|
@@ -9951,7 +9951,7 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9951
9951
|
severity: "success",
|
|
9952
9952
|
rounded: "",
|
|
9953
9953
|
"aria-label": "Edit"
|
|
9954
|
-
})) :
|
|
9954
|
+
})) : N("", !0),
|
|
9955
9955
|
e.deletable ? (b(), V(m, {
|
|
9956
9956
|
key: 1,
|
|
9957
9957
|
onClick: p[1] || (p[1] = (h) => u()),
|
|
@@ -9959,7 +9959,7 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9959
9959
|
severity: "danger",
|
|
9960
9960
|
rounded: "",
|
|
9961
9961
|
"aria-label": "Delete"
|
|
9962
|
-
})) :
|
|
9962
|
+
})) : N("", !0)
|
|
9963
9963
|
])
|
|
9964
9964
|
])
|
|
9965
9965
|
]),
|
|
@@ -9968,13 +9968,13 @@ const Wh = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9968
9968
|
showEntityForm: s.value,
|
|
9969
9969
|
"onUpdate:showEntityForm": p[2] || (p[2] = (h) => s.value = h),
|
|
9970
9970
|
item: e.item
|
|
9971
|
-
}, null, 8, ["showEntityForm", "item"])) :
|
|
9971
|
+
}, null, 8, ["showEntityForm", "item"])) : N("", !0),
|
|
9972
9972
|
a.value ? (b(), V(ar, {
|
|
9973
9973
|
key: 1,
|
|
9974
9974
|
showDeleteDialog: a.value,
|
|
9975
9975
|
"onUpdate:showDeleteDialog": p[3] || (p[3] = (h) => a.value = h),
|
|
9976
9976
|
onOnDeleteItem: c
|
|
9977
|
-
}, null, 8, ["showDeleteDialog"])) :
|
|
9977
|
+
}, null, 8, ["showDeleteDialog"])) : N("", !0)
|
|
9978
9978
|
], 64);
|
|
9979
9979
|
};
|
|
9980
9980
|
}
|
|
@@ -10403,9 +10403,9 @@ var $t = {
|
|
|
10403
10403
|
const { preset: f, options: p } = t;
|
|
10404
10404
|
let m, h, g, y, C, S, $;
|
|
10405
10405
|
if ($e(f) && p.transform !== "strict") {
|
|
10406
|
-
const { primitive: I, semantic: _, extend: E } = f, k = _ || {}, { colorScheme: w } = k, T = Ht(k, ["colorScheme"]), B = E || {}, { colorScheme:
|
|
10406
|
+
const { primitive: I, semantic: _, extend: E } = f, k = _ || {}, { colorScheme: w } = k, T = Ht(k, ["colorScheme"]), B = E || {}, { colorScheme: P } = B, M = Ht(B, ["colorScheme"]), j = w || {}, { dark: ee } = j, J = Ht(j, ["dark"]), re = P || {}, { dark: D } = re, A = Ht(re, ["dark"]), z = $e(I) ? this._toVariables({ primitive: I }, p) : {}, de = $e(T) ? this._toVariables({ semantic: T }, p) : {}, ye = $e(J) ? this._toVariables({ light: J }, p) : {}, ve = $e(ee) ? this._toVariables({ dark: ee }, p) : {}, le = $e(M) ? this._toVariables({ semantic: M }, p) : {}, fe = $e(A) ? this._toVariables({ light: A }, p) : {}, ke = $e(D) ? this._toVariables({ dark: D }, p) : {}, [Ce, ze] = [(i = z.declarations) != null ? i : "", z.tokens], [pt, rt] = [(a = de.declarations) != null ? a : "", de.tokens || []], [Ct, gt] = [(s = ye.declarations) != null ? s : "", ye.tokens || []], [ne, K] = [(u = ve.declarations) != null ? u : "", ve.tokens || []], [_e, Re] = [(l = le.declarations) != null ? l : "", le.tokens || []], [Be, Ae] = [(c = fe.declarations) != null ? c : "", fe.tokens || []], [He, st] = [(d = ke.declarations) != null ? d : "", ke.tokens || []];
|
|
10407
10407
|
m = this.transformCSS(e, Ce, "light", "variable", p, o, r), h = ze;
|
|
10408
|
-
const Rt = this.transformCSS(e, `${pt}${Ct}`, "light", "variable", p, o, r), Xe = this.transformCSS(e, `${
|
|
10408
|
+
const Rt = this.transformCSS(e, `${pt}${Ct}`, "light", "variable", p, o, r), Xe = this.transformCSS(e, `${ne}`, "dark", "variable", p, o, r);
|
|
10409
10409
|
g = `${Rt}${Xe}`, y = [.../* @__PURE__ */ new Set([...rt, ...gt, ...K])];
|
|
10410
10410
|
const lt = this.transformCSS(e, `${_e}${Be}color-scheme:light`, "light", "variable", p, o, r), bt = this.transformCSS(e, `${He}color-scheme:dark`, "dark", "variable", p, o, r);
|
|
10411
10411
|
C = `${lt}${bt}`, S = [.../* @__PURE__ */ new Set([...Re, ...Ae, ...st])], $ = kt(f.css, { dt: to });
|
|
@@ -10430,8 +10430,8 @@ var $t = {
|
|
|
10430
10430
|
var s, u, l;
|
|
10431
10431
|
let c, d, f;
|
|
10432
10432
|
if ($e(t) && n.transform !== "strict") {
|
|
10433
|
-
const p = e.replace("-directive", ""), m = t, { colorScheme: h, extend: g, css: y } = m, C = Ht(m, ["colorScheme", "extend", "css"]), S = g || {}, { colorScheme: $ } = S, I = Ht(S, ["colorScheme"]), _ = h || {}, { dark: E } = _, k = Ht(_, ["dark"]), w = $ || {}, { dark: T } = w, B = Ht(w, ["dark"]),
|
|
10434
|
-
c = `${de}${ye}`, d = [.../* @__PURE__ */ new Set([...
|
|
10433
|
+
const p = e.replace("-directive", ""), m = t, { colorScheme: h, extend: g, css: y } = m, C = Ht(m, ["colorScheme", "extend", "css"]), S = g || {}, { colorScheme: $ } = S, I = Ht(S, ["colorScheme"]), _ = h || {}, { dark: E } = _, k = Ht(_, ["dark"]), w = $ || {}, { dark: T } = w, B = Ht(w, ["dark"]), P = $e(C) ? this._toVariables({ [p]: Me(Me({}, C), I) }, n) : {}, M = $e(k) ? this._toVariables({ [p]: Me(Me({}, k), B) }, n) : {}, j = $e(E) ? this._toVariables({ [p]: Me(Me({}, E), T) }, n) : {}, [ee, J] = [(s = P.declarations) != null ? s : "", P.tokens || []], [re, D] = [(u = M.declarations) != null ? u : "", M.tokens || []], [A, z] = [(l = j.declarations) != null ? l : "", j.tokens || []], de = this.transformCSS(p, `${ee}${re}`, "light", "variable", n, r, i, a), ye = this.transformCSS(p, A, "dark", "variable", n, r, i, a);
|
|
10434
|
+
c = `${de}${ye}`, d = [.../* @__PURE__ */ new Set([...J, ...D, ...z])], f = kt(y, { dt: to });
|
|
10435
10435
|
}
|
|
10436
10436
|
return {
|
|
10437
10437
|
css: c,
|
|
@@ -10732,17 +10732,17 @@ function cb(e) {
|
|
|
10732
10732
|
}
|
|
10733
10733
|
var db = 0;
|
|
10734
10734
|
function fb(e) {
|
|
10735
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = O(!1), o = O(e), r = O(null), i = ci() ? window.document : void 0, a = t.document, s = a === void 0 ? i : a, u = t.immediate, l = u === void 0 ? !0 : u, c = t.manual, d = c === void 0 ? !1 : c, f = t.name, p = f === void 0 ? "style_".concat(++db) : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, y = g === void 0 ? void 0 : g, C = t.nonce, S = C === void 0 ? void 0 : C, $ = t.first, I = $ === void 0 ? !1 : $, _ = t.onMounted, E = _ === void 0 ? void 0 : _, k = t.onUpdated, w = k === void 0 ? void 0 : k, T = t.onLoad, B = T === void 0 ? void 0 : T,
|
|
10736
|
-
},
|
|
10737
|
-
var
|
|
10735
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = O(!1), o = O(e), r = O(null), i = ci() ? window.document : void 0, a = t.document, s = a === void 0 ? i : a, u = t.immediate, l = u === void 0 ? !0 : u, c = t.manual, d = c === void 0 ? !1 : c, f = t.name, p = f === void 0 ? "style_".concat(++db) : f, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, y = g === void 0 ? void 0 : g, C = t.nonce, S = C === void 0 ? void 0 : C, $ = t.first, I = $ === void 0 ? !1 : $, _ = t.onMounted, E = _ === void 0 ? void 0 : _, k = t.onUpdated, w = k === void 0 ? void 0 : k, T = t.onLoad, B = T === void 0 ? void 0 : T, P = t.props, M = P === void 0 ? {} : P, j = function() {
|
|
10736
|
+
}, ee = function(D) {
|
|
10737
|
+
var A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
10738
10738
|
if (s) {
|
|
10739
|
-
var
|
|
10740
|
-
r.value = s.querySelector('style[data-primevue-style-id="'.concat(de, '"]')) || s.getElementById(ye) || s.createElement("style"), r.value.isConnected || (o.value =
|
|
10739
|
+
var z = ya(ya({}, M), A), de = z.name || p, ye = z.id || h, ve = z.nonce || S;
|
|
10740
|
+
r.value = s.querySelector('style[data-primevue-style-id="'.concat(de, '"]')) || s.getElementById(ye) || s.createElement("style"), r.value.isConnected || (o.value = D || e, Ho(r.value, {
|
|
10741
10741
|
type: "text/css",
|
|
10742
10742
|
id: ye,
|
|
10743
10743
|
media: y,
|
|
10744
10744
|
nonce: ve
|
|
10745
|
-
}), I ? s.head.prepend(r.value) : s.head.appendChild(r.value), Ol(r.value, "data-primevue-style-id", de), Ho(r.value,
|
|
10745
|
+
}), I ? s.head.prepend(r.value) : s.head.appendChild(r.value), Ol(r.value, "data-primevue-style-id", de), Ho(r.value, z), r.value.onload = function(le) {
|
|
10746
10746
|
return B == null ? void 0 : B(le, {
|
|
10747
10747
|
name: de
|
|
10748
10748
|
});
|
|
@@ -10752,16 +10752,16 @@ function fb(e) {
|
|
|
10752
10752
|
immediate: !0
|
|
10753
10753
|
}), n.value = !0);
|
|
10754
10754
|
}
|
|
10755
|
-
},
|
|
10755
|
+
}, J = function() {
|
|
10756
10756
|
!s || !n.value || (j(), qg(r.value) && s.head.removeChild(r.value), n.value = !1);
|
|
10757
10757
|
};
|
|
10758
|
-
return l && !d && cb(
|
|
10758
|
+
return l && !d && cb(ee), {
|
|
10759
10759
|
id: h,
|
|
10760
10760
|
name: p,
|
|
10761
10761
|
el: r,
|
|
10762
10762
|
css: o,
|
|
10763
|
-
unload:
|
|
10764
|
-
load:
|
|
10763
|
+
unload: J,
|
|
10764
|
+
load: ee,
|
|
10765
10765
|
isLoaded: hs(n)
|
|
10766
10766
|
};
|
|
10767
10767
|
}
|
|
@@ -13139,7 +13139,7 @@ function p0(e, t, n, o, r, i) {
|
|
|
13139
13139
|
key: 0,
|
|
13140
13140
|
class: e.cx("root")
|
|
13141
13141
|
}, i.attrs), {
|
|
13142
|
-
default:
|
|
13142
|
+
default: te(function() {
|
|
13143
13143
|
return [ue(e.$slots, "default", {}, function() {
|
|
13144
13144
|
return [e.loading ? ue(e.$slots, "loadingicon", Y({
|
|
13145
13145
|
key: 0,
|
|
@@ -13160,7 +13160,7 @@ function p0(e, t, n, o, r, i) {
|
|
|
13160
13160
|
return [e.icon ? (b(), x("span", Y({
|
|
13161
13161
|
key: 0,
|
|
13162
13162
|
class: [e.cx("icon"), e.icon, e.iconClass]
|
|
13163
|
-
}, e.ptm("icon")), null, 16)) :
|
|
13163
|
+
}, e.ptm("icon")), null, 16)) : N("", !0)];
|
|
13164
13164
|
}), v("span", Y({
|
|
13165
13165
|
class: e.cx("label")
|
|
13166
13166
|
}, e.ptm("label")), X(e.label || " "), 17), e.badge ? (b(), V(s, {
|
|
@@ -13170,7 +13170,7 @@ function p0(e, t, n, o, r, i) {
|
|
|
13170
13170
|
severity: e.badgeSeverity,
|
|
13171
13171
|
unstyled: e.unstyled,
|
|
13172
13172
|
pt: e.ptm("pcBadge")
|
|
13173
|
-
}, null, 8, ["value", "class", "severity", "unstyled", "pt"])) :
|
|
13173
|
+
}, null, 8, ["value", "class", "severity", "unstyled", "pt"])) : N("", !0)];
|
|
13174
13174
|
})];
|
|
13175
13175
|
}),
|
|
13176
13176
|
_: 3
|
|
@@ -13746,7 +13746,7 @@ function O0(e, t, n, o, r, i) {
|
|
|
13746
13746
|
}, e.ptmi("root")), [e.$slots.header ? (b(), x("div", Y({
|
|
13747
13747
|
key: 0,
|
|
13748
13748
|
class: e.cx("header")
|
|
13749
|
-
}, e.ptm("header")), [ue(e.$slots, "header")], 16)) :
|
|
13749
|
+
}, e.ptm("header")), [ue(e.$slots, "header")], 16)) : N("", !0), i.empty ? ue(e.$slots, "empty", {
|
|
13750
13750
|
key: 2
|
|
13751
13751
|
}, function() {
|
|
13752
13752
|
return [Ge(X(i.emptyMessageText), 1)];
|
|
@@ -13767,7 +13767,7 @@ function O0(e, t, n, o, r, i) {
|
|
|
13767
13767
|
pt: e.ptm("pcPrevButton"),
|
|
13768
13768
|
"data-pc-group-section": "navigator"
|
|
13769
13769
|
}), {
|
|
13770
|
-
icon:
|
|
13770
|
+
icon: te(function(s) {
|
|
13771
13771
|
return [ue(e.$slots, "previcon", {}, function() {
|
|
13772
13772
|
return [(b(), V(Oe(i.isVertical() ? "ChevronUpIcon" : "ChevronLeftIcon"), Y({
|
|
13773
13773
|
class: s.icon
|
|
@@ -13775,7 +13775,7 @@ function O0(e, t, n, o, r, i) {
|
|
|
13775
13775
|
})];
|
|
13776
13776
|
}),
|
|
13777
13777
|
_: 3
|
|
13778
|
-
}, 16, ["class", "disabled", "aria-label", "unstyled", "onClick", "pt"])) :
|
|
13778
|
+
}, 16, ["class", "disabled", "aria-label", "unstyled", "onClick", "pt"])) : N("", !0), v("div", Y({
|
|
13779
13779
|
class: e.cx("viewport"),
|
|
13780
13780
|
style: [{
|
|
13781
13781
|
height: i.isVertical() ? e.verticalViewPortHeight : "auto"
|
|
@@ -13815,7 +13815,7 @@ function O0(e, t, n, o, r, i) {
|
|
|
13815
13815
|
data: s,
|
|
13816
13816
|
index: u
|
|
13817
13817
|
})], 16, S0);
|
|
13818
|
-
}), 128)) :
|
|
13818
|
+
}), 128)) : N("", !0), (b(!0), x(ae, null, we(e.value, function(s, u) {
|
|
13819
13819
|
return b(), x("div", Y({
|
|
13820
13820
|
key: u,
|
|
13821
13821
|
class: e.cx("item", {
|
|
@@ -13850,7 +13850,7 @@ function O0(e, t, n, o, r, i) {
|
|
|
13850
13850
|
data: s,
|
|
13851
13851
|
index: u
|
|
13852
13852
|
})], 16);
|
|
13853
|
-
}), 128)) :
|
|
13853
|
+
}), 128)) : N("", !0)], 16)], 16), e.showNavigators ? (b(), V(a, Y({
|
|
13854
13854
|
key: 1,
|
|
13855
13855
|
class: e.cx("pcNextButton"),
|
|
13856
13856
|
disabled: i.forwardIsDisabled,
|
|
@@ -13861,7 +13861,7 @@ function O0(e, t, n, o, r, i) {
|
|
|
13861
13861
|
pt: e.ptm("pcNextButton"),
|
|
13862
13862
|
"data-pc-group-section": "navigator"
|
|
13863
13863
|
}), {
|
|
13864
|
-
icon:
|
|
13864
|
+
icon: te(function(s) {
|
|
13865
13865
|
return [ue(e.$slots, "nexticon", {}, function() {
|
|
13866
13866
|
return [(b(), V(Oe(i.isVertical() ? "ChevronDownIcon" : "ChevronRightIcon"), Y({
|
|
13867
13867
|
class: s.class
|
|
@@ -13869,7 +13869,7 @@ function O0(e, t, n, o, r, i) {
|
|
|
13869
13869
|
})];
|
|
13870
13870
|
}),
|
|
13871
13871
|
_: 3
|
|
13872
|
-
}, 16, ["class", "disabled", "aria-label", "unstyled", "onClick", "pt"])) :
|
|
13872
|
+
}, 16, ["class", "disabled", "aria-label", "unstyled", "onClick", "pt"])) : N("", !0)], 16, x0), i.totalIndicators >= 0 && e.showIndicators ? (b(), x("ul", Y({
|
|
13873
13873
|
key: 0,
|
|
13874
13874
|
ref: "indicatorContent",
|
|
13875
13875
|
class: [e.cx("indicatorList"), e.indicatorsContentClass],
|
|
@@ -13896,10 +13896,10 @@ function O0(e, t, n, o, r, i) {
|
|
|
13896
13896
|
},
|
|
13897
13897
|
ref_for: !0
|
|
13898
13898
|
}, i.getIndicatorPTOptions("indicatorButton", u)), null, 16, $0)], 16, E0);
|
|
13899
|
-
}), 128))], 16)) :
|
|
13899
|
+
}), 128))], 16)) : N("", !0)], 16)), e.$slots.footer ? (b(), x("div", Y({
|
|
13900
13900
|
key: 3,
|
|
13901
13901
|
class: e.cx("footer")
|
|
13902
|
-
}, e.ptm("footer")), [ue(e.$slots, "footer")], 16)) :
|
|
13902
|
+
}, e.ptm("footer")), [ue(e.$slots, "footer")], 16)) : N("", !0)], 16);
|
|
13903
13903
|
}
|
|
13904
13904
|
Wr.render = O0;
|
|
13905
13905
|
const I0 = { class: "flex items-center justify-between rounded-md w-full overflow-hidden" }, T0 = {
|
|
@@ -14091,14 +14091,14 @@ const I0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
14091
14091
|
key: 0,
|
|
14092
14092
|
externalFilterPayload: a.externalFilterPayload,
|
|
14093
14093
|
preFiltered: a.preFiltered
|
|
14094
|
-
}, null, 8, ["externalFilterPayload", "preFiltered"])) :
|
|
14095
|
-
e.showAddButton ? (b(), V(St, { key: 1 })) :
|
|
14094
|
+
}, null, 8, ["externalFilterPayload", "preFiltered"])) : N("", !0),
|
|
14095
|
+
e.showAddButton ? (b(), V(St, { key: 1 })) : N("", !0),
|
|
14096
14096
|
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), {
|
|
14097
14097
|
key: 2,
|
|
14098
14098
|
class: "ml-auto"
|
|
14099
|
-
})) :
|
|
14099
|
+
})) : N("", !0)
|
|
14100
14100
|
])
|
|
14101
|
-
])) :
|
|
14101
|
+
])) : N("", !0)
|
|
14102
14102
|
]),
|
|
14103
14103
|
e.showPresets ? (b(), x("div", B0, [
|
|
14104
14104
|
(b(!0), x(ae, null, we(u.value, (_) => (b(), x("button", {
|
|
@@ -14111,7 +14111,7 @@ const I0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
14111
14111
|
c.value === _.name ? "bg-blue-800 text-white" : "bg-blue-100 text-blue-700"
|
|
14112
14112
|
]])
|
|
14113
14113
|
}, X(_.name), 11, F0))), 128))
|
|
14114
|
-
])) :
|
|
14114
|
+
])) : N("", !0),
|
|
14115
14115
|
s.value.length > 1 ? (b(), V(G(Wr), {
|
|
14116
14116
|
key: 1,
|
|
14117
14117
|
value: s.value,
|
|
@@ -14120,7 +14120,7 @@ const I0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
14120
14120
|
circular: !0,
|
|
14121
14121
|
responsiveOptions: $.responsiveOptions
|
|
14122
14122
|
}, {
|
|
14123
|
-
item:
|
|
14123
|
+
item: te((_) => [
|
|
14124
14124
|
v("div", R0, [
|
|
14125
14125
|
ue($.$slots, "list-item-display", {
|
|
14126
14126
|
item: _.data
|
|
@@ -14128,21 +14128,21 @@ const I0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
14128
14128
|
])
|
|
14129
14129
|
]),
|
|
14130
14130
|
_: 3
|
|
14131
|
-
}, 8, ["value", "numVisible", "responsiveOptions"])) :
|
|
14131
|
+
}, 8, ["value", "numVisible", "responsiveOptions"])) : N("", !0),
|
|
14132
14132
|
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", A0, [
|
|
14133
14133
|
v("div", P0, [
|
|
14134
14134
|
e.showFilters ? (b(), V(Oe(e.listFilter || xt), {
|
|
14135
14135
|
key: 0,
|
|
14136
14136
|
externalFilterPayload: a.externalFilterPayload,
|
|
14137
14137
|
preFiltered: a.preFiltered
|
|
14138
|
-
}, null, 8, ["externalFilterPayload", "preFiltered"])) :
|
|
14139
|
-
e.showAddButton ? (b(), V(St, { key: 1 })) :
|
|
14138
|
+
}, null, 8, ["externalFilterPayload", "preFiltered"])) : N("", !0),
|
|
14139
|
+
e.showAddButton ? (b(), V(St, { key: 1 })) : N("", !0),
|
|
14140
14140
|
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), {
|
|
14141
14141
|
key: 2,
|
|
14142
14142
|
class: "ml-auto"
|
|
14143
|
-
})) :
|
|
14143
|
+
})) : N("", !0)
|
|
14144
14144
|
])
|
|
14145
|
-
])) :
|
|
14145
|
+
])) : N("", !0),
|
|
14146
14146
|
ue($.$slots, "footer", {}, void 0, !0)
|
|
14147
14147
|
], 64)) : (b(), x(ae, { key: 1 }, [
|
|
14148
14148
|
ue($.$slots, "header", {}, void 0, !0),
|
|
@@ -14154,14 +14154,14 @@ const I0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
14154
14154
|
key: 0,
|
|
14155
14155
|
externalFilterPayload: a.externalFilterPayload,
|
|
14156
14156
|
preFiltered: a.preFiltered
|
|
14157
|
-
}, null, 8, ["externalFilterPayload", "preFiltered"])) :
|
|
14158
|
-
e.showAddButton ? (b(), V(St, { key: 1 })) :
|
|
14157
|
+
}, null, 8, ["externalFilterPayload", "preFiltered"])) : N("", !0),
|
|
14158
|
+
e.showAddButton ? (b(), V(St, { key: 1 })) : N("", !0),
|
|
14159
14159
|
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), {
|
|
14160
14160
|
key: 2,
|
|
14161
14161
|
class: "ml-auto"
|
|
14162
|
-
})) :
|
|
14162
|
+
})) : N("", !0)
|
|
14163
14163
|
])
|
|
14164
|
-
])) :
|
|
14164
|
+
])) : N("", !0)
|
|
14165
14165
|
]),
|
|
14166
14166
|
e.showPresets ? (b(), x("div", U0, [
|
|
14167
14167
|
(b(!0), x(ae, null, we(u.value, (_) => (b(), x("button", {
|
|
@@ -14174,7 +14174,7 @@ const I0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
14174
14174
|
c.value === _.name ? "bg-blue-800 text-white" : "bg-blue-100 text-blue-700"
|
|
14175
14175
|
]])
|
|
14176
14176
|
}, X(_.name), 11, H0))), 128))
|
|
14177
|
-
])) :
|
|
14177
|
+
])) : N("", !0),
|
|
14178
14178
|
s.value.length ? (b(), V(G(Wr), {
|
|
14179
14179
|
key: 1,
|
|
14180
14180
|
value: s.value,
|
|
@@ -14183,11 +14183,11 @@ const I0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
14183
14183
|
circular: !1,
|
|
14184
14184
|
responsiveOptions: $.responsiveOptions
|
|
14185
14185
|
}, {
|
|
14186
|
-
item:
|
|
14186
|
+
item: te((_) => [
|
|
14187
14187
|
(b(), V(Oe(e.listItemDisplay && e.listItemDisplay !== "" ? e.listItemDisplay : Ag), Vt(Dn({ item: _.data, ...a })), null, 16))
|
|
14188
14188
|
]),
|
|
14189
14189
|
_: 1
|
|
14190
|
-
}, 8, ["value", "numVisible", "responsiveOptions"])) :
|
|
14190
|
+
}, 8, ["value", "numVisible", "responsiveOptions"])) : N("", !0),
|
|
14191
14191
|
v("div", W0, [
|
|
14192
14192
|
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), x("div", K0, [
|
|
14193
14193
|
v("div", q0, [
|
|
@@ -14195,14 +14195,14 @@ const I0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
14195
14195
|
key: 0,
|
|
14196
14196
|
externalFilterPayload: a.externalFilterPayload,
|
|
14197
14197
|
preFiltered: a.preFiltered
|
|
14198
|
-
}, null, 8, ["externalFilterPayload", "preFiltered"])) :
|
|
14199
|
-
e.showAddButton ? (b(), V(St, { key: 1 })) :
|
|
14198
|
+
}, null, 8, ["externalFilterPayload", "preFiltered"])) : N("", !0),
|
|
14199
|
+
e.showAddButton ? (b(), V(St, { key: 1 })) : N("", !0),
|
|
14200
14200
|
e.showPagination ? (b(), V(Oe(e.listPagination || Nt), {
|
|
14201
14201
|
key: 2,
|
|
14202
14202
|
class: "ml-auto"
|
|
14203
|
-
})) :
|
|
14203
|
+
})) : N("", !0)
|
|
14204
14204
|
])
|
|
14205
|
-
])) :
|
|
14205
|
+
])) : N("", !0)
|
|
14206
14206
|
]),
|
|
14207
14207
|
e.showPresets ? (b(), x("div", G0, [
|
|
14208
14208
|
(b(!0), x(ae, null, we(u.value, (_) => (b(), x("button", {
|
|
@@ -14215,11 +14215,11 @@ const I0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
14215
14215
|
c.value === _.name ? "bg-blue-800 text-white" : "bg-blue-100 text-blue-700"
|
|
14216
14216
|
]])
|
|
14217
14217
|
}, X(_.name), 11, Y0))), 128))
|
|
14218
|
-
])) :
|
|
14218
|
+
])) : N("", !0)
|
|
14219
14219
|
])) : (b(), x("div", D0, [
|
|
14220
14220
|
v("p", N0, [
|
|
14221
14221
|
I[0] || (I[0] = Ge(" Error: Missing required props - ")),
|
|
14222
|
-
e.entityName ?
|
|
14222
|
+
e.entityName ? N("", !0) : (b(), x("span", L0, "Entity Name"))
|
|
14223
14223
|
])
|
|
14224
14224
|
])),
|
|
14225
14225
|
ue($.$slots, "footer", {}, void 0, !0)
|
|
@@ -15557,8 +15557,8 @@ function iv() {
|
|
|
15557
15557
|
}, t._ = n = {
|
|
15558
15558
|
// formats numbers separators, decimals places, signs, abbreviations
|
|
15559
15559
|
numberToFormat: function(l, c, d) {
|
|
15560
|
-
var f = i[t.options.currentLocale], p = !1, m = !1, h = 0, g = "", y = 1e12, C = 1e9, S = 1e6, $ = 1e3, I = "", _ = !1, E, k, w, T, B,
|
|
15561
|
-
if (l = l || 0, k = Math.abs(l), t._.includes(c, "(") ? (p = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (B = t._.includes(c, "+") ? c.indexOf("+") : l < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && (E = c.match(/a(k|m|b|t)?/), E = E ? E[1] : !1, t._.includes(c, " a") && (g = " "), c = c.replace(new RegExp(g + "a[kmbt]?"), ""), k >= y && !E || E === "t" ? (g += f.abbreviations.trillion, l = l / y) : k < y && k >= C && !E || E === "b" ? (g += f.abbreviations.billion, l = l / C) : k < C && k >= S && !E || E === "m" ? (g += f.abbreviations.million, l = l / S) : (k < S && k >= $ && !E || E === "k") && (g += f.abbreviations.thousand, l = l / $)), t._.includes(c, "[.]") && (m = !0, c = c.replace("[.]", ".")), w = l.toString().split(".")[0], T = c.split(".")[1],
|
|
15560
|
+
var f = i[t.options.currentLocale], p = !1, m = !1, h = 0, g = "", y = 1e12, C = 1e9, S = 1e6, $ = 1e3, I = "", _ = !1, E, k, w, T, B, P, M;
|
|
15561
|
+
if (l = l || 0, k = Math.abs(l), t._.includes(c, "(") ? (p = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (B = t._.includes(c, "+") ? c.indexOf("+") : l < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && (E = c.match(/a(k|m|b|t)?/), E = E ? E[1] : !1, t._.includes(c, " a") && (g = " "), c = c.replace(new RegExp(g + "a[kmbt]?"), ""), k >= y && !E || E === "t" ? (g += f.abbreviations.trillion, l = l / y) : k < y && k >= C && !E || E === "b" ? (g += f.abbreviations.billion, l = l / C) : k < C && k >= S && !E || E === "m" ? (g += f.abbreviations.million, l = l / S) : (k < S && k >= $ && !E || E === "k") && (g += f.abbreviations.thousand, l = l / $)), t._.includes(c, "[.]") && (m = !0, c = c.replace("[.]", ".")), w = l.toString().split(".")[0], T = c.split(".")[1], P = c.indexOf(","), h = (c.split(".")[0].split(",")[0].match(/0/g) || []).length, T ? (t._.includes(T, "[") ? (T = T.replace("]", ""), T = T.split("["), I = t._.toFixed(l, T[0].length + T[1].length, d, T[1].length)) : I = t._.toFixed(l, T.length, d), w = I.split(".")[0], t._.includes(I, ".") ? I = f.delimiters.decimal + I.split(".")[1] : I = "", m && Number(I.slice(1)) === 0 && (I = "")) : w = t._.toFixed(l, 0, d), g && !E && Number(w) >= 1e3 && g !== f.abbreviations.trillion)
|
|
15562
15562
|
switch (w = String(Number(w) / 1e3), g) {
|
|
15563
15563
|
case f.abbreviations.thousand:
|
|
15564
15564
|
g = f.abbreviations.million;
|
|
@@ -15573,7 +15573,7 @@ function iv() {
|
|
|
15573
15573
|
if (t._.includes(w, "-") && (w = w.slice(1), _ = !0), w.length < h)
|
|
15574
15574
|
for (var j = h - w.length; j > 0; j--)
|
|
15575
15575
|
w = "0" + w;
|
|
15576
|
-
return
|
|
15576
|
+
return P > -1 && (w = w.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + f.delimiters.thousands)), c.indexOf(".") === 0 && (w = ""), M = w + I + (g || ""), p ? M = (p && _ ? "(" : "") + M + (p && _ ? ")" : "") : B >= 0 ? M = B === 0 ? (_ ? "-" : "+") + M : M + (_ ? "-" : "+") : _ && (M = "-" + M), M;
|
|
15577
15577
|
},
|
|
15578
15578
|
// unformats numbers separators, decimals places, signs, abbreviations
|
|
15579
15579
|
stringToNumber: function(l) {
|
|
@@ -15924,7 +15924,7 @@ const ja = /* @__PURE__ */ nl(av), Ma = {
|
|
|
15924
15924
|
__name: "FieldExpression",
|
|
15925
15925
|
props: ["value", "type", "displayFormat"],
|
|
15926
15926
|
setup(e) {
|
|
15927
|
-
const t =
|
|
15927
|
+
const t = Z(() => n()), n = () => e.type === "DATE" ? o() : e.type === "NUMBER" ? r() : e.value, o = () => nv(e.value, e.displayFormat ? e.displayFormat : "MM/dd/yyyy"), r = () => e.displayFormat ? e.displayFormat === "currency" ? ja(e.value).format("$0,0.00") : ja(e.value).format(e.displayFormat) : e.value;
|
|
15928
15928
|
return (i, a) => (b(), x("span", null, X(t.value), 1));
|
|
15929
15929
|
}
|
|
15930
15930
|
};
|
|
@@ -15932,158 +15932,162 @@ function sv() {
|
|
|
15932
15932
|
const e = tt(), { get: t, post: n, put: o, del: r } = cn(), i = () => e.getAppId();
|
|
15933
15933
|
return {
|
|
15934
15934
|
getEntities: async () => {
|
|
15935
|
-
const
|
|
15936
|
-
return await t(`/api/app/v1/${
|
|
15935
|
+
const D = i();
|
|
15936
|
+
return await t(`/api/app/v1/${D}/entity`);
|
|
15937
15937
|
},
|
|
15938
|
-
getEntity: async (
|
|
15939
|
-
const
|
|
15940
|
-
return await t(`/api/app/v1/${
|
|
15938
|
+
getEntity: async (D) => {
|
|
15939
|
+
const A = i();
|
|
15940
|
+
return await t(`/api/app/v1/${A}/entity/${D}`);
|
|
15941
15941
|
},
|
|
15942
|
-
saveEntity: async (
|
|
15943
|
-
const
|
|
15944
|
-
return await n(`/api/app/v1/${
|
|
15942
|
+
saveEntity: async (D) => {
|
|
15943
|
+
const A = i();
|
|
15944
|
+
return await n(`/api/app/v1/${A}/entity`, D);
|
|
15945
15945
|
},
|
|
15946
|
-
updateEntityGeneralSettings: async (
|
|
15947
|
-
const
|
|
15946
|
+
updateEntityGeneralSettings: async (D, A) => {
|
|
15947
|
+
const z = i();
|
|
15948
15948
|
return await o(
|
|
15949
|
-
`/api/app/v1/${
|
|
15950
|
-
|
|
15949
|
+
`/api/app/v1/${z}/entity/${D}/rename`,
|
|
15950
|
+
A
|
|
15951
15951
|
);
|
|
15952
15952
|
},
|
|
15953
|
-
updateEntityAuditable: async (
|
|
15954
|
-
const
|
|
15953
|
+
updateEntityAuditable: async (D, A) => {
|
|
15954
|
+
const z = i();
|
|
15955
15955
|
return await o(
|
|
15956
|
-
`/api/app/v1/${
|
|
15957
|
-
|
|
15956
|
+
`/api/app/v1/${z}/entity/${D}/auditable`,
|
|
15957
|
+
A
|
|
15958
15958
|
);
|
|
15959
15959
|
},
|
|
15960
|
-
updateEntityRevisionEnabled: async (
|
|
15961
|
-
const
|
|
15960
|
+
updateEntityRevisionEnabled: async (D, A) => {
|
|
15961
|
+
const z = i();
|
|
15962
15962
|
return await o(
|
|
15963
|
-
`/api/app/v1/${
|
|
15964
|
-
|
|
15963
|
+
`/api/app/v1/${z}/entity/${D}/revision`,
|
|
15964
|
+
A
|
|
15965
15965
|
);
|
|
15966
15966
|
},
|
|
15967
|
-
updateEntitySoftDelete: async (
|
|
15968
|
-
const
|
|
15967
|
+
updateEntitySoftDelete: async (D, A) => {
|
|
15968
|
+
const z = i();
|
|
15969
15969
|
return await o(
|
|
15970
|
-
`/api/app/v1/${
|
|
15971
|
-
|
|
15970
|
+
`/api/app/v1/${z}/entity/${D}/soft-delete`,
|
|
15971
|
+
A
|
|
15972
15972
|
);
|
|
15973
15973
|
},
|
|
15974
|
-
updateEntityDeleteProtected: async (
|
|
15975
|
-
const
|
|
15974
|
+
updateEntityDeleteProtected: async (D, A) => {
|
|
15975
|
+
const z = i();
|
|
15976
15976
|
return await o(
|
|
15977
|
-
`/api/app/v1/${
|
|
15978
|
-
|
|
15977
|
+
`/api/app/v1/${z}/entity/${D}/delete-protect`,
|
|
15978
|
+
A
|
|
15979
15979
|
);
|
|
15980
15980
|
},
|
|
15981
|
-
updateEntityColumn: async (
|
|
15982
|
-
const
|
|
15981
|
+
updateEntityColumn: async (D, A) => {
|
|
15982
|
+
const z = i();
|
|
15983
15983
|
return await o(
|
|
15984
|
-
`/api/app/v1/${
|
|
15985
|
-
|
|
15984
|
+
`/api/app/v1/${z}/entity/${D}/column`,
|
|
15985
|
+
A
|
|
15986
15986
|
);
|
|
15987
15987
|
},
|
|
15988
|
-
saveEntityColumn: async (
|
|
15989
|
-
const
|
|
15988
|
+
saveEntityColumn: async (D, A) => {
|
|
15989
|
+
const z = i();
|
|
15990
15990
|
return await n(
|
|
15991
|
-
`/api/app/v1/${
|
|
15992
|
-
|
|
15991
|
+
`/api/app/v1/${z}/entity/${D}/column`,
|
|
15992
|
+
A
|
|
15993
15993
|
);
|
|
15994
15994
|
},
|
|
15995
|
-
dropEntityColumn: async (
|
|
15996
|
-
const
|
|
15995
|
+
dropEntityColumn: async (D, A) => {
|
|
15996
|
+
const z = i();
|
|
15997
15997
|
return await r(
|
|
15998
|
-
`/api/app/v1/${
|
|
15998
|
+
`/api/app/v1/${z}/entity/${D}/column/${A}`
|
|
15999
15999
|
);
|
|
16000
16000
|
},
|
|
16001
|
-
saveForeignKey: async (
|
|
16002
|
-
const
|
|
16003
|
-
return await o(`/api/app/v1/${
|
|
16001
|
+
saveForeignKey: async (D, A) => {
|
|
16002
|
+
const z = i();
|
|
16003
|
+
return await o(`/api/app/v1/${z}/entity/foreignKey`, A);
|
|
16004
16004
|
},
|
|
16005
|
-
dropForeignKey: async (
|
|
16006
|
-
const
|
|
16007
|
-
return await r(`/api/app/v1/${
|
|
16005
|
+
dropForeignKey: async (D) => {
|
|
16006
|
+
const A = i();
|
|
16007
|
+
return await r(`/api/app/v1/${A}/entity/foreignKey`, D);
|
|
16008
16008
|
},
|
|
16009
|
-
saveUniqueConstraint: async (
|
|
16010
|
-
const
|
|
16009
|
+
saveUniqueConstraint: async (D, A) => {
|
|
16010
|
+
const z = i();
|
|
16011
16011
|
return await n(
|
|
16012
|
-
`/api/app/v1/${
|
|
16012
|
+
`/api/app/v1/${z}/entity/${D}/column/${A}/constraint`
|
|
16013
16013
|
);
|
|
16014
16014
|
},
|
|
16015
|
-
dropUniqueConstraint: async (
|
|
16016
|
-
const
|
|
16015
|
+
dropUniqueConstraint: async (D, A) => {
|
|
16016
|
+
const z = i();
|
|
16017
16017
|
return await r(
|
|
16018
|
-
`/api/app/v1/${
|
|
16018
|
+
`/api/app/v1/${z}/entity/${D}/column/${A}/constraint`
|
|
16019
16019
|
);
|
|
16020
16020
|
},
|
|
16021
|
-
saveIndex: async (
|
|
16022
|
-
const
|
|
16021
|
+
saveIndex: async (D, A) => {
|
|
16022
|
+
const z = i();
|
|
16023
16023
|
return await n(
|
|
16024
|
-
`/api/app/v1/${
|
|
16025
|
-
|
|
16024
|
+
`/api/app/v1/${z}/entity/${D}/column-index`,
|
|
16025
|
+
A
|
|
16026
16026
|
);
|
|
16027
16027
|
},
|
|
16028
|
-
dropIndex: async (
|
|
16029
|
-
const
|
|
16028
|
+
dropIndex: async (D, A) => {
|
|
16029
|
+
const z = i();
|
|
16030
16030
|
return await r(
|
|
16031
|
-
`/api/app/v1/${
|
|
16032
|
-
|
|
16031
|
+
`/api/app/v1/${z}/entity/${D}/column-index`,
|
|
16032
|
+
A
|
|
16033
16033
|
);
|
|
16034
16034
|
},
|
|
16035
|
-
deleteEntity: async (
|
|
16036
|
-
const
|
|
16037
|
-
return await r(`/api/app/v1/${
|
|
16035
|
+
deleteEntity: async (D) => {
|
|
16036
|
+
const A = i();
|
|
16037
|
+
return await r(`/api/app/v1/${A}/entity/${D}`);
|
|
16038
16038
|
},
|
|
16039
|
-
getEntityEvents: async (
|
|
16040
|
-
const
|
|
16041
|
-
return await t(`/api/app/v1/${
|
|
16039
|
+
getEntityEvents: async (D) => {
|
|
16040
|
+
const A = i();
|
|
16041
|
+
return await t(`/api/app/v1/${A}/entity/${D}/event`);
|
|
16042
16042
|
},
|
|
16043
|
-
saveEntityEvent: async (
|
|
16044
|
-
const
|
|
16043
|
+
saveEntityEvent: async (D, A) => {
|
|
16044
|
+
const z = i();
|
|
16045
16045
|
return await n(
|
|
16046
|
-
`/api/app/v1/${
|
|
16047
|
-
|
|
16046
|
+
`/api/app/v1/${z}/entity/${D}/event`,
|
|
16047
|
+
A
|
|
16048
16048
|
);
|
|
16049
16049
|
},
|
|
16050
|
-
deleteEntityEvent: async (
|
|
16051
|
-
const
|
|
16052
|
-
return await r(`/api/app/v1/${
|
|
16050
|
+
deleteEntityEvent: async (D, A) => {
|
|
16051
|
+
const z = i();
|
|
16052
|
+
return await r(`/api/app/v1/${z}/entity/${D}/event/${A}`);
|
|
16053
16053
|
},
|
|
16054
|
-
updateEntityEvent: async (
|
|
16055
|
-
const
|
|
16054
|
+
updateEntityEvent: async (D, A, z) => {
|
|
16055
|
+
const de = i();
|
|
16056
16056
|
return await o(
|
|
16057
|
-
`/api/app/v1/${
|
|
16058
|
-
|
|
16057
|
+
`/api/app/v1/${de}/entity/${D}/event/${A}`,
|
|
16058
|
+
z
|
|
16059
16059
|
);
|
|
16060
16060
|
},
|
|
16061
16061
|
getActionTypes: async () => {
|
|
16062
|
-
const
|
|
16063
|
-
return await t(`/api/app/v1/${
|
|
16062
|
+
const D = i();
|
|
16063
|
+
return await t(`/api/app/v1/${D}/action-type`);
|
|
16064
16064
|
},
|
|
16065
|
-
getActionConfigByType: async (
|
|
16066
|
-
const
|
|
16067
|
-
return await t(`/api/app/v1/${
|
|
16065
|
+
getActionConfigByType: async (D) => {
|
|
16066
|
+
const A = i();
|
|
16067
|
+
return await t(`/api/app/v1/${A}/notification-config/${D}`);
|
|
16068
16068
|
},
|
|
16069
|
-
enableCache: async (
|
|
16070
|
-
const
|
|
16069
|
+
enableCache: async (D, A) => {
|
|
16070
|
+
const z = i();
|
|
16071
16071
|
return await o(
|
|
16072
|
-
`/api/app/v1/${
|
|
16073
|
-
|
|
16072
|
+
`/api/app/v1/${z}/entity/${D}/enableCache`,
|
|
16073
|
+
A
|
|
16074
16074
|
);
|
|
16075
16075
|
},
|
|
16076
|
-
addOrUpdatePresets: async (
|
|
16077
|
-
const
|
|
16076
|
+
addOrUpdatePresets: async (D, A) => {
|
|
16077
|
+
const z = i();
|
|
16078
16078
|
return await n(
|
|
16079
|
-
`/api/app/v1/${
|
|
16080
|
-
|
|
16079
|
+
`/api/app/v1/${z}/entity/${D}/preset`,
|
|
16080
|
+
A
|
|
16081
16081
|
);
|
|
16082
16082
|
},
|
|
16083
|
-
|
|
16084
|
-
const
|
|
16083
|
+
updateEntity: async (D) => {
|
|
16084
|
+
const A = i();
|
|
16085
|
+
return await o(`/api/app/v1/${A}/entity`, D);
|
|
16086
|
+
},
|
|
16087
|
+
deletePreset: async (D, A) => {
|
|
16088
|
+
const z = i();
|
|
16085
16089
|
return await r(
|
|
16086
|
-
`/api/app/v1/${
|
|
16090
|
+
`/api/app/v1/${z}/entity/${D}/preset/${A}`
|
|
16087
16091
|
);
|
|
16088
16092
|
}
|
|
16089
16093
|
};
|
|
@@ -16158,12 +16162,12 @@ const lv = /* @__PURE__ */ Xr("entitiesStore", {
|
|
|
16158
16162
|
placeholder: "Select entity",
|
|
16159
16163
|
class: "w-full"
|
|
16160
16164
|
}, {
|
|
16161
|
-
value:
|
|
16165
|
+
value: te((d) => [
|
|
16162
16166
|
d.value ? (b(), x("div", cv, [
|
|
16163
16167
|
v("div", null, X(d.value.name), 1)
|
|
16164
16168
|
])) : (b(), x("span", dv, X(d.placeholder), 1))
|
|
16165
16169
|
]),
|
|
16166
|
-
option:
|
|
16170
|
+
option: te((d) => [
|
|
16167
16171
|
v("div", fv, [
|
|
16168
16172
|
v("div", null, X(d.option.name), 1)
|
|
16169
16173
|
])
|
|
@@ -16324,7 +16328,7 @@ const yv = ["onClick"], vv = ["onClick", "href"], wv = { class: "layout-menuitem
|
|
|
16324
16328
|
v("span", null, X(f.displayLabel), 1)
|
|
16325
16329
|
], 8, xv))
|
|
16326
16330
|
]))), 128))
|
|
16327
|
-
], 6)) :
|
|
16331
|
+
], 6)) : N("", !0)
|
|
16328
16332
|
], 2))), 128))
|
|
16329
16333
|
], 2)
|
|
16330
16334
|
], 4));
|
|
@@ -16479,7 +16483,7 @@ const qa = /* @__PURE__ */ Qe(Ev, [["render", $v]]), Ov = ["value"], Ga = {
|
|
|
16479
16483
|
value: e.modelValue,
|
|
16480
16484
|
onInput: o,
|
|
16481
16485
|
class: "w-full accent-blue-500"
|
|
16482
|
-
}, null, 40, Iv)) :
|
|
16486
|
+
}, null, 40, Iv)) : N("", !0);
|
|
16483
16487
|
}
|
|
16484
16488
|
};
|
|
16485
16489
|
function Tv() {
|
|
@@ -17063,7 +17067,7 @@ function o1(e, t, n, o, r, i) {
|
|
|
17063
17067
|
}) : r.mounted ? (b(), V(gu, {
|
|
17064
17068
|
key: 1,
|
|
17065
17069
|
to: n.appendTo
|
|
17066
|
-
}, [ue(e.$slots, "default")], 8, ["to"])) :
|
|
17070
|
+
}, [ue(e.$slots, "default")], 8, ["to"])) : N("", !0);
|
|
17067
17071
|
}
|
|
17068
17072
|
Ql.render = o1;
|
|
17069
17073
|
var r1 = function(t) {
|
|
@@ -17589,17 +17593,17 @@ var eu = {
|
|
|
17589
17593
|
}
|
|
17590
17594
|
},
|
|
17591
17595
|
onScrollPositionChange: function(t) {
|
|
17592
|
-
var n = this, o = t.target, r = this.isBoth(), i = this.isHorizontal(), a = this.getContentPosition(), s = function(B,
|
|
17593
|
-
return B ? B >
|
|
17594
|
-
}, u = function(B,
|
|
17595
|
-
return Math.floor(B / (
|
|
17596
|
-
}, l = function(B,
|
|
17597
|
-
return B <=
|
|
17598
|
-
}, c = function(B,
|
|
17599
|
-
return B <=
|
|
17600
|
-
}, d = function(B,
|
|
17601
|
-
var
|
|
17602
|
-
return B >=
|
|
17596
|
+
var n = this, o = t.target, r = this.isBoth(), i = this.isHorizontal(), a = this.getContentPosition(), s = function(B, P) {
|
|
17597
|
+
return B ? B > P ? B - P : B : 0;
|
|
17598
|
+
}, u = function(B, P) {
|
|
17599
|
+
return Math.floor(B / (P || B));
|
|
17600
|
+
}, l = function(B, P, M, j, ee, J) {
|
|
17601
|
+
return B <= ee ? ee : J ? M - j - ee : P + ee - 1;
|
|
17602
|
+
}, c = function(B, P, M, j, ee, J, re) {
|
|
17603
|
+
return B <= J ? 0 : Math.max(0, re ? B < P ? M : B - J : B > P ? M : B - 2 * J);
|
|
17604
|
+
}, d = function(B, P, M, j, ee, J) {
|
|
17605
|
+
var re = P + j + 2 * ee;
|
|
17606
|
+
return B >= ee && (re += ee + 1), n.getLast(re, J);
|
|
17603
17607
|
}, f = s(o.scrollTop, a.top), p = s(o.scrollLeft, a.left), m = r ? {
|
|
17604
17608
|
rows: 0,
|
|
17605
17609
|
cols: 0
|
|
@@ -17811,7 +17815,7 @@ function c1(e, t, n, o, r, i) {
|
|
|
17811
17815
|
key: 0,
|
|
17812
17816
|
class: "p-virtualscroller-spacer",
|
|
17813
17817
|
style: r.spacerStyle
|
|
17814
|
-
}, e.ptm("spacer")), null, 16)) :
|
|
17818
|
+
}, e.ptm("spacer")), null, 16)) : N("", !0), !e.loaderDisabled && e.showLoader && r.d_loading ? (b(), x("div", Y({
|
|
17815
17819
|
key: 1,
|
|
17816
17820
|
class: i.loaderClass
|
|
17817
17821
|
}, e.ptm("loader")), [e.$slots && e.$slots.loader ? (b(!0), x(ae, {
|
|
@@ -17823,12 +17827,12 @@ function c1(e, t, n, o, r, i) {
|
|
|
17823
17827
|
numCols: e.d_numItemsInViewport.cols
|
|
17824
17828
|
})
|
|
17825
17829
|
});
|
|
17826
|
-
}), 128)) :
|
|
17830
|
+
}), 128)) : N("", !0), ue(e.$slots, "loadingicon", {}, function() {
|
|
17827
17831
|
return [H(a, Y({
|
|
17828
17832
|
spin: "",
|
|
17829
17833
|
class: "p-virtualscroller-loading-icon"
|
|
17830
17834
|
}, e.ptm("loadingIcon")), null, 16)];
|
|
17831
|
-
})], 16)) :
|
|
17835
|
+
})], 16)) : N("", !0)], 16, u1));
|
|
17832
17836
|
}
|
|
17833
17837
|
eu.render = c1;
|
|
17834
17838
|
var d1 = function(t) {
|
|
@@ -19021,7 +19025,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19021
19025
|
}, e.ptm("clearIcon"), {
|
|
19022
19026
|
"data-pc-section": "clearicon"
|
|
19023
19027
|
}), null, 16, ["class", "onClick"]))];
|
|
19024
|
-
}) :
|
|
19028
|
+
}) : N("", !0), v("div", Y({
|
|
19025
19029
|
class: e.cx("dropdown")
|
|
19026
19030
|
}, e.ptm("dropdown")), [e.loading ? ue(e.$slots, "loadingicon", {
|
|
19027
19031
|
key: 0,
|
|
@@ -19048,7 +19052,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19048
19052
|
})], 16), H(m, {
|
|
19049
19053
|
appendTo: e.appendTo
|
|
19050
19054
|
}, {
|
|
19051
|
-
default:
|
|
19055
|
+
default: te(function() {
|
|
19052
19056
|
return [H(bu, Y({
|
|
19053
19057
|
name: "p-connected-overlay",
|
|
19054
19058
|
onEnter: i.onOverlayEnter,
|
|
@@ -19056,7 +19060,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19056
19060
|
onLeave: i.onOverlayLeave,
|
|
19057
19061
|
onAfterLeave: i.onOverlayAfterLeave
|
|
19058
19062
|
}, e.ptm("transition")), {
|
|
19059
|
-
default:
|
|
19063
|
+
default: te(function() {
|
|
19060
19064
|
return [r.overlayVisible ? (b(), x("div", Y({
|
|
19061
19065
|
key: 0,
|
|
19062
19066
|
ref: i.overlayRef,
|
|
@@ -19090,7 +19094,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19090
19094
|
unstyled: e.unstyled,
|
|
19091
19095
|
pt: e.ptm("pcFilterContainer")
|
|
19092
19096
|
}, {
|
|
19093
|
-
default:
|
|
19097
|
+
default: te(function() {
|
|
19094
19098
|
return [H(s, {
|
|
19095
19099
|
ref: "filterInput",
|
|
19096
19100
|
type: "text",
|
|
@@ -19113,7 +19117,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19113
19117
|
unstyled: e.unstyled,
|
|
19114
19118
|
pt: e.ptm("pcFilterIconContainer")
|
|
19115
19119
|
}, {
|
|
19116
|
-
default:
|
|
19120
|
+
default: te(function() {
|
|
19117
19121
|
return [ue(e.$slots, "filtericon", {}, function() {
|
|
19118
19122
|
return [e.filterIcon ? (b(), x("span", Y({
|
|
19119
19123
|
key: 0,
|
|
@@ -19133,7 +19137,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19133
19137
|
class: "p-hidden-accessible"
|
|
19134
19138
|
}, e.ptm("hiddenFilterResult"), {
|
|
19135
19139
|
"data-p-hidden-accessible": !0
|
|
19136
|
-
}), X(i.filterResultMessageText), 17)], 16)) :
|
|
19140
|
+
}), X(i.filterResultMessageText), 17)], 16)) : N("", !0), v("div", Y({
|
|
19137
19141
|
class: e.cx("listContainer"),
|
|
19138
19142
|
style: {
|
|
19139
19143
|
"max-height": i.virtualScrollerDisabled ? e.scrollHeight : ""
|
|
@@ -19149,7 +19153,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19149
19153
|
disabled: i.virtualScrollerDisabled,
|
|
19150
19154
|
pt: e.ptm("virtualScroller")
|
|
19151
19155
|
}), Er({
|
|
19152
|
-
content:
|
|
19156
|
+
content: te(function(g) {
|
|
19153
19157
|
var y = g.styleClass, C = g.contentRef, S = g.items, $ = g.getItemOptions, I = g.contentStyle, _ = g.itemSize;
|
|
19154
19158
|
return [v("ul", Y({
|
|
19155
19159
|
ref: function(k) {
|
|
@@ -19215,7 +19219,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19215
19219
|
key: 1,
|
|
19216
19220
|
class: e.cx("optionBlankIcon"),
|
|
19217
19221
|
ref_for: !0
|
|
19218
|
-
}, e.ptm("optionBlankIcon")), null, 16, ["class"]))], 64)) :
|
|
19222
|
+
}, e.ptm("optionBlankIcon")), null, 16, ["class"]))], 64)) : N("", !0), ue(e.$slots, "option", {
|
|
19219
19223
|
option: E,
|
|
19220
19224
|
selected: i.isSelected(E),
|
|
19221
19225
|
index: i.getOptionIndex(k, $)
|
|
@@ -19241,12 +19245,12 @@ function I1(e, t, n, o, r, i) {
|
|
|
19241
19245
|
"data-p-hidden-accessible": !0
|
|
19242
19246
|
}), [ue(e.$slots, "empty", {}, function() {
|
|
19243
19247
|
return [Ge(X(i.emptyMessageText), 1)];
|
|
19244
|
-
})], 16)) :
|
|
19248
|
+
})], 16)) : N("", !0)], 16, E1)];
|
|
19245
19249
|
}),
|
|
19246
19250
|
_: 2
|
|
19247
19251
|
}, [e.$slots.loader ? {
|
|
19248
19252
|
name: "loader",
|
|
19249
|
-
fn:
|
|
19253
|
+
fn: te(function(g) {
|
|
19250
19254
|
var y = g.options;
|
|
19251
19255
|
return [ue(e.$slots, "loader", {
|
|
19252
19256
|
options: y
|
|
@@ -19263,7 +19267,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19263
19267
|
class: "p-hidden-accessible"
|
|
19264
19268
|
}, e.ptm("hiddenEmptyMessage"), {
|
|
19265
19269
|
"data-p-hidden-accessible": !0
|
|
19266
|
-
}), X(i.emptyMessageText), 17)) :
|
|
19270
|
+
}), X(i.emptyMessageText), 17)) : N("", !0), v("span", Y({
|
|
19267
19271
|
role: "status",
|
|
19268
19272
|
"aria-live": "polite",
|
|
19269
19273
|
class: "p-hidden-accessible"
|
|
@@ -19281,7 +19285,7 @@ function I1(e, t, n, o, r, i) {
|
|
|
19281
19285
|
}, e.ptm("hiddenLastFocusableEl"), {
|
|
19282
19286
|
"data-p-hidden-accessible": !0,
|
|
19283
19287
|
"data-p-hidden-focusable": !0
|
|
19284
|
-
}), null, 16)], 16)) :
|
|
19288
|
+
}), null, 16)], 16)) : N("", !0)];
|
|
19285
19289
|
}),
|
|
19286
19290
|
_: 3
|
|
19287
19291
|
}, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
|
|
@@ -19348,9 +19352,9 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
19348
19352
|
setup(e, { emit: t }) {
|
|
19349
19353
|
const n = tt(), o = () => n.getAppId(), r = e;
|
|
19350
19354
|
console.log("DynamicSelection props:", r);
|
|
19351
|
-
const i = t, a = O(r.modelValue), s = O(null), u = O([]), l =
|
|
19355
|
+
const i = t, a = O(r.modelValue), s = O(null), u = O([]), l = Z(
|
|
19352
19356
|
() => r.options.length ? "label" : r.displayField
|
|
19353
|
-
), c =
|
|
19357
|
+
), c = Z(
|
|
19354
19358
|
() => r.options.length ? "value" : r.valueField
|
|
19355
19359
|
);
|
|
19356
19360
|
function d(h, g) {
|
|
@@ -19421,12 +19425,12 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
19421
19425
|
placeholder: "Select an option",
|
|
19422
19426
|
class: "w-full"
|
|
19423
19427
|
}, {
|
|
19424
|
-
value:
|
|
19428
|
+
value: te((C) => [
|
|
19425
19429
|
s.value ? (b(), x("div", _1, [
|
|
19426
19430
|
v("div", null, X(s.value[l.value] || s.value.label), 1)
|
|
19427
19431
|
])) : (b(), x("span", B1, X(C.placeholder), 1))
|
|
19428
19432
|
]),
|
|
19429
|
-
option:
|
|
19433
|
+
option: te((C) => [
|
|
19430
19434
|
v("div", F1, [
|
|
19431
19435
|
v("div", null, X(C.option[l.value] || C.option.label), 1)
|
|
19432
19436
|
])
|
|
@@ -19483,7 +19487,7 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
19483
19487
|
setup(e, { emit: t }) {
|
|
19484
19488
|
const n = O(null), o = e, r = t;
|
|
19485
19489
|
ot(e, "modelValue");
|
|
19486
|
-
const i =
|
|
19490
|
+
const i = Z(() => `${P1}/${o.entity}/record`), a = O(!0), { hasMatchingRoleAndPermissions: s } = En();
|
|
19487
19491
|
Ve(async () => {
|
|
19488
19492
|
a.value = await s(o.roles, o.permissions);
|
|
19489
19493
|
});
|
|
@@ -19628,12 +19632,12 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
19628
19632
|
setup(e, { emit: t }) {
|
|
19629
19633
|
const n = tt(), o = () => n.getAppId(), r = e;
|
|
19630
19634
|
console.log("DynamicMultiSelection props:", r);
|
|
19631
|
-
const i = t, a = O(Array.isArray(r.modelValue) ? [...r.modelValue] : []), s = O([]), u =
|
|
19635
|
+
const i = t, a = O(Array.isArray(r.modelValue) ? [...r.modelValue] : []), s = O([]), u = Z(
|
|
19632
19636
|
() => r.options.length ? "label" : r.displayField
|
|
19633
|
-
), l =
|
|
19637
|
+
), l = Z(() => !r.valueField), c = Z(
|
|
19634
19638
|
() => l.value ? void 0 : r.options.length ? "value" : r.valueField
|
|
19635
19639
|
);
|
|
19636
|
-
|
|
19640
|
+
Z(
|
|
19637
19641
|
() => r.options.length ? "value" : r.valueField
|
|
19638
19642
|
);
|
|
19639
19643
|
function d(m, h) {
|
|
@@ -19698,7 +19702,7 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
19698
19702
|
display: "chip",
|
|
19699
19703
|
class: "w-full md:w-56"
|
|
19700
19704
|
}, {
|
|
19701
|
-
option:
|
|
19705
|
+
option: te((y) => [
|
|
19702
19706
|
v("div", V1, [
|
|
19703
19707
|
v("div", null, X(y.option[u.value] || y.option.label), 1)
|
|
19704
19708
|
])
|
|
@@ -19865,7 +19869,7 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
19865
19869
|
}
|
|
19866
19870
|
},
|
|
19867
19871
|
setup(e) {
|
|
19868
|
-
const t = e, n = O(""), o = O(""), r = O(t.rememberMe), i =
|
|
19872
|
+
const t = e, n = O(""), o = O(""), r = O(t.rememberMe), i = Z(() => {
|
|
19869
19873
|
let a = "", s = "";
|
|
19870
19874
|
switch (t.buttonSize) {
|
|
19871
19875
|
case "small":
|
|
@@ -19969,7 +19973,7 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
19969
19973
|
}
|
|
19970
19974
|
},
|
|
19971
19975
|
setup(e) {
|
|
19972
|
-
const t = e, n = O(""), o = O(""), r = O(""), i = O(t.agreeToTerms), a =
|
|
19976
|
+
const t = e, n = O(""), o = O(""), r = O(""), i = O(t.agreeToTerms), a = Z(() => {
|
|
19973
19977
|
let s = "", u = "";
|
|
19974
19978
|
switch (t.buttonSize) {
|
|
19975
19979
|
case "medium":
|
|
@@ -20100,7 +20104,7 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
20100
20104
|
$ === "library" && (d.value = I), $ === "category" && (f.value = I), m();
|
|
20101
20105
|
}, y = ($) => {
|
|
20102
20106
|
r.value && !r.value.contains($.target) && (a.value = !1);
|
|
20103
|
-
}, C =
|
|
20107
|
+
}, C = Z(() => u.value.slice(0, mw));
|
|
20104
20108
|
Ve(() => {
|
|
20105
20109
|
p(), document.addEventListener("click", y);
|
|
20106
20110
|
}), bs(() => {
|
|
@@ -20119,7 +20123,7 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
20119
20123
|
key: 0,
|
|
20120
20124
|
class: Ne(["fa", i.value, "fa-lg", "text-gray-600", "mr-2"]),
|
|
20121
20125
|
style: { "min-width": "20px" }
|
|
20122
|
-
}, null, 2)) :
|
|
20126
|
+
}, null, 2)) : N("", !0),
|
|
20123
20127
|
wt(v("input", {
|
|
20124
20128
|
"onUpdate:modelValue": I[0] || (I[0] = (_) => i.value = _),
|
|
20125
20129
|
onFocus: I[1] || (I[1] = (_) => a.value = !0),
|
|
@@ -20164,7 +20168,7 @@ const T1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, t
|
|
|
20164
20168
|
v("div", fw, X(_.name), 1)
|
|
20165
20169
|
], 8, dw))), 128))
|
|
20166
20170
|
])) : (b(), x("div", pw, "No icons found"))
|
|
20167
|
-
])) :
|
|
20171
|
+
])) : N("", !0)
|
|
20168
20172
|
], 512));
|
|
20169
20173
|
}
|
|
20170
20174
|
}, hw = {
|
|
@@ -20226,7 +20230,7 @@ function bw() {
|
|
|
20226
20230
|
at.menuMode === "overlay" && (Je.overlayMenuActive = !Je.overlayMenuActive), window.innerWidth > 991 ? Je.staticMenuDesktopInactive = !Je.staticMenuDesktopInactive : Je.staticMenuMobileActive = !Je.staticMenuMobileActive;
|
|
20227
20231
|
}, o = () => {
|
|
20228
20232
|
r.value && (Je.overlayMenuActive = !1, Je.overlaySubmenuActive = !1, Je.staticMenuMobileActive = !1, Je.menuHoverActive = !1, Je.configSidebarVisible = !1), Je.configSidebarVisible = !Je.configSidebarVisible;
|
|
20229
|
-
}, r =
|
|
20233
|
+
}, r = Z(() => Je.overlayMenuActive || Je.staticMenuMobileActive || Je.overlaySubmenuActive), i = Z(() => window.innerWidth > 991), a = Z(() => at.menuMode === "slim"), s = Z(() => at.menuMode === "slim-plus"), u = Z(() => at.menuMode === "horizontal"), l = Z(() => at.menuMode === "overlay"), c = Z(() => at.darkTheme), d = Z(() => at.primary), f = Z(() => at.surface);
|
|
20230
20234
|
return {
|
|
20231
20235
|
layoutConfig: at,
|
|
20232
20236
|
layoutState: Je,
|
|
@@ -25827,7 +25831,7 @@ const ox = { style: {
|
|
|
25827
25831
|
function i() {
|
|
25828
25832
|
n.onCancel(), o("update:modelValue", !1);
|
|
25829
25833
|
}
|
|
25830
|
-
const a =
|
|
25834
|
+
const a = Z(() => {
|
|
25831
25835
|
let u = "#2563eb";
|
|
25832
25836
|
switch (n.type) {
|
|
25833
25837
|
case "success":
|
|
@@ -25849,7 +25853,7 @@ const ox = { style: {
|
|
|
25849
25853
|
border: "none",
|
|
25850
25854
|
cursor: "pointer"
|
|
25851
25855
|
};
|
|
25852
|
-
}), s =
|
|
25856
|
+
}), s = Z(() => {
|
|
25853
25857
|
let u = "#eff6ff", l = "1px solid #dbeafe";
|
|
25854
25858
|
switch (n.type) {
|
|
25855
25859
|
case "success":
|