codesaaz-core 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codesaaz.es.js +375 -372
- package/dist/codesaaz.umd.js +2 -2
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/dist/codesaaz.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mergeModels as be, useModel as $e, resolveComponent as q, openBlock as y, createBlock as z, mergeProps as K, computed as de, hasInjectionContext as sc, inject as lt, toRaw as xs, isRef as Ot, isReactive as Ur, toRef as lc, ref as O, watch as Ee, reactive as Vt, effectScope as cc, getCurrentScope as uc, onScopeDispose as dc, nextTick as nt, toRefs as fc, markRaw as pc, createElementBlock as
|
|
1
|
+
import { mergeModels as be, useModel as $e, resolveComponent as q, openBlock as y, createBlock as z, mergeProps as K, computed as de, hasInjectionContext as sc, inject as lt, toRaw as xs, isRef as Ot, isReactive as Ur, toRef as lc, ref as O, watch as Ee, reactive as Vt, effectScope as cc, getCurrentScope as uc, onScopeDispose as dc, nextTick as nt, toRefs as fc, markRaw as pc, createElementBlock as C, Fragment as oe, createElementVNode as v, createTextVNode as Ke, toDisplayString as Z, createCommentVNode as j, renderList as we, createVNode as W, toValue as xe, unref as X, onMounted as Fe, provide as Tn, readonly as Ss, watchEffect as Cs, shallowRef as mc, withCtx as te, onUpdated as hc, normalizeProps as zt, guardReactiveProps as io, renderSlot as ae, createSlots as Cn, withKeys as Lo, withModifiers as Nt, withDirectives as cn, vShow as xr, resolveDirective as Hr, normalizeClass as pe, resolveDynamicComponent as Be, getCurrentInstance as gc, Teleport as bc, Transition as $s, normalizeStyle as Sr, onBeforeUnmount as Es, vModelText as yc, createApp as vc, h as wc } from "vue";
|
|
2
2
|
import { useRoute as Xt, useRouter as kc } from "vue-router";
|
|
3
3
|
import { useToast as Os, InputText as pa } from "primevue";
|
|
4
4
|
const ma = {
|
|
@@ -601,7 +601,7 @@ function Bs(e, t, n = {}, o, r, a) {
|
|
|
601
601
|
const G = function() {
|
|
602
602
|
Wr(o);
|
|
603
603
|
const U = Array.from(arguments), D = [], P = [];
|
|
604
|
-
function
|
|
604
|
+
function S(L) {
|
|
605
605
|
D.push(L);
|
|
606
606
|
}
|
|
607
607
|
function B(L) {
|
|
@@ -611,7 +611,7 @@ function Bs(e, t, n = {}, o, r, a) {
|
|
|
611
611
|
args: U,
|
|
612
612
|
name: G[sr],
|
|
613
613
|
store: $,
|
|
614
|
-
after:
|
|
614
|
+
after: S,
|
|
615
615
|
onError: B
|
|
616
616
|
});
|
|
617
617
|
let I;
|
|
@@ -2558,7 +2558,7 @@ function ad(e = "") {
|
|
|
2558
2558
|
let o = O({}), r = O([]), a = O([]), i = O([]);
|
|
2559
2559
|
const l = O(""), u = O(1), s = O(25), c = O(0), d = O(0), p = O(0), f = O(!1), m = O([]), h = O(""), g = O({}), b = async (P) => {
|
|
2560
2560
|
r.value = P.result, i.value = $(P.entity.entityDefinition.columns), a.value = x(P.entity.entityDefinition.columns);
|
|
2561
|
-
}, k = async (P,
|
|
2561
|
+
}, k = async (P, S = !0) => {
|
|
2562
2562
|
f.value = !0;
|
|
2563
2563
|
try {
|
|
2564
2564
|
const B = await t.getEntityRecords(P);
|
|
@@ -2571,7 +2571,7 @@ function ad(e = "") {
|
|
|
2571
2571
|
}, w = async (P = !0) => {
|
|
2572
2572
|
f.value = !0;
|
|
2573
2573
|
try {
|
|
2574
|
-
const
|
|
2574
|
+
const S = {
|
|
2575
2575
|
sortBy: [l.value],
|
|
2576
2576
|
sortDirection: u.value === 1 ? "ASC" : "DESC",
|
|
2577
2577
|
pageSize: s.value,
|
|
@@ -2580,23 +2580,23 @@ function ad(e = "") {
|
|
|
2580
2580
|
filter: m.value,
|
|
2581
2581
|
fullTextSearch: h.value
|
|
2582
2582
|
};
|
|
2583
|
-
Object.keys(
|
|
2584
|
-
const B = await t.searchEntityRecords(e,
|
|
2583
|
+
Object.keys(S.filter).length === 0 && (S.filter = []);
|
|
2584
|
+
const B = await t.searchEntityRecords(e, S);
|
|
2585
2585
|
B && B.response && (f.value = !1, o.value = B.response, r.value = B.response.result, d.value = B.response.totalRecords, p.value = c.value * s.value);
|
|
2586
|
-
} catch (
|
|
2587
|
-
console.error("Error fetching entity:",
|
|
2586
|
+
} catch (S) {
|
|
2587
|
+
console.error("Error fetching entity:", S.errorMessage);
|
|
2588
2588
|
} finally {
|
|
2589
2589
|
f.value = !1;
|
|
2590
2590
|
}
|
|
2591
|
-
}, x = (P) => P.filter((
|
|
2592
|
-
field:
|
|
2593
|
-
name:
|
|
2594
|
-
filterable:
|
|
2595
|
-
datatype:
|
|
2591
|
+
}, x = (P) => P.filter((S) => S.fieldType !== "ENTITY").map((S) => ({
|
|
2592
|
+
field: S.name,
|
|
2593
|
+
name: S.displayName ? S.displayName : S.name,
|
|
2594
|
+
filterable: S.filterable,
|
|
2595
|
+
datatype: S.type,
|
|
2596
2596
|
sortable: !0,
|
|
2597
|
-
displayFormatKey:
|
|
2598
|
-
displayFormat:
|
|
2599
|
-
})), $ = (P) => P.filter((
|
|
2597
|
+
displayFormatKey: S.displayFormatKey,
|
|
2598
|
+
displayFormat: S.displayFormat
|
|
2599
|
+
})), $ = (P) => P.filter((S) => !(S.fieldType && S.fieldType === "ENTITY")), N = (P) => {
|
|
2600
2600
|
l.value = P.sortField, u.value = P.sortOrder, p.value = 0, w();
|
|
2601
2601
|
}, T = (P) => {
|
|
2602
2602
|
s.value = P.rows, c.value = P.page, p.value = P.first, w();
|
|
@@ -2620,13 +2620,13 @@ function ad(e = "") {
|
|
|
2620
2620
|
return "text";
|
|
2621
2621
|
}
|
|
2622
2622
|
}, U = (P) => {
|
|
2623
|
-
const
|
|
2624
|
-
return
|
|
2623
|
+
const S = a.value.find((B) => B.field === P);
|
|
2624
|
+
return S ? S.datatype : null;
|
|
2625
2625
|
}, D = () => {
|
|
2626
2626
|
for (let P = 0; P < i.value.length; P++) {
|
|
2627
|
-
const
|
|
2628
|
-
if (
|
|
2629
|
-
g.value =
|
|
2627
|
+
const S = i.value[P];
|
|
2628
|
+
if (S.primaryKey && S.primaryKey == !0) {
|
|
2629
|
+
g.value = S, l.value = S.name;
|
|
2630
2630
|
break;
|
|
2631
2631
|
}
|
|
2632
2632
|
}
|
|
@@ -2728,14 +2728,14 @@ const He = (e, t) => {
|
|
|
2728
2728
|
return (i, l) => {
|
|
2729
2729
|
var p, f, m, h, g;
|
|
2730
2730
|
const u = q("DatePicker"), s = q("InputNumber"), c = q("InputText"), d = q("Checkbox");
|
|
2731
|
-
return y(),
|
|
2732
|
-
!e.column.fieldType && e.column.inputComponent.toLowerCase() != "input_boolean" ? (y(),
|
|
2731
|
+
return y(), C(oe, null, [
|
|
2732
|
+
!e.column.fieldType && e.column.inputComponent.toLowerCase() != "input_boolean" ? (y(), C("div", id, [
|
|
2733
2733
|
v("label", {
|
|
2734
2734
|
class: "mb-1",
|
|
2735
2735
|
for: e.column.name
|
|
2736
2736
|
}, [
|
|
2737
2737
|
Ke(Z(e.column.displayName || e.column.name) + " ", 1),
|
|
2738
|
-
e.column.required ? (y(),
|
|
2738
|
+
e.column.required ? (y(), C("span", ld, "*")) : j("", !0)
|
|
2739
2739
|
], 8, sd),
|
|
2740
2740
|
e.column.inputComponent.toLowerCase() == "input_calendar" ? (y(), z(u, {
|
|
2741
2741
|
key: 0,
|
|
@@ -2777,14 +2777,14 @@ const He = (e, t) => {
|
|
|
2777
2777
|
onInput: l[7] || (l[7] = (b) => a(e.column)),
|
|
2778
2778
|
invalid: ((h = e.errors) == null ? void 0 : h.length) > 0
|
|
2779
2779
|
}, null, 8, ["modelValue", "id", "name", "invalid"])),
|
|
2780
|
-
(y(!0),
|
|
2780
|
+
(y(!0), C(oe, null, we(e.errors, (b, k) => (y(), C("div", {
|
|
2781
2781
|
key: k,
|
|
2782
2782
|
class: "text-red-500 mt-1 ml-2"
|
|
2783
2783
|
}, [
|
|
2784
|
-
b.includes("hint:") ? (y(),
|
|
2784
|
+
b.includes("hint:") ? (y(), C("small", ud, Z(b.split(":")[1]), 1)) : (y(), C("small", cd, Z(b), 1))
|
|
2785
2785
|
]))), 128))
|
|
2786
2786
|
])) : j("", !0),
|
|
2787
|
-
!e.column.fieldType && e.column.inputComponent.toLowerCase() == "input_boolean" ? (y(),
|
|
2787
|
+
!e.column.fieldType && e.column.inputComponent.toLowerCase() == "input_boolean" ? (y(), C("div", dd, [
|
|
2788
2788
|
W(d, {
|
|
2789
2789
|
modelValue: n.value,
|
|
2790
2790
|
"onUpdate:modelValue": l[8] || (l[8] = (b) => n.value = b),
|
|
@@ -2794,7 +2794,7 @@ const He = (e, t) => {
|
|
|
2794
2794
|
}, null, 8, ["modelValue", "invalid"]),
|
|
2795
2795
|
v("label", fd, [
|
|
2796
2796
|
Ke(Z(e.column.displayName || e.column.name) + " ", 1),
|
|
2797
|
-
e.column.required ? (y(),
|
|
2797
|
+
e.column.required ? (y(), C("span", pd, "*")) : j("", !0)
|
|
2798
2798
|
])
|
|
2799
2799
|
])) : j("", !0)
|
|
2800
2800
|
], 64);
|
|
@@ -3411,7 +3411,7 @@ function cl(e) {
|
|
|
3411
3411
|
});
|
|
3412
3412
|
}), et;
|
|
3413
3413
|
}
|
|
3414
|
-
const P = Qa(gn, 5),
|
|
3414
|
+
const P = Qa(gn, 5), S = Qa(gn, 5), B = Bd(async (A) => await (A === "silent" ? P() : S()), (A, [F]) => {
|
|
3415
3415
|
const Y = pt(ve.errorBag.value), fe = [
|
|
3416
3416
|
.../* @__PURE__ */ new Set([...pt(A.results), ...c.value.map((ge) => ge.path), ...Y])
|
|
3417
3417
|
].sort().reduce((ge, ce) => {
|
|
@@ -4197,7 +4197,7 @@ function vn(e) {
|
|
|
4197
4197
|
spec: i.spec,
|
|
4198
4198
|
disableStackTrace: U.disableStackTrace || b
|
|
4199
4199
|
}, d, U.params);
|
|
4200
|
-
for (const
|
|
4200
|
+
for (const S of Object.keys(D)) D[S] = k(D[S]);
|
|
4201
4201
|
const P = new ot(ot.formatError(U.message || p, D), n, D.path, U.type || s, D.disableStackTrace);
|
|
4202
4202
|
return P.params = D, P;
|
|
4203
4203
|
}
|
|
@@ -5436,7 +5436,7 @@ function na(e, t, n, o) {
|
|
|
5436
5436
|
let se = "";
|
|
5437
5437
|
if (_.required && (!R || R.trim() === ""))
|
|
5438
5438
|
if (_.validations) {
|
|
5439
|
-
se =
|
|
5439
|
+
se = S(_.validations, "VALIDATE_REQUIRED"), Q.push(se);
|
|
5440
5440
|
let ie = I(_.validations, "VALIDATE_REQUIRED");
|
|
5441
5441
|
ie && (ie = "hint:" + ie, Q.push(ie));
|
|
5442
5442
|
} else
|
|
@@ -5444,14 +5444,14 @@ function na(e, t, n, o) {
|
|
|
5444
5444
|
else {
|
|
5445
5445
|
if (_.maxLength && R.length > _.maxLength)
|
|
5446
5446
|
if (_.validations) {
|
|
5447
|
-
se =
|
|
5447
|
+
se = S(_.validations, "VALIDATE_MAXLENGTH"), Q.push(se);
|
|
5448
5448
|
let ie = I(_.validations, "VALIDATE_MAXLENGTH");
|
|
5449
5449
|
ie && (ie = "hint:" + ie, Q.push(ie));
|
|
5450
5450
|
} else
|
|
5451
5451
|
se = _.displayName + " cannot exceed from " + _.maxLength + " characters", Q.push(se);
|
|
5452
5452
|
if (_.regxId && !new RegExp(B(_.validations, "VALIDATE_REGX")).test(R))
|
|
5453
5453
|
if (_.validations) {
|
|
5454
|
-
se =
|
|
5454
|
+
se = S(_.validations, "VALIDATE_REGX"), Q.push(se);
|
|
5455
5455
|
let ie = I(_.validations, "VALIDATE_REGX");
|
|
5456
5456
|
ie && (ie = "hint:" + ie, Q.push(ie));
|
|
5457
5457
|
} else
|
|
@@ -5464,7 +5464,7 @@ function na(e, t, n, o) {
|
|
|
5464
5464
|
}
|
|
5465
5465
|
})), V), {})
|
|
5466
5466
|
);
|
|
5467
|
-
},
|
|
5467
|
+
}, S = (V, _) => {
|
|
5468
5468
|
for (let R = 0; R < V.length; R++)
|
|
5469
5469
|
if (_ == V[R].type)
|
|
5470
5470
|
return V[R].message;
|
|
@@ -5528,7 +5528,7 @@ const Pf = {
|
|
|
5528
5528
|
return (o, r) => {
|
|
5529
5529
|
var i;
|
|
5530
5530
|
const a = q("Message");
|
|
5531
|
-
return ((i = e.errors) == null ? void 0 : i.length) > 0 ? (y(),
|
|
5531
|
+
return ((i = e.errors) == null ? void 0 : i.length) > 0 ? (y(), C("div", Pf, [
|
|
5532
5532
|
r[1] || (r[1] = v("h4", { class: "flex-1 font-bold text-red-500" }, "Errors", -1)),
|
|
5533
5533
|
v("div", Ff, [
|
|
5534
5534
|
v("span", {
|
|
@@ -5536,8 +5536,8 @@ const Pf = {
|
|
|
5536
5536
|
class: "cursor-pointer underline showHideColor"
|
|
5537
5537
|
}, Z(X(t) ? "Hide" : "Show"), 1)
|
|
5538
5538
|
]),
|
|
5539
|
-
X(t) ? (y(),
|
|
5540
|
-
(y(!0),
|
|
5539
|
+
X(t) ? (y(), C("ul", Af, [
|
|
5540
|
+
(y(!0), C(oe, null, we(e.errors, (l, u) => (y(), C("li", {
|
|
5541
5541
|
key: u,
|
|
5542
5542
|
class: "mb-2"
|
|
5543
5543
|
}, [
|
|
@@ -5618,7 +5618,7 @@ const Pf = {
|
|
|
5618
5618
|
};
|
|
5619
5619
|
return (g, b) => {
|
|
5620
5620
|
const k = q("Select");
|
|
5621
|
-
return y(),
|
|
5621
|
+
return y(), C("div", _f, [
|
|
5622
5622
|
v("label", { for: e.columnName }, Z(e.displayName || e.columnName), 9, Lf),
|
|
5623
5623
|
W(k, {
|
|
5624
5624
|
modelValue: X(d),
|
|
@@ -5634,9 +5634,9 @@ const Pf = {
|
|
|
5634
5634
|
class: "w-full"
|
|
5635
5635
|
}, {
|
|
5636
5636
|
value: te((w) => [
|
|
5637
|
-
w.value ? (y(),
|
|
5637
|
+
w.value ? (y(), C("div", Nf, [
|
|
5638
5638
|
v("div", null, Z(w.value[e.relatedEntityColumn]), 1)
|
|
5639
|
-
])) : (y(),
|
|
5639
|
+
])) : (y(), C("span", Df, Z(w.placeholder), 1))
|
|
5640
5640
|
]),
|
|
5641
5641
|
option: te((w) => [
|
|
5642
5642
|
v("div", Vf, [
|
|
@@ -5687,8 +5687,8 @@ const Pf = {
|
|
|
5687
5687
|
class: "p-fluid"
|
|
5688
5688
|
}, {
|
|
5689
5689
|
header: te(() => [
|
|
5690
|
-
e.recordId ? (y(),
|
|
5691
|
-
e.recordId ? j("", !0) : (y(),
|
|
5690
|
+
e.recordId ? (y(), C("span", zf, "Edit " + Z(e.entityName) + " record details", 1)) : j("", !0),
|
|
5691
|
+
e.recordId ? j("", !0) : (y(), C("span", Mf, "Add " + Z(e.entityName) + " record details", 1))
|
|
5692
5692
|
]),
|
|
5693
5693
|
footer: te(() => [
|
|
5694
5694
|
W(h, {
|
|
@@ -5709,9 +5709,9 @@ const Pf = {
|
|
|
5709
5709
|
default: te(() => {
|
|
5710
5710
|
var b;
|
|
5711
5711
|
return [
|
|
5712
|
-
(y(!0),
|
|
5712
|
+
(y(!0), C(oe, null, we(X(i), (k, w) => {
|
|
5713
5713
|
var x;
|
|
5714
|
-
return y(),
|
|
5714
|
+
return y(), C("div", { key: w }, [
|
|
5715
5715
|
!k.autoGenerated && !k.foreignKey ? (y(), z(Ho, {
|
|
5716
5716
|
key: 0,
|
|
5717
5717
|
modelValue: X(a)[k.name],
|
|
@@ -6200,12 +6200,12 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6200
6200
|
o();
|
|
6201
6201
|
}), hc(() => {
|
|
6202
6202
|
o();
|
|
6203
|
-
}), (r, a) => e.column.displayFormatKey ? (y(),
|
|
6203
|
+
}), (r, a) => e.column.displayFormatKey ? (y(), C("span", np, [
|
|
6204
6204
|
v("span", {
|
|
6205
6205
|
ref_key: "el",
|
|
6206
6206
|
ref: t
|
|
6207
6207
|
}, Z(e.value), 513)
|
|
6208
|
-
])) : (y(),
|
|
6208
|
+
])) : (y(), C("span", op, Z(e.value), 1));
|
|
6209
6209
|
}
|
|
6210
6210
|
}, rp = { class: "my-2" }, ap = { class: "flex flex-col md:flex-row md:justify-between md:items-center" }, ip = { class: "flex flex-row gap-2" }, _r = {
|
|
6211
6211
|
__name: "Grid",
|
|
@@ -6225,7 +6225,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6225
6225
|
setup(e) {
|
|
6226
6226
|
const t = _e(), n = e;
|
|
6227
6227
|
console.log("columnsToShow", n.columnsToShow);
|
|
6228
|
-
const o = Xt(), r = O(n.entityName || o.params.entityName), a = O({}), i = O(""), l = O(!1), u = O(!1), { items: s, headers: c, first: d, totalRecords: p, pageSize: f, loading: m, sortBy: h, sortDirection: g, operatorMap: b, filterToSend: k, primarayKeyColumn: w, fullTextSearch: x, listingResponse: $, onFullTextSearch: N, getDatatypeByField: T, getColumnDatatype: E, onSort: H, onPage: G, onFilter: U, fetchEntityFilterData: D, fetchEntityByName: P, showEntityData:
|
|
6228
|
+
const o = Xt(), r = O(n.entityName || o.params.entityName), a = O({}), i = O(""), l = O(!1), u = O(!1), { items: s, headers: c, first: d, totalRecords: p, pageSize: f, loading: m, sortBy: h, sortDirection: g, operatorMap: b, filterToSend: k, primarayKeyColumn: w, fullTextSearch: x, listingResponse: $, onFullTextSearch: N, getDatatypeByField: T, getColumnDatatype: E, onSort: H, onPage: G, onFilter: U, fetchEntityFilterData: D, fetchEntityByName: P, showEntityData: S } = ad(r.value), B = O();
|
|
6229
6229
|
let I = O(!1);
|
|
6230
6230
|
const L = (ie) => {
|
|
6231
6231
|
a.value = ie.reduce((ue, ve) => {
|
|
@@ -6279,19 +6279,19 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6279
6279
|
} : [];
|
|
6280
6280
|
}).flat();
|
|
6281
6281
|
return Fe(() => {
|
|
6282
|
-
n.entityData ?
|
|
6282
|
+
n.entityData ? S(n.entityData) : P(r.value);
|
|
6283
6283
|
}), Ee(
|
|
6284
6284
|
() => t.globalConfigs.appId,
|
|
6285
6285
|
// The source to watch
|
|
6286
6286
|
async (ie) => {
|
|
6287
|
-
ie && (n.entityData ?
|
|
6287
|
+
ie && (n.entityData ? S(n.entityData) : P(r.value));
|
|
6288
6288
|
},
|
|
6289
6289
|
{ immediate: !0 }
|
|
6290
6290
|
), Ee(() => c.value, (ie) => {
|
|
6291
6291
|
!I.value && ie && ie.length && (L(ie), I.value = !0);
|
|
6292
6292
|
}, { immediate: !0 }), (ie, ue) => {
|
|
6293
6293
|
const ve = q("Button"), Ae = q("Toolbar"), jt = q("ProgressSpinner"), ut = q("InputIcon"), Bt = q("IconField"), kt = q("DatePicker"), ne = q("InputNumber"), J = q("Checkbox"), Te = q("Column"), it = q("DataTable");
|
|
6294
|
-
return y(),
|
|
6294
|
+
return y(), C(oe, null, [
|
|
6295
6295
|
v("div", zt(io(ie.$attrs)), [
|
|
6296
6296
|
ae(ie.$slots, "header"),
|
|
6297
6297
|
e.showClearFilters || e.showAddButton ? (y(), z(Ae, {
|
|
@@ -6364,7 +6364,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6364
6364
|
default: te(() => {
|
|
6365
6365
|
var Ve;
|
|
6366
6366
|
return [
|
|
6367
|
-
(y(!0),
|
|
6367
|
+
(y(!0), C(oe, null, we(X(c).filter((Ie) => !n.columnsToShow || n.columnsToShow.length === 0 || n.columnsToShow.includes(Ie.field)), (Ie) => (y(), z(Te, {
|
|
6368
6368
|
key: Ie.field,
|
|
6369
6369
|
dataType: X(E)(Ie.datatype),
|
|
6370
6370
|
field: Ie.field,
|
|
@@ -6541,7 +6541,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6541
6541
|
};
|
|
6542
6542
|
return (d, p) => {
|
|
6543
6543
|
const f = q("Button"), m = q("ContextMenu"), h = q("router-link");
|
|
6544
|
-
return y(),
|
|
6544
|
+
return y(), C("div", {
|
|
6545
6545
|
onMouseenter: p[4] || (p[4] = Nt((g) => r.value = !0, ["prevent"])),
|
|
6546
6546
|
onMouseleave: p[5] || (p[5] = Nt((g) => r.value = !1, ["prevent"])),
|
|
6547
6547
|
class: "flex relative m-3",
|
|
@@ -6727,7 +6727,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6727
6727
|
{ label: "Less than or equal to", value: "lte" },
|
|
6728
6728
|
{ label: "Greater than", value: "gt" },
|
|
6729
6729
|
{ label: "Greater than or equal to", value: "gte" }
|
|
6730
|
-
],
|
|
6730
|
+
], S = [
|
|
6731
6731
|
{ label: "Equals", value: "equals" },
|
|
6732
6732
|
{ label: "Not equals", value: "notEquals" }
|
|
6733
6733
|
], B = [
|
|
@@ -6780,7 +6780,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6780
6780
|
break;
|
|
6781
6781
|
case "bool":
|
|
6782
6782
|
case "boolean":
|
|
6783
|
-
L =
|
|
6783
|
+
L = S;
|
|
6784
6784
|
break;
|
|
6785
6785
|
default:
|
|
6786
6786
|
L = D;
|
|
@@ -6844,7 +6844,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6844
6844
|
return (ne, J) => {
|
|
6845
6845
|
var bn, fo;
|
|
6846
6846
|
const Te = q("InputIcon"), it = q("InputText"), Ve = q("IconField"), Ie = q("Select"), Re = q("Divider"), We = q("InputNumber"), hn = q("DatePicker"), ht = q("Button"), Zt = q("Checkbox"), gn = q("Paginator"), nr = Hr("tooltip");
|
|
6847
|
-
return y(),
|
|
6847
|
+
return y(), C(oe, null, [
|
|
6848
6848
|
v("div", dp, [
|
|
6849
6849
|
v("div", fp, [
|
|
6850
6850
|
W(Ve, { class: "block mt-2 md:mt-0 w-full" }, {
|
|
@@ -6869,12 +6869,12 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6869
6869
|
class: "flex items-center cursor-pointer sorting-filter-section flex-1 line-height-4",
|
|
6870
6870
|
onClick: J[2] || (J[2] = (me) => U())
|
|
6871
6871
|
}, [
|
|
6872
|
-
k.value ? j("", !0) : (y(),
|
|
6873
|
-
k.value ? (y(),
|
|
6872
|
+
k.value ? j("", !0) : (y(), C("div", mp)),
|
|
6873
|
+
k.value ? (y(), C("div", hp)) : j("", !0),
|
|
6874
6874
|
J[9] || (J[9] = v("div", { class: "ml-3 font-bold" }, " Sorting & Filters ", -1))
|
|
6875
6875
|
])
|
|
6876
6876
|
]),
|
|
6877
|
-
k.value ? (y(),
|
|
6877
|
+
k.value ? (y(), C("div", gp, [
|
|
6878
6878
|
v("div", bp, [
|
|
6879
6879
|
J[10] || (J[10] = v("div", { class: "col-12 font-bold" }, "Sort Column", -1)),
|
|
6880
6880
|
v("div", yp, [
|
|
@@ -6907,8 +6907,8 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6907
6907
|
}, null, 8, ["modelValue"])
|
|
6908
6908
|
])
|
|
6909
6909
|
]),
|
|
6910
|
-
(y(!0),
|
|
6911
|
-
me.editing ? (y(),
|
|
6910
|
+
(y(!0), C(oe, null, we(p.value, (me, en) => (y(), C("div", { key: en }, [
|
|
6911
|
+
me.editing ? (y(), C("div", kp, [
|
|
6912
6912
|
W(Re, { class: "mt-5" }),
|
|
6913
6913
|
v("div", xp, [
|
|
6914
6914
|
J[12] || (J[12] = v("div", { class: "col-12 font-bold" }, "Filter Column", -1)),
|
|
@@ -6984,11 +6984,11 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6984
6984
|
}, null, 8, ["onClick"])
|
|
6985
6985
|
])
|
|
6986
6986
|
])) : j("", !0),
|
|
6987
|
-
me.editing ? j("", !0) : (y(),
|
|
6987
|
+
me.editing ? j("", !0) : (y(), C("div", Ip, [
|
|
6988
6988
|
W(Re),
|
|
6989
6989
|
v("div", Bp, [
|
|
6990
6990
|
v("span", null, [
|
|
6991
|
-
me.columnName || me.operator || me.value ? (y(),
|
|
6991
|
+
me.columnName || me.operator || me.value ? (y(), C(oe, { key: 0 }, [
|
|
6992
6992
|
v("span", {
|
|
6993
6993
|
class: pe({ "text-red-500": !me.columnName })
|
|
6994
6994
|
}, Z(me.columnName ? " " + me.columnName : " column"), 3),
|
|
@@ -6998,7 +6998,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
6998
6998
|
v("span", {
|
|
6999
6999
|
class: pe({ "text-red-500": !me.value })
|
|
7000
7000
|
}, Z(me.value ? " " + me.value : " value"), 3)
|
|
7001
|
-
], 64)) : (y(),
|
|
7001
|
+
], 64)) : (y(), C("span", Rp, "Filter is empty"))
|
|
7002
7002
|
]),
|
|
7003
7003
|
W(ht, {
|
|
7004
7004
|
style: { width: "100px" },
|
|
@@ -7034,7 +7034,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7034
7034
|
v("div", _p, Z((bn = r.value) == null ? void 0 : bn.totalRecords), 1),
|
|
7035
7035
|
v("div", Lp, Z((fo = r.value) == null ? void 0 : fo.entityName), 1)
|
|
7036
7036
|
]),
|
|
7037
|
-
(y(!0),
|
|
7037
|
+
(y(!0), C(oe, null, we(r.value.result, (me, en) => (y(), C("div", { key: en }, [
|
|
7038
7038
|
v("div", Np, [
|
|
7039
7039
|
W(Zt, {
|
|
7040
7040
|
disabled: $(me[s.value.name]),
|
|
@@ -7046,7 +7046,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7046
7046
|
Ke(Z(e.linkedEntity.entityName) + " ", 1),
|
|
7047
7047
|
v("span", null, Z(me[s.value.name]), 1)
|
|
7048
7048
|
]),
|
|
7049
|
-
$(me[s.value.name]) ? cn((y(),
|
|
7049
|
+
$(me[s.value.name]) ? cn((y(), C("div", Vp, null, 512)), [
|
|
7050
7050
|
[
|
|
7051
7051
|
nr,
|
|
7052
7052
|
"This record is already associated.",
|
|
@@ -7179,7 +7179,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7179
7179
|
};
|
|
7180
7180
|
return ($, N) => {
|
|
7181
7181
|
const T = q("Select"), E = q("Divider"), H = q("Button");
|
|
7182
|
-
return y(),
|
|
7182
|
+
return y(), C("div", qp, [
|
|
7183
7183
|
W(T, {
|
|
7184
7184
|
modelValue: X(p),
|
|
7185
7185
|
"onUpdate:modelValue": N[0] || (N[0] = (G) => Ot(p) ? p.value = G : p = G),
|
|
@@ -7191,9 +7191,9 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7191
7191
|
class: "w-full"
|
|
7192
7192
|
}, {
|
|
7193
7193
|
value: te((G) => [
|
|
7194
|
-
G.value ? (y(),
|
|
7194
|
+
G.value ? (y(), C("div", Kp, [
|
|
7195
7195
|
v("div", null, Z(G.value[f.value.name]), 1)
|
|
7196
|
-
])) : (y(),
|
|
7196
|
+
])) : (y(), C("span", Gp, Z(G.placeholder), 1))
|
|
7197
7197
|
]),
|
|
7198
7198
|
option: te((G) => [
|
|
7199
7199
|
v("div", Yp, [
|
|
@@ -7332,10 +7332,10 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7332
7332
|
default: te(() => [
|
|
7333
7333
|
W(H, { value: "0" }, {
|
|
7334
7334
|
default: te(() => [
|
|
7335
|
-
(y(!0),
|
|
7335
|
+
(y(!0), C(oe, null, we(X(s), (P, S) => {
|
|
7336
7336
|
var B;
|
|
7337
|
-
return y(),
|
|
7338
|
-
key:
|
|
7337
|
+
return y(), C("div", {
|
|
7338
|
+
key: S,
|
|
7339
7339
|
class: "mt-3"
|
|
7340
7340
|
}, [
|
|
7341
7341
|
!P.autoGenerated && !P.foreignKey ? (y(), z(Ho, {
|
|
@@ -7443,15 +7443,15 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7443
7443
|
}, l = de(() => t.linkedEntity.list.filter((u) => !u.is_deleted).length);
|
|
7444
7444
|
return (u, s) => {
|
|
7445
7445
|
const c = q("Button");
|
|
7446
|
-
return y(),
|
|
7446
|
+
return y(), C(oe, null, [
|
|
7447
7447
|
v("div", lm, [
|
|
7448
7448
|
v("div", cm, [
|
|
7449
7449
|
v("div", {
|
|
7450
7450
|
class: "flex cursor-pointer items-center linked-entity-section grow line-height-4",
|
|
7451
7451
|
onClick: s[0] || (s[0] = (d) => r())
|
|
7452
7452
|
}, [
|
|
7453
|
-
n.value ? j("", !0) : (y(),
|
|
7454
|
-
n.value ? (y(),
|
|
7453
|
+
n.value ? j("", !0) : (y(), C("div", um)),
|
|
7454
|
+
n.value ? (y(), C("div", dm)) : j("", !0),
|
|
7455
7455
|
v("div", fm, Z(e.linkedEntity.entityName), 1),
|
|
7456
7456
|
v("div", pm, " (" + Z(l.value) + ") ", 1)
|
|
7457
7457
|
]),
|
|
@@ -7464,8 +7464,8 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7464
7464
|
})
|
|
7465
7465
|
])
|
|
7466
7466
|
]),
|
|
7467
|
-
n.value ? (y(),
|
|
7468
|
-
(y(!0),
|
|
7467
|
+
n.value ? (y(), C("div", hm, [
|
|
7468
|
+
(y(!0), C(oe, null, we(e.linkedEntity.list, (d, p) => (y(), C("div", {
|
|
7469
7469
|
class: "flex flex-col",
|
|
7470
7470
|
key: p
|
|
7471
7471
|
}, [
|
|
@@ -7547,8 +7547,8 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7547
7547
|
}, G = (P) => {
|
|
7548
7548
|
if (!u.value || u.value.length === 0)
|
|
7549
7549
|
return [];
|
|
7550
|
-
const
|
|
7551
|
-
return
|
|
7550
|
+
const S = u.value.find((B) => B.entityName === P);
|
|
7551
|
+
return S && S.list ? S.list : (console.log("No related entity found"), []);
|
|
7552
7552
|
};
|
|
7553
7553
|
return t({
|
|
7554
7554
|
getRelatedEntity: G
|
|
@@ -7558,10 +7558,10 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7558
7558
|
Array.isArray(P) && P.length > 0 ? u.value = P : u.value = [];
|
|
7559
7559
|
},
|
|
7560
7560
|
{ immediate: !0, deep: !0 }
|
|
7561
|
-
), (P,
|
|
7561
|
+
), (P, S) => {
|
|
7562
7562
|
var Q;
|
|
7563
7563
|
const B = q("SplitterPanel"), I = q("Tab"), L = q("TabList"), ee = q("TabPanel"), le = q("TabPanels"), V = q("Tabs"), _ = q("Splitter"), R = q("Button");
|
|
7564
|
-
return P.$slots["list-item-display-360"] ? (y(),
|
|
7564
|
+
return P.$slots["list-item-display-360"] ? (y(), C("div", ym, [
|
|
7565
7565
|
ae(P.$slots, "header", {}, void 0, !0),
|
|
7566
7566
|
v("div", null, [
|
|
7567
7567
|
ae(P.$slots, "list-item-display-360", zt({
|
|
@@ -7577,7 +7577,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7577
7577
|
}), void 0, !0)
|
|
7578
7578
|
]),
|
|
7579
7579
|
ae(P.$slots, "footer", {}, void 0, !0)
|
|
7580
|
-
])) : (y(),
|
|
7580
|
+
])) : (y(), C(oe, { key: 1 }, [
|
|
7581
7581
|
v("div", vm, [
|
|
7582
7582
|
W(_, {
|
|
7583
7583
|
class: "flex-1",
|
|
@@ -7594,17 +7594,17 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7594
7594
|
default: te(() => [
|
|
7595
7595
|
v("div", wm, [
|
|
7596
7596
|
v("div", {
|
|
7597
|
-
onClick:
|
|
7597
|
+
onClick: S[0] || (S[0] = (se) => T()),
|
|
7598
7598
|
class: "section-heading cursor-pointer"
|
|
7599
7599
|
}, [
|
|
7600
|
-
i.value ? j("", !0) : (y(),
|
|
7601
|
-
i.value ? (y(),
|
|
7600
|
+
i.value ? j("", !0) : (y(), C("i", km)),
|
|
7601
|
+
i.value ? (y(), C("i", xm)) : j("", !0),
|
|
7602
7602
|
v("span", Sm, " About this " + Z(X(s)), 1)
|
|
7603
7603
|
]),
|
|
7604
|
-
i.value ? (y(),
|
|
7605
|
-
(y(!0),
|
|
7604
|
+
i.value ? (y(), C("div", Cm, [
|
|
7605
|
+
(y(!0), C(oe, null, we(X(f), (se, ie) => {
|
|
7606
7606
|
var ue;
|
|
7607
|
-
return y(),
|
|
7607
|
+
return y(), C("div", { key: ie }, [
|
|
7608
7608
|
se.autoGenerated ? j("", !0) : (y(), z(Ho, {
|
|
7609
7609
|
key: 0,
|
|
7610
7610
|
modelValue: X(p)[se.name],
|
|
@@ -7631,13 +7631,13 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7631
7631
|
W(L, null, {
|
|
7632
7632
|
default: te(() => [
|
|
7633
7633
|
W(I, { value: "0" }, {
|
|
7634
|
-
default: te(() =>
|
|
7634
|
+
default: te(() => S[3] || (S[3] = [
|
|
7635
7635
|
Ke("Overview")
|
|
7636
7636
|
])),
|
|
7637
7637
|
_: 1
|
|
7638
7638
|
}),
|
|
7639
7639
|
W(I, { value: "1" }, {
|
|
7640
|
-
default: te(() =>
|
|
7640
|
+
default: te(() => S[4] || (S[4] = [
|
|
7641
7641
|
Ke("Activity")
|
|
7642
7642
|
])),
|
|
7643
7643
|
_: 1
|
|
@@ -7650,9 +7650,9 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7650
7650
|
W(ee, { value: "0" }, {
|
|
7651
7651
|
default: te(() => [
|
|
7652
7652
|
v("div", $m, [
|
|
7653
|
-
|
|
7653
|
+
S[5] || (S[5] = v("h3", { class: "mt-2 text-xl font-semibold" }, "Data highlights", -1)),
|
|
7654
7654
|
v("div", Em, [
|
|
7655
|
-
(y(!0),
|
|
7655
|
+
(y(!0), C(oe, null, we(X(f).filter((se) => se.autoGenerated), (se, ie) => (y(), C("div", {
|
|
7656
7656
|
key: ie,
|
|
7657
7657
|
class: "column-item"
|
|
7658
7658
|
}, [
|
|
@@ -7684,7 +7684,7 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7684
7684
|
]),
|
|
7685
7685
|
_: 1
|
|
7686
7686
|
}),
|
|
7687
|
-
((Q = X(b)) == null ? void 0 : Q.length) > 0 ? (y(),
|
|
7687
|
+
((Q = X(b)) == null ? void 0 : Q.length) > 0 ? (y(), C("div", Bm, [
|
|
7688
7688
|
l.value ? (y(), z(R, {
|
|
7689
7689
|
key: 0,
|
|
7690
7690
|
icon: "pi pi-caret-right",
|
|
@@ -7701,8 +7701,8 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7701
7701
|
"aria-label": "Filter",
|
|
7702
7702
|
style: { height: "2rem", width: "2rem", left: "-20px" }
|
|
7703
7703
|
})),
|
|
7704
|
-
l.value ? (y(),
|
|
7705
|
-
(y(!0),
|
|
7704
|
+
l.value ? (y(), C("div", Rm, [
|
|
7705
|
+
(y(!0), C(oe, null, we(X(b), (se, ie) => (y(), C("div", { key: ie }, [
|
|
7706
7706
|
W(bm, {
|
|
7707
7707
|
entity360Name: X(s),
|
|
7708
7708
|
entity360Id: X(c),
|
|
@@ -7713,14 +7713,14 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7713
7713
|
])) : j("", !0)
|
|
7714
7714
|
])) : j("", !0)
|
|
7715
7715
|
]),
|
|
7716
|
-
X(g) ? (y(),
|
|
7716
|
+
X(g) ? (y(), C("div", Pm, [
|
|
7717
7717
|
v("div", Fm, [
|
|
7718
7718
|
v("div", Am, [
|
|
7719
7719
|
W(R, {
|
|
7720
7720
|
severity: "primary",
|
|
7721
|
-
onClick:
|
|
7721
|
+
onClick: S[1] || (S[1] = (se) => X(x)())
|
|
7722
7722
|
}, {
|
|
7723
|
-
default: te(() =>
|
|
7723
|
+
default: te(() => S[6] || (S[6] = [
|
|
7724
7724
|
Ke("Save")
|
|
7725
7725
|
])),
|
|
7726
7726
|
_: 1
|
|
@@ -7728,9 +7728,9 @@ const np = { key: 0 }, op = { key: 1 }, ra = {
|
|
|
7728
7728
|
W(R, {
|
|
7729
7729
|
style: { "margin-left": "10px" },
|
|
7730
7730
|
severity: "secondary",
|
|
7731
|
-
onClick:
|
|
7731
|
+
onClick: S[2] || (S[2] = (se) => X(N)())
|
|
7732
7732
|
}, {
|
|
7733
|
-
default: te(() =>
|
|
7733
|
+
default: te(() => S[7] || (S[7] = [
|
|
7734
7734
|
Ke("Cancel")
|
|
7735
7735
|
])),
|
|
7736
7736
|
_: 1
|
|
@@ -7754,25 +7754,25 @@ function Qo() {
|
|
|
7754
7754
|
}, i = async (D, P = {}) => {
|
|
7755
7755
|
try {
|
|
7756
7756
|
console.log("options", P);
|
|
7757
|
-
const
|
|
7758
|
-
if (
|
|
7759
|
-
return
|
|
7760
|
-
} catch (
|
|
7761
|
-
return console.error("Error fetching entity:",
|
|
7757
|
+
const S = await t.getEntityRecords(D, !1, P);
|
|
7758
|
+
if (S && S.response)
|
|
7759
|
+
return S;
|
|
7760
|
+
} catch (S) {
|
|
7761
|
+
return console.error("Error fetching entity:", S.errorMessage), S;
|
|
7762
7762
|
} finally {
|
|
7763
7763
|
}
|
|
7764
7764
|
}, l = async (D, P) => {
|
|
7765
7765
|
try {
|
|
7766
|
-
let
|
|
7767
|
-
if (
|
|
7768
|
-
return
|
|
7769
|
-
} catch (
|
|
7770
|
-
return
|
|
7766
|
+
let S = await t.addRecord(D.entityName, P);
|
|
7767
|
+
if (S)
|
|
7768
|
+
return S;
|
|
7769
|
+
} catch (S) {
|
|
7770
|
+
return S;
|
|
7771
7771
|
} finally {
|
|
7772
7772
|
}
|
|
7773
|
-
}, u = async (D, P,
|
|
7773
|
+
}, u = async (D, P, S) => {
|
|
7774
7774
|
try {
|
|
7775
|
-
const B = await t.updateRecord(D.entityName, P,
|
|
7775
|
+
const B = await t.updateRecord(D.entityName, P, S);
|
|
7776
7776
|
if (B && B.response)
|
|
7777
7777
|
return B;
|
|
7778
7778
|
} catch (B) {
|
|
@@ -7782,55 +7782,58 @@ function Qo() {
|
|
|
7782
7782
|
}, s = async (D, P) => {
|
|
7783
7783
|
try {
|
|
7784
7784
|
P.filter == null && (P.filter = {}), Object.keys(P.filter).length === 0 && (P.filter = []);
|
|
7785
|
-
const
|
|
7786
|
-
if (
|
|
7787
|
-
return
|
|
7788
|
-
} catch (
|
|
7789
|
-
return
|
|
7785
|
+
const S = await t.searchEntityRecords(D.entityName, P);
|
|
7786
|
+
if (S)
|
|
7787
|
+
return S.response.sortBy = P.sortBy, S.response.filters = P.filter, S.response.sortDirection = P.sortDirection, S.response.fullTextSearch = P.fullTextSearch, S;
|
|
7788
|
+
} catch (S) {
|
|
7789
|
+
return S;
|
|
7790
7790
|
} finally {
|
|
7791
7791
|
}
|
|
7792
7792
|
}, c = async (D, P) => {
|
|
7793
7793
|
try {
|
|
7794
|
-
const
|
|
7795
|
-
if (
|
|
7796
|
-
return
|
|
7797
|
-
} catch (
|
|
7798
|
-
console.error("Error on deleting record:",
|
|
7794
|
+
const S = await t.deleteRecord(D.entityName, P);
|
|
7795
|
+
if (S)
|
|
7796
|
+
return S;
|
|
7797
|
+
} catch (S) {
|
|
7798
|
+
console.error("Error on deleting record:", S.errorMessage);
|
|
7799
7799
|
} finally {
|
|
7800
7800
|
}
|
|
7801
7801
|
}, d = (D) => D.result, p = (D) => {
|
|
7802
|
-
var P,
|
|
7803
|
-
return f((
|
|
7804
|
-
}, f = (D) =>
|
|
7802
|
+
var P, S;
|
|
7803
|
+
return f((S = (P = D == null ? void 0 : D.entity) == null ? void 0 : P.entityDefinition) == null ? void 0 : S.columns);
|
|
7804
|
+
}, f = (D) => {
|
|
7805
|
+
if (D)
|
|
7806
|
+
return D.filter((P) => !(P.fieldType && P.fieldType === "ENTITY"));
|
|
7807
|
+
}, m = (D) => {
|
|
7805
7808
|
const P = D.entity.entityDefinition.columns;
|
|
7806
|
-
let
|
|
7809
|
+
let S = {};
|
|
7807
7810
|
for (let B = 0; B < P.length; B++) {
|
|
7808
7811
|
const I = P[B];
|
|
7809
7812
|
if (I.primaryKey && I.primaryKey == !0) {
|
|
7810
|
-
|
|
7813
|
+
S = I;
|
|
7811
7814
|
break;
|
|
7812
7815
|
}
|
|
7813
7816
|
}
|
|
7814
|
-
return
|
|
7817
|
+
return S;
|
|
7815
7818
|
}, h = (D) => {
|
|
7816
7819
|
const P = D.entity.entityDefinition.columns;
|
|
7817
|
-
let
|
|
7820
|
+
let S = {};
|
|
7818
7821
|
for (let B = 0; B < P.length; B++) {
|
|
7819
7822
|
let I = P[B];
|
|
7820
|
-
!I.autoGenerated && !I.fieldType && (I.type == "BOOLEAN" ? I.defaultValue ?
|
|
7823
|
+
!I.autoGenerated && !I.fieldType && (I.type == "BOOLEAN" ? I.defaultValue ? S[I.name] = I.defaultValue : S[I.name] = !1 : S[I.name] = "");
|
|
7821
7824
|
}
|
|
7822
|
-
return
|
|
7825
|
+
return S;
|
|
7823
7826
|
}, g = (D, P) => {
|
|
7824
|
-
let
|
|
7827
|
+
let S = "";
|
|
7825
7828
|
const B = D.entity.entityDefinition.columns;
|
|
7826
7829
|
for (let I = 0; I < B.length; I++) {
|
|
7827
7830
|
let L = B[I];
|
|
7828
7831
|
if (P == L.name) {
|
|
7829
|
-
|
|
7832
|
+
S = L.type;
|
|
7830
7833
|
break;
|
|
7831
7834
|
}
|
|
7832
7835
|
}
|
|
7833
|
-
return
|
|
7836
|
+
return S;
|
|
7834
7837
|
}, b = (D, P) => {
|
|
7835
7838
|
const B = D.entity.entityDefinition.columns.filter((L) => L.autoGenerated).map((L) => L.name);
|
|
7836
7839
|
return Object.entries(P).filter(([L]) => !B.includes(L)).map(([L, ee]) => ({
|
|
@@ -7841,7 +7844,7 @@ function Qo() {
|
|
|
7841
7844
|
}, k = () => {
|
|
7842
7845
|
const D = r.data.entity.entityDefinition.columns;
|
|
7843
7846
|
return ta().shape(
|
|
7844
|
-
D.reduce((
|
|
7847
|
+
D.reduce((S, B) => (B.autoGenerated || (S[B.name] = ea().nullable(!1).test({
|
|
7845
7848
|
name: "custom-validation",
|
|
7846
7849
|
test: function(I) {
|
|
7847
7850
|
const L = [];
|
|
@@ -7874,27 +7877,27 @@ function Qo() {
|
|
|
7874
7877
|
// This will return the array of errors
|
|
7875
7878
|
}) : !0;
|
|
7876
7879
|
}
|
|
7877
|
-
})),
|
|
7880
|
+
})), S), {})
|
|
7878
7881
|
);
|
|
7879
7882
|
}, w = (D, P) => {
|
|
7880
|
-
for (let
|
|
7881
|
-
if (P == D[
|
|
7882
|
-
return D[
|
|
7883
|
+
for (let S = 0; S < D.length; S++)
|
|
7884
|
+
if (P == D[S].type)
|
|
7885
|
+
return D[S].message;
|
|
7883
7886
|
}, x = (D, P) => {
|
|
7884
|
-
for (let
|
|
7885
|
-
if (P == D[
|
|
7886
|
-
return D[
|
|
7887
|
+
for (let S = 0; S < D.length; S++)
|
|
7888
|
+
if (P == D[S].type)
|
|
7889
|
+
return D[S].regx;
|
|
7887
7890
|
}, $ = (D, P) => {
|
|
7888
|
-
for (let
|
|
7889
|
-
if (P == D[
|
|
7890
|
-
return D[
|
|
7891
|
+
for (let S = 0; S < D.length; S++)
|
|
7892
|
+
if (P == D[S].type)
|
|
7893
|
+
return D[S].hint;
|
|
7891
7894
|
}, N = (D) => (o({ ...n.value, [D]: null }), n.value), T = async (D, P) => {
|
|
7892
7895
|
try {
|
|
7893
7896
|
return await D.validate(P, { abortEarly: !1 }), o({}), {
|
|
7894
7897
|
validate: !0
|
|
7895
7898
|
};
|
|
7896
|
-
} catch (
|
|
7897
|
-
const B =
|
|
7899
|
+
} catch (S) {
|
|
7900
|
+
const B = S.inner.reduce((ee, le) => (ee[le.path] || (ee[le.path] = { messages: [] }), ee[le.path].messages.push(...le.errors), ee), {}), I = Object.entries(B).reduce((ee, [le, V]) => (ee[le] = { messages: V.messages }, ee), {});
|
|
7898
7901
|
return o(I), {
|
|
7899
7902
|
validate: !1,
|
|
7900
7903
|
errors: n.value
|
|
@@ -7902,7 +7905,7 @@ function Qo() {
|
|
|
7902
7905
|
}
|
|
7903
7906
|
}, E = async (D, P) => {
|
|
7904
7907
|
console.log("Applying preset:", D), gi.value = [];
|
|
7905
|
-
const
|
|
7908
|
+
const S = {
|
|
7906
7909
|
sortBy: [Nm.value],
|
|
7907
7910
|
sortDirection: Dm.value === 1 ? "ASC" : "DESC",
|
|
7908
7911
|
pageSize: Vm.value,
|
|
@@ -7911,7 +7914,7 @@ function Qo() {
|
|
|
7911
7914
|
filter: gi.value,
|
|
7912
7915
|
fullTextSearch: "",
|
|
7913
7916
|
presetName: D
|
|
7914
|
-
}, B = await t.searchEntityRecords(P,
|
|
7917
|
+
}, B = await t.searchEntityRecords(P, S);
|
|
7915
7918
|
if (B.success)
|
|
7916
7919
|
return B.response;
|
|
7917
7920
|
}, H = (D) => {
|
|
@@ -7966,7 +7969,7 @@ function Qo() {
|
|
|
7966
7969
|
validateData: T,
|
|
7967
7970
|
applyPreset: E,
|
|
7968
7971
|
parsePrefilter: H,
|
|
7969
|
-
getVaribaleResult: (D) =>
|
|
7972
|
+
getVaribaleResult: (D) => e == null ? void 0 : e(D)
|
|
7970
7973
|
};
|
|
7971
7974
|
}
|
|
7972
7975
|
const Jo = {
|
|
@@ -8089,8 +8092,8 @@ const Jo = {
|
|
|
8089
8092
|
class: "p-fluid"
|
|
8090
8093
|
}, {
|
|
8091
8094
|
header: te(() => [
|
|
8092
|
-
e.item ? (y(),
|
|
8093
|
-
e.item ? j("", !0) : (y(),
|
|
8095
|
+
e.item ? (y(), C("span", Mm, "Edit " + Z(X(n).state.data.entityName) + " record details", 1)) : j("", !0),
|
|
8096
|
+
e.item ? j("", !0) : (y(), C("span", jm, "Add " + Z(X(n).state.data.entityName) + " record details", 1))
|
|
8094
8097
|
]),
|
|
8095
8098
|
footer: te(() => [
|
|
8096
8099
|
W(h, {
|
|
@@ -8111,9 +8114,9 @@ const Jo = {
|
|
|
8111
8114
|
default: te(() => {
|
|
8112
8115
|
var b;
|
|
8113
8116
|
return [
|
|
8114
|
-
(y(!0),
|
|
8117
|
+
(y(!0), C(oe, null, we(X(r), (k, w) => {
|
|
8115
8118
|
var x;
|
|
8116
|
-
return y(),
|
|
8119
|
+
return y(), C("div", { key: w }, [
|
|
8117
8120
|
!k.autoGenerated && !k.foreignKey ? (y(), z(Ho, {
|
|
8118
8121
|
key: 0,
|
|
8119
8122
|
modelValue: X(a)[k.name],
|
|
@@ -8181,11 +8184,11 @@ const Jo = {
|
|
|
8181
8184
|
};
|
|
8182
8185
|
return (c, d) => {
|
|
8183
8186
|
const p = q("Button");
|
|
8184
|
-
return y(),
|
|
8187
|
+
return y(), C(oe, null, [
|
|
8185
8188
|
v("div", Um, [
|
|
8186
8189
|
v("div", Hm, [
|
|
8187
8190
|
v("div", Wm, [
|
|
8188
|
-
(y(!0),
|
|
8191
|
+
(y(!0), C(oe, null, we(o.value, (f, m) => (y(), C("div", { key: m }, [
|
|
8189
8192
|
v("span", qm, Z(f.name) + " : ", 1),
|
|
8190
8193
|
W(ra, {
|
|
8191
8194
|
column: f,
|
|
@@ -8236,7 +8239,7 @@ const Jo = {
|
|
|
8236
8239
|
const t = lt("entityObject"), n = O([]);
|
|
8237
8240
|
return Ee(() => t.state.data, (o) => {
|
|
8238
8241
|
o && (n.value = o.result, console.log("Entity state updated in child:", t));
|
|
8239
|
-
}, { immediate: !0 }), (o, r) => (y(!0),
|
|
8242
|
+
}, { immediate: !0 }), (o, r) => (y(!0), C(oe, null, we(n.value, (a, i) => (y(), C("div", {
|
|
8240
8243
|
key: i,
|
|
8241
8244
|
class: "card rounded-md p-5 my-2 shadow-lg relative tile"
|
|
8242
8245
|
}, [
|
|
@@ -8413,7 +8416,7 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8413
8416
|
e.sortCallback();
|
|
8414
8417
|
};
|
|
8415
8418
|
return (T, E) => {
|
|
8416
|
-
const H = q("Select"), G = q("Divider"), U = q("InputNumber"), D = q("DatePicker"), P = q("InputText"),
|
|
8419
|
+
const H = q("Select"), G = q("Divider"), U = q("InputNumber"), D = q("DatePicker"), P = q("InputText"), S = q("Button"), B = q("Drawer");
|
|
8417
8420
|
return y(), z(B, {
|
|
8418
8421
|
visible: o.value,
|
|
8419
8422
|
"onUpdate:visible": E[4] || (E[4] = (I) => o.value = I),
|
|
@@ -8458,8 +8461,8 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8458
8461
|
}, null, 8, ["modelValue"])
|
|
8459
8462
|
])
|
|
8460
8463
|
]),
|
|
8461
|
-
(y(!0),
|
|
8462
|
-
I.editing ? (y(),
|
|
8464
|
+
(y(!0), C(oe, null, we(r.value, (I, L) => (y(), C("div", { key: L }, [
|
|
8465
|
+
I.editing ? (y(), C("div", lh, [
|
|
8463
8466
|
W(G),
|
|
8464
8467
|
v("div", ch, [
|
|
8465
8468
|
E[7] || (E[7] = v("div", { class: "col-12 font-bold" }, "Filter Column", -1)),
|
|
@@ -8519,13 +8522,13 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8519
8522
|
])
|
|
8520
8523
|
]),
|
|
8521
8524
|
v("div", hh, [
|
|
8522
|
-
W(
|
|
8525
|
+
W(S, {
|
|
8523
8526
|
label: "Hide",
|
|
8524
8527
|
icon: "",
|
|
8525
8528
|
severity: "warn",
|
|
8526
8529
|
onClick: (ee) => x(I)
|
|
8527
8530
|
}, null, 8, ["onClick"]),
|
|
8528
|
-
W(
|
|
8531
|
+
W(S, {
|
|
8529
8532
|
label: "Delete",
|
|
8530
8533
|
icon: "",
|
|
8531
8534
|
severity: "danger",
|
|
@@ -8533,11 +8536,11 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8533
8536
|
}, null, 8, ["onClick"])
|
|
8534
8537
|
])
|
|
8535
8538
|
])) : j("", !0),
|
|
8536
|
-
I.editing ? j("", !0) : (y(),
|
|
8539
|
+
I.editing ? j("", !0) : (y(), C("div", gh, [
|
|
8537
8540
|
W(G),
|
|
8538
8541
|
v("div", bh, [
|
|
8539
8542
|
v("span", null, [
|
|
8540
|
-
I.columnName || I.operator || I.value ? (y(),
|
|
8543
|
+
I.columnName || I.operator || I.value ? (y(), C(oe, { key: 0 }, [
|
|
8541
8544
|
v("span", {
|
|
8542
8545
|
class: pe({ "text-red-500": !I.columnName })
|
|
8543
8546
|
}, Z(I.columnName ? " " + I.columnName : " column"), 3),
|
|
@@ -8547,9 +8550,9 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8547
8550
|
v("span", {
|
|
8548
8551
|
class: pe({ "text-red-500": !I.value })
|
|
8549
8552
|
}, Z(I.value ? " " + I.value : " value"), 3)
|
|
8550
|
-
], 64)) : (y(),
|
|
8553
|
+
], 64)) : (y(), C("span", yh, "Filter is empty"))
|
|
8551
8554
|
]),
|
|
8552
|
-
W(
|
|
8555
|
+
W(S, {
|
|
8553
8556
|
label: "Edit",
|
|
8554
8557
|
icon: "",
|
|
8555
8558
|
severity: "info",
|
|
@@ -8561,14 +8564,14 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8561
8564
|
v("div", vh, [
|
|
8562
8565
|
W(G),
|
|
8563
8566
|
v("div", wh, [
|
|
8564
|
-
W(
|
|
8567
|
+
W(S, {
|
|
8565
8568
|
label: "Add",
|
|
8566
8569
|
disabled: f.value.length === r.value.length,
|
|
8567
8570
|
icon: "",
|
|
8568
8571
|
severity: "success",
|
|
8569
8572
|
onClick: k
|
|
8570
8573
|
}, null, 8, ["disabled"]),
|
|
8571
|
-
W(
|
|
8574
|
+
W(S, {
|
|
8572
8575
|
label: "Apply",
|
|
8573
8576
|
severity: "info",
|
|
8574
8577
|
onClick: $
|
|
@@ -8677,7 +8680,7 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8677
8680
|
};
|
|
8678
8681
|
return (T, E) => {
|
|
8679
8682
|
const H = q("Button"), G = q("InputIcon"), U = q("InputText"), D = q("IconField"), P = q("Toolbar");
|
|
8680
|
-
return y(),
|
|
8683
|
+
return y(), C(oe, null, [
|
|
8681
8684
|
W(P, { class: "p-2 my-2 border-none" }, {
|
|
8682
8685
|
start: te(() => [
|
|
8683
8686
|
v("div", xh, [
|
|
@@ -8686,7 +8689,7 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8686
8689
|
size: "medium",
|
|
8687
8690
|
icon: "pi pi-filter",
|
|
8688
8691
|
severity: "info",
|
|
8689
|
-
onClick: E[0] || (E[0] = (
|
|
8692
|
+
onClick: E[0] || (E[0] = (S) => m())
|
|
8690
8693
|
})
|
|
8691
8694
|
]),
|
|
8692
8695
|
W(H, {
|
|
@@ -8695,7 +8698,7 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8695
8698
|
type: "button",
|
|
8696
8699
|
icon: "pi pi-filter-slash",
|
|
8697
8700
|
severity: "warn",
|
|
8698
|
-
onClick: E[1] || (E[1] = (
|
|
8701
|
+
onClick: E[1] || (E[1] = (S) => k())
|
|
8699
8702
|
})
|
|
8700
8703
|
]),
|
|
8701
8704
|
end: te(() => [
|
|
@@ -8705,14 +8708,14 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8705
8708
|
}, {
|
|
8706
8709
|
default: te(() => [
|
|
8707
8710
|
W(G, {
|
|
8708
|
-
onClick: E[2] || (E[2] = (
|
|
8711
|
+
onClick: E[2] || (E[2] = (S) => w()),
|
|
8709
8712
|
class: "pi pi-search"
|
|
8710
8713
|
}),
|
|
8711
8714
|
W(U, {
|
|
8712
8715
|
class: "w-full sm:w-auto",
|
|
8713
|
-
onKeyup: E[3] || (E[3] = Lo((
|
|
8716
|
+
onKeyup: E[3] || (E[3] = Lo((S) => w(), ["enter"])),
|
|
8714
8717
|
modelValue: l.value,
|
|
8715
|
-
"onUpdate:modelValue": E[4] || (E[4] = (
|
|
8718
|
+
"onUpdate:modelValue": E[4] || (E[4] = (S) => l.value = S),
|
|
8716
8719
|
placeholder: "Search..."
|
|
8717
8720
|
}, null, 8, ["modelValue"])
|
|
8718
8721
|
]),
|
|
@@ -8723,13 +8726,13 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8723
8726
|
}),
|
|
8724
8727
|
W(kh, {
|
|
8725
8728
|
sortBy: a.value,
|
|
8726
|
-
"onUpdate:sortBy": E[5] || (E[5] = (
|
|
8729
|
+
"onUpdate:sortBy": E[5] || (E[5] = (S) => a.value = S),
|
|
8727
8730
|
sortDirection: i.value,
|
|
8728
|
-
"onUpdate:sortDirection": E[6] || (E[6] = (
|
|
8731
|
+
"onUpdate:sortDirection": E[6] || (E[6] = (S) => i.value = S),
|
|
8729
8732
|
showFilter: n.value,
|
|
8730
|
-
"onUpdate:showFilter": E[7] || (E[7] = (
|
|
8733
|
+
"onUpdate:showFilter": E[7] || (E[7] = (S) => n.value = S),
|
|
8731
8734
|
filters: o.value,
|
|
8732
|
-
"onUpdate:filters": E[8] || (E[8] = (
|
|
8735
|
+
"onUpdate:filters": E[8] || (E[8] = (S) => o.value = S),
|
|
8733
8736
|
headers: s.value,
|
|
8734
8737
|
operatorMap: p,
|
|
8735
8738
|
sortCallback: b,
|
|
@@ -8788,7 +8791,7 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8788
8791
|
};
|
|
8789
8792
|
return (o, r) => {
|
|
8790
8793
|
const a = q("Button");
|
|
8791
|
-
return y(),
|
|
8794
|
+
return y(), C(oe, null, [
|
|
8792
8795
|
v("div", Ch, [
|
|
8793
8796
|
W(a, {
|
|
8794
8797
|
size: "medium",
|
|
@@ -8843,11 +8846,11 @@ const eh = /* @__PURE__ */ He(Xm, [["render", Zm]]), th = { class: "my-2" }, nh
|
|
|
8843
8846
|
{ immediate: !0 }
|
|
8844
8847
|
), (i, l) => {
|
|
8845
8848
|
var u, s, c;
|
|
8846
|
-
return i.$slots["list-item-display"] ? (y(),
|
|
8849
|
+
return i.$slots["list-item-display"] ? (y(), C(oe, { key: 0 }, [
|
|
8847
8850
|
e.showAddButton ? (y(), z(Et, { key: 0 })) : j("", !0),
|
|
8848
8851
|
e.listFilerSlot ? (y(), z(Be(e.listFilter || $t), { key: 1 })) : j("", !0),
|
|
8849
|
-
(y(!0),
|
|
8850
|
-
], 64)) : (y(),
|
|
8852
|
+
(y(!0), C(oe, null, we(((c = (s = (u = X(n)) == null ? void 0 : u.state) == null ? void 0 : s.data) == null ? void 0 : c.result) || [], (d) => ae(i.$slots, "list-item-display", { item: d })), 256))
|
|
8853
|
+
], 64)) : (y(), C(oe, { key: 1 }, [
|
|
8851
8854
|
(y(), z(Be(e.listHeader || oh))),
|
|
8852
8855
|
(y(), z(Be(e.listFilter || $t))),
|
|
8853
8856
|
e.showAddButton ? (y(), z(Et, { key: 0 })) : j("", !0),
|
|
@@ -9007,7 +9010,7 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9007
9010
|
const t = e, n = lt("entityObject"), o = O([]), r = O(null), a = O(null), i = O(!1), l = O(!1), u = O(null);
|
|
9008
9011
|
Fe(() => {
|
|
9009
9012
|
var f, m;
|
|
9010
|
-
t.linkedEntity && t.linkedEntity.length > 0 ? o.value = Object.keys(t.linkedEntity[0]).map((h) => ({ name: h })) : o.value = n == null ? void 0 : n.getEntityColumns(n.state.data), u.value = ((f = o == null ? void 0 : o.value) == null ? void 0 : f.find((h) => h.name === "created_date")) || null, u.value && (u.value = t == null ? void 0 : t.item[u.value.name]), r.value = ((m = o == null ? void 0 : o.value) == null ? void 0 : m.find((h) => h.name === t.displayField)) || null, r.value && (a.value = t == null ? void 0 : t.item[r.value.name]);
|
|
9013
|
+
t.dataSource === "variable" && t.item ? o.value = Object.keys(t.item).map((h) => ({ name: h })) : t.linkedEntity && t.linkedEntity.length > 0 ? o.value = Object.keys(t.linkedEntity[0]).map((h) => ({ name: h })) : o.value = (n == null ? void 0 : n.getEntityColumns(n.state.data)) || [], u.value = ((f = o == null ? void 0 : o.value) == null ? void 0 : f.find((h) => h.name === "created_date")) || null, u.value && (u.value = t == null ? void 0 : t.item[u.value.name]), r.value = ((m = o == null ? void 0 : o.value) == null ? void 0 : m.find((h) => h.name === t.displayField)) || null, r.value && (a.value = t == null ? void 0 : t.item[r.value.name]);
|
|
9011
9014
|
});
|
|
9012
9015
|
const s = () => {
|
|
9013
9016
|
i.value = !0;
|
|
@@ -9033,20 +9036,20 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9033
9036
|
};
|
|
9034
9037
|
return (f, m) => {
|
|
9035
9038
|
const h = q("Button");
|
|
9036
|
-
return y(),
|
|
9039
|
+
return y(), C(oe, null, [
|
|
9037
9040
|
v("ul", {
|
|
9038
9041
|
class: pe([t.className, "space-y-2"])
|
|
9039
9042
|
}, [
|
|
9040
9043
|
v("li", Eh, [
|
|
9041
9044
|
v("div", null, [
|
|
9042
|
-
r.value ? (y(),
|
|
9045
|
+
r.value ? (y(), C(oe, { key: 0 }, [
|
|
9043
9046
|
v("a", {
|
|
9044
9047
|
href: `${e.baseUrl}/${e.item[e.hrefKey]}`,
|
|
9045
9048
|
target: "_blank",
|
|
9046
9049
|
class: "hover:underline font-medium"
|
|
9047
9050
|
}, Z(a.value), 9, Oh),
|
|
9048
9051
|
v("span", Th, Z(u.value), 1)
|
|
9049
|
-
], 64)) : (y(),
|
|
9052
|
+
], 64)) : (y(), C("span", Ih, "No matching field found for '" + Z(a.value) + "'.", 1))
|
|
9050
9053
|
]),
|
|
9051
9054
|
v("div", Bh, [
|
|
9052
9055
|
e.editable ? (y(), z(h, {
|
|
@@ -9083,7 +9086,7 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9083
9086
|
], 64);
|
|
9084
9087
|
};
|
|
9085
9088
|
}
|
|
9086
|
-
}, Ph = /* @__PURE__ */ He(Rh, [["__scopeId", "data-v-
|
|
9089
|
+
}, Ph = /* @__PURE__ */ He(Rh, [["__scopeId", "data-v-f53c4f8e"]]), Fh = {
|
|
9087
9090
|
key: 0,
|
|
9088
9091
|
class: "error-message"
|
|
9089
9092
|
}, Ah = { class: "text-red-500 font-bold" }, _h = { key: 0 }, Lh = { key: 1 }, Nh = { class: "flex items-center justify-between rounded-md w-full overflow-hidden" }, Dh = {
|
|
@@ -9141,26 +9144,26 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9141
9144
|
const o = e, r = n, a = _e(), i = new ct(), l = O(null), u = O("id"), s = O(1), c = O(25), d = O(0), p = O([]), f = O([]), m = O(!0), h = O(null), { hasMatchingRoleAndPermissions: g } = pn(), b = Qo();
|
|
9142
9145
|
Tn("entityObject", b), Fe(async () => {
|
|
9143
9146
|
m.value = await g(o.roles, o.permissions), console.log("props entitylist", o.preFiltered), o.preFiltered && E();
|
|
9144
|
-
}), o.linkedEntity ? Ee(() => o.linkedEntity, (
|
|
9145
|
-
|
|
9146
|
-
}, { immediate: !0 }) : Ee(() => b.state.data, (
|
|
9147
|
-
|
|
9147
|
+
}), o.linkedEntity ? Ee(() => o.linkedEntity, (S) => {
|
|
9148
|
+
S && (p.value = S, r("linkedEntityChanged", S));
|
|
9149
|
+
}, { immediate: !0 }) : Ee(() => b.state.data, (S) => {
|
|
9150
|
+
S && (p.value = S.result, r("linkedEntityChanged", S.result));
|
|
9148
9151
|
}, { immediate: !0 });
|
|
9149
9152
|
const k = () => {
|
|
9150
|
-
const
|
|
9151
|
-
return o.fetchParentEntities !== void 0 && (
|
|
9153
|
+
const S = {};
|
|
9154
|
+
return o.fetchParentEntities !== void 0 && (S.fetchParentEntities = o.fetchParentEntities), o.fetchChildEntities !== void 0 && (S.fetchChildEntities = o.fetchChildEntities), o.relatedEntities && (S.relatedEntities = o.relatedEntities.split(",").map((B) => B.trim())), o.fetchList !== void 0 && (S.fetchList = o.fetchList), S;
|
|
9152
9155
|
};
|
|
9153
9156
|
Cs(() => {
|
|
9154
9157
|
if (o.dataSource === "variable") {
|
|
9155
9158
|
if (!o.variableName) return;
|
|
9156
|
-
const
|
|
9157
|
-
|
|
9159
|
+
const S = b.getVaribaleResult(o.variableName);
|
|
9160
|
+
S != null ? (p.value = Array.isArray(S) ? S : S.result ? S.result : [], r("linkedEntityChanged", p.value)) : p.value = [];
|
|
9158
9161
|
}
|
|
9159
9162
|
}), Ee(
|
|
9160
9163
|
() => a.globalConfigs.appId,
|
|
9161
|
-
async (
|
|
9164
|
+
async (S) => {
|
|
9162
9165
|
var B, I;
|
|
9163
|
-
if (
|
|
9166
|
+
if (S && o.dataSource !== "variable") {
|
|
9164
9167
|
if (o.linkedEntity && o.linkedEntity.length > 0)
|
|
9165
9168
|
b.setEntity(o.linkedEntity);
|
|
9166
9169
|
else if (!o.preFiltered && o.entityName) {
|
|
@@ -9171,21 +9174,21 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9171
9174
|
},
|
|
9172
9175
|
{ immediate: !0 }
|
|
9173
9176
|
);
|
|
9174
|
-
const w = (
|
|
9175
|
-
l.value =
|
|
9177
|
+
const w = (S) => {
|
|
9178
|
+
l.value = S, b.state.data && (b.state.data.filters = S), T(S);
|
|
9176
9179
|
}, x = () => {
|
|
9177
9180
|
l.value = null, u.value = "id", s.value = 1, b.state.data && (b.state.data.filters = {}), T(null);
|
|
9178
|
-
}, $ = async (
|
|
9181
|
+
}, $ = async (S, B) => {
|
|
9179
9182
|
var L;
|
|
9180
|
-
u.value =
|
|
9183
|
+
u.value = S, s.value = B;
|
|
9181
9184
|
const I = ((L = b.state.data) == null ? void 0 : L.filters) || l.value;
|
|
9182
9185
|
l.value = I, T(I);
|
|
9183
|
-
}, N = (
|
|
9186
|
+
}, N = (S) => {
|
|
9184
9187
|
var I;
|
|
9185
|
-
c.value =
|
|
9188
|
+
c.value = S;
|
|
9186
9189
|
const B = ((I = b.state.data) == null ? void 0 : I.filters) || l.value;
|
|
9187
9190
|
l.value = B, T(B);
|
|
9188
|
-
}, T = async (
|
|
9191
|
+
}, T = async (S) => {
|
|
9189
9192
|
var B, I;
|
|
9190
9193
|
if (!(o.dataSource !== "variable" && !o.entityName)) {
|
|
9191
9194
|
console.log("entity state filter", b);
|
|
@@ -9196,7 +9199,7 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9196
9199
|
pageSize: c.value,
|
|
9197
9200
|
currentPage: d.value,
|
|
9198
9201
|
columnList: null,
|
|
9199
|
-
filter:
|
|
9202
|
+
filter: S,
|
|
9200
9203
|
fullTextSearch: "",
|
|
9201
9204
|
...k()
|
|
9202
9205
|
}, ee = await i.searchEntityRecords(o.entityName, L);
|
|
@@ -9207,10 +9210,10 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9207
9210
|
}
|
|
9208
9211
|
}, E = async () => {
|
|
9209
9212
|
if (!o.preFiltered || !o.entityName) return;
|
|
9210
|
-
const
|
|
9211
|
-
|
|
9212
|
-
}, H = async (
|
|
9213
|
-
const B = await b.applyPreset(
|
|
9213
|
+
const S = b.parsePrefilter(o.preFiltered);
|
|
9214
|
+
S != null && S.length && T(S);
|
|
9215
|
+
}, H = async (S) => {
|
|
9216
|
+
const B = await b.applyPreset(S, o.entityName);
|
|
9214
9217
|
b.state.data = B || {};
|
|
9215
9218
|
};
|
|
9216
9219
|
return t({
|
|
@@ -9218,18 +9221,18 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9218
9221
|
reload: () => {
|
|
9219
9222
|
console.log("reload data");
|
|
9220
9223
|
},
|
|
9221
|
-
filter: (
|
|
9222
|
-
console.log("filter data in unordered",
|
|
9224
|
+
filter: (S) => {
|
|
9225
|
+
console.log("filter data in unordered", S);
|
|
9223
9226
|
},
|
|
9224
|
-
addToCurrentList: (
|
|
9227
|
+
addToCurrentList: (S) => {
|
|
9225
9228
|
var B, I;
|
|
9226
|
-
(I = (B = b == null ? void 0 : b.state) == null ? void 0 : B.data) != null && I.result && b.state.data.result.push(
|
|
9229
|
+
(I = (B = b == null ? void 0 : b.state) == null ? void 0 : B.data) != null && I.result && b.state.data.result.push(S);
|
|
9227
9230
|
},
|
|
9228
|
-
deleteFromCurrentList: (
|
|
9231
|
+
deleteFromCurrentList: (S) => {
|
|
9229
9232
|
var I, L;
|
|
9230
9233
|
const B = (L = (I = b == null ? void 0 : b.state) == null ? void 0 : I.data) == null ? void 0 : L.result;
|
|
9231
9234
|
if (B) {
|
|
9232
|
-
const ee = B.indexOf(
|
|
9235
|
+
const ee = B.indexOf(S);
|
|
9233
9236
|
ee > -1 && B.splice(ee, 1);
|
|
9234
9237
|
}
|
|
9235
9238
|
},
|
|
@@ -9237,17 +9240,17 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9237
9240
|
searchByPageSize: N,
|
|
9238
9241
|
searchBySort: $,
|
|
9239
9242
|
clearFilters: x
|
|
9240
|
-
}), (
|
|
9241
|
-
ae(
|
|
9242
|
-
e.dataSource !== "variable" && !e.entityName || e.dataSource === "variable" && !e.variableName ? (y(),
|
|
9243
|
+
}), (S, B) => m.value ? (y(), C("div", K({ key: 0 }, S.$attrs, { class: "flex flex-col" }), [
|
|
9244
|
+
ae(S.$slots, "header", {}, void 0, !0),
|
|
9245
|
+
e.dataSource !== "variable" && !e.entityName || e.dataSource === "variable" && !e.variableName ? (y(), C("div", Fh, [
|
|
9243
9246
|
v("p", Ah, [
|
|
9244
9247
|
B[0] || (B[0] = Ke(" Error: Missing required props - ")),
|
|
9245
|
-
e.dataSource !== "variable" && !e.entityName ? (y(),
|
|
9246
|
-
e.dataSource === "variable" && !e.variableName ? (y(),
|
|
9248
|
+
e.dataSource !== "variable" && !e.entityName ? (y(), C("span", _h, "Entity Name")) : j("", !0),
|
|
9249
|
+
e.dataSource === "variable" && !e.variableName ? (y(), C("span", Lh, "Variable Name")) : j("", !0)
|
|
9247
9250
|
])
|
|
9248
|
-
])) : (y(),
|
|
9251
|
+
])) : (y(), C(oe, { key: 1 }, [
|
|
9249
9252
|
v("div", Nh, [
|
|
9250
|
-
e.dataSource !== "variable" && e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(),
|
|
9253
|
+
e.dataSource !== "variable" && e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(), C("div", Dh, [
|
|
9251
9254
|
v("div", Vh, [
|
|
9252
9255
|
e.showFilters ? (y(), z(Be(e.listFilter || $t), {
|
|
9253
9256
|
key: 0,
|
|
@@ -9262,8 +9265,8 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9262
9265
|
])
|
|
9263
9266
|
])) : j("", !0)
|
|
9264
9267
|
]),
|
|
9265
|
-
e.dataSource !== "variable" && e.showPresets ? (y(),
|
|
9266
|
-
(y(!0),
|
|
9268
|
+
e.dataSource !== "variable" && e.showPresets ? (y(), C("div", zh, [
|
|
9269
|
+
(y(!0), C(oe, null, we(f.value, (I) => (y(), C("button", {
|
|
9267
9270
|
key: I,
|
|
9268
9271
|
onClick: (L) => {
|
|
9269
9272
|
h.value = I.name, H(I.name);
|
|
@@ -9274,26 +9277,26 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9274
9277
|
]])
|
|
9275
9278
|
}, Z(I.name), 11, Mh))), 128))
|
|
9276
9279
|
])) : j("", !0),
|
|
9277
|
-
|
|
9280
|
+
S.$slots["list-item-display"] ? (y(), C("div", {
|
|
9278
9281
|
key: 1,
|
|
9279
9282
|
class: pe(["flex flex-wrap", [o.decoration === "tiles" ? "" : "flex-col", `gap-${o.gap}`, o.scrollHeight ? `overflow-y-auto h-[${o.scrollHeight}]` : "", o.justifyContent ? `justify-${o.justifyContent}` : "justify-center"]])
|
|
9280
9283
|
}, [
|
|
9281
|
-
(y(!0),
|
|
9284
|
+
(y(!0), C(oe, null, we(p.value, (I, L) => ae(S.$slots, "list-item-display", zt({
|
|
9282
9285
|
key: L,
|
|
9283
9286
|
item: I,
|
|
9284
9287
|
class: e.listItemClass,
|
|
9285
9288
|
[e.variable || ""]: I
|
|
9286
9289
|
}), void 0, !0)), 128))
|
|
9287
|
-
], 2)) : (y(),
|
|
9288
|
-
(y(!0),
|
|
9290
|
+
], 2)) : (y(), C("div", jh, [
|
|
9291
|
+
(y(!0), C(oe, null, we(p.value, (I, L) => (y(), C("div", { key: L }, [
|
|
9289
9292
|
(y(), z(Be(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : Ph), K({
|
|
9290
|
-
key:
|
|
9293
|
+
key: L,
|
|
9291
9294
|
preFiltered: o.preFiltered,
|
|
9292
9295
|
ref_for: !0
|
|
9293
9296
|
}, { item: I, ...o, deletable: o.dataSource === "variable" ? !1 : o.deletable, editable: o.dataSource === "variable" ? !1 : o.editable }), null, 16, ["preFiltered"]))
|
|
9294
9297
|
]))), 128))
|
|
9295
9298
|
])),
|
|
9296
|
-
e.dataSource !== "variable" && e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(),
|
|
9299
|
+
e.dataSource !== "variable" && e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(), C("div", Uh, [
|
|
9297
9300
|
v("div", Hh, [
|
|
9298
9301
|
e.showFilters ? (y(), z(Be(e.listFilter || $t), {
|
|
9299
9302
|
key: 0,
|
|
@@ -9308,10 +9311,10 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9308
9311
|
])
|
|
9309
9312
|
])) : j("", !0)
|
|
9310
9313
|
], 64)),
|
|
9311
|
-
ae(
|
|
9312
|
-
], 16)) : (y(),
|
|
9314
|
+
ae(S.$slots, "footer", {}, void 0, !0)
|
|
9315
|
+
], 16)) : (y(), C("p", Wh, "You do not have the required permissions to access this feature."));
|
|
9313
9316
|
}
|
|
9314
|
-
}, vi = /* @__PURE__ */ He(qh, [["__scopeId", "data-v-
|
|
9317
|
+
}, vi = /* @__PURE__ */ He(qh, [["__scopeId", "data-v-72695d1e"]]), Kh = { class: "p-6 bg-white shadow-md rounded-lg border border-gray-300 flex flex-col" }, Gh = { class: "flex justify-between items-start gap-4" }, Yh = { class: "flex-grow" }, Qh = { class: "flex flex-col gap-2" }, Jh = { class: "font-bold text-gray-700" }, Xh = { class: "text-gray-600" }, Zh = { class: "flex flex-col gap-2" }, eg = {
|
|
9315
9318
|
__name: "EntityListingTileSingleRecord",
|
|
9316
9319
|
props: {
|
|
9317
9320
|
item: Object,
|
|
@@ -9363,12 +9366,12 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9363
9366
|
};
|
|
9364
9367
|
return (p, f) => {
|
|
9365
9368
|
const m = q("Button");
|
|
9366
|
-
return y(),
|
|
9369
|
+
return y(), C(oe, null, [
|
|
9367
9370
|
v("div", Kh, [
|
|
9368
9371
|
v("div", Gh, [
|
|
9369
9372
|
v("div", Yh, [
|
|
9370
9373
|
v("div", Qh, [
|
|
9371
|
-
(y(!0),
|
|
9374
|
+
(y(!0), C(oe, null, we(o.value, (h, g) => (y(), C("div", {
|
|
9372
9375
|
key: g,
|
|
9373
9376
|
class: "flex flex-col"
|
|
9374
9377
|
}, [
|
|
@@ -9466,13 +9469,13 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9466
9469
|
{ immediate: !0 }
|
|
9467
9470
|
), (u, s) => {
|
|
9468
9471
|
var c, d, p;
|
|
9469
|
-
return y(),
|
|
9470
|
-
u.$slots["list-item-display-tile"] ? (y(),
|
|
9472
|
+
return y(), C("div", zt(io(u.$attrs)), [
|
|
9473
|
+
u.$slots["list-item-display-tile"] ? (y(), C(oe, { key: 0 }, [
|
|
9471
9474
|
ae(u.$slots, "header", {}, void 0, !0),
|
|
9472
9475
|
e.showAddButton ? (y(), z(Et, { key: 0 })) : j("", !0),
|
|
9473
9476
|
e.showFilters ? (y(), z(Be(e.listFilter || $t), { key: 1 })) : j("", !0),
|
|
9474
9477
|
v("div", ng, [
|
|
9475
|
-
(y(!0),
|
|
9478
|
+
(y(!0), C(oe, null, we(((p = (d = (c = X(n)) == null ? void 0 : c.state) == null ? void 0 : d.data) == null ? void 0 : p.result) || [], (f, m) => (y(), C("div", {
|
|
9476
9479
|
key: m,
|
|
9477
9480
|
class: "flex flex-col p-6 border border-gray-300 shadow-md rounded-lg bg-white w-full sm:w-1/2 md:w-1/3 lg:w-1/4 xl:w-1/5 2xl:w-1/8"
|
|
9478
9481
|
}, [
|
|
@@ -9480,22 +9483,22 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9480
9483
|
]))), 128))
|
|
9481
9484
|
]),
|
|
9482
9485
|
ae(u.$slots, "footer", {}, void 0, !0)
|
|
9483
|
-
], 64)) : (y(),
|
|
9486
|
+
], 64)) : (y(), C(oe, { key: 1 }, [
|
|
9484
9487
|
ae(u.$slots, "header", {}, void 0, !0),
|
|
9485
|
-
e.entityName ? (y(),
|
|
9488
|
+
e.entityName ? (y(), C("div", ig, [
|
|
9486
9489
|
e.showFilters ? (y(), z(Be(e.listFilter || $t), { key: 0 })) : j("", !0),
|
|
9487
9490
|
e.showAddButton ? (y(), z(Et, { key: 1 })) : j("", !0),
|
|
9488
9491
|
v("div", sg, [
|
|
9489
|
-
(y(!0),
|
|
9492
|
+
(y(!0), C(oe, null, we(a.value, (f, m) => (y(), z(Be(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : tg), K({
|
|
9490
9493
|
key: m,
|
|
9491
9494
|
ref_for: !0
|
|
9492
9495
|
}, { item: f, ...r }), null, 16))), 128))
|
|
9493
9496
|
]),
|
|
9494
9497
|
e.showPagination ? (y(), z(Be(e.listPagination || Yt), { key: 2 })) : j("", !0)
|
|
9495
|
-
])) : (y(),
|
|
9498
|
+
])) : (y(), C("div", og, [
|
|
9496
9499
|
v("p", rg, [
|
|
9497
9500
|
s[0] || (s[0] = Ke(" Error: Missing required props - ")),
|
|
9498
|
-
e.entityName ? j("", !0) : (y(),
|
|
9501
|
+
e.entityName ? j("", !0) : (y(), C("span", ag, "Entity Name"))
|
|
9499
9502
|
])
|
|
9500
9503
|
])),
|
|
9501
9504
|
ae(u.$slots, "footer", {}, void 0, !0)
|
|
@@ -9559,12 +9562,12 @@ const Eh = { class: "flex items-center justify-between bg-white p-2 rounded bord
|
|
|
9559
9562
|
};
|
|
9560
9563
|
return (p, f) => {
|
|
9561
9564
|
const m = q("Button");
|
|
9562
|
-
return y(),
|
|
9565
|
+
return y(), C(oe, null, [
|
|
9563
9566
|
v("div", cg, [
|
|
9564
9567
|
v("div", ug, [
|
|
9565
9568
|
v("div", dg, [
|
|
9566
9569
|
v("div", fg, [
|
|
9567
|
-
(y(!0),
|
|
9570
|
+
(y(!0), C(oe, null, we(o.value, (h, g) => (y(), C("div", {
|
|
9568
9571
|
key: g,
|
|
9569
9572
|
class: "flex flex-col"
|
|
9570
9573
|
}, [
|
|
@@ -10033,7 +10036,7 @@ var gt = {
|
|
|
10033
10036
|
const { preset: p, options: f } = t;
|
|
10034
10037
|
let m, h, g, b, k, w, x;
|
|
10035
10038
|
if (Se(p) && f.transform !== "strict") {
|
|
10036
|
-
const { primitive: $, semantic: N, extend: T } = p, E = N || {}, { colorScheme: H } = E, G = Pt(E, ["colorScheme"]), U = T || {}, { colorScheme: D } = U, P = Pt(U, ["colorScheme"]),
|
|
10039
|
+
const { primitive: $, semantic: N, extend: T } = p, E = N || {}, { colorScheme: H } = E, G = Pt(E, ["colorScheme"]), U = T || {}, { colorScheme: D } = U, P = Pt(U, ["colorScheme"]), S = H || {}, { dark: B } = S, I = Pt(S, ["dark"]), L = D || {}, { dark: ee } = L, le = Pt(L, ["dark"]), V = Se($) ? this._toVariables({ primitive: $ }, f) : {}, _ = Se(G) ? this._toVariables({ semantic: G }, f) : {}, R = Se(I) ? this._toVariables({ light: I }, f) : {}, Q = Se(B) ? this._toVariables({ dark: B }, f) : {}, se = Se(P) ? this._toVariables({ semantic: P }, f) : {}, ie = Se(le) ? this._toVariables({ light: le }, f) : {}, ue = Se(ee) ? this._toVariables({ dark: ee }, f) : {}, [ve, Ae] = [(a = V.declarations) != null ? a : "", V.tokens], [jt, ut] = [(i = _.declarations) != null ? i : "", _.tokens || []], [Bt, kt] = [(l = R.declarations) != null ? l : "", R.tokens || []], [ne, J] = [(u = Q.declarations) != null ? u : "", Q.tokens || []], [Te, it] = [(s = se.declarations) != null ? s : "", se.tokens || []], [Ve, Ie] = [(c = ie.declarations) != null ? c : "", ie.tokens || []], [Re, We] = [(d = ue.declarations) != null ? d : "", ue.tokens || []];
|
|
10037
10040
|
m = this.transformCSS(e, ve, "light", "variable", f, o, r), h = Ae;
|
|
10038
10041
|
const hn = this.transformCSS(e, `${jt}${Bt}`, "light", "variable", f, o, r), ht = this.transformCSS(e, `${ne}`, "dark", "variable", f, o, r);
|
|
10039
10042
|
g = `${hn}${ht}`, b = [.../* @__PURE__ */ new Set([...ut, ...kt, ...J])];
|
|
@@ -10060,7 +10063,7 @@ var gt = {
|
|
|
10060
10063
|
var l, u, s;
|
|
10061
10064
|
let c, d, p;
|
|
10062
10065
|
if (Se(t) && n.transform !== "strict") {
|
|
10063
|
-
const f = e.replace("-directive", ""), m = t, { colorScheme: h, extend: g, css: b } = m, k = Pt(m, ["colorScheme", "extend", "css"]), w = g || {}, { colorScheme: x } = w, $ = Pt(w, ["colorScheme"]), N = h || {}, { dark: T } = N, E = Pt(N, ["dark"]), H = x || {}, { dark: G } = H, U = Pt(H, ["dark"]), D = Se(k) ? this._toVariables({ [f]: Me(Me({}, k), $) }, n) : {}, P = Se(E) ? this._toVariables({ [f]: Me(Me({}, E), U) }, n) : {},
|
|
10066
|
+
const f = e.replace("-directive", ""), m = t, { colorScheme: h, extend: g, css: b } = m, k = Pt(m, ["colorScheme", "extend", "css"]), w = g || {}, { colorScheme: x } = w, $ = Pt(w, ["colorScheme"]), N = h || {}, { dark: T } = N, E = Pt(N, ["dark"]), H = x || {}, { dark: G } = H, U = Pt(H, ["dark"]), D = Se(k) ? this._toVariables({ [f]: Me(Me({}, k), $) }, n) : {}, P = Se(E) ? this._toVariables({ [f]: Me(Me({}, E), U) }, n) : {}, S = Se(T) ? this._toVariables({ [f]: Me(Me({}, T), G) }, n) : {}, [B, I] = [(l = D.declarations) != null ? l : "", D.tokens || []], [L, ee] = [(u = P.declarations) != null ? u : "", P.tokens || []], [le, V] = [(s = S.declarations) != null ? s : "", S.tokens || []], _ = this.transformCSS(f, `${B}${L}`, "light", "variable", n, r, a, i), R = this.transformCSS(f, le, "dark", "variable", n, r, a, i);
|
|
10064
10067
|
c = `${_}${R}`, d = [.../* @__PURE__ */ new Set([...I, ...ee, ...V])], p = mt(b, { dt: Un });
|
|
10065
10068
|
}
|
|
10066
10069
|
return {
|
|
@@ -10362,7 +10365,7 @@ function Kg(e) {
|
|
|
10362
10365
|
}
|
|
10363
10366
|
var Gg = 0;
|
|
10364
10367
|
function Yg(e) {
|
|
10365
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = O(!1), o = O(e), r = O(null), a = sa() ? window.document : void 0, i = t.document, l = i === void 0 ? a : i, u = t.immediate, s = u === void 0 ? !0 : u, c = t.manual, d = c === void 0 ? !1 : c, p = t.name, f = p === void 0 ? "style_".concat(++Gg) : p, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, b = g === void 0 ? void 0 : g, k = t.nonce, w = k === void 0 ? void 0 : k, x = t.first, $ = x === void 0 ? !1 : x, N = t.onMounted, T = N === void 0 ? void 0 : N, E = t.onUpdated, H = E === void 0 ? void 0 : E, G = t.onLoad, U = G === void 0 ? void 0 : G, D = t.props, P = D === void 0 ? {} : D,
|
|
10368
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = O(!1), o = O(e), r = O(null), a = sa() ? window.document : void 0, i = t.document, l = i === void 0 ? a : i, u = t.immediate, s = u === void 0 ? !0 : u, c = t.manual, d = c === void 0 ? !1 : c, p = t.name, f = p === void 0 ? "style_".concat(++Gg) : p, m = t.id, h = m === void 0 ? void 0 : m, g = t.media, b = g === void 0 ? void 0 : g, k = t.nonce, w = k === void 0 ? void 0 : k, x = t.first, $ = x === void 0 ? !1 : x, N = t.onMounted, T = N === void 0 ? void 0 : N, E = t.onUpdated, H = E === void 0 ? void 0 : E, G = t.onLoad, U = G === void 0 ? void 0 : G, D = t.props, P = D === void 0 ? {} : D, S = function() {
|
|
10366
10369
|
}, B = function(ee) {
|
|
10367
10370
|
var le = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
10368
10371
|
if (l) {
|
|
@@ -10376,14 +10379,14 @@ function Yg(e) {
|
|
|
10376
10379
|
return U == null ? void 0 : U(se, {
|
|
10377
10380
|
name: _
|
|
10378
10381
|
});
|
|
10379
|
-
}, T == null || T(_)), !n.value && (
|
|
10382
|
+
}, T == null || T(_)), !n.value && (S = Ee(o, function(se) {
|
|
10380
10383
|
r.value.textContent = se, H == null || H(_);
|
|
10381
10384
|
}, {
|
|
10382
10385
|
immediate: !0
|
|
10383
10386
|
}), n.value = !0);
|
|
10384
10387
|
}
|
|
10385
10388
|
}, I = function() {
|
|
10386
|
-
!l || !n.value || (
|
|
10389
|
+
!l || !n.value || (S(), Bg(r.value) && l.head.removeChild(r.value), n.value = !1);
|
|
10387
10390
|
};
|
|
10388
10391
|
return s && !d && Kg(B), {
|
|
10389
10392
|
id: h,
|
|
@@ -11257,7 +11260,7 @@ var Mt = {
|
|
|
11257
11260
|
extends: Mt
|
|
11258
11261
|
};
|
|
11259
11262
|
function bb(e, t, n, o, r, a) {
|
|
11260
|
-
return y(),
|
|
11263
|
+
return y(), C("svg", K({
|
|
11261
11264
|
width: "14",
|
|
11262
11265
|
height: "14",
|
|
11263
11266
|
viewBox: "0 0 14 14",
|
|
@@ -11274,7 +11277,7 @@ var Zo = {
|
|
|
11274
11277
|
extends: Mt
|
|
11275
11278
|
};
|
|
11276
11279
|
function yb(e, t, n, o, r, a) {
|
|
11277
|
-
return y(),
|
|
11280
|
+
return y(), C("svg", K({
|
|
11278
11281
|
width: "14",
|
|
11279
11282
|
height: "14",
|
|
11280
11283
|
viewBox: "0 0 14 14",
|
|
@@ -11415,7 +11418,7 @@ var vb = function(t) {
|
|
|
11415
11418
|
inheritAttrs: !1
|
|
11416
11419
|
};
|
|
11417
11420
|
function Sb(e, t, n, o, r, a) {
|
|
11418
|
-
return y(),
|
|
11421
|
+
return y(), C("span", K({
|
|
11419
11422
|
class: e.cx("root")
|
|
11420
11423
|
}, e.ptmi("root")), [ae(e.$slots, "default", {}, function() {
|
|
11421
11424
|
return [Ke(Z(e.value), 1)];
|
|
@@ -12724,7 +12727,7 @@ function Kb(e, t, n, o, r, a) {
|
|
|
12724
12727
|
key: 0,
|
|
12725
12728
|
class: [e.cx("loadingIcon"), e.cx("icon")]
|
|
12726
12729
|
}, e.ptm("loadingIcon")), function() {
|
|
12727
|
-
return [e.loadingIcon ? (y(),
|
|
12730
|
+
return [e.loadingIcon ? (y(), C("span", K({
|
|
12728
12731
|
key: 0,
|
|
12729
12732
|
class: [e.cx("loadingIcon"), e.cx("icon"), e.loadingIcon]
|
|
12730
12733
|
}, e.ptm("loadingIcon")), null, 16)) : (y(), z(i, K({
|
|
@@ -12736,7 +12739,7 @@ function Kb(e, t, n, o, r, a) {
|
|
|
12736
12739
|
key: 1,
|
|
12737
12740
|
class: [e.cx("icon")]
|
|
12738
12741
|
}, e.ptm("icon")), function() {
|
|
12739
|
-
return [e.icon ? (y(),
|
|
12742
|
+
return [e.icon ? (y(), C("span", K({
|
|
12740
12743
|
key: 0,
|
|
12741
12744
|
class: [e.cx("icon"), e.icon, e.iconClass]
|
|
12742
12745
|
}, e.ptm("icon")), null, 16)) : j("", !0)];
|
|
@@ -12945,15 +12948,15 @@ const Gb = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
12945
12948
|
},
|
|
12946
12949
|
{ immediate: !0 }
|
|
12947
12950
|
);
|
|
12948
|
-
const
|
|
12951
|
+
const S = async (B) => {
|
|
12949
12952
|
const I = await b.applyPreset(B, i.entityName);
|
|
12950
12953
|
b.state.data = I || {};
|
|
12951
12954
|
};
|
|
12952
|
-
return (B, I) => (y(),
|
|
12953
|
-
B.$slots["list-item-display"] ? (y(),
|
|
12955
|
+
return (B, I) => (y(), C("div", zt(io(B.$attrs)), [
|
|
12956
|
+
B.$slots["list-item-display"] ? (y(), C(oe, { key: 0 }, [
|
|
12954
12957
|
ae(B.$slots, "header", {}, void 0, !0),
|
|
12955
12958
|
v("div", Gb, [
|
|
12956
|
-
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(),
|
|
12959
|
+
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(), C("div", Yb, [
|
|
12957
12960
|
v("div", Qb, [
|
|
12958
12961
|
e.showFilters ? (y(), z(Be(e.listFilter || $t), {
|
|
12959
12962
|
key: 0,
|
|
@@ -12968,18 +12971,18 @@ const Gb = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
12968
12971
|
])
|
|
12969
12972
|
])) : j("", !0)
|
|
12970
12973
|
]),
|
|
12971
|
-
e.showPresets ? (y(),
|
|
12972
|
-
(y(!0),
|
|
12974
|
+
e.showPresets ? (y(), C("div", Jb, [
|
|
12975
|
+
(y(!0), C(oe, null, we(f.value, (L) => (y(), C("button", {
|
|
12973
12976
|
key: L,
|
|
12974
12977
|
onClick: (ee) => {
|
|
12975
|
-
h.value = L.name,
|
|
12978
|
+
h.value = L.name, S(L.name);
|
|
12976
12979
|
},
|
|
12977
12980
|
class: pe(["px-4 py-2 rounded-full text-sm", [
|
|
12978
12981
|
h.value === L.name ? "bg-blue-800 text-white" : "bg-blue-100 text-blue-700"
|
|
12979
12982
|
]])
|
|
12980
12983
|
}, Z(L.name), 11, Xb))), 128))
|
|
12981
12984
|
])) : j("", !0),
|
|
12982
|
-
p.value.length > 0 ? (y(),
|
|
12985
|
+
p.value.length > 0 ? (y(), C("div", Zb, [
|
|
12983
12986
|
v("button", {
|
|
12984
12987
|
onClick: I[0] || (I[0] = (L) => w(-1)),
|
|
12985
12988
|
class: "absolute left-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
|
|
@@ -12989,7 +12992,7 @@ const Gb = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
12989
12992
|
ref: k,
|
|
12990
12993
|
class: "flex overflow-x-auto no-scrollbar gap-4 py-2 px-10 scroll-smooth"
|
|
12991
12994
|
}, [
|
|
12992
|
-
(y(!0),
|
|
12995
|
+
(y(!0), C(oe, null, we(p.value, (L) => (y(), C("div", {
|
|
12993
12996
|
key: L.id,
|
|
12994
12997
|
class: "min-w-[250px] flex-shrink-0"
|
|
12995
12998
|
}, [
|
|
@@ -13001,7 +13004,7 @@ const Gb = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13001
13004
|
class: "absolute right-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
|
|
13002
13005
|
}, " ▶ ")
|
|
13003
13006
|
])) : j("", !0),
|
|
13004
|
-
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(),
|
|
13007
|
+
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(), C("div", e0, [
|
|
13005
13008
|
v("div", t0, [
|
|
13006
13009
|
e.showFilters ? (y(), z(Be(e.listFilter || $t), {
|
|
13007
13010
|
key: 0,
|
|
@@ -13016,11 +13019,11 @@ const Gb = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13016
13019
|
])
|
|
13017
13020
|
])) : j("", !0),
|
|
13018
13021
|
ae(B.$slots, "footer", {}, void 0, !0)
|
|
13019
|
-
], 64)) : (y(),
|
|
13022
|
+
], 64)) : (y(), C(oe, { key: 1 }, [
|
|
13020
13023
|
ae(B.$slots, "header", {}, void 0, !0),
|
|
13021
|
-
e.entityName ? (y(),
|
|
13024
|
+
e.entityName ? (y(), C("div", a0, [
|
|
13022
13025
|
v("div", i0, [
|
|
13023
|
-
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(),
|
|
13026
|
+
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(), C("div", s0, [
|
|
13024
13027
|
v("div", l0, [
|
|
13025
13028
|
e.showFilters ? (y(), z(Be(e.listFilter || $t), {
|
|
13026
13029
|
key: 0,
|
|
@@ -13035,7 +13038,7 @@ const Gb = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13035
13038
|
])
|
|
13036
13039
|
])) : j("", !0)
|
|
13037
13040
|
]),
|
|
13038
|
-
p.value.length > 0 ? (y(),
|
|
13041
|
+
p.value.length > 0 ? (y(), C("div", c0, [
|
|
13039
13042
|
v("button", {
|
|
13040
13043
|
onClick: I[2] || (I[2] = (L) => w(-1)),
|
|
13041
13044
|
class: "absolute left-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
|
|
@@ -13045,7 +13048,7 @@ const Gb = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13045
13048
|
ref: k,
|
|
13046
13049
|
class: "flex overflow-x-auto no-scrollbar gap-4 py-2 px-10 scroll-smooth"
|
|
13047
13050
|
}, [
|
|
13048
|
-
(y(!0),
|
|
13051
|
+
(y(!0), C(oe, null, we(p.value, (L) => (y(), C("div", {
|
|
13049
13052
|
key: L.id,
|
|
13050
13053
|
class: "min-w-[250px] flex-shrink-0"
|
|
13051
13054
|
}, [
|
|
@@ -13057,7 +13060,7 @@ const Gb = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13057
13060
|
class: "absolute right-0 top-1/2 transform -translate-y-1/2 z-100 bg-green-600 hover:bg-green-700 text-white p-2 rounded-lg"
|
|
13058
13061
|
}, " ▶ ")
|
|
13059
13062
|
])) : j("", !0),
|
|
13060
|
-
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(),
|
|
13063
|
+
e.showToolBar == "bottom" && (e.showFilters || e.showAddButton || e.showPagination) ? (y(), C("div", u0, [
|
|
13061
13064
|
v("div", d0, [
|
|
13062
13065
|
e.showFilters ? (y(), z(Be(e.listFilter || $t), {
|
|
13063
13066
|
key: 0,
|
|
@@ -13071,10 +13074,10 @@ const Gb = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13071
13074
|
})) : j("", !0)
|
|
13072
13075
|
])
|
|
13073
13076
|
])) : j("", !0)
|
|
13074
|
-
])) : (y(),
|
|
13077
|
+
])) : (y(), C("div", n0, [
|
|
13075
13078
|
v("p", o0, [
|
|
13076
13079
|
I[4] || (I[4] = Ke(" Error: Missing required props - ")),
|
|
13077
|
-
e.entityName ? j("", !0) : (y(),
|
|
13080
|
+
e.entityName ? j("", !0) : (y(), C("span", r0, "Entity Name"))
|
|
13078
13081
|
])
|
|
13079
13082
|
])),
|
|
13080
13083
|
ae(B.$slots, "footer", {}, void 0, !0)
|
|
@@ -14426,7 +14429,7 @@ function ky() {
|
|
|
14426
14429
|
break;
|
|
14427
14430
|
}
|
|
14428
14431
|
if (t._.includes(H, "-") && (H = H.slice(1), N = !0), H.length < h)
|
|
14429
|
-
for (var
|
|
14432
|
+
for (var S = h - H.length; S > 0; S--)
|
|
14430
14433
|
H = "0" + H;
|
|
14431
14434
|
return D > -1 && (H = H.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + p.delimiters.thousands)), c.indexOf(".") === 0 && (H = ""), P = H + $ + (g || ""), f ? P = (f && N ? "(" : "") + P + (f && N ? ")" : "") : U >= 0 ? P = U === 0 ? (N ? "-" : "+") + P : P + (N ? "-" : "+") : N && (P = "-" + P), P;
|
|
14432
14435
|
},
|
|
@@ -14780,7 +14783,7 @@ const Ki = /* @__PURE__ */ ul(xy), Gi = {
|
|
|
14780
14783
|
props: ["value", "type", "displayFormat"],
|
|
14781
14784
|
setup(e) {
|
|
14782
14785
|
const t = de(() => n()), n = () => e.type === "DATE" ? o() : e.type === "NUMBER" ? r() : e.value, o = () => yy(e.value, e.displayFormat ? e.displayFormat : "MM/dd/yyyy"), r = () => e.displayFormat ? e.displayFormat === "currency" ? Ki(e.value).format("$0,0.00") : Ki(e.value).format(e.displayFormat) : e.value;
|
|
14783
|
-
return (a, i) => (y(),
|
|
14786
|
+
return (a, i) => (y(), C("span", null, Z(t.value), 1));
|
|
14784
14787
|
}
|
|
14785
14788
|
};
|
|
14786
14789
|
function Hl() {
|
|
@@ -15066,7 +15069,7 @@ const Sy = /* @__PURE__ */ No("entitiesStore", {
|
|
|
15066
15069
|
{ immediate: !0 }
|
|
15067
15070
|
), (u, s) => {
|
|
15068
15071
|
const c = q("Select");
|
|
15069
|
-
return y(),
|
|
15072
|
+
return y(), C("div", Cy, [
|
|
15070
15073
|
W(c, {
|
|
15071
15074
|
modelValue: n.value,
|
|
15072
15075
|
"onUpdate:modelValue": [
|
|
@@ -15080,9 +15083,9 @@ const Sy = /* @__PURE__ */ No("entitiesStore", {
|
|
|
15080
15083
|
class: "w-full"
|
|
15081
15084
|
}, {
|
|
15082
15085
|
value: te((d) => [
|
|
15083
|
-
d.value ? (y(),
|
|
15086
|
+
d.value ? (y(), C("div", $y, [
|
|
15084
15087
|
v("div", null, Z(d.value.name), 1)
|
|
15085
|
-
])) : (y(),
|
|
15088
|
+
])) : (y(), C("span", Ey, Z(d.placeholder), 1))
|
|
15086
15089
|
]),
|
|
15087
15090
|
option: te((d) => [
|
|
15088
15091
|
v("div", Oy, [
|
|
@@ -15107,7 +15110,7 @@ const Sy = /* @__PURE__ */ No("entitiesStore", {
|
|
|
15107
15110
|
const o = (r) => {
|
|
15108
15111
|
n.value = r;
|
|
15109
15112
|
};
|
|
15110
|
-
return (r, a) => (y(),
|
|
15113
|
+
return (r, a) => (y(), C("div", Iy, [
|
|
15111
15114
|
v("div", By, [
|
|
15112
15115
|
(y(), z(Ty, {
|
|
15113
15116
|
key: n.value,
|
|
@@ -15179,7 +15182,7 @@ const Wl = {
|
|
|
15179
15182
|
u !== n.item && (u.isOpen = !1);
|
|
15180
15183
|
}), n.item.isOpen = !n.item.isOpen) : n.item.route && n.item.url ? t.push(n.item.url) : !n.item.route && n.item.url && (window.location.href = n.item.url);
|
|
15181
15184
|
};
|
|
15182
|
-
return (l, u) => (y(),
|
|
15185
|
+
return (l, u) => (y(), C("div", {
|
|
15183
15186
|
class: "relative",
|
|
15184
15187
|
onMouseenter: u[1] || (u[1] = (s) => e.openTrigger === "hover" && X(o) ? r() : null),
|
|
15185
15188
|
onMouseleave: u[2] || (u[2] = (s) => e.openTrigger === "hover" && X(o) ? a() : null)
|
|
@@ -15193,34 +15196,34 @@ const Wl = {
|
|
|
15193
15196
|
!e.isChild && e.hasSlotParent ? ae(l.$slots, "list-item-menu-parent", {
|
|
15194
15197
|
key: 0,
|
|
15195
15198
|
item: e.item
|
|
15196
|
-
}) : e.isChild ? j("", !0) : (y(),
|
|
15199
|
+
}) : e.isChild ? j("", !0) : (y(), C("div", {
|
|
15197
15200
|
key: 1,
|
|
15198
15201
|
class: pe(["px-2 py-1 whitespace-nowrap", [
|
|
15199
15202
|
e.iconPosition === "top" || e.iconPosition === "bottom" ? "flex flex-col items-center justify-center gap-1" : "flex flex-row items-center gap-1"
|
|
15200
15203
|
]])
|
|
15201
15204
|
}, [
|
|
15202
|
-
e.iconPosition === "top" ? (y(),
|
|
15205
|
+
e.iconPosition === "top" ? (y(), C(oe, { key: 0 }, [
|
|
15203
15206
|
v("i", {
|
|
15204
15207
|
class: pe([e.item.mediumIcon, e.iconSize])
|
|
15205
15208
|
}, null, 2),
|
|
15206
15209
|
v("span", {
|
|
15207
15210
|
class: pe(e.labelSize)
|
|
15208
15211
|
}, Z(e.item.displayLabel), 3)
|
|
15209
|
-
], 64)) : e.iconPosition === "bottom" ? (y(),
|
|
15212
|
+
], 64)) : e.iconPosition === "bottom" ? (y(), C(oe, { key: 1 }, [
|
|
15210
15213
|
v("span", {
|
|
15211
15214
|
class: pe(e.labelSize)
|
|
15212
15215
|
}, Z(e.item.displayLabel), 3),
|
|
15213
15216
|
v("i", {
|
|
15214
15217
|
class: pe([e.item.mediumIcon, e.iconSize])
|
|
15215
15218
|
}, null, 2)
|
|
15216
|
-
], 64)) : e.iconPosition === "right" ? (y(),
|
|
15219
|
+
], 64)) : e.iconPosition === "right" ? (y(), C(oe, { key: 2 }, [
|
|
15217
15220
|
v("span", {
|
|
15218
15221
|
class: pe(e.labelSize)
|
|
15219
15222
|
}, Z(e.item.displayLabel), 3),
|
|
15220
15223
|
v("i", {
|
|
15221
15224
|
class: pe([e.item.mediumIcon, e.iconSize])
|
|
15222
15225
|
}, null, 2)
|
|
15223
|
-
], 64)) : (y(),
|
|
15226
|
+
], 64)) : (y(), C(oe, { key: 3 }, [
|
|
15224
15227
|
v("i", {
|
|
15225
15228
|
class: pe([e.item.mediumIcon, e.iconSize])
|
|
15226
15229
|
}, null, 2),
|
|
@@ -15232,34 +15235,34 @@ const Wl = {
|
|
|
15232
15235
|
e.isChild && e.hasSlotChild ? ae(l.$slots, "list-item-menu-child", {
|
|
15233
15236
|
key: 2,
|
|
15234
15237
|
item: e.item
|
|
15235
|
-
}) : e.isChild ? (y(),
|
|
15238
|
+
}) : e.isChild ? (y(), C("div", {
|
|
15236
15239
|
key: 3,
|
|
15237
15240
|
class: pe(["whitespace-nowrap", [
|
|
15238
15241
|
e.iconPosition === "top" || e.iconPosition === "bottom" ? "flex flex-col items-start gap-1" : "flex flex-row items-center gap-2"
|
|
15239
15242
|
]])
|
|
15240
15243
|
}, [
|
|
15241
|
-
e.iconPosition === "top" ? (y(),
|
|
15244
|
+
e.iconPosition === "top" ? (y(), C(oe, { key: 0 }, [
|
|
15242
15245
|
v("i", {
|
|
15243
15246
|
class: pe([e.item.mediumIcon, e.iconSize])
|
|
15244
15247
|
}, null, 2),
|
|
15245
15248
|
v("span", {
|
|
15246
15249
|
class: pe(e.labelSize)
|
|
15247
15250
|
}, Z(e.item.displayLabel), 3)
|
|
15248
|
-
], 64)) : e.iconPosition === "bottom" ? (y(),
|
|
15251
|
+
], 64)) : e.iconPosition === "bottom" ? (y(), C(oe, { key: 1 }, [
|
|
15249
15252
|
v("span", {
|
|
15250
15253
|
class: pe(e.labelSize)
|
|
15251
15254
|
}, Z(e.item.displayLabel), 3),
|
|
15252
15255
|
v("i", {
|
|
15253
15256
|
class: pe([e.item.mediumIcon, e.iconSize])
|
|
15254
15257
|
}, null, 2)
|
|
15255
|
-
], 64)) : e.iconPosition === "right" ? (y(),
|
|
15258
|
+
], 64)) : e.iconPosition === "right" ? (y(), C(oe, { key: 2 }, [
|
|
15256
15259
|
v("span", {
|
|
15257
15260
|
class: pe(e.labelSize)
|
|
15258
15261
|
}, Z(e.item.displayLabel), 3),
|
|
15259
15262
|
v("i", {
|
|
15260
15263
|
class: pe([e.item.mediumIcon, e.iconSize])
|
|
15261
15264
|
}, null, 2)
|
|
15262
|
-
], 64)) : (y(),
|
|
15265
|
+
], 64)) : (y(), C(oe, { key: 3 }, [
|
|
15263
15266
|
v("i", {
|
|
15264
15267
|
class: pe([e.item.mediumIcon, e.iconSize])
|
|
15265
15268
|
}, null, 2),
|
|
@@ -15270,11 +15273,11 @@ const Wl = {
|
|
|
15270
15273
|
], 2)) : j("", !0)
|
|
15271
15274
|
])
|
|
15272
15275
|
], 2),
|
|
15273
|
-
e.item.isOpen && e.item.children.length ? (y(),
|
|
15276
|
+
e.item.isOpen && e.item.children.length ? (y(), C("ul", {
|
|
15274
15277
|
key: 0,
|
|
15275
15278
|
class: pe(["list-none mt-1", e.layoutType === "horizontal" ? "absolute left-0 top-full ml-4" : "ml-4 pl-2"])
|
|
15276
15279
|
}, [
|
|
15277
|
-
(y(!0),
|
|
15280
|
+
(y(!0), C(oe, null, we(e.item.children, (s) => (y(), z(Wl, {
|
|
15278
15281
|
key: s.id,
|
|
15279
15282
|
item: s,
|
|
15280
15283
|
layoutType: e.layoutType,
|
|
@@ -15337,11 +15340,11 @@ const Wl = {
|
|
|
15337
15340
|
}), (l, u) => l.$slots["list-wrapper"] ? ae(l.$slots, "list-wrapper", {
|
|
15338
15341
|
key: 0,
|
|
15339
15342
|
menuItems: n.value
|
|
15340
|
-
}) : (y(),
|
|
15343
|
+
}) : (y(), C("ul", {
|
|
15341
15344
|
key: 1,
|
|
15342
15345
|
class: pe(["p-0", e.layoutType === "horizontal" ? `flex flex-row gap-${t.gap}` : `flex flex-col gap-${t.gap}`])
|
|
15343
15346
|
}, [
|
|
15344
|
-
(y(!0),
|
|
15347
|
+
(y(!0), C(oe, null, we(n.value, (s) => (y(), z(Wl, {
|
|
15345
15348
|
key: s.id,
|
|
15346
15349
|
item: s,
|
|
15347
15350
|
parentItems: n.value,
|
|
@@ -15391,7 +15394,7 @@ const Wl = {
|
|
|
15391
15394
|
}
|
|
15392
15395
|
return (r, a) => {
|
|
15393
15396
|
const i = q("InputText");
|
|
15394
|
-
return y(),
|
|
15397
|
+
return y(), C("div", null, [
|
|
15395
15398
|
W(i, K({
|
|
15396
15399
|
class: "w-full",
|
|
15397
15400
|
value: e.modelValue,
|
|
@@ -15449,7 +15452,7 @@ const Wl = {
|
|
|
15449
15452
|
onClick: r,
|
|
15450
15453
|
severity: e.severity,
|
|
15451
15454
|
icon: e.iconName
|
|
15452
|
-
}, null, 8, ["label", "size", "severity", "icon"])) : (y(),
|
|
15455
|
+
}, null, 8, ["label", "size", "severity", "icon"])) : (y(), C("p", Fy, "You do not have the required permissions to access this feature."));
|
|
15453
15456
|
}
|
|
15454
15457
|
}, Ay = {
|
|
15455
15458
|
name: "StateFullText",
|
|
@@ -15465,7 +15468,7 @@ const Wl = {
|
|
|
15465
15468
|
}
|
|
15466
15469
|
};
|
|
15467
15470
|
function _y(e, t, n, o, r, a) {
|
|
15468
|
-
return y(),
|
|
15471
|
+
return y(), C("span", null, Z(n.value), 1);
|
|
15469
15472
|
}
|
|
15470
15473
|
const Zi = /* @__PURE__ */ He(Ay, [["render", _y]]), Ly = ["min", "max", "value"], es = {
|
|
15471
15474
|
__name: "RangeInput",
|
|
@@ -15493,7 +15496,7 @@ const Zi = /* @__PURE__ */ He(Ay, [["render", _y]]), Ly = ["min", "max", "value"
|
|
|
15493
15496
|
function o(r) {
|
|
15494
15497
|
n("update:modelValue", r.target.value);
|
|
15495
15498
|
}
|
|
15496
|
-
return (r, a) => e.type === "range" ? (y(),
|
|
15499
|
+
return (r, a) => e.type === "range" ? (y(), C("input", {
|
|
15497
15500
|
key: 0,
|
|
15498
15501
|
type: "range",
|
|
15499
15502
|
min: e.min,
|
|
@@ -15594,7 +15597,7 @@ var Kl = {
|
|
|
15594
15597
|
extends: Mt
|
|
15595
15598
|
};
|
|
15596
15599
|
function Uy(e, t, n, o, r, a) {
|
|
15597
|
-
return y(),
|
|
15600
|
+
return y(), C("svg", K({
|
|
15598
15601
|
width: "14",
|
|
15599
15602
|
height: "14",
|
|
15600
15603
|
viewBox: "0 0 14 14",
|
|
@@ -15613,7 +15616,7 @@ var da = {
|
|
|
15613
15616
|
extends: Mt
|
|
15614
15617
|
};
|
|
15615
15618
|
function Hy(e, t, n, o, r, a) {
|
|
15616
|
-
return y(),
|
|
15619
|
+
return y(), C("svg", K({
|
|
15617
15620
|
width: "14",
|
|
15618
15621
|
height: "14",
|
|
15619
15622
|
viewBox: "0 0 14 14",
|
|
@@ -15630,7 +15633,7 @@ var Gl = {
|
|
|
15630
15633
|
extends: Mt
|
|
15631
15634
|
};
|
|
15632
15635
|
function Wy(e, t, n, o, r, a) {
|
|
15633
|
-
return y(),
|
|
15636
|
+
return y(), C("svg", K({
|
|
15634
15637
|
width: "14",
|
|
15635
15638
|
height: "14",
|
|
15636
15639
|
viewBox: "0 0 14 14",
|
|
@@ -15649,7 +15652,7 @@ var Yl = {
|
|
|
15649
15652
|
extends: Mt
|
|
15650
15653
|
};
|
|
15651
15654
|
function qy(e, t, n, o, r, a) {
|
|
15652
|
-
return y(),
|
|
15655
|
+
return y(), C("svg", K({
|
|
15653
15656
|
width: "14",
|
|
15654
15657
|
height: "14",
|
|
15655
15658
|
viewBox: "0 0 14 14",
|
|
@@ -15728,7 +15731,7 @@ var Ky = function(t) {
|
|
|
15728
15731
|
inheritAttrs: !1
|
|
15729
15732
|
};
|
|
15730
15733
|
function Jy(e, t, n, o, r, a) {
|
|
15731
|
-
return y(),
|
|
15734
|
+
return y(), C("div", K({
|
|
15732
15735
|
class: e.cx("root")
|
|
15733
15736
|
}, e.ptmi("root")), [ae(e.$slots, "default")], 16);
|
|
15734
15737
|
}
|
|
@@ -15762,7 +15765,7 @@ var Xy = {
|
|
|
15762
15765
|
}
|
|
15763
15766
|
};
|
|
15764
15767
|
function tv(e, t, n, o, r, a) {
|
|
15765
|
-
return y(),
|
|
15768
|
+
return y(), C("span", K({
|
|
15766
15769
|
class: a.containerClass
|
|
15767
15770
|
}, e.ptmi("root")), [ae(e.$slots, "default")], 16);
|
|
15768
15771
|
}
|
|
@@ -16041,7 +16044,7 @@ var nv = {
|
|
|
16041
16044
|
}
|
|
16042
16045
|
}, sv = ["value", "disabled", "aria-invalid"];
|
|
16043
16046
|
function lv(e, t, n, o, r, a) {
|
|
16044
|
-
return y(),
|
|
16047
|
+
return y(), C("input", K({
|
|
16045
16048
|
type: "text",
|
|
16046
16049
|
class: e.cx("root"),
|
|
16047
16050
|
value: e.d_value,
|
|
@@ -16615,12 +16618,12 @@ var ec = {
|
|
|
16615
16618
|
return U ? U > D ? U - D : U : 0;
|
|
16616
16619
|
}, u = function(U, D) {
|
|
16617
16620
|
return Math.floor(U / (D || U));
|
|
16618
|
-
}, s = function(U, D, P,
|
|
16619
|
-
return U <= B ? B : I ? P -
|
|
16620
|
-
}, c = function(U, D, P,
|
|
16621
|
+
}, s = function(U, D, P, S, B, I) {
|
|
16622
|
+
return U <= B ? B : I ? P - S - B : D + B - 1;
|
|
16623
|
+
}, c = function(U, D, P, S, B, I, L) {
|
|
16621
16624
|
return U <= I ? 0 : Math.max(0, L ? U < D ? P : U - I : U > D ? P : U - 2 * I);
|
|
16622
|
-
}, d = function(U, D, P,
|
|
16623
|
-
var L = D +
|
|
16625
|
+
}, d = function(U, D, P, S, B, I) {
|
|
16626
|
+
var L = D + S + 2 * B;
|
|
16624
16627
|
return U >= B && (L += B + 1), n.getLast(L, I);
|
|
16625
16628
|
}, p = l(o.scrollTop, i.top), f = l(o.scrollLeft, i.left), m = r ? {
|
|
16626
16629
|
rows: 0,
|
|
@@ -16787,13 +16790,13 @@ var ec = {
|
|
|
16787
16790
|
}, hv = ["tabindex"];
|
|
16788
16791
|
function gv(e, t, n, o, r, a) {
|
|
16789
16792
|
var i = q("SpinnerIcon");
|
|
16790
|
-
return e.disabled ? (y(),
|
|
16793
|
+
return e.disabled ? (y(), C(oe, {
|
|
16791
16794
|
key: 1
|
|
16792
16795
|
}, [ae(e.$slots, "default"), ae(e.$slots, "content", {
|
|
16793
16796
|
items: e.items,
|
|
16794
16797
|
rows: e.items,
|
|
16795
16798
|
columns: a.loadedColumns
|
|
16796
|
-
})], 64)) : (y(),
|
|
16799
|
+
})], 64)) : (y(), C("div", K({
|
|
16797
16800
|
key: 0,
|
|
16798
16801
|
ref: a.elementRef,
|
|
16799
16802
|
class: a.containerClass,
|
|
@@ -16822,21 +16825,21 @@ function gv(e, t, n, o, r, a) {
|
|
|
16822
16825
|
ref: a.contentRef,
|
|
16823
16826
|
class: a.contentClass,
|
|
16824
16827
|
style: r.contentStyle
|
|
16825
|
-
}, e.ptm("content")), [(y(!0),
|
|
16828
|
+
}, e.ptm("content")), [(y(!0), C(oe, null, we(a.loadedItems, function(l, u) {
|
|
16826
16829
|
return ae(e.$slots, "item", {
|
|
16827
16830
|
key: u,
|
|
16828
16831
|
item: l,
|
|
16829
16832
|
options: a.getOptions(u)
|
|
16830
16833
|
});
|
|
16831
16834
|
}), 128))], 16)];
|
|
16832
|
-
}), e.showSpacer ? (y(),
|
|
16835
|
+
}), e.showSpacer ? (y(), C("div", K({
|
|
16833
16836
|
key: 0,
|
|
16834
16837
|
class: "p-virtualscroller-spacer",
|
|
16835
16838
|
style: r.spacerStyle
|
|
16836
|
-
}, e.ptm("spacer")), null, 16)) : j("", !0), !e.loaderDisabled && e.showLoader && r.d_loading ? (y(),
|
|
16839
|
+
}, e.ptm("spacer")), null, 16)) : j("", !0), !e.loaderDisabled && e.showLoader && r.d_loading ? (y(), C("div", K({
|
|
16837
16840
|
key: 1,
|
|
16838
16841
|
class: a.loaderClass
|
|
16839
|
-
}, e.ptm("loader")), [e.$slots && e.$slots.loader ? (y(!0),
|
|
16842
|
+
}, e.ptm("loader")), [e.$slots && e.$slots.loader ? (y(!0), C(oe, {
|
|
16840
16843
|
key: 0
|
|
16841
16844
|
}, we(r.loaderArr, function(l, u) {
|
|
16842
16845
|
return ae(e.$slots, "loader", {
|
|
@@ -17962,14 +17965,14 @@ var nc = {
|
|
|
17962
17965
|
}, Tv = ["id"], Iv = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"], Bv = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled"], Rv = ["id"], Pv = ["id"], Fv = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-selected", "data-p-focused", "data-p-disabled"];
|
|
17963
17966
|
function Av(e, t, n, o, r, a) {
|
|
17964
17967
|
var i = q("SpinnerIcon"), l = q("InputText"), u = q("SearchIcon"), s = q("InputIcon"), c = q("IconField"), d = q("CheckIcon"), p = q("BlankIcon"), f = q("VirtualScroller"), m = q("Portal"), h = Hr("ripple");
|
|
17965
|
-
return y(),
|
|
17968
|
+
return y(), C("div", K({
|
|
17966
17969
|
ref: "container",
|
|
17967
17970
|
id: r.id,
|
|
17968
17971
|
class: e.cx("root"),
|
|
17969
17972
|
onClick: t[11] || (t[11] = function() {
|
|
17970
17973
|
return a.onContainerClick && a.onContainerClick.apply(a, arguments);
|
|
17971
17974
|
})
|
|
17972
|
-
}, e.ptmi("root")), [e.editable ? (y(),
|
|
17975
|
+
}, e.ptmi("root")), [e.editable ? (y(), C("input", K({
|
|
17973
17976
|
key: 0,
|
|
17974
17977
|
ref: "focusInput",
|
|
17975
17978
|
id: e.labelId || e.inputId,
|
|
@@ -18001,7 +18004,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18001
18004
|
onInput: t[3] || (t[3] = function() {
|
|
18002
18005
|
return a.onEditableInput && a.onEditableInput.apply(a, arguments);
|
|
18003
18006
|
})
|
|
18004
|
-
}, e.ptm("label")), null, 16, Iv)) : (y(),
|
|
18007
|
+
}, e.ptm("label")), null, 16, Iv)) : (y(), C("span", K({
|
|
18005
18008
|
key: 1,
|
|
18006
18009
|
ref: "focusInput",
|
|
18007
18010
|
id: e.labelId || e.inputId,
|
|
@@ -18049,7 +18052,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18049
18052
|
key: 0,
|
|
18050
18053
|
class: pe(e.cx("loadingIcon"))
|
|
18051
18054
|
}, function() {
|
|
18052
|
-
return [e.loadingIcon ? (y(),
|
|
18055
|
+
return [e.loadingIcon ? (y(), C("span", K({
|
|
18053
18056
|
key: 0,
|
|
18054
18057
|
class: [e.cx("loadingIcon"), "pi-spin", e.loadingIcon],
|
|
18055
18058
|
"aria-hidden": "true"
|
|
@@ -18079,7 +18082,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18079
18082
|
onAfterLeave: a.onOverlayAfterLeave
|
|
18080
18083
|
}, e.ptm("transition")), {
|
|
18081
18084
|
default: te(function() {
|
|
18082
|
-
return [r.overlayVisible ? (y(),
|
|
18085
|
+
return [r.overlayVisible ? (y(), C("div", K({
|
|
18083
18086
|
key: 0,
|
|
18084
18087
|
ref: a.overlayRef,
|
|
18085
18088
|
class: [e.cx("overlay"), e.panelClass, e.overlayClass],
|
|
@@ -18105,7 +18108,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18105
18108
|
}), null, 16), ae(e.$slots, "header", {
|
|
18106
18109
|
value: e.d_value,
|
|
18107
18110
|
options: a.visibleOptions
|
|
18108
|
-
}), e.filter ? (y(),
|
|
18111
|
+
}), e.filter ? (y(), C("div", K({
|
|
18109
18112
|
key: 0,
|
|
18110
18113
|
class: e.cx("header")
|
|
18111
18114
|
}, e.ptm("header")), [W(c, {
|
|
@@ -18137,7 +18140,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18137
18140
|
}, {
|
|
18138
18141
|
default: te(function() {
|
|
18139
18142
|
return [ae(e.$slots, "filtericon", {}, function() {
|
|
18140
|
-
return [e.filterIcon ? (y(),
|
|
18143
|
+
return [e.filterIcon ? (y(), C("span", K({
|
|
18141
18144
|
key: 0,
|
|
18142
18145
|
class: e.filterIcon
|
|
18143
18146
|
}, e.ptm("filterIcon")), null, 16)) : (y(), z(u, zt(K({
|
|
@@ -18181,10 +18184,10 @@ function Av(e, t, n, o, r, a) {
|
|
|
18181
18184
|
class: [e.cx("list"), b],
|
|
18182
18185
|
style: $,
|
|
18183
18186
|
role: "listbox"
|
|
18184
|
-
}, e.ptm("list")), [(y(!0),
|
|
18185
|
-
return y(),
|
|
18187
|
+
}, e.ptm("list")), [(y(!0), C(oe, null, we(w, function(T, E) {
|
|
18188
|
+
return y(), C(oe, {
|
|
18186
18189
|
key: a.getOptionRenderKey(T, a.getOptionIndex(E, x))
|
|
18187
|
-
}, [a.isOptionGroup(T) ? (y(),
|
|
18190
|
+
}, [a.isOptionGroup(T) ? (y(), C("li", K({
|
|
18188
18191
|
key: 0,
|
|
18189
18192
|
id: r.id + "_" + a.getOptionIndex(E, x),
|
|
18190
18193
|
style: {
|
|
@@ -18201,7 +18204,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18201
18204
|
class: e.cx("optionGroupLabel"),
|
|
18202
18205
|
ref_for: !0
|
|
18203
18206
|
}, e.ptm("optionGroupLabel")), Z(a.getOptionGroupLabel(T.optionGroup)), 17)];
|
|
18204
|
-
})], 16, Pv)) : cn((y(),
|
|
18207
|
+
})], 16, Pv)) : cn((y(), C("li", K({
|
|
18205
18208
|
key: 1,
|
|
18206
18209
|
id: r.id + "_" + a.getOptionIndex(E, x),
|
|
18207
18210
|
class: e.cx("option", {
|
|
@@ -18227,7 +18230,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18227
18230
|
"data-p-focused": r.focusedOptionIndex === a.getOptionIndex(E, x),
|
|
18228
18231
|
"data-p-disabled": a.isOptionDisabled(T),
|
|
18229
18232
|
ref_for: !0
|
|
18230
|
-
}, a.getPTItemOptions(T, x, E, "option")), [e.checkmark ? (y(),
|
|
18233
|
+
}, a.getPTItemOptions(T, x, E, "option")), [e.checkmark ? (y(), C(oe, {
|
|
18231
18234
|
key: 0
|
|
18232
18235
|
}, [a.isSelected(T) ? (y(), z(d, K({
|
|
18233
18236
|
key: 0,
|
|
@@ -18247,7 +18250,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18247
18250
|
ref_for: !0
|
|
18248
18251
|
}, e.ptm("optionLabel")), Z(a.getOptionLabel(T)), 17)];
|
|
18249
18252
|
})], 16, Fv)), [[h]])], 64);
|
|
18250
|
-
}), 128)), r.filterValue && (!w || w && w.length === 0) ? (y(),
|
|
18253
|
+
}), 128)), r.filterValue && (!w || w && w.length === 0) ? (y(), C("li", K({
|
|
18251
18254
|
key: 0,
|
|
18252
18255
|
class: e.cx("emptyMessage"),
|
|
18253
18256
|
role: "option"
|
|
@@ -18255,7 +18258,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18255
18258
|
"data-p-hidden-accessible": !0
|
|
18256
18259
|
}), [ae(e.$slots, "emptyfilter", {}, function() {
|
|
18257
18260
|
return [Ke(Z(a.emptyFilterMessageText), 1)];
|
|
18258
|
-
})], 16)) : !e.options || e.options && e.options.length === 0 ? (y(),
|
|
18261
|
+
})], 16)) : !e.options || e.options && e.options.length === 0 ? (y(), C("li", K({
|
|
18259
18262
|
key: 1,
|
|
18260
18263
|
class: e.cx("emptyMessage"),
|
|
18261
18264
|
role: "option"
|
|
@@ -18278,7 +18281,7 @@ function Av(e, t, n, o, r, a) {
|
|
|
18278
18281
|
} : void 0]), 1040, ["items", "style", "disabled", "pt"])], 16), ae(e.$slots, "footer", {
|
|
18279
18282
|
value: e.d_value,
|
|
18280
18283
|
options: a.visibleOptions
|
|
18281
|
-
}), !e.options || e.options && e.options.length === 0 ? (y(),
|
|
18284
|
+
}), !e.options || e.options && e.options.length === 0 ? (y(), C("span", K({
|
|
18282
18285
|
key: 1,
|
|
18283
18286
|
role: "status",
|
|
18284
18287
|
"aria-live": "polite",
|
|
@@ -18326,7 +18329,7 @@ const _v = { class: "editable-label-editing flex items-center gap-2 w-full" }, a
|
|
|
18326
18329
|
},
|
|
18327
18330
|
setup(e) {
|
|
18328
18331
|
const t = e;
|
|
18329
|
-
return O(!1), O(t.label), (n, o) => (y(),
|
|
18332
|
+
return O(!1), O(t.label), (n, o) => (y(), C("div", _v, [
|
|
18330
18333
|
W(X(nc), {
|
|
18331
18334
|
modelValue: n.selectedCity,
|
|
18332
18335
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => n.selectedCity = r),
|
|
@@ -18455,9 +18458,9 @@ const _v = { class: "editable-label-editing flex items-center gap-2 w-full" }, a
|
|
|
18455
18458
|
class: "w-full"
|
|
18456
18459
|
}, {
|
|
18457
18460
|
value: te((x) => [
|
|
18458
|
-
l.value ? (y(),
|
|
18461
|
+
l.value ? (y(), C("div", Lv, [
|
|
18459
18462
|
v("div", null, Z(l.value[s.value] || l.value.label), 1)
|
|
18460
|
-
])) : (y(),
|
|
18463
|
+
])) : (y(), C("span", Nv, Z(x.placeholder), 1))
|
|
18461
18464
|
]),
|
|
18462
18465
|
option: te((x) => [
|
|
18463
18466
|
v("div", Dv, [
|
|
@@ -18539,7 +18542,7 @@ const _v = { class: "editable-label-editing flex items-center gap-2 w-full" }, a
|
|
|
18539
18542
|
options: e.options,
|
|
18540
18543
|
onOnChange: u,
|
|
18541
18544
|
valueField: e.valueField
|
|
18542
|
-
}, null, 8, ["modelValue", "url", "displayField", "options", "valueField"])) : (y(),
|
|
18545
|
+
}, null, 8, ["modelValue", "url", "displayField", "options", "valueField"])) : (y(), C("p", zv, "You do not have the required permissions to access this feature."));
|
|
18543
18546
|
}
|
|
18544
18547
|
}, jv = { key: 1 }, Uv = "/api/app/v1/${appid}/entity", ss = {
|
|
18545
18548
|
__name: "EntitySelection",
|
|
@@ -18580,7 +18583,7 @@ const _v = { class: "editable-label-editing flex items-center gap-2 w-full" }, a
|
|
|
18580
18583
|
method: "GET",
|
|
18581
18584
|
onOnChange: i,
|
|
18582
18585
|
valueField: "name"
|
|
18583
|
-
}, null, 8, ["modelValue"])) : (y(),
|
|
18586
|
+
}, null, 8, ["modelValue"])) : (y(), C("p", jv, "You do not have the required permissions to access this feature."));
|
|
18584
18587
|
}
|
|
18585
18588
|
}, Hv = {
|
|
18586
18589
|
key: 0,
|
|
@@ -18612,9 +18615,9 @@ const _v = { class: "editable-label-editing flex items-center gap-2 w-full" }, a
|
|
|
18612
18615
|
placeholder: "Select entity"
|
|
18613
18616
|
}, {
|
|
18614
18617
|
value: te((d) => [
|
|
18615
|
-
d.value ? (y(),
|
|
18618
|
+
d.value ? (y(), C("div", Hv, [
|
|
18616
18619
|
v("div", null, Z(d.value), 1)
|
|
18617
|
-
])) : (y(),
|
|
18620
|
+
])) : (y(), C("span", Wv, Z(d.placeholder), 1))
|
|
18618
18621
|
]),
|
|
18619
18622
|
option: te((d) => [
|
|
18620
18623
|
v("div", qv, [
|
|
@@ -18851,7 +18854,7 @@ const _v = { class: "editable-label-editing flex items-center gap-2 w-full" }, a
|
|
|
18851
18854
|
onOnChange: i,
|
|
18852
18855
|
valueField: e.valueField,
|
|
18853
18856
|
placeholder: "Select Roles..."
|
|
18854
|
-
}, null, 8, ["modelValue", "options", "valueField"])) : (y(),
|
|
18857
|
+
}, null, 8, ["modelValue", "options", "valueField"])) : (y(), C("p", Qv, "You do not have the required permissions to access this feature."));
|
|
18855
18858
|
}
|
|
18856
18859
|
}, Xv = { key: 1 }, Zv = "/api/app/v1/${appid}/security/permission", ds = {
|
|
18857
18860
|
__name: "PermissionSelection",
|
|
@@ -18903,7 +18906,7 @@ const _v = { class: "editable-label-editing flex items-center gap-2 w-full" }, a
|
|
|
18903
18906
|
onOnChange: i,
|
|
18904
18907
|
valueField: e.valueField,
|
|
18905
18908
|
placeholder: "Select Permissions..."
|
|
18906
|
-
}, null, 8, ["modelValue", "options", "valueField"])) : (y(),
|
|
18909
|
+
}, null, 8, ["modelValue", "options", "valueField"])) : (y(), C("p", Xv, "You do not have the required permissions to access this feature."));
|
|
18907
18910
|
}
|
|
18908
18911
|
}, fs = {
|
|
18909
18912
|
__name: "label",
|
|
@@ -18918,7 +18921,7 @@ const _v = { class: "editable-label-editing flex items-center gap-2 w-full" }, a
|
|
|
18918
18921
|
}
|
|
18919
18922
|
},
|
|
18920
18923
|
setup(e) {
|
|
18921
|
-
return (t, n) => (y(),
|
|
18924
|
+
return (t, n) => (y(), C("div", zt(io(t.$attrs)), [
|
|
18922
18925
|
v("span", {
|
|
18923
18926
|
style: Sr({ fontSize: e.labelFontSize + "px", textAlign: t.textAlign })
|
|
18924
18927
|
}, Z(e.label), 5)
|
|
@@ -18930,7 +18933,7 @@ var rc = {
|
|
|
18930
18933
|
extends: Mt
|
|
18931
18934
|
};
|
|
18932
18935
|
function e1(e, t, n, o, r, a) {
|
|
18933
|
-
return y(),
|
|
18936
|
+
return y(), C("svg", K({
|
|
18934
18937
|
width: "14",
|
|
18935
18938
|
height: "14",
|
|
18936
18939
|
viewBox: "0 0 14 14",
|
|
@@ -18949,7 +18952,7 @@ var ac = {
|
|
|
18949
18952
|
extends: Mt
|
|
18950
18953
|
};
|
|
18951
18954
|
function t1(e, t, n, o, r, a) {
|
|
18952
|
-
return y(),
|
|
18955
|
+
return y(), C("svg", K({
|
|
18953
18956
|
width: "14",
|
|
18954
18957
|
height: "14",
|
|
18955
18958
|
viewBox: "0 0 14 14",
|
|
@@ -19436,7 +19439,7 @@ function c1(e, t) {
|
|
|
19436
19439
|
var u1 = ["id"];
|
|
19437
19440
|
function d1(e, t, n, o, r, a) {
|
|
19438
19441
|
var i = q("InputText"), l = q("Portal");
|
|
19439
|
-
return y(),
|
|
19442
|
+
return y(), C("div", K({
|
|
19440
19443
|
class: e.cx("root"),
|
|
19441
19444
|
style: e.sx("root")
|
|
19442
19445
|
}, e.ptmi("root")), [W(i, K({
|
|
@@ -19500,7 +19503,7 @@ function d1(e, t, n, o, r, a) {
|
|
|
19500
19503
|
onAfterLeave: a.onOverlayAfterLeave
|
|
19501
19504
|
}, e.ptm("transition")), {
|
|
19502
19505
|
default: te(function() {
|
|
19503
|
-
return [r.overlayVisible ? (y(),
|
|
19506
|
+
return [r.overlayVisible ? (y(), C("div", K({
|
|
19504
19507
|
key: 0,
|
|
19505
19508
|
ref: a.overlayRef,
|
|
19506
19509
|
id: e.overlayId || e.panelId || a.overlayUniqueId,
|
|
@@ -19536,7 +19539,7 @@ var ic = {
|
|
|
19536
19539
|
extends: Mt
|
|
19537
19540
|
};
|
|
19538
19541
|
function f1(e, t, n, o, r, a) {
|
|
19539
|
-
return y(),
|
|
19542
|
+
return y(), C("svg", K({
|
|
19540
19543
|
width: "14",
|
|
19541
19544
|
height: "14",
|
|
19542
19545
|
viewBox: "0 0 14 14",
|
|
@@ -19852,7 +19855,7 @@ var jr = {
|
|
|
19852
19855
|
}, x1 = ["data-p-checked", "data-p-indeterminate", "data-p-disabled"], S1 = ["id", "value", "name", "checked", "tabindex", "disabled", "readonly", "required", "aria-labelledby", "aria-label", "aria-invalid", "aria-checked"];
|
|
19853
19856
|
function C1(e, t, n, o, r, a) {
|
|
19854
19857
|
var i = q("CheckIcon"), l = q("MinusIcon");
|
|
19855
|
-
return y(),
|
|
19858
|
+
return y(), C("div", K({
|
|
19856
19859
|
class: e.cx("root")
|
|
19857
19860
|
}, a.getPTOptions("root"), {
|
|
19858
19861
|
"data-p-checked": a.checked,
|
|
@@ -19988,7 +19991,7 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
19988
19991
|
return "text-center";
|
|
19989
19992
|
}
|
|
19990
19993
|
}), i = de(() => t.buttonSize === "medium" ? {} : { size: t.buttonSize }), l = de(() => t.inputSize === "medium" ? {} : { size: t.inputSize });
|
|
19991
|
-
return (u, s) => (y(),
|
|
19994
|
+
return (u, s) => (y(), C("div", $1, [
|
|
19992
19995
|
cn(v("div", null, [
|
|
19993
19996
|
v("h2", {
|
|
19994
19997
|
class: pe(["text-xl font-bold mb-4", a.value])
|
|
@@ -20007,7 +20010,7 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
20007
20010
|
name: "password",
|
|
20008
20011
|
value: o.password
|
|
20009
20012
|
}, null, 8, T1),
|
|
20010
|
-
o.rememberMe ? (y(),
|
|
20013
|
+
o.rememberMe ? (y(), C("input", I1)) : j("", !0),
|
|
20011
20014
|
v("div", B1, [
|
|
20012
20015
|
s[9] || (s[9] = v("label", { class: "block mb-1 text-sm font-medium text-gray-700" }, "Username", -1)),
|
|
20013
20016
|
W(X(On), K({
|
|
@@ -20082,7 +20085,7 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
20082
20085
|
name: "password",
|
|
20083
20086
|
value: r.password
|
|
20084
20087
|
}, null, 8, N1),
|
|
20085
|
-
r.agreeToTerms ? (y(),
|
|
20088
|
+
r.agreeToTerms ? (y(), C("input", D1)) : j("", !0),
|
|
20086
20089
|
v("div", V1, [
|
|
20087
20090
|
s[13] || (s[13] = v("label", { class: "block mb-1 text-sm font-medium text-gray-700" }, "Full Name", -1)),
|
|
20088
20091
|
W(X(On), K({
|
|
@@ -20198,13 +20201,13 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
20198
20201
|
clearTimeout(w), w = setTimeout(m, 300);
|
|
20199
20202
|
}), Ee(() => n.modelValue, (x) => {
|
|
20200
20203
|
a.value = x;
|
|
20201
|
-
}), (x, $) => (y(),
|
|
20204
|
+
}), (x, $) => (y(), C("div", {
|
|
20202
20205
|
class: "icon-selection w-full max-w-md mx-auto relative",
|
|
20203
20206
|
ref_key: "iconContainer",
|
|
20204
20207
|
ref: r
|
|
20205
20208
|
}, [
|
|
20206
20209
|
v("div", H1, [
|
|
20207
|
-
a.value ? (y(),
|
|
20210
|
+
a.value ? (y(), C("i", {
|
|
20208
20211
|
key: 0,
|
|
20209
20212
|
class: pe(["fa", a.value, "fa-lg", "text-gray-600", "mr-2"]),
|
|
20210
20213
|
style: { "min-width": "20px" }
|
|
@@ -20220,9 +20223,9 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
20220
20223
|
]),
|
|
20221
20224
|
$[2] || ($[2] = v("i", { class: "fas fa-search text-xl text-gray-700" }, null, -1))
|
|
20222
20225
|
]),
|
|
20223
|
-
i.value ? (y(),
|
|
20226
|
+
i.value ? (y(), C("div", W1, [
|
|
20224
20227
|
v("div", q1, [
|
|
20225
|
-
(y(),
|
|
20228
|
+
(y(), C(oe, null, we(s, (N) => v("button", {
|
|
20226
20229
|
key: N,
|
|
20227
20230
|
class: pe([
|
|
20228
20231
|
"flex-1 p-1 text-sm rounded font-semibold",
|
|
@@ -20232,7 +20235,7 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
20232
20235
|
}, Z(N), 11, K1)), 64))
|
|
20233
20236
|
]),
|
|
20234
20237
|
v("div", G1, [
|
|
20235
|
-
(y(),
|
|
20238
|
+
(y(), C(oe, null, we(c, (N) => v("button", {
|
|
20236
20239
|
key: N,
|
|
20237
20240
|
class: pe([
|
|
20238
20241
|
"flex-1 p-1 text-sm rounded font-semibold capitalize",
|
|
@@ -20241,8 +20244,8 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
20241
20244
|
onClick: (T) => g("category", N)
|
|
20242
20245
|
}, Z(N), 11, Y1)), 64))
|
|
20243
20246
|
]),
|
|
20244
|
-
u.value.length ? (y(),
|
|
20245
|
-
(y(!0),
|
|
20247
|
+
u.value.length ? (y(), C("div", Q1, [
|
|
20248
|
+
(y(!0), C(oe, null, we(k.value, (N, T) => (y(), C("div", {
|
|
20246
20249
|
key: T,
|
|
20247
20250
|
class: "icon-item text-center cursor-pointer hover:bg-gray-100 p-2 rounded transition-all",
|
|
20248
20251
|
onClick: (E) => h(N)
|
|
@@ -20252,7 +20255,7 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
20252
20255
|
}, null, 2),
|
|
20253
20256
|
v("div", X1, Z(N.name), 1)
|
|
20254
20257
|
], 8, J1))), 128))
|
|
20255
|
-
])) : (y(),
|
|
20258
|
+
])) : (y(), C("div", Z1, "No icons found"))
|
|
20256
20259
|
])) : j("", !0)
|
|
20257
20260
|
], 512));
|
|
20258
20261
|
}
|
|
@@ -20268,10 +20271,10 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
20268
20271
|
}
|
|
20269
20272
|
},
|
|
20270
20273
|
setup(e) {
|
|
20271
|
-
return (t, n) => e.iconName ? (y(),
|
|
20274
|
+
return (t, n) => e.iconName ? (y(), C("i", {
|
|
20272
20275
|
key: 0,
|
|
20273
20276
|
class: pe([e.iconName, "text-xl", "text-gray-700"])
|
|
20274
|
-
}, null, 2)) : (y(),
|
|
20277
|
+
}, null, 2)) : (y(), C("span", tw, "Please Select Icon from Settings"));
|
|
20275
20278
|
}
|
|
20276
20279
|
}, gs = /* @__PURE__ */ He(nw, [["__scopeId", "data-v-e95232b1"]]), ow = {
|
|
20277
20280
|
key: 0,
|
|
@@ -20280,7 +20283,7 @@ const $1 = { class: "max-w-sm mx-auto p-6 bg-white shadow rounded" }, E1 = ["act
|
|
|
20280
20283
|
__name: "GlobalLoader",
|
|
20281
20284
|
setup(e) {
|
|
20282
20285
|
const t = Qr(), { loading: n } = Tc(t);
|
|
20283
|
-
return (o, r) => X(n) ? (y(),
|
|
20286
|
+
return (o, r) => X(n) ? (y(), C("div", ow, r[0] || (r[0] = [
|
|
20284
20287
|
v("div", { class: "global-loader-container" }, [
|
|
20285
20288
|
v("div", { class: "global-loader-spinner" }, [
|
|
20286
20289
|
v("div", { class: "spinner" })
|
|
@@ -20353,8 +20356,8 @@ const iw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20353
20356
|
l.value.trim() && b(l.value);
|
|
20354
20357
|
}, $ = () => {
|
|
20355
20358
|
nt(() => {
|
|
20356
|
-
var D, P,
|
|
20357
|
-
const U = ((P = (D = a.value) == null ? void 0 : D.$el) == null ? void 0 : P.querySelector("input")) || ((
|
|
20359
|
+
var D, P, S, B;
|
|
20360
|
+
const U = ((P = (D = a.value) == null ? void 0 : D.$el) == null ? void 0 : P.querySelector("input")) || ((S = a.value) == null ? void 0 : S.$el) || a.value;
|
|
20358
20361
|
(B = U == null ? void 0 : U.focus) == null || B.call(U);
|
|
20359
20362
|
});
|
|
20360
20363
|
}, N = (U) => {
|
|
@@ -20374,8 +20377,8 @@ const iw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20374
20377
|
}), Es(() => {
|
|
20375
20378
|
document.removeEventListener("click", G);
|
|
20376
20379
|
}), (U, D) => {
|
|
20377
|
-
const P = q("Chip"),
|
|
20378
|
-
return y(),
|
|
20380
|
+
const P = q("Chip"), S = q("InputText"), B = q("Button");
|
|
20381
|
+
return y(), C("div", {
|
|
20379
20382
|
class: "relative w-full multi-select-chips-wrapper",
|
|
20380
20383
|
onClick: E
|
|
20381
20384
|
}, [
|
|
@@ -20384,7 +20387,7 @@ const iw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20384
20387
|
class: "flex flex-wrap items-center flex-1 gap-2 p-1 min-h-full",
|
|
20385
20388
|
onClick: N
|
|
20386
20389
|
}, [
|
|
20387
|
-
(y(!0),
|
|
20390
|
+
(y(!0), C(oe, null, we(p.value, (I, L) => (y(), z(P, {
|
|
20388
20391
|
key: `chip-${L}-${I}`,
|
|
20389
20392
|
label: I,
|
|
20390
20393
|
removable: "",
|
|
@@ -20393,7 +20396,7 @@ const iw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20393
20396
|
class: "m-0 flex-shrink-0 whitespace-nowrap h-fit self-center"
|
|
20394
20397
|
}, null, 8, ["label", "onRemove"]))), 128)),
|
|
20395
20398
|
v("div", sw, [
|
|
20396
|
-
W(
|
|
20399
|
+
W(S, {
|
|
20397
20400
|
style: { border: "none" },
|
|
20398
20401
|
ref_key: "inputRef",
|
|
20399
20402
|
ref: a,
|
|
@@ -20419,7 +20422,7 @@ const iw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20419
20422
|
}, null, 8, ["disabled"])
|
|
20420
20423
|
])
|
|
20421
20424
|
]),
|
|
20422
|
-
u.value ? (y(),
|
|
20425
|
+
u.value ? (y(), C("div", {
|
|
20423
20426
|
key: 0,
|
|
20424
20427
|
ref_key: "dropdownRef",
|
|
20425
20428
|
ref: i,
|
|
@@ -20427,7 +20430,7 @@ const iw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20427
20430
|
}, [
|
|
20428
20431
|
v("div", lw, [
|
|
20429
20432
|
v("div", cw, [
|
|
20430
|
-
(y(!0),
|
|
20433
|
+
(y(!0), C(oe, null, we(s.value, (I) => (y(), z(B, {
|
|
20431
20434
|
key: I,
|
|
20432
20435
|
size: "small",
|
|
20433
20436
|
class: pe([
|
|
@@ -20440,7 +20443,7 @@ const iw = { class: "flex items-stretch min-h-[2.5rem] p-0 border border-gray-30
|
|
|
20440
20443
|
])
|
|
20441
20444
|
]),
|
|
20442
20445
|
v("div", uw, [
|
|
20443
|
-
d.value.length === 0 ? (y(),
|
|
20446
|
+
d.value.length === 0 ? (y(), C("div", dw, " No options found ")) : (y(!0), C(oe, { key: 1 }, we(d.value, (I, L) => (y(), C("div", {
|
|
20444
20447
|
key: `opt-${L}-${I}`,
|
|
20445
20448
|
class: "px-3 py-2 text-sm cursor-pointer hover:bg-gray-100",
|
|
20446
20449
|
onClick: Nt((ee) => w(I), ["stop"])
|
|
@@ -20523,7 +20526,7 @@ const hw = { class: "w-full" }, vs = {
|
|
|
20523
20526
|
u();
|
|
20524
20527
|
}), (d, p) => {
|
|
20525
20528
|
const f = q("Select");
|
|
20526
|
-
return y(),
|
|
20529
|
+
return y(), C("div", hw, [
|
|
20527
20530
|
W(f, {
|
|
20528
20531
|
modelValue: i.value,
|
|
20529
20532
|
"onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
|
|
@@ -26374,7 +26377,7 @@ const ox = { style: {
|
|
|
26374
26377
|
padding: "1rem"
|
|
26375
26378
|
};
|
|
26376
26379
|
});
|
|
26377
|
-
return (u, s) => (y(),
|
|
26380
|
+
return (u, s) => (y(), C("div", ox, [
|
|
26378
26381
|
v("div", rx, [
|
|
26379
26382
|
v("div", {
|
|
26380
26383
|
style: Sr(l.value)
|