codesaaz-core 0.0.94 → 0.0.95
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 +347 -347
- package/dist/codesaaz.umd.js +10 -10
- package/package.json +1 -1
package/dist/codesaaz.es.js
CHANGED
|
@@ -247,7 +247,7 @@ function ks(e, t, n = {}, o, r, i) {
|
|
|
247
247
|
function I(z) {
|
|
248
248
|
U.push(z);
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function _(z) {
|
|
251
251
|
S.push(z);
|
|
252
252
|
}
|
|
253
253
|
Cn(d, {
|
|
@@ -255,7 +255,7 @@ function ks(e, t, n = {}, o, r, i) {
|
|
|
255
255
|
name: W[lr],
|
|
256
256
|
store: T,
|
|
257
257
|
after: I,
|
|
258
|
-
onError:
|
|
258
|
+
onError: _
|
|
259
259
|
});
|
|
260
260
|
let P;
|
|
261
261
|
try {
|
|
@@ -2178,10 +2178,10 @@ function ed(e = "") {
|
|
|
2178
2178
|
}, w = async (S, I = !0) => {
|
|
2179
2179
|
p.value = !0;
|
|
2180
2180
|
try {
|
|
2181
|
-
const
|
|
2182
|
-
|
|
2183
|
-
} catch (
|
|
2184
|
-
console.error("Error fetching entity:",
|
|
2181
|
+
const _ = await t.getEntityRecords(S);
|
|
2182
|
+
_ && _.response && (o.value = _.response, r.value = _.response.result, a.value = T(_.response.entity.entityDefinition.columns), i.value = $(_.response.entity.entityDefinition.columns), f.value = _.response.totalRecords, U());
|
|
2183
|
+
} catch (_) {
|
|
2184
|
+
console.error("Error fetching entity:", _.errorMessage);
|
|
2185
2185
|
} finally {
|
|
2186
2186
|
p.value = !1;
|
|
2187
2187
|
}
|
|
@@ -2198,8 +2198,8 @@ function ed(e = "") {
|
|
|
2198
2198
|
fullTextSearch: g.value
|
|
2199
2199
|
};
|
|
2200
2200
|
Object.keys(I.filter).length === 0 && (I.filter = []);
|
|
2201
|
-
const
|
|
2202
|
-
|
|
2201
|
+
const _ = await t.searchEntityRecords(e, I);
|
|
2202
|
+
_ && _.response && (p.value = !1, o.value = _.response, r.value = _.response.result, f.value = _.response.totalRecords, d.value = c.value * l.value);
|
|
2203
2203
|
} catch (I) {
|
|
2204
2204
|
console.error("Error fetching entity:", I.errorMessage);
|
|
2205
2205
|
} finally {
|
|
@@ -2237,7 +2237,7 @@ function ed(e = "") {
|
|
|
2237
2237
|
return "text";
|
|
2238
2238
|
}
|
|
2239
2239
|
}, B = (S) => {
|
|
2240
|
-
const I = i.value.find((
|
|
2240
|
+
const I = i.value.find((_) => _.field === S);
|
|
2241
2241
|
return I ? I.datatype : null;
|
|
2242
2242
|
}, U = () => {
|
|
2243
2243
|
for (let S = 0; S < a.value.length; S++) {
|
|
@@ -2966,8 +2966,8 @@ function el(e) {
|
|
|
2966
2966
|
const Me = r++;
|
|
2967
2967
|
return Array.isArray(ve.id) ? ve.id.push(Me) : ve.id = [ve.id, Me], ve.fieldsCount++, ve.__flags.pendingUnmount[Me] = !1, ve;
|
|
2968
2968
|
}
|
|
2969
|
-
const q = te(() => qt(l, Ee(R))), ee = Ee(R), ue =
|
|
2970
|
-
ue !== -1 &&
|
|
2969
|
+
const q = te(() => qt(l, Ee(R))), ee = Ee(R), ue = N.findIndex((Me) => Me === ee);
|
|
2970
|
+
ue !== -1 && N.splice(ue, 1);
|
|
2971
2971
|
const le = te(() => {
|
|
2972
2972
|
var Me, nt, Ln, Vn;
|
|
2973
2973
|
const zn = Ee(B);
|
|
@@ -3008,7 +3008,7 @@ function el(e) {
|
|
|
3008
3008
|
});
|
|
3009
3009
|
}), De;
|
|
3010
3010
|
}
|
|
3011
|
-
const S = Ni(bt, 5), I = Ni(bt, 5),
|
|
3011
|
+
const S = Ni(bt, 5), I = Ni(bt, 5), _ = Sd(async (R) => await (R === "silent" ? S() : I()), (R, [F]) => {
|
|
3012
3012
|
const G = vt(ke.errorBag.value), ge = [
|
|
3013
3013
|
.../* @__PURE__ */ new Set([...vt(R.results), ...c.value.map((ve) => ve.path), ...G])
|
|
3014
3014
|
].sort().reduce((ve, de) => {
|
|
@@ -3037,13 +3037,13 @@ function el(e) {
|
|
|
3037
3037
|
function J(R) {
|
|
3038
3038
|
return c.value.filter((G) => R.startsWith(Ee(G.path))).reduce((G, re) => G ? re.path.length > G.path.length ? re : G : re, void 0);
|
|
3039
3039
|
}
|
|
3040
|
-
let
|
|
3041
|
-
function
|
|
3042
|
-
return
|
|
3043
|
-
[...
|
|
3040
|
+
let N = [], A;
|
|
3041
|
+
function D(R) {
|
|
3042
|
+
return N.push(R), A || (A = mt(() => {
|
|
3043
|
+
[...N].sort().reverse().forEach((G) => {
|
|
3044
3044
|
Di(l, G);
|
|
3045
|
-
}),
|
|
3046
|
-
})),
|
|
3045
|
+
}), N = [], A = null;
|
|
3046
|
+
})), A;
|
|
3047
3047
|
}
|
|
3048
3048
|
function ie(R) {
|
|
3049
3049
|
return function(G, re) {
|
|
@@ -3113,7 +3113,7 @@ function el(e) {
|
|
|
3113
3113
|
isValidating: a,
|
|
3114
3114
|
fieldArrays: u,
|
|
3115
3115
|
keepValuesOnUnmount: T,
|
|
3116
|
-
validateSchema: Q(B) ?
|
|
3116
|
+
validateSchema: Q(B) ? _ : void 0,
|
|
3117
3117
|
validate: Fe,
|
|
3118
3118
|
setFieldError: m,
|
|
3119
3119
|
validateField: We,
|
|
@@ -3134,7 +3134,7 @@ function el(e) {
|
|
|
3134
3134
|
setFieldInitialValue: lt,
|
|
3135
3135
|
createPathState: U,
|
|
3136
3136
|
getPathState: z,
|
|
3137
|
-
unsetPathValue:
|
|
3137
|
+
unsetPathValue: D,
|
|
3138
3138
|
removePathState: be,
|
|
3139
3139
|
initialValues: L,
|
|
3140
3140
|
getAllPathStates: () => c.value,
|
|
@@ -4907,162 +4907,162 @@ function oi(e, t, n, o) {
|
|
|
4907
4907
|
const p = E({});
|
|
4908
4908
|
let { handleSubmit: m, errors: g, setErrors: h } = el();
|
|
4909
4909
|
const y = async () => {
|
|
4910
|
-
var
|
|
4910
|
+
var N, A;
|
|
4911
4911
|
try {
|
|
4912
|
-
const
|
|
4913
|
-
|
|
4914
|
-
} catch (
|
|
4915
|
-
(
|
|
4912
|
+
const D = await r.getEntityRecords(e);
|
|
4913
|
+
D && D.response && (i.value = D.response, u.value = (N = D.response.entity.entityDefinition) == null ? void 0 : N.columns, J(), C(), U());
|
|
4914
|
+
} catch (D) {
|
|
4915
|
+
(A = D == null ? void 0 : D.data) != null && A.errorMessage ? o.add({ severity: "error", summary: "Error", detail: D.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while fetching records", life: 3e3 });
|
|
4916
4916
|
} finally {
|
|
4917
4917
|
}
|
|
4918
4918
|
}, w = async () => {
|
|
4919
|
-
var
|
|
4919
|
+
var N, A;
|
|
4920
4920
|
try {
|
|
4921
|
-
const
|
|
4922
|
-
|
|
4923
|
-
} catch (
|
|
4924
|
-
(
|
|
4921
|
+
const D = await r.getRecord(e, t);
|
|
4922
|
+
D && D.response && (i.value = D.response, u.value = (N = D.response.entity.entityDefinition) == null ? void 0 : N.columns, J(), a.value = JSON.parse(JSON.stringify(D.response.result[0])), U());
|
|
4923
|
+
} catch (D) {
|
|
4924
|
+
(A = D == null ? void 0 : D.data) != null && A.errorMessage ? o.add({ severity: "error", summary: "Error", detail: D.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
|
|
4925
4925
|
} finally {
|
|
4926
4926
|
}
|
|
4927
4927
|
}, x = async () => {
|
|
4928
|
-
var
|
|
4928
|
+
var N, A, D;
|
|
4929
4929
|
try {
|
|
4930
4930
|
const ie = await r.getRelatedEntityRecord(e, t);
|
|
4931
|
-
ie && ie.response && (i.value = ie.response, u.value = (
|
|
4931
|
+
ie && ie.response && (i.value = ie.response, u.value = (A = (N = ie.response.entity) == null ? void 0 : N.entityDefinition) == null ? void 0 : A.columns, J(), a.value = JSON.parse(JSON.stringify(ie.response.result[0])), a.value.entityName && delete a.value.entityName, a.value.linkedEntities && delete a.value.linkedEntities, f.value = ie.response.result[0].linkedEntities, s.value = JSON.parse(JSON.stringify(a.value)), U());
|
|
4932
4932
|
} catch (ie) {
|
|
4933
|
-
(
|
|
4933
|
+
(D = ie == null ? void 0 : ie.data) != null && D.errorMessage ? o.add({ severity: "error", summary: "Error", detail: ie.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
|
|
4934
4934
|
} finally {
|
|
4935
4935
|
}
|
|
4936
|
-
}, $ = async (
|
|
4937
|
-
var
|
|
4936
|
+
}, $ = async (N) => {
|
|
4937
|
+
var A;
|
|
4938
4938
|
try {
|
|
4939
|
-
let
|
|
4940
|
-
|
|
4941
|
-
} catch (
|
|
4942
|
-
|
|
4939
|
+
let D = await r.addRecord(e, N);
|
|
4940
|
+
D && D.response ? (o.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, recordId: t })) : (A = D == null ? void 0 : D.data) != null && A.errorMessage ? o.add({ severity: "error", summary: "Error", detail: D.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while saving record", life: 3e3 });
|
|
4941
|
+
} catch (D) {
|
|
4942
|
+
D.validationErrors && (c.value = JSON.parse(JSON.stringify(D.validationErrors))), console.error("Error fetching entity:", D.errorMessage);
|
|
4943
4943
|
} finally {
|
|
4944
4944
|
}
|
|
4945
|
-
}, T = async (
|
|
4945
|
+
}, T = async (N, A) => {
|
|
4946
4946
|
try {
|
|
4947
|
-
let
|
|
4948
|
-
if (
|
|
4949
|
-
let ie = await r.saveRelatedEntityRecord(e,
|
|
4947
|
+
let D = await r.addRecord(e, A);
|
|
4948
|
+
if (D && D.response) {
|
|
4949
|
+
let ie = await r.saveRelatedEntityRecord(e, D.response.recordId, N.linkedEntities);
|
|
4950
4950
|
ie && ie.response && n("onSaveDialog", { entityName: e, recordId: t }), o.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 });
|
|
4951
4951
|
}
|
|
4952
|
-
} catch (
|
|
4953
|
-
|
|
4952
|
+
} catch (D) {
|
|
4953
|
+
D.validationErrors && (c.value = JSON.parse(JSON.stringify(D.validationErrors))), console.error("Error fetching entity:", D.errorMessage);
|
|
4954
4954
|
} finally {
|
|
4955
4955
|
}
|
|
4956
|
-
}, L = async (
|
|
4957
|
-
var
|
|
4956
|
+
}, L = async (N) => {
|
|
4957
|
+
var A;
|
|
4958
4958
|
try {
|
|
4959
|
-
const
|
|
4960
|
-
|
|
4961
|
-
} catch (
|
|
4962
|
-
|
|
4959
|
+
const D = await r.updateRecord(e, t, N);
|
|
4960
|
+
D && D.response ? (o.add({ severity: "success", summary: "Success", detail: "Record update successfuly", life: 3e3 }), d.value = !1, s.value = JSON.parse(JSON.stringify(a.value)), n("onSaveDialog", { entityName: e, recordId: t })) : (A = D == null ? void 0 : D.data) != null && A.errorMessage ? o.add({ severity: "error", summary: "Error", detail: D.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while updating record", life: 3e3 });
|
|
4961
|
+
} catch (D) {
|
|
4962
|
+
D.validationErrors && (c.value = JSON.parse(JSON.stringify(D.errvalidationErrorsors))), console.error("Error fetching entity:", D.errorMessage);
|
|
4963
4963
|
} finally {
|
|
4964
4964
|
}
|
|
4965
|
-
}, O = async (
|
|
4965
|
+
}, O = async (N, A, D) => {
|
|
4966
4966
|
try {
|
|
4967
|
-
let ie = await r.saveRelatedEntityRecord(
|
|
4968
|
-
ie && ie.response && (o.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, enityRecordId:
|
|
4967
|
+
let ie = await r.saveRelatedEntityRecord(N, A, D);
|
|
4968
|
+
ie && ie.response && (o.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, enityRecordId: A }));
|
|
4969
4969
|
} catch (ie) {
|
|
4970
4970
|
ie.validationErrors && (c.value = JSON.parse(JSON.stringify(ie.validationErrors))), console.error("Error fetching entity:", ie.errorMessage);
|
|
4971
4971
|
} finally {
|
|
4972
4972
|
}
|
|
4973
4973
|
}, C = () => {
|
|
4974
|
-
for (let
|
|
4975
|
-
let
|
|
4976
|
-
!
|
|
4977
|
-
}
|
|
4978
|
-
}, V = (
|
|
4979
|
-
let
|
|
4980
|
-
for (let
|
|
4981
|
-
let ie = u.value[
|
|
4982
|
-
if (
|
|
4983
|
-
|
|
4974
|
+
for (let N = 0; N < u.value.length; N++) {
|
|
4975
|
+
let A = u.value[N];
|
|
4976
|
+
!A.autoGenerated && !A.fieldType && (A.type == "BOOLEAN" ? A.defaultValue ? a.value[A.name] = A.defaultValue : a.value[A.name] = !1 : a.value[A.name] = "");
|
|
4977
|
+
}
|
|
4978
|
+
}, V = (N) => {
|
|
4979
|
+
let A = "";
|
|
4980
|
+
for (let D = 0; D < u.value.length; D++) {
|
|
4981
|
+
let ie = u.value[D];
|
|
4982
|
+
if (N == ie.name) {
|
|
4983
|
+
A = ie.type;
|
|
4984
4984
|
break;
|
|
4985
4985
|
}
|
|
4986
4986
|
}
|
|
4987
|
-
return
|
|
4987
|
+
return A;
|
|
4988
4988
|
}, W = () => {
|
|
4989
|
-
const
|
|
4990
|
-
return Object.entries(a.value).filter(([
|
|
4991
|
-
recordColumnName:
|
|
4989
|
+
const N = u.value.filter((D) => D.autoGenerated || D.fieldType).map((D) => D.name);
|
|
4990
|
+
return Object.entries(a.value).filter(([D]) => !N.includes(D)).map(([D, ie]) => ({
|
|
4991
|
+
recordColumnName: D,
|
|
4992
4992
|
recordColumnValue: ie,
|
|
4993
|
-
columnType: V(
|
|
4993
|
+
columnType: V(D)
|
|
4994
4994
|
}));
|
|
4995
|
-
}, B = async (
|
|
4995
|
+
}, B = async (N = {}) => {
|
|
4996
4996
|
try {
|
|
4997
4997
|
await l.value.validate(a.value, { abortEarly: !1 }), h({});
|
|
4998
|
-
} catch (
|
|
4999
|
-
const ie =
|
|
4998
|
+
} catch (D) {
|
|
4999
|
+
const ie = D.inner.reduce((ce, be) => (ce[be.path] || (ce[be.path] = { messages: [] }), ce[be.path].messages.push(...be.errors), ce), {}), Ae = Object.entries(ie).reduce((ce, [be, pe]) => (ce[be] = { messages: pe.messages }, ce), {});
|
|
5000
5000
|
h(Ae), o.add({ severity: "error", summary: "Error", detail: "Validation failed, see the errors", life: 3e3 });
|
|
5001
5001
|
return;
|
|
5002
5002
|
}
|
|
5003
|
-
const
|
|
5004
|
-
t ? await L(
|
|
5003
|
+
const A = { dataDefinitions: W() };
|
|
5004
|
+
t ? await L(A) : N.relationType == "MANY_TO_ONE" ? await T(N, A) : await $(A);
|
|
5005
5005
|
}, U = () => {
|
|
5006
5006
|
l.value = ni().shape(
|
|
5007
|
-
u.value.reduce((
|
|
5007
|
+
u.value.reduce((N, A) => (A.autoGenerated || A.fieldType || (N[A.name] = ti().nullable(!1).test({
|
|
5008
5008
|
name: "custom-validation",
|
|
5009
|
-
test: function(
|
|
5009
|
+
test: function(D) {
|
|
5010
5010
|
const ie = [];
|
|
5011
5011
|
let Ae = "";
|
|
5012
|
-
if (
|
|
5013
|
-
if (
|
|
5014
|
-
Ae = S(
|
|
5015
|
-
let ce =
|
|
5012
|
+
if (A.required && (!D || D.trim() === ""))
|
|
5013
|
+
if (A.validations) {
|
|
5014
|
+
Ae = S(A.validations, "VALIDATE_REQUIRED"), ie.push(Ae);
|
|
5015
|
+
let ce = _(A.validations, "VALIDATE_REQUIRED");
|
|
5016
5016
|
ce && (ce = "hint:" + ce, ie.push(ce));
|
|
5017
5017
|
} else
|
|
5018
|
-
Ae =
|
|
5018
|
+
Ae = A.displayName + " is required.", ie.push(Ae);
|
|
5019
5019
|
else {
|
|
5020
|
-
if (
|
|
5021
|
-
if (
|
|
5022
|
-
Ae = S(
|
|
5023
|
-
let ce =
|
|
5020
|
+
if (A.maxLength && D.length > A.maxLength)
|
|
5021
|
+
if (A.validations) {
|
|
5022
|
+
Ae = S(A.validations, "VALIDATE_MAXLENGTH"), ie.push(Ae);
|
|
5023
|
+
let ce = _(A.validations, "VALIDATE_MAXLENGTH");
|
|
5024
5024
|
ce && (ce = "hint:" + ce, ie.push(ce));
|
|
5025
5025
|
} else
|
|
5026
|
-
Ae =
|
|
5027
|
-
if (
|
|
5028
|
-
if (
|
|
5029
|
-
Ae = S(
|
|
5030
|
-
let ce =
|
|
5026
|
+
Ae = A.displayName + " cannot exceed from " + A.maxLength + " characters", ie.push(Ae);
|
|
5027
|
+
if (A.regxId && !new RegExp(I(A.validations, "VALIDATE_REGX")).test(D))
|
|
5028
|
+
if (A.validations) {
|
|
5029
|
+
Ae = S(A.validations, "VALIDATE_REGX"), ie.push(Ae);
|
|
5030
|
+
let ce = _(A.validations, "VALIDATE_REGX");
|
|
5031
5031
|
ce && (ce = "hint:" + ce, ie.push(ce));
|
|
5032
5032
|
} else
|
|
5033
|
-
Ae =
|
|
5033
|
+
Ae = A.displayName + " invalid format.", ie.push(Ae);
|
|
5034
5034
|
}
|
|
5035
5035
|
return ie.length > 0 ? this.createError({
|
|
5036
5036
|
message: ie
|
|
5037
5037
|
// This will return the array of errors
|
|
5038
5038
|
}) : !0;
|
|
5039
5039
|
}
|
|
5040
|
-
})),
|
|
5040
|
+
})), N), {})
|
|
5041
5041
|
);
|
|
5042
|
-
}, S = (
|
|
5043
|
-
for (let
|
|
5044
|
-
if (
|
|
5045
|
-
return
|
|
5046
|
-
}, I = (
|
|
5047
|
-
for (let
|
|
5048
|
-
if (
|
|
5049
|
-
return
|
|
5050
|
-
},
|
|
5051
|
-
for (let
|
|
5052
|
-
if (
|
|
5053
|
-
return
|
|
5054
|
-
}, P = (
|
|
5055
|
-
h({ ...g.value, [
|
|
5042
|
+
}, S = (N, A) => {
|
|
5043
|
+
for (let D = 0; D < N.length; D++)
|
|
5044
|
+
if (A == N[D].type)
|
|
5045
|
+
return N[D].message;
|
|
5046
|
+
}, I = (N, A) => {
|
|
5047
|
+
for (let D = 0; D < N.length; D++)
|
|
5048
|
+
if (A == N[D].type)
|
|
5049
|
+
return N[D].regx;
|
|
5050
|
+
}, _ = (N, A) => {
|
|
5051
|
+
for (let D = 0; D < N.length; D++)
|
|
5052
|
+
if (A == N[D].type)
|
|
5053
|
+
return N[D].hint;
|
|
5054
|
+
}, P = (N) => {
|
|
5055
|
+
h({ ...g.value, [N]: null }), d.value = !0;
|
|
5056
5056
|
}, z = () => {
|
|
5057
5057
|
d.value = !1;
|
|
5058
|
-
for (let
|
|
5059
|
-
a.value.hasOwnProperty(
|
|
5058
|
+
for (let N in a.value)
|
|
5059
|
+
a.value.hasOwnProperty(N) && h({ ...g.value, [N]: null });
|
|
5060
5060
|
a.value = JSON.parse(JSON.stringify(s.value));
|
|
5061
5061
|
}, J = () => {
|
|
5062
|
-
for (let
|
|
5063
|
-
const
|
|
5064
|
-
if (
|
|
5065
|
-
p.value =
|
|
5062
|
+
for (let N = 0; N < u.value.length; N++) {
|
|
5063
|
+
const A = u.value[N];
|
|
5064
|
+
if (A.primaryKey && A.primaryKey == !0) {
|
|
5065
|
+
p.value = A;
|
|
5066
5066
|
break;
|
|
5067
5067
|
}
|
|
5068
5068
|
}
|
|
@@ -5237,7 +5237,7 @@ const Ef = {
|
|
|
5237
5237
|
required: !0
|
|
5238
5238
|
},
|
|
5239
5239
|
recordId: {
|
|
5240
|
-
type:
|
|
5240
|
+
type: null,
|
|
5241
5241
|
default: null
|
|
5242
5242
|
}
|
|
5243
5243
|
}, {
|
|
@@ -5793,7 +5793,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
5793
5793
|
setup(e) {
|
|
5794
5794
|
const t = Ze(), n = e;
|
|
5795
5795
|
console.log("columnsToShow", n.columnsToShow);
|
|
5796
|
-
const o = un(), r = E(n.entityName || o.params.entityName), i = E({}), a = E(""), s = E(!1), u = E(!1), { items: l, headers: c, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: y, filterToSend: w, primarayKeyColumn: x, fullTextSearch: $, listingResponse: T, onFullTextSearch: L, getDatatypeByField: O, getColumnDatatype: C, onSort: V, onPage: W, onFilter: B, fetchEntityFilterData: U, fetchEntityByName: S, showEntityData: I } = ed(r.value),
|
|
5796
|
+
const o = un(), r = E(n.entityName || o.params.entityName), i = E({}), a = E(""), s = E(!1), u = E(!1), { items: l, headers: c, first: f, totalRecords: d, pageSize: p, loading: m, sortBy: g, sortDirection: h, operatorMap: y, filterToSend: w, primarayKeyColumn: x, fullTextSearch: $, listingResponse: T, onFullTextSearch: L, getDatatypeByField: O, getColumnDatatype: C, onSort: V, onPage: W, onFilter: B, fetchEntityFilterData: U, fetchEntityByName: S, showEntityData: I } = ed(r.value), _ = E();
|
|
5797
5797
|
let P = E(!1);
|
|
5798
5798
|
const z = (be) => {
|
|
5799
5799
|
i.value = be.reduce((pe, ke) => {
|
|
@@ -5822,11 +5822,11 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
5822
5822
|
}, {});
|
|
5823
5823
|
}, J = () => {
|
|
5824
5824
|
z(c.value), w.value = ce(i.value), B();
|
|
5825
|
-
},
|
|
5825
|
+
}, N = (be) => {
|
|
5826
5826
|
w.value = ce(i.value), B();
|
|
5827
|
-
},
|
|
5827
|
+
}, A = (be) => {
|
|
5828
5828
|
be ? a.value = be[x.value.name] : a.value = "", s.value = !s.value;
|
|
5829
|
-
},
|
|
5829
|
+
}, D = () => {
|
|
5830
5830
|
s.value = !1, U(!1);
|
|
5831
5831
|
}, ie = (be) => {
|
|
5832
5832
|
a.value = be[x.value.name], u.value = !0;
|
|
@@ -5890,7 +5890,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
5890
5890
|
icon: "pi pi-plus",
|
|
5891
5891
|
class: "mr-2",
|
|
5892
5892
|
severity: "success",
|
|
5893
|
-
onClick: pe[1] || (pe[1] = (Ve) =>
|
|
5893
|
+
onClick: pe[1] || (pe[1] = (Ve) => A())
|
|
5894
5894
|
})
|
|
5895
5895
|
]),
|
|
5896
5896
|
key: "1"
|
|
@@ -5901,7 +5901,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
5901
5901
|
value: Q(l),
|
|
5902
5902
|
loading: Q(m),
|
|
5903
5903
|
ref_key: "dt",
|
|
5904
|
-
ref:
|
|
5904
|
+
ref: _,
|
|
5905
5905
|
stripedRows: !0,
|
|
5906
5906
|
showGridlines: "",
|
|
5907
5907
|
rowHover: !0,
|
|
@@ -5918,7 +5918,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
5918
5918
|
scrollable: "",
|
|
5919
5919
|
onSort: Q(V),
|
|
5920
5920
|
onPage: Q(W),
|
|
5921
|
-
onFilter: pe[6] || (pe[6] = (Ve) =>
|
|
5921
|
+
onFilter: pe[6] || (pe[6] = (Ve) => N()),
|
|
5922
5922
|
size: "small",
|
|
5923
5923
|
paginatorTemplate: "FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown",
|
|
5924
5924
|
currentPageReportTemplate: "Showing {first} to {last} of {totalRecords} items"
|
|
@@ -6005,7 +6005,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
6005
6005
|
v("div", Qf, [
|
|
6006
6006
|
e.editable ? (b(), H(ke, {
|
|
6007
6007
|
key: 0,
|
|
6008
|
-
onClick: (Fe) =>
|
|
6008
|
+
onClick: (Fe) => A(Be),
|
|
6009
6009
|
icon: "pi pi-pencil",
|
|
6010
6010
|
severity: "success",
|
|
6011
6011
|
variant: "text",
|
|
@@ -6067,7 +6067,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
6067
6067
|
"onUpdate:showForm": pe[7] || (pe[7] = (Ve) => s.value = Ve),
|
|
6068
6068
|
entityName: Q(T).entityName,
|
|
6069
6069
|
recordId: a.value,
|
|
6070
|
-
onOnSaveDialog:
|
|
6070
|
+
onOnSaveDialog: D
|
|
6071
6071
|
}, null, 8, ["showForm", "entityName", "recordId"])) : M("", !0),
|
|
6072
6072
|
u.value ? (b(), H(Df, {
|
|
6073
6073
|
key: 1,
|
|
@@ -6298,7 +6298,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
6298
6298
|
], I = [
|
|
6299
6299
|
{ label: "Equals", value: "equals" },
|
|
6300
6300
|
{ label: "Not equals", value: "notEquals" }
|
|
6301
|
-
],
|
|
6301
|
+
], _ = [
|
|
6302
6302
|
{ label: "Date is", value: "dateIs" },
|
|
6303
6303
|
{ label: "Date is not", value: "dateIsNot" },
|
|
6304
6304
|
{ label: "Date is before", value: "dateBefore" },
|
|
@@ -6308,13 +6308,13 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
6308
6308
|
{ label: "DESC", value: -1 }
|
|
6309
6309
|
];
|
|
6310
6310
|
let z = [];
|
|
6311
|
-
const J = te(() => u.value.filter((oe) => oe.sortable)),
|
|
6311
|
+
const J = te(() => u.value.filter((oe) => oe.sortable)), N = te(() => u.value.filter((oe) => oe.filterable)), A = (oe) => u.value.filter((Y) => {
|
|
6312
6312
|
var Ie;
|
|
6313
6313
|
return Y.filterable ? ((Ie = d.value[oe]) == null ? void 0 : Ie.columnName) === Y.name ? !0 : !d.value.some((rt, Ve) => Ve !== oe && rt.columnName === Y.name) : !1;
|
|
6314
6314
|
}).map((Y) => ({
|
|
6315
6315
|
label: Y.name,
|
|
6316
6316
|
value: Y.field
|
|
6317
|
-
})),
|
|
6317
|
+
})), D = (oe) => {
|
|
6318
6318
|
let Y = "";
|
|
6319
6319
|
switch (ot(oe.columnName).toLowerCase()) {
|
|
6320
6320
|
case "string":
|
|
@@ -6344,7 +6344,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
6344
6344
|
z = S;
|
|
6345
6345
|
break;
|
|
6346
6346
|
case "date":
|
|
6347
|
-
z =
|
|
6347
|
+
z = _;
|
|
6348
6348
|
break;
|
|
6349
6349
|
case "bool":
|
|
6350
6350
|
case "boolean":
|
|
@@ -6484,13 +6484,13 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
6484
6484
|
K(Be, {
|
|
6485
6485
|
modelValue: me.columnName,
|
|
6486
6486
|
"onUpdate:modelValue": (qe) => me.columnName = qe,
|
|
6487
|
-
options:
|
|
6487
|
+
options: A($t),
|
|
6488
6488
|
optionLabel: "label",
|
|
6489
6489
|
placeholder: "Select column",
|
|
6490
6490
|
optionValue: "value",
|
|
6491
6491
|
highlightOnSelect: !1,
|
|
6492
6492
|
class: "w-full",
|
|
6493
|
-
onChange: (qe) =>
|
|
6493
|
+
onChange: (qe) => D(me)
|
|
6494
6494
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange"])
|
|
6495
6495
|
])
|
|
6496
6496
|
]),
|
|
@@ -6584,7 +6584,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
6584
6584
|
K(Xe, {
|
|
6585
6585
|
style: { width: "100px" },
|
|
6586
6586
|
label: "Add",
|
|
6587
|
-
disabled:
|
|
6587
|
+
disabled: N.value.length === d.value.length,
|
|
6588
6588
|
icon: "",
|
|
6589
6589
|
severity: "success",
|
|
6590
6590
|
onClick: ce
|
|
@@ -6901,7 +6901,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
6901
6901
|
K(V, { value: "0" }, {
|
|
6902
6902
|
default: ne(() => [
|
|
6903
6903
|
(b(!0), k(se, null, Oe(Q(l), (S, I) => {
|
|
6904
|
-
var
|
|
6904
|
+
var _;
|
|
6905
6905
|
return b(), k("div", {
|
|
6906
6906
|
key: I,
|
|
6907
6907
|
class: "mt-3"
|
|
@@ -6911,7 +6911,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
6911
6911
|
modelValue: Q(u)[S.name],
|
|
6912
6912
|
"onUpdate:modelValue": (P) => Q(u)[S.name] = P,
|
|
6913
6913
|
column: S,
|
|
6914
|
-
errors: (
|
|
6914
|
+
errors: (_ = Q(c)[S.name]) == null ? void 0 : _.messages,
|
|
6915
6915
|
onInput: Q(d)
|
|
6916
6916
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "column", "errors", "onInput"])) : M("", !0)
|
|
6917
6917
|
]);
|
|
@@ -7115,7 +7115,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
7115
7115
|
}, W = (S) => {
|
|
7116
7116
|
if (!u.value || u.value.length === 0)
|
|
7117
7117
|
return [];
|
|
7118
|
-
const I = u.value.find((
|
|
7118
|
+
const I = u.value.find((_) => _.entityName === S);
|
|
7119
7119
|
return I && I.list ? I.list : (console.log("No related entity found"), []);
|
|
7120
7120
|
};
|
|
7121
7121
|
return t({
|
|
@@ -7128,7 +7128,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
7128
7128
|
{ immediate: !0, deep: !0 }
|
|
7129
7129
|
), (S, I) => {
|
|
7130
7130
|
var Ae;
|
|
7131
|
-
const
|
|
7131
|
+
const _ = X("SplitterPanel"), P = X("Tab"), z = X("TabList"), J = X("TabPanel"), N = X("TabPanels"), A = X("Tabs"), D = X("Splitter"), ie = X("Button");
|
|
7132
7132
|
return S.$slots["list-item-display-360"] ? (b(), k("div", cm, [
|
|
7133
7133
|
fe(S.$slots, "header", {}, void 0, !0),
|
|
7134
7134
|
v("div", null, [
|
|
@@ -7147,14 +7147,14 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
7147
7147
|
fe(S.$slots, "footer", {}, void 0, !0)
|
|
7148
7148
|
])) : (b(), k(se, { key: 1 }, [
|
|
7149
7149
|
v("div", dm, [
|
|
7150
|
-
K(
|
|
7150
|
+
K(D, {
|
|
7151
7151
|
class: "flex-1",
|
|
7152
7152
|
layout: "horizontal",
|
|
7153
7153
|
gutterSize: 8,
|
|
7154
7154
|
size: 100
|
|
7155
7155
|
}, {
|
|
7156
7156
|
default: ne(() => [
|
|
7157
|
-
K(
|
|
7157
|
+
K(_, {
|
|
7158
7158
|
size: 20,
|
|
7159
7159
|
minSize: 10,
|
|
7160
7160
|
maxSize: 20
|
|
@@ -7188,13 +7188,13 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
7188
7188
|
]),
|
|
7189
7189
|
_: 1
|
|
7190
7190
|
}),
|
|
7191
|
-
K(
|
|
7191
|
+
K(_, {
|
|
7192
7192
|
size: 55,
|
|
7193
7193
|
minSize: 35,
|
|
7194
7194
|
style: { height: "100%" }
|
|
7195
7195
|
}, {
|
|
7196
7196
|
default: ne(() => [
|
|
7197
|
-
K(
|
|
7197
|
+
K(A, { value: "0" }, {
|
|
7198
7198
|
default: ne(() => [
|
|
7199
7199
|
K(z, null, {
|
|
7200
7200
|
default: ne(() => [
|
|
@@ -7213,7 +7213,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
|
|
|
7213
7213
|
]),
|
|
7214
7214
|
_: 1
|
|
7215
7215
|
}),
|
|
7216
|
-
K(
|
|
7216
|
+
K(N, null, {
|
|
7217
7217
|
default: ne(() => [
|
|
7218
7218
|
K(J, { value: "0" }, {
|
|
7219
7219
|
default: ne(() => [
|
|
@@ -7377,9 +7377,9 @@ function nr() {
|
|
|
7377
7377
|
const U = B.entity.entityDefinition.columns;
|
|
7378
7378
|
let S = {};
|
|
7379
7379
|
for (let I = 0; I < U.length; I++) {
|
|
7380
|
-
const
|
|
7381
|
-
if (
|
|
7382
|
-
S =
|
|
7380
|
+
const _ = U[I];
|
|
7381
|
+
if (_.primaryKey && _.primaryKey == !0) {
|
|
7382
|
+
S = _;
|
|
7383
7383
|
break;
|
|
7384
7384
|
}
|
|
7385
7385
|
}
|
|
@@ -7388,15 +7388,15 @@ function nr() {
|
|
|
7388
7388
|
const U = B.entity.entityDefinition.columns;
|
|
7389
7389
|
let S = {};
|
|
7390
7390
|
for (let I = 0; I < U.length; I++) {
|
|
7391
|
-
let
|
|
7392
|
-
|
|
7391
|
+
let _ = U[I];
|
|
7392
|
+
!_.autoGenerated && !_.fieldType && (_.type == "BOOLEAN" ? _.defaultValue ? S[_.name] = _.defaultValue : S[_.name] = !1 : S[_.name] = "");
|
|
7393
7393
|
}
|
|
7394
7394
|
return S;
|
|
7395
7395
|
}, g = (B, U) => {
|
|
7396
7396
|
let S = "";
|
|
7397
7397
|
const I = B.entity.entityDefinition.columns;
|
|
7398
|
-
for (let
|
|
7399
|
-
let P = I[
|
|
7398
|
+
for (let _ = 0; _ < I.length; _++) {
|
|
7399
|
+
let P = I[_];
|
|
7400
7400
|
if (U == P.name) {
|
|
7401
7401
|
S = P.type;
|
|
7402
7402
|
break;
|
|
@@ -7415,10 +7415,10 @@ function nr() {
|
|
|
7415
7415
|
return ni().shape(
|
|
7416
7416
|
B.reduce((S, I) => (I.autoGenerated || (S[I.name] = ti().nullable(!1).test({
|
|
7417
7417
|
name: "custom-validation",
|
|
7418
|
-
test: function(
|
|
7418
|
+
test: function(_) {
|
|
7419
7419
|
const P = [];
|
|
7420
7420
|
let z = "";
|
|
7421
|
-
if (I.required && (!
|
|
7421
|
+
if (I.required && (!_ || _.trim() === ""))
|
|
7422
7422
|
if (I.validations) {
|
|
7423
7423
|
z = w(I.validations, "VALIDATE_REQUIRED"), P.push(z);
|
|
7424
7424
|
let J = $(I.validations, "VALIDATE_REQUIRED");
|
|
@@ -7426,14 +7426,14 @@ function nr() {
|
|
|
7426
7426
|
} else
|
|
7427
7427
|
z = I.displayName + " is required.", P.push(z);
|
|
7428
7428
|
else {
|
|
7429
|
-
if (I.maxLength &&
|
|
7429
|
+
if (I.maxLength && _.length > I.maxLength)
|
|
7430
7430
|
if (I.validations) {
|
|
7431
7431
|
z = w(I.validations, "VALIDATE_MAXLENGTH"), P.push(z);
|
|
7432
7432
|
let J = $(I.validations, "VALIDATE_MAXLENGTH");
|
|
7433
7433
|
J && (J = "hint:" + J, P.push(J));
|
|
7434
7434
|
} else
|
|
7435
7435
|
z = I.displayName + " cannot exceed from " + I.maxLength + " characters", P.push(z);
|
|
7436
|
-
if (I.regxId && !new RegExp(x(I.validations, "VALIDATE_REGX")).test(
|
|
7436
|
+
if (I.regxId && !new RegExp(x(I.validations, "VALIDATE_REGX")).test(_))
|
|
7437
7437
|
if (I.validations) {
|
|
7438
7438
|
z = w(I.validations, "VALIDATE_REGX"), P.push(z);
|
|
7439
7439
|
let J = $(I.validations, "VALIDATE_REGX");
|
|
@@ -7466,8 +7466,8 @@ function nr() {
|
|
|
7466
7466
|
validate: !0
|
|
7467
7467
|
};
|
|
7468
7468
|
} catch (S) {
|
|
7469
|
-
const I = S.inner.reduce((z, J) => (z[J.path] || (z[J.path] = { messages: [] }), z[J.path].messages.push(...J.errors), z), {}),
|
|
7470
|
-
return n(
|
|
7469
|
+
const I = S.inner.reduce((z, J) => (z[J.path] || (z[J.path] = { messages: [] }), z[J.path].messages.push(...J.errors), z), {}), _ = Object.entries(I).reduce((z, [J, N]) => (z[J] = { messages: N.messages }, z), {});
|
|
7470
|
+
return n(_), {
|
|
7471
7471
|
validate: !1,
|
|
7472
7472
|
errors: t.value
|
|
7473
7473
|
};
|
|
@@ -7489,16 +7489,16 @@ function nr() {
|
|
|
7489
7489
|
}, C = (B) => {
|
|
7490
7490
|
const U = ["==", "!=", "<=", ">=", "<", ">"];
|
|
7491
7491
|
return B.split("&&").map((I) => {
|
|
7492
|
-
let
|
|
7493
|
-
const J = U.find((
|
|
7492
|
+
let _, P, z;
|
|
7493
|
+
const J = U.find((A) => I.includes(A));
|
|
7494
7494
|
if (J)
|
|
7495
|
-
[
|
|
7495
|
+
[_, z] = I.split(J).map((A) => A.trim()), P = J;
|
|
7496
7496
|
else
|
|
7497
7497
|
return console.warn("No valid operator found in filter:", I), null;
|
|
7498
|
-
const
|
|
7499
|
-
return console.log("Parsed filter:", { field:
|
|
7500
|
-
columnName:
|
|
7501
|
-
value:
|
|
7498
|
+
const N = (W == null ? void 0 : W(z)) ?? z;
|
|
7499
|
+
return console.log("Parsed filter:", { field: _, operator: P, value: N }), {
|
|
7500
|
+
columnName: _,
|
|
7501
|
+
value: N,
|
|
7502
7502
|
operator: V(P)
|
|
7503
7503
|
};
|
|
7504
7504
|
}).filter(Boolean);
|
|
@@ -7984,8 +7984,8 @@ const qm = /* @__PURE__ */ tt(Hm, [["render", Wm]]), Km = { class: "my-2" }, Gm
|
|
|
7984
7984
|
e.sortCallback();
|
|
7985
7985
|
};
|
|
7986
7986
|
return (O, C) => {
|
|
7987
|
-
const V = X("Select"), W = X("Divider"), B = X("InputNumber"), U = X("DatePicker"), S = X("InputText"), I = X("Button"),
|
|
7988
|
-
return b(), H(
|
|
7987
|
+
const V = X("Select"), W = X("Divider"), B = X("InputNumber"), U = X("DatePicker"), S = X("InputText"), I = X("Button"), _ = X("Drawer");
|
|
7988
|
+
return b(), H(_, {
|
|
7989
7989
|
visible: o.value,
|
|
7990
7990
|
"onUpdate:visible": C[4] || (C[4] = (P) => o.value = P),
|
|
7991
7991
|
header: "Sorting and Filter",
|
|
@@ -9002,10 +9002,10 @@ An({
|
|
|
9002
9002
|
ue.some((he) => ee >= he ? (Object.assign(le, e.breakpoints[he]), le.i18n && Object.assign(le.i18n, f.value.i18n, e.breakpoints[he].i18n), !0) : !1), Object.assign(d, f.value, le);
|
|
9003
9003
|
}
|
|
9004
9004
|
const S = vr(() => {
|
|
9005
|
-
U(),
|
|
9006
|
-
}), I = Cr(/* @__PURE__ */ new Set()),
|
|
9005
|
+
U(), A(), N();
|
|
9006
|
+
}), I = Cr(/* @__PURE__ */ new Set()), _ = E([]);
|
|
9007
9007
|
function P({ widthMultiplier: q, heightMultiplier: ee }) {
|
|
9008
|
-
|
|
9008
|
+
_.value = a.map((ue) => {
|
|
9009
9009
|
var le;
|
|
9010
9010
|
const he = (le = ue.exposed) === null || le === void 0 ? void 0 : le.getBoundingRect();
|
|
9011
9011
|
return {
|
|
@@ -9026,18 +9026,18 @@ An({
|
|
|
9026
9026
|
height: le.height * ee
|
|
9027
9027
|
};
|
|
9028
9028
|
}
|
|
9029
|
-
function
|
|
9029
|
+
function N() {
|
|
9030
9030
|
if (!l.value)
|
|
9031
9031
|
return;
|
|
9032
9032
|
const q = Fg(I);
|
|
9033
9033
|
if (J(q), P(q), W.value)
|
|
9034
|
-
c.value = Og(
|
|
9034
|
+
c.value = Og(_.value.map((ee) => ee[B.value]));
|
|
9035
9035
|
else {
|
|
9036
9036
|
const ee = Number(d.itemsToShow), ue = (ee - 1) * d.gap;
|
|
9037
9037
|
c.value = (z.value[B.value] - ue) / ee;
|
|
9038
9038
|
}
|
|
9039
9039
|
}
|
|
9040
|
-
function
|
|
9040
|
+
function A() {
|
|
9041
9041
|
!d.wrapAround && s.value > 0 && (p.value = jt({
|
|
9042
9042
|
val: p.value,
|
|
9043
9043
|
max: y.value,
|
|
@@ -9048,31 +9048,31 @@ An({
|
|
|
9048
9048
|
min: 1
|
|
9049
9049
|
}));
|
|
9050
9050
|
}
|
|
9051
|
-
const
|
|
9052
|
-
Io(() =>
|
|
9053
|
-
|
|
9051
|
+
const D = te(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
|
|
9052
|
+
Io(() => A()), Io(() => {
|
|
9053
|
+
N();
|
|
9054
9054
|
});
|
|
9055
9055
|
let ie;
|
|
9056
9056
|
const Ae = (q) => {
|
|
9057
9057
|
const ee = q.target;
|
|
9058
|
-
if (!(!(ee != null && ee.contains(u.value)) || Array.isArray(
|
|
9058
|
+
if (!(!(ee != null && ee.contains(u.value)) || Array.isArray(D.value) && D.value.includes(q.animationName)) && (I.add(ee), !ie)) {
|
|
9059
9059
|
const ue = () => {
|
|
9060
9060
|
ie = requestAnimationFrame(() => {
|
|
9061
|
-
|
|
9061
|
+
N(), ue();
|
|
9062
9062
|
});
|
|
9063
9063
|
};
|
|
9064
9064
|
ue();
|
|
9065
9065
|
}
|
|
9066
9066
|
}, ce = (q) => {
|
|
9067
9067
|
const ee = q.target;
|
|
9068
|
-
ee && I.delete(ee), ie && I.size === 0 && (cancelAnimationFrame(ie),
|
|
9068
|
+
ee && I.delete(ee), ie && I.size === 0 && (cancelAnimationFrame(ie), N());
|
|
9069
9069
|
}, be = E(!1);
|
|
9070
9070
|
typeof document < "u" && Io(() => {
|
|
9071
|
-
be.value &&
|
|
9071
|
+
be.value && D.value !== !1 ? (document.addEventListener("animationstart", Ae), document.addEventListener("animationend", ce)) : (document.removeEventListener("animationstart", Ae), document.removeEventListener("animationend", ce));
|
|
9072
9072
|
}), ze(() => {
|
|
9073
9073
|
be.value = !0, U(), Fe(), u.value && (T = new ResizeObserver(S), T.observe(u.value)), n("init");
|
|
9074
9074
|
}), hs(() => {
|
|
9075
|
-
be.value = !1, i.cleanup(), $ && clearTimeout($), ie && cancelAnimationFrame(ie), x && clearInterval(x), T && (T.disconnect(), T = null), typeof document < "u" && Ie(), u.value && (u.value.removeEventListener("transitionend",
|
|
9075
|
+
be.value = !1, i.cleanup(), $ && clearTimeout($), ie && cancelAnimationFrame(ie), x && clearInterval(x), T && (T.disconnect(), T = null), typeof document < "u" && Ie(), u.value && (u.value.removeEventListener("transitionend", N), u.value.removeEventListener("animationiteration", N));
|
|
9076
9076
|
});
|
|
9077
9077
|
let pe = !1;
|
|
9078
9078
|
const ke = { x: 0, y: 0 }, Se = Nt({ x: 0, y: 0 }), pt = E(!1), ot = E(!1), Et = () => {
|
|
@@ -9178,7 +9178,7 @@ An({
|
|
|
9178
9178
|
lt(p.value - d.itemsToScroll, q);
|
|
9179
9179
|
}
|
|
9180
9180
|
function Qt() {
|
|
9181
|
-
U(),
|
|
9181
|
+
U(), A(), N(), Ft();
|
|
9182
9182
|
}
|
|
9183
9183
|
$e(() => [f.value, e.breakpoints], () => U(), { deep: !0 }), $e(() => e.autoplay, () => Ft());
|
|
9184
9184
|
const cn = $e(() => e.modelValue, (q) => {
|
|
@@ -9195,12 +9195,12 @@ An({
|
|
|
9195
9195
|
before: Math.max(0, ue),
|
|
9196
9196
|
after: Math.max(0, le)
|
|
9197
9197
|
};
|
|
9198
|
-
}), $t = te(() => me.value.before ? W.value ?
|
|
9198
|
+
}), $t = te(() => me.value.before ? W.value ? _.value.slice(-1 * me.value.before).reduce((q, ee) => q + ee[B.value] + d.gap, 0) * -1 : me.value.before * L.value * -1 : 0), qe = te(() => {
|
|
9199
9199
|
var q;
|
|
9200
9200
|
if (W.value) {
|
|
9201
9201
|
const ee = (p.value % a.length + a.length) % a.length;
|
|
9202
9202
|
return Nr({
|
|
9203
|
-
slideSize: (q =
|
|
9203
|
+
slideSize: (q = _.value[ee]) === null || q === void 0 ? void 0 : q[B.value],
|
|
9204
9204
|
viewportSize: z.value[B.value],
|
|
9205
9205
|
align: d.snapAlign
|
|
9206
9206
|
});
|
|
@@ -9212,8 +9212,8 @@ An({
|
|
|
9212
9212
|
}), R = te(() => {
|
|
9213
9213
|
let q = 0;
|
|
9214
9214
|
if (W.value) {
|
|
9215
|
-
if (p.value < 0 ? q =
|
|
9216
|
-
const ee =
|
|
9215
|
+
if (p.value < 0 ? q = _.value.slice(p.value).reduce((ee, ue) => ee + ue[B.value] + d.gap, 0) * -1 : q = _.value.slice(0, p.value).reduce((ee, ue) => ee + ue[B.value] + d.gap, 0), q -= qe.value, !d.wrapAround) {
|
|
9216
|
+
const ee = _.value.reduce((ue, le) => ue + le[B.value] + d.gap, 0) - z.value[B.value] - d.gap;
|
|
9217
9217
|
q = jt({
|
|
9218
9218
|
val: q,
|
|
9219
9219
|
max: ee,
|
|
@@ -9255,16 +9255,16 @@ An({
|
|
|
9255
9255
|
const Me = Math.abs(R.value + $t.value);
|
|
9256
9256
|
for (; he <= Me; ) {
|
|
9257
9257
|
const nt = (De % a.length + a.length) % a.length;
|
|
9258
|
-
he += ((q =
|
|
9258
|
+
he += ((q = _.value[nt]) === null || q === void 0 ? void 0 : q[B.value]) + d.gap, De++;
|
|
9259
9259
|
}
|
|
9260
9260
|
ue = De - 1;
|
|
9261
9261
|
}
|
|
9262
9262
|
let le = 0;
|
|
9263
9263
|
{
|
|
9264
9264
|
let he = ue, De = 0;
|
|
9265
|
-
for (he < 0 ? De =
|
|
9265
|
+
for (he < 0 ? De = _.value.slice(0, he).reduce((Me, nt) => Me + nt[B.value] + d.gap, 0) - Math.abs(R.value + $t.value) : De = _.value.slice(0, he).reduce((Me, nt) => Me + nt[B.value] + d.gap, 0) - Math.abs(R.value); De < z.value[B.value]; ) {
|
|
9266
9266
|
const Me = (he % a.length + a.length) % a.length;
|
|
9267
|
-
De += ((ee =
|
|
9267
|
+
De += ((ee = _.value[Me]) === null || ee === void 0 ? void 0 : ee[B.value]) + d.gap, he++;
|
|
9268
9268
|
}
|
|
9269
9269
|
le = he - 1;
|
|
9270
9270
|
}
|
|
@@ -9279,7 +9279,7 @@ An({
|
|
|
9279
9279
|
let ue = R.value + ee;
|
|
9280
9280
|
if (!d.wrapAround && d.preventExcessiveDragging) {
|
|
9281
9281
|
let le = 0;
|
|
9282
|
-
W.value ? le =
|
|
9282
|
+
W.value ? le = _.value.reduce((Me, nt) => Me + nt[B.value], 0) : le = (s.value - Number(d.itemsToShow)) * L.value;
|
|
9283
9283
|
const he = C.value ? 0 : -1 * le, De = C.value ? le : 0;
|
|
9284
9284
|
ue = jt({
|
|
9285
9285
|
val: ue,
|
|
@@ -9328,8 +9328,8 @@ An({
|
|
|
9328
9328
|
restartCarousel: Qt,
|
|
9329
9329
|
slideTo: lt,
|
|
9330
9330
|
updateBreakpointsConfig: U,
|
|
9331
|
-
updateSlideSize:
|
|
9332
|
-
updateSlidesData:
|
|
9331
|
+
updateSlideSize: N,
|
|
9332
|
+
updateSlidesData: A
|
|
9333
9333
|
}), () => {
|
|
9334
9334
|
var q;
|
|
9335
9335
|
const ee = t.default || t.slides, ue = (ee == null ? void 0 : ee(de)) || [], { before: le, after: he } = me.value, De = sa({
|
|
@@ -9704,7 +9704,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9704
9704
|
}, T = (S) => {
|
|
9705
9705
|
u.value = S, c.value = y.state.data.filters ? y.state.data.filters : c.value, L(c.value);
|
|
9706
9706
|
}, L = async (S) => {
|
|
9707
|
-
var I,
|
|
9707
|
+
var I, _;
|
|
9708
9708
|
console.log("entity state filter", y);
|
|
9709
9709
|
try {
|
|
9710
9710
|
const P = {
|
|
@@ -9718,7 +9718,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9718
9718
|
};
|
|
9719
9719
|
o.fetchParentEntities && (P.fetchParentEntities = o.fetchParentEntities), o.fetchChildEntities !== void 0 && (P.fetchChildEntities = o.fetchChildEntities), o.relatedEntities && (P.relatedEntities = o.relatedEntities), o.fetchList && (P.fetchList = o.fetchList);
|
|
9720
9720
|
const z = await i.searchEntityRecords(o.entityName, P);
|
|
9721
|
-
z && z.response ? (y.setEntity(z.response), p.value = ((
|
|
9721
|
+
z && z.response ? (y.setEntity(z.response), p.value = ((_ = (I = y == null ? void 0 : y.state) == null ? void 0 : I.data) == null ? void 0 : _.presets) || []) : console.error("Error fetching entity data:", z);
|
|
9722
9722
|
} catch {
|
|
9723
9723
|
}
|
|
9724
9724
|
}, O = async () => {
|
|
@@ -9735,8 +9735,8 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9735
9735
|
console.log("filter data in unordered", S);
|
|
9736
9736
|
},
|
|
9737
9737
|
addToCurrentList: (S) => {
|
|
9738
|
-
var I,
|
|
9739
|
-
(
|
|
9738
|
+
var I, _;
|
|
9739
|
+
(_ = (I = y == null ? void 0 : y.state) == null ? void 0 : I.data) != null && _.result && y.state.data.result.push(S);
|
|
9740
9740
|
},
|
|
9741
9741
|
deleteFromCurrentList: (S) => {
|
|
9742
9742
|
const I = y.state.data.result.indexOf(S);
|
|
@@ -9749,7 +9749,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9749
9749
|
}), $e(
|
|
9750
9750
|
() => r.globalConfigs.appId,
|
|
9751
9751
|
async (S) => {
|
|
9752
|
-
var I,
|
|
9752
|
+
var I, _;
|
|
9753
9753
|
if (S) {
|
|
9754
9754
|
if (o.linkedEntity && o.linkedEntity.length > 0)
|
|
9755
9755
|
y.setEntity(o.linkedEntity);
|
|
@@ -9757,7 +9757,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9757
9757
|
const P = {};
|
|
9758
9758
|
o.fetchParentEntities !== void 0 && (P.fetchParentEntities = o.fetchParentEntities), o.fetchChildEntities !== void 0 && (P.fetchChildEntities = o.fetchChildEntities), o.relatedEntities && (P.relatedEntities = o.relatedEntities), o.fetchList && (P.fetchList = o.fetchList);
|
|
9759
9759
|
const z = await y.getEntity(o.entityName, P);
|
|
9760
|
-
p.value = ((
|
|
9760
|
+
p.value = ((_ = (I = z == null ? void 0 : z.response) == null ? void 0 : I.entity) == null ? void 0 : _.presets) || [], console.log("Fetched presets data:", p.value), y.setEntity(z.success ? z.response : { result: [] });
|
|
9761
9761
|
}
|
|
9762
9762
|
}
|
|
9763
9763
|
},
|
|
@@ -9768,7 +9768,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9768
9768
|
y.state.data = I || {};
|
|
9769
9769
|
};
|
|
9770
9770
|
return (S, I) => {
|
|
9771
|
-
var
|
|
9771
|
+
var _, P, z;
|
|
9772
9772
|
return m.value ? (b(), k("div", ae({ key: 0 }, S.$attrs, { class: "flex flex-col" }), [
|
|
9773
9773
|
fe(S.$slots, "header", {}, void 0, !0),
|
|
9774
9774
|
S.$slots["list-item-display"] ? (b(), k(se, { key: 0 }, [
|
|
@@ -9791,7 +9791,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9791
9791
|
e.showPresets ? (b(), k("div", Mg, [
|
|
9792
9792
|
(b(!0), k(se, null, Oe(p.value, (J) => (b(), k("button", {
|
|
9793
9793
|
key: J,
|
|
9794
|
-
onClick: (
|
|
9794
|
+
onClick: (N) => {
|
|
9795
9795
|
g.value = J.name, U(J.name);
|
|
9796
9796
|
},
|
|
9797
9797
|
class: ye(["bg-blue-100 text-blue-700 px-4 py-2 rounded-full text-sm", [
|
|
@@ -9803,7 +9803,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9803
9803
|
v("div", {
|
|
9804
9804
|
class: ye(["flex flex-wrap", [o.decoration === "tiles" ? "" : "flex-col", `gap-${o.gap}`, o.scrollHeight ? `overflow-y-auto h-[${o.scrollHeight}]` : "", o.justifyContent ? `justify-${o.justifyContent}` : "justify-center"]])
|
|
9805
9805
|
}, [
|
|
9806
|
-
(b(!0), k(se, null, Oe(e.linkedEntity && e.linkedEntity.length > 0 ? e.linkedEntity : ((z = (P = (
|
|
9806
|
+
(b(!0), k(se, null, Oe(e.linkedEntity && e.linkedEntity.length > 0 ? e.linkedEntity : ((z = (P = (_ = Q(y)) == null ? void 0 : _.state) == null ? void 0 : P.data) == null ? void 0 : z.result) || [], (J) => fe(S.$slots, "list-item-display", Yt({
|
|
9807
9807
|
item: J,
|
|
9808
9808
|
class: e.listItemClass,
|
|
9809
9809
|
[e.variable || ""]: J
|
|
@@ -9850,7 +9850,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9850
9850
|
e.showPresets ? (b(), k("div", Qg, [
|
|
9851
9851
|
(b(!0), k(se, null, Oe(p.value, (J) => (b(), k("button", {
|
|
9852
9852
|
key: J,
|
|
9853
|
-
onClick: (
|
|
9853
|
+
onClick: (N) => {
|
|
9854
9854
|
g.value = J.name, U(J.name);
|
|
9855
9855
|
},
|
|
9856
9856
|
class: ye(["bg-blue-100 text-blue-700 px-4 py-2 rounded-full text-sm", [
|
|
@@ -9859,7 +9859,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
9859
9859
|
]])
|
|
9860
9860
|
}, Z(J.name), 11, Zg))), 128))
|
|
9861
9861
|
])) : M("", !0),
|
|
9862
|
-
(b(!0), k(se, null, Oe(d.value, (J,
|
|
9862
|
+
(b(!0), k(se, null, Oe(d.value, (J, N) => (b(), k("div", { key: N }, [
|
|
9863
9863
|
(b(), H(Pe(e.listItemDisplay != null && e.listItemDisplay != "" ? e.listItemDisplay : Cg), ae({
|
|
9864
9864
|
key: J,
|
|
9865
9865
|
preFiltered: o.preFiltered,
|
|
@@ -10609,7 +10609,7 @@ var Ot = {
|
|
|
10609
10609
|
const { preset: d, options: p } = t;
|
|
10610
10610
|
let m, g, h, y, w, x, $;
|
|
10611
10611
|
if (Te(d) && p.transform !== "strict") {
|
|
10612
|
-
const { primitive: T, semantic: L, extend: O } = d, C = L || {}, { colorScheme: V } = C, W = Mt(C, ["colorScheme"]), B = O || {}, { colorScheme: U } = B, S = Mt(B, ["colorScheme"]), I = V || {}, { dark:
|
|
10612
|
+
const { primitive: T, semantic: L, extend: O } = d, C = L || {}, { colorScheme: V } = C, W = Mt(C, ["colorScheme"]), B = O || {}, { colorScheme: U } = B, S = Mt(B, ["colorScheme"]), I = V || {}, { dark: _ } = I, P = Mt(I, ["dark"]), z = U || {}, { dark: J } = z, N = Mt(z, ["dark"]), A = Te(T) ? this._toVariables({ primitive: T }, p) : {}, D = Te(W) ? this._toVariables({ semantic: W }, p) : {}, ie = Te(P) ? this._toVariables({ light: P }, p) : {}, Ae = Te(_) ? this._toVariables({ dark: _ }, p) : {}, ce = Te(S) ? this._toVariables({ semantic: S }, p) : {}, be = Te(N) ? this._toVariables({ light: N }, p) : {}, pe = Te(J) ? this._toVariables({ dark: J }, p) : {}, [ke, Se] = [(i = A.declarations) != null ? i : "", A.tokens], [pt, ot] = [(a = D.declarations) != null ? a : "", D.tokens || []], [Et, ht] = [(s = ie.declarations) != null ? s : "", ie.tokens || []], [oe, Y] = [(u = Ae.declarations) != null ? u : "", Ae.tokens || []], [Ie, rt] = [(l = ce.declarations) != null ? l : "", ce.tokens || []], [Ve, Be] = [(c = be.declarations) != null ? c : "", be.tokens || []], [Fe, We] = [(f = pe.declarations) != null ? f : "", pe.tokens || []];
|
|
10613
10613
|
m = this.transformCSS(e, ke, "light", "variable", p, o, r), g = Se;
|
|
10614
10614
|
const Ft = this.transformCSS(e, `${pt}${Et}`, "light", "variable", p, o, r), Xe = this.transformCSS(e, `${oe}`, "dark", "variable", p, o, r);
|
|
10615
10615
|
h = `${Ft}${Xe}`, y = [.../* @__PURE__ */ new Set([...ot, ...ht, ...Y])];
|
|
@@ -10636,8 +10636,8 @@ var Ot = {
|
|
|
10636
10636
|
var s, u, l;
|
|
10637
10637
|
let c, f, d;
|
|
10638
10638
|
if (Te(t) && n.transform !== "strict") {
|
|
10639
|
-
const p = e.replace("-directive", ""), m = t, { colorScheme: g, extend: h, css: y } = m, w = Mt(m, ["colorScheme", "extend", "css"]), x = h || {}, { colorScheme: $ } = x, T = Mt(x, ["colorScheme"]), L = g || {}, { dark: O } = L, C = Mt(L, ["dark"]), V = $ || {}, { dark: W } = V, B = Mt(V, ["dark"]), U = Te(w) ? this._toVariables({ [p]: Ue(Ue({}, w), T) }, n) : {}, S = Te(C) ? this._toVariables({ [p]: Ue(Ue({}, C), B) }, n) : {}, I = Te(O) ? this._toVariables({ [p]: Ue(Ue({}, O), W) }, n) : {}, [
|
|
10640
|
-
c = `${
|
|
10639
|
+
const p = e.replace("-directive", ""), m = t, { colorScheme: g, extend: h, css: y } = m, w = Mt(m, ["colorScheme", "extend", "css"]), x = h || {}, { colorScheme: $ } = x, T = Mt(x, ["colorScheme"]), L = g || {}, { dark: O } = L, C = Mt(L, ["dark"]), V = $ || {}, { dark: W } = V, B = Mt(V, ["dark"]), U = Te(w) ? this._toVariables({ [p]: Ue(Ue({}, w), T) }, n) : {}, S = Te(C) ? this._toVariables({ [p]: Ue(Ue({}, C), B) }, n) : {}, I = Te(O) ? this._toVariables({ [p]: Ue(Ue({}, O), W) }, n) : {}, [_, P] = [(s = U.declarations) != null ? s : "", U.tokens || []], [z, J] = [(u = S.declarations) != null ? u : "", S.tokens || []], [N, A] = [(l = I.declarations) != null ? l : "", I.tokens || []], D = this.transformCSS(p, `${_}${z}`, "light", "variable", n, r, i, a), ie = this.transformCSS(p, N, "dark", "variable", n, r, i, a);
|
|
10640
|
+
c = `${D}${ie}`, f = [.../* @__PURE__ */ new Set([...P, ...J, ...A])], d = kt(y, { dt: Jn });
|
|
10641
10641
|
}
|
|
10642
10642
|
return {
|
|
10643
10643
|
css: c,
|
|
@@ -10939,21 +10939,21 @@ function lb(e) {
|
|
|
10939
10939
|
var ub = 0;
|
|
10940
10940
|
function cb(e) {
|
|
10941
10941
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = E(!1), o = E(e), r = E(null), i = si() ? window.document : void 0, a = t.document, s = a === void 0 ? i : a, u = t.immediate, l = u === void 0 ? !0 : u, c = t.manual, f = c === void 0 ? !1 : c, d = t.name, p = d === void 0 ? "style_".concat(++ub) : d, m = t.id, g = m === void 0 ? void 0 : m, h = t.media, y = h === void 0 ? void 0 : h, w = t.nonce, x = w === void 0 ? void 0 : w, $ = t.first, T = $ === void 0 ? !1 : $, L = t.onMounted, O = L === void 0 ? void 0 : L, C = t.onUpdated, V = C === void 0 ? void 0 : C, W = t.onLoad, B = W === void 0 ? void 0 : W, U = t.props, S = U === void 0 ? {} : U, I = function() {
|
|
10942
|
-
},
|
|
10943
|
-
var
|
|
10942
|
+
}, _ = function(J) {
|
|
10943
|
+
var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
10944
10944
|
if (s) {
|
|
10945
|
-
var
|
|
10946
|
-
r.value = s.querySelector('style[data-primevue-style-id="'.concat(
|
|
10945
|
+
var A = ba(ba({}, S), N), D = A.name || p, ie = A.id || g, Ae = A.nonce || x;
|
|
10946
|
+
r.value = s.querySelector('style[data-primevue-style-id="'.concat(D, '"]')) || s.getElementById(ie) || s.createElement("style"), r.value.isConnected || (o.value = J || e, jo(r.value, {
|
|
10947
10947
|
type: "text/css",
|
|
10948
10948
|
id: ie,
|
|
10949
10949
|
media: y,
|
|
10950
10950
|
nonce: Ae
|
|
10951
|
-
}), T ? s.head.prepend(r.value) : s.head.appendChild(r.value), Kh(r.value, "data-primevue-style-id",
|
|
10951
|
+
}), T ? s.head.prepend(r.value) : s.head.appendChild(r.value), Kh(r.value, "data-primevue-style-id", D), jo(r.value, A), r.value.onload = function(ce) {
|
|
10952
10952
|
return B == null ? void 0 : B(ce, {
|
|
10953
|
-
name:
|
|
10953
|
+
name: D
|
|
10954
10954
|
});
|
|
10955
|
-
}, O == null || O(
|
|
10956
|
-
r.value.textContent = ce, V == null || V(
|
|
10955
|
+
}, O == null || O(D)), !n.value && (I = $e(o, function(ce) {
|
|
10956
|
+
r.value.textContent = ce, V == null || V(D);
|
|
10957
10957
|
}, {
|
|
10958
10958
|
immediate: !0
|
|
10959
10959
|
}), n.value = !0);
|
|
@@ -10961,13 +10961,13 @@ function cb(e) {
|
|
|
10961
10961
|
}, P = function() {
|
|
10962
10962
|
!s || !n.value || (I(), Hh(r.value) && s.head.removeChild(r.value), n.value = !1);
|
|
10963
10963
|
};
|
|
10964
|
-
return l && !f && lb(
|
|
10964
|
+
return l && !f && lb(_), {
|
|
10965
10965
|
id: g,
|
|
10966
10966
|
name: p,
|
|
10967
10967
|
el: r,
|
|
10968
10968
|
css: o,
|
|
10969
10969
|
unload: P,
|
|
10970
|
-
load:
|
|
10970
|
+
load: _,
|
|
10971
10971
|
isLoaded: ms(n)
|
|
10972
10972
|
};
|
|
10973
10973
|
}
|
|
@@ -13447,27 +13447,27 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13447
13447
|
setup(e, { expose: t, emit: n }) {
|
|
13448
13448
|
const o = Ze(), r = new Ct(), i = n, a = e, s = E("id"), u = E(1), l = E(25), c = E(0), f = E(null), d = E([]), p = E([]), m = E(!0), g = E(null), { hasMatchingRoleAndPermissions: h } = xn(), y = nr();
|
|
13449
13449
|
sn("entityObject", y);
|
|
13450
|
-
const w = E(null), x = (
|
|
13450
|
+
const w = E(null), x = (_) => {
|
|
13451
13451
|
const P = w.value;
|
|
13452
|
-
P && (P.scrollLeft +=
|
|
13452
|
+
P && (P.scrollLeft += _ * 266);
|
|
13453
13453
|
};
|
|
13454
13454
|
ze(async () => {
|
|
13455
13455
|
m.value = await h(a.roles, a.permissions), console.log("props entitylist", a.preFiltered), a.preFiltered && V();
|
|
13456
|
-
}), a.linkedEntity ? $e(() => a.linkedEntity, (
|
|
13457
|
-
|
|
13458
|
-
}, { immediate: !0 }) : $e(() => y.state.data, (
|
|
13459
|
-
|
|
13456
|
+
}), a.linkedEntity ? $e(() => a.linkedEntity, (_) => {
|
|
13457
|
+
_ && (d.value = _, i("linkedEntityChanged", _));
|
|
13458
|
+
}, { immediate: !0 }) : $e(() => y.state.data, (_) => {
|
|
13459
|
+
_ && (d.value = _.result, i("linkedEntityChanged", _.result));
|
|
13460
13460
|
}, { immediate: !0 });
|
|
13461
|
-
const $ = (
|
|
13462
|
-
f.value =
|
|
13461
|
+
const $ = (_) => {
|
|
13462
|
+
f.value = _, y.state.data.filters = _, C(f.value);
|
|
13463
13463
|
}, T = () => {
|
|
13464
13464
|
f.value = null, s.value = "id", u.value = 1, y.state.data.filters = {}, C(f.value);
|
|
13465
|
-
}, L = async (
|
|
13466
|
-
s.value =
|
|
13467
|
-
}, O = (
|
|
13468
|
-
l.value =
|
|
13469
|
-
}, C = async (
|
|
13470
|
-
var J,
|
|
13465
|
+
}, L = async (_, P) => {
|
|
13466
|
+
s.value = _, u.value = P, f.value = y.state.data.filters ? y.state.data.filters : f.value, C(f.value);
|
|
13467
|
+
}, O = (_) => {
|
|
13468
|
+
l.value = _, f.value = y.state.data.filters ? y.state.data.filters : f.value, C(f.value);
|
|
13469
|
+
}, C = async (_) => {
|
|
13470
|
+
var J, N;
|
|
13471
13471
|
console.log("entity state filter", y);
|
|
13472
13472
|
const P = {
|
|
13473
13473
|
sortBy: [s.value],
|
|
@@ -13475,31 +13475,31 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13475
13475
|
pageSize: l.value,
|
|
13476
13476
|
currentPage: c.value,
|
|
13477
13477
|
columnList: null,
|
|
13478
|
-
filter:
|
|
13478
|
+
filter: _,
|
|
13479
13479
|
fullTextSearch: ""
|
|
13480
13480
|
};
|
|
13481
13481
|
a.fetchParentEntities && (P.fetchParentEntities = a.fetchParentEntities), a.fetchChildEntities !== void 0 && (P.fetchChildEntities = a.fetchChildEntities), a.relatedEntities && (P.relatedEntities = a.relatedEntities), a.fetchList && (P.fetchList = a.fetchList);
|
|
13482
13482
|
const z = await r.searchEntityRecords(a.entityName, P);
|
|
13483
|
-
z && z.response ? (y.setEntity(z.response), p.value = ((
|
|
13483
|
+
z && z.response ? (y.setEntity(z.response), p.value = ((N = (J = y == null ? void 0 : y.state) == null ? void 0 : J.data) == null ? void 0 : N.presets) || []) : console.error("Error fetching entity data:", z);
|
|
13484
13484
|
}, V = async () => {
|
|
13485
13485
|
if (!a.preFiltered) return;
|
|
13486
|
-
const
|
|
13487
|
-
|
|
13486
|
+
const _ = y.parsePrefilter(a.preFiltered);
|
|
13487
|
+
_.length && C(_);
|
|
13488
13488
|
};
|
|
13489
13489
|
t({
|
|
13490
13490
|
props: a,
|
|
13491
13491
|
reload: () => {
|
|
13492
13492
|
console.log("reload data");
|
|
13493
13493
|
},
|
|
13494
|
-
filter: (
|
|
13495
|
-
console.log("filter data in unordered",
|
|
13494
|
+
filter: (_) => {
|
|
13495
|
+
console.log("filter data in unordered", _);
|
|
13496
13496
|
},
|
|
13497
|
-
addToCurrentList: (
|
|
13497
|
+
addToCurrentList: (_) => {
|
|
13498
13498
|
var P, z;
|
|
13499
|
-
(z = (P = y == null ? void 0 : y.state) == null ? void 0 : P.data) != null && z.result && y.state.data.result.push(
|
|
13499
|
+
(z = (P = y == null ? void 0 : y.state) == null ? void 0 : P.data) != null && z.result && y.state.data.result.push(_);
|
|
13500
13500
|
},
|
|
13501
|
-
deleteFromCurrentList: (
|
|
13502
|
-
const P = y.state.data.result.indexOf(
|
|
13501
|
+
deleteFromCurrentList: (_) => {
|
|
13502
|
+
const P = y.state.data.result.indexOf(_);
|
|
13503
13503
|
y.state.data.result.splice(P, 1);
|
|
13504
13504
|
},
|
|
13505
13505
|
searchRecord: $,
|
|
@@ -13508,9 +13508,9 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13508
13508
|
clearFilters: T
|
|
13509
13509
|
}), $e(
|
|
13510
13510
|
() => o.globalConfigs.appId,
|
|
13511
|
-
async (
|
|
13511
|
+
async (_) => {
|
|
13512
13512
|
var P, z;
|
|
13513
|
-
if (
|
|
13513
|
+
if (_) {
|
|
13514
13514
|
if (a.linkedEntity && a.linkedEntity.length > 0)
|
|
13515
13515
|
y.setEntity(a.linkedEntity);
|
|
13516
13516
|
else if (!a.preFiltered) {
|
|
@@ -13521,13 +13521,13 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13521
13521
|
},
|
|
13522
13522
|
{ immediate: !0 }
|
|
13523
13523
|
);
|
|
13524
|
-
const I = async (
|
|
13525
|
-
const P = await y.applyPreset(
|
|
13524
|
+
const I = async (_) => {
|
|
13525
|
+
const P = await y.applyPreset(_, a.entityName);
|
|
13526
13526
|
y.state.data = P || {};
|
|
13527
13527
|
};
|
|
13528
|
-
return (
|
|
13529
|
-
|
|
13530
|
-
fe(
|
|
13528
|
+
return (_, P) => (b(), k("div", Yt(ho(_.$attrs)), [
|
|
13529
|
+
_.$slots["list-item-display"] ? (b(), k(se, { key: 0 }, [
|
|
13530
|
+
fe(_.$slots, "header", {}, void 0, !0),
|
|
13531
13531
|
v("div", u0, [
|
|
13532
13532
|
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), k("div", c0, [
|
|
13533
13533
|
v("div", d0, [
|
|
@@ -13569,7 +13569,7 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13569
13569
|
key: z.id,
|
|
13570
13570
|
class: "min-w-[250px] flex-shrink-0"
|
|
13571
13571
|
}, [
|
|
13572
|
-
fe(
|
|
13572
|
+
fe(_.$slots, "list-item-display", { item: z }, void 0, !0)
|
|
13573
13573
|
]))), 128))
|
|
13574
13574
|
], 512),
|
|
13575
13575
|
v("button", {
|
|
@@ -13591,9 +13591,9 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13591
13591
|
})) : M("", !0)
|
|
13592
13592
|
])
|
|
13593
13593
|
])) : M("", !0),
|
|
13594
|
-
fe(
|
|
13594
|
+
fe(_.$slots, "footer", {}, void 0, !0)
|
|
13595
13595
|
], 64)) : (b(), k(se, { key: 1 }, [
|
|
13596
|
-
fe(
|
|
13596
|
+
fe(_.$slots, "header", {}, void 0, !0),
|
|
13597
13597
|
e.entityName ? (b(), k("div", w0, [
|
|
13598
13598
|
v("div", k0, [
|
|
13599
13599
|
e.showToolBar == "top" && (e.showFilters || e.showAddButton || e.showPagination) ? (b(), k("div", x0, [
|
|
@@ -13653,7 +13653,7 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
|
|
|
13653
13653
|
e.entityName ? M("", !0) : (b(), k("span", v0, "Entity Name"))
|
|
13654
13654
|
])
|
|
13655
13655
|
])),
|
|
13656
|
-
fe(
|
|
13656
|
+
fe(_.$slots, "footer", {}, void 0, !0)
|
|
13657
13657
|
], 64))
|
|
13658
13658
|
], 16));
|
|
13659
13659
|
}
|
|
@@ -15363,169 +15363,169 @@ function Ly() {
|
|
|
15363
15363
|
const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
|
|
15364
15364
|
return {
|
|
15365
15365
|
getEntities: async () => {
|
|
15366
|
-
const
|
|
15367
|
-
return await t(`/api/app/v1/${
|
|
15366
|
+
const N = i();
|
|
15367
|
+
return await t(`/api/app/v1/${N}/entity`);
|
|
15368
15368
|
},
|
|
15369
|
-
getEntity: async (
|
|
15370
|
-
const
|
|
15371
|
-
return await t(`/api/app/v1/${
|
|
15372
|
-
},
|
|
15373
|
-
saveEntity: async (_) => {
|
|
15374
|
-
const D = i();
|
|
15375
|
-
return await n(`/api/app/v1/${D}/entity`, _);
|
|
15369
|
+
getEntity: async (N) => {
|
|
15370
|
+
const A = i();
|
|
15371
|
+
return await t(`/api/app/v1/${A}/entity/${N}`);
|
|
15376
15372
|
},
|
|
15377
|
-
|
|
15373
|
+
saveEntity: async (N) => {
|
|
15378
15374
|
const A = i();
|
|
15375
|
+
return await n(`/api/app/v1/${A}/entity`, N);
|
|
15376
|
+
},
|
|
15377
|
+
updateEntityGeneralSettings: async (N, A) => {
|
|
15378
|
+
const D = i();
|
|
15379
15379
|
return await o(
|
|
15380
|
-
`/api/app/v1/${
|
|
15381
|
-
|
|
15380
|
+
`/api/app/v1/${D}/entity/${N}/rename`,
|
|
15381
|
+
A
|
|
15382
15382
|
);
|
|
15383
15383
|
},
|
|
15384
|
-
updateEntityAuditable: async (
|
|
15385
|
-
const
|
|
15384
|
+
updateEntityAuditable: async (N, A) => {
|
|
15385
|
+
const D = i();
|
|
15386
15386
|
return await o(
|
|
15387
|
-
`/api/app/v1/${
|
|
15388
|
-
|
|
15387
|
+
`/api/app/v1/${D}/entity/${N}/auditable`,
|
|
15388
|
+
A
|
|
15389
15389
|
);
|
|
15390
15390
|
},
|
|
15391
|
-
updateEntityRevisionEnabled: async (
|
|
15392
|
-
const
|
|
15391
|
+
updateEntityRevisionEnabled: async (N, A) => {
|
|
15392
|
+
const D = i();
|
|
15393
15393
|
return await o(
|
|
15394
|
-
`/api/app/v1/${
|
|
15395
|
-
|
|
15394
|
+
`/api/app/v1/${D}/entity/${N}/revision`,
|
|
15395
|
+
A
|
|
15396
15396
|
);
|
|
15397
15397
|
},
|
|
15398
|
-
updateEntitySoftDelete: async (
|
|
15399
|
-
const
|
|
15398
|
+
updateEntitySoftDelete: async (N, A) => {
|
|
15399
|
+
const D = i();
|
|
15400
15400
|
return await o(
|
|
15401
|
-
`/api/app/v1/${
|
|
15402
|
-
|
|
15401
|
+
`/api/app/v1/${D}/entity/${N}/soft-delete`,
|
|
15402
|
+
A
|
|
15403
15403
|
);
|
|
15404
15404
|
},
|
|
15405
|
-
updateEntityDeleteProtected: async (
|
|
15406
|
-
const
|
|
15405
|
+
updateEntityDeleteProtected: async (N, A) => {
|
|
15406
|
+
const D = i();
|
|
15407
15407
|
return await o(
|
|
15408
|
-
`/api/app/v1/${
|
|
15409
|
-
|
|
15408
|
+
`/api/app/v1/${D}/entity/${N}/delete-protect`,
|
|
15409
|
+
A
|
|
15410
15410
|
);
|
|
15411
15411
|
},
|
|
15412
|
-
updateEntityColumn: async (
|
|
15413
|
-
const
|
|
15412
|
+
updateEntityColumn: async (N, A) => {
|
|
15413
|
+
const D = i();
|
|
15414
15414
|
return await o(
|
|
15415
|
-
`/api/app/v1/${
|
|
15416
|
-
|
|
15415
|
+
`/api/app/v1/${D}/entity/${N}/column`,
|
|
15416
|
+
A
|
|
15417
15417
|
);
|
|
15418
15418
|
},
|
|
15419
|
-
saveEntityColumn: async (
|
|
15420
|
-
const
|
|
15419
|
+
saveEntityColumn: async (N, A) => {
|
|
15420
|
+
const D = i();
|
|
15421
15421
|
return await n(
|
|
15422
|
-
`/api/app/v1/${
|
|
15423
|
-
|
|
15422
|
+
`/api/app/v1/${D}/entity/${N}/column`,
|
|
15423
|
+
A
|
|
15424
15424
|
);
|
|
15425
15425
|
},
|
|
15426
|
-
dropEntityColumn: async (
|
|
15427
|
-
const
|
|
15426
|
+
dropEntityColumn: async (N, A) => {
|
|
15427
|
+
const D = i();
|
|
15428
15428
|
return await r(
|
|
15429
|
-
`/api/app/v1/${
|
|
15429
|
+
`/api/app/v1/${D}/entity/${N}/column/${A}`
|
|
15430
15430
|
);
|
|
15431
15431
|
},
|
|
15432
|
-
saveForeignKey: async (
|
|
15433
|
-
const A = i();
|
|
15434
|
-
return await o(`/api/app/v1/${A}/entity/foreignKey`, D);
|
|
15435
|
-
},
|
|
15436
|
-
dropForeignKey: async (_) => {
|
|
15432
|
+
saveForeignKey: async (N, A) => {
|
|
15437
15433
|
const D = i();
|
|
15438
|
-
return await
|
|
15434
|
+
return await o(`/api/app/v1/${D}/entity/foreignKey`, A);
|
|
15439
15435
|
},
|
|
15440
|
-
|
|
15436
|
+
dropForeignKey: async (N) => {
|
|
15441
15437
|
const A = i();
|
|
15438
|
+
return await r(`/api/app/v1/${A}/entity/foreignKey`, N);
|
|
15439
|
+
},
|
|
15440
|
+
saveUniqueConstraint: async (N, A) => {
|
|
15441
|
+
const D = i();
|
|
15442
15442
|
return await n(
|
|
15443
|
-
`/api/app/v1/${
|
|
15443
|
+
`/api/app/v1/${D}/entity/${N}/column/${A}/constraint`
|
|
15444
15444
|
);
|
|
15445
15445
|
},
|
|
15446
|
-
dropUniqueConstraint: async (
|
|
15447
|
-
const
|
|
15446
|
+
dropUniqueConstraint: async (N, A) => {
|
|
15447
|
+
const D = i();
|
|
15448
15448
|
return await r(
|
|
15449
|
-
`/api/app/v1/${
|
|
15449
|
+
`/api/app/v1/${D}/entity/${N}/column/${A}/constraint`
|
|
15450
15450
|
);
|
|
15451
15451
|
},
|
|
15452
|
-
saveIndex: async (
|
|
15453
|
-
const
|
|
15452
|
+
saveIndex: async (N, A) => {
|
|
15453
|
+
const D = i();
|
|
15454
15454
|
return await n(
|
|
15455
|
-
`/api/app/v1/${
|
|
15456
|
-
|
|
15455
|
+
`/api/app/v1/${D}/entity/${N}/column-index`,
|
|
15456
|
+
A
|
|
15457
15457
|
);
|
|
15458
15458
|
},
|
|
15459
|
-
dropIndex: async (
|
|
15460
|
-
const
|
|
15459
|
+
dropIndex: async (N, A) => {
|
|
15460
|
+
const D = i();
|
|
15461
15461
|
return await r(
|
|
15462
|
-
`/api/app/v1/${
|
|
15463
|
-
|
|
15462
|
+
`/api/app/v1/${D}/entity/${N}/column-index`,
|
|
15463
|
+
A
|
|
15464
15464
|
);
|
|
15465
15465
|
},
|
|
15466
|
-
deleteEntity: async (
|
|
15467
|
-
const
|
|
15468
|
-
return await r(`/api/app/v1/${
|
|
15469
|
-
},
|
|
15470
|
-
getEntityEvents: async (_) => {
|
|
15471
|
-
const D = i();
|
|
15472
|
-
return await t(`/api/app/v1/${D}/entity/${_}/event`);
|
|
15466
|
+
deleteEntity: async (N) => {
|
|
15467
|
+
const A = i();
|
|
15468
|
+
return await r(`/api/app/v1/${A}/entity/${N}`);
|
|
15473
15469
|
},
|
|
15474
|
-
|
|
15470
|
+
getEntityEvents: async (N) => {
|
|
15475
15471
|
const A = i();
|
|
15472
|
+
return await t(`/api/app/v1/${A}/entity/${N}/event`);
|
|
15473
|
+
},
|
|
15474
|
+
saveEntityEvent: async (N, A) => {
|
|
15475
|
+
const D = i();
|
|
15476
15476
|
return await n(
|
|
15477
|
-
`/api/app/v1/${
|
|
15478
|
-
|
|
15477
|
+
`/api/app/v1/${D}/entity/${N}/event`,
|
|
15478
|
+
A
|
|
15479
15479
|
);
|
|
15480
15480
|
},
|
|
15481
|
-
deleteEntityEvent: async (
|
|
15482
|
-
const
|
|
15483
|
-
return await r(`/api/app/v1/${
|
|
15481
|
+
deleteEntityEvent: async (N, A) => {
|
|
15482
|
+
const D = i();
|
|
15483
|
+
return await r(`/api/app/v1/${D}/entity/${N}/event/${A}`);
|
|
15484
15484
|
},
|
|
15485
|
-
updateEntityEvent: async (
|
|
15485
|
+
updateEntityEvent: async (N, A, D) => {
|
|
15486
15486
|
const ie = i();
|
|
15487
15487
|
return await o(
|
|
15488
|
-
`/api/app/v1/${ie}/entity/${
|
|
15489
|
-
|
|
15488
|
+
`/api/app/v1/${ie}/entity/${N}/event/${A}`,
|
|
15489
|
+
D
|
|
15490
15490
|
);
|
|
15491
15491
|
},
|
|
15492
15492
|
getActionTypes: async () => {
|
|
15493
|
-
const
|
|
15494
|
-
return await t(`/api/app/v1/${
|
|
15495
|
-
},
|
|
15496
|
-
getActionConfigByType: async (_) => {
|
|
15497
|
-
const D = i();
|
|
15498
|
-
return await t(`/api/app/v1/${D}/notification-config/${_}`);
|
|
15493
|
+
const N = i();
|
|
15494
|
+
return await t(`/api/app/v1/${N}/action-type`);
|
|
15499
15495
|
},
|
|
15500
|
-
|
|
15496
|
+
getActionConfigByType: async (N) => {
|
|
15501
15497
|
const A = i();
|
|
15498
|
+
return await t(`/api/app/v1/${A}/notification-config/${N}`);
|
|
15499
|
+
},
|
|
15500
|
+
enableCache: async (N, A) => {
|
|
15501
|
+
const D = i();
|
|
15502
15502
|
return await o(
|
|
15503
|
-
`/api/app/v1/${
|
|
15504
|
-
|
|
15503
|
+
`/api/app/v1/${D}/entity/${N}/enableCache`,
|
|
15504
|
+
A
|
|
15505
15505
|
);
|
|
15506
15506
|
},
|
|
15507
|
-
addOrUpdatePresets: async (
|
|
15508
|
-
const
|
|
15507
|
+
addOrUpdatePresets: async (N, A) => {
|
|
15508
|
+
const D = i();
|
|
15509
15509
|
return await n(
|
|
15510
|
-
`/api/app/v1/${
|
|
15511
|
-
|
|
15510
|
+
`/api/app/v1/${D}/entity/${N}/preset`,
|
|
15511
|
+
A
|
|
15512
15512
|
);
|
|
15513
15513
|
},
|
|
15514
|
-
updateEntity: async (
|
|
15515
|
-
const D = i();
|
|
15516
|
-
return await o(`/api/app/v1/${D}/entity`, _);
|
|
15517
|
-
},
|
|
15518
|
-
deletePreset: async (_, D) => {
|
|
15514
|
+
updateEntity: async (N) => {
|
|
15519
15515
|
const A = i();
|
|
15516
|
+
return await o(`/api/app/v1/${A}/entity`, N);
|
|
15517
|
+
},
|
|
15518
|
+
deletePreset: async (N, A) => {
|
|
15519
|
+
const D = i();
|
|
15520
15520
|
return await r(
|
|
15521
|
-
`/api/app/v1/${
|
|
15521
|
+
`/api/app/v1/${D}/entity/${N}/preset/${A}`
|
|
15522
15522
|
);
|
|
15523
15523
|
},
|
|
15524
|
-
validateSqlScript: async (
|
|
15525
|
-
const
|
|
15524
|
+
validateSqlScript: async (N) => {
|
|
15525
|
+
const A = i();
|
|
15526
15526
|
return await n(
|
|
15527
|
-
`/api/app/v1/${
|
|
15528
|
-
|
|
15527
|
+
`/api/app/v1/${A}/entity/validate-sql`,
|
|
15528
|
+
N
|
|
15529
15529
|
);
|
|
15530
15530
|
}
|
|
15531
15531
|
};
|
|
@@ -17156,13 +17156,13 @@ var Jl = {
|
|
|
17156
17156
|
return B ? B > U ? B - U : B : 0;
|
|
17157
17157
|
}, u = function(B, U) {
|
|
17158
17158
|
return Math.floor(B / (U || B));
|
|
17159
|
-
}, l = function(B, U, S, I,
|
|
17160
|
-
return B <=
|
|
17161
|
-
}, c = function(B, U, S, I,
|
|
17159
|
+
}, l = function(B, U, S, I, _, P) {
|
|
17160
|
+
return B <= _ ? _ : P ? S - I - _ : U + _ - 1;
|
|
17161
|
+
}, c = function(B, U, S, I, _, P, z) {
|
|
17162
17162
|
return B <= P ? 0 : Math.max(0, z ? B < U ? S : B - P : B > U ? S : B - 2 * P);
|
|
17163
|
-
}, f = function(B, U, S, I,
|
|
17164
|
-
var z = U + I + 2 *
|
|
17165
|
-
return B >=
|
|
17163
|
+
}, f = function(B, U, S, I, _, P) {
|
|
17164
|
+
var z = U + I + 2 * _;
|
|
17165
|
+
return B >= _ && (z += _ + 1), n.getLast(z, P);
|
|
17166
17166
|
}, d = s(o.scrollTop, a.top), p = s(o.scrollLeft, a.left), m = r ? {
|
|
17167
17167
|
rows: 0,
|
|
17168
17168
|
cols: 0
|