codesaaz-core 0.0.56 → 0.0.58
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 +266 -258
- package/dist/codesaaz.umd.js +19 -19
- package/package.json +1 -1
package/dist/codesaaz.es.js
CHANGED
|
@@ -133,7 +133,7 @@ function ls(t, e, n = {}, o, r, i) {
|
|
|
133
133
|
return N instanceof Promise ? N.then((oe) => (xn(P, oe), oe)).catch((oe) => (xn(H, oe), Promise.reject(oe))) : (xn(P, N), N);
|
|
134
134
|
};
|
|
135
135
|
return D[ui] = !0, D[ar] = E, D;
|
|
136
|
-
},
|
|
136
|
+
}, I = {
|
|
137
137
|
_p: o,
|
|
138
138
|
// _s: scope,
|
|
139
139
|
$id: t,
|
|
@@ -151,7 +151,7 @@ function ls(t, e, n = {}, o, r, i) {
|
|
|
151
151
|
return D;
|
|
152
152
|
},
|
|
153
153
|
$dispose: S
|
|
154
|
-
}, R = Ft(
|
|
154
|
+
}, R = Ft(I);
|
|
155
155
|
o._s.set(t, R);
|
|
156
156
|
const k = (o._a && o._a.runWithContext || ru)(() => o._e.run(() => (a = jl()).run(() => e({ action: x }))));
|
|
157
157
|
for (const y in k) {
|
|
@@ -539,10 +539,10 @@ function qo(t, e, n) {
|
|
|
539
539
|
if (F.endsWith(g, "{}"))
|
|
540
540
|
g = o ? g : g.slice(0, -2), m = JSON.stringify(m);
|
|
541
541
|
else if (F.isArray(m) && Yu(m) || (F.isFileList(m) || F.endsWith(g, "[]")) && (v = F.toArray(m)))
|
|
542
|
-
return g = vs(g), v.forEach(function(x,
|
|
542
|
+
return g = vs(g), v.forEach(function(x, I) {
|
|
543
543
|
!(F.isUndefined(x) || x === null) && e.append(
|
|
544
544
|
// eslint-disable-next-line no-nested-ternary
|
|
545
|
-
a === !0 ? fi([g],
|
|
545
|
+
a === !0 ? fi([g], I, i) : a === null ? g : g + "[]",
|
|
546
546
|
s(x)
|
|
547
547
|
);
|
|
548
548
|
}), !1;
|
|
@@ -1250,16 +1250,16 @@ const $s = (t) => {
|
|
|
1250
1250
|
}, h.onerror = function() {
|
|
1251
1251
|
o(new be("Network Error", be.ERR_NETWORK, t, h)), h = null;
|
|
1252
1252
|
}, h.ontimeout = function() {
|
|
1253
|
-
let
|
|
1253
|
+
let I = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
1254
1254
|
const R = r.transitional || xs;
|
|
1255
|
-
r.timeoutErrorMessage && (
|
|
1256
|
-
|
|
1255
|
+
r.timeoutErrorMessage && (I = r.timeoutErrorMessage), o(new be(
|
|
1256
|
+
I,
|
|
1257
1257
|
R.clarifyTimeoutError ? be.ETIMEDOUT : be.ECONNABORTED,
|
|
1258
1258
|
t,
|
|
1259
1259
|
h
|
|
1260
1260
|
)), h = null;
|
|
1261
|
-
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && F.forEach(a.toJSON(), function(
|
|
1262
|
-
h.setRequestHeader(R,
|
|
1261
|
+
}, i === void 0 && a.setContentType(null), "setRequestHeader" in h && F.forEach(a.toJSON(), function(I, R) {
|
|
1262
|
+
h.setRequestHeader(R, I);
|
|
1263
1263
|
}), F.isUndefined(r.withCredentials) || (h.withCredentials = !!r.withCredentials), l && l !== "json" && (h.responseType = r.responseType), s && ([d, m] = Ao(s, !0), h.addEventListener("progress", d)), c && h.upload && ([f, p] = Ao(c), h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", p)), (r.cancelToken || r.signal) && (u = (x) => {
|
|
1264
1264
|
h && (o(!x || x.type ? new Rn(null, t, h) : x), h.abort(), h = null);
|
|
1265
1265
|
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
@@ -1420,8 +1420,8 @@ const Bc = async (t) => {
|
|
|
1420
1420
|
method: "POST",
|
|
1421
1421
|
body: o,
|
|
1422
1422
|
duplex: "half"
|
|
1423
|
-
}),
|
|
1424
|
-
if (F.isFormData(o) && (
|
|
1423
|
+
}), T;
|
|
1424
|
+
if (F.isFormData(o) && (T = R.headers.get("content-type")) && u.setContentType(T), R.body) {
|
|
1425
1425
|
const [k, y] = hi(
|
|
1426
1426
|
h,
|
|
1427
1427
|
Ao(bi(c))
|
|
@@ -1447,8 +1447,8 @@ const Bc = async (t) => {
|
|
|
1447
1447
|
["status", "statusText", "headers"].forEach((E) => {
|
|
1448
1448
|
R[E] = S[E];
|
|
1449
1449
|
});
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1450
|
+
const T = F.toFiniteNumber(S.headers.get("content-length")), [k, y] = l && hi(
|
|
1451
|
+
T,
|
|
1452
1452
|
Ao(bi(l), !0)
|
|
1453
1453
|
) || [];
|
|
1454
1454
|
S = new Response(
|
|
@@ -1459,10 +1459,10 @@ const Bc = async (t) => {
|
|
|
1459
1459
|
);
|
|
1460
1460
|
}
|
|
1461
1461
|
s = s || "text";
|
|
1462
|
-
let
|
|
1463
|
-
return !x && g && g(), await new Promise((R,
|
|
1464
|
-
Es(R,
|
|
1465
|
-
data:
|
|
1462
|
+
let I = await Po[F.findKey(Po, s) || "text"](S, t);
|
|
1463
|
+
return !x && g && g(), await new Promise((R, T) => {
|
|
1464
|
+
Es(R, T, {
|
|
1465
|
+
data: I,
|
|
1466
1466
|
headers: dt.from(S.headers),
|
|
1467
1467
|
status: S.status,
|
|
1468
1468
|
statusText: S.statusText,
|
|
@@ -2075,11 +2075,11 @@ function zc(t = "") {
|
|
|
2075
2075
|
sortable: !0,
|
|
2076
2076
|
displayFormatKey: P.displayFormatKey,
|
|
2077
2077
|
displayFormat: P.displayFormat
|
|
2078
|
-
})),
|
|
2078
|
+
})), I = (B) => {
|
|
2079
2079
|
l.value = B.sortField, c.value = B.sortOrder, d.value = 0, S();
|
|
2080
2080
|
}, R = (B) => {
|
|
2081
2081
|
s.value = B.rows, u.value = B.page, d.value = B.first, S();
|
|
2082
|
-
},
|
|
2082
|
+
}, T = () => {
|
|
2083
2083
|
S();
|
|
2084
2084
|
}, k = () => {
|
|
2085
2085
|
S();
|
|
@@ -2126,9 +2126,9 @@ function zc(t = "") {
|
|
|
2126
2126
|
onFullTextSearch: k,
|
|
2127
2127
|
getDatatypeByField: E,
|
|
2128
2128
|
getColumnDatatype: y,
|
|
2129
|
-
onSort:
|
|
2129
|
+
onSort: I,
|
|
2130
2130
|
onPage: R,
|
|
2131
|
-
onFilter:
|
|
2131
|
+
onFilter: T,
|
|
2132
2132
|
fetchEntityFilterData: S,
|
|
2133
2133
|
fetchEntityByName: v
|
|
2134
2134
|
};
|
|
@@ -2812,13 +2812,13 @@ function js(t) {
|
|
|
2812
2812
|
}, {})), S = ne(() => u.value.reduce((O, $) => (O[Ce($.path)] = { name: Ce($.path) || "", label: $.label || "" }, O), {})), x = ne(() => u.value.reduce((O, $) => {
|
|
2813
2813
|
var j;
|
|
2814
2814
|
return O[Ce($.path)] = (j = $.bails) !== null && j !== void 0 ? j : !0, O;
|
|
2815
|
-
}, {})),
|
|
2815
|
+
}, {})), I = Object.assign({}, {}), R = (e = void 0) !== null && e !== void 0 ? e : !1, { initialValues: T, originalInitialValues: k, setInitialValues: y } = _d(u, s), E = $d(u, s, k, v), D = ne(() => u.value.reduce((O, $) => {
|
|
2816
2816
|
const j = Ut(s, Ce($.path));
|
|
2817
2817
|
return zt(O, Ce($.path), j), O;
|
|
2818
2818
|
}, {})), B = void 0;
|
|
2819
2819
|
function P(O, $) {
|
|
2820
2820
|
var j, te;
|
|
2821
|
-
const pe = ne(() => Ut(
|
|
2821
|
+
const pe = ne(() => Ut(T.value, Ce(O))), he = d.value[Ce(O)], le = ($ == null ? void 0 : $.type) === "checkbox" || ($ == null ? void 0 : $.type) === "radio";
|
|
2822
2822
|
if (he && le) {
|
|
2823
2823
|
he.multiple = !0;
|
|
2824
2824
|
const Le = r++;
|
|
@@ -2839,7 +2839,7 @@ function js(t) {
|
|
|
2839
2839
|
touched: !1,
|
|
2840
2840
|
pending: !1,
|
|
2841
2841
|
valid: !0,
|
|
2842
|
-
validated: !!(!((j =
|
|
2842
|
+
validated: !!(!((j = I[J]) === null || j === void 0) && j.length),
|
|
2843
2843
|
required: re,
|
|
2844
2844
|
initialValue: pe,
|
|
2845
2845
|
errors: Kl([]),
|
|
@@ -2856,7 +2856,7 @@ function js(t) {
|
|
|
2856
2856
|
validate: $ == null ? void 0 : $.validate,
|
|
2857
2857
|
dirty: ne(() => !qn(G(L), G(pe)))
|
|
2858
2858
|
});
|
|
2859
|
-
return u.value.push(Re), d.value[J] = Re, p(), v.value[J] && !
|
|
2859
|
+
return u.value.push(Re), d.value[J] = Re, p(), v.value[J] && !I[J] && mt(() => {
|
|
2860
2860
|
st(J, { mode: "silent" });
|
|
2861
2861
|
}), Wt(O) && Ae(O, (Le) => {
|
|
2862
2862
|
p();
|
|
@@ -2994,7 +2994,7 @@ function js(t) {
|
|
|
2994
2994
|
getPathState: oe,
|
|
2995
2995
|
unsetPathValue: ce,
|
|
2996
2996
|
removePathState: de,
|
|
2997
|
-
initialValues:
|
|
2997
|
+
initialValues: T,
|
|
2998
2998
|
getAllPathStates: () => u.value,
|
|
2999
2999
|
destroyPath: we,
|
|
3000
3000
|
isFieldTouched: Z,
|
|
@@ -3057,7 +3057,7 @@ function js(t) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
function _e(O, $) {
|
|
3059
3059
|
var j;
|
|
3060
|
-
const te = $ && "value" in $ ? $.value : Ut(
|
|
3060
|
+
const te = $ && "value" in $ ? $.value : Ut(T.value, O), pe = oe(O);
|
|
3061
3061
|
pe && (pe.__flags.pendingReset = !0), lt(O, De(te), !0), Ne(O, te, !1), ht(O, (j = $ == null ? void 0 : $.touched) !== null && j !== void 0 ? j : !1), m(O, ($ == null ? void 0 : $.errors) || []), mt(() => {
|
|
3062
3062
|
pe && (pe.__flags.pendingReset = !1);
|
|
3063
3063
|
});
|
|
@@ -3110,13 +3110,13 @@ function js(t) {
|
|
|
3110
3110
|
return te && ($ == null ? void 0 : $.mode) !== "silent" && (te.validated = !0), te != null && te.validate ? te.validate($) : (!te && (j = $ == null ? void 0 : $.warn), Promise.resolve({ errors: [], valid: !0 }));
|
|
3111
3111
|
}
|
|
3112
3112
|
function Tt(O) {
|
|
3113
|
-
Ti(
|
|
3113
|
+
Ti(T.value, O);
|
|
3114
3114
|
}
|
|
3115
3115
|
function Ke(O, $, j = !1) {
|
|
3116
3116
|
lt(O, $), zt(s, O, $), j && zt(k.value, O, De($));
|
|
3117
3117
|
}
|
|
3118
3118
|
function lt(O, $, j = !1) {
|
|
3119
|
-
zt(
|
|
3119
|
+
zt(T.value, O, De($)), j && zt(k.value, O, De($));
|
|
3120
3120
|
}
|
|
3121
3121
|
async function bt() {
|
|
3122
3122
|
const O = G(B);
|
|
@@ -3270,21 +3270,21 @@ function Id() {
|
|
|
3270
3270
|
normalizePath: u,
|
|
3271
3271
|
setter: function(v) {
|
|
3272
3272
|
var S = u(v);
|
|
3273
|
-
return c.get(v) || c.set(v, function(
|
|
3274
|
-
for (var
|
|
3275
|
-
var E = S[
|
|
3273
|
+
return c.get(v) || c.set(v, function(I, R) {
|
|
3274
|
+
for (var T = 0, k = S.length, y = I; T < k - 1; ) {
|
|
3275
|
+
var E = S[T];
|
|
3276
3276
|
if (E === "__proto__" || E === "constructor" || E === "prototype")
|
|
3277
|
-
return
|
|
3278
|
-
y = y[S[
|
|
3277
|
+
return I;
|
|
3278
|
+
y = y[S[T++]];
|
|
3279
3279
|
}
|
|
3280
|
-
y[S[
|
|
3280
|
+
y[S[T]] = R;
|
|
3281
3281
|
});
|
|
3282
3282
|
},
|
|
3283
3283
|
getter: function(v, S) {
|
|
3284
3284
|
var x = u(v);
|
|
3285
3285
|
return s.get(v) || s.set(v, function(R) {
|
|
3286
|
-
for (var
|
|
3287
|
-
if (R != null || !S) R = R[x[
|
|
3286
|
+
for (var T = 0, k = x.length; T < k; )
|
|
3287
|
+
if (R != null || !S) R = R[x[T++]];
|
|
3288
3288
|
else return;
|
|
3289
3289
|
return R;
|
|
3290
3290
|
});
|
|
@@ -3310,9 +3310,9 @@ function Id() {
|
|
|
3310
3310
|
return v.match(e) || [""];
|
|
3311
3311
|
}
|
|
3312
3312
|
function d(v, S, x) {
|
|
3313
|
-
var
|
|
3314
|
-
for (
|
|
3315
|
-
R = v[
|
|
3313
|
+
var I = v.length, R, T, k, y;
|
|
3314
|
+
for (T = 0; T < I; T++)
|
|
3315
|
+
R = v[T], R && (h(R) && (R = '"' + R + '"'), y = p(R), k = !y && /^\d+$/.test(R), S.call(x, R, y, k, T, v));
|
|
3316
3316
|
}
|
|
3317
3317
|
function p(v) {
|
|
3318
3318
|
return typeof v == "string" && v && ["'", '"'].indexOf(v.charAt(0)) !== -1;
|
|
@@ -3656,7 +3656,7 @@ function Sn(t) {
|
|
|
3656
3656
|
const H = new ct(ct.formatError(B.message || d, P), n, P.path, B.type || s, P.disableStackTrace);
|
|
3657
3657
|
return H.params = P, H;
|
|
3658
3658
|
}
|
|
3659
|
-
const
|
|
3659
|
+
const I = h ? l : c;
|
|
3660
3660
|
let R = {
|
|
3661
3661
|
path: o,
|
|
3662
3662
|
parent: m,
|
|
@@ -3668,26 +3668,26 @@ function Sn(t) {
|
|
|
3668
3668
|
originalValue: i,
|
|
3669
3669
|
schema: a
|
|
3670
3670
|
};
|
|
3671
|
-
const
|
|
3672
|
-
ct.isError(B) ?
|
|
3671
|
+
const T = (B) => {
|
|
3672
|
+
ct.isError(B) ? I(B) : B ? c(null) : I(x());
|
|
3673
3673
|
}, k = (B) => {
|
|
3674
|
-
ct.isError(B) ?
|
|
3674
|
+
ct.isError(B) ? I(B) : l(B);
|
|
3675
3675
|
};
|
|
3676
3676
|
if (p && fn(n))
|
|
3677
|
-
return
|
|
3677
|
+
return T(!0);
|
|
3678
3678
|
let E;
|
|
3679
3679
|
try {
|
|
3680
3680
|
var D;
|
|
3681
3681
|
if (E = u.call(R, n, R), typeof ((D = E) == null ? void 0 : D.then) == "function") {
|
|
3682
3682
|
if (r.sync)
|
|
3683
3683
|
throw new Error(`Validation test of type: "${R.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);
|
|
3684
|
-
return Promise.resolve(E).then(
|
|
3684
|
+
return Promise.resolve(E).then(T, k);
|
|
3685
3685
|
}
|
|
3686
3686
|
} catch (B) {
|
|
3687
3687
|
k(B);
|
|
3688
3688
|
return;
|
|
3689
3689
|
}
|
|
3690
|
-
|
|
3690
|
+
T(E);
|
|
3691
3691
|
}
|
|
3692
3692
|
return e.OPTIONS = t, e;
|
|
3693
3693
|
}
|
|
@@ -4799,7 +4799,7 @@ function ei(t, e, n) {
|
|
|
4799
4799
|
z.validationErrors && (s.value = JSON.parse(JSON.stringify(z.validationErrors))), console.error("Error fetching entity:", z.errorMessage);
|
|
4800
4800
|
} finally {
|
|
4801
4801
|
}
|
|
4802
|
-
},
|
|
4802
|
+
}, I = async (Y, z) => {
|
|
4803
4803
|
try {
|
|
4804
4804
|
let X = await o.addRecord(t, z);
|
|
4805
4805
|
if (X && X.response) {
|
|
@@ -4818,7 +4818,7 @@ function ei(t, e, n) {
|
|
|
4818
4818
|
z.validationErrors && (s.value = JSON.parse(JSON.stringify(z.errvalidationErrorsors))), console.error("Error fetching entity:", z.errorMessage);
|
|
4819
4819
|
} finally {
|
|
4820
4820
|
}
|
|
4821
|
-
},
|
|
4821
|
+
}, T = async (Y, z, X) => {
|
|
4822
4822
|
try {
|
|
4823
4823
|
let ce = await o.saveRelatedEntityRecord(Y, z, X);
|
|
4824
4824
|
ce && ce.response && n("onSaveDialog", { entityName: t, enityRecordId: z });
|
|
@@ -4857,7 +4857,7 @@ function ei(t, e, n) {
|
|
|
4857
4857
|
return;
|
|
4858
4858
|
}
|
|
4859
4859
|
const z = { dataDefinitions: E() };
|
|
4860
|
-
e ? await R(z) : Y.relationType == "MANY_TO_ONE" ? await
|
|
4860
|
+
e ? await R(z) : Y.relationType == "MANY_TO_ONE" ? await I(Y, z) : await x(z);
|
|
4861
4861
|
}, B = () => {
|
|
4862
4862
|
c.value = Zr().shape(
|
|
4863
4863
|
l.value.reduce((Y, z) => (z.autoGenerated || (Y[z.name] = Qr().nullable(!1).test({
|
|
@@ -4937,7 +4937,7 @@ function ei(t, e, n) {
|
|
|
4937
4937
|
fetchRecord: v,
|
|
4938
4938
|
getRelatedEntityRecordById: S,
|
|
4939
4939
|
cancleRecord: N,
|
|
4940
|
-
saveRelatedEntityRecord:
|
|
4940
|
+
saveRelatedEntityRecord: T
|
|
4941
4941
|
};
|
|
4942
4942
|
}
|
|
4943
4943
|
const df = {
|
|
@@ -5143,7 +5143,7 @@ const df = {
|
|
|
5143
5143
|
!v.autoGenerated && !v.foreignKey ? (b(), M(Yo, {
|
|
5144
5144
|
key: 0,
|
|
5145
5145
|
modelValue: G(r)[v.name],
|
|
5146
|
-
"onUpdate:modelValue": (
|
|
5146
|
+
"onUpdate:modelValue": (I) => G(r)[v.name] = I,
|
|
5147
5147
|
column: v,
|
|
5148
5148
|
errors: (x = G(a)[v.name]) == null ? void 0 : x.messages,
|
|
5149
5149
|
onInput: G(c)
|
|
@@ -5151,7 +5151,7 @@ const df = {
|
|
|
5151
5151
|
!v.autoGenerated && v.foreignKey ? (b(), M(Js, {
|
|
5152
5152
|
key: 1,
|
|
5153
5153
|
modelValue: G(r)[v.name],
|
|
5154
|
-
"onUpdate:modelValue": (
|
|
5154
|
+
"onUpdate:modelValue": (I) => G(r)[v.name] = I,
|
|
5155
5155
|
entityName: v.foreignKey.referencedEntityName,
|
|
5156
5156
|
columnName: v.name,
|
|
5157
5157
|
relatedEntityColumn: v.foreignKey.referencedColumnName
|
|
@@ -5641,7 +5641,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
5641
5641
|
setup(t) {
|
|
5642
5642
|
const e = et(), n = t;
|
|
5643
5643
|
console.log("columnsToShow", n.columnsToShow);
|
|
5644
|
-
const o = yn(), r = _(n.entityName || o.params.entityName), i = _({}), a = _(""), l = _(!1), c = _(!1), { items: s, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: v, filterToSend: S, primarayKeyColumn: x, fullTextSearch:
|
|
5644
|
+
const o = yn(), r = _(n.entityName || o.params.entityName), i = _({}), a = _(""), l = _(!1), c = _(!1), { items: s, headers: u, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: v, filterToSend: S, primarayKeyColumn: x, fullTextSearch: I, listingResponse: R, onFullTextSearch: T, getDatatypeByField: k, getColumnDatatype: y, onSort: E, onPage: D, onFilter: B, fetchEntityFilterData: P, fetchEntityByName: H } = zc(r.value), A = _();
|
|
5645
5645
|
let q = _(!1);
|
|
5646
5646
|
const N = (se) => {
|
|
5647
5647
|
i.value = se.reduce((de, we) => {
|
|
@@ -5784,13 +5784,13 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
5784
5784
|
default: Q(() => [
|
|
5785
5785
|
V(pt, {
|
|
5786
5786
|
class: "pi pi-search",
|
|
5787
|
-
onClick: de[2] || (de[2] = (Ie) => G(
|
|
5787
|
+
onClick: de[2] || (de[2] = (Ie) => G(T)())
|
|
5788
5788
|
}),
|
|
5789
5789
|
V(G(si), {
|
|
5790
5790
|
class: "w-full sm:w-auto",
|
|
5791
|
-
onKeyup: de[3] || (de[3] = jr((Ie) => G(
|
|
5792
|
-
modelValue: G(
|
|
5793
|
-
"onUpdate:modelValue": de[4] || (de[4] = (Ie) => Wt(
|
|
5791
|
+
onKeyup: de[3] || (de[3] = jr((Ie) => G(T)(), ["enter"])),
|
|
5792
|
+
modelValue: G(I),
|
|
5793
|
+
"onUpdate:modelValue": de[4] || (de[4] = (Ie) => Wt(I) ? I.value = Ie : null),
|
|
5794
5794
|
placeholder: "Search..."
|
|
5795
5795
|
}, null, 8, ["modelValue"])
|
|
5796
5796
|
]),
|
|
@@ -6050,7 +6050,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6050
6050
|
startsWith: "STARTS_WITH",
|
|
6051
6051
|
notContains: "NOT_CONTAINS",
|
|
6052
6052
|
endsWith: "ENDS_WITH"
|
|
6053
|
-
},
|
|
6053
|
+
}, I = {
|
|
6054
6054
|
gt: "is greater than",
|
|
6055
6055
|
dateAfter: "is after",
|
|
6056
6056
|
equals: "is equals",
|
|
@@ -6068,9 +6068,9 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6068
6068
|
endsWith: "ends with"
|
|
6069
6069
|
};
|
|
6070
6070
|
Ze(() => {
|
|
6071
|
-
|
|
6071
|
+
T();
|
|
6072
6072
|
});
|
|
6073
|
-
const R = (Z) => e.linkedEntity.list.some((W) => W[s.value.name] === Z),
|
|
6073
|
+
const R = (Z) => e.linkedEntity.list.some((W) => W[s.value.name] === Z), T = async () => {
|
|
6074
6074
|
try {
|
|
6075
6075
|
const Z = {
|
|
6076
6076
|
sortBy: [u.value],
|
|
@@ -6216,7 +6216,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6216
6216
|
const $e = Z[W];
|
|
6217
6217
|
delete $e.editing, $e.columnName && $e.operator && $e.value && ($e.columnType = tt($e.columnName), $e.operator = x[$e.operator], v.value.push($e));
|
|
6218
6218
|
}
|
|
6219
|
-
|
|
6219
|
+
T();
|
|
6220
6220
|
}, Ne = (Z) => Z.map((W) => ({
|
|
6221
6221
|
field: W.name,
|
|
6222
6222
|
name: W.displayName ? W.displayName : W.name,
|
|
@@ -6226,7 +6226,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6226
6226
|
displayFormatKey: W.displayFormatKey,
|
|
6227
6227
|
displayFormat: W.displayFormat
|
|
6228
6228
|
})), pt = () => {
|
|
6229
|
-
|
|
6229
|
+
T();
|
|
6230
6230
|
}, tt = (Z) => {
|
|
6231
6231
|
const W = c.value.find(($e) => $e.field === Z);
|
|
6232
6232
|
return W ? W.datatype : null;
|
|
@@ -6245,7 +6245,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6245
6245
|
return "text";
|
|
6246
6246
|
}
|
|
6247
6247
|
}, ht = (Z) => {
|
|
6248
|
-
p.value = Z.rows, m.value = Z.page, h.value = Z.first,
|
|
6248
|
+
p.value = Z.rows, m.value = Z.page, h.value = Z.first, T();
|
|
6249
6249
|
};
|
|
6250
6250
|
return (Z, W) => {
|
|
6251
6251
|
var Kt, sn;
|
|
@@ -6399,8 +6399,8 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6399
6399
|
class: We({ "text-red-500": !fe.columnName })
|
|
6400
6400
|
}, ee(fe.columnName ? " " + fe.columnName : " column"), 3),
|
|
6401
6401
|
w("span", {
|
|
6402
|
-
class: We({ "text-red-500": !
|
|
6403
|
-
}, ee(fe.operator ? " " +
|
|
6402
|
+
class: We({ "text-red-500": !I[fe.operator] })
|
|
6403
|
+
}, ee(fe.operator ? " " + I[fe.operator] : " operator"), 3),
|
|
6404
6404
|
w("span", {
|
|
6405
6405
|
class: We({ "text-red-500": !fe.value })
|
|
6406
6406
|
}, ee(fe.value ? " " + fe.value : " value"), 3)
|
|
@@ -6552,16 +6552,16 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6552
6552
|
} finally {
|
|
6553
6553
|
}
|
|
6554
6554
|
}, v = async (R) => {
|
|
6555
|
-
for (let
|
|
6556
|
-
const k = R[
|
|
6555
|
+
for (let T = 0; T < R.length; T++) {
|
|
6556
|
+
const k = R[T];
|
|
6557
6557
|
if (k.primaryKey && k.primaryKey == !0) {
|
|
6558
6558
|
p.value = k;
|
|
6559
6559
|
break;
|
|
6560
6560
|
}
|
|
6561
6561
|
}
|
|
6562
6562
|
}, S = async (R) => {
|
|
6563
|
-
for (let
|
|
6564
|
-
const k = R[
|
|
6563
|
+
for (let T = 0; T < R.length; T++) {
|
|
6564
|
+
const k = R[T];
|
|
6565
6565
|
if (!k.autoGeneerated && k.foreignKey && k.foreignKey.referencedEntityName.toLowerCase() == c.linkedEntity.entityName.toLowerCase()) {
|
|
6566
6566
|
m.value = k;
|
|
6567
6567
|
break;
|
|
@@ -6569,13 +6569,13 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6569
6569
|
}
|
|
6570
6570
|
}, x = async () => {
|
|
6571
6571
|
for (let R = 0; R < u.value.result.length; R++) {
|
|
6572
|
-
const
|
|
6573
|
-
if (
|
|
6574
|
-
d.value =
|
|
6572
|
+
const T = u.value.result[R];
|
|
6573
|
+
if (T[p.value.name] == f.value.result[0][m.value.name]) {
|
|
6574
|
+
d.value = T;
|
|
6575
6575
|
break;
|
|
6576
6576
|
}
|
|
6577
6577
|
}
|
|
6578
|
-
},
|
|
6578
|
+
}, I = () => {
|
|
6579
6579
|
const R = {
|
|
6580
6580
|
linkedEntityRecordId: d.value[p.value.name],
|
|
6581
6581
|
linkedEntityName: c.linkedEntity.entityName,
|
|
@@ -6583,12 +6583,12 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6583
6583
|
};
|
|
6584
6584
|
c.saveExistingEntityObject(R);
|
|
6585
6585
|
};
|
|
6586
|
-
return (R,
|
|
6586
|
+
return (R, T) => {
|
|
6587
6587
|
const k = K("Select"), y = K("Divider"), E = K("Button");
|
|
6588
6588
|
return b(), C("div", Cp, [
|
|
6589
6589
|
V(k, {
|
|
6590
6590
|
modelValue: G(d),
|
|
6591
|
-
"onUpdate:modelValue":
|
|
6591
|
+
"onUpdate:modelValue": T[0] || (T[0] = (D) => Wt(d) ? d.value = D : d = D),
|
|
6592
6592
|
"item-value": p.value.name,
|
|
6593
6593
|
options: u.value.result,
|
|
6594
6594
|
filter: "",
|
|
@@ -6616,14 +6616,14 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6616
6616
|
label: "Cancel",
|
|
6617
6617
|
icon: "",
|
|
6618
6618
|
severity: "secondary",
|
|
6619
|
-
onClick:
|
|
6619
|
+
onClick: T[1] || (T[1] = (D) => s.value = !1)
|
|
6620
6620
|
})
|
|
6621
6621
|
]),
|
|
6622
6622
|
w("div", Bp, [
|
|
6623
6623
|
V(E, {
|
|
6624
6624
|
label: "Save",
|
|
6625
6625
|
severity: "success",
|
|
6626
|
-
onClick:
|
|
6626
|
+
onClick: I
|
|
6627
6627
|
})
|
|
6628
6628
|
])
|
|
6629
6629
|
])
|
|
@@ -6659,8 +6659,8 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6659
6659
|
});
|
|
6660
6660
|
const { formData: l, columns: c, errors: s, backendErrors: u, clearErrors: f, saveRecord: d, fetchAllRecords: p, saveRelatedEntityRecord: m } = ei(r, Lp, i), g = () => {
|
|
6661
6661
|
for (let x = 0; x < c.value.length; x++) {
|
|
6662
|
-
const
|
|
6663
|
-
!
|
|
6662
|
+
const I = c.value[x];
|
|
6663
|
+
!I.autoGenerated && I.foreignKey && (l.value[I.name] = o.entity360Id);
|
|
6664
6664
|
}
|
|
6665
6665
|
const S = {
|
|
6666
6666
|
relationType: o.linkedEntity.relationType,
|
|
@@ -6677,7 +6677,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6677
6677
|
}, h = (S) => {
|
|
6678
6678
|
var x;
|
|
6679
6679
|
if (((x = S == null ? void 0 : S.linkRecordIdList) == null ? void 0 : x.length) > 0) {
|
|
6680
|
-
const
|
|
6680
|
+
const I = {
|
|
6681
6681
|
entityLinkage: [
|
|
6682
6682
|
{
|
|
6683
6683
|
linkEntityName: S.linkEntityName,
|
|
@@ -6685,7 +6685,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6685
6685
|
}
|
|
6686
6686
|
]
|
|
6687
6687
|
};
|
|
6688
|
-
m(o.entity360Name, o.entity360Id,
|
|
6688
|
+
m(o.entity360Name, o.entity360Id, I);
|
|
6689
6689
|
}
|
|
6690
6690
|
}, v = (S) => {
|
|
6691
6691
|
const x = {
|
|
@@ -6699,7 +6699,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6699
6699
|
m(S.linkedEntityName, S.linkedEntityRecordId, x);
|
|
6700
6700
|
};
|
|
6701
6701
|
return (S, x) => {
|
|
6702
|
-
const
|
|
6702
|
+
const I = K("Tab"), R = K("TabList"), T = K("Divider"), k = K("Button"), y = K("TabPanel"), E = K("TabPanels"), D = K("Tabs"), B = K("Drawer");
|
|
6703
6703
|
return b(), M(B, {
|
|
6704
6704
|
visible: n.value,
|
|
6705
6705
|
"onUpdate:visible": x[3] || (x[3] = (P) => n.value = P),
|
|
@@ -6719,13 +6719,13 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6719
6719
|
default: Q(() => [
|
|
6720
6720
|
V(R, null, {
|
|
6721
6721
|
default: Q(() => [
|
|
6722
|
-
V(
|
|
6722
|
+
V(I, { value: "0" }, {
|
|
6723
6723
|
default: Q(() => x[4] || (x[4] = [
|
|
6724
6724
|
Ye("Create new")
|
|
6725
6725
|
])),
|
|
6726
6726
|
_: 1
|
|
6727
6727
|
}),
|
|
6728
|
-
V(
|
|
6728
|
+
V(I, { value: "1" }, {
|
|
6729
6729
|
default: Q(() => x[5] || (x[5] = [
|
|
6730
6730
|
Ye("Add existing")
|
|
6731
6731
|
])),
|
|
@@ -6755,7 +6755,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6755
6755
|
]);
|
|
6756
6756
|
}), 128)),
|
|
6757
6757
|
w("div", Ap, [
|
|
6758
|
-
V(
|
|
6758
|
+
V(T),
|
|
6759
6759
|
w("div", Pp, [
|
|
6760
6760
|
w("div", Dp, [
|
|
6761
6761
|
V(k, {
|
|
@@ -6936,7 +6936,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
6936
6936
|
const o = et(), r = yn(), i = t, a = _(!0), l = _(!1), c = _([]);
|
|
6937
6937
|
let s = (B = r == null ? void 0 : r.params) == null ? void 0 : B.entityName, u = (P = r == null ? void 0 : r.params) == null ? void 0 : P.id;
|
|
6938
6938
|
i.entityName && (s = i.entityName), i.recordId && (u = i.recordId);
|
|
6939
|
-
const f = n, { formData: d, columns: p, errors: m, backendErrors: g, isDataChange: h, linkedEntities: v, primarayColumn: S, clearErrors: x, saveRecord:
|
|
6939
|
+
const f = n, { formData: d, columns: p, errors: m, backendErrors: g, isDataChange: h, linkedEntities: v, primarayColumn: S, clearErrors: x, saveRecord: I, getRelatedEntityRecordById: R, cancleRecord: T } = ei(s, u, f);
|
|
6940
6940
|
Ae(
|
|
6941
6941
|
() => o.globalConfigs.appId,
|
|
6942
6942
|
async (H) => {
|
|
@@ -7124,7 +7124,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
7124
7124
|
w("div", fm, [
|
|
7125
7125
|
V(ye, {
|
|
7126
7126
|
severity: "primary",
|
|
7127
|
-
onClick: A[1] || (A[1] = (se) => G(
|
|
7127
|
+
onClick: A[1] || (A[1] = (se) => G(I)())
|
|
7128
7128
|
}, {
|
|
7129
7129
|
default: Q(() => A[6] || (A[6] = [
|
|
7130
7130
|
Ye("Save")
|
|
@@ -7134,7 +7134,7 @@ const Af = { key: 0 }, Pf = { key: 1 }, ni = {
|
|
|
7134
7134
|
V(ye, {
|
|
7135
7135
|
style: { "margin-left": "10px" },
|
|
7136
7136
|
severity: "secondary",
|
|
7137
|
-
onClick: A[2] || (A[2] = (se) => G(
|
|
7137
|
+
onClick: A[2] || (A[2] = (se) => G(T)())
|
|
7138
7138
|
}, {
|
|
7139
7139
|
default: Q(() => A[7] || (A[7] = [
|
|
7140
7140
|
Ye("Cancel")
|
|
@@ -7154,59 +7154,59 @@ function er() {
|
|
|
7154
7154
|
let { errors: e, setErrors: n } = js(), o = Ft({
|
|
7155
7155
|
data: null
|
|
7156
7156
|
});
|
|
7157
|
-
const r = (
|
|
7158
|
-
o.data =
|
|
7159
|
-
}, i = async (
|
|
7157
|
+
const r = (T) => {
|
|
7158
|
+
o.data = T;
|
|
7159
|
+
}, i = async (T) => {
|
|
7160
7160
|
try {
|
|
7161
|
-
const k = await t.getEntityRecords(
|
|
7161
|
+
const k = await t.getEntityRecords(T);
|
|
7162
7162
|
if (k && k.response)
|
|
7163
7163
|
return k;
|
|
7164
7164
|
} catch (k) {
|
|
7165
7165
|
return console.error("Error fetching entity:", k.errorMessage), k;
|
|
7166
7166
|
} finally {
|
|
7167
7167
|
}
|
|
7168
|
-
}, a = async (
|
|
7168
|
+
}, a = async (T, k) => {
|
|
7169
7169
|
try {
|
|
7170
|
-
let y = await t.addRecord(
|
|
7170
|
+
let y = await t.addRecord(T.entityName, k);
|
|
7171
7171
|
if (y)
|
|
7172
7172
|
return y;
|
|
7173
7173
|
} catch (y) {
|
|
7174
7174
|
return y;
|
|
7175
7175
|
} finally {
|
|
7176
7176
|
}
|
|
7177
|
-
}, l = async (
|
|
7177
|
+
}, l = async (T, k, y) => {
|
|
7178
7178
|
try {
|
|
7179
|
-
const E = await t.updateRecord(
|
|
7179
|
+
const E = await t.updateRecord(T.entityName, k, y);
|
|
7180
7180
|
if (E && E.response)
|
|
7181
7181
|
return E;
|
|
7182
7182
|
} catch (E) {
|
|
7183
7183
|
return E;
|
|
7184
7184
|
} finally {
|
|
7185
7185
|
}
|
|
7186
|
-
}, c = async (
|
|
7186
|
+
}, c = async (T, k) => {
|
|
7187
7187
|
try {
|
|
7188
7188
|
k.filter == null && (k.filter = {}), Object.keys(k.filter).length === 0 && (k.filter = []);
|
|
7189
|
-
const y = await t.searchEntityRecords(
|
|
7189
|
+
const y = await t.searchEntityRecords(T.entityName, k);
|
|
7190
7190
|
if (y)
|
|
7191
7191
|
return y.response.sortBy = k.sortBy, y.response.filters = k.filter, y.response.sortDirection = k.sortDirection, y.response.fullTextSearch = k.fullTextSearch, y;
|
|
7192
7192
|
} catch (y) {
|
|
7193
7193
|
return y;
|
|
7194
7194
|
} finally {
|
|
7195
7195
|
}
|
|
7196
|
-
}, s = async (
|
|
7196
|
+
}, s = async (T, k) => {
|
|
7197
7197
|
try {
|
|
7198
|
-
const y = await t.deleteRecord(
|
|
7198
|
+
const y = await t.deleteRecord(T.entityName, k);
|
|
7199
7199
|
if (y)
|
|
7200
7200
|
return y;
|
|
7201
7201
|
} catch (y) {
|
|
7202
7202
|
console.error("Error on deleting record:", y.errorMessage);
|
|
7203
7203
|
} finally {
|
|
7204
7204
|
}
|
|
7205
|
-
}, u = (
|
|
7205
|
+
}, u = (T) => T.result, f = (T) => {
|
|
7206
7206
|
var k, y;
|
|
7207
|
-
return (y = (k =
|
|
7208
|
-
}, d = (
|
|
7209
|
-
const k =
|
|
7207
|
+
return (y = (k = T == null ? void 0 : T.entity) == null ? void 0 : k.entityDefinition) == null ? void 0 : y.columns;
|
|
7208
|
+
}, d = (T) => {
|
|
7209
|
+
const k = T.entity.entityDefinition.columns;
|
|
7210
7210
|
let y = {};
|
|
7211
7211
|
for (let E = 0; E < k.length; E++) {
|
|
7212
7212
|
const D = k[E];
|
|
@@ -7216,17 +7216,17 @@ function er() {
|
|
|
7216
7216
|
}
|
|
7217
7217
|
}
|
|
7218
7218
|
return y;
|
|
7219
|
-
}, p = (
|
|
7220
|
-
const k =
|
|
7219
|
+
}, p = (T) => {
|
|
7220
|
+
const k = T.entity.entityDefinition.columns;
|
|
7221
7221
|
let y = {};
|
|
7222
7222
|
for (let E = 0; E < k.length; E++) {
|
|
7223
7223
|
let D = k[E];
|
|
7224
7224
|
D.autoGenerated || (y[D.name] = "");
|
|
7225
7225
|
}
|
|
7226
7226
|
return y;
|
|
7227
|
-
}, m = (
|
|
7227
|
+
}, m = (T, k) => {
|
|
7228
7228
|
let y = "";
|
|
7229
|
-
const E =
|
|
7229
|
+
const E = T.entity.entityDefinition.columns;
|
|
7230
7230
|
for (let D = 0; D < E.length; D++) {
|
|
7231
7231
|
let B = E[D];
|
|
7232
7232
|
if (k == B.name) {
|
|
@@ -7235,17 +7235,17 @@ function er() {
|
|
|
7235
7235
|
}
|
|
7236
7236
|
}
|
|
7237
7237
|
return y;
|
|
7238
|
-
}, g = (
|
|
7239
|
-
const E =
|
|
7238
|
+
}, g = (T, k) => {
|
|
7239
|
+
const E = T.entity.entityDefinition.columns.filter((B) => B.autoGenerated).map((B) => B.name);
|
|
7240
7240
|
return Object.entries(k).filter(([B]) => !E.includes(B)).map(([B, P]) => ({
|
|
7241
7241
|
recordColumnName: B,
|
|
7242
7242
|
recordColumnValue: P,
|
|
7243
7243
|
columnType: m(o.data, B)
|
|
7244
7244
|
}));
|
|
7245
7245
|
}, h = () => {
|
|
7246
|
-
const
|
|
7246
|
+
const T = o.data.entity.entityDefinition.columns;
|
|
7247
7247
|
return Zr().shape(
|
|
7248
|
-
|
|
7248
|
+
T.reduce((y, E) => (E.autoGenerated || (y[E.name] = Qr().nullable(!1).test({
|
|
7249
7249
|
name: "custom-validation",
|
|
7250
7250
|
test: function(D) {
|
|
7251
7251
|
const B = [];
|
|
@@ -7280,18 +7280,18 @@ function er() {
|
|
|
7280
7280
|
}
|
|
7281
7281
|
})), y), {})
|
|
7282
7282
|
);
|
|
7283
|
-
}, v = (
|
|
7284
|
-
for (let y = 0; y <
|
|
7285
|
-
if (k ==
|
|
7286
|
-
return
|
|
7287
|
-
}, S = (
|
|
7288
|
-
for (let y = 0; y <
|
|
7289
|
-
if (k ==
|
|
7290
|
-
return
|
|
7291
|
-
}, x = (
|
|
7292
|
-
for (let y = 0; y <
|
|
7293
|
-
if (k ==
|
|
7294
|
-
return
|
|
7283
|
+
}, v = (T, k) => {
|
|
7284
|
+
for (let y = 0; y < T.length; y++)
|
|
7285
|
+
if (k == T[y].type)
|
|
7286
|
+
return T[y].message;
|
|
7287
|
+
}, S = (T, k) => {
|
|
7288
|
+
for (let y = 0; y < T.length; y++)
|
|
7289
|
+
if (k == T[y].type)
|
|
7290
|
+
return T[y].regx;
|
|
7291
|
+
}, x = (T, k) => {
|
|
7292
|
+
for (let y = 0; y < T.length; y++)
|
|
7293
|
+
if (k == T[y].type)
|
|
7294
|
+
return T[y].hint;
|
|
7295
7295
|
};
|
|
7296
7296
|
return {
|
|
7297
7297
|
state: o,
|
|
@@ -7307,10 +7307,10 @@ function er() {
|
|
|
7307
7307
|
getFormData: p,
|
|
7308
7308
|
createDataToSave: g,
|
|
7309
7309
|
createValidationSchema: h,
|
|
7310
|
-
clearErrors: (
|
|
7311
|
-
validateData: async (
|
|
7310
|
+
clearErrors: (T) => (n({ ...e.value, [T]: null }), e.value),
|
|
7311
|
+
validateData: async (T, k) => {
|
|
7312
7312
|
try {
|
|
7313
|
-
return await
|
|
7313
|
+
return await T.validate(k, { abortEarly: !1 }), n({}), {
|
|
7314
7314
|
validate: !0
|
|
7315
7315
|
};
|
|
7316
7316
|
} catch (y) {
|
|
@@ -7412,8 +7412,8 @@ const tr = {
|
|
|
7412
7412
|
fullTextSearch: n.state.data.fullTextSearch
|
|
7413
7413
|
}, x = await n.searchRecord(n.state.data, S);
|
|
7414
7414
|
if (x != null && x.response) {
|
|
7415
|
-
let
|
|
7416
|
-
n.setEntity(
|
|
7415
|
+
let I = x == null ? void 0 : x.response;
|
|
7416
|
+
n.setEntity(I);
|
|
7417
7417
|
}
|
|
7418
7418
|
} else
|
|
7419
7419
|
v.validationErrors && (a.value = JSON.parse(JSON.stringify(v.errvalidationErrorsors)));
|
|
@@ -7466,14 +7466,14 @@ const tr = {
|
|
|
7466
7466
|
var v;
|
|
7467
7467
|
return [
|
|
7468
7468
|
(b(!0), C(ue, null, Pe(G(r), (S, x) => {
|
|
7469
|
-
var
|
|
7469
|
+
var I;
|
|
7470
7470
|
return b(), C("div", { key: x }, [
|
|
7471
7471
|
!S.autoGenerated && !S.foreignKey ? (b(), M(Yo, {
|
|
7472
7472
|
key: 0,
|
|
7473
7473
|
modelValue: G(i)[S.name],
|
|
7474
7474
|
"onUpdate:modelValue": (R) => G(i)[S.name] = R,
|
|
7475
7475
|
column: S,
|
|
7476
|
-
errors: (
|
|
7476
|
+
errors: (I = G(c)[S.name]) == null ? void 0 : I.messages,
|
|
7477
7477
|
onInput: d
|
|
7478
7478
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors"])) : U("", !0),
|
|
7479
7479
|
!S.autoGenerated && S.foreignKey ? (b(), M(Js, {
|
|
@@ -7748,7 +7748,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7748
7748
|
);
|
|
7749
7749
|
}, x = (k) => {
|
|
7750
7750
|
r.value.splice(k, 1);
|
|
7751
|
-
},
|
|
7751
|
+
}, I = (k) => {
|
|
7752
7752
|
k.editing = !k.editing;
|
|
7753
7753
|
}, R = () => {
|
|
7754
7754
|
let k = [], y = JSON.parse(JSON.stringify(r.value));
|
|
@@ -7757,7 +7757,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7757
7757
|
delete D.editing, D.columnName && D.operator && D.value && (D.columnType = t.getDatatypeByField(D.columnName), D.operator = t.operatorMap[D.operator], k.push(D));
|
|
7758
7758
|
}
|
|
7759
7759
|
t.filterCallback(k);
|
|
7760
|
-
},
|
|
7760
|
+
}, T = () => {
|
|
7761
7761
|
t.sortCallback();
|
|
7762
7762
|
};
|
|
7763
7763
|
return (k, y) => {
|
|
@@ -7785,7 +7785,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7785
7785
|
optionValue: "field",
|
|
7786
7786
|
highlightOnSelect: !1,
|
|
7787
7787
|
class: "w-full",
|
|
7788
|
-
onChange: y[1] || (y[1] = (N) =>
|
|
7788
|
+
onChange: y[1] || (y[1] = (N) => T(k.event))
|
|
7789
7789
|
}, null, 8, ["modelValue", "options"])
|
|
7790
7790
|
])
|
|
7791
7791
|
]),
|
|
@@ -7802,7 +7802,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7802
7802
|
optionValue: "value",
|
|
7803
7803
|
highlightOnSelect: !1,
|
|
7804
7804
|
class: "w-full",
|
|
7805
|
-
onChange: y[3] || (y[3] = (N) =>
|
|
7805
|
+
onChange: y[3] || (y[3] = (N) => T(k.event))
|
|
7806
7806
|
}, null, 8, ["modelValue"])
|
|
7807
7807
|
])
|
|
7808
7808
|
]),
|
|
@@ -7871,7 +7871,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7871
7871
|
label: "Hide",
|
|
7872
7872
|
icon: "",
|
|
7873
7873
|
severity: "warn",
|
|
7874
|
-
onClick: (Y) =>
|
|
7874
|
+
onClick: (Y) => I(N)
|
|
7875
7875
|
}, null, 8, ["onClick"]),
|
|
7876
7876
|
V(A, {
|
|
7877
7877
|
label: "Delete",
|
|
@@ -7901,7 +7901,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7901
7901
|
label: "Edit",
|
|
7902
7902
|
icon: "",
|
|
7903
7903
|
severity: "info",
|
|
7904
|
-
onClick: (Y) =>
|
|
7904
|
+
onClick: (Y) => I(N)
|
|
7905
7905
|
}, null, 8, ["onClick"])
|
|
7906
7906
|
])
|
|
7907
7907
|
]))
|
|
@@ -7961,7 +7961,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7961
7961
|
() => e.state.data,
|
|
7962
7962
|
(k) => {
|
|
7963
7963
|
if (k && !u.value) {
|
|
7964
|
-
if (c.value = e.getEntityColumns(k), s.value =
|
|
7964
|
+
if (c.value = e.getEntityColumns(k), s.value = I(c.value), !i.value) {
|
|
7965
7965
|
const y = e.getPrimaryKeyColumn(k);
|
|
7966
7966
|
i.value = (y == null ? void 0 : y.name) || "";
|
|
7967
7967
|
}
|
|
@@ -7991,7 +7991,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
7991
7991
|
o.value = [], r.value = [], h();
|
|
7992
7992
|
}, x = () => {
|
|
7993
7993
|
h();
|
|
7994
|
-
},
|
|
7994
|
+
}, I = (k) => k.map((y) => ({
|
|
7995
7995
|
field: y.name,
|
|
7996
7996
|
name: y.displayName || y.name,
|
|
7997
7997
|
filterable: y.filterable,
|
|
@@ -8013,7 +8013,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8013
8013
|
default:
|
|
8014
8014
|
return "text";
|
|
8015
8015
|
}
|
|
8016
|
-
},
|
|
8016
|
+
}, T = (k) => {
|
|
8017
8017
|
const y = c.value.find((E) => E.name === k);
|
|
8018
8018
|
return y ? y.type : null;
|
|
8019
8019
|
};
|
|
@@ -8079,7 +8079,7 @@ const _m = /* @__PURE__ */ ot(Om, [["render", $m]]), Tm = { class: "my-2" }, Im
|
|
|
8079
8079
|
sortCallback: v,
|
|
8080
8080
|
filterCallback: g,
|
|
8081
8081
|
getColumnDatatype: R,
|
|
8082
|
-
getDatatypeByField:
|
|
8082
|
+
getDatatypeByField: T
|
|
8083
8083
|
}, null, 8, ["sortBy", "sortDirection", "showFilter", "filters", "headers"])
|
|
8084
8084
|
], 64);
|
|
8085
8085
|
};
|
|
@@ -9054,8 +9054,8 @@ const Ug = In({
|
|
|
9054
9054
|
const i = Ag(n), a = i.getSlides(), l = ne(() => a.length), c = _(null), s = _(null), u = _(0), f = ne(() => Object.assign(Object.assign(Object.assign({}, He), Ng(t, ["breakpoints", "modelValue"])), { i18n: Object.assign(Object.assign({}, He.i18n), t.i18n) })), d = xr(Object.assign({}, f.value)), p = _((r = t.modelValue) !== null && r !== void 0 ? r : 0), m = _(p.value);
|
|
9055
9055
|
Ae(p, (L) => m.value = L);
|
|
9056
9056
|
const g = _(0), h = ne(() => Math.ceil((l.value - 1) / 2)), v = ne(() => l.value - 1), S = ne(() => 0);
|
|
9057
|
-
let x = null,
|
|
9058
|
-
const
|
|
9057
|
+
let x = null, I = null, R = null;
|
|
9058
|
+
const T = ne(() => u.value + d.gap), k = ne(() => {
|
|
9059
9059
|
const L = d.dir || "ltr";
|
|
9060
9060
|
return L in Qn ? Qn[L] : L;
|
|
9061
9061
|
}), y = ne(() => ["rtl", "btt"].includes(k.value)), E = ne(() => ["ttb", "btt"].includes(k.value)), D = ne(() => d.itemsToShow === "auto"), B = ne(() => E.value ? "height" : "width");
|
|
@@ -9137,7 +9137,7 @@ const Ug = In({
|
|
|
9137
9137
|
}), Ze(() => {
|
|
9138
9138
|
de.value = !0, P(), ze(), c.value && (R = new ResizeObserver(H), R.observe(c.value)), n("init");
|
|
9139
9139
|
}), Yl(() => {
|
|
9140
|
-
de.value = !1, i.cleanup(),
|
|
9140
|
+
de.value = !1, i.cleanup(), I && clearTimeout(I), ye && cancelAnimationFrame(ye), x && clearInterval(x), R && (R.disconnect(), R = null), typeof document < "u" && $e(), c.value && (c.value.removeEventListener("transitionend", z), c.value.removeEventListener("animationiteration", z));
|
|
9141
9141
|
});
|
|
9142
9142
|
let we = !1;
|
|
9143
9143
|
const Se = { x: 0, y: 0 }, Ne = Ft({ x: 0, y: 0 }), pt = _(!1), tt = _(!1), kt = () => {
|
|
@@ -9177,7 +9177,7 @@ const Ug = In({
|
|
|
9177
9177
|
isVertical: E.value,
|
|
9178
9178
|
isReversed: y.value,
|
|
9179
9179
|
dragged: Ne,
|
|
9180
|
-
effectiveSlideSize:
|
|
9180
|
+
effectiveSlideSize: T.value
|
|
9181
9181
|
});
|
|
9182
9182
|
m.value = d.wrapAround ? p.value + re : Lt({
|
|
9183
9183
|
val: p.value + re,
|
|
@@ -9225,7 +9225,7 @@ const Ug = In({
|
|
|
9225
9225
|
currentSlideIndex: p.value,
|
|
9226
9226
|
prevSlideIndex: g.value,
|
|
9227
9227
|
slidesCount: l.value
|
|
9228
|
-
}), st(), Ke.value = !0, p.value = ae, re !== ae && sn.pause(), n("update:modelValue", re),
|
|
9228
|
+
}), st(), Ke.value = !0, p.value = ae, re !== ae && sn.pause(), n("update:modelValue", re), I = setTimeout(() => {
|
|
9229
9229
|
d.wrapAround && re !== ae && (sn.resume(), p.value = re, n("loop", {
|
|
9230
9230
|
currentSlideIndex: p.value,
|
|
9231
9231
|
slidingToIndex: L
|
|
@@ -9260,7 +9260,7 @@ const Ug = In({
|
|
|
9260
9260
|
before: Math.max(0, ae),
|
|
9261
9261
|
after: Math.max(0, re)
|
|
9262
9262
|
};
|
|
9263
|
-
}), xt = ne(() => fe.value.before ? D.value ? q.value.slice(-1 * fe.value.before).reduce((L, J) => L + J[B.value] + d.gap, 0) * -1 : fe.value.before *
|
|
9263
|
+
}), xt = ne(() => fe.value.before ? D.value ? q.value.slice(-1 * fe.value.before).reduce((L, J) => L + J[B.value] + d.gap, 0) * -1 : fe.value.before * T.value * -1 : 0), Ue = ne(() => {
|
|
9264
9264
|
var L;
|
|
9265
9265
|
if (D.value) {
|
|
9266
9266
|
const J = (p.value % a.length + a.length) % a.length;
|
|
@@ -9291,7 +9291,7 @@ const Ug = In({
|
|
|
9291
9291
|
val: J,
|
|
9292
9292
|
max: l.value - +d.itemsToShow,
|
|
9293
9293
|
min: 0
|
|
9294
|
-
})), L = J *
|
|
9294
|
+
})), L = J * T.value;
|
|
9295
9295
|
}
|
|
9296
9296
|
return L * (y.value ? 1 : -1);
|
|
9297
9297
|
}), $ = ne(() => {
|
|
@@ -9344,7 +9344,7 @@ const Ug = In({
|
|
|
9344
9344
|
let ae = O.value + J;
|
|
9345
9345
|
if (!d.wrapAround && d.preventExcessiveDragging) {
|
|
9346
9346
|
let re = 0;
|
|
9347
|
-
D.value ? re = q.value.reduce((Le, Qe) => Le + Qe[B.value], 0) : re = (l.value - Number(d.itemsToShow)) *
|
|
9347
|
+
D.value ? re = q.value.reduce((Le, Qe) => Le + Qe[B.value], 0) : re = (l.value - Number(d.itemsToShow)) * T.value;
|
|
9348
9348
|
const ge = y.value ? 0 : -1 * re, Re = y.value ? re : 0;
|
|
9349
9349
|
ae = Lt({
|
|
9350
9350
|
val: ae,
|
|
@@ -11088,8 +11088,8 @@ function sb() {
|
|
|
11088
11088
|
}, e._ = n = {
|
|
11089
11089
|
// formats numbers separators, decimals places, signs, abbreviations
|
|
11090
11090
|
numberToFormat: function(s, u, f) {
|
|
11091
|
-
var d = i[e.options.currentLocale], p = !1, m = !1, g = 0, h = "", v = 1e12, S = 1e9, x = 1e6,
|
|
11092
|
-
if (s = s || 0, y = Math.abs(s), e._.includes(u, "(") ? (p = !0, u = u.replace(/[\(|\)]/g, "")) : (e._.includes(u, "+") || e._.includes(u, "-")) && (B = e._.includes(u, "+") ? u.indexOf("+") : s < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), e._.includes(u, "a") && (k = u.match(/a(k|m|b|t)?/), k = k ? k[1] : !1, e._.includes(u, " a") && (h = " "), u = u.replace(new RegExp(h + "a[kmbt]?"), ""), y >= v && !k || k === "t" ? (h += d.abbreviations.trillion, s = s / v) : y < v && y >= S && !k || k === "b" ? (h += d.abbreviations.billion, s = s / S) : y < S && y >= x && !k || k === "m" ? (h += d.abbreviations.million, s = s / x) : (y < x && y >=
|
|
11091
|
+
var d = i[e.options.currentLocale], p = !1, m = !1, g = 0, h = "", v = 1e12, S = 1e9, x = 1e6, I = 1e3, R = "", T = !1, k, y, E, D, B, P, H;
|
|
11092
|
+
if (s = s || 0, y = Math.abs(s), e._.includes(u, "(") ? (p = !0, u = u.replace(/[\(|\)]/g, "")) : (e._.includes(u, "+") || e._.includes(u, "-")) && (B = e._.includes(u, "+") ? u.indexOf("+") : s < 0 ? u.indexOf("-") : -1, u = u.replace(/[\+|\-]/g, "")), e._.includes(u, "a") && (k = u.match(/a(k|m|b|t)?/), k = k ? k[1] : !1, e._.includes(u, " a") && (h = " "), u = u.replace(new RegExp(h + "a[kmbt]?"), ""), y >= v && !k || k === "t" ? (h += d.abbreviations.trillion, s = s / v) : y < v && y >= S && !k || k === "b" ? (h += d.abbreviations.billion, s = s / S) : y < S && y >= x && !k || k === "m" ? (h += d.abbreviations.million, s = s / x) : (y < x && y >= I && !k || k === "k") && (h += d.abbreviations.thousand, s = s / I)), e._.includes(u, "[.]") && (m = !0, u = u.replace("[.]", ".")), E = s.toString().split(".")[0], D = u.split(".")[1], P = u.indexOf(","), g = (u.split(".")[0].split(",")[0].match(/0/g) || []).length, D ? (e._.includes(D, "[") ? (D = D.replace("]", ""), D = D.split("["), R = e._.toFixed(s, D[0].length + D[1].length, f, D[1].length)) : R = e._.toFixed(s, D.length, f), E = R.split(".")[0], e._.includes(R, ".") ? R = d.delimiters.decimal + R.split(".")[1] : R = "", m && Number(R.slice(1)) === 0 && (R = "")) : E = e._.toFixed(s, 0, f), h && !k && Number(E) >= 1e3 && h !== d.abbreviations.trillion)
|
|
11093
11093
|
switch (E = String(Number(E) / 1e3), h) {
|
|
11094
11094
|
case d.abbreviations.thousand:
|
|
11095
11095
|
h = d.abbreviations.million;
|
|
@@ -11101,10 +11101,10 @@ function sb() {
|
|
|
11101
11101
|
h = d.abbreviations.trillion;
|
|
11102
11102
|
break;
|
|
11103
11103
|
}
|
|
11104
|
-
if (e._.includes(E, "-") && (E = E.slice(1),
|
|
11104
|
+
if (e._.includes(E, "-") && (E = E.slice(1), T = !0), E.length < g)
|
|
11105
11105
|
for (var A = g - E.length; A > 0; A--)
|
|
11106
11106
|
E = "0" + E;
|
|
11107
|
-
return P > -1 && (E = E.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), u.indexOf(".") === 0 && (E = ""), H = E + R + (h || ""), p ? H = (p &&
|
|
11107
|
+
return P > -1 && (E = E.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), u.indexOf(".") === 0 && (E = ""), H = E + R + (h || ""), p ? H = (p && T ? "(" : "") + H + (p && T ? ")" : "") : B >= 0 ? H = B === 0 ? (T ? "-" : "+") + H : H + (T ? "-" : "+") : T && (H = "-" + H), H;
|
|
11108
11108
|
},
|
|
11109
11109
|
// unformats numbers separators, decimals places, signs, abbreviations
|
|
11110
11110
|
stringToNumber: function(s) {
|
|
@@ -11329,10 +11329,10 @@ function sb() {
|
|
|
11329
11329
|
unformat: new RegExp(d)
|
|
11330
11330
|
},
|
|
11331
11331
|
format: function(p, m, g) {
|
|
11332
|
-
var h, v = e._.includes(m, "ib") ? u : s, S = e._.includes(m, " b") || e._.includes(m, " ib") ? " " : "", x,
|
|
11332
|
+
var h, v = e._.includes(m, "ib") ? u : s, S = e._.includes(m, " b") || e._.includes(m, " ib") ? " " : "", x, I, R;
|
|
11333
11333
|
for (m = m.replace(/\s?i?b/, ""), x = 0; x <= v.suffixes.length; x++)
|
|
11334
|
-
if (
|
|
11335
|
-
S += v.suffixes[x],
|
|
11334
|
+
if (I = Math.pow(v.base, x), R = Math.pow(v.base, x + 1), p === null || p === 0 || p >= I && p < R) {
|
|
11335
|
+
S += v.suffixes[x], I > 0 && (p = p / I);
|
|
11336
11336
|
break;
|
|
11337
11337
|
}
|
|
11338
11338
|
return h = e._.numberToFormat(p, m, g), h + S;
|
|
@@ -12034,14 +12034,14 @@ var St = {
|
|
|
12034
12034
|
getCommon({ name: t = "", theme: e = {}, params: n, set: o, defaults: r }) {
|
|
12035
12035
|
var i, a, l, c, s, u, f;
|
|
12036
12036
|
const { preset: d, options: p } = e;
|
|
12037
|
-
let m, g, h, v, S, x,
|
|
12037
|
+
let m, g, h, v, S, x, I;
|
|
12038
12038
|
if (Ee(d) && p.transform !== "strict") {
|
|
12039
|
-
const { primitive: R, semantic:
|
|
12039
|
+
const { primitive: R, semantic: T, extend: k } = d, y = T || {}, { colorScheme: E } = y, D = Vt(y, ["colorScheme"]), B = k || {}, { colorScheme: P } = B, H = Vt(B, ["colorScheme"]), A = E || {}, { dark: q } = A, N = Vt(A, ["dark"]), oe = P || {}, { dark: Y } = oe, z = Vt(oe, ["dark"]), X = Ee(R) ? this._toVariables({ primitive: R }, p) : {}, ce = Ee(D) ? this._toVariables({ semantic: D }, p) : {}, ye = Ee(N) ? this._toVariables({ light: N }, p) : {}, ve = Ee(q) ? this._toVariables({ dark: q }, p) : {}, se = Ee(H) ? this._toVariables({ semantic: H }, p) : {}, de = Ee(z) ? this._toVariables({ light: z }, p) : {}, we = Ee(Y) ? this._toVariables({ dark: Y }, p) : {}, [Se, Ne] = [(i = X.declarations) != null ? i : "", X.tokens], [pt, tt] = [(a = ce.declarations) != null ? a : "", ce.tokens || []], [kt, ht] = [(l = ye.declarations) != null ? l : "", ye.tokens || []], [Z, W] = [(c = ve.declarations) != null ? c : "", ve.tokens || []], [$e, Ie] = [(s = se.declarations) != null ? s : "", se.tokens || []], [_e, Be] = [(u = de.declarations) != null ? u : "", de.tokens || []], [ze, st] = [(f = we.declarations) != null ? f : "", we.tokens || []];
|
|
12040
12040
|
m = this.transformCSS(t, Se, "light", "variable", p, o, r), g = Ne;
|
|
12041
12041
|
const Tt = this.transformCSS(t, `${pt}${kt}`, "light", "variable", p, o, r), Ke = this.transformCSS(t, `${Z}`, "dark", "variable", p, o, r);
|
|
12042
12042
|
h = `${Tt}${Ke}`, v = [.../* @__PURE__ */ new Set([...tt, ...ht, ...W])];
|
|
12043
12043
|
const lt = this.transformCSS(t, `${$e}${_e}color-scheme:light`, "light", "variable", p, o, r), bt = this.transformCSS(t, `${ze}color-scheme:dark`, "dark", "variable", p, o, r);
|
|
12044
|
-
S = `${lt}${bt}`, x = [.../* @__PURE__ */ new Set([...Ie, ...Be, ...st])],
|
|
12044
|
+
S = `${lt}${bt}`, x = [.../* @__PURE__ */ new Set([...Ie, ...Be, ...st])], I = wt(d.css, { dt: Gn });
|
|
12045
12045
|
}
|
|
12046
12046
|
return {
|
|
12047
12047
|
primitive: {
|
|
@@ -12056,14 +12056,14 @@ var St = {
|
|
|
12056
12056
|
css: S,
|
|
12057
12057
|
tokens: x
|
|
12058
12058
|
},
|
|
12059
|
-
style:
|
|
12059
|
+
style: I
|
|
12060
12060
|
};
|
|
12061
12061
|
},
|
|
12062
12062
|
getPreset({ name: t = "", preset: e = {}, options: n, params: o, set: r, defaults: i, selector: a }) {
|
|
12063
12063
|
var l, c, s;
|
|
12064
12064
|
let u, f, d;
|
|
12065
12065
|
if (Ee(e) && n.transform !== "strict") {
|
|
12066
|
-
const p = t.replace("-directive", ""), m = e, { colorScheme: g, extend: h, css: v } = m, S = Vt(m, ["colorScheme", "extend", "css"]), x = h || {}, { colorScheme:
|
|
12066
|
+
const p = t.replace("-directive", ""), m = e, { colorScheme: g, extend: h, css: v } = m, S = Vt(m, ["colorScheme", "extend", "css"]), x = h || {}, { colorScheme: I } = x, R = Vt(x, ["colorScheme"]), T = g || {}, { dark: k } = T, y = Vt(T, ["dark"]), E = I || {}, { dark: D } = E, B = Vt(E, ["dark"]), P = Ee(S) ? this._toVariables({ [p]: Ve(Ve({}, S), R) }, n) : {}, H = Ee(y) ? this._toVariables({ [p]: Ve(Ve({}, y), B) }, n) : {}, A = Ee(k) ? this._toVariables({ [p]: Ve(Ve({}, k), D) }, n) : {}, [q, N] = [(l = P.declarations) != null ? l : "", P.tokens || []], [oe, Y] = [(c = H.declarations) != null ? c : "", H.tokens || []], [z, X] = [(s = A.declarations) != null ? s : "", A.tokens || []], ce = this.transformCSS(p, `${q}${oe}`, "light", "variable", n, r, i, a), ye = this.transformCSS(p, z, "dark", "variable", n, r, i, a);
|
|
12067
12067
|
u = `${ce}${ye}`, f = [.../* @__PURE__ */ new Set([...N, ...Y, ...X])], d = wt(v, { dt: Gn });
|
|
12068
12068
|
}
|
|
12069
12069
|
return {
|
|
@@ -12127,8 +12127,8 @@ var St = {
|
|
|
12127
12127
|
if (u.name = this.path, u.binding || (u.binding = {}), Ht(a, f)) {
|
|
12128
12128
|
const m = a.trim().replaceAll(f, (v) => {
|
|
12129
12129
|
var S;
|
|
12130
|
-
const x = v.replace(/{|}/g, ""),
|
|
12131
|
-
return Zo(
|
|
12130
|
+
const x = v.replace(/{|}/g, ""), I = (S = r[x]) == null ? void 0 : S.computed(s, u);
|
|
12131
|
+
return Zo(I) && I.length === 2 ? `light-dark(${I[0].value},${I[1].value})` : I == null ? void 0 : I.value;
|
|
12132
12132
|
}), g = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, h = /var\([^)]+\)/g;
|
|
12133
12133
|
d = Ht(m.replace(h, "0"), g) ? `calc(${m})` : m;
|
|
12134
12134
|
}
|
|
@@ -12591,7 +12591,7 @@ function a0(t) {
|
|
|
12591
12591
|
}
|
|
12592
12592
|
var s0 = 0;
|
|
12593
12593
|
function l0(t) {
|
|
12594
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = _(!1), o = _(t), r = _(null), i = ii() ? window.document : void 0, a = e.document, l = a === void 0 ? i : a, c = e.immediate, s = c === void 0 ? !0 : c, u = e.manual, f = u === void 0 ? !1 : u, d = e.name, p = d === void 0 ? "style_".concat(++s0) : d, m = e.id, g = m === void 0 ? void 0 : m, h = e.media, v = h === void 0 ? void 0 : h, S = e.nonce, x = S === void 0 ? void 0 : S,
|
|
12594
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = _(!1), o = _(t), r = _(null), i = ii() ? window.document : void 0, a = e.document, l = a === void 0 ? i : a, c = e.immediate, s = c === void 0 ? !0 : c, u = e.manual, f = u === void 0 ? !1 : u, d = e.name, p = d === void 0 ? "style_".concat(++s0) : d, m = e.id, g = m === void 0 ? void 0 : m, h = e.media, v = h === void 0 ? void 0 : h, S = e.nonce, x = S === void 0 ? void 0 : S, I = e.first, R = I === void 0 ? !1 : I, T = e.onMounted, k = T === void 0 ? void 0 : T, y = e.onUpdated, E = y === void 0 ? void 0 : y, D = e.onLoad, B = D === void 0 ? void 0 : D, P = e.props, H = P === void 0 ? {} : P, A = function() {
|
|
12595
12595
|
}, q = function(Y) {
|
|
12596
12596
|
var z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
12597
12597
|
if (l) {
|
|
@@ -13809,8 +13809,8 @@ var ke = {
|
|
|
13809
13809
|
}, i), x), Te.setLoadedStyleName(r.$style.name);
|
|
13810
13810
|
}
|
|
13811
13811
|
if (!Te.isStyleNameLoaded("layer-order")) {
|
|
13812
|
-
var
|
|
13813
|
-
je.load(
|
|
13812
|
+
var I, R, T = (I = r.$style) === null || I === void 0 || (R = I.getLayerOrderThemeCSS) === null || R === void 0 ? void 0 : R.call(I);
|
|
13813
|
+
je.load(T, Oe({
|
|
13814
13814
|
name: "layer-order",
|
|
13815
13815
|
first: !0
|
|
13816
13816
|
}, i)), Te.setLoadedStyleName("layer-order");
|
|
@@ -13873,13 +13873,13 @@ var ke = {
|
|
|
13873
13873
|
/* computed instance variables */
|
|
13874
13874
|
defaultPT: function() {
|
|
13875
13875
|
return ke._getPT(g == null ? void 0 : g.pt, void 0, function(x) {
|
|
13876
|
-
var
|
|
13877
|
-
return x == null || (
|
|
13876
|
+
var I;
|
|
13877
|
+
return x == null || (I = x.directives) === null || I === void 0 ? void 0 : I[e];
|
|
13878
13878
|
});
|
|
13879
13879
|
},
|
|
13880
13880
|
isUnstyled: function() {
|
|
13881
|
-
var x,
|
|
13882
|
-
return ((x = l.$instance) === null || x === void 0 || (x = x.$binding) === null || x === void 0 || (x = x.value) === null || x === void 0 ? void 0 : x.unstyled) !== void 0 ? (
|
|
13881
|
+
var x, I;
|
|
13882
|
+
return ((x = l.$instance) === null || x === void 0 || (x = x.$binding) === null || x === void 0 || (x = x.value) === null || x === void 0 ? void 0 : x.unstyled) !== void 0 ? (I = l.$instance) === null || I === void 0 || (I = I.$binding) === null || I === void 0 || (I = I.value) === null || I === void 0 ? void 0 : I.unstyled : g == null ? void 0 : g.unstyled;
|
|
13883
13883
|
},
|
|
13884
13884
|
theme: function() {
|
|
13885
13885
|
var x;
|
|
@@ -13891,20 +13891,20 @@ var ke = {
|
|
|
13891
13891
|
},
|
|
13892
13892
|
/* instance's methods */
|
|
13893
13893
|
ptm: function() {
|
|
13894
|
-
var x,
|
|
13895
|
-
return ke._getPTValue(l.$instance, (x = l.$instance) === null || x === void 0 || (x = x.$binding) === null || x === void 0 || (x = x.value) === null || x === void 0 ? void 0 : x.pt,
|
|
13894
|
+
var x, I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
13895
|
+
return ke._getPTValue(l.$instance, (x = l.$instance) === null || x === void 0 || (x = x.$binding) === null || x === void 0 || (x = x.value) === null || x === void 0 ? void 0 : x.pt, I, Oe({}, R));
|
|
13896
13896
|
},
|
|
13897
13897
|
ptmo: function() {
|
|
13898
|
-
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
13899
|
-
return ke._getPTValue(l.$instance, x,
|
|
13898
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
13899
|
+
return ke._getPTValue(l.$instance, x, I, R, !1);
|
|
13900
13900
|
},
|
|
13901
13901
|
cx: function() {
|
|
13902
|
-
var x,
|
|
13903
|
-
return (x = l.$instance) !== null && x !== void 0 && x.isUnstyled() ? void 0 : ke._getOptionValue((
|
|
13902
|
+
var x, I, R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", T = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
13903
|
+
return (x = l.$instance) !== null && x !== void 0 && x.isUnstyled() ? void 0 : ke._getOptionValue((I = l.$instance) === null || I === void 0 || (I = I.$style) === null || I === void 0 ? void 0 : I.classes, R, Oe({}, T));
|
|
13904
13904
|
},
|
|
13905
13905
|
sx: function() {
|
|
13906
|
-
var x,
|
|
13907
|
-
return R ? ke._getOptionValue((x = l.$instance) === null || x === void 0 || (x = x.$style) === null || x === void 0 ? void 0 : x.inlineStyles,
|
|
13906
|
+
var x, I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
13907
|
+
return R ? ke._getOptionValue((x = l.$instance) === null || x === void 0 || (x = x.$style) === null || x === void 0 ? void 0 : x.inlineStyles, I, Oe({}, T)) : void 0;
|
|
13908
13908
|
}
|
|
13909
13909
|
}, v), l.$instance = l._$instances[e], (d = (p = l.$instance)[a]) === null || d === void 0 || d.call(p, l, c, s, u), l["$".concat(e)] = l.$instance, ke._hook(e, a, l, c, s, u), l.$pd || (l.$pd = {}), l.$pd[e] = Oe(Oe({}, (m = l.$pd) === null || m === void 0 ? void 0 : m[e]), {}, {
|
|
13910
13910
|
name: e,
|
|
@@ -16013,14 +16013,14 @@ var Nl = {
|
|
|
16013
16013
|
top: E,
|
|
16014
16014
|
behavior: o
|
|
16015
16015
|
});
|
|
16016
|
-
},
|
|
16016
|
+
}, I = r ? {
|
|
16017
16017
|
rows: 0,
|
|
16018
16018
|
cols: 0
|
|
16019
|
-
} : 0, R = !1,
|
|
16020
|
-
r ? (
|
|
16019
|
+
} : 0, R = !1, T = !1;
|
|
16020
|
+
r ? (I = {
|
|
16021
16021
|
rows: v(e[0], m[0]),
|
|
16022
16022
|
cols: v(e[1], m[1])
|
|
16023
|
-
}, x(S(
|
|
16023
|
+
}, x(S(I.cols, h[1], g.left), S(I.rows, h[0], g.top)), T = this.lastScrollPos.top !== u || this.lastScrollPos.left !== d, R = I.rows !== l.rows || I.cols !== l.cols) : (I = v(e, m), i ? x(S(I, h, g.left), u) : x(d, S(I, h, g.top)), T = this.lastScrollPos !== (i ? d : u), R = I !== l), this.isRangeChanged = R, T && (this.first = I);
|
|
16024
16024
|
}
|
|
16025
16025
|
},
|
|
16026
16026
|
scrollInView: function(e, n) {
|
|
@@ -16219,29 +16219,29 @@ var Nl = {
|
|
|
16219
16219
|
if (r) {
|
|
16220
16220
|
var S = this.lastScrollPos.top <= d, x = this.lastScrollPos.left <= p;
|
|
16221
16221
|
if (!this.appendOnly || this.appendOnly && (S || x)) {
|
|
16222
|
-
var
|
|
16222
|
+
var I = {
|
|
16223
16223
|
rows: c(d, this.itemSize[0]),
|
|
16224
16224
|
cols: c(p, this.itemSize[1])
|
|
16225
16225
|
}, R = {
|
|
16226
|
-
rows: s(
|
|
16227
|
-
cols: s(
|
|
16226
|
+
rows: s(I.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], S),
|
|
16227
|
+
cols: s(I.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], x)
|
|
16228
16228
|
};
|
|
16229
16229
|
m = {
|
|
16230
|
-
rows: u(
|
|
16231
|
-
cols: u(
|
|
16230
|
+
rows: u(I.rows, R.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], S),
|
|
16231
|
+
cols: u(I.cols, R.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], x)
|
|
16232
16232
|
}, g = {
|
|
16233
|
-
rows: f(
|
|
16234
|
-
cols: f(
|
|
16233
|
+
rows: f(I.rows, m.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
|
|
16234
|
+
cols: f(I.cols, m.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], !0)
|
|
16235
16235
|
}, h = m.rows !== this.first.rows || g.rows !== this.last.rows || m.cols !== this.first.cols || g.cols !== this.last.cols || this.isRangeChanged, v = {
|
|
16236
16236
|
top: d,
|
|
16237
16237
|
left: p
|
|
16238
16238
|
};
|
|
16239
16239
|
}
|
|
16240
16240
|
} else {
|
|
16241
|
-
var
|
|
16241
|
+
var T = i ? p : d, k = this.lastScrollPos <= T;
|
|
16242
16242
|
if (!this.appendOnly || this.appendOnly && k) {
|
|
16243
|
-
var y = c(
|
|
16244
|
-
m = u(y, E, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, k), g = f(y, m, this.last, this.numItemsInViewport, this.d_numToleratedItems), h = m !== this.first || g !== this.last || this.isRangeChanged, v =
|
|
16243
|
+
var y = c(T, this.itemSize), E = s(y, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, k);
|
|
16244
|
+
m = u(y, E, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, k), g = f(y, m, this.last, this.numItemsInViewport, this.d_numToleratedItems), h = m !== this.first || g !== this.last || this.isRangeChanged, v = T;
|
|
16245
16245
|
}
|
|
16246
16246
|
}
|
|
16247
16247
|
return {
|
|
@@ -17762,7 +17762,7 @@ function cv(t, e, n, o, r, i) {
|
|
|
17762
17762
|
pt: t.ptm("virtualScroller")
|
|
17763
17763
|
}), kr({
|
|
17764
17764
|
content: Q(function(h) {
|
|
17765
|
-
var v = h.styleClass, S = h.contentRef, x = h.items,
|
|
17765
|
+
var v = h.styleClass, S = h.contentRef, x = h.items, I = h.getItemOptions, R = h.contentStyle, T = h.itemSize;
|
|
17766
17766
|
return [w("ul", ie({
|
|
17767
17767
|
ref: function(y) {
|
|
17768
17768
|
return i.listRef(y, S);
|
|
@@ -17773,19 +17773,19 @@ function cv(t, e, n, o, r, i) {
|
|
|
17773
17773
|
role: "listbox"
|
|
17774
17774
|
}, t.ptm("list")), [(b(!0), C(ue, null, Pe(x, function(k, y) {
|
|
17775
17775
|
return b(), C(ue, {
|
|
17776
|
-
key: i.getOptionRenderKey(k, i.getOptionIndex(y,
|
|
17776
|
+
key: i.getOptionRenderKey(k, i.getOptionIndex(y, I))
|
|
17777
17777
|
}, [i.isOptionGroup(k) ? (b(), C("li", ie({
|
|
17778
17778
|
key: 0,
|
|
17779
|
-
id: r.id + "_" + i.getOptionIndex(y,
|
|
17779
|
+
id: r.id + "_" + i.getOptionIndex(y, I),
|
|
17780
17780
|
style: {
|
|
17781
|
-
height:
|
|
17781
|
+
height: T ? T + "px" : void 0
|
|
17782
17782
|
},
|
|
17783
17783
|
class: t.cx("optionGroup"),
|
|
17784
17784
|
role: "option",
|
|
17785
17785
|
ref_for: !0
|
|
17786
17786
|
}, t.ptm("optionGroup")), [me(t.$slots, "optiongroup", {
|
|
17787
17787
|
option: k.optionGroup,
|
|
17788
|
-
index: i.getOptionIndex(y,
|
|
17788
|
+
index: i.getOptionIndex(y, I)
|
|
17789
17789
|
}, function() {
|
|
17790
17790
|
return [w("span", ie({
|
|
17791
17791
|
class: t.cx("optionGroupLabel"),
|
|
@@ -17793,31 +17793,31 @@ function cv(t, e, n, o, r, i) {
|
|
|
17793
17793
|
}, t.ptm("optionGroupLabel")), ee(i.getOptionGroupLabel(k.optionGroup)), 17)];
|
|
17794
17794
|
})], 16, lv)) : Ot((b(), C("li", ie({
|
|
17795
17795
|
key: 1,
|
|
17796
|
-
id: r.id + "_" + i.getOptionIndex(y,
|
|
17796
|
+
id: r.id + "_" + i.getOptionIndex(y, I),
|
|
17797
17797
|
class: t.cx("option", {
|
|
17798
17798
|
option: k,
|
|
17799
|
-
focusedOption: i.getOptionIndex(y,
|
|
17799
|
+
focusedOption: i.getOptionIndex(y, I)
|
|
17800
17800
|
}),
|
|
17801
17801
|
style: {
|
|
17802
|
-
height:
|
|
17802
|
+
height: T ? T + "px" : void 0
|
|
17803
17803
|
},
|
|
17804
17804
|
role: "option",
|
|
17805
17805
|
"aria-label": i.getOptionLabel(k),
|
|
17806
17806
|
"aria-selected": i.isSelected(k),
|
|
17807
17807
|
"aria-disabled": i.isOptionDisabled(k),
|
|
17808
17808
|
"aria-setsize": i.ariaSetSize,
|
|
17809
|
-
"aria-posinset": i.getAriaPosInset(i.getOptionIndex(y,
|
|
17809
|
+
"aria-posinset": i.getAriaPosInset(i.getOptionIndex(y, I)),
|
|
17810
17810
|
onClick: function(D) {
|
|
17811
17811
|
return i.onOptionSelect(D, k);
|
|
17812
17812
|
},
|
|
17813
17813
|
onMousemove: function(D) {
|
|
17814
|
-
return i.onOptionMouseMove(D, i.getOptionIndex(y,
|
|
17814
|
+
return i.onOptionMouseMove(D, i.getOptionIndex(y, I));
|
|
17815
17815
|
},
|
|
17816
17816
|
"data-p-selected": i.isSelected(k),
|
|
17817
|
-
"data-p-focused": r.focusedOptionIndex === i.getOptionIndex(y,
|
|
17817
|
+
"data-p-focused": r.focusedOptionIndex === i.getOptionIndex(y, I),
|
|
17818
17818
|
"data-p-disabled": i.isOptionDisabled(k),
|
|
17819
17819
|
ref_for: !0
|
|
17820
|
-
}, i.getPTItemOptions(k,
|
|
17820
|
+
}, i.getPTItemOptions(k, I, y, "option")), [t.checkmark ? (b(), C(ue, {
|
|
17821
17821
|
key: 0
|
|
17822
17822
|
}, [i.isSelected(k) ? (b(), M(f, ie({
|
|
17823
17823
|
key: 0,
|
|
@@ -17830,7 +17830,7 @@ function cv(t, e, n, o, r, i) {
|
|
|
17830
17830
|
}, t.ptm("optionBlankIcon")), null, 16, ["class"]))], 64)) : U("", !0), me(t.$slots, "option", {
|
|
17831
17831
|
option: k,
|
|
17832
17832
|
selected: i.isSelected(k),
|
|
17833
|
-
index: i.getOptionIndex(y,
|
|
17833
|
+
index: i.getOptionIndex(y, I)
|
|
17834
17834
|
}, function() {
|
|
17835
17835
|
return [w("span", ie({
|
|
17836
17836
|
class: t.cx("optionLabel"),
|
|
@@ -17958,90 +17958,96 @@ const dv = { class: "editable-label-editing flex items-center gap-2 w-full" }, K
|
|
|
17958
17958
|
},
|
|
17959
17959
|
emits: ["update:modelValue", "onChange"],
|
|
17960
17960
|
setup(t, { emit: e }) {
|
|
17961
|
-
const n = et(), o = () => n.getAppId(), r = t
|
|
17962
|
-
|
|
17963
|
-
|
|
17964
|
-
|
|
17965
|
-
|
|
17966
|
-
|
|
17967
|
-
|
|
17968
|
-
|
|
17961
|
+
const n = et(), o = () => n.getAppId(), r = t;
|
|
17962
|
+
console.log("DynamicSelection props:", r);
|
|
17963
|
+
const i = e, a = _(r.modelValue), l = _(null), c = _([]), s = ne(
|
|
17964
|
+
() => r.options.length ? "label" : r.displayField
|
|
17965
|
+
), u = ne(
|
|
17966
|
+
() => r.options.length ? "value" : r.valueField
|
|
17967
|
+
);
|
|
17968
|
+
function f(g, h) {
|
|
17969
|
+
const v = h.split(".").reduce((S, x) => {
|
|
17970
|
+
var R;
|
|
17971
|
+
const I = x.match(/^(\w+)\[(\d+)\]$/);
|
|
17972
|
+
if (I) {
|
|
17973
|
+
const [, T, k] = I;
|
|
17974
|
+
return ((R = S == null ? void 0 : S[T]) == null ? void 0 : R[parseInt(k)]) ?? null;
|
|
17969
17975
|
} else
|
|
17970
|
-
return
|
|
17971
|
-
},
|
|
17972
|
-
return Array.isArray(
|
|
17976
|
+
return S == null ? void 0 : S[x];
|
|
17977
|
+
}, g);
|
|
17978
|
+
return Array.isArray(v) ? v : v ? [v] : [];
|
|
17973
17979
|
}
|
|
17974
|
-
async function
|
|
17980
|
+
async function d() {
|
|
17975
17981
|
if (!r.url || r.options.length) return;
|
|
17976
|
-
const
|
|
17982
|
+
const g = r.url.includes("appid") ? r.url.replace("${appid}", o()) : r.url;
|
|
17977
17983
|
try {
|
|
17978
|
-
const
|
|
17984
|
+
const v = await (await fetch(g, {
|
|
17979
17985
|
method: r.method.toUpperCase(),
|
|
17980
17986
|
headers: {
|
|
17981
17987
|
"Content-Type": "application/json"
|
|
17982
17988
|
},
|
|
17983
17989
|
...r.method.toUpperCase() === "POST" ? { body: "{}" } : {}
|
|
17984
17990
|
})).json();
|
|
17985
|
-
c.value =
|
|
17986
|
-
} catch (
|
|
17987
|
-
console.error("Error fetching options:",
|
|
17991
|
+
c.value = f(v, r.jsonPath), p(r.modelValue);
|
|
17992
|
+
} catch (h) {
|
|
17993
|
+
console.error("Error fetching options:", h);
|
|
17988
17994
|
}
|
|
17989
17995
|
}
|
|
17990
17996
|
Ze(() => {
|
|
17991
|
-
r.options.length ? c.value = r.options :
|
|
17997
|
+
r.options.length ? c.value = r.options : d(), p(r.modelValue);
|
|
17992
17998
|
}), Ae(
|
|
17993
17999
|
() => r.modelValue,
|
|
17994
|
-
(
|
|
17995
|
-
a.value =
|
|
18000
|
+
(g) => {
|
|
18001
|
+
a.value = g, p(g);
|
|
17996
18002
|
}
|
|
17997
|
-
), Ae(a, (
|
|
17998
|
-
|
|
18003
|
+
), Ae(a, (g) => {
|
|
18004
|
+
m(g), i("update:modelValue", g), i("onChange", g);
|
|
17999
18005
|
}), Ae(
|
|
18000
18006
|
() => r.options,
|
|
18001
|
-
(
|
|
18002
|
-
|
|
18007
|
+
(g) => {
|
|
18008
|
+
g.length && (c.value = g, p(r.modelValue));
|
|
18003
18009
|
},
|
|
18004
18010
|
{ immediate: !0 }
|
|
18005
18011
|
);
|
|
18006
|
-
function
|
|
18007
|
-
const
|
|
18008
|
-
(
|
|
18012
|
+
function p(g) {
|
|
18013
|
+
const h = c.value.find(
|
|
18014
|
+
(v) => String(v[u.value]) === String(g)
|
|
18009
18015
|
);
|
|
18010
|
-
|
|
18016
|
+
h ? (l.value = h, a.value = h[u.value]) : l.value = null;
|
|
18011
18017
|
}
|
|
18012
|
-
function
|
|
18013
|
-
const
|
|
18014
|
-
(
|
|
18018
|
+
function m(g) {
|
|
18019
|
+
const h = c.value.find(
|
|
18020
|
+
(v) => String(v[u.value]) === String(g)
|
|
18015
18021
|
);
|
|
18016
|
-
|
|
18022
|
+
h ? l.value = h : l.value = null;
|
|
18017
18023
|
}
|
|
18018
|
-
return (
|
|
18019
|
-
const
|
|
18020
|
-
return b(), M(
|
|
18024
|
+
return (g, h) => {
|
|
18025
|
+
const v = K("Select");
|
|
18026
|
+
return b(), M(v, {
|
|
18021
18027
|
modelValue: a.value,
|
|
18022
|
-
"onUpdate:modelValue":
|
|
18028
|
+
"onUpdate:modelValue": h[0] || (h[0] = (S) => a.value = S),
|
|
18023
18029
|
options: c.value,
|
|
18024
|
-
filter:
|
|
18025
|
-
optionLabel:
|
|
18026
|
-
optionValue:
|
|
18030
|
+
filter: r.options.length == 0,
|
|
18031
|
+
optionLabel: s.value,
|
|
18032
|
+
optionValue: u.value,
|
|
18027
18033
|
placeholder: "Select an option",
|
|
18028
18034
|
class: "w-full md:w-56"
|
|
18029
18035
|
}, {
|
|
18030
|
-
value: Q((
|
|
18036
|
+
value: Q((S) => [
|
|
18031
18037
|
l.value ? (b(), C("div", fv, [
|
|
18032
|
-
w("div", null, ee(l.value[
|
|
18033
|
-
])) : (b(), C("span", pv, ee(
|
|
18038
|
+
w("div", null, ee(l.value[s.value] || l.value.label), 1)
|
|
18039
|
+
])) : (b(), C("span", pv, ee(S.placeholder), 1))
|
|
18034
18040
|
]),
|
|
18035
|
-
option: Q((
|
|
18041
|
+
option: Q((S) => [
|
|
18036
18042
|
w("div", mv, [
|
|
18037
|
-
w("div", null, ee(
|
|
18043
|
+
w("div", null, ee(S.option[s.value] || S.option.label), 1)
|
|
18038
18044
|
])
|
|
18039
18045
|
]),
|
|
18040
18046
|
_: 1
|
|
18041
|
-
}, 8, ["modelValue", "options", "optionLabel", "optionValue"]);
|
|
18047
|
+
}, 8, ["modelValue", "options", "filter", "optionLabel", "optionValue"]);
|
|
18042
18048
|
};
|
|
18043
18049
|
}
|
|
18044
|
-
}, co = /* @__PURE__ */ ot(gv, [["__scopeId", "data-v-
|
|
18050
|
+
}, co = /* @__PURE__ */ ot(gv, [["__scopeId", "data-v-4c67a527"]]), hv = "/api/app/v1/${appid}/entity", Ga = {
|
|
18045
18051
|
__name: "EntityRecordSelection",
|
|
18046
18052
|
props: /* @__PURE__ */ Xe({
|
|
18047
18053
|
valueField: {
|
|
@@ -23983,12 +23989,14 @@ function Fw() {
|
|
|
23983
23989
|
const { get: t, post: e, put: n, del: o } = an();
|
|
23984
23990
|
return {
|
|
23985
23991
|
getActiveUser: async () => await t("/users/me"),
|
|
23986
|
-
getAppSecurity: async (
|
|
23987
|
-
enableAppSecurity: async (
|
|
23988
|
-
getAppSecurityRules: async (
|
|
23989
|
-
saveAppSecurityRule: async (
|
|
23990
|
-
getAppSecurityRoles: async (
|
|
23991
|
-
saveAppSecurityRoles: async (
|
|
23992
|
+
getAppSecurity: async (p) => await t(`/api/app/v1/${p}/security`),
|
|
23993
|
+
enableAppSecurity: async (p, m) => await e(`/api/app/v1/${p}/security/enable`, m),
|
|
23994
|
+
getAppSecurityRules: async (p) => await t(`/api/app/v1/${p}/security/rules`),
|
|
23995
|
+
saveAppSecurityRule: async (p, m) => await e(`/api/app/v1/${p}/security/rules`, m),
|
|
23996
|
+
getAppSecurityRoles: async (p) => await t(`/api/app/v1/${p}/security/roles`),
|
|
23997
|
+
saveAppSecurityRoles: async (p, m) => await e(`/api/app/v1/${p}/security/roles`, m),
|
|
23998
|
+
getAppSecurityPermissions: async (p) => await t(`/api/app/v1/${p}/security/permission`),
|
|
23999
|
+
saveAppSecurityPermission: async (p, m) => await e(`/api/app/v1/${p}/security/permission`, m)
|
|
23992
24000
|
};
|
|
23993
24001
|
}
|
|
23994
24002
|
function Aw() {
|