codesaaz-core 0.0.94 → 0.0.96

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.
@@ -1,4 +1,4 @@
1
- import { mergeModels as Le, useModel as Ke, resolveComponent as X, openBlock as b, createBlock as H, mergeProps as ae, hasInjectionContext as tu, inject as at, ref as E, watch as $e, reactive as Nt, effectScope as nu, isRef as Gt, isReactive as ps, toRaw as ou, getCurrentScope as ru, onScopeDispose as iu, nextTick as mt, toRefs as au, markRaw as su, computed as te, createElementBlock as k, Fragment as se, createElementVNode as v, createTextVNode as Qe, toDisplayString as Z, createCommentVNode as M, renderList as Oe, createVNode as K, toValue as Ee, unref as Q, onMounted as ze, provide as sn, readonly as ms, watchEffect as Io, shallowRef as lu, withCtx as ne, onUpdated as gs, normalizeProps as Yt, guardReactiveProps as ho, renderSlot as fe, createSlots as Bn, withKeys as Ur, withModifiers as ko, withDirectives as wt, vShow as uu, resolveDirective as Hr, normalizeClass as ye, getCurrentInstance as Wr, resolveDynamicComponent as Pe, defineComponent as An, h as et, shallowReactive as Cr, onBeforeUnmount as hs, useId as cu, onUnmounted as du, cloneVNode as fu, Teleport as pu, Transition as mu, normalizeStyle as Qn, vModelText as Rn, vModelCheckbox as bs, createApp as gu } from "vue";
1
+ import { mergeModels as Le, useModel as Ke, resolveComponent as X, openBlock as b, createBlock as H, mergeProps as ae, hasInjectionContext as tu, inject as at, ref as E, watch as $e, reactive as Nt, effectScope as nu, isRef as Yt, isReactive as ps, toRaw as ou, getCurrentScope as ru, onScopeDispose as iu, nextTick as mt, toRefs as au, markRaw as su, computed as te, createElementBlock as k, Fragment as se, createElementVNode as v, createTextVNode as Ze, toDisplayString as Z, createCommentVNode as M, renderList as Oe, createVNode as K, toValue as Ee, unref as Q, onMounted as ze, provide as sn, readonly as ms, watchEffect as Io, shallowRef as lu, withCtx as ne, onUpdated as gs, normalizeProps as Xt, guardReactiveProps as ho, renderSlot as fe, createSlots as Bn, withKeys as Ur, withModifiers as ko, withDirectives as wt, vShow as uu, resolveDirective as Hr, normalizeClass as ye, getCurrentInstance as Wr, resolveDynamicComponent as Pe, defineComponent as An, h as et, shallowReactive as Cr, onBeforeUnmount as hs, useId as cu, onUnmounted as du, cloneVNode as fu, Teleport as pu, Transition as mu, normalizeStyle as Qn, vModelText as Rn, vModelCheckbox as bs, createApp as gu } from "vue";
2
2
  import { useRoute as un, useRouter as hu } from "vue-router";
3
3
  import { useToast as ys, InputText as ci } from "primevue";
4
4
  const di = {
@@ -173,7 +173,7 @@ function $r(e, t) {
173
173
  if (!t.hasOwnProperty(n))
174
174
  continue;
175
175
  const o = t[n], r = e[n];
176
- Er(r) && Er(o) && e.hasOwnProperty(n) && !Gt(o) && !ps(o) ? e[n] = $r(r, o) : e[n] = o;
176
+ Er(r) && Er(o) && e.hasOwnProperty(n) && !Yt(o) && !ps(o) ? e[n] = $r(r, o) : e[n] = o;
177
177
  }
178
178
  return e;
179
179
  }
@@ -186,7 +186,7 @@ function wu(e) {
186
186
  }
187
187
  const { assign: nn } = Object;
188
188
  function ku(e) {
189
- return !!(Gt(e) && e.effect);
189
+ return !!(Yt(e) && e.effect);
190
190
  }
191
191
  function xu(e, t, n, o) {
192
192
  const { state: r, actions: i, getters: a } = t, s = n.state.value[e];
@@ -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 N(z) {
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: N
258
+ onError: _
259
259
  });
260
260
  let P;
261
261
  try {
@@ -289,8 +289,8 @@ function ks(e, t, n = {}, o, r, i) {
289
289
  const O = (o._a && o._a.runWithContext || yu)(() => o._e.run(() => (a = nu()).run(() => t({ action: x }))));
290
290
  for (const C in O) {
291
291
  const V = O[C];
292
- if (Gt(V) && !ku(V) || ps(V))
293
- i || (m && wu(V) && (Gt(V) ? V.value = m[C] : $r(V, m[C])), o.state.value[e][C] = V);
292
+ if (Yt(V) && !ku(V) || ps(V))
293
+ i || (m && wu(V) && (Yt(V) ? V.value = m[C] : $r(V, m[C])), o.state.value[e][C] = V);
294
294
  else if (typeof V == "function") {
295
295
  const W = x(V, C);
296
296
  O[C] = W, s.actions[C] = V;
@@ -326,7 +326,7 @@ function Kr(e, t, n) {
326
326
  }
327
327
  return a.$id = o, a;
328
328
  }
329
- const Ze = /* @__PURE__ */ Kr("globalConfigsStore", {
329
+ const Xe = /* @__PURE__ */ Kr("globalConfigsStore", {
330
330
  state: () => ({
331
331
  globalConfigs: {}
332
332
  }),
@@ -2061,8 +2061,8 @@ function Ri(e = {}) {
2061
2061
  ...e
2062
2062
  };
2063
2063
  }
2064
- function Xt() {
2065
- Ze();
2064
+ function zt() {
2065
+ Xe();
2066
2066
  const e = Zc(), t = Ye.create({
2067
2067
  headers: Ri()
2068
2068
  });
@@ -2114,7 +2114,7 @@ function Xt() {
2114
2114
  };
2115
2115
  }
2116
2116
  function Ct() {
2117
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
2117
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
2118
2118
  return {
2119
2119
  getEntityRecords: async (g, h = {}) => {
2120
2120
  const y = i(), w = new URLSearchParams(h).toString(), x = w ? `/api/app/v1/${y}/entity/${g}/record?${w}` : `/api/app/v1/${y}/entity/${g}/record`;
@@ -2178,10 +2178,10 @@ function ed(e = "") {
2178
2178
  }, w = async (S, I = !0) => {
2179
2179
  p.value = !0;
2180
2180
  try {
2181
- const N = await t.getEntityRecords(S);
2182
- N && N.response && (o.value = N.response, r.value = N.response.result, a.value = T(N.response.entity.entityDefinition.columns), i.value = $(N.response.entity.entityDefinition.columns), f.value = N.response.totalRecords, U());
2183
- } catch (N) {
2184
- console.error("Error fetching entity:", N.errorMessage);
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 N = await t.searchEntityRecords(e, I);
2202
- N && N.response && (p.value = !1, o.value = N.response, r.value = N.response.result, f.value = N.response.totalRecords, d.value = c.value * l.value);
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((N) => N.field === S);
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++) {
@@ -2339,7 +2339,7 @@ const tt = (e, t) => {
2339
2339
  class: "mb-1",
2340
2340
  for: e.column.name
2341
2341
  }, [
2342
- Qe(Z(e.column.displayName || e.column.name) + " ", 1),
2342
+ Ze(Z(e.column.displayName || e.column.name) + " ", 1),
2343
2343
  e.column.required ? (b(), k("span", od, "*")) : M("", !0)
2344
2344
  ], 8, nd),
2345
2345
  e.column.inputComponent.toLowerCase() == "input_calendar" ? (b(), H(s, {
@@ -2397,7 +2397,7 @@ const tt = (e, t) => {
2397
2397
  binary: ""
2398
2398
  }, null, 8, ["modelValue", "invalid"]),
2399
2399
  v("label", sd, [
2400
- Qe(Z(e.column.displayName || e.column.name) + " ", 1),
2400
+ Ze(Z(e.column.displayName || e.column.name) + " ", 1),
2401
2401
  e.column.required ? (b(), k("span", ld, "*")) : M("", !0)
2402
2402
  ])
2403
2403
  ])) : M("", !0)
@@ -2593,10 +2593,10 @@ function _i(e) {
2593
2593
  function Zr(e) {
2594
2594
  return Qo(e) ? e.replace(/\[|\]/gi, "") : e;
2595
2595
  }
2596
- function qt(e, t, n) {
2596
+ function Kt(e, t, n) {
2597
2597
  return e ? Qo(t) ? e[Zr(t)] : (t || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((r, i) => vd(r) && i in r ? r[i] : n, e) : n;
2598
2598
  }
2599
- function Ut(e, t, n) {
2599
+ function Ht(e, t, n) {
2600
2600
  if (Qo(t)) {
2601
2601
  e[Zr(t)] = n;
2602
2602
  return;
@@ -2634,7 +2634,7 @@ function Di(e, t) {
2634
2634
  break;
2635
2635
  o = o[n[i]];
2636
2636
  }
2637
- const r = n.map((i, a) => qt(e, n.slice(0, a).join(".")));
2637
+ const r = n.map((i, a) => Kt(e, n.slice(0, a).join(".")));
2638
2638
  for (let i = r.length - 1; i >= 0; i--)
2639
2639
  if (wd(r[i])) {
2640
2640
  if (i === 0) {
@@ -2744,7 +2744,7 @@ const Td = (e) => {
2744
2744
  function Id(e) {
2745
2745
  const t = (n) => {
2746
2746
  var o;
2747
- return (o = qt(n, e)) !== null && o !== void 0 ? o : n[e];
2747
+ return (o = Kt(n, e)) !== null && o !== void 0 ? o : n[e];
2748
2748
  };
2749
2749
  return t.__locatorRef = e, t;
2750
2750
  }
@@ -2893,7 +2893,7 @@ async function Ld(e, t) {
2893
2893
  async function Vd(e, t, n) {
2894
2894
  const r = vt(e).map(async (l) => {
2895
2895
  var c, f, d;
2896
- const p = (c = n == null ? void 0 : n.names) === null || c === void 0 ? void 0 : c[l], m = await Fd(qt(t, l), e[l], {
2896
+ const p = (c = n == null ? void 0 : n.names) === null || c === void 0 ? void 0 : c[l], m = await Fd(Kt(t, l), e[l], {
2897
2897
  name: (p == null ? void 0 : p.name) || l,
2898
2898
  label: p == null ? void 0 : p.label,
2899
2899
  values: t,
@@ -2955,19 +2955,19 @@ function el(e) {
2955
2955
  var G;
2956
2956
  return R[Ee(F.path)] = (G = F.bails) !== null && G !== void 0 ? G : !0, R;
2957
2957
  }, {})), $ = Object.assign({}, {}), T = (t = void 0) !== null && t !== void 0 ? t : !1, { initialValues: L, originalInitialValues: O, setInitialValues: C } = Md(c, l), V = jd(c, l, O, y), W = te(() => c.value.reduce((R, F) => {
2958
- const G = qt(l, Ee(F.path));
2959
- return Ut(R, Ee(F.path), G), R;
2958
+ const G = Kt(l, Ee(F.path));
2959
+ return Ht(R, Ee(F.path), G), R;
2960
2960
  }, {})), B = void 0;
2961
2961
  function U(R, F) {
2962
2962
  var G, re;
2963
- const ge = te(() => qt(L.value, Ee(R))), ve = d.value[Ee(R)], de = (F == null ? void 0 : F.type) === "checkbox" || (F == null ? void 0 : F.type) === "radio";
2963
+ const ge = te(() => Kt(L.value, Ee(R))), ve = d.value[Ee(R)], de = (F == null ? void 0 : F.type) === "checkbox" || (F == null ? void 0 : F.type) === "radio";
2964
2964
  if (ve && de) {
2965
2965
  ve.multiple = !0;
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 = _.findIndex((Me) => Me === ee);
2970
- ue !== -1 && _.splice(ue, 1);
2969
+ const q = te(() => Kt(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);
@@ -3000,15 +3000,15 @@ function el(e) {
3000
3000
  });
3001
3001
  return c.value.push(De), d.value[ee] = De, p(), y.value[ee] && !$[ee] && mt(() => {
3002
3002
  We(ee, { mode: "silent" });
3003
- }), Gt(R) && $e(R, (Me) => {
3003
+ }), Yt(R) && $e(R, (Me) => {
3004
3004
  p();
3005
3005
  const nt = je(q.value);
3006
3006
  d.value[Me] = De, mt(() => {
3007
- Ut(l, Me, nt);
3007
+ Ht(l, Me, nt);
3008
3008
  });
3009
3009
  }), De;
3010
3010
  }
3011
- const S = Ni(bt, 5), I = Ni(bt, 5), N = Sd(async (R) => await (R === "silent" ? S() : I()), (R, [F]) => {
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 _ = [], D;
3041
- function A(R) {
3042
- return _.push(R), D || (D = mt(() => {
3043
- [..._].sort().reverse().forEach((G) => {
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
- }), _ = [], D = null;
3046
- })), D;
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) ? N : void 0,
3116
+ validateSchema: Q(B) ? _ : void 0,
3117
3117
  validate: Fe,
3118
3118
  setFieldError: m,
3119
3119
  validateField: We,
@@ -3129,12 +3129,12 @@ function el(e) {
3129
3129
  defineInputBinds: me,
3130
3130
  defineComponentBinds: $t,
3131
3131
  defineField: Qt,
3132
- stageInitialValue: Xe,
3132
+ stageInitialValue: Je,
3133
3133
  unsetInitialValue: Ft,
3134
3134
  setFieldInitialValue: lt,
3135
3135
  createPathState: U,
3136
3136
  getPathState: z,
3137
- unsetPathValue: A,
3137
+ unsetPathValue: D,
3138
3138
  removePathState: be,
3139
3139
  initialValues: L,
3140
3140
  getAllPathStates: () => c.value,
@@ -3145,7 +3145,7 @@ function el(e) {
3145
3145
  };
3146
3146
  function Se(R, F, G = !0) {
3147
3147
  const re = je(F), ge = typeof R == "string" ? R : R.path;
3148
- z(ge) || U(ge), Ut(l, ge, re), G && We(ge);
3148
+ z(ge) || U(ge), Ht(l, ge, re), G && We(ge);
3149
3149
  }
3150
3150
  function pt(R, F = !0) {
3151
3151
  vt(l).forEach((G) => {
@@ -3199,7 +3199,7 @@ function el(e) {
3199
3199
  }
3200
3200
  function Ve(R, F) {
3201
3201
  var G;
3202
- const re = F && "value" in F ? F.value : qt(L.value, R), ge = z(R);
3202
+ const re = F && "value" in F ? F.value : Kt(L.value, R), ge = z(R);
3203
3203
  ge && (ge.__flags.pendingReset = !0), lt(R, je(re), !0), Se(R, re, !1), ht(R, (G = F == null ? void 0 : F.touched) !== null && G !== void 0 ? G : !1), m(R, (F == null ? void 0 : F.errors) || []), mt(() => {
3204
3204
  ge && (ge.__flags.pendingReset = !1);
3205
3205
  });
@@ -3208,7 +3208,7 @@ function el(e) {
3208
3208
  let G = je(R != null && R.values ? R.values : O.value);
3209
3209
  G = F != null && F.force ? G : eo(O.value, G), G = rn(B) && It(B.cast) ? B.cast(G) : G, C(G, { force: F == null ? void 0 : F.force }), P((re) => {
3210
3210
  var ge;
3211
- re.__flags.pendingReset = !0, re.validated = !1, re.touched = ((ge = R == null ? void 0 : R.touched) === null || ge === void 0 ? void 0 : ge[Ee(re.path)]) || !1, Se(Ee(re.path), qt(G, Ee(re.path)), !1), m(Ee(re.path), void 0);
3211
+ re.__flags.pendingReset = !0, re.validated = !1, re.touched = ((ge = R == null ? void 0 : R.touched) === null || ge === void 0 ? void 0 : ge[Ee(re.path)]) || !1, Se(Ee(re.path), Kt(G, Ee(re.path)), !1), m(Ee(re.path), void 0);
3212
3212
  }), F != null && F.force ? pt(G, !1) : ot(G, !1), g((R == null ? void 0 : R.errors) || {}), s.value = (R == null ? void 0 : R.submitCount) || 0, mt(() => {
3213
3213
  Fe({ mode: "silent" }), P((re) => {
3214
3214
  re.__flags.pendingReset = !1;
@@ -3237,7 +3237,7 @@ function el(e) {
3237
3237
  re[de.key] = {
3238
3238
  valid: de.valid,
3239
3239
  errors: de.errors
3240
- }, de.value && Ut(ve, de.key, de.value), de.errors.length && (ge[de.key] = de.errors[0]);
3240
+ }, de.value && Ht(ve, de.key, de.value), de.errors.length && (ge[de.key] = de.errors[0]);
3241
3241
  return {
3242
3242
  valid: G.every((de) => de.valid),
3243
3243
  results: re,
@@ -3254,11 +3254,11 @@ function el(e) {
3254
3254
  function Ft(R) {
3255
3255
  Di(L.value, R);
3256
3256
  }
3257
- function Xe(R, F, G = !1) {
3258
- lt(R, F), Ut(l, R, F), G && Ut(O.value, R, je(F));
3257
+ function Je(R, F, G = !1) {
3258
+ lt(R, F), Ht(l, R, F), G && Ht(O.value, R, je(F));
3259
3259
  }
3260
3260
  function lt(R, F, G = !1) {
3261
- Ut(L.value, R, je(F)), G && Ut(O.value, R, je(F));
3261
+ Ht(L.value, R, je(F)), G && Ht(O.value, R, je(F));
3262
3262
  }
3263
3263
  async function bt() {
3264
3264
  const R = Q(B);
@@ -3276,7 +3276,7 @@ function el(e) {
3276
3276
  });
3277
3277
  ze(() => {
3278
3278
  ke.validateSchema && ke.validateSchema("silent");
3279
- }), Gt(B) && $e(B, () => {
3279
+ }), Yt(B) && $e(B, () => {
3280
3280
  var R;
3281
3281
  (R = ke.validateSchema) === null || R === void 0 || R.call(ke, "validated-only");
3282
3282
  }), sn(md, ke);
@@ -3372,8 +3372,8 @@ function Md(e, t, n) {
3372
3372
  u != null && u.force ? (r.value = je(s), i.value = je(s)) : (r.value = eo(je(r.value) || {}, je(s)), i.value = eo(je(i.value) || {}, je(s))), u != null && u.updateFields && e.value.forEach((l) => {
3373
3373
  if (l.touched)
3374
3374
  return;
3375
- const f = qt(r.value, Ee(l.path));
3376
- Ut(t, Ee(l.path), je(f));
3375
+ const f = Kt(r.value, Ee(l.path));
3376
+ Ht(t, Ee(l.path), je(f));
3377
3377
  });
3378
3378
  }
3379
3379
  return {
@@ -4346,24 +4346,24 @@ function Ar(e) {
4346
4346
  var t, n;
4347
4347
  const o = lf.exec(e);
4348
4348
  return o ? {
4349
- year: zt(o[1]),
4350
- month: zt(o[2], 1) - 1,
4351
- day: zt(o[3], 1),
4352
- hour: zt(o[4]),
4353
- minute: zt(o[5]),
4354
- second: zt(o[6]),
4349
+ year: jt(o[1]),
4350
+ month: jt(o[2], 1) - 1,
4351
+ day: jt(o[3], 1),
4352
+ hour: jt(o[4]),
4353
+ minute: jt(o[5]),
4354
+ second: jt(o[6]),
4355
4355
  millisecond: o[7] ? (
4356
4356
  // allow arbitrary sub-second precision beyond milliseconds
4357
- zt(o[7].substring(0, 3))
4357
+ jt(o[7].substring(0, 3))
4358
4358
  ) : 0,
4359
4359
  precision: (t = (n = o[7]) == null ? void 0 : n.length) != null ? t : void 0,
4360
4360
  z: o[8] || void 0,
4361
4361
  plusMinus: o[9] || void 0,
4362
- hourOffset: zt(o[10]),
4363
- minuteOffset: zt(o[11])
4362
+ hourOffset: jt(o[10]),
4363
+ minuteOffset: jt(o[11])
4364
4364
  } : null;
4365
4365
  }
4366
- function zt(e, t = 0) {
4366
+ function jt(e, t = 0) {
4367
4367
  return Number(e) || t;
4368
4368
  }
4369
4369
  let cf = (
@@ -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 _, D;
4910
+ var N, A;
4911
4911
  try {
4912
- const A = await r.getEntityRecords(e);
4913
- A && A.response && (i.value = A.response, u.value = (_ = A.response.entity.entityDefinition) == null ? void 0 : _.columns, J(), C(), U());
4914
- } catch (A) {
4915
- (D = A == null ? void 0 : A.data) != null && D.errorMessage ? o.add({ severity: "error", summary: "Error", detail: A.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while fetching records", life: 3e3 });
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 _, D;
4919
+ var N, A;
4920
4920
  try {
4921
- const A = await r.getRecord(e, t);
4922
- A && A.response && (i.value = A.response, u.value = (_ = A.response.entity.entityDefinition) == null ? void 0 : _.columns, J(), a.value = JSON.parse(JSON.stringify(A.response.result[0])), U());
4923
- } catch (A) {
4924
- (D = A == null ? void 0 : A.data) != null && D.errorMessage ? o.add({ severity: "error", summary: "Error", detail: A.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while fetching record", life: 3e3 });
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 _, D, A;
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 = (D = (_ = ie.response.entity) == null ? void 0 : _.entityDefinition) == null ? void 0 : D.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());
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
- (A = ie == null ? void 0 : ie.data) != null && A.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 });
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 D;
4936
+ }, $ = async (N) => {
4937
+ var A;
4938
4938
  try {
4939
- let A = await r.addRecord(e, _);
4940
- A && A.response ? (o.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, recordId: t })) : (D = A == null ? void 0 : A.data) != null && D.errorMessage ? o.add({ severity: "error", summary: "Error", detail: A.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while saving record", life: 3e3 });
4941
- } catch (A) {
4942
- A.validationErrors && (c.value = JSON.parse(JSON.stringify(A.validationErrors))), console.error("Error fetching entity:", A.errorMessage);
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 (_, D) => {
4945
+ }, T = async (N, A) => {
4946
4946
  try {
4947
- let A = await r.addRecord(e, D);
4948
- if (A && A.response) {
4949
- let ie = await r.saveRelatedEntityRecord(e, A.response.recordId, _.linkedEntities);
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 (A) {
4953
- A.validationErrors && (c.value = JSON.parse(JSON.stringify(A.validationErrors))), console.error("Error fetching entity:", A.errorMessage);
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 D;
4956
+ }, L = async (N) => {
4957
+ var A;
4958
4958
  try {
4959
- const A = await r.updateRecord(e, t, _);
4960
- A && A.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 })) : (D = A == null ? void 0 : A.data) != null && D.errorMessage ? o.add({ severity: "error", summary: "Error", detail: A.data.errorMessage, life: 3e3 }) : o.add({ severity: "error", summary: "Error", detail: "Error while updating record", life: 3e3 });
4961
- } catch (A) {
4962
- A.validationErrors && (c.value = JSON.parse(JSON.stringify(A.errvalidationErrorsors))), console.error("Error fetching entity:", A.errorMessage);
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 (_, D, A) => {
4965
+ }, O = async (N, A, D) => {
4966
4966
  try {
4967
- let ie = await r.saveRelatedEntityRecord(_, D, A);
4968
- ie && ie.response && (o.add({ severity: "success", summary: "Success", detail: "Record save successfuly", life: 3e3 }), n("onSaveDialog", { entityName: e, enityRecordId: D }));
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 _ = 0; _ < u.value.length; _++) {
4975
- let D = u.value[_];
4976
- !D.autoGenerated && !D.fieldType && (a.value[D.name] = "");
4977
- }
4978
- }, V = (_) => {
4979
- let D = "";
4980
- for (let A = 0; A < u.value.length; A++) {
4981
- let ie = u.value[A];
4982
- if (_ == ie.name) {
4983
- D = ie.type;
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 D;
4987
+ return A;
4988
4988
  }, W = () => {
4989
- const _ = u.value.filter((A) => A.autoGenerated || A.fieldType).map((A) => A.name);
4990
- return Object.entries(a.value).filter(([A]) => !_.includes(A)).map(([A, ie]) => ({
4991
- recordColumnName: A,
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(A)
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 (A) {
4999
- const ie = A.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), {});
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 D = { dataDefinitions: W() };
5004
- t ? await L(D) : _.relationType == "MANY_TO_ONE" ? await T(_, D) : await $(D);
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((_, D) => (D.autoGenerated || D.fieldType || (_[D.name] = ti().nullable(!1).test({
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(A) {
5009
+ test: function(D) {
5010
5010
  const ie = [];
5011
5011
  let Ae = "";
5012
- if (D.required && (!A || A.trim() === ""))
5013
- if (D.validations) {
5014
- Ae = S(D.validations, "VALIDATE_REQUIRED"), ie.push(Ae);
5015
- let ce = N(D.validations, "VALIDATE_REQUIRED");
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 = D.displayName + " is required.", ie.push(Ae);
5018
+ Ae = A.displayName + " is required.", ie.push(Ae);
5019
5019
  else {
5020
- if (D.maxLength && A.length > D.maxLength)
5021
- if (D.validations) {
5022
- Ae = S(D.validations, "VALIDATE_MAXLENGTH"), ie.push(Ae);
5023
- let ce = N(D.validations, "VALIDATE_MAXLENGTH");
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 = D.displayName + " cannot exceed from " + D.maxLength + " characters", ie.push(Ae);
5027
- if (D.regxId && !new RegExp(I(D.validations, "VALIDATE_REGX")).test(A))
5028
- if (D.validations) {
5029
- Ae = S(D.validations, "VALIDATE_REGX"), ie.push(Ae);
5030
- let ce = N(D.validations, "VALIDATE_REGX");
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 = D.displayName + " invalid format.", ie.push(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 = (_, D) => {
5043
- for (let A = 0; A < _.length; A++)
5044
- if (D == _[A].type)
5045
- return _[A].message;
5046
- }, I = (_, D) => {
5047
- for (let A = 0; A < _.length; A++)
5048
- if (D == _[A].type)
5049
- return _[A].regx;
5050
- }, N = (_, D) => {
5051
- for (let A = 0; A < _.length; A++)
5052
- if (D == _[A].type)
5053
- return _[A].hint;
5054
- }, P = (_) => {
5055
- h({ ...g.value, [_]: null }), d.value = !0;
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 _ in a.value)
5059
- a.value.hasOwnProperty(_) && h({ ...g.value, [_]: null });
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 _ = 0; _ < u.value.length; _++) {
5063
- const D = u.value[_];
5064
- if (D.primaryKey && D.primaryKey == !0) {
5065
- p.value = D;
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
  }
@@ -5122,7 +5122,7 @@ const Ef = {
5122
5122
  severity: "error"
5123
5123
  }, {
5124
5124
  default: ne(() => [
5125
- Qe(Z(s.message), 1)
5125
+ Ze(Z(s.message), 1)
5126
5126
  ]),
5127
5127
  _: 2
5128
5128
  }, 1024)
@@ -5198,7 +5198,7 @@ const Ef = {
5198
5198
  K(w, {
5199
5199
  modelValue: Q(f),
5200
5200
  "onUpdate:modelValue": [
5201
- y[0] || (y[0] = (x) => Gt(f) ? f.value = x : f = x),
5201
+ y[0] || (y[0] = (x) => Yt(f) ? f.value = x : f = x),
5202
5202
  m
5203
5203
  ],
5204
5204
  "item-value": e.relatedEntityColumn,
@@ -5237,7 +5237,7 @@ const Ef = {
5237
5237
  required: !0
5238
5238
  },
5239
5239
  recordId: {
5240
- type: [String, Number],
5240
+ type: null,
5241
5241
  default: null
5242
5242
  }
5243
5243
  }, {
@@ -5423,7 +5423,7 @@ function er(e) {
5423
5423
  function Te(e) {
5424
5424
  return !kn(e);
5425
5425
  }
5426
- function Wt(e, t) {
5426
+ function qt(e, t) {
5427
5427
  if (!e || !t)
5428
5428
  return null;
5429
5429
  try {
@@ -5449,7 +5449,7 @@ function Wt(e, t) {
5449
5449
  return null;
5450
5450
  }
5451
5451
  function dl(e, t, n) {
5452
- return n ? Wt(e, n) === Wt(t, n) : jf(e, t);
5452
+ return n ? qt(e, n) === qt(t, n) : jf(e, t);
5453
5453
  }
5454
5454
  function Ji(e, t) {
5455
5455
  let n = -1;
@@ -5486,7 +5486,7 @@ function Mf(e) {
5486
5486
  function Uf(e = "") {
5487
5487
  return Te(e) && e.length === 1 && !!e.match(/\S| /);
5488
5488
  }
5489
- function Kt(e, t) {
5489
+ function Gt(e, t) {
5490
5490
  if (t) {
5491
5491
  const n = t.test(e);
5492
5492
  return t.lastIndex = 0, n;
@@ -5650,7 +5650,7 @@ var Kf = {
5650
5650
  var c = ea(n), f;
5651
5651
  try {
5652
5652
  for (c.s(); !(f = c.n()).done; ) {
5653
- var d = f.value, p = Wt(l, d);
5653
+ var d = f.value, p = qt(l, d);
5654
5654
  if (this.filters[r](p, o, i)) {
5655
5655
  a.push(l);
5656
5656
  break;
@@ -5791,9 +5791,9 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
5791
5791
  }
5792
5792
  },
5793
5793
  setup(e) {
5794
- const t = Ze(), n = e;
5794
+ const t = Xe(), 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), N = E();
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
- }, _ = (be) => {
5825
+ }, N = (be) => {
5826
5826
  w.value = ce(i.value), B();
5827
- }, D = (be) => {
5827
+ }, A = (be) => {
5828
5828
  be ? a.value = be[x.value.name] : a.value = "", s.value = !s.value;
5829
- }, A = () => {
5829
+ }, D = () => {
5830
5830
  s.value = !1, U(!1);
5831
5831
  }, ie = (be) => {
5832
5832
  a.value = be[x.value.name], u.value = !0;
@@ -5860,7 +5860,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
5860
5860
  }, { immediate: !0 }), (be, pe) => {
5861
5861
  const ke = X("Button"), Se = X("Toolbar"), pt = X("ProgressSpinner"), ot = X("InputIcon"), Et = X("IconField"), ht = X("DatePicker"), oe = X("InputNumber"), Y = X("Checkbox"), Ie = X("Column"), rt = X("DataTable");
5862
5862
  return b(), k(se, null, [
5863
- v("div", Yt(ho(be.$attrs)), [
5863
+ v("div", Xt(ho(be.$attrs)), [
5864
5864
  fe(be.$slots, "header"),
5865
5865
  e.showClearFilters || e.showAddButton ? (b(), H(Se, {
5866
5866
  key: 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) => D())
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: N,
5904
+ ref: _,
5905
5905
  stripedRows: !0,
5906
5906
  showGridlines: "",
5907
5907
  rowHover: !0,
@@ -5918,13 +5918,13 @@ 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"
5925
5925
  }, Bn({
5926
5926
  empty: ne(() => [
5927
- pe[9] || (pe[9] = Qe(" No data found. "))
5927
+ pe[9] || (pe[9] = Ze(" No data found. "))
5928
5928
  ]),
5929
5929
  loading: ne(() => [
5930
5930
  K(pt)
@@ -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) => D(Be),
6008
+ onClick: (Fe) => A(Be),
6009
6009
  icon: "pi pi-pencil",
6010
6010
  severity: "success",
6011
6011
  variant: "text",
@@ -6048,7 +6048,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6048
6048
  class: "w-full sm:w-auto",
6049
6049
  onKeyup: pe[3] || (pe[3] = Ur((Ve) => Q(L)(), ["enter"])),
6050
6050
  modelValue: Q($),
6051
- "onUpdate:modelValue": pe[4] || (pe[4] = (Ve) => Gt($) ? $.value = Ve : null),
6051
+ "onUpdate:modelValue": pe[4] || (pe[4] = (Ve) => Yt($) ? $.value = Ve : null),
6052
6052
  placeholder: "Search..."
6053
6053
  }, null, 8, ["modelValue"])
6054
6054
  ]),
@@ -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: A
6070
+ onOnSaveDialog: D
6071
6071
  }, null, 8, ["showForm", "entityName", "recordId"])) : M("", !0),
6072
6072
  u.value ? (b(), H(Df, {
6073
6073
  key: 1,
@@ -6090,7 +6090,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6090
6090
  },
6091
6091
  setup(e) {
6092
6092
  un();
6093
- const t = Ze(), n = E("");
6093
+ const t = Xe(), n = E("");
6094
6094
  t.getAppId() != null && t.getAppId() != "" && (n.value = t.getAppId());
6095
6095
  const o = E(), r = E(!1), i = E(!1), a = E({}), s = E([
6096
6096
  {
@@ -6122,7 +6122,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6122
6122
  style: { width: "55px", height: "25px", "border-radius": "5px", "font-size": "12px" }
6123
6123
  }, {
6124
6124
  default: ne(() => d[6] || (d[6] = [
6125
- Qe(" More")
6125
+ Ze(" More")
6126
6126
  ])),
6127
6127
  _: 1
6128
6128
  }, 512), [
@@ -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
- ], N = [
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)), _ = te(() => u.value.filter((oe) => oe.filterable)), D = (oe) => u.value.filter((Y) => {
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
- })), A = (oe) => {
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 = N;
6347
+ z = _;
6348
6348
  break;
6349
6349
  case "bool":
6350
6350
  case "boolean":
@@ -6411,7 +6411,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6411
6411
  };
6412
6412
  return (oe, Y) => {
6413
6413
  var Qt, cn;
6414
- const Ie = X("InputIcon"), rt = X("InputText"), Ve = X("IconField"), Be = X("Select"), Fe = X("Divider"), We = X("InputNumber"), Ft = X("DatePicker"), Xe = X("Button"), lt = X("Checkbox"), bt = X("Paginator"), Jt = Hr("tooltip");
6414
+ const Ie = X("InputIcon"), rt = X("InputText"), Ve = X("IconField"), Be = X("Select"), Fe = X("Divider"), We = X("InputNumber"), Ft = X("DatePicker"), Je = X("Button"), lt = X("Checkbox"), bt = X("Paginator"), Jt = Hr("tooltip");
6415
6415
  return b(), k(se, null, [
6416
6416
  v("div", op, [
6417
6417
  v("div", rp, [
@@ -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: D($t),
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) => A(me)
6493
+ onChange: (qe) => D(me)
6494
6494
  }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "onChange"])
6495
6495
  ])
6496
6496
  ]),
@@ -6536,14 +6536,14 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6536
6536
  ])
6537
6537
  ]),
6538
6538
  v("div", wp, [
6539
- K(Xe, {
6539
+ K(Je, {
6540
6540
  style: { width: "100px" },
6541
6541
  label: "Hide",
6542
6542
  icon: "",
6543
6543
  severity: "warning",
6544
6544
  onClick: (qe) => pe(me)
6545
6545
  }, null, 8, ["onClick"]),
6546
- K(Xe, {
6546
+ K(Je, {
6547
6547
  style: { width: "100px" },
6548
6548
  label: "Delete",
6549
6549
  icon: "",
@@ -6568,7 +6568,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6568
6568
  }, Z(me.value ? " " + me.value : " value"), 3)
6569
6569
  ], 64)) : (b(), k("span", Sp, "Filter is empty"))
6570
6570
  ]),
6571
- K(Xe, {
6571
+ K(Je, {
6572
6572
  style: { width: "100px" },
6573
6573
  label: "Edit",
6574
6574
  icon: "",
@@ -6581,15 +6581,15 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6581
6581
  v("div", Cp, [
6582
6582
  K(Fe),
6583
6583
  v("div", Ep, [
6584
- K(Xe, {
6584
+ K(Je, {
6585
6585
  style: { width: "100px" },
6586
6586
  label: "Add",
6587
- disabled: _.value.length === d.value.length,
6587
+ disabled: N.value.length === d.value.length,
6588
6588
  icon: "",
6589
6589
  severity: "success",
6590
6590
  onClick: ce
6591
6591
  }, null, 8, ["disabled"]),
6592
- K(Xe, {
6592
+ K(Je, {
6593
6593
  style: { width: "100px" },
6594
6594
  label: "Apply",
6595
6595
  severity: "info",
@@ -6611,7 +6611,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6611
6611
  value: me[l.value.name]
6612
6612
  }, null, 8, ["disabled", "modelValue", "value"]),
6613
6613
  v("div", Bp, [
6614
- Qe(Z(e.linkedEntity.entityName) + " ", 1),
6614
+ Ze(Z(e.linkedEntity.entityName) + " ", 1),
6615
6615
  v("span", null, Z(me[l.value.name]), 1)
6616
6616
  ]),
6617
6617
  T(me[l.value.name]) ? wt((b(), k("div", Rp, null, 512)), [
@@ -6637,7 +6637,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6637
6637
  K(Fe, { class: "mt-5" }),
6638
6638
  v("div", Pp, [
6639
6639
  v("div", Ap, [
6640
- K(Xe, {
6640
+ K(Je, {
6641
6641
  label: "Cancel",
6642
6642
  icon: "",
6643
6643
  severity: "secondary",
@@ -6645,7 +6645,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6645
6645
  })
6646
6646
  ]),
6647
6647
  v("div", _p, [
6648
- K(Xe, {
6648
+ K(Je, {
6649
6649
  label: "Save",
6650
6650
  severity: "success",
6651
6651
  onClick: W
@@ -6750,7 +6750,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6750
6750
  return b(), k("div", Lp, [
6751
6751
  K(O, {
6752
6752
  modelValue: Q(d),
6753
- "onUpdate:modelValue": L[0] || (L[0] = (W) => Gt(d) ? d.value = W : d = W),
6753
+ "onUpdate:modelValue": L[0] || (L[0] = (W) => Yt(d) ? d.value = W : d = W),
6754
6754
  "item-value": p.value.name,
6755
6755
  options: c.value.result,
6756
6756
  filter: "",
@@ -6883,13 +6883,13 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
6883
6883
  default: ne(() => [
6884
6884
  K(T, { value: "0" }, {
6885
6885
  default: ne(() => $[4] || ($[4] = [
6886
- Qe("Create new")
6886
+ Ze("Create new")
6887
6887
  ])),
6888
6888
  _: 1
6889
6889
  }),
6890
6890
  K(T, { value: "1" }, {
6891
6891
  default: ne(() => $[5] || ($[5] = [
6892
- Qe("Add existing")
6892
+ Ze("Add existing")
6893
6893
  ])),
6894
6894
  _: 1
6895
6895
  })
@@ -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 N;
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: (N = Q(c)[S.name]) == null ? void 0 : N.messages,
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
  ]);
@@ -7095,7 +7095,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7095
7095
  emits: ["onSaveDialog"],
7096
7096
  setup(e, { expose: t, emit: n }) {
7097
7097
  var B, U;
7098
- const o = Ze(), r = un(), i = e, a = E(!0), s = E(!1), u = E([]);
7098
+ const o = Xe(), r = un(), i = e, a = E(!0), s = E(!1), u = E([]);
7099
7099
  let l = (B = r == null ? void 0 : r.params) == null ? void 0 : B.entityName, c = (U = r == null ? void 0 : r.params) == null ? void 0 : U.id;
7100
7100
  i.entityName && (l = i.entityName), i.recordId && (c = i.recordId);
7101
7101
  const f = n, { formData: d, columns: p, errors: m, backendErrors: g, isDataChange: h, linkedEntities: y, primarayColumn: w, clearErrors: x, saveRecord: $, getRelatedEntityRecordById: T, cancleRecord: L } = oi(l, c, f);
@@ -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((N) => N.entityName === S);
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,11 +7128,11 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7128
7128
  { immediate: !0, deep: !0 }
7129
7129
  ), (S, I) => {
7130
7130
  var Ae;
7131
- const N = X("SplitterPanel"), P = X("Tab"), z = X("TabList"), J = X("TabPanel"), _ = X("TabPanels"), D = X("Tabs"), A = X("Splitter"), ie = X("Button");
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, [
7135
- fe(S.$slots, "list-item-display-360", Yt({
7135
+ fe(S.$slots, "list-item-display-360", Xt({
7136
7136
  [e.variable || ""]: {
7137
7137
  formData: Q(d),
7138
7138
  columns: Q(p),
@@ -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(A, {
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(N, {
7157
+ K(_, {
7158
7158
  size: 20,
7159
7159
  minSize: 10,
7160
7160
  maxSize: 20
@@ -7188,32 +7188,32 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7188
7188
  ]),
7189
7189
  _: 1
7190
7190
  }),
7191
- K(N, {
7191
+ K(_, {
7192
7192
  size: 55,
7193
7193
  minSize: 35,
7194
7194
  style: { height: "100%" }
7195
7195
  }, {
7196
7196
  default: ne(() => [
7197
- K(D, { value: "0" }, {
7197
+ K(A, { value: "0" }, {
7198
7198
  default: ne(() => [
7199
7199
  K(z, null, {
7200
7200
  default: ne(() => [
7201
7201
  K(P, { value: "0" }, {
7202
7202
  default: ne(() => I[3] || (I[3] = [
7203
- Qe("Overview")
7203
+ Ze("Overview")
7204
7204
  ])),
7205
7205
  _: 1
7206
7206
  }),
7207
7207
  K(P, { value: "1" }, {
7208
7208
  default: ne(() => I[4] || (I[4] = [
7209
- Qe("Activity")
7209
+ Ze("Activity")
7210
7210
  ])),
7211
7211
  _: 1
7212
7212
  })
7213
7213
  ]),
7214
7214
  _: 1
7215
7215
  }),
7216
- K(_, null, {
7216
+ K(N, null, {
7217
7217
  default: ne(() => [
7218
7218
  K(J, { value: "0" }, {
7219
7219
  default: ne(() => [
@@ -7289,7 +7289,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7289
7289
  onClick: I[1] || (I[1] = (ce) => Q($)())
7290
7290
  }, {
7291
7291
  default: ne(() => I[6] || (I[6] = [
7292
- Qe("Save")
7292
+ Ze("Save")
7293
7293
  ])),
7294
7294
  _: 1
7295
7295
  }),
@@ -7299,7 +7299,7 @@ const Gf = { key: 0 }, Yf = { key: 1 }, ii = {
7299
7299
  onClick: I[2] || (I[2] = (ce) => Q(L)())
7300
7300
  }, {
7301
7301
  default: ne(() => I[7] || (I[7] = [
7302
- Qe("Cancel")
7302
+ Ze("Cancel")
7303
7303
  ])),
7304
7304
  _: 1
7305
7305
  })
@@ -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 N = U[I];
7381
- if (N.primaryKey && N.primaryKey == !0) {
7382
- S = N;
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 N = U[I];
7392
- N.autoGenerated || (S[N.name] = "");
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 N = 0; N < I.length; N++) {
7399
- let P = I[N];
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(N) {
7418
+ test: function(_) {
7419
7419
  const P = [];
7420
7420
  let z = "";
7421
- if (I.required && (!N || N.trim() === ""))
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 && N.length > 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(N))
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), {}), N = Object.entries(I).reduce((z, [J, _]) => (z[J] = { messages: _.messages }, z), {});
7470
- return n(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 N, P, z;
7493
- const J = U.find((D) => I.includes(D));
7492
+ let _, P, z;
7493
+ const J = U.find((A) => I.includes(A));
7494
7494
  if (J)
7495
- [N, z] = I.split(J).map((D) => D.trim()), P = J;
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 _ = (W == null ? void 0 : W(z)) ?? z;
7499
- return console.log("Parsed filter:", { field: N, operator: P, value: _ }), {
7500
- columnName: N,
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"), N = X("Drawer");
7988
- return b(), H(N, {
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",
@@ -8393,7 +8393,7 @@ const qm = /* @__PURE__ */ tt(Hm, [["render", Wm]]), Km = { class: "my-2" }, Gm
8393
8393
  }
8394
8394
  },
8395
8395
  setup(e, { expose: t }) {
8396
- const n = nr(), o = Ze();
8396
+ const n = nr(), o = Xe();
8397
8397
  sn("entityObject", n);
8398
8398
  const r = e;
8399
8399
  return t({
@@ -8422,7 +8422,7 @@ const qm = /* @__PURE__ */ tt(Hm, [["render", Wm]]), Km = { class: "my-2" }, Gm
8422
8422
  (b(), H(Pe(e.listHeader || Ym))),
8423
8423
  (b(), H(Pe(e.listFilter || xt))),
8424
8424
  e.showAddButton ? (b(), H(St, { key: 0 })) : M("", !0),
8425
- (b(), H(Pe(e.listDisplay || Um), Yt(ho({ listItemDisplay: e.listItemDisplay })), null, 16)),
8425
+ (b(), H(Pe(e.listDisplay || Um), Xt(ho({ listItemDisplay: e.listItemDisplay })), null, 16)),
8426
8426
  (b(), H(Pe(e.listPagination || Dt))),
8427
8427
  (b(), H(Pe(e.listFooter || qm)))
8428
8428
  ], 64));
@@ -8430,8 +8430,8 @@ const qm = /* @__PURE__ */ tt(Hm, [["render", Wm]]), Km = { class: "my-2" }, Gm
8430
8430
  }
8431
8431
  };
8432
8432
  function bg() {
8433
- Ze();
8434
- const { get: e, post: t, put: n, del: o } = Xt();
8433
+ Xe();
8434
+ const { get: e, post: t, put: n, del: o } = zt();
8435
8435
  return {
8436
8436
  getActiveUser: async () => await e("/users/me"),
8437
8437
  getAppSecurity: async (h) => await e(`/api/app/v1/${h}/security`),
@@ -8768,7 +8768,7 @@ function Bg(e) {
8768
8768
  const a = Math.round(i / r);
8769
8769
  return n ? a : -a;
8770
8770
  }
8771
- function jt({ val: e, max: t, min: n }) {
8771
+ function Mt({ val: e, max: t, min: n }) {
8772
8772
  return t < n ? e : Math.min(Math.max(e, isNaN(n) ? e : n), isNaN(t) ? e : t);
8773
8773
  }
8774
8774
  function Rg(e) {
@@ -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(), D(), _();
9006
- }), I = Cr(/* @__PURE__ */ new Set()), N = E([]);
9005
+ U(), A(), N();
9006
+ }), I = Cr(/* @__PURE__ */ new Set()), _ = E([]);
9007
9007
  function P({ widthMultiplier: q, heightMultiplier: ee }) {
9008
- N.value = a.map((ue) => {
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,53 +9026,53 @@ 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(N.value.map((ee) => ee[B.value]));
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 D() {
9041
- !d.wrapAround && s.value > 0 && (p.value = jt({
9040
+ function A() {
9041
+ !d.wrapAround && s.value > 0 && (p.value = Mt({
9042
9042
  val: p.value,
9043
9043
  max: y.value,
9044
9044
  min: w.value
9045
- })), W.value || (d.itemsToShow = jt({
9045
+ })), W.value || (d.itemsToShow = Mt({
9046
9046
  val: Number(d.itemsToShow),
9047
9047
  max: s.value,
9048
9048
  min: 1
9049
9049
  }));
9050
9050
  }
9051
- const A = te(() => typeof e.ignoreAnimations == "string" ? e.ignoreAnimations.split(",") : Array.isArray(e.ignoreAnimations) ? e.ignoreAnimations : e.ignoreAnimations ? !1 : []);
9052
- Io(() => D()), 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(A.value) && A.value.includes(q.animationName)) && (I.add(ee), !ie)) {
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
- _(), ue();
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 && A.value !== !1 ? (document.addEventListener("animationstart", Ae), document.addEventListener("animationend", ce)) : (document.removeEventListener("animationstart", Ae), document.removeEventListener("animationend", ce));
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", _), u.value.removeEventListener("animationiteration", _));
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 = () => {
@@ -9098,7 +9098,7 @@ An({
9098
9098
  };
9099
9099
  function rt(q) {
9100
9100
  const ee = q.target.tagName;
9101
- if (["INPUT", "TEXTAREA", "SELECT"].includes(ee) || Xe.value || (pe = q.type === "touchstart", !pe && (q.preventDefault(), q.button !== 0)))
9101
+ if (["INPUT", "TEXTAREA", "SELECT"].includes(ee) || Je.value || (pe = q.type === "touchstart", !pe && (q.preventDefault(), q.button !== 0)))
9102
9102
  return;
9103
9103
  ke.x = "touches" in q ? q.touches[0].clientX : q.clientX, ke.y = "touches" in q ? q.touches[0].clientY : q.clientY;
9104
9104
  const ue = pe ? "touchmove" : "mousemove", le = pe ? "touchend" : "mouseup";
@@ -9114,7 +9114,7 @@ An({
9114
9114
  dragged: Se,
9115
9115
  effectiveSlideSize: L.value
9116
9116
  });
9117
- m.value = d.wrapAround ? p.value + le : jt({
9117
+ m.value = d.wrapAround ? p.value + le : Mt({
9118
9118
  val: p.value + le,
9119
9119
  max: y.value,
9120
9120
  min: w.value
@@ -9142,16 +9142,16 @@ An({
9142
9142
  function Ft() {
9143
9143
  We(), Fe();
9144
9144
  }
9145
- const Xe = E(!1);
9145
+ const Je = E(!1);
9146
9146
  function lt(q, ee = !1) {
9147
- if (!ee && Xe.value)
9147
+ if (!ee && Je.value)
9148
9148
  return;
9149
9149
  let ue = q, le = q;
9150
9150
  g.value = p.value, d.wrapAround ? le = yl({
9151
9151
  val: ue,
9152
9152
  max: y.value,
9153
9153
  min: w.value
9154
- }) : ue = jt({
9154
+ }) : ue = Mt({
9155
9155
  val: ue,
9156
9156
  max: y.value,
9157
9157
  min: w.value
@@ -9160,7 +9160,7 @@ An({
9160
9160
  currentSlideIndex: p.value,
9161
9161
  prevSlideIndex: g.value,
9162
9162
  slidesCount: s.value
9163
- }), We(), Xe.value = !0, p.value = ue, le !== ue && cn.pause(), n("update:modelValue", le), $ = setTimeout(() => {
9163
+ }), We(), Je.value = !0, p.value = ue, le !== ue && cn.pause(), n("update:modelValue", le), $ = setTimeout(() => {
9164
9164
  d.wrapAround && le !== ue && (cn.resume(), p.value = le, n("loop", {
9165
9165
  currentSlideIndex: p.value,
9166
9166
  slidingToIndex: q
@@ -9168,7 +9168,7 @@ An({
9168
9168
  currentSlideIndex: p.value,
9169
9169
  prevSlideIndex: g.value,
9170
9170
  slidesCount: s.value
9171
- }), Xe.value = !1, Ft();
9171
+ }), Je.value = !1, Ft();
9172
9172
  }, d.transition);
9173
9173
  }
9174
9174
  function bt(q = !1) {
@@ -9178,7 +9178,7 @@ An({
9178
9178
  lt(p.value - d.itemsToScroll, q);
9179
9179
  }
9180
9180
  function Qt() {
9181
- U(), D(), _(), Ft();
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 ? N.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(() => {
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 = N.value[ee]) === null || q === void 0 ? void 0 : q[B.value],
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,9 +9212,9 @@ An({
9212
9212
  }), R = te(() => {
9213
9213
  let q = 0;
9214
9214
  if (W.value) {
9215
- if (p.value < 0 ? q = N.value.slice(p.value).reduce((ee, ue) => ee + ue[B.value] + d.gap, 0) * -1 : q = N.value.slice(0, p.value).reduce((ee, ue) => ee + ue[B.value] + d.gap, 0), q -= qe.value, !d.wrapAround) {
9216
- const ee = N.value.reduce((ue, le) => ue + le[B.value] + d.gap, 0) - z.value[B.value] - d.gap;
9217
- q = jt({
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
+ q = Mt({
9218
9218
  val: q,
9219
9219
  max: ee,
9220
9220
  min: 0
@@ -9222,7 +9222,7 @@ An({
9222
9222
  }
9223
9223
  } else {
9224
9224
  let ee = p.value - qe.value;
9225
- d.wrapAround || (ee = jt({
9225
+ d.wrapAround || (ee = Mt({
9226
9226
  val: ee,
9227
9227
  max: s.value - +d.itemsToShow,
9228
9228
  min: 0
@@ -9237,12 +9237,12 @@ An({
9237
9237
  min: Math.floor(he),
9238
9238
  max: Math.ceil(he + Number(d.itemsToShow) - 1)
9239
9239
  } : {
9240
- min: Math.floor(jt({
9240
+ min: Math.floor(Mt({
9241
9241
  val: he,
9242
9242
  max: s.value - Number(d.itemsToShow),
9243
9243
  min: 0
9244
9244
  })),
9245
- max: Math.ceil(jt({
9245
+ max: Math.ceil(Mt({
9246
9246
  val: he + Number(d.itemsToShow) - 1,
9247
9247
  max: s.value - 1,
9248
9248
  min: 0
@@ -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 = N.value[nt]) === null || q === void 0 ? void 0 : q[B.value]) + d.gap, De++;
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 = N.value.slice(0, he).reduce((Me, nt) => Me + nt[B.value] + d.gap, 0) - Math.abs(R.value + $t.value) : De = N.value.slice(0, he).reduce((Me, nt) => Me + nt[B.value] + d.gap, 0) - Math.abs(R.value); De < z.value[B.value]; ) {
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 = N.value[Me]) === null || ee === void 0 ? void 0 : ee[B.value]) + d.gap, he++;
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,9 +9279,9 @@ An({
9279
9279
  let ue = R.value + ee;
9280
9280
  if (!d.wrapAround && d.preventExcessiveDragging) {
9281
9281
  let le = 0;
9282
- W.value ? le = N.value.reduce((Me, nt) => Me + nt[B.value], 0) : le = (s.value - Number(d.itemsToShow)) * L.value;
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
- ue = jt({
9284
+ ue = Mt({
9285
9285
  val: ue,
9286
9286
  min: he,
9287
9287
  max: De
@@ -9289,7 +9289,7 @@ An({
9289
9289
  }
9290
9290
  return `translate${q}(${ue}px)`;
9291
9291
  }), re = te(() => ({
9292
- "--vc-transition-duration": Xe.value ? Oo(d.transition, "ms") : void 0,
9292
+ "--vc-transition-duration": Je.value ? Oo(d.transition, "ms") : void 0,
9293
9293
  "--vc-slide-gap": Oo(d.gap),
9294
9294
  "--vc-carousel-height": Oo(d.height),
9295
9295
  "--vc-cloned-offset": Oo($t.value)
@@ -9297,7 +9297,7 @@ An({
9297
9297
  activeSlide: m,
9298
9298
  config: d,
9299
9299
  currentSlide: p,
9300
- isSliding: Xe,
9300
+ isSliding: Je,
9301
9301
  isVertical: V,
9302
9302
  maxSlide: y,
9303
9303
  minSlide: w,
@@ -9328,8 +9328,8 @@ An({
9328
9328
  restartCarousel: Qt,
9329
9329
  slideTo: lt,
9330
9330
  updateBreakpointsConfig: U,
9331
- updateSlideSize: _,
9332
- updateSlidesData: D
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({
@@ -9360,7 +9360,7 @@ An({
9360
9360
  `is-effect-${d.slideEffect}`,
9361
9361
  {
9362
9362
  "is-vertical": V.value,
9363
- "is-sliding": Xe.value,
9363
+ "is-sliding": Je.value,
9364
9364
  "is-dragging": ot.value,
9365
9365
  "is-hover": pt.value
9366
9366
  }
@@ -9685,7 +9685,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
9685
9685
  }
9686
9686
  },
9687
9687
  setup(e, { expose: t, emit: n }) {
9688
- const o = e, r = Ze(), i = new Ct();
9688
+ const o = e, r = Xe(), i = new Ct();
9689
9689
  E(null), E(null);
9690
9690
  const a = E("id"), s = E(1), u = E(25), l = E(0), c = E(null), f = n, d = E([]), p = E([]), m = E(!0), g = E(null), { hasMatchingRoleAndPermissions: h } = xn(), y = nr();
9691
9691
  sn("entityObject", y), ze(async () => {
@@ -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, N;
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 = ((N = (I = y == null ? void 0 : y.state) == null ? void 0 : I.data) == null ? void 0 : N.presets) || []) : console.error("Error fetching entity data:", z);
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, N;
9739
- (N = (I = y == null ? void 0 : y.state) == null ? void 0 : I.data) != null && N.result && y.state.data.result.push(S);
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, N;
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 = ((N = (I = z == null ? void 0 : z.response) == null ? void 0 : I.entity) == null ? void 0 : N.presets) || [], console.log("Fetched presets data:", p.value), y.setEntity(z.success ? z.response : { result: [] });
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 N, P, z;
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 = (N = Q(y)) == null ? void 0 : N.state) == null ? void 0 : P.data) == null ? void 0 : z.result) || [], (J) => fe(S.$slots, "list-item-display", Yt({
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", Xt({
9807
9807
  item: J,
9808
9808
  class: e.listItemClass,
9809
9809
  [e.variable || ""]: J
@@ -9826,7 +9826,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
9826
9826
  ], 64)) : (b(), k(se, { key: 1 }, [
9827
9827
  e.entityName ? M("", !0) : (b(), k("div", qg, [
9828
9828
  v("p", Kg, [
9829
- I[0] || (I[0] = Qe(" Error: Missing required props - ")),
9829
+ I[0] || (I[0] = Ze(" Error: Missing required props - ")),
9830
9830
  e.entityName ? M("", !0) : (b(), k("span", Gg, "Entity Name"))
9831
9831
  ])
9832
9832
  ])),
@@ -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, _) => (b(), k("div", { key: _ }, [
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,
@@ -10018,7 +10018,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
10018
10018
  }
10019
10019
  },
10020
10020
  setup(e, { expose: t }) {
10021
- const n = nr(), o = Ze();
10021
+ const n = nr(), o = Xe();
10022
10022
  sn("entityObject", n);
10023
10023
  const r = e, i = E([]);
10024
10024
  return $e(() => n.state.data, (u) => {
@@ -10042,7 +10042,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
10042
10042
  { immediate: !0 }
10043
10043
  ), (u, l) => {
10044
10044
  var c, f, d;
10045
- return b(), k("div", Yt(ho(u.$attrs)), [
10045
+ return b(), k("div", Xt(ho(u.$attrs)), [
10046
10046
  u.$slots["list-item-display-tile"] ? (b(), k(se, { key: 0 }, [
10047
10047
  fe(u.$slots, "header", {}, void 0, !0),
10048
10048
  e.showAddButton ? (b(), H(St, { key: 0 })) : M("", !0),
@@ -10052,7 +10052,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
10052
10052
  key: m,
10053
10053
  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"
10054
10054
  }, [
10055
- fe(u.$slots, "list-item-display-tile", Yt({ [e.dynamicPropName || ""]: p }), void 0, !0)
10055
+ fe(u.$slots, "list-item-display-tile", Xt({ [e.dynamicPropName || ""]: p }), void 0, !0)
10056
10056
  ]))), 128))
10057
10057
  ]),
10058
10058
  fe(u.$slots, "footer", {}, void 0, !0)
@@ -10070,7 +10070,7 @@ const Vg = { class: "flex items-center justify-between rounded-md w-full overflo
10070
10070
  e.showPagination ? (b(), H(Pe(e.listPagination || Dt), { key: 2 })) : M("", !0)
10071
10071
  ])) : (b(), k("div", mh, [
10072
10072
  v("p", gh, [
10073
- l[0] || (l[0] = Qe(" Error: Missing required props - ")),
10073
+ l[0] || (l[0] = Ze(" Error: Missing required props - ")),
10074
10074
  e.entityName ? M("", !0) : (b(), k("span", hh, "Entity Name"))
10075
10075
  ])
10076
10076
  ])),
@@ -10440,7 +10440,7 @@ var Gh = Object.defineProperty, Yh = Object.defineProperties, Xh = Object.getOwn
10440
10440
  for (var n of Uo(t))
10441
10441
  El.call(t, n) && ma(e, n, t[n]);
10442
10442
  return e;
10443
- }, Fn = (e, t) => Yh(e, Xh(t)), Mt = (e, t) => {
10443
+ }, Fn = (e, t) => Yh(e, Xh(t)), Ut = (e, t) => {
10444
10444
  var n = {};
10445
10445
  for (var o in e)
10446
10446
  Cl.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
@@ -10448,7 +10448,7 @@ var Gh = Object.defineProperty, Yh = Object.defineProperties, Xh = Object.getOwn
10448
10448
  for (var o of Uo(e))
10449
10449
  t.indexOf(o) < 0 && El.call(e, o) && (n[o] = e[o]);
10450
10450
  return n;
10451
- }, Jh = li(), Ht = Jh;
10451
+ }, Jh = li(), Wt = Jh;
10452
10452
  function ga(e, t) {
10453
10453
  tr(e) ? e.push(...t || []) : Vt(e) && Object.assign(e, t);
10454
10454
  }
@@ -10473,12 +10473,12 @@ function Ol(e, t = "", n = "", o = [], r) {
10473
10473
  const i = /{([^}]*)}/g, a = e.trim();
10474
10474
  if (eb(a))
10475
10475
  return;
10476
- if (Kt(a, i)) {
10476
+ if (Gt(a, i)) {
10477
10477
  const s = a.replaceAll(i, (c) => {
10478
- const d = c.replace(/{|}/g, "").split(".").filter((p) => !o.some((m) => Kt(p, m)));
10478
+ const d = c.replace(/{|}/g, "").split(".").filter((p) => !o.some((m) => Gt(p, m)));
10479
10479
  return `var(${$l(n, fl(d.join("-")))}${Te(r) ? `, ${r}` : ""})`;
10480
10480
  }), u = /(\d+\s+[\+\-\*\/]\s+\d+)/g, l = /var\([^)]+\)/g;
10481
- return Kt(s.replace(l, "0"), u) ? `calc(${s})` : s;
10481
+ return Gt(s.replace(l, "0"), u) ? `calc(${s})` : s;
10482
10482
  }
10483
10483
  return a;
10484
10484
  } else if (Mf(e))
@@ -10492,7 +10492,7 @@ function Tn(e, t) {
10492
10492
  }
10493
10493
  var Jn = (...e) => nb(_e.getTheme(), ...e), nb = (e = {}, t, n, o) => {
10494
10494
  if (t) {
10495
- const { variable: r, options: i } = _e.defaults || {}, { prefix: a, transform: s } = (e == null ? void 0 : e.options) || i || {}, l = Kt(t, /{([^}]*)}/g) ? t : `{${t}}`;
10495
+ const { variable: r, options: i } = _e.defaults || {}, { prefix: a, transform: s } = (e == null ? void 0 : e.options) || i || {}, l = Gt(t, /{([^}]*)}/g) ? t : `{${t}}`;
10496
10496
  return o === "value" || kn(o) && s === "strict" ? _e.getTokenValue(t) : Ol(l, void 0, a, [r.excludedKeyRegex], n);
10497
10497
  }
10498
10498
  return "";
@@ -10543,7 +10543,7 @@ var Jn = (...e) => nb(_e.getTheme(), ...e), nb = (e = {}, t, n, o) => {
10543
10543
  function ob(e, t = {}) {
10544
10544
  const n = _e.defaults.variable, { prefix: o = n.prefix, selector: r = n.selector, excludedKeyRegex: i = n.excludedKeyRegex } = t, a = (l, c = "") => Object.entries(l).reduce(
10545
10545
  (f, [d, p]) => {
10546
- const m = Kt(d, i) ? Vr(c) : Vr(c, fl(d)), g = Qh(p);
10546
+ const m = Gt(d, i) ? Vr(c) : Vr(c, fl(d)), g = Qh(p);
10547
10547
  if (Vt(g)) {
10548
10548
  const { variables: h, tokens: y } = a(g, m);
10549
10549
  ga(f.tokens, y), ga(f.variables, h);
@@ -10609,10 +10609,10 @@ 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: N } = I, P = Mt(I, ["dark"]), z = U || {}, { dark: J } = z, _ = Mt(z, ["dark"]), D = Te(T) ? this._toVariables({ primitive: T }, p) : {}, A = Te(W) ? this._toVariables({ semantic: W }, p) : {}, ie = Te(P) ? this._toVariables({ light: P }, p) : {}, Ae = Te(N) ? this._toVariables({ dark: N }, p) : {}, ce = Te(S) ? this._toVariables({ semantic: S }, p) : {}, be = Te(_) ? this._toVariables({ light: _ }, p) : {}, pe = Te(J) ? this._toVariables({ dark: J }, p) : {}, [ke, Se] = [(i = D.declarations) != null ? i : "", D.tokens], [pt, ot] = [(a = A.declarations) != null ? a : "", A.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 || []];
10612
+ const { primitive: T, semantic: L, extend: O } = d, C = L || {}, { colorScheme: V } = C, W = Ut(C, ["colorScheme"]), B = O || {}, { colorScheme: U } = B, S = Ut(B, ["colorScheme"]), I = V || {}, { dark: _ } = I, P = Ut(I, ["dark"]), z = U || {}, { dark: J } = z, N = Ut(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
- const Ft = this.transformCSS(e, `${pt}${Et}`, "light", "variable", p, o, r), Xe = this.transformCSS(e, `${oe}`, "dark", "variable", p, o, r);
10615
- h = `${Ft}${Xe}`, y = [.../* @__PURE__ */ new Set([...ot, ...ht, ...Y])];
10614
+ const Ft = this.transformCSS(e, `${pt}${Et}`, "light", "variable", p, o, r), Je = this.transformCSS(e, `${oe}`, "dark", "variable", p, o, r);
10615
+ h = `${Ft}${Je}`, y = [.../* @__PURE__ */ new Set([...ot, ...ht, ...Y])];
10616
10616
  const lt = this.transformCSS(e, `${Ie}${Ve}color-scheme:light`, "light", "variable", p, o, r), bt = this.transformCSS(e, `${Fe}color-scheme:dark`, "dark", "variable", p, o, r);
10617
10617
  w = `${lt}${bt}`, x = [.../* @__PURE__ */ new Set([...rt, ...Be, ...We])], $ = kt(d.css, { dt: Jn });
10618
10618
  }
@@ -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) : {}, [N, P] = [(s = U.declarations) != null ? s : "", U.tokens || []], [z, J] = [(u = S.declarations) != null ? u : "", S.tokens || []], [_, D] = [(l = I.declarations) != null ? l : "", I.tokens || []], A = this.transformCSS(p, `${N}${z}`, "light", "variable", n, r, i, a), ie = this.transformCSS(p, _, "dark", "variable", n, r, i, a);
10640
- c = `${A}${ie}`, f = [.../* @__PURE__ */ new Set([...P, ...J, ...D])], d = kt(y, { dt: Jn });
10639
+ const p = e.replace("-directive", ""), m = t, { colorScheme: g, extend: h, css: y } = m, w = Ut(m, ["colorScheme", "extend", "css"]), x = h || {}, { colorScheme: $ } = x, T = Ut(x, ["colorScheme"]), L = g || {}, { dark: O } = L, C = Ut(L, ["dark"]), V = $ || {}, { dark: W } = V, B = Ut(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,
@@ -10683,7 +10683,7 @@ var Ot = {
10683
10683
  },
10684
10684
  createTokens(e = {}, t, n = "", o = "", r = {}) {
10685
10685
  return Object.entries(e).forEach(([i, a]) => {
10686
- const s = Kt(i, t.variable.excludedKeyRegex) ? n : n ? `${n}.${Zi(i)}` : Zi(i), u = o ? `${o}.${i}` : i;
10686
+ const s = Gt(i, t.variable.excludedKeyRegex) ? n : n ? `${n}.${Zi(i)}` : Zi(i), u = o ? `${o}.${i}` : i;
10687
10687
  Vt(a) ? this.createTokens(a, t, s, u, r) : (r[s] || (r[s] = {
10688
10688
  paths: [],
10689
10689
  computed(l, c = {}) {
@@ -10697,13 +10697,13 @@ var Ot = {
10697
10697
  computed(l, c = {}) {
10698
10698
  const f = /{([^}]*)}/g;
10699
10699
  let d = a;
10700
- if (c.name = this.path, c.binding || (c.binding = {}), Kt(a, f)) {
10700
+ if (c.name = this.path, c.binding || (c.binding = {}), Gt(a, f)) {
10701
10701
  const m = a.trim().replaceAll(f, (y) => {
10702
10702
  var w;
10703
10703
  const x = y.replace(/{|}/g, ""), $ = (w = r[x]) == null ? void 0 : w.computed(l, c);
10704
10704
  return tr($) && $.length === 2 ? `light-dark(${$[0].value},${$[1].value})` : $ == null ? void 0 : $.value;
10705
10705
  }), g = /(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g, h = /var\([^)]+\)/g;
10706
- d = Kt(m.replace(h, "0"), g) ? `calc(${m})` : m;
10706
+ d = Gt(m.replace(h, "0"), g) ? `calc(${m})` : m;
10707
10707
  }
10708
10708
  return kn(c.binding) && delete c.binding, {
10709
10709
  colorScheme: l,
@@ -10717,9 +10717,9 @@ var Ot = {
10717
10717
  },
10718
10718
  getTokenValue(e, t, n) {
10719
10719
  var o;
10720
- const i = ((u) => u.split(".").filter((c) => !Kt(c.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(t), a = t.includes("colorScheme.light") ? "light" : t.includes("colorScheme.dark") ? "dark" : void 0, s = [(o = e[i]) == null ? void 0 : o.computed(a)].flat().filter((u) => u);
10720
+ const i = ((u) => u.split(".").filter((c) => !Gt(c.toLowerCase(), n.variable.excludedKeyRegex)).join("."))(t), a = t.includes("colorScheme.light") ? "light" : t.includes("colorScheme.dark") ? "dark" : void 0, s = [(o = e[i]) == null ? void 0 : o.computed(a)].flat().filter((u) => u);
10721
10721
  return s.length === 1 ? s[0].value : s.reduce((u = {}, l) => {
10722
- const c = l, { colorScheme: f } = c, d = Mt(c, ["colorScheme"]);
10722
+ const c = l, { colorScheme: f } = c, d = Ut(c, ["colorScheme"]);
10723
10723
  return u[f] = d, u;
10724
10724
  }, void 0);
10725
10725
  },
@@ -10786,19 +10786,19 @@ var Ot = {
10786
10786
  return this.theme;
10787
10787
  },
10788
10788
  setTheme(e) {
10789
- this.update({ theme: e }), Ht.emit("theme:change", e);
10789
+ this.update({ theme: e }), Wt.emit("theme:change", e);
10790
10790
  },
10791
10791
  getPreset() {
10792
10792
  return this.preset;
10793
10793
  },
10794
10794
  setPreset(e) {
10795
- this._theme = Fn(Ue({}, this.theme), { preset: e }), this._tokens = Ot.createTokens(e, this.defaults), this.clearLoadedStyleNames(), Ht.emit("preset:change", e), Ht.emit("theme:change", this.theme);
10795
+ this._theme = Fn(Ue({}, this.theme), { preset: e }), this._tokens = Ot.createTokens(e, this.defaults), this.clearLoadedStyleNames(), Wt.emit("preset:change", e), Wt.emit("theme:change", this.theme);
10796
10796
  },
10797
10797
  getOptions() {
10798
10798
  return this.options;
10799
10799
  },
10800
10800
  setOptions(e) {
10801
- this._theme = Fn(Ue({}, this.theme), { options: e }), this.clearLoadedStyleNames(), Ht.emit("options:change", e), Ht.emit("theme:change", this.theme);
10801
+ this._theme = Fn(Ue({}, this.theme), { options: e }), this.clearLoadedStyleNames(), Wt.emit("options:change", e), Wt.emit("theme:change", this.theme);
10802
10802
  },
10803
10803
  getLayerNames() {
10804
10804
  return [...this._layerNames];
@@ -10858,7 +10858,7 @@ var Ot = {
10858
10858
  this._loadingStyles.add(e);
10859
10859
  },
10860
10860
  onStyleLoaded(e, { name: t }) {
10861
- this._loadingStyles.size && (this._loadingStyles.delete(t), Ht.emit(`theme:${t}:load`, e), !this._loadingStyles.size && Ht.emit("theme:load"));
10861
+ this._loadingStyles.size && (this._loadingStyles.delete(t), Wt.emit(`theme:${t}:load`, e), !this._loadingStyles.size && Wt.emit("theme:load"));
10862
10862
  }
10863
10863
  };
10864
10864
  function rb(e) {
@@ -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
- }, N = function(J) {
10943
- var _ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
10942
+ }, _ = function(J) {
10943
+ var N = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
10944
10944
  if (s) {
10945
- var D = ba(ba({}, S), _), A = D.name || p, ie = D.id || g, Ae = D.nonce || x;
10946
- r.value = s.querySelector('style[data-primevue-style-id="'.concat(A, '"]')) || s.getElementById(ie) || s.createElement("style"), r.value.isConnected || (o.value = J || e, jo(r.value, {
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", A), jo(r.value, D), r.value.onload = function(ce) {
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: A
10953
+ name: D
10954
10954
  });
10955
- }, O == null || O(A)), !n.value && (I = $e(o, function(ce) {
10956
- r.value.textContent = ce, V == null || V(A);
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(N), {
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: N,
10970
+ load: _,
10971
10971
  isLoaded: ms(n)
10972
10972
  };
10973
10973
  }
@@ -11529,7 +11529,7 @@ var Sn = {
11529
11529
  _themeChangeListener: function() {
11530
11530
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
11531
11531
  };
11532
- on.clearLoadedStyleNames(), Ht.on("theme:change", t);
11532
+ on.clearLoadedStyleNames(), Wt.on("theme:change", t);
11533
11533
  },
11534
11534
  _getHostInstance: function(t) {
11535
11535
  return t ? this.$options.hostName ? t.$.type.name === this.$options.hostName ? t : this._getHostInstance(t.$parentInstance) : t.$parentInstance : void 0;
@@ -11994,7 +11994,7 @@ function Lb(e, t, n, o, r, i) {
11994
11994
  return b(), k("span", ae({
11995
11995
  class: e.cx("root")
11996
11996
  }, e.ptmi("root")), [fe(e.$slots, "default", {}, function() {
11997
- return [Qe(Z(e.value), 1)];
11997
+ return [Ze(Z(e.value), 1)];
11998
11998
  })], 16);
11999
11999
  }
12000
12000
  Pl.render = Lb;
@@ -12193,7 +12193,7 @@ var xe = {
12193
12193
  _themeChangeListener: function() {
12194
12194
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function() {
12195
12195
  };
12196
- on.clearLoadedStyleNames(), Ht.on("theme:change", t);
12196
+ on.clearLoadedStyleNames(), Wt.on("theme:change", t);
12197
12197
  },
12198
12198
  _hook: function(t, n, o, r, i, a) {
12199
12199
  var s, u, l = "on".concat(Hf(n)), c = xe._getConfig(r, i), f = o == null ? void 0 : o.$instance, d = xe._usePT(f, xe._getPT(r == null || (s = r.value) === null || s === void 0 ? void 0 : s.pt, t), xe._getOptionValue, "hooks.".concat(l)), p = xe._useDefaultPT(f, c == null || (u = c.pt) === null || u === void 0 || (u = u.directives) === null || u === void 0 ? void 0 : u[t], xe._getOptionValue, "hooks.".concat(l)), m = {
@@ -13445,29 +13445,29 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
13445
13445
  }
13446
13446
  },
13447
13447
  setup(e, { expose: t, emit: n }) {
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();
13448
+ const o = Xe(), 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 = (N) => {
13450
+ const w = E(null), x = (_) => {
13451
13451
  const P = w.value;
13452
- P && (P.scrollLeft += N * 266);
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, (N) => {
13457
- N && (d.value = N, i("linkedEntityChanged", N));
13458
- }, { immediate: !0 }) : $e(() => y.state.data, (N) => {
13459
- N && (d.value = N.result, i("linkedEntityChanged", N.result));
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 $ = (N) => {
13462
- f.value = N, y.state.data.filters = N, C(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 (N, P) => {
13466
- s.value = N, u.value = P, f.value = y.state.data.filters ? y.state.data.filters : f.value, C(f.value);
13467
- }, O = (N) => {
13468
- l.value = N, f.value = y.state.data.filters ? y.state.data.filters : f.value, C(f.value);
13469
- }, C = async (N) => {
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: N,
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 = ((_ = (J = y == null ? void 0 : y.state) == null ? void 0 : J.data) == null ? void 0 : _.presets) || []) : console.error("Error fetching entity data:", z);
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 N = y.parsePrefilter(a.preFiltered);
13487
- N.length && C(N);
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: (N) => {
13495
- console.log("filter data in unordered", N);
13494
+ filter: (_) => {
13495
+ console.log("filter data in unordered", _);
13496
13496
  },
13497
- addToCurrentList: (N) => {
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(N);
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: (N) => {
13502
- const P = y.state.data.result.indexOf(N);
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 (N) => {
13511
+ async (_) => {
13512
13512
  var P, z;
13513
- if (N) {
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 (N) => {
13525
- const P = await y.applyPreset(N, a.entityName);
13524
+ const I = async (_) => {
13525
+ const P = await y.applyPreset(_, a.entityName);
13526
13526
  y.state.data = P || {};
13527
13527
  };
13528
- return (N, P) => (b(), k("div", Yt(ho(N.$attrs)), [
13529
- N.$slots["list-item-display"] ? (b(), k(se, { key: 0 }, [
13530
- fe(N.$slots, "header", {}, void 0, !0),
13528
+ return (_, P) => (b(), k("div", Xt(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(N.$slots, "list-item-display", { item: z }, void 0, !0)
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(N.$slots, "footer", {}, void 0, !0)
13594
+ fe(_.$slots, "footer", {}, void 0, !0)
13595
13595
  ], 64)) : (b(), k(se, { key: 1 }, [
13596
- fe(N.$slots, "header", {}, void 0, !0),
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, [
@@ -13649,11 +13649,11 @@ const u0 = { class: "flex items-center justify-between rounded-md w-full overflo
13649
13649
  ])) : M("", !0)
13650
13650
  ])) : (b(), k("div", b0, [
13651
13651
  v("p", y0, [
13652
- P[4] || (P[4] = Qe(" Error: Missing required props - ")),
13652
+ P[4] || (P[4] = Ze(" Error: Missing required props - ")),
13653
13653
  e.entityName ? M("", !0) : (b(), k("span", v0, "Entity Name"))
13654
13654
  ])
13655
13655
  ])),
13656
- fe(N.$slots, "footer", {}, void 0, !0)
13656
+ fe(_.$slots, "footer", {}, void 0, !0)
13657
13657
  ], 64))
13658
13658
  ], 16));
13659
13659
  }
@@ -15360,172 +15360,172 @@ const za = /* @__PURE__ */ tl(Ny), ja = {
15360
15360
  }
15361
15361
  };
15362
15362
  function Ly() {
15363
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
15363
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
15364
15364
  return {
15365
15365
  getEntities: async () => {
15366
- const _ = i();
15367
- return await t(`/api/app/v1/${_}/entity`);
15368
- },
15369
- getEntity: async (_) => {
15370
- const D = i();
15371
- return await t(`/api/app/v1/${D}/entity/${_}`);
15366
+ const N = i();
15367
+ return await t(`/api/app/v1/${N}/entity`);
15372
15368
  },
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
- updateEntityGeneralSettings: async (_, D) => {
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/${A}/entity/${_}/rename`,
15381
- D
15380
+ `/api/app/v1/${D}/entity/${N}/rename`,
15381
+ A
15382
15382
  );
15383
15383
  },
15384
- updateEntityAuditable: async (_, D) => {
15385
- const A = i();
15384
+ updateEntityAuditable: async (N, A) => {
15385
+ const D = i();
15386
15386
  return await o(
15387
- `/api/app/v1/${A}/entity/${_}/auditable`,
15388
- D
15387
+ `/api/app/v1/${D}/entity/${N}/auditable`,
15388
+ A
15389
15389
  );
15390
15390
  },
15391
- updateEntityRevisionEnabled: async (_, D) => {
15392
- const A = i();
15391
+ updateEntityRevisionEnabled: async (N, A) => {
15392
+ const D = i();
15393
15393
  return await o(
15394
- `/api/app/v1/${A}/entity/${_}/revision`,
15395
- D
15394
+ `/api/app/v1/${D}/entity/${N}/revision`,
15395
+ A
15396
15396
  );
15397
15397
  },
15398
- updateEntitySoftDelete: async (_, D) => {
15399
- const A = i();
15398
+ updateEntitySoftDelete: async (N, A) => {
15399
+ const D = i();
15400
15400
  return await o(
15401
- `/api/app/v1/${A}/entity/${_}/soft-delete`,
15402
- D
15401
+ `/api/app/v1/${D}/entity/${N}/soft-delete`,
15402
+ A
15403
15403
  );
15404
15404
  },
15405
- updateEntityDeleteProtected: async (_, D) => {
15406
- const A = i();
15405
+ updateEntityDeleteProtected: async (N, A) => {
15406
+ const D = i();
15407
15407
  return await o(
15408
- `/api/app/v1/${A}/entity/${_}/delete-protect`,
15409
- D
15408
+ `/api/app/v1/${D}/entity/${N}/delete-protect`,
15409
+ A
15410
15410
  );
15411
15411
  },
15412
- updateEntityColumn: async (_, D) => {
15413
- const A = i();
15412
+ updateEntityColumn: async (N, A) => {
15413
+ const D = i();
15414
15414
  return await o(
15415
- `/api/app/v1/${A}/entity/${_}/column`,
15416
- D
15415
+ `/api/app/v1/${D}/entity/${N}/column`,
15416
+ A
15417
15417
  );
15418
15418
  },
15419
- saveEntityColumn: async (_, D) => {
15420
- const A = i();
15419
+ saveEntityColumn: async (N, A) => {
15420
+ const D = i();
15421
15421
  return await n(
15422
- `/api/app/v1/${A}/entity/${_}/column`,
15423
- D
15422
+ `/api/app/v1/${D}/entity/${N}/column`,
15423
+ A
15424
15424
  );
15425
15425
  },
15426
- dropEntityColumn: async (_, D) => {
15427
- const A = i();
15426
+ dropEntityColumn: async (N, A) => {
15427
+ const D = i();
15428
15428
  return await r(
15429
- `/api/app/v1/${A}/entity/${_}/column/${D}`
15429
+ `/api/app/v1/${D}/entity/${N}/column/${A}`
15430
15430
  );
15431
15431
  },
15432
- saveForeignKey: async (_, D) => {
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 r(`/api/app/v1/${D}/entity/foreignKey`, _);
15434
+ return await o(`/api/app/v1/${D}/entity/foreignKey`, A);
15439
15435
  },
15440
- saveUniqueConstraint: async (_, D) => {
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/${A}/entity/${_}/column/${D}/constraint`
15443
+ `/api/app/v1/${D}/entity/${N}/column/${A}/constraint`
15444
15444
  );
15445
15445
  },
15446
- dropUniqueConstraint: async (_, D) => {
15447
- const A = i();
15446
+ dropUniqueConstraint: async (N, A) => {
15447
+ const D = i();
15448
15448
  return await r(
15449
- `/api/app/v1/${A}/entity/${_}/column/${D}/constraint`
15449
+ `/api/app/v1/${D}/entity/${N}/column/${A}/constraint`
15450
15450
  );
15451
15451
  },
15452
- saveIndex: async (_, D) => {
15453
- const A = i();
15452
+ saveIndex: async (N, A) => {
15453
+ const D = i();
15454
15454
  return await n(
15455
- `/api/app/v1/${A}/entity/${_}/column-index`,
15456
- D
15455
+ `/api/app/v1/${D}/entity/${N}/column-index`,
15456
+ A
15457
15457
  );
15458
15458
  },
15459
- dropIndex: async (_, D) => {
15460
- const A = i();
15459
+ dropIndex: async (N, A) => {
15460
+ const D = i();
15461
15461
  return await r(
15462
- `/api/app/v1/${A}/entity/${_}/column-index`,
15463
- D
15462
+ `/api/app/v1/${D}/entity/${N}/column-index`,
15463
+ A
15464
15464
  );
15465
15465
  },
15466
- deleteEntity: async (_) => {
15467
- const D = i();
15468
- return await r(`/api/app/v1/${D}/entity/${_}`);
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
- saveEntityEvent: async (_, D) => {
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/${A}/entity/${_}/event`,
15478
- D
15477
+ `/api/app/v1/${D}/entity/${N}/event`,
15478
+ A
15479
15479
  );
15480
15480
  },
15481
- deleteEntityEvent: async (_, D) => {
15482
- const A = i();
15483
- return await r(`/api/app/v1/${A}/entity/${_}/event/${D}`);
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 (_, D, A) => {
15485
+ updateEntityEvent: async (N, A, D) => {
15486
15486
  const ie = i();
15487
15487
  return await o(
15488
- `/api/app/v1/${ie}/entity/${_}/event/${D}`,
15489
- A
15488
+ `/api/app/v1/${ie}/entity/${N}/event/${A}`,
15489
+ D
15490
15490
  );
15491
15491
  },
15492
15492
  getActionTypes: async () => {
15493
- const _ = i();
15494
- return await t(`/api/app/v1/${_}/action-type`);
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
- enableCache: async (_, D) => {
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/${A}/entity/${_}/enableCache`,
15504
- D
15503
+ `/api/app/v1/${D}/entity/${N}/enableCache`,
15504
+ A
15505
15505
  );
15506
15506
  },
15507
- addOrUpdatePresets: async (_, D) => {
15508
- const A = i();
15507
+ addOrUpdatePresets: async (N, A) => {
15508
+ const D = i();
15509
15509
  return await n(
15510
- `/api/app/v1/${A}/entity/${_}/preset`,
15511
- D
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/${A}/entity/${_}/preset/${D}`
15521
+ `/api/app/v1/${D}/entity/${N}/preset/${A}`
15522
15522
  );
15523
15523
  },
15524
- validateSqlScript: async (_) => {
15525
- const D = i();
15524
+ validateSqlScript: async (N) => {
15525
+ const A = i();
15526
15526
  return await n(
15527
- `/api/app/v1/${D}/entity/validate-sql`,
15528
- _
15527
+ `/api/app/v1/${A}/entity/validate-sql`,
15528
+ N
15529
15529
  );
15530
15530
  }
15531
15531
  };
@@ -15568,7 +15568,7 @@ const Vy = /* @__PURE__ */ Kr("entitiesStore", {
15568
15568
  onEntityChangeCallback: Function
15569
15569
  },
15570
15570
  setup(e) {
15571
- const t = Ze(), n = E(""), o = Vy(), r = E([]), i = async () => {
15571
+ const t = Xe(), n = E(""), o = Vy(), r = E([]), i = async () => {
15572
15572
  r.value = await o.getEntities(), a();
15573
15573
  }, a = () => {
15574
15574
  for (let u = 0; u < r.value.length; u++) {
@@ -15646,7 +15646,7 @@ const Vy = /* @__PURE__ */ Kr("entitiesStore", {
15646
15646
  }
15647
15647
  };
15648
15648
  function Gy() {
15649
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
15649
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
15650
15650
  return {
15651
15651
  getAllMenu: async () => {
15652
15652
  const d = i();
@@ -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, N, P) {
17160
- return B <= N ? N : P ? S - I - N : U + N - 1;
17161
- }, c = function(B, U, S, I, N, P, z) {
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, N, P) {
17164
- var z = U + I + 2 * N;
17165
- return B >= N && (z += N + 1), n.getLast(z, P);
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
@@ -17968,13 +17968,13 @@ var Zl = {
17968
17968
  return this.virtualScrollerDisabled ? t : n && n(t).index;
17969
17969
  },
17970
17970
  getOptionLabel: function(t) {
17971
- return this.optionLabel ? Wt(t, this.optionLabel) : t;
17971
+ return this.optionLabel ? qt(t, this.optionLabel) : t;
17972
17972
  },
17973
17973
  getOptionValue: function(t) {
17974
- return this.optionValue ? Wt(t, this.optionValue) : t;
17974
+ return this.optionValue ? qt(t, this.optionValue) : t;
17975
17975
  },
17976
17976
  getOptionRenderKey: function(t, n) {
17977
- return (this.dataKey ? Wt(t, this.dataKey) : this.getOptionLabel(t)) + "_" + n;
17977
+ return (this.dataKey ? qt(t, this.dataKey) : this.getOptionLabel(t)) + "_" + n;
17978
17978
  },
17979
17979
  getPTItemOptions: function(t, n, o, r) {
17980
17980
  return this.ptm(r, {
@@ -17988,16 +17988,16 @@ var Zl = {
17988
17988
  });
17989
17989
  },
17990
17990
  isOptionDisabled: function(t) {
17991
- return this.optionDisabled ? Wt(t, this.optionDisabled) : !1;
17991
+ return this.optionDisabled ? qt(t, this.optionDisabled) : !1;
17992
17992
  },
17993
17993
  isOptionGroup: function(t) {
17994
17994
  return this.optionGroupLabel && t.optionGroup && t.group;
17995
17995
  },
17996
17996
  getOptionGroupLabel: function(t) {
17997
- return Wt(t, this.optionGroupLabel);
17997
+ return qt(t, this.optionGroupLabel);
17998
17998
  },
17999
17999
  getOptionGroupChildren: function(t) {
18000
- return Wt(t, this.optionGroupChildren);
18000
+ return qt(t, this.optionGroupChildren);
18001
18001
  },
18002
18002
  getAriaPosInset: function(t) {
18003
18003
  var n = this;
@@ -18571,7 +18571,7 @@ function Zv(e, t, n, o, r, i) {
18571
18571
  placeholder: e.placeholder
18572
18572
  }, function() {
18573
18573
  var h;
18574
- return [Qe(Z(i.label === "p-emptylabel" ? " " : (h = i.label) !== null && h !== void 0 ? h : "empty"), 1)];
18574
+ return [Ze(Z(i.label === "p-emptylabel" ? " " : (h = i.label) !== null && h !== void 0 ? h : "empty"), 1)];
18575
18575
  })], 16, Yv)), i.isClearIconVisible ? fe(e.$slots, "clearicon", {
18576
18576
  key: 2,
18577
18577
  class: ye(e.cx("clearIcon")),
@@ -18681,7 +18681,7 @@ function Zv(e, t, n, o, r, i) {
18681
18681
  return [e.filterIcon ? (b(), k("span", ae({
18682
18682
  key: 0,
18683
18683
  class: e.filterIcon
18684
- }, e.ptm("filterIcon")), null, 16)) : (b(), H(u, Yt(ae({
18684
+ }, e.ptm("filterIcon")), null, 16)) : (b(), H(u, Xt(ae({
18685
18685
  key: 1
18686
18686
  }, e.ptm("filterIcon"))), null, 16))];
18687
18687
  })];
@@ -18795,7 +18795,7 @@ function Zv(e, t, n, o, r, i) {
18795
18795
  }, e.ptm("emptyMessage"), {
18796
18796
  "data-p-hidden-accessible": !0
18797
18797
  }), [fe(e.$slots, "emptyfilter", {}, function() {
18798
- return [Qe(Z(i.emptyFilterMessageText), 1)];
18798
+ return [Ze(Z(i.emptyFilterMessageText), 1)];
18799
18799
  })], 16)) : !e.options || e.options && e.options.length === 0 ? (b(), k("li", ae({
18800
18800
  key: 1,
18801
18801
  class: e.cx("emptyMessage"),
@@ -18803,7 +18803,7 @@ function Zv(e, t, n, o, r, i) {
18803
18803
  }, e.ptm("emptyMessage"), {
18804
18804
  "data-p-hidden-accessible": !0
18805
18805
  }), [fe(e.$slots, "empty", {}, function() {
18806
- return [Qe(Z(i.emptyMessageText), 1)];
18806
+ return [Ze(Z(i.emptyMessageText), 1)];
18807
18807
  })], 16)) : M("", !0)], 16, Xv)];
18808
18808
  }),
18809
18809
  _: 2
@@ -18912,7 +18912,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
18912
18912
  }),
18913
18913
  emits: /* @__PURE__ */ Le(["update:modelValue", "onChange"], ["update:modelValue"]),
18914
18914
  setup(e, { emit: t }) {
18915
- const n = Ze(), o = () => n.getAppId(), r = e;
18915
+ const n = Xe(), o = () => n.getAppId(), r = e;
18916
18916
  console.log("DynamicSelection props:", r);
18917
18917
  const i = t, a = Ke(e, "modelValue"), s = E(null), u = E([]), l = te(
18918
18918
  () => r.options.length ? "label" : r.displayField
@@ -19192,7 +19192,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
19192
19192
  },
19193
19193
  emits: ["update:modelValue", "onChange"],
19194
19194
  setup(e, { emit: t }) {
19195
- const n = Ze(), o = () => n.getAppId(), r = e;
19195
+ const n = Xe(), o = () => n.getAppId(), r = e;
19196
19196
  console.log("DynamicMultiSelection props:", r);
19197
19197
  const i = t, a = E(Array.isArray(r.modelValue) ? [...r.modelValue] : []), s = E([]), u = te(
19198
19198
  () => r.options.length ? "label" : r.displayField
@@ -19398,7 +19398,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
19398
19398
  }
19399
19399
  },
19400
19400
  setup(e) {
19401
- return (t, n) => (b(), k("div", Yt(ho(t.$attrs)), [
19401
+ return (t, n) => (b(), k("div", Xt(ho(t.$attrs)), [
19402
19402
  v("span", {
19403
19403
  style: Qn({ fontSize: e.labelFontSize + "px", textAlign: t.textAlign })
19404
19404
  }, Z(e.label), 5)
@@ -19759,7 +19759,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
19759
19759
  darkTheme: !1,
19760
19760
  menuMode: "slim-plus",
19761
19761
  menuTheme: "light"
19762
- }), Je = Nt({
19762
+ }), Qe = Nt({
19763
19763
  staticMenuDesktopInactive: !1,
19764
19764
  overlayMenuActive: !1,
19765
19765
  configSidebarVisible: !1,
@@ -19774,7 +19774,7 @@ const e1 = { class: "editable-label-editing flex items-center gap-2 w-full" }, e
19774
19774
  });
19775
19775
  function M1() {
19776
19776
  const e = (p) => {
19777
- if (st.menuMode = p, p === "static" && (Je.staticMenuDesktopInactive = !1), p === "horizontal")
19777
+ if (st.menuMode = p, p === "static" && (Qe.staticMenuDesktopInactive = !1), p === "horizontal")
19778
19778
  if (st.darkTheme) {
19779
19779
  if (!document.startViewTransition) {
19780
19780
  st.menuTheme = "dark";
@@ -19789,15 +19789,15 @@ function M1() {
19789
19789
  document.startViewTransition(() => st.menuTheme = "light");
19790
19790
  }
19791
19791
  }, t = (p) => {
19792
- Je.activeMenuItem = p.value || p;
19792
+ Qe.activeMenuItem = p.value || p;
19793
19793
  }, n = () => {
19794
- st.menuMode === "overlay" && (Je.overlayMenuActive = !Je.overlayMenuActive), window.innerWidth > 991 ? Je.staticMenuDesktopInactive = !Je.staticMenuDesktopInactive : Je.staticMenuMobileActive = !Je.staticMenuMobileActive;
19794
+ st.menuMode === "overlay" && (Qe.overlayMenuActive = !Qe.overlayMenuActive), window.innerWidth > 991 ? Qe.staticMenuDesktopInactive = !Qe.staticMenuDesktopInactive : Qe.staticMenuMobileActive = !Qe.staticMenuMobileActive;
19795
19795
  }, o = () => {
19796
- r.value && (Je.overlayMenuActive = !1, Je.overlaySubmenuActive = !1, Je.staticMenuMobileActive = !1, Je.menuHoverActive = !1, Je.configSidebarVisible = !1), Je.configSidebarVisible = !Je.configSidebarVisible;
19797
- }, r = te(() => Je.overlayMenuActive || Je.staticMenuMobileActive || Je.overlaySubmenuActive), i = te(() => window.innerWidth > 991), a = te(() => st.menuMode === "slim"), s = te(() => st.menuMode === "slim-plus"), u = te(() => st.menuMode === "horizontal"), l = te(() => st.menuMode === "overlay"), c = te(() => st.darkTheme), f = te(() => st.primary), d = te(() => st.surface);
19796
+ r.value && (Qe.overlayMenuActive = !1, Qe.overlaySubmenuActive = !1, Qe.staticMenuMobileActive = !1, Qe.menuHoverActive = !1, Qe.configSidebarVisible = !1), Qe.configSidebarVisible = !Qe.configSidebarVisible;
19797
+ }, r = te(() => Qe.overlayMenuActive || Qe.staticMenuMobileActive || Qe.overlaySubmenuActive), i = te(() => window.innerWidth > 991), a = te(() => st.menuMode === "slim"), s = te(() => st.menuMode === "slim-plus"), u = te(() => st.menuMode === "horizontal"), l = te(() => st.menuMode === "overlay"), c = te(() => st.darkTheme), f = te(() => st.primary), d = te(() => st.surface);
19798
19798
  return {
19799
19799
  layoutConfig: st,
19800
- layoutState: Je,
19800
+ layoutState: Qe,
19801
19801
  getPrimary: f,
19802
19802
  getSurface: d,
19803
19803
  isDarkTheme: c,
@@ -25287,7 +25287,7 @@ function zk() {
25287
25287
  } };
25288
25288
  }
25289
25289
  function jk() {
25290
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25290
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25291
25291
  return {
25292
25292
  getThemes: async () => {
25293
25293
  const f = i();
@@ -25309,14 +25309,14 @@ function jk() {
25309
25309
  };
25310
25310
  }
25311
25311
  function Mk() {
25312
- const { get: e } = Xt();
25312
+ const { get: e } = zt();
25313
25313
  return {
25314
25314
  getPlatformComponents: async () => await e("/api/platform/v1/search/COMPONENT_PALLET?page=0&size=50&continue"),
25315
25315
  getComponentTemplates: async (o) => await e(`api/platform/v1/search/COMPONENT_TEMPLATE?keyword=${o}&page=0&size=50`)
25316
25316
  };
25317
25317
  }
25318
25318
  function Uk() {
25319
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25319
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25320
25320
  return {
25321
25321
  getPage: async (f) => {
25322
25322
  const d = i();
@@ -25341,7 +25341,7 @@ function Uk() {
25341
25341
  };
25342
25342
  }
25343
25343
  function Hk() {
25344
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25344
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25345
25345
  return {
25346
25346
  getLayouts: async () => {
25347
25347
  const f = i();
@@ -25366,7 +25366,7 @@ function Hk() {
25366
25366
  };
25367
25367
  }
25368
25368
  function Wk() {
25369
- const e = Ze(), { get: t, post: n, put: o, del: r } = Xt(), i = () => e.getAppId();
25369
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25370
25370
  return {
25371
25371
  getGlobalVars: async () => {
25372
25372
  const d = i();
@@ -25394,6 +25394,31 @@ function Wk() {
25394
25394
  }
25395
25395
  };
25396
25396
  }
25397
+ function qk() {
25398
+ const e = Xe(), { get: t, post: n, put: o, del: r } = zt(), i = () => e.getAppId();
25399
+ return {
25400
+ getConnectionByID: async (f) => {
25401
+ const d = i();
25402
+ return await t(`/api/app/v1/${d}/external-connection/${f}`);
25403
+ },
25404
+ createConnection: async (f) => {
25405
+ const d = i();
25406
+ return await n(`/api/app/v1/${d}/external-connection`, f);
25407
+ },
25408
+ updateConnection: async (f, d) => {
25409
+ const p = i();
25410
+ return await o(`/api/app/v1/${p}/external-connection/${f}`, d);
25411
+ },
25412
+ deleteConnection: async (f) => {
25413
+ const d = i();
25414
+ return await r(`/api/app/v1/${d}/external-connection/${f}`);
25415
+ },
25416
+ getAllConnections: async (f) => {
25417
+ const d = i();
25418
+ return await t(`/api/app/v1/${d}/external-connection`);
25419
+ }
25420
+ };
25421
+ }
25397
25422
  const Tk = { style: {
25398
25423
  position: "fixed",
25399
25424
  top: 0,
@@ -25489,7 +25514,7 @@ const Tk = { style: {
25489
25514
  ]));
25490
25515
  }
25491
25516
  };
25492
- function qk({
25517
+ function Kk({
25493
25518
  type: e = "danger",
25494
25519
  title: t = "Warning",
25495
25520
  message: n = "All the changes you made will be lost, do you wish to continue?",
@@ -25529,24 +25554,25 @@ function qk({
25529
25554
  });
25530
25555
  s.mount(a);
25531
25556
  }
25532
- const Kk = {
25557
+ const Gk = {
25533
25558
  install(e, t) {
25534
25559
  e.component("CSEntityGrid", Dr), e.component("csentitygrid", Dr), e.component("CSEntityList", ia), e.component("csentitylist", ia), e.component("CSFieldExpression", ja), e.component("csfieldexpression", ja), e.component("CSEntity360View", na), e.component("csentity360view", na), e.component("CSEntityListing", fa), e.component("csentitylisting", fa), e.component("CSEntityListingTile", pa), e.component("csentitylistingtile", pa), e.component("CSEntityListingCarousel", Ra), e.component("csentitylistingcarousel", Ra), e.component("CSEntitySelection", ns), e.component("csentityselection", ns), e.component("CSEntityExplorer", Ma), e.component("csentityexplorer", Ma), e.component("CSMenu", Ua), e.component("csmenu", Ua), e.component("CSTextInput", Ha), e.component("cstextinput", Ha), e.component("CSButton", Wa), e.component("csbutton", Wa), e.component("CSStateText", qa), e.component("csstatetext", qa), e.component("CSColorPicker", Ka), e.component("cscolorpicker", Ka), e.component("CSRangeInput", Ga), e.component("csrangeinput", Ga), e.component("CSSelector", es), e.component("csselector", es), e.component("CSDynamicSelection", mo), e.component("csdynamicselection", mo), e.component("CSEntityRecordSelection", ts), e.component("csentityrecordselection", ts), e.component("CSMenuSelection", os), e.component("csmenuSelection", os), e.component("CSlabel", as), e.component("cslabel", as), e.component("CSLogin", ss), e.component("cslogin", ss), e.component("CSSignup", ls), e.component("cssignup", ls), e.component("CSRolesSelection", rs), e.component("csrolesselection", rs), e.component("CSPermissionSelection", is), e.component("cspermissionselection", is), e.component("CSIconSelection", us), e.component("csiconselection", us), e.component("CSIconComponent", cs), e.component("csiconcomponent", cs), e.component("CSInputText", di), e.component("csinputtext", di), e.component("CSInputNumber", fi), e.component("csinputnumber", fi), e.component("CSToggleButton", pi), e.component("cstogglebutton", pi), e.component("CSRadioButton", mi), e.component("csradiobutton", mi);
25535
25560
  }
25536
25561
  };
25537
25562
  export {
25538
- Kk as default,
25539
- qk as openGlobalDialog,
25563
+ Gk as default,
25564
+ Kk as openGlobalDialog,
25540
25565
  Vk as useAddEntityRecord,
25541
25566
  Mk as useComponentService,
25567
+ qk as useConnectionService,
25542
25568
  zk as useDeleteEntityRecord,
25543
25569
  Vy as useEntitiesStore,
25544
25570
  Ct as useEntityRecordService,
25545
25571
  Ly as useEntityService,
25546
25572
  Lk as useGetEntityRecord,
25547
- Ze as useGlobalConfigsStore,
25573
+ Xe as useGlobalConfigsStore,
25548
25574
  Wk as useGlobalService,
25549
- Xt as useHttpClient,
25575
+ zt as useHttpClient,
25550
25576
  Hk as useLayoutService,
25551
25577
  Gy as useMenuService,
25552
25578
  Uk as usePageService,