@aeria-ui/ui 0.0.75 → 0.0.76

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,6 +1,6 @@
1
- import { defineComponent as E, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as D, withDirectives as x, toDisplayString as g, createCommentVNode as y, createTextVNode as W, unref as e, renderSlot as O, inject as _e, computed as Q, createElementVNode as C, mergeProps as H, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as It, Teleport as Je, onMounted as bt, watch as ue, createVNode as q, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as He, popScopeId as Qe, provide as ye, createSlots as ce, normalizeProps as pe, guardReactiveProps as Ve, vModelCheckbox as Bt, onUnmounted as wt, isRef as _t, resolveComponent as St, Suspense as jt, useSlots as Tt, h as Rt } from "vue";
1
+ import { defineComponent as E, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as X, Fragment as N, renderList as D, withDirectives as x, toDisplayString as k, createCommentVNode as y, createTextVNode as W, unref as e, renderSlot as O, inject as _e, computed as G, createElementVNode as C, mergeProps as Q, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as It, Teleport as Je, onMounted as bt, watch as ue, createVNode as F, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as De, popScopeId as Qe, provide as ye, createSlots as ce, normalizeProps as pe, guardReactiveProps as Ve, vModelCheckbox as Bt, onUnmounted as wt, isRef as _t, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
2
2
  import { t as L, useI18n as Lt } from "@aeria-ui/i18n";
3
- import { useScrollObserver as Ze, useBreakpoints as qe, useMask as zt, PAGINATION_PER_PAGE_DEFAULTS as Mt, API_URL as gt, request as qt, useDebounce as kt, isDocumentComplete as Ft, getObjectKey as Ut, convertToSearchQuery as Et, useAction as Dt, convertFromSearchQuery as Ht, useParentCollectionStore as Ke, usePasswordPolicy as Qt } from "@aeria-ui/core";
3
+ import { useScrollObserver as Ze, useBreakpoints as qe, useMask as zt, PAGINATION_PER_PAGE_DEFAULTS as Mt, API_URL as gt, request as qt, useDebounce as kt, isDocumentComplete as Ft, getObjectKey as Ut, convertToSearchQuery as Et, useAction as Ht, convertFromSearchQuery as Dt, useParentCollectionStore as Ke, usePasswordPolicy as Qt } from "@aeria-ui/core";
4
4
  import { arraysIntersect as Vt, deepClone as ke, getReferenceProperty as me, convertConditionToQuery as Gt, freshItem as Wt, isRequired as Kt, evaluateCondition as Ye, deepMerge as Me } from "@aeriajs/common";
5
5
  import { useStore as ie, getStoreId as Fe, useParentStore as Ie, STORE_ID as Ue, getGlobalStateManager as Pe } from "@aeria-ui/state-management";
6
6
  import { useRouter as Ae } from "vue-router";
@@ -32,8 +32,8 @@ const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
32
32
  class: "accordion__header",
33
33
  onClick: (d) => r.value === c ? r.value = null : r.value = c
34
34
  }, [
35
- n.enumerate ? (t(), s("span", Yt, g(_ + 1) + ". ", 1)) : y("", !0),
36
- W(" " + g(n.headers[c] ? l(n.headers[c]) : e(L)(c)), 1)
35
+ n.enumerate ? (t(), s("span", Yt, k(_ + 1) + ". ", 1)) : y("", !0),
36
+ W(" " + k(n.headers[c] ? l(n.headers[c]) : e(L)(c)), 1)
37
37
  ], 8, Xt)), [
38
38
  [i]
39
39
  ]),
@@ -103,7 +103,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
103
103
  fill: {}
104
104
  },
105
105
  setup(u) {
106
- const r = u, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), n = Q(() => {
106
+ const r = u, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), n = G(() => {
107
107
  var a;
108
108
  return (a = r.icon) != null && a.includes(":") ? r.icon : `regular:${r.icon}`;
109
109
  });
@@ -121,7 +121,7 @@ const ve = /* @__PURE__ */ K(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
121
121
  ${a.iconRight && "icon__icon--right"}
122
122
  `)
123
123
  }, [
124
- (t(), s("svg", H({
124
+ (t(), s("svg", Q({
125
125
  width: "24",
126
126
  height: "24",
127
127
  viewBox: "0 0 256 256",
@@ -167,7 +167,7 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
167
167
  },
168
168
  emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
169
169
  setup(u, { emit: r }) {
170
- const l = u, n = r, a = Q(() => l.floating || l.float), i = J(l.collapsed), c = J(null), { reachedEnd: _ } = Ze(c), d = () => {
170
+ const l = u, n = r, a = G(() => l.floating || l.float), i = J(l.collapsed), c = J(null), { reachedEnd: _ } = Ze(c), d = () => {
171
171
  n("update:modelValue", !1), n("close");
172
172
  }, h = () => {
173
173
  n("overlayClick");
@@ -197,7 +197,7 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
197
197
  ${o.transparentMobile && "panel__content--transparent-mobile"}
198
198
  ${o.outerHeader && "panel__content--outer-header"}
199
199
  `),
200
- onClick: m[2] || (m[2] = (T) => T.stopPropagation())
200
+ onClick: m[2] || (m[2] = (j) => j.stopPropagation())
201
201
  }, {
202
202
  default: v(() => [
203
203
  o.$slots.header || o.title ? (t(), s("div", {
@@ -209,7 +209,7 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
209
209
  `)
210
210
  }, [
211
211
  C("div", nn, [
212
- o.$slots.header ? O(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (t(), s("div", on, g(o.title), 1)) : y("", !0),
212
+ o.$slots.header ? O(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (t(), s("div", on, k(o.title), 1)) : y("", !0),
213
213
  o.$slots.extra ? (t(), s("div", an, [
214
214
  O(o.$slots, "extra", {}, void 0, !0)
215
215
  ])) : y("", !0)
@@ -218,14 +218,14 @@ const Z = /* @__PURE__ */ K(tn, [["__scopeId", "data-v-4b763bd3"]]), nn = { clas
218
218
  key: 0,
219
219
  reactive: "",
220
220
  icon: "plus",
221
- onClick: m[0] || (m[0] = (T) => p(!i.value))
221
+ onClick: m[0] || (m[0] = (j) => p(!i.value))
222
222
  }, null, 512)), [
223
223
  [A]
224
224
  ]) : o.collapsible && !i.value ? x((t(), $(Z, {
225
225
  key: 1,
226
226
  reactive: "",
227
227
  icon: "minus",
228
- onClick: m[1] || (m[1] = (T) => p(!i.value))
228
+ onClick: m[1] || (m[1] = (j) => p(!i.value))
229
229
  }, null, 512)), [
230
230
  [A]
231
231
  ]) : o.closeHint ? x((t(), $(Z, {
@@ -385,7 +385,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
385
385
  action: d,
386
386
  subject: p
387
387
  }), a.value = !1;
388
- }, _ = Q(() => {
388
+ }, _ = G(() => {
389
389
  if (!n.value)
390
390
  return {
391
391
  x: 0,
@@ -462,7 +462,7 @@ const fn = /* @__PURE__ */ K(mn, [["__scopeId", "data-v-c1a322df"]]), vn = { cla
462
462
  icon: o.icon
463
463
  }, {
464
464
  default: v(() => [
465
- W(g(o.translate ? e(L)(o.label, { capitalize: !0 }) : o.label), 1)
465
+ W(k(o.translate ? e(L)(o.label, { capitalize: !0 }) : o.label), 1)
466
466
  ]),
467
467
  _: 2
468
468
  }, 1032, ["icon"])) : y("", !0)
@@ -578,23 +578,43 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
578
578
  placeholder: _ ? a.description || l.propertyName : a.placeholder
579
579
  };
580
580
  "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (o.min = a.minimum), a.exclusiveMinimum && (o.min = a.exclusiveMinimum + 1), a.maximum && (o.max = a.maximum), a.exclusiveMaximum && (o.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (o.type = !c && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && c && (o.type = "search"), bt(() => {
581
- l.modelValue !== null && T(l.modelValue);
581
+ l.modelValue !== null && j(l.modelValue);
582
582
  });
583
- const m = () => {
583
+ const m = (R) => {
584
584
  try {
585
- return l.modelValue ? new Date(l.modelValue).toISOString().split("T").shift() : "";
585
+ return typeof R == "string" ? new Date(R).toISOString().slice(0, 19) : "";
586
586
  } catch {
587
587
  return "";
588
588
  }
589
- }, A = J([
590
- "date",
591
- "date-time"
592
- ].includes(o.type) ? m() : l.modelValue === null || l.modelValue === void 0 ? "" : l.modelValue), b = ((B = l.property) == null ? void 0 : B.type) === "string" && l.property.mask ? zt(l.property.mask) : null, S = (R) => {
589
+ }, A = J(""), b = ((B = l.property) == null ? void 0 : B.type) === "string" && l.property.mask ? zt(l.property.mask) : null;
590
+ ue(() => l.modelValue, (R) => {
591
+ A.value = (() => {
592
+ if (b)
593
+ return R ? b.enmask(String(R), void 0, {
594
+ defaultValue: !0
595
+ }) : "";
596
+ switch (o.type) {
597
+ case "date":
598
+ case "datetime-local":
599
+ return m(R);
600
+ }
601
+ switch (R) {
602
+ case null:
603
+ case void 0:
604
+ return "";
605
+ default:
606
+ return R;
607
+ }
608
+ })();
609
+ }, {
610
+ immediate: !0
611
+ });
612
+ const S = (R) => {
593
613
  var Y;
594
614
  return typeof A.value == "string" && ((Y = l.property) == null ? void 0 : Y.type) === "string" && b !== null ? (A.value = b.enmask(A.value, void 0, {
595
615
  defaultValue: !0
596
616
  }), l.property.maskedValue === !0 ? A.value : b.unmask(A.value)) : R;
597
- }, T = (R) => {
617
+ }, j = (R) => {
598
618
  const Y = (() => {
599
619
  if (!R || typeof R != "string")
600
620
  return R;
@@ -613,13 +633,9 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
613
633
  n("input", Y), n("update:modelValue", Y);
614
634
  }, P = (R) => {
615
635
  const Y = R.target.value;
616
- A.value = Y, T(Y);
636
+ A.value = Y, j(Y);
617
637
  };
618
- return ue(() => l.modelValue, (R, Y) => {
619
- R instanceof Date || (Y && !R ? A.value = void 0 : A.value = b ? b.enmask(String(R), void 0, {
620
- defaultValue: !0
621
- }) : String(R));
622
- }), (R, Y) => {
638
+ return (R, Y) => {
623
639
  const w = oe("focus"), te = oe("clickable");
624
640
  return t(), s("label", Vn, [
625
641
  e(_) ? y("", !0) : (t(), s("div", Cn, [
@@ -654,7 +670,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
654
670
  input__container--${e(p)}
655
671
  `)
656
672
  }, [
657
- x(C("input", H(o, {
673
+ x(C("input", Q(o, {
658
674
  value: A.value,
659
675
  "data-component": "input",
660
676
  class: `
@@ -664,7 +680,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
664
680
  ${e(d) && "input__input--readOnly"}
665
681
  `,
666
682
  onInput: P,
667
- onChange: Y[0] || (Y[0] = (k) => n("change", k))
683
+ onChange: Y[0] || (Y[0] = (V) => n("change", V))
668
684
  }), null, 16, An), [
669
685
  [w, e(a).focus]
670
686
  ]),
@@ -677,15 +693,15 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
677
693
  `)
678
694
  }, null, 8, ["icon", "class"])) : y("", !0),
679
695
  e(d) ? (t(), s("div", Bn, [
680
- q(kn, null, {
696
+ F(kn, null, {
681
697
  text: v(() => [
682
698
  W("Copiar")
683
699
  ]),
684
700
  default: v(() => [
685
- x(q(Z, {
701
+ x(F(Z, {
686
702
  reactive: "",
687
703
  icon: "clipboard",
688
- onClick: Y[1] || (Y[1] = ze((k) => h(String(R.modelValue || "")), ["prevent"]))
704
+ onClick: Y[1] || (Y[1] = ze((V) => h(String(R.modelValue || "")), ["prevent"]))
689
705
  }, null, 512), [
690
706
  [te]
691
707
  ])
@@ -698,10 +714,10 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
698
714
  };
699
715
  }
700
716
  });
701
- const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-4a9b239e"]]), Sn = ["value"], jn = {
717
+ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-28a4ba0c"]]), Sn = ["value"], Tn = {
702
718
  key: 1,
703
719
  value: ""
704
- }, Tn = ["value", "data-selected"], Rn = /* @__PURE__ */ E({
720
+ }, jn = ["value", "data-selected"], Rn = /* @__PURE__ */ E({
705
721
  __name: "aeria-select",
706
722
  props: {
707
723
  modelValue: {},
@@ -720,7 +736,7 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-4a9b239e"]]), Sn = ["val
720
736
  l.booleanRef && (_.value = p), n("update:modelValue", (p == null ? void 0 : p._id) || p), n("change", (p == null ? void 0 : p._id) || p);
721
737
  }, _ = l.booleanRef ? (() => {
722
738
  const p = J(l.modelValue);
723
- return Q({
739
+ return G({
724
740
  get: () => {
725
741
  switch (p.value) {
726
742
  case "true":
@@ -735,17 +751,17 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-4a9b239e"]]), Sn = ["val
735
751
  p.value = m;
736
752
  }
737
753
  });
738
- })() : Q({
754
+ })() : G({
739
755
  get: () => l.modelValue,
740
756
  set: c
741
- }), d = (p) => Array.isArray(l.modelValue) ? l.modelValue.includes(p) : l.modelValue === p, h = Q(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
757
+ }), d = (p) => Array.isArray(l.modelValue) ? l.modelValue.includes(p) : l.modelValue === p, h = G(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
742
758
  return l.multiple && ue(() => l.modelValue, (p) => {
743
759
  var m;
744
760
  if (!a.value)
745
761
  return;
746
762
  const o = a.value.querySelector('option[data-selected="true"]');
747
763
  o && o.removeAttribute("data-selected"), (m = a.value.querySelector(`option[value="${p}"]`)) == null || m.setAttribute("data-selected", "true");
748
- }), (p, o) => (t(), s("select", H({
764
+ }), (p, o) => (t(), s("select", Q({
749
765
  ref_key: "select",
750
766
  ref: a,
751
767
  value: e(_)
@@ -763,14 +779,14 @@ const Oe = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-4a9b239e"]]), Sn = ["val
763
779
  key: 0,
764
780
  icon: e(i).icon
765
781
  }, null, 8, ["icon"])) : y("", !0),
766
- l.multiple ? y("", !0) : (t(), s("option", jn, g(e(L)("none")), 1)),
782
+ l.multiple ? y("", !0) : (t(), s("option", Tn, k(e(L)("none")), 1)),
767
783
  (t(!0), s(N, null, D(e(i) && "enum" in e(i) ? e(i).enum : [], (m) => {
768
784
  var A;
769
785
  return t(), s("option", {
770
786
  key: m,
771
787
  value: m,
772
788
  "data-selected": d(m)
773
- }, g((A = e(i)) != null && A.translate ? e(L)(m) : m), 9, Tn);
789
+ }, k((A = e(i)) != null && A.translate ? e(L)(m) : m), 9, jn);
774
790
  }), 128)),
775
791
  O(p.$slots, "default", {}, void 0, !0)
776
792
  ], 16, Sn));
@@ -783,17 +799,17 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
783
799
  },
784
800
  emits: ["paginate"],
785
801
  setup(u, { emit: r }) {
786
- const l = u, n = r, a = Q({
802
+ const l = u, n = r, a = G({
787
803
  get: () => Math.floor(l.pagination.offset / l.pagination.limit),
788
804
  set: (h) => {
789
805
  l.pagination.offset = h * l.pagination.limit;
790
806
  }
791
- }), i = Q({
807
+ }), i = G({
792
808
  get: () => l.pagination.limit,
793
809
  set: (h) => {
794
810
  l.pagination.limit = Number(h);
795
811
  }
796
- }), c = J(a.value ? a.value + 1 : 1), _ = Q(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), d = (h) => {
812
+ }), c = J(a.value ? a.value + 1 : 1), _ = G(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), d = (h) => {
797
813
  a.value = h === "previous" ? a.value - 1 : a.value + 1;
798
814
  };
799
815
  return ue([
@@ -805,7 +821,7 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
805
821
  limit: i.value
806
822
  });
807
823
  }), (h, p) => (t(), s("div", Ln, [
808
- q(Ge, {
824
+ F(Ge, {
809
825
  modelValue: i.value,
810
826
  "onUpdate:modelValue": p[0] || (p[0] = (o) => i.value = o),
811
827
  property: {
@@ -818,28 +834,28 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
818
834
  (t(!0), s(N, null, D(e(Mt), (o) => (t(), s("option", {
819
835
  key: `limit-${o}`,
820
836
  value: o
821
- }, g(o), 9, zn))), 128))
837
+ }, k(o), 9, zn))), 128))
822
838
  ]),
823
839
  _: 1
824
840
  }, 8, ["modelValue"]),
825
841
  C("div", Mn, [
826
- q(ve, {
842
+ F(ve, {
827
843
  onClick: p[1] || (p[1] = (o) => a.value = 0)
828
844
  }, {
829
845
  default: v(() => [
830
- q(Z, {
846
+ F(Z, {
831
847
  reactive: "",
832
848
  icon: "caret-double-left"
833
849
  })
834
850
  ]),
835
851
  _: 1
836
852
  }),
837
- q(ve, {
853
+ F(ve, {
838
854
  disabled: a.value === 0,
839
855
  onClick: p[2] || (p[2] = (o) => d("previous"))
840
856
  }, {
841
857
  default: v(() => [
842
- q(Z, {
858
+ F(Z, {
843
859
  reactive: "",
844
860
  icon: "caret-left"
845
861
  })
@@ -859,25 +875,25 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
859
875
  a.value = c.value === 0 ? 0 : c.value - 1;
860
876
  })
861
877
  }, null, 8, ["modelValue"])),
862
- C("span", null, g(e(L)("of")) + " " + g(_.value), 1)
878
+ C("span", null, k(e(L)("of")) + " " + k(_.value), 1)
863
879
  ]),
864
- q(ve, {
880
+ F(ve, {
865
881
  disabled: a.value === _.value - 1,
866
882
  onClick: p[5] || (p[5] = (o) => d("next"))
867
883
  }, {
868
884
  default: v(() => [
869
- q(Z, {
885
+ F(Z, {
870
886
  reactive: "",
871
887
  icon: "caret-right"
872
888
  })
873
889
  ]),
874
890
  _: 1
875
891
  }, 8, ["disabled"]),
876
- q(ve, {
892
+ F(ve, {
877
893
  onClick: p[6] || (p[6] = (o) => a.value = _.value - 1)
878
894
  }, {
879
895
  default: v(() => [
880
- q(Z, {
896
+ F(Z, {
881
897
  reactive: "",
882
898
  icon: "caret-double-right"
883
899
  })
@@ -888,7 +904,7 @@ const Ge = /* @__PURE__ */ K(Rn, [["__scopeId", "data-v-c8f00a1a"]]), Ln = { cla
888
904
  ]));
889
905
  }
890
906
  });
891
- const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { class: "checkbox__text" }, Dn = ["innerHTML"], Hn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
907
+ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { class: "checkbox__text" }, Hn = ["innerHTML"], Dn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
892
908
  inheritAttrs: !1
893
909
  }, Wn = /* @__PURE__ */ E({
894
910
  ...Gn,
@@ -913,7 +929,7 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
913
929
  return "checkbox";
914
930
  }
915
931
  return "radio";
916
- })(), c = r, _ = l.value || !1, d = Q({
932
+ })(), c = r, _ = l.value || !1, d = G({
917
933
  get: () => {
918
934
  var p;
919
935
  if (n) {
@@ -956,7 +972,7 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
956
972
  ${e(a) && "checkbox--readOnly"}
957
973
  `)
958
974
  }, [
959
- x(C("input", H({
975
+ x(C("input", Q({
960
976
  "onUpdate:modelValue": o[0] || (o[0] = (S) => d.value = S)
961
977
  }, {
962
978
  type: e(i),
@@ -973,9 +989,9 @@ const Un = /* @__PURE__ */ K(Fn, [["__scopeId", "data-v-41aa1ffc"]]), En = { cla
973
989
  p.$slots.description ? O(p.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), s("div", {
974
990
  key: 1,
975
991
  innerHTML: (A = e(n)) != null && A.translate ? e(L)(e(_)) : e(_)
976
- }, null, 8, Dn)) : O(p.$slots, "default", { key: 2 }, void 0, !0)
992
+ }, null, 8, Hn)) : O(p.$slots, "default", { key: 2 }, void 0, !0)
977
993
  ]),
978
- C("div", Hn, [
994
+ C("div", Dn, [
979
995
  p.$slots.hint ? O(p.$slots, "hint", { key: 0 }, void 0, !0) : (b = e(n)) != null && b.hint ? (t(), s("div", {
980
996
  key: 1,
981
997
  innerHTML: e(n).hint
@@ -1023,7 +1039,7 @@ const Kn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1023
1039
  key: `option-${h}`,
1024
1040
  class: "options__checkbox"
1025
1041
  }, [
1026
- q(Kn, H({ ref_for: !0 }, {
1042
+ F(Kn, Q({ ref_for: !0 }, {
1027
1043
  value: h,
1028
1044
  readOnly: e(a),
1029
1045
  property: _.property
@@ -1035,7 +1051,7 @@ const Kn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
1035
1051
  ], 4));
1036
1052
  }
1037
1053
  });
1038
- const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) => (He("data-v-0e3564b6"), u = u(), Qe(), u), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ C("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
1054
+ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) => (De("data-v-0e3564b6"), u = u(), Qe(), u), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ C("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
1039
1055
  inheritAttrs: !1
1040
1056
  }, to = /* @__PURE__ */ E({
1041
1057
  ...eo,
@@ -1077,12 +1093,12 @@ const Jn = /* @__PURE__ */ K(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (u) =
1077
1093
  blocked: e(i)
1078
1094
  }]
1079
1095
  ]),
1080
- _.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), s("div", xn, g(((p = e(a)) == null ? void 0 : p.description) || _.propertyName), 1))
1096
+ _.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), s("div", xn, k(((p = e(a)) == null ? void 0 : p.description) || _.propertyName), 1))
1081
1097
  ]);
1082
1098
  };
1083
1099
  }
1084
1100
  });
1085
- const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) => (He("data-v-153a2e0f"), u = u(), Qe(), u), oo = { class: "picture" }, ao = {
1101
+ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) => (De("data-v-153a2e0f"), u = u(), Qe(), u), oo = { class: "picture" }, ao = {
1086
1102
  key: 0,
1087
1103
  style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
1088
1104
  }, lo = ["src", "alt"], so = {
@@ -1120,7 +1136,7 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1120
1136
  meta: {}
1121
1137
  },
1122
1138
  setup(u) {
1123
- const r = u, l = Q(() => r.fileId ? `${gt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = J(!1);
1139
+ const r = u, l = G(() => r.fileId ? `${gt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = J(!1);
1124
1140
  return (a, i) => {
1125
1141
  var _;
1126
1142
  const c = oe("overlay");
@@ -1139,7 +1155,7 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1139
1155
  `,
1140
1156
  onClick: i[0] || (i[0] = (d) => n.value = !0)
1141
1157
  }, null, 8, lo),
1142
- (_ = a.meta) != null && _.owner ? (t(), s("div", so, " Criado por " + g(a.meta.owner.name) + " em " + g(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1158
+ (_ = a.meta) != null && _.owner ? (t(), s("div", so, " Criado por " + k(a.meta.owner.name) + " em " + k(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : y("", !0)
1143
1159
  ])), [
1144
1160
  [c, {
1145
1161
  click: () => {
@@ -1185,7 +1201,7 @@ const no = /* @__PURE__ */ K(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (u) =
1185
1201
  };
1186
1202
  }
1187
1203
  });
1188
- const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
1204
+ const He = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
1189
1205
  key: 1,
1190
1206
  class: "file__actions"
1191
1207
  }, ho = ["accept"], bo = {
@@ -1209,22 +1225,22 @@ const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1209
1225
  emits: ["update:content", "change", "update:modelValue"],
1210
1226
  setup(u, { emit: r }) {
1211
1227
  var A;
1212
- const l = u, n = r, i = Fe() ? Ie() : null, c = J(((A = l.modelValue) == null ? void 0 : A.file) || null), _ = Q(() => {
1228
+ const l = u, n = r, i = Fe() ? Ie() : null, c = J(((A = l.modelValue) == null ? void 0 : A.file) || null), _ = G(() => {
1213
1229
  var b;
1214
1230
  return c.value ? URL.createObjectURL(c.value) : (b = l.modelValue) == null ? void 0 : b.link;
1215
- }), d = Q(() => {
1216
- var b, S, T;
1217
- return /^image\//.test((b = l.modelValue) == null ? void 0 : b.type) && !((S = c.value) != null && S.type) || /^image\//.test((T = c.value) == null ? void 0 : T.type);
1231
+ }), d = G(() => {
1232
+ var b, S, j;
1233
+ return /^image\//.test((b = l.modelValue) == null ? void 0 : b.type) && !((S = c.value) != null && S.type) || /^image\//.test((j = c.value) == null ? void 0 : j.type);
1218
1234
  }), h = (b) => new Promise((S) => {
1219
- const T = new FileReader();
1220
- T.onload = () => S(T.result), T.readAsArrayBuffer(b);
1235
+ const j = new FileReader();
1236
+ j.onload = () => S(j.result), j.readAsArrayBuffer(b);
1221
1237
  }), p = () => {
1222
1238
  l.modelValue.tempId && n("update:modelValue", null), c.value = null;
1223
1239
  }, o = async (b) => {
1224
1240
  c.value = b.target.files[0];
1225
- const S = c.value, T = await h(S);
1241
+ const S = c.value, j = await h(S);
1226
1242
  if (i) {
1227
- const { data: { error: P, result: B } } = await qt(`${gt}/${i.$id}/upload?name=${S.name}`, T, {
1243
+ const { data: { error: P, result: B } } = await qt(`${gt}/${i.$id}/upload?name=${S.name}`, j, {
1228
1244
  params: {
1229
1245
  method: "POST",
1230
1246
  headers: {
@@ -1241,15 +1257,15 @@ const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1241
1257
  });
1242
1258
  } else
1243
1259
  n("update:modelValue", S);
1244
- n("update:content", T), n("change", T);
1260
+ n("update:content", j), n("change", j);
1245
1261
  }, m = async () => {
1246
1262
  n("update:modelValue", null);
1247
1263
  };
1248
1264
  return (b, S) => {
1249
- var T, P, B, R, Y, w;
1265
+ var j, P, B, R, Y, w;
1250
1266
  return t(), s("div", mo, [
1251
- c.value || (T = b.modelValue) != null && T._id ? (t(), s("div", fo, [
1252
- d.value ? (t(), $(De, {
1267
+ c.value || (j = b.modelValue) != null && j._id ? (t(), s("div", fo, [
1268
+ d.value ? (t(), $(He, {
1253
1269
  key: 0,
1254
1270
  modelValue: _.value,
1255
1271
  "onUpdate:modelValue": S[0] || (S[0] = (te) => _.value = te),
@@ -1263,7 +1279,7 @@ const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1263
1279
  (B = b.modelValue) != null && B._id ? (t(), s("a", {
1264
1280
  key: 1,
1265
1281
  href: b.modelValue.download_link
1266
- }, g(b.modelValue.name), 9, vo)) : y("", !0)
1282
+ }, k(b.modelValue.name), 9, vo)) : y("", !0)
1267
1283
  ])) : y("", !0),
1268
1284
  b.readOnly ? y("", !0) : (t(), s("div", yo, [
1269
1285
  C("input", {
@@ -1273,22 +1289,22 @@ const De = /* @__PURE__ */ K(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
1273
1289
  onChange: o
1274
1290
  }, null, 40, ho),
1275
1291
  c.value ? (t(), s("div", bo, [
1276
- q(re, {
1292
+ F(re, {
1277
1293
  small: "",
1278
1294
  onClick: ze(p, ["prevent"])
1279
1295
  }, {
1280
1296
  default: v(() => [
1281
- W(g(e(L)("action.clear", { capitalize: !0 })), 1)
1297
+ W(k(e(L)("action.clear", { capitalize: !0 })), 1)
1282
1298
  ]),
1283
1299
  _: 1
1284
1300
  })
1285
1301
  ])) : (w = b.modelValue) != null && w._id ? (t(), s("div", $o, [
1286
- q(re, {
1302
+ F(re, {
1287
1303
  small: "",
1288
1304
  onClick: ze(m, ["prevent"])
1289
1305
  }, {
1290
1306
  default: v(() => [
1291
- W(g(e(L)("action.remove", { capitalize: !0 })), 1)
1307
+ W(k(e(L)("action.remove", { capitalize: !0 })), 1)
1292
1308
  ]),
1293
1309
  _: 1
1294
1310
  })
@@ -1339,7 +1355,7 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1339
1355
  },
1340
1356
  emits: ["update:modelValue", "change"],
1341
1357
  setup(u, { emit: r }) {
1342
- const l = Ae(), n = u, a = r, i = n.property, c = me(i), _ = Ie(), d = Q(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: m }) => n.item._id === m) : n.modelValue && n.modelValue._id === n.item._id), h = () => {
1358
+ const l = Ae(), n = u, a = r, i = n.property, c = me(i), _ = Ie(), d = G(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: m }) => n.item._id === m) : n.modelValue && n.modelValue._id === n.item._id), h = () => {
1343
1359
  if (d.value)
1344
1360
  return;
1345
1361
  const m = (b) => b.filter((S) => !!(S != null && S._id)), A = "items" in i ? m(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : n.modelValue;
@@ -1354,7 +1370,7 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1354
1370
  });
1355
1371
  }
1356
1372
  const A = () => {
1357
- const b = [...n.modelValue], S = b.findIndex((T) => T._id === n.item._id);
1373
+ const b = [...n.modelValue], S = b.findIndex((j) => j._id === n.item._id);
1358
1374
  return b.splice(S, 1), b;
1359
1375
  };
1360
1376
  a("update:modelValue", "items" in i ? A() : null);
@@ -1382,10 +1398,10 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1382
1398
  }, [
1383
1399
  O(m.$slots, "default", {}, void 0, !0),
1384
1400
  C("div", Io, [
1385
- (t(!0), s(N, null, D(m.indexes, (S, T) => (t(), s("div", {
1386
- key: `index-${m.item._id}-${T}`,
1401
+ (t(!0), s(N, null, D(m.indexes, (S, j) => (t(), s("div", {
1402
+ key: `index-${m.item._id}-${j}`,
1387
1403
  class: "item__value"
1388
- }, g(m.item[S]), 1))), 128))
1404
+ }, k(m.item[S]), 1))), 128))
1389
1405
  ]),
1390
1406
  m.readOnly ? (t(), $(Z, {
1391
1407
  key: 0,
@@ -1398,7 +1414,7 @@ const mt = /* @__PURE__ */ K(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
1398
1414
  };
1399
1415
  }
1400
1416
  });
1401
- const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { class: "search__panel" }, wo = { class: "search__input" }, So = ["value"], jo = { style: { flex: "1" } }, To = { key: 1 }, Ro = { key: 0 }, Lo = { key: 1 }, zo = { class: "search__summary" }, Mo = {
1417
+ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { class: "search__panel" }, wo = { class: "search__input" }, So = ["value"], To = { style: { flex: "1" } }, jo = { key: 1 }, Ro = { key: 0 }, Lo = { key: 1 }, zo = { class: "search__summary" }, Mo = {
1402
1418
  key: 1,
1403
1419
  class: "search"
1404
1420
  }, qo = { key: 0 }, Ee = 10, Fo = /* @__PURE__ */ E({
@@ -1415,12 +1431,12 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1415
1431
  },
1416
1432
  emits: ["update:modelValue", "change", "update:panel"],
1417
1433
  setup(u, { emit: r }) {
1418
- const l = u, n = me(l.property), a = l.panel !== void 0 ? Q(() => l.panel) : J(!1), i = r, c = ie(me(l.property).$ref), _ = Fe(), d = _ ? Ie() : null, h = n.indexes;
1434
+ const l = u, n = me(l.property), a = l.panel !== void 0 ? G(() => l.panel) : J(!1), i = r, c = ie(me(l.property).$ref), _ = Fe(), d = _ ? Ie() : null, h = n.indexes;
1419
1435
  ye(Ue, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
1420
1436
  const p = J(l.modelValue), o = J({
1421
1437
  data: [],
1422
1438
  pagination: {}
1423
- }), m = Q(() => o.value.data), A = Q(() => o.value.pagination), b = J(0), S = J(h[0]), T = J(!1), P = J({}), B = () => {
1439
+ }), m = G(() => o.value.data), A = G(() => o.value.pagination), b = J(0), S = J(h[0]), j = J(!1), P = J({}), B = () => {
1424
1440
  const z = {};
1425
1441
  if (_) {
1426
1442
  const U = e(_);
@@ -1470,14 +1486,14 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1470
1486
  }, [te] = kt({
1471
1487
  delay: 800
1472
1488
  })(() => {
1473
- b.value = 0, w(), T.value = !1;
1474
- }), k = () => {
1475
- T.value = !0, te();
1476
- }, j = () => {
1489
+ b.value = 0, w(), j.value = !1;
1490
+ }), V = () => {
1491
+ j.value = !0, te();
1492
+ }, T = () => {
1477
1493
  "effect" in a ? i("update:panel", !0) : a.value = !0, w();
1478
1494
  }, ae = () => {
1479
1495
  b.value = 0, o.value.data.splice(0), "effect" in a ? i("update:panel", !1) : a.value = !1;
1480
- }, le = Q(() => !Object.values(P.value).some((z) => !!z));
1496
+ }, le = G(() => !Object.values(P.value).some((z) => !!z));
1481
1497
  ue(le, (z, U) => {
1482
1498
  z && !U && w();
1483
1499
  }), bt(() => {
@@ -1495,7 +1511,7 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1495
1511
  key: 0,
1496
1512
  to: "main"
1497
1513
  }, [
1498
- q(Be, {
1514
+ F(Be, {
1499
1515
  float: "",
1500
1516
  "close-hint": "",
1501
1517
  title: `${e(L)("action.select", { capitalize: !0 })} ${e(L)(z.propertyName)}`,
@@ -1506,45 +1522,46 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1506
1522
  onOverlayClick: ae
1507
1523
  }, {
1508
1524
  footer: v(() => [
1509
- q(re, {
1525
+ F(re, {
1510
1526
  large: "",
1511
1527
  onClick: se
1512
1528
  }, {
1513
1529
  default: v(() => [
1514
- W(g(e(L)("action.save", { capitalize: !0 })), 1)
1530
+ W(k(e(L)("action.save", { capitalize: !0 })), 1)
1515
1531
  ]),
1516
1532
  _: 1
1517
1533
  })
1518
1534
  ]),
1519
1535
  default: v(() => {
1520
- var F, G;
1536
+ var M, H;
1521
1537
  return [
1522
1538
  C("div", Bo, [
1523
1539
  C("div", wo, [
1524
1540
  e(h).length > 1 ? (t(), $(Ge, {
1525
1541
  key: 0,
1526
1542
  modelValue: S.value,
1527
- "onUpdate:modelValue": U[0] || (U[0] = (V) => S.value = V),
1528
- onChange: U[1] || (U[1] = (V) => P.value = {})
1543
+ "onUpdate:modelValue": U[0] || (U[0] = (g) => S.value = g),
1544
+ style: { width: "auto" },
1545
+ onChange: U[1] || (U[1] = (g) => P.value = {})
1529
1546
  }, {
1530
1547
  default: v(() => [
1531
- (t(!0), s(N, null, D(e(h), (V) => (t(), s("option", {
1532
- key: `searchfield-${V}`,
1533
- value: V
1534
- }, g(e(L)(V)), 9, So))), 128))
1548
+ (t(!0), s(N, null, D(e(h), (g) => (t(), s("option", {
1549
+ key: `searchfield-${g}`,
1550
+ value: g
1551
+ }, k(e(L)(g)), 9, So))), 128))
1535
1552
  ]),
1536
1553
  _: 1
1537
1554
  }, 8, ["modelValue"])) : y("", !0),
1538
- C("div", jo, [
1555
+ C("div", To, [
1539
1556
  (t(), $(Oe, {
1540
1557
  key: `field-${S.value}`,
1541
1558
  modelValue: P.value[S.value],
1542
- "onUpdate:modelValue": U[2] || (U[2] = (V) => P.value[S.value] = V),
1559
+ "onUpdate:modelValue": U[2] || (U[2] = (g) => P.value[S.value] = g),
1543
1560
  property: {
1544
1561
  ...e(c).properties[S.value],
1545
1562
  inputType: "search"
1546
1563
  },
1547
- onInput: k
1564
+ onInput: V
1548
1565
  }, null, 8, ["modelValue", "property"]))
1549
1566
  ])
1550
1567
  ]),
@@ -1554,44 +1571,44 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1554
1571
  onEndReached: R
1555
1572
  }, {
1556
1573
  default: v(() => [
1557
- (t(!0), s(N, null, D(m.value, (V) => (t(), $(Xe, H({ ref_for: !0 }, {
1558
- item: V,
1574
+ (t(!0), s(N, null, D(m.value, (g) => (t(), $(Xe, Q({ ref_for: !0 }, {
1575
+ item: g,
1559
1576
  indexes: e(h),
1560
1577
  property: z.property
1561
1578
  }, {
1562
- key: `matching-${V._id}`,
1579
+ key: `matching-${g._id}`,
1563
1580
  modelValue: p.value,
1564
1581
  "onUpdate:modelValue": U[3] || (U[3] = (I) => p.value = I)
1565
1582
  }), null, 16, ["modelValue"]))), 128))
1566
1583
  ]),
1567
1584
  _: 1
1568
- })) : (t(), s("div", To, [
1569
- T.value ? (t(), s("div", Ro, g(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(c).loading.getAll && Object.values(P.value).filter((V) => !!V).length > 0 && !("items" in z.property && ((F = z.modelValue) != null && F.length) || !Array.isArray(z.modelValue) && ((G = z.modelValue) != null && G._id)) ? (t(), s("div", Lo, g(e(L)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1585
+ })) : (t(), s("div", jo, [
1586
+ j.value ? (t(), s("div", Ro, k(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(c).loading.getAll && Object.values(P.value).filter((g) => !!g).length > 0 && !("items" in z.property && ((M = z.modelValue) != null && M.length) || !Array.isArray(z.modelValue) && ((H = z.modelValue) != null && H._id)) ? (t(), s("div", Lo, k(e(L)("no_results", { capitalize: !0 })), 1)) : y("", !0)
1570
1587
  ]))
1571
1588
  ]),
1572
- C("div", zo, g(e(L)("showing", { capitalize: !0 })) + " " + g(m.value.length) + " " + g(e(L)("of")) + " " + g(A.value.recordsTotal), 1)
1589
+ C("div", zo, k(e(L)("showing", { capitalize: !0 })) + " " + k(m.value.length) + " " + k(e(L)("of")) + " " + k(A.value.recordsTotal), 1)
1573
1590
  ];
1574
1591
  }),
1575
1592
  _: 1
1576
1593
  }, 8, ["title", "model-value"])
1577
1594
  ])) : y("", !0),
1578
1595
  z.selectOnly ? y("", !0) : (t(), s("div", Mo, [
1579
- q(mt, null, ce({
1596
+ F(mt, null, ce({
1580
1597
  default: v(() => {
1581
- var F;
1598
+ var M;
1582
1599
  return [
1583
1600
  "items" in z.property ? (t(), s("div", qo, [
1584
- (t(!0), s(N, null, D(z.modelValue, (G) => (t(), $(Xe, H({ ref_for: !0 }, {
1585
- item: G,
1601
+ (t(!0), s(N, null, D(z.modelValue, (H) => (t(), $(Xe, Q({ ref_for: !0 }, {
1602
+ item: H,
1586
1603
  indexes: e(h),
1587
1604
  property: z.property,
1588
1605
  readOnly: z.readOnly,
1589
1606
  modelValue: z.modelValue
1590
1607
  }, {
1591
- key: `selected-${G._id}`,
1608
+ key: `selected-${H._id}`,
1592
1609
  "onUpdate:modelValue": ne
1593
1610
  }), null, 16))), 128))
1594
- ])) : (F = z.modelValue) != null && F._id ? (t(), $(Xe, H({ key: 1 }, {
1611
+ ])) : (M = z.modelValue) != null && M._id ? (t(), $(Xe, Q({ key: 1 }, {
1595
1612
  item: z.modelValue,
1596
1613
  indexes: e(h),
1597
1614
  property: e(n),
@@ -1607,10 +1624,10 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1607
1624
  fn: v(() => [
1608
1625
  x((t(), $(Z, {
1609
1626
  icon: "plus",
1610
- onClick: j
1627
+ onClick: T
1611
1628
  }, {
1612
1629
  default: v(() => [
1613
- W(g(e(L)("action.select", { capitalize: !0 })), 1)
1630
+ W(k(e(L)("action.select", { capitalize: !0 })), 1)
1614
1631
  ]),
1615
1632
  _: 1
1616
1633
  })), [
@@ -1625,7 +1642,7 @@ const Xe = /* @__PURE__ */ K(Ao, [["__scopeId", "data-v-5e6ec702"]]), Bo = { cla
1625
1642
  };
1626
1643
  }
1627
1644
  });
1628
- const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r) => {
1645
+ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-15bbe202"]]), ft = (u, r) => {
1629
1646
  const l = "items" in u ? u.items : u, n = {
1630
1647
  options: Jn,
1631
1648
  select: Ge,
@@ -1659,9 +1676,9 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r
1659
1676
  return u.push(i);
1660
1677
  }
1661
1678
  return "properties" in n ? u.push(Wt(n)) : "type" in n && n.type === "boolean" ? u.push({}) : u.push(null);
1662
- }, Do = (u, r) => {
1679
+ }, Ho = (u, r) => {
1663
1680
  u.splice(r, 1);
1664
- }, Ho = {
1681
+ }, Do = {
1665
1682
  key: 0,
1666
1683
  class: "form__header"
1667
1684
  }, Qo = { class: "form__fieldset" }, Go = { key: 0 }, Wo = ["innerHTML"], Ko = ["onInput"], Xo = { key: 4 }, Yo = { value: "true" }, Jo = { value: "false" }, Zo = {
@@ -1696,7 +1713,8 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r
1696
1713
  validationErrors: { default: null },
1697
1714
  highlightRequired: { type: Boolean, default: !0 },
1698
1715
  focus: { type: Boolean },
1699
- includeId: { type: Boolean }
1716
+ includeId: { type: Boolean },
1717
+ includeTimestamps: { type: Boolean }
1700
1718
  },
1701
1719
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1702
1720
  setup(u, { emit: r }) {
@@ -1708,239 +1726,247 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r
1708
1726
  const i = n.property && me(n.property), c = i ? i.$ref : n.collection || Fe(), _ = n.readOnly || ((U = n.property) == null ? void 0 : U.readOnly), d = c ? ie(e(c)) : null;
1709
1727
  !c && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
1710
1728
  collection prop, some features may not work as intended`);
1711
- const h = J(!1), p = Q(() => {
1729
+ const h = J(!1), p = G(() => {
1712
1730
  const f = (() => !n.form && n.property ? "properties" in n.property ? n.property.properties : d == null ? void 0 : d.properties : n.form)();
1713
1731
  if (!f)
1714
1732
  return;
1715
- const F = {};
1716
- return n.includeId && (F._id = {
1733
+ const M = {};
1734
+ if (n.includeId && (M._id = {
1717
1735
  type: "string",
1718
- readOnly: !0,
1719
- description: "id"
1720
- }), Object.assign(F, f), F;
1721
- }), o = Q(() => n.layout || (d == null ? void 0 : d.description.formLayout)), m = (f) => {
1722
- const F = _e(f, n[f]);
1723
- return n[f] && ye(f, n[f]), F;
1724
- }, A = Q(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), b = m("formComponents") || {}, S = m("propertyComponents") || {}, T = m("omitFormHeader"), P = m("omitInputLabels"), B = m("innerInputLabel");
1736
+ readOnly: !0
1737
+ }), n.includeTimestamps) {
1738
+ const H = {
1739
+ type: "string",
1740
+ format: "date-time",
1741
+ readOnly: !0,
1742
+ isTimestamp: !0
1743
+ };
1744
+ f.created_at || (M.created_at = H), f.created_at || (M.updated_at = H);
1745
+ }
1746
+ return Object.assign(M, f), M;
1747
+ }), o = G(() => n.layout || (d == null ? void 0 : d.description.formLayout)), m = (f) => {
1748
+ const M = _e(f, n[f]);
1749
+ return n[f] && ye(f, n[f]), M;
1750
+ }, A = G(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), b = m("formComponents") || {}, S = m("propertyComponents") || {}, j = m("omitFormHeader"), P = m("omitInputLabels"), B = m("innerInputLabel");
1725
1751
  c && ye(Ue, c), ye("searchOnly", n.searchOnly);
1726
- const R = (f) => p.value ? Object.entries(p.value).filter(([F, G]) => !G.noForm && f([
1727
- F,
1728
- G
1729
- ])) : null, Y = (f) => {
1730
- var G;
1731
- if (n.searchOnly || !c || n.includeId && f === "_id")
1752
+ const R = (f) => p.value ? Object.entries(p.value).filter(([M, H]) => !H.noForm && f([
1753
+ M,
1754
+ H
1755
+ ])) : null, Y = (f, M) => {
1756
+ var g;
1757
+ if (n.searchOnly || !c || n.includeId && f === "_id" || n.includeTimestamps && M.isTimestamp)
1732
1758
  return !0;
1733
- const F = n.property && "properties" in n.property ? n.property.form : (G = d == null ? void 0 : d.description) == null ? void 0 : G.form;
1734
- return !F || F.includes(f);
1735
- }, w = R(([f]) => Y(f)), te = qe(), k = {}, j = (f, F) => {
1736
- var M, fe, we, Se;
1737
- const G = [], V = ((fe = (M = o.value) == null ? void 0 : M.fields) == null ? void 0 : fe[f]) || ((Se = (we = o.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
1738
- if (!F)
1759
+ const H = n.property && "properties" in n.property ? n.property.form : (g = d == null ? void 0 : d.description) == null ? void 0 : g.form;
1760
+ return !H || H.includes(f);
1761
+ }, w = R(([f, M]) => Y(f, M)), te = qe(), V = {}, T = (f, M) => {
1762
+ var q, fe, we, Se;
1763
+ const H = [], g = ((fe = (q = o.value) == null ? void 0 : q.fields) == null ? void 0 : fe[f]) || ((Se = (we = o.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
1764
+ if (!M)
1739
1765
  return;
1740
- if (V != null && V.if && !n.searchOnly) {
1741
- const je = Ye(
1766
+ if (g != null && g.if && !n.searchOnly) {
1767
+ const Te = Ye(
1742
1768
  n.modelValue,
1743
- V.if
1769
+ g.if
1744
1770
  );
1745
- je.satisfied || (k[f] && (d ? n.modelValue[f] = typeof d.$freshItem[f] == "object" ? ke(d.$freshItem[f]) : d.$freshItem[f] : n.modelValue[f] = [
1771
+ Te.satisfied || (V[f] && (d ? n.modelValue[f] = typeof d.$freshItem[f] == "object" ? ke(d.$freshItem[f]) : d.$freshItem[f] : n.modelValue[f] = [
1746
1772
  void 0,
1747
1773
  null
1748
- ].includes(n.modelValue[f]) ? null : n.modelValue[f].constructor()), G.push("display: none;")), k[f] = je.satisfied;
1774
+ ].includes(n.modelValue[f]) ? null : n.modelValue[f].constructor()), H.push("display: none;")), V[f] = Te.satisfied;
1749
1775
  }
1750
- const I = te.value.md && (V == null ? void 0 : V.span) || 6;
1751
- return G.push(`
1776
+ const I = te.value.md && (g == null ? void 0 : g.span) || 6;
1777
+ return H.push(`
1752
1778
  --field-span: ${I};
1753
1779
  grid-column: span var(--field-span) / span var(--field-span);
1754
- `), V && (V.verticalSpacing && G.push(`
1755
- --vertical-spacing: ${V.verticalSpacing};
1780
+ `), g && (g.verticalSpacing && H.push(`
1781
+ --vertical-spacing: ${g.verticalSpacing};
1756
1782
  padding: var(--vertical-spacing) 0;
1757
- `), V.separator && G.push(`
1783
+ `), g.separator && H.push(`
1758
1784
  border-top: 1px solid var(--theme-border-color);
1759
1785
  border-width: 1px 0 1px 0;
1760
1786
  padding: 1rem 0;
1761
1787
  margin: 1rem 0;
1762
- `)), G.join("");
1763
- }, ae = (f) => f === null || f instanceof Object && !Object.keys(f).length, le = Q(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), ne = Q(() => n.form ? Ft(
1788
+ `)), H.join("");
1789
+ }, ae = (f) => f === null || f instanceof Object && !Object.keys(f).length, le = G(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), ne = G(() => n.form ? Ft(
1764
1790
  n.modelValue,
1765
1791
  n.form,
1766
1792
  le.value,
1767
1793
  d == null ? void 0 : d.description
1768
- ) : !0), se = (f, F) => {
1769
- var G;
1770
- return (G = A.value) != null && G[f] && (typeof A.value[f].index != "number" || A.value[f].index === F) ? A.value[f].errors : null;
1794
+ ) : !0), se = (f, M) => {
1795
+ var H;
1796
+ return (H = A.value) != null && H[f] && (typeof A.value[f].index != "number" || A.value[f].index === M) ? A.value[f].errors : null;
1771
1797
  }, z = (f) => {
1772
1798
  if (!(_ || f.readOnly) && !n.parentPropertyName && !n.parentCollection && !h.value)
1773
1799
  return h.value = !0, !0;
1774
1800
  };
1775
- return (f, F) => {
1776
- const G = oe("clickable"), V = oe("focus");
1801
+ return (f, M) => {
1802
+ const H = oe("clickable"), g = oe("focus");
1777
1803
  return t(), s("form", {
1778
1804
  class: "form",
1779
- style: be(`row-gap: ${e(T) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1805
+ style: be(`row-gap: ${e(j) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1780
1806
  }, [
1781
- f.$slots.header && !e(T) ? (t(), s("header", Ho, [
1807
+ f.$slots.header && !e(j) ? (t(), s("header", Do, [
1782
1808
  O(f.$slots, "header", {}, void 0, !0)
1783
1809
  ])) : y("", !0),
1784
1810
  O(f.$slots, "default", {}, void 0, !0),
1785
1811
  C("fieldset", Qo, [
1786
- (t(!0), s(N, null, D(e(w), ([I, M]) => {
1787
- var fe, we, Se, je, Ne, xe, et, tt, nt, ot, at, lt, st;
1812
+ (t(!0), s(N, null, D(e(w), ([I, q]) => {
1813
+ var fe, we, Se, Te, Ne, xe, et, tt, nt, ot, at, lt, st;
1788
1814
  return t(), s("div", {
1789
1815
  key: `field-${I}`,
1790
- style: be(j(I, M)),
1816
+ style: be(T(I, q)),
1791
1817
  class: "form__field"
1792
1818
  }, [
1793
- (!("type" in M) || M.type !== "boolean" || f.searchOnly) && !M.noLabel && !e(P) && !e(B) ? (t(), s("label", Go, [
1819
+ (!("type" in q) || q.type !== "boolean" || f.searchOnly) && !q.noLabel && !e(P) && !e(B) ? (t(), s("label", Go, [
1794
1820
  C("div", {
1795
1821
  class: X({
1796
1822
  "form__field-label": !0,
1797
- "form__field-label--section": "items" in M ? "properties" in M.items : "properties" in M,
1823
+ "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1798
1824
  "form__field-required-hint": f.highlightRequired && !e(_) && !f.searchOnly && (!le.value || e(Kt)(I, le.value, f.modelValue))
1799
1825
  })
1800
- }, g(M.description || e(L)(I)), 3),
1801
- M.hint ? (t(), s("div", {
1826
+ }, k(q.description || e(L)(I)), 3),
1827
+ q.hint ? (t(), s("div", {
1802
1828
  key: 0,
1803
- innerHTML: M.hint
1829
+ innerHTML: q.hint
1804
1830
  }, null, 8, Wo)) : y("", !0)
1805
1831
  ])) : y("", !0),
1806
- f.$slots[`field-${I}`] ? O(f.$slots, `field-${I}`, H({
1832
+ f.$slots[`field-${I}`] ? O(f.$slots, `field-${I}`, Q({
1807
1833
  key: 1,
1808
1834
  ref_for: !0
1809
1835
  }, {
1810
- propery: M,
1836
+ propery: q,
1811
1837
  properyName: I,
1812
1838
  modelValue: f.modelValue
1813
- }), void 0, !0) : (Se = (we = (fe = f.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(S)[f.layout.fields[I].component.name] ? (t(), $(he(e(S)[f.layout.fields[I].component.name]), H({
1839
+ }), void 0, !0) : (Se = (we = (fe = f.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(S)[f.layout.fields[I].component.name] ? (t(), $(he(e(S)[f.layout.fields[I].component.name]), Q({
1814
1840
  key: 2,
1815
1841
  modelValue: f.modelValue[I],
1816
1842
  "onUpdate:modelValue": (ee) => f.modelValue[I] = ee,
1817
1843
  ref_for: !0
1818
1844
  }, {
1819
1845
  readOnly: e(_),
1820
- property: M,
1846
+ property: q,
1821
1847
  propertyName: I,
1822
1848
  ...f.layout.fields[I].component.props || {}
1823
1849
  }, {
1824
1850
  onInput: (ee) => a("input", I),
1825
- onChange: F[0] || (F[0] = (ee) => a("change", ee))
1826
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in M && ["date", "date-time"].includes(M.format) && f.searchOnly ? (t(), s("div", {
1851
+ onChange: M[0] || (M[0] = (ee) => a("change", ee))
1852
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && f.searchOnly ? (t(), s("div", {
1827
1853
  key: 3,
1828
1854
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1829
1855
  onInput: (ee) => a("input", I),
1830
- onChange: F[1] || (F[1] = (ee) => a("change", ee))
1856
+ onChange: M[1] || (M[1] = (ee) => a("change", ee))
1831
1857
  }, [
1832
- q(Oe, H({
1858
+ F(Oe, Q({
1833
1859
  modelValue: f.modelValue[I].$gte,
1834
1860
  "onUpdate:modelValue": (ee) => f.modelValue[I].$gte = ee,
1835
1861
  ref_for: !0
1836
1862
  }, {
1837
- property: M,
1863
+ property: q,
1838
1864
  propertyName: I
1839
1865
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1840
- q(Oe, H({
1866
+ F(Oe, Q({
1841
1867
  modelValue: f.modelValue[I].$lte,
1842
1868
  "onUpdate:modelValue": (ee) => f.modelValue[I].$lte = ee,
1843
1869
  ref_for: !0
1844
1870
  }, {
1845
- property: M,
1871
+ property: q,
1846
1872
  propertyName: I
1847
1873
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1848
- ], 40, Ko)) : "type" in M && M.type === "boolean" && f.searchOnly ? (t(), s("div", Xo, [
1849
- q(Ge, H({ ref_for: !0 }, {
1850
- property: M,
1874
+ ], 40, Ko)) : "type" in q && q.type === "boolean" && f.searchOnly ? (t(), s("div", Xo, [
1875
+ F(Ge, Q({ ref_for: !0 }, {
1876
+ property: q,
1851
1877
  propertyName: I
1852
1878
  }, {
1853
1879
  "boolean-ref": "",
1854
1880
  "model-value": f.modelValue[I],
1855
- onChange: F[2] || (F[2] = (ee) => a("change", ee)),
1881
+ onChange: M[2] || (M[2] = (ee) => a("change", ee)),
1856
1882
  "onUpdate:modelValue": (ee) => {
1857
1883
  f.modelValue[I] = ee == "true" ? !0 : ee == "false" ? !1 : null;
1858
1884
  }
1859
1885
  }), {
1860
1886
  default: v(() => [
1861
- C("option", Yo, g(e(L)("yes")), 1),
1862
- C("option", Jo, g(e(L)("no")), 1)
1887
+ C("option", Yo, k(e(L)("yes")), 1),
1888
+ C("option", Jo, k(e(L)("no")), 1)
1863
1889
  ]),
1864
1890
  _: 2
1865
1891
  }, 1040, ["model-value", "onUpdate:modelValue"])
1866
- ])) : f.modelValue && "items" in M && !M.uniqueItems && (!("$ref" in M.items) || M.items.inline || M.items.$ref === "file") ? (t(), s("div", Zo, [
1892
+ ])) : f.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (t(), s("div", Zo, [
1867
1893
  e(_) ? y("", !0) : (t(), s("div", Po, [
1868
- q(re, {
1894
+ F(re, {
1869
1895
  small: "",
1870
1896
  variant: "alt",
1871
1897
  icon: "plus",
1872
- disabled: !("inline" in M.items && M.items.inline) && (((je = f.modelValue[I]) == null ? void 0 : je.length) >= M.maxItems || ae((xe = f.modelValue[I]) == null ? void 0 : xe[((Ne = f.modelValue[I]) == null ? void 0 : Ne.length) - 1])),
1898
+ disabled: !("inline" in q.items && q.items.inline) && (((Te = f.modelValue[I]) == null ? void 0 : Te.length) >= q.maxItems || ae((xe = f.modelValue[I]) == null ? void 0 : xe[((Ne = f.modelValue[I]) == null ? void 0 : Ne.length) - 1])),
1873
1899
  onClick: ze((ee) => {
1874
- f.modelValue[I] || (f.modelValue[I] = []), e(Eo)(f.modelValue[I], M, e(l));
1900
+ f.modelValue[I] || (f.modelValue[I] = []), e(Eo)(f.modelValue[I], q, e(l));
1875
1901
  }, ["prevent"])
1876
1902
  }, {
1877
1903
  default: v(() => [
1878
- W(g(e(L)("action.add", { capitalize: !0 })), 1)
1904
+ W(k(e(L)("action.add", { capitalize: !0 })), 1)
1879
1905
  ]),
1880
1906
  _: 2
1881
1907
  }, 1032, ["disabled", "onClick"])
1882
1908
  ])),
1883
1909
  C("div", No, [
1884
- (t(!0), s(N, null, D(f.modelValue[I], (ee, Te) => {
1910
+ (t(!0), s(N, null, D(f.modelValue[I], (ee, je) => {
1885
1911
  var it, rt, ut, ct, dt, pt;
1886
1912
  return t(), s("div", {
1887
- key: `rep-${I}-${e(Ut)(ee, Te)}`,
1913
+ key: `rep-${I}-${e(Ut)(ee, je)}`,
1888
1914
  class: "form__array-item"
1889
1915
  }, [
1890
1916
  C("div", xo, [
1891
- (t(), $(he(e(ft)(M, e(b))), H({
1892
- modelValue: f.modelValue[I][Te],
1893
- "onUpdate:modelValue": (Re) => f.modelValue[I][Te] = Re,
1917
+ (t(), $(he(e(ft)(q, e(b))), Q({
1918
+ modelValue: f.modelValue[I][je],
1919
+ "onUpdate:modelValue": (Re) => f.modelValue[I][je] = Re,
1894
1920
  ref_for: !0
1895
1921
  }, {
1896
1922
  readOnly: e(_),
1897
- property: M.items,
1923
+ property: q.items,
1898
1924
  propertyName: I,
1899
1925
  parentCollection: e(c),
1900
1926
  parentPropertyName: f.parentPropertyName,
1901
1927
  columns: ((ut = (rt = (it = f.layout) == null ? void 0 : it.fields) == null ? void 0 : rt[I]) == null ? void 0 : ut.optionsColumns) || ((pt = (dt = (ct = f.layout) == null ? void 0 : ct.fields) == null ? void 0 : dt.$default) == null ? void 0 : pt.optionsColumns),
1902
- validationErrors: se(I, Te),
1903
- ...M.componentProps || {}
1928
+ validationErrors: se(I, je),
1929
+ ...q.componentProps || {}
1904
1930
  }, {
1905
1931
  onInput: (Re) => a("input", I),
1906
- onChange: F[3] || (F[3] = (Re) => a("change", Re))
1932
+ onChange: M[3] || (M[3] = (Re) => a("change", Re))
1907
1933
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
1908
1934
  ]),
1909
1935
  e(_) ? y("", !0) : x((t(), $(Z, {
1910
1936
  key: 0,
1911
1937
  reactive: "",
1912
1938
  icon: "trash",
1913
- onClick: (Re) => e(Do)(f.modelValue[I], Te)
1939
+ onClick: (Re) => e(Ho)(f.modelValue[I], je)
1914
1940
  }, null, 8, ["onClick"])), [
1915
- [G]
1941
+ [H]
1916
1942
  ])
1917
1943
  ]);
1918
1944
  }), 128))
1919
1945
  ])
1920
- ])) : f.modelValue ? x((t(), $(he(e(ft)(M, e(b))), H({
1946
+ ])) : f.modelValue ? x((t(), $(he(e(ft)(q, e(b))), Q({
1921
1947
  key: 6,
1922
1948
  modelValue: f.modelValue[I],
1923
1949
  "onUpdate:modelValue": (ee) => f.modelValue[I] = ee,
1924
1950
  ref_for: !0
1925
1951
  }, {
1926
1952
  readOnly: e(_),
1927
- property: M,
1953
+ property: q,
1928
1954
  propertyName: I,
1929
1955
  parentPropertyName: f.parentPropertyName,
1930
1956
  parentCollection: e(c),
1931
1957
  columns: ((nt = (tt = (et = f.layout) == null ? void 0 : et.fields) == null ? void 0 : tt[I]) == null ? void 0 : nt.optionsColumns) || ((lt = (at = (ot = f.layout) == null ? void 0 : ot.fields) == null ? void 0 : at.$default) == null ? void 0 : lt.optionsColumns),
1932
- ...M.componentProps || {},
1958
+ ...q.componentProps || {},
1933
1959
  validationErrors: se(I)
1934
1960
  }, {
1935
1961
  onInput: (ee) => a("input", I),
1936
- onChange: F[4] || (F[4] = (ee) => a("change", ee)),
1937
- onClipboardCopy: F[5] || (F[5] = (ee) => a("clipboardCopy", ee))
1962
+ onChange: M[4] || (M[4] = (ee) => a("change", ee)),
1963
+ onClipboardCopy: M[5] || (M[5] = (ee) => a("clipboardCopy", ee))
1938
1964
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1939
- [V, z(M)]
1965
+ [g, z(q)]
1940
1966
  ]) : y("", !0),
1941
1967
  (st = A.value) != null && st[I] ? (t(), s("div", ea, [
1942
- A.value[I].type ? (t(), s("span", ta, g(e(L)(`validation_error.${A.value[I].type}`)), 1)) : y("", !0),
1943
- A.value[I].detail ? (t(), s("span", na, g(e(L)(A.value[I].detail)), 1)) : y("", !0)
1968
+ A.value[I].type ? (t(), s("span", ta, k(e(L)(`validation_error.${A.value[I].type}`)), 1)) : y("", !0),
1969
+ A.value[I].detail ? (t(), s("span", na, k(e(L)(A.value[I].detail)), 1)) : y("", !0)
1944
1970
  ])) : y("", !0)
1945
1971
  ], 4);
1946
1972
  }), 128))
@@ -1955,7 +1981,7 @@ const Uo = /* @__PURE__ */ K(Fo, [["__scopeId", "data-v-ab792241"]]), ft = (u, r
1955
1981
  };
1956
1982
  }
1957
1983
  });
1958
- const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @__PURE__ */ E({
1984
+ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-2b4560f7"]]), la = /* @__PURE__ */ E({
1959
1985
  __name: "aeria-filter-panel",
1960
1986
  emits: ["update:modelValue"],
1961
1987
  setup(u, { emit: r }) {
@@ -1986,30 +2012,30 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
1986
2012
  })
1987
2013
  }, {
1988
2014
  default: v(() => [
1989
- W(g(_.t("action.clear", { capitalize: !0 })) + " ", 1),
1990
- q($e, null, {
2015
+ W(k(_.t("action.clear", { capitalize: !0 })) + " ", 1),
2016
+ F($e, null, {
1991
2017
  default: v(() => [
1992
- W(g(e(n).filtersCount), 1)
2018
+ W(k(e(n).filtersCount), 1)
1993
2019
  ]),
1994
2020
  _: 1
1995
2021
  })
1996
2022
  ]),
1997
2023
  _: 1
1998
2024
  })) : y("", !0),
1999
- q(re, {
2025
+ F(re, {
2000
2026
  large: "",
2001
2027
  icon: "funnel",
2002
2028
  disabled: !e(n).hasActiveFilters,
2003
2029
  onClick: c
2004
2030
  }, {
2005
2031
  default: v(() => [
2006
- W(g(_.t("action.filter", { capitalize: !0 })), 1)
2032
+ W(k(_.t("action.filter", { capitalize: !0 })), 1)
2007
2033
  ]),
2008
2034
  _: 1
2009
2035
  }, 8, ["disabled"])
2010
2036
  ]),
2011
2037
  default: v(() => [
2012
- q(We, H({
2038
+ F(We, Q({
2013
2039
  modelValue: e(n).filters,
2014
2040
  "onUpdate:modelValue": d[0] || (d[0] = (h) => e(n).filters = h)
2015
2041
  }, {
@@ -2027,7 +2053,8 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2027
2053
  collection: {},
2028
2054
  modelValue: { type: [Boolean, String] },
2029
2055
  readOnly: { type: Boolean },
2030
- includeId: { type: Boolean }
2056
+ includeId: { type: Boolean },
2057
+ includeTimestamps: { type: Boolean }
2031
2058
  },
2032
2059
  emits: ["update:modelValue", "cancel"],
2033
2060
  setup(u, { emit: r }) {
@@ -2054,7 +2081,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2054
2081
  onOverlayClick: h
2055
2082
  }, ce({
2056
2083
  extra: v(() => [
2057
- q(Ce, H({
2084
+ F(Ce, Q({
2058
2085
  subject: e(i).item,
2059
2086
  actions: e(c).filter(({ action: b }) => b !== "ui:spawnEdit")
2060
2087
  }, {
@@ -2073,12 +2100,13 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2073
2100
  }, 16)
2074
2101
  ]),
2075
2102
  default: v(() => [
2076
- q(We, H({
2103
+ F(We, Q({
2077
2104
  modelValue: e(i).item,
2078
2105
  "onUpdate:modelValue": m[0] || (m[0] = (b) => e(i).item = b)
2079
2106
  }, {
2080
2107
  readOnly: o.readOnly,
2081
2108
  includeId: o.includeId,
2109
+ includeTimestamps: o.includeTimestamps,
2082
2110
  collection: e(a).view.collection,
2083
2111
  form: e(i).description.form ? e(i).$actions.useProperties(e(i).description.form) : e(i).properties,
2084
2112
  layout: e(i).description.formLayout || {}
@@ -2107,23 +2135,23 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2107
2135
  o.readOnly ? void 0 : {
2108
2136
  name: "footer",
2109
2137
  fn: v(() => [
2110
- q(re, {
2138
+ F(re, {
2111
2139
  variant: "transparent",
2112
2140
  onClick: h
2113
2141
  }, {
2114
2142
  default: v(() => [
2115
- W(g(e(d)("action.cancel", { capitalize: !0 })), 1)
2143
+ W(k(e(d)("action.cancel", { capitalize: !0 })), 1)
2116
2144
  ]),
2117
2145
  _: 1
2118
2146
  }),
2119
- q(re, {
2147
+ F(re, {
2120
2148
  large: "",
2121
2149
  disabled: !e(i).isInsertReady || e(i).loading.get,
2122
2150
  loading: e(i).loading.insert,
2123
2151
  onClick: _
2124
2152
  }, {
2125
2153
  default: v(() => [
2126
- W(g(e(d)("action.insert", { capitalize: !0 })), 1)
2154
+ W(k(e(d)("action.insert", { capitalize: !0 })), 1)
2127
2155
  ]),
2128
2156
  _: 1
2129
2157
  }, 8, ["disabled", "loading"])
@@ -2162,7 +2190,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2162
2190
  }, {
2163
2191
  immediate: !0
2164
2192
  });
2165
- }, ra = (u) => (He("data-v-2a6c7067"), u = u(), Qe(), u), ua = {
2193
+ }, ra = (u) => (De("data-v-2a6c7067"), u = u(), Qe(), u), ua = {
2166
2194
  key: 0,
2167
2195
  class: "table aeria-surface"
2168
2196
  }, ca = { key: 0 }, da = { key: 1 }, pa = { key: 0 }, _a = ["checked"], ma = {
@@ -2174,7 +2202,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2174
2202
  }, ka = {
2175
2203
  key: 1,
2176
2204
  class: "table__cell-container"
2177
- }, Va = { class: "table__cell-grid" }, Ca = { key: 0 }, Oa = { key: 1 }, Ia = { key: 0 }, Aa = ["href"], Ba = { key: 3 }, wa = { key: 1 }, Sa = { key: 2 }, ja = { key: 0 }, Ta = { key: 1 }, Ra = { key: 2 }, La = {
2205
+ }, Va = { class: "table__cell-grid" }, Ca = { key: 0 }, Oa = { key: 1 }, Ia = { key: 0 }, Aa = ["href"], Ba = { key: 3 }, wa = { key: 1 }, Sa = { key: 2 }, Ta = { key: 0 }, ja = { key: 1 }, Ra = { key: 2 }, La = {
2178
2206
  key: 1,
2179
2207
  class: "no-print"
2180
2208
  }, za = { class: "table__cell-actions" }, Ma = {
@@ -2184,7 +2212,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2184
2212
  /* @__PURE__ */ C("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
2185
2213
  ], -1)), Ea = [
2186
2214
  Ua
2187
- ], Da = /* @__PURE__ */ E({
2215
+ ], Ha = /* @__PURE__ */ E({
2188
2216
  __name: "aeria-table",
2189
2217
  props: {
2190
2218
  columns: {},
@@ -2196,7 +2224,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2196
2224
  },
2197
2225
  emits: ["itemClick"],
2198
2226
  setup(u, { emit: r }) {
2199
- const l = u, n = r, a = qe(), i = l.collection || Fe(), c = i ? ie(typeof i == "string" ? i : i.value) : null, _ = Q({
2227
+ const l = u, n = r, a = qe(), i = l.collection || Fe(), c = i ? ie(typeof i == "string" ? i : i.value) : null, _ = G({
2200
2228
  get: () => c == null ? void 0 : c.selected,
2201
2229
  set: (m) => c == null ? void 0 : c.$actions.selectManyItems(m, !0)
2202
2230
  }), d = (m, A) => m != null && m.button ? typeof m.button == "object" ? Ye(A, m.button).satisfied : m.button : !1, h = (m) => {
@@ -2210,22 +2238,22 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2210
2238
  return l.actions ? !a.value.xl || !((A = l.layout) != null && A.actions) ? l.actions : l.actions.filter((b) => {
2211
2239
  const S = l.layout.actions[b.action];
2212
2240
  if (b.roles) {
2213
- const T = ie("user");
2214
- if (!Vt(b.roles, T.currentUser.roles))
2241
+ const j = ie("user");
2242
+ if (!Vt(b.roles, j.currentUser.roles))
2215
2243
  return !1;
2216
2244
  }
2217
2245
  return !d(S, m);
2218
2246
  }) : [];
2219
2247
  }, o = (m, A) => {
2220
- var T, P;
2221
- const b = [], S = (P = (T = l.layout) == null ? void 0 : T.actions) == null ? void 0 : P[A.action];
2248
+ var j, P;
2249
+ const b = [], S = (P = (j = l.layout) == null ? void 0 : j.actions) == null ? void 0 : P[A.action];
2222
2250
  return S != null && S.if && (Ye(
2223
2251
  m,
2224
2252
  S.if
2225
2253
  ).satisfied || b.push("display: none;")), b.join("");
2226
2254
  };
2227
2255
  return (m, A) => {
2228
- var S, T, P;
2256
+ var S, j, P;
2229
2257
  const b = oe("clickable");
2230
2258
  return m.columns && Object.keys(m.columns).length > 0 || m.$slots.thead ? (t(), s("table", ua, [
2231
2259
  m.$slots.thead ? (t(), s("thead", ca, [
@@ -2242,7 +2270,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2242
2270
  (t(!0), s(N, null, D(Object.entries(m.columns), ([B, R], Y) => (t(), s("th", {
2243
2271
  key: `header-${Y}`,
2244
2272
  class: "table__header"
2245
- }, g(R.description || e(L)(B)), 1))), 128)),
2273
+ }, k(R.description || e(L)(B)), 1))), 128)),
2246
2274
  (S = m.actions) != null && S.length ? (t(), s("th", ma)) : y("", !0)
2247
2275
  ])
2248
2276
  ])),
@@ -2264,14 +2292,14 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2264
2292
  [Bt, _.value]
2265
2293
  ])
2266
2294
  ])) : y("", !0),
2267
- (t(!0), s(N, null, D(Object.entries(m.columns), ([w, te], k) => {
2268
- var j, ae, le;
2295
+ (t(!0), s(N, null, D(Object.entries(m.columns), ([w, te], V) => {
2296
+ var T, ae, le;
2269
2297
  return t(), s("td", {
2270
- key: `column-${B._id}-${k}`
2298
+ key: `column-${B._id}-${V}`
2271
2299
  }, [
2272
- C("div", $a, g(te.description || e(L)(w)), 1),
2300
+ C("div", $a, k(te.description || e(L)(w)), 1),
2273
2301
  `row-${w}` in m.$slots ? (t(), s("div", ga, [
2274
- O(m.$slots, `row-${w}`, H({ ref_for: !0 }, {
2302
+ O(m.$slots, `row-${w}`, Q({ ref_for: !0 }, {
2275
2303
  store: e(c),
2276
2304
  column: w,
2277
2305
  property: te,
@@ -2286,7 +2314,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2286
2314
  "icon-classes": "aeria-blueish"
2287
2315
  }, {
2288
2316
  default: v(() => [
2289
- W(g(e(L)("yes")), 1)
2317
+ W(k(e(L)("yes")), 1)
2290
2318
  ]),
2291
2319
  _: 1
2292
2320
  })) : (t(), $(Z, {
@@ -2295,13 +2323,13 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2295
2323
  "icon-classes": "aeria-redish"
2296
2324
  }, {
2297
2325
  default: v(() => [
2298
- W(g(e(L)("no")), 1)
2326
+ W(k(e(L)("no")), 1)
2299
2327
  ]),
2300
2328
  _: 1
2301
2329
  }))
2302
- ])) : ((j = e(me)(te)) == null ? void 0 : j.$ref) === "file" ? (t(), s("div", Oa, [
2330
+ ])) : ((T = e(me)(te)) == null ? void 0 : T.$ref) === "file" ? (t(), s("div", Oa, [
2303
2331
  B[w] ? (t(), s("div", Ia, [
2304
- "items" in te && B[w][0] && /^image/.test(B[w][0].type) ? (t(), $(De, {
2332
+ "items" in te && B[w][0] && /^image/.test(B[w][0].type) ? (t(), $(He, {
2305
2333
  key: 0,
2306
2334
  modelValue: B[w][0].link,
2307
2335
  "onUpdate:modelValue": (ne) => B[w][0].link = ne,
@@ -2309,7 +2337,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2309
2337
  meta: B[w][0],
2310
2338
  alt: "Row image",
2311
2339
  class: "table__picture"
2312
- }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(B[w].type) ? (t(), $(De, {
2340
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(B[w].type) ? (t(), $(He, {
2313
2341
  key: 1,
2314
2342
  modelValue: B[w].link,
2315
2343
  "onUpdate:modelValue": (ne) => B[w].link = ne,
@@ -2321,19 +2349,19 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2321
2349
  key: 2,
2322
2350
  href: B[w].link,
2323
2351
  style: { "font-size": "10pt" }
2324
- }, g(B[w].filename), 9, Aa)) : (t(), s("div", Ba, " - "))
2352
+ }, k(B[w].filename), 9, Aa)) : (t(), s("div", Ba, " - "))
2325
2353
  ])) : (t(), s("div", wa, " - "))
2326
2354
  ])) : (t(), s("div", Sa, [
2327
- e(c) ? (t(), s("span", ja, g(e(c).$actions.formatValue({
2355
+ e(c) ? (t(), s("span", Ta, k(e(c).$actions.formatValue({
2328
2356
  value: B[w],
2329
2357
  key: w,
2330
2358
  property: te
2331
- })), 1)) : (t(), s("span", Ta, g(Array.isArray(B[w]) ? B[w].filter((ne) => !!ne).join(", ") : [void 0, null].includes(B[w]) ? "-" : B[w]), 1)),
2359
+ })), 1)) : (t(), s("span", ja, k(Array.isArray(B[w]) ? B[w].filter((ne) => !!ne).join(", ") : [void 0, null].includes(B[w]) ? "-" : B[w]), 1)),
2332
2360
  ((le = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : le.length) > 1 ? (t(), s("div", Ra, [
2333
2361
  (t(!0), s(N, null, D(e(me)(te).indexes.slice(1, 2), (ne, se) => (t(), s("div", {
2334
2362
  key: `subvalue-${se}`,
2335
2363
  class: "table__cell-subvalue"
2336
- }, g(e(c).$actions.formatValue({
2364
+ }, k(e(c).$actions.formatValue({
2337
2365
  value: B[w],
2338
2366
  key: w,
2339
2367
  property: te,
@@ -2356,11 +2384,11 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2356
2384
  onClick: (te) => w.click(B)
2357
2385
  }, {
2358
2386
  default: v(() => [
2359
- W(g(e(L)(w.label)), 1)
2387
+ W(k(e(L)(w.label)), 1)
2360
2388
  ]),
2361
2389
  _: 2
2362
2390
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2363
- p(B).length > 0 ? (t(), $(Ce, H({
2391
+ p(B).length > 0 ? (t(), $(Ce, Q({
2364
2392
  key: 0,
2365
2393
  ref_for: !0
2366
2394
  }, {
@@ -2368,7 +2396,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2368
2396
  actions: p(B)
2369
2397
  }), {
2370
2398
  default: v(() => [
2371
- x(q(Z, {
2399
+ x(F(Z, {
2372
2400
  reactive: "",
2373
2401
  icon: "dots-three"
2374
2402
  }, null, 512), [
@@ -2389,18 +2417,18 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2389
2417
  onClick: (te) => w.click(B)
2390
2418
  }, {
2391
2419
  default: v(() => [
2392
- q(Z, {
2420
+ F(Z, {
2393
2421
  icon: w.icon || "gear"
2394
2422
  }, {
2395
2423
  default: v(() => [
2396
- W(g(e(L)(w.label)), 1)
2424
+ W(k(e(L)(w.label)), 1)
2397
2425
  ]),
2398
2426
  _: 2
2399
2427
  }, 1032, ["icon"])
2400
2428
  ]),
2401
2429
  _: 2
2402
2430
  }, 1032, ["onClick"]))), 128)),
2403
- p(B).length > 0 ? (t(), $(Ce, H({
2431
+ p(B).length > 0 ? (t(), $(Ce, Q({
2404
2432
  key: 0,
2405
2433
  ref_for: !0
2406
2434
  }, {
@@ -2408,7 +2436,7 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2408
2436
  actions: p(B)
2409
2437
  }), {
2410
2438
  default: v(() => [
2411
- q(Z, {
2439
+ F(Z, {
2412
2440
  icon: "dots-three",
2413
2441
  class: "table__mobile-actions-button"
2414
2442
  })
@@ -2424,13 +2452,13 @@ const We = /* @__PURE__ */ K(aa, [["__scopeId", "data-v-da43ed06"]]), la = /* @_
2424
2452
  }), 128))
2425
2453
  ])),
2426
2454
  C("tfoot", null, [
2427
- m.$slots.tfoot ? O(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((T = m.rows) != null && T.length) && !((P = e(c)) != null && P.loading.getAll) ? (t(), s("tr", Fa, Ea)) : y("", !0)
2455
+ m.$slots.tfoot ? O(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((j = m.rows) != null && j.length) && !((P = e(c)) != null && P.loading.getAll) ? (t(), s("tr", Fa, Ea)) : y("", !0)
2428
2456
  ])
2429
2457
  ])) : y("", !0);
2430
2458
  };
2431
2459
  }
2432
2460
  });
2433
- const Ha = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-2a6c7067"]]), Qa = /* @__PURE__ */ E({
2461
+ const Da = /* @__PURE__ */ K(Ha, [["__scopeId", "data-v-2a6c7067"]]), Qa = /* @__PURE__ */ E({
2434
2462
  __name: "aeria-tabular",
2435
2463
  props: {
2436
2464
  individualActions: {},
@@ -2438,7 +2466,7 @@ const Ha = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-2a6c7067"]]), Qa = /* @_
2438
2466
  componentProps: {}
2439
2467
  },
2440
2468
  setup(u) {
2441
- const r = u, l = Ie(), n = Fe(), a = Q(() => {
2469
+ const r = u, l = Ie(), n = Fe(), a = G(() => {
2442
2470
  const i = {
2443
2471
  collection: n,
2444
2472
  checkbox: l.hasSelectionActions,
@@ -2451,7 +2479,7 @@ const Ha = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-2a6c7067"]]), Qa = /* @_
2451
2479
  });
2452
2480
  return (i, c) => (t(), s("div", null, [
2453
2481
  i.$slots.inner ? O(i.$slots, "inner", { key: 0 }) : y("", !0),
2454
- e(l).properties ? (t(), $(Ha, H({ key: 1 }, a.value, {
2482
+ e(l).properties ? (t(), $(Da, Q({ key: 1 }, a.value, {
2455
2483
  key: e(l).$id
2456
2484
  }), ce({ _: 2 }, [
2457
2485
  D(Object.keys(i.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
@@ -2504,11 +2532,11 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2504
2532
  horizontal: i.componentName === "list"
2505
2533
  }, ce({
2506
2534
  footer: v(() => [
2507
- e(l).title ? (t(), s("div", Ka, g(d[e(l).title]), 1)) : y("", !0),
2508
- e(l).information ? (t(), s("div", Xa, g(d[e(l).information]), 1)) : y("", !0)
2535
+ e(l).title ? (t(), s("div", Ka, k(d[e(l).title]), 1)) : y("", !0),
2536
+ e(l).information ? (t(), s("div", Xa, k(d[e(l).information]), 1)) : y("", !0)
2509
2537
  ]),
2510
2538
  actions: v(() => [
2511
- i.individualActions.length > 0 ? (t(), $(Ce, H({
2539
+ i.individualActions.length > 0 ? (t(), $(Ce, Q({
2512
2540
  key: 0,
2513
2541
  ref_for: !0
2514
2542
  }, {
@@ -2516,7 +2544,7 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2516
2544
  actions: i.individualActions
2517
2545
  }), {
2518
2546
  default: v(() => [
2519
- x(q(Z, {
2547
+ x(F(Z, {
2520
2548
  reactive: "",
2521
2549
  icon: "dots-three-vertical"
2522
2550
  }, null, 512), [
@@ -2529,7 +2557,7 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2529
2557
  default: v(() => {
2530
2558
  var h;
2531
2559
  return [
2532
- q(De, {
2560
+ F(He, {
2533
2561
  alt: "Item picture",
2534
2562
  expandable: "",
2535
2563
  url: (h = a(d[e(l).picture])) == null ? void 0 : h.link,
@@ -2547,7 +2575,7 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2547
2575
  large: ""
2548
2576
  }, {
2549
2577
  default: v(() => [
2550
- W(g(e(l).translateBadge ? e(L)(h) : h), 1)
2578
+ W(k(e(l).translateBadge ? e(L)(h) : h), 1)
2551
2579
  ]),
2552
2580
  _: 2
2553
2581
  }, 1024))), 128))
@@ -2556,9 +2584,9 @@ const Wa = /* @__PURE__ */ K(Ga, [["__scopeId", "data-v-438c4aed"]]), Ka = { key
2556
2584
  } : e(l).badge ? {
2557
2585
  name: "badge",
2558
2586
  fn: v(() => [
2559
- q($e, null, {
2587
+ F($e, null, {
2560
2588
  default: v(() => [
2561
- W(g(e(l).translateBadge ? e(L)(d[e(l).badge]) : d[e(l).badge]), 1)
2589
+ W(k(e(l).translateBadge ? e(L)(d[e(l).badge]) : d[e(l).badge]), 1)
2562
2590
  ]),
2563
2591
  _: 2
2564
2592
  }, 1024)
@@ -2578,7 +2606,7 @@ const vt = /* @__PURE__ */ K(Ya, [["__scopeId", "data-v-113dd7db"]]), Ja = (u) =
2578
2606
  list: vt
2579
2607
  })[u], de = J(!1);
2580
2608
  J(!1);
2581
- const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21eeb8fd"), u = u(), Qe(), u), Pa = {
2609
+ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (De("data-v-21eeb8fd"), u = u(), Qe(), u), Pa = {
2582
2610
  key: 2,
2583
2611
  class: "crud__controls"
2584
2612
  }, Na = {
@@ -2608,88 +2636,88 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2608
2636
  }), c = ie("meta"), _ = qe(), { reachedEnd: d, detach: h } = Ze(null, {
2609
2637
  antecipate: 600
2610
2638
  }), p = !_.value.md || l.scrollPagination;
2611
- p && ue(d, (k) => {
2612
- k && o.pagination.recordsTotal > o.items.length && b.value < ht && (b.value += 1, T());
2639
+ p && ue(d, (V) => {
2640
+ V && o.pagination.recordsTotal > o.items.length && b.value < ht && (b.value += 1, j());
2613
2641
  });
2614
2642
  const o = ie(l.collection);
2615
2643
  ia(o, {
2616
2644
  persistInQuery: !l.noQueryPersistence
2617
2645
  });
2618
- const m = Pe(), A = l.action ? e(l.action) : Dt(o, a, m);
2646
+ const m = Pe(), A = l.action ? e(l.action) : Ht(o, a, m);
2619
2647
  Le.value = A[0], yt.value = A[1];
2620
- const b = J(0), S = J(!1), T = async (k) => {
2621
- o.activeFilters = Object.assign({}, (k == null ? void 0 : k.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
2622
- const j = {
2648
+ const b = J(0), S = J(!1), j = async (V) => {
2649
+ o.activeFilters = Object.assign({}, (V == null ? void 0 : V.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
2650
+ const T = {
2623
2651
  filters: o.activeFilters,
2624
2652
  limit: o.pagination.limit,
2625
2653
  offset: o.pagination.offset,
2626
2654
  project: o.preferredTableProperties.length > 0 ? o.preferredTableProperties : o.description.table || Object.keys(o.properties)
2627
2655
  };
2628
- b.value > 0 && (j.limit = 15, j.offset = b.value * j.limit), o.description.tableMeta && (j.project = j.project.concat(o.description.tableMeta)), k && Object.assign(j, k), o.loading.getAll = !0;
2629
- const { error: ae, result: le } = await o.$actions.retrieveItems(j);
2656
+ b.value > 0 && (T.limit = 15, T.offset = b.value * T.limit), o.description.tableMeta && (T.project = T.project.concat(o.description.tableMeta)), V && Object.assign(T, V), o.loading.getAll = !0;
2657
+ const { error: ae, result: le } = await o.$actions.retrieveItems(T);
2630
2658
  if (ae)
2631
2659
  return;
2632
2660
  const { data: ne, pagination: se } = le;
2633
2661
  o.pagination.recordsCount = se.recordsCount, o.pagination.recordsTotal = se.recordsTotal, b.value === 0 && o.items.splice(0), o.items.push(...ne), o.loading.getAll = !1, S.value = !0;
2634
- }, P = async (k) => {
2662
+ }, P = async (V) => {
2635
2663
  a.push(Me(a.currentRoute.value, {
2636
2664
  query: {
2637
- offset: k.offset,
2638
- limit: k.limit
2665
+ offset: V.offset,
2666
+ limit: V.limit
2639
2667
  }
2640
- })), o.pagination.offset = k.offset, o.pagination.limit = k.limit, T();
2668
+ })), o.pagination.offset = V.offset, o.pagination.limit = V.limit, j();
2641
2669
  }, B = _e("noResultsComponent", null);
2642
2670
  ue(() => [
2643
2671
  a.currentRoute.value.path,
2644
2672
  a.currentRoute.value.query.section
2645
- ], async (k, j) => {
2646
- if (j && j[0] === k[0] && j[1] === k[1])
2673
+ ], async (V, T) => {
2674
+ if (T && T[0] === V[0] && T[1] === V[1])
2647
2675
  return;
2648
2676
  const ae = a.currentRoute.value;
2649
2677
  if (c.view.title = l.collection, c.view.collection = l.collection, !l.noFetch && !ae.query._popstate) {
2650
- const le = Ht(o, ae);
2651
- Object.keys(le).length > 0 && Object.assign(o.filters, le), await T();
2678
+ const le = Dt(o, ae);
2679
+ Object.keys(le).length > 0 && Object.assign(o.filters, le), await j();
2652
2680
  }
2653
2681
  }, {
2654
2682
  immediate: !0,
2655
2683
  flush: "post"
2656
2684
  });
2657
- const [R] = i((k) => (a.push(Me(a.currentRoute.value, {
2685
+ const [R] = i((V) => (a.push(Me(a.currentRoute.value, {
2658
2686
  query: {
2659
- search: k || void 0
2687
+ search: V || void 0
2660
2688
  }
2661
- })), k ? (o.filters = Object.assign(ke(o.freshFilters), {
2689
+ })), V ? (o.filters = Object.assign(ke(o.freshFilters), {
2662
2690
  $text: {
2663
- $search: `"${k}"`,
2691
+ $search: `"${V}"`,
2664
2692
  $caseSensitive: !1
2665
2693
  }
2666
- }), T({
2694
+ }), j({
2667
2695
  offset: 0
2668
- })) : (o.filters = ke(o.freshFilters), b.value = 0, T())));
2669
- ue(() => o.textQuery, (k) => {
2670
- R(k);
2696
+ })) : (o.filters = ke(o.freshFilters), b.value = 0, j())));
2697
+ ue(() => o.textQuery, (V) => {
2698
+ R(V);
2671
2699
  });
2672
- const Y = (k) => {
2673
- k.currentLayout = k.currentLayout === "tabular" ? k.description.layout.name : "tabular";
2700
+ const Y = (V) => {
2701
+ V.currentLayout = V.currentLayout === "tabular" ? V.description.layout.name : "tabular";
2674
2702
  };
2675
2703
  wt(() => {
2676
2704
  o.$actions.clearFilters(), o.textQuery = "", h();
2677
- }), ue(() => yt.value, async (k) => {
2705
+ }), ue(() => yt.value, async (V) => {
2678
2706
  var le;
2679
- const j = ke(k);
2707
+ const T = ke(V);
2680
2708
  let ae;
2681
- if (j)
2682
- if ((j.name === "spawnEdit" || j.name === "duplicate") && (ae = o.$actions.get({
2709
+ if (T)
2710
+ if ((T.name === "spawnEdit" || T.name === "duplicate") && (ae = o.$actions.get({
2683
2711
  filters: {
2684
- _id: j.params._id
2712
+ _id: T.params._id
2685
2713
  }
2686
- })), j.name === "spawnAdd")
2687
- o.$actions.clearItem(), (le = j.params) != null && le.item && (o.$actions.setItem(j.params.item), Object.keys(j.params.item).forEach((ne) => {
2714
+ })), T.name === "spawnAdd")
2715
+ o.$actions.clearItem(), (le = T.params) != null && le.item && (o.$actions.setItem(T.params.item), Object.keys(T.params.item).forEach((ne) => {
2688
2716
  delete o.referenceItem[ne];
2689
2717
  })), de.value = "add";
2690
- else if (j.name === "spawnEdit")
2691
- o.$actions.setItem(j.params), de.value = "edit";
2692
- else if (j.name === "duplicate") {
2718
+ else if (T.name === "spawnEdit")
2719
+ o.$actions.setItem(T.params), de.value = "edit";
2720
+ else if (T.name === "duplicate") {
2693
2721
  await ae;
2694
2722
  const ne = Object.entries(o.item).reduce((se, [z, U]) => {
2695
2723
  if (!(z in o.properties))
@@ -2700,53 +2728,53 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2700
2728
  const f = o.properties[z];
2701
2729
  if (f.readOnly)
2702
2730
  return se;
2703
- const F = (G) => {
2704
- const V = me(f);
2705
- if (!V)
2706
- return G;
2707
- if (V.$ref === "file")
2731
+ const M = (H) => {
2732
+ const g = me(f);
2733
+ if (!g)
2734
+ return H;
2735
+ if (g.$ref === "file")
2708
2736
  return {};
2709
- if (V.inline && G) {
2710
- const { _id: I, ...M } = G;
2711
- return M;
2737
+ if (g.inline && H) {
2738
+ const { _id: I, ...q } = H;
2739
+ return q;
2712
2740
  }
2713
- return G;
2741
+ return H;
2714
2742
  };
2715
- return U = Array.isArray(U) ? U.map(F) : F(U), {
2743
+ return U = Array.isArray(U) ? U.map(M) : M(U), {
2716
2744
  ...se,
2717
2745
  [z]: U
2718
2746
  };
2719
2747
  }, {});
2720
2748
  o.$actions.setItem(ne), delete o.item._id, o.referenceItem = {}, de.value = "duplicate";
2721
2749
  } else
2722
- n("uiEvent", j);
2750
+ n("uiEvent", T);
2723
2751
  }, {
2724
2752
  deep: !0
2725
- }), ue(() => de, ({ value: k }) => {
2726
- k === !1 && (c.view.collection = l.collection, o.$actions.clearItem());
2753
+ }), ue(() => de, ({ value: V }) => {
2754
+ V === !1 && (c.view.collection = l.collection, o.$actions.clearItem());
2727
2755
  });
2728
- const w = Q(() => o.individualActions.map((k) => ({
2729
- click: Le.value(k),
2730
- ...k
2731
- }))), te = Q(() => o.actions.filter((k) => !k.button));
2732
- return ye(Ue, Q(() => l.collection)), ye("individualActions", w), (k, j) => {
2733
- var ne, se, z, U, f, F, G;
2756
+ const w = G(() => o.individualActions.map((V) => ({
2757
+ click: Le.value(V),
2758
+ ...V
2759
+ }))), te = G(() => o.actions.filter((V) => !V.button));
2760
+ return ye(Ue, G(() => l.collection)), ye("individualActions", w), (V, T) => {
2761
+ var ne, se, z, U, f, M, H;
2734
2762
  const ae = oe("clickable"), le = oe("loading");
2735
2763
  return t(), s(N, null, [
2736
2764
  e(ge) ? (t(), $(la, {
2737
2765
  key: e(o).$id,
2738
2766
  modelValue: e(ge),
2739
- "onUpdate:modelValue": j[0] || (j[0] = (V) => _t(ge) ? ge.value = V : null)
2767
+ "onUpdate:modelValue": T[0] || (T[0] = (g) => _t(ge) ? ge.value = g : null)
2740
2768
  }, null, 8, ["modelValue"])) : y("", !0),
2741
2769
  e(de) ? (t(), $(sa, {
2742
2770
  key: 1,
2743
2771
  modelValue: e(de),
2744
- "onUpdate:modelValue": j[1] || (j[1] = (V) => _t(de) ? de.value = V : null),
2772
+ "onUpdate:modelValue": T[1] || (T[1] = (g) => _t(de) ? de.value = g : null),
2745
2773
  "fixed-right": "",
2746
- onCancel: j[2] || (j[2] = (V) => de.value = !1)
2774
+ onCancel: T[2] || (T[2] = (g) => de.value = !1)
2747
2775
  }, ce({
2748
2776
  header: v(() => [
2749
- C("span", null, g((() => {
2777
+ C("span", null, k((() => {
2750
2778
  switch (e(de)) {
2751
2779
  case "add":
2752
2780
  return e(L)("action.add", { capitalize: !0 });
@@ -2757,22 +2785,22 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2757
2785
  return e(L)("action.edit", { capitalize: !0 });
2758
2786
  }
2759
2787
  })()), 1),
2760
- C("span", null, " " + g(e(L)(e(c).view.collection)), 1)
2788
+ C("span", null, " " + k(e(L)(e(c).view.collection)), 1)
2761
2789
  ]),
2762
2790
  _: 2
2763
2791
  }, [
2764
- D(Object.keys(k.$slots).filter((V) => V.startsWith("field-")), (V) => ({
2765
- name: V,
2792
+ D(Object.keys(V.$slots).filter((g) => g.startsWith("field-")), (g) => ({
2793
+ name: g,
2766
2794
  fn: v((I) => [
2767
- O(k.$slots, V, pe(Ve(I)), void 0, !0)
2795
+ O(V.$slots, g, pe(Ve(I)), void 0, !0)
2768
2796
  ])
2769
2797
  }))
2770
2798
  ]), 1032, ["modelValue"])) : y("", !0),
2771
- !k.noActions && (e(o).description.search || Object.keys(e(o).availableFilters).length > 0 || ((ne = e(o)) == null ? void 0 : ne.actions.length) > 0 || k.$slots.actions || !k.noLayoutToggle && e(o).description.layout && ((se = e(o).description.layout) == null ? void 0 : se.name) !== "tabular") ? (t(), s("div", Pa, [
2799
+ !V.noActions && (e(o).description.search || Object.keys(e(o).availableFilters).length > 0 || ((ne = e(o)) == null ? void 0 : ne.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(o).description.layout && ((se = e(o).description.layout) == null ? void 0 : se.name) !== "tabular") ? (t(), s("div", Pa, [
2772
2800
  e(o).description.search ? (t(), s("div", Na, [
2773
- q(Oe, H({
2801
+ F(Oe, Q({
2774
2802
  modelValue: e(o).textQuery,
2775
- "onUpdate:modelValue": j[3] || (j[3] = (V) => e(o).textQuery = V)
2803
+ "onUpdate:modelValue": T[3] || (T[3] = (g) => e(o).textQuery = g)
2776
2804
  }, {
2777
2805
  property: {
2778
2806
  type: "string",
@@ -2782,16 +2810,16 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2782
2810
  }), null, 16, ["modelValue"])
2783
2811
  ])) : y("", !0),
2784
2812
  C("div", xa, [
2785
- te.value.length > 0 || !k.noLayoutToggle && e(o).description.layout && ((z = e(o).description.layout) == null ? void 0 : z.name) !== "tabular" ? (t(), $(Ce, { key: 0 }, ce({
2813
+ te.value.length > 0 || !V.noLayoutToggle && e(o).description.layout && ((z = e(o).description.layout) == null ? void 0 : z.name) !== "tabular" ? (t(), $(Ce, { key: 0 }, ce({
2786
2814
  default: v(() => [
2787
- q(re, {
2815
+ F(re, {
2788
2816
  variant: "alt",
2789
2817
  icon: "sliders"
2790
2818
  }, {
2791
2819
  default: v(() => [
2792
2820
  e(o).filtersCount ? (t(), $($e, { key: 0 }, {
2793
2821
  default: v(() => [
2794
- W(g(e(o).filtersCount), 1)
2822
+ W(k(e(o).filtersCount), 1)
2795
2823
  ]),
2796
2824
  _: 1
2797
2825
  })) : y("", !0)
@@ -2806,10 +2834,10 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2806
2834
  fn: v(() => [
2807
2835
  x((t(), $(Z, {
2808
2836
  icon: "funnel",
2809
- onClick: j[4] || (j[4] = (V) => ge.value = !0)
2837
+ onClick: T[4] || (T[4] = (g) => ge.value = !0)
2810
2838
  }, {
2811
2839
  default: v(() => [
2812
- W(g(e(L)("filters", { capitalize: !0 })), 1)
2840
+ W(k(e(L)("filters", { capitalize: !0 })), 1)
2813
2841
  ]),
2814
2842
  _: 1
2815
2843
  })), [
@@ -2818,7 +2846,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2818
2846
  C("div", el, [
2819
2847
  e(o).filtersCount ? (t(), $($e, { key: 0 }, {
2820
2848
  default: v(() => [
2821
- W(g(e(o).filtersCount), 1)
2849
+ W(k(e(o).filtersCount), 1)
2822
2850
  ]),
2823
2851
  _: 1
2824
2852
  })) : y("", !0)
@@ -2826,15 +2854,15 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2826
2854
  ]),
2827
2855
  key: "0"
2828
2856
  } : void 0,
2829
- !k.noLayoutToggle && e(o).description.layout && ((U = e(o).description.layout) == null ? void 0 : U.name) !== "tabular" ? {
2857
+ !V.noLayoutToggle && e(o).description.layout && ((U = e(o).description.layout) == null ? void 0 : U.name) !== "tabular" ? {
2830
2858
  name: "layout-toggle",
2831
2859
  fn: v(() => [
2832
2860
  x((t(), $(Z, {
2833
2861
  icon: "table",
2834
- onClick: j[5] || (j[5] = (V) => Y(e(o)))
2862
+ onClick: T[5] || (T[5] = (g) => Y(e(o)))
2835
2863
  }, {
2836
2864
  default: v(() => [
2837
- W(g(e(L)("change_layout", { capitalize: !0 })), 1)
2865
+ W(k(e(L)("change_layout", { capitalize: !0 })), 1)
2838
2866
  ]),
2839
2867
  _: 1
2840
2868
  })), [
@@ -2843,17 +2871,17 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2843
2871
  ]),
2844
2872
  key: "1"
2845
2873
  } : void 0,
2846
- D(te.value, (V, I) => ({
2874
+ D(te.value, (g, I) => ({
2847
2875
  name: `action-${I}`,
2848
2876
  fn: v(() => [
2849
- V ? (t(), $(Z, {
2877
+ g ? (t(), $(Z, {
2850
2878
  key: 0,
2851
- icon: V.icon || "gear",
2852
- disabled: e(o).selected.length === 0 && V.selection,
2853
- onClick: (M) => e(Le)(V)({ _id: e(o).selected.map((fe) => fe._id) })
2879
+ icon: g.icon || "gear",
2880
+ disabled: e(o).selected.length === 0 && g.selection,
2881
+ onClick: (q) => e(Le)(g)({ _id: e(o).selected.map((fe) => fe._id) })
2854
2882
  }, {
2855
2883
  default: v(() => [
2856
- W(g(e(L)(V.label, { capitalize: !0 })), 1)
2884
+ W(k(e(L)(g.label, { capitalize: !0 })), 1)
2857
2885
  ]),
2858
2886
  _: 2
2859
2887
  }, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
@@ -2863,75 +2891,75 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2863
2891
  key: 1,
2864
2892
  variant: "alt",
2865
2893
  icon: "funnel",
2866
- onClick: j[6] || (j[6] = (V) => ge.value = !0)
2894
+ onClick: T[6] || (T[6] = (g) => ge.value = !0)
2867
2895
  }, {
2868
2896
  default: v(() => [
2869
2897
  tl,
2870
2898
  e(o).filtersCount ? (t(), $($e, { key: 0 }, {
2871
2899
  default: v(() => [
2872
- W(g(e(o).filtersCount), 1)
2900
+ W(k(e(o).filtersCount), 1)
2873
2901
  ]),
2874
2902
  _: 1
2875
2903
  })) : y("", !0)
2876
2904
  ]),
2877
2905
  _: 1
2878
2906
  })) : y("", !0),
2879
- (t(!0), s(N, null, D(e(o).actions.filter((V) => V.button), (V, I) => (t(), $(re, {
2907
+ (t(!0), s(N, null, D(e(o).actions.filter((g) => g.button), (g, I) => (t(), $(re, {
2880
2908
  key: `action-${I}`,
2881
- icon: V.icon,
2882
- disabled: e(o).selected.length === 0 && V.selection,
2883
- onClick: (M) => e(Le)(V)({ _id: e(o).selected.map((fe) => fe._id) })
2909
+ icon: g.icon,
2910
+ disabled: e(o).selected.length === 0 && g.selection,
2911
+ onClick: (q) => e(Le)(g)({ _id: e(o).selected.map((fe) => fe._id) })
2884
2912
  }, {
2885
2913
  default: v(() => [
2886
- W(g(e(L)(V.label, { capitalize: !0 })), 1)
2914
+ W(k(e(L)(g.label, { capitalize: !0 })), 1)
2887
2915
  ]),
2888
2916
  _: 2
2889
2917
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
2890
- k.$slots.actions ? O(k.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2918
+ V.$slots.actions ? O(V.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
2891
2919
  ])
2892
2920
  ])) : y("", !0),
2893
2921
  x((t(), s("div", null, [
2894
- e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(B) || k.$slots.empty) ? (t(), s("div", nl, [
2895
- e(B) ? (t(), $(he(e(B)), pe(H({ key: 0 }, {
2922
+ e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(B) || V.$slots.empty) ? (t(), s("div", nl, [
2923
+ e(B) ? (t(), $(he(e(B)), pe(Q({ key: 0 }, {
2896
2924
  collection: e(o).$id
2897
2925
  })), {
2898
2926
  default: v(() => [
2899
2927
  e(o).filtersCount === 0 && e(o).description.actions && "ui:spawnAdd" in e(o).description.actions ? (t(), $(re, {
2900
2928
  key: 0,
2901
2929
  icon: "plus",
2902
- onClick: j[7] || (j[7] = (V) => e(Le)({
2930
+ onClick: T[7] || (T[7] = (g) => e(Le)({
2903
2931
  action: "ui:spawnAdd"
2904
2932
  })())
2905
2933
  }, {
2906
2934
  default: v(() => [
2907
- W(g(e(L)("add_first_item", { capitalize: !0 })), 1)
2935
+ W(k(e(L)("add_first_item", { capitalize: !0 })), 1)
2908
2936
  ]),
2909
2937
  _: 1
2910
2938
  })) : y("", !0)
2911
2939
  ]),
2912
2940
  _: 1
2913
- }, 16)) : O(k.$slots, "empty", pe(H({ key: 1 }, {
2941
+ }, 16)) : O(V.$slots, "empty", pe(Q({ key: 1 }, {
2914
2942
  collection: e(o).$id
2915
2943
  })), void 0, !0)
2916
- ])) : k.$slots.component ? O(k.$slots, "component", pe(H({ key: 1 }, {
2944
+ ])) : V.$slots.component ? O(V.$slots, "component", pe(Q({ key: 1 }, {
2917
2945
  store: e(o)
2918
- })), void 0, !0) : (t(), $(he(e(Ja)(((f = k.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), H({ key: 2 }, {
2946
+ })), void 0, !0) : (t(), $(he(e(Ja)(((f = V.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), Q({ key: 2 }, {
2919
2947
  individualActions: w.value,
2920
- layoutOptions: ((F = k.layout) == null ? void 0 : F.options) || e(o).layout.options,
2921
- componentProps: k.componentProps
2948
+ layoutOptions: ((M = V.layout) == null ? void 0 : M.options) || e(o).layout.options,
2949
+ componentProps: V.componentProps
2922
2950
  }, {
2923
- "component-name": ((G = k.layout) == null ? void 0 : G.name) || e(o).$currentLayout
2951
+ "component-name": ((H = V.layout) == null ? void 0 : H.name) || e(o).$currentLayout
2924
2952
  }), ce({ _: 2 }, [
2925
- D(Object.keys(k.$slots).filter((V) => V.startsWith("row-")), (V) => ({
2926
- name: V,
2953
+ D(Object.keys(V.$slots).filter((g) => g.startsWith("row-")), (g) => ({
2954
+ name: g,
2927
2955
  fn: v((I) => [
2928
- O(k.$slots, V, pe(Ve(I)), void 0, !0)
2956
+ O(V.$slots, g, pe(Ve(I)), void 0, !0)
2929
2957
  ])
2930
2958
  })),
2931
- k.$slots.tfoot ? {
2959
+ V.$slots.tfoot ? {
2932
2960
  name: "tfoot",
2933
2961
  fn: v(() => [
2934
- O(k.$slots, "tfoot", {}, void 0, !0)
2962
+ O(V.$slots, "tfoot", {}, void 0, !0)
2935
2963
  ]),
2936
2964
  key: "0"
2937
2965
  } : void 0
@@ -2940,7 +2968,7 @@ const ge = J(!1), Le = J((...u) => null), yt = J(), Za = (u) => (He("data-v-21ee
2940
2968
  [le, (!e(p) || b.value === ht) && e(o).loading.getAll]
2941
2969
  ]),
2942
2970
  !e(o).loading.getAll && e(o).itemsCount > 0 ? (t(), s("div", ol, [
2943
- q(Un, {
2971
+ F(Un, {
2944
2972
  pagination: e(o).pagination,
2945
2973
  onPaginate: P
2946
2974
  }, null, 8, ["pagination"])
@@ -2979,7 +3007,7 @@ const El = /* @__PURE__ */ K(al, [["__scopeId", "data-v-21eeb8fd"]]), ll = { cla
2979
3007
  onClick: (_) => i.click ? i.click(i) : l(i)
2980
3008
  }, {
2981
3009
  default: v(() => [
2982
- W(g(i.title || i.name), 1)
3010
+ W(k(i.title || i.name), 1)
2983
3011
  ]),
2984
3012
  _: 2
2985
3013
  }, 1032, ["class", "onClick"]))), 128))
@@ -2995,7 +3023,7 @@ const El = /* @__PURE__ */ K(al, [["__scopeId", "data-v-21eeb8fd"]]), ll = { cla
2995
3023
  n.title ? {
2996
3024
  name: "title",
2997
3025
  fn: v(() => [
2998
- W(g(n.title), 1)
3026
+ W(k(n.title), 1)
2999
3027
  ]),
3000
3028
  key: "0"
3001
3029
  } : void 0
@@ -3022,13 +3050,13 @@ const il = /* @__PURE__ */ K(sl, [["__scopeId", "data-v-5443f297"]]), rl = { cla
3022
3050
  onAnimationend: n[0] || (n[0] = (i) => e(r).$actions.popToast()),
3023
3051
  onClick: n[1] || (n[1] = (i) => e(r).$actions.popToast(l.itr))
3024
3052
  }, [
3025
- q(Z, H(
3053
+ F(Z, Q(
3026
3054
  l.icon ? { icon: l.icon } : { icon: "warning-circle" },
3027
3055
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3028
3056
  ), null, 16),
3029
3057
  C("div", rl, [
3030
3058
  O(l.$slots, "default", {}, void 0, !0),
3031
- C("div", ul, g(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
3059
+ C("div", ul, k(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
3032
3060
  ])
3033
3061
  ], 34)), [
3034
3062
  [a]
@@ -3039,7 +3067,7 @@ const il = /* @__PURE__ */ K(sl, [["__scopeId", "data-v-5443f297"]]), rl = { cla
3039
3067
  const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["innerHTML"], _l = { class: "main__toasts" }, ml = ["innerHTML"], fl = /* @__PURE__ */ E({
3040
3068
  __name: "aeria-main",
3041
3069
  setup(u) {
3042
- const r = ie("meta"), l = Q(() => r.themeOverride || r.theme);
3070
+ const r = ie("meta"), l = G(() => r.themeOverride || r.theme);
3043
3071
  return (n, a) => {
3044
3072
  const i = St("router-view");
3045
3073
  return t(), s("main", {
@@ -3050,9 +3078,9 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3050
3078
  ${l.value === "dark" && "tw-dark"}
3051
3079
  `)
3052
3080
  }, [
3053
- (t(), $(jt, null, {
3081
+ (t(), $(Tt, null, {
3054
3082
  default: v(() => [
3055
- q(i, null, {
3083
+ F(i, null, {
3056
3084
  default: v(({ Component: c }) => [
3057
3085
  (t(), $(he(c), null, ce({ _: 2 }, [
3058
3086
  D(Object.keys(n.$slots), (_) => ({
@@ -3069,7 +3097,7 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3069
3097
  _: 3
3070
3098
  })),
3071
3099
  O(n.$slots, "default", {}, void 0, !0),
3072
- q(Be, H({
3100
+ F(Be, Q({
3073
3101
  modelValue: e(r).modal.visible,
3074
3102
  "onUpdate:modelValue": a[0] || (a[0] = (c) => e(r).modal.visible = c),
3075
3103
  float: "",
@@ -3088,14 +3116,14 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3088
3116
  ]),
3089
3117
  _: 1
3090
3118
  }, 16, ["modelValue"]),
3091
- e(r).prompt.visible ? (t(), $(il, pe(H({ key: 0 }, e(r).prompt)), {
3119
+ e(r).prompt.visible ? (t(), $(il, pe(Q({ key: 0 }, e(r).prompt)), {
3092
3120
  default: v(() => [
3093
- W(g(e(r).prompt.body), 1)
3121
+ W(k(e(r).prompt.body), 1)
3094
3122
  ]),
3095
3123
  _: 1
3096
3124
  }, 16)) : y("", !0),
3097
3125
  C("div", _l, [
3098
- (t(!0), s(N, null, D(e(r).toasts, (c) => (t(), $(dl, H({ ref_for: !0 }, c, {
3126
+ (t(!0), s(N, null, D(e(r).toasts, (c) => (t(), $(dl, Q({ ref_for: !0 }, c, {
3099
3127
  key: `toast-${c.itr}`
3100
3128
  }), {
3101
3129
  default: v(() => [
@@ -3110,7 +3138,7 @@ const dl = /* @__PURE__ */ K(cl, [["__scopeId", "data-v-21bbe178"]]), pl = ["inn
3110
3138
  };
3111
3139
  }
3112
3140
  });
3113
- const Dl = /* @__PURE__ */ K(fl, [["__scopeId", "data-v-1166be3d"]]);
3141
+ const Hl = /* @__PURE__ */ K(fl, [["__scopeId", "data-v-1166be3d"]]);
3114
3142
  const vl = {}, yl = { class: "menu" };
3115
3143
  function hl(u, r) {
3116
3144
  return t(), s("menu", yl, [
@@ -3122,7 +3150,7 @@ function hl(u, r) {
3122
3150
  ]))), 128))
3123
3151
  ]);
3124
3152
  }
3125
- const Hl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb"]]), bl = { class: "tabs" }, $l = {
3153
+ const Dl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb"]]), bl = { class: "tabs" }, $l = {
3126
3154
  key: 0,
3127
3155
  class: "tabs__horizontal"
3128
3156
  }, gl = {
@@ -3139,7 +3167,7 @@ const Hl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3139
3167
  dropdown: { type: Boolean }
3140
3168
  },
3141
3169
  setup(u) {
3142
- const r = u, l = Tt(), n = Ae(), a = qe(), i = Q(() => {
3170
+ const r = u, l = jt(), n = Ae(), a = qe(), i = G(() => {
3143
3171
  if (r.query) {
3144
3172
  const _ = n.currentRoute.value.query[r.query];
3145
3173
  if (_)
@@ -3179,7 +3207,7 @@ const Hl = /* @__PURE__ */ K(vl, [["render", hl], ["__scopeId", "data-v-3cfef7fb
3179
3207
  O(_.$slots, p, {}, void 0, !0)
3180
3208
  ], 10, kl))), 128))
3181
3209
  ])) : (t(), s("div", Vl, [
3182
- q(Ce, null, ce({
3210
+ F(Ce, null, ce({
3183
3211
  default: v(() => [
3184
3212
  x((t(), $(Z, {
3185
3213
  "icon-right": "",
@@ -3230,7 +3258,7 @@ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-bbc959bb"]]), Al = E({
3230
3258
  collection: {}
3231
3259
  },
3232
3260
  setup(u) {
3233
- const r = u, n = Ae().currentRoute, a = Pe(), i = Q(() => r.collection ? Ke(r.collection, a) : typeof n.value.meta.collection == "string" ? Ke(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? Ke(n.value.params.collection, a) : null), c = async (_, d) => {
3261
+ const r = u, n = Ae().currentRoute, a = Pe(), i = G(() => r.collection ? Ke(r.collection, a) : typeof n.value.meta.collection == "string" ? Ke(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? Ke(n.value.params.collection, a) : null), c = async (_, d) => {
3234
3262
  const { error: h, result: p } = await d.$functions[_.badgeFunction]({
3235
3263
  filters: _.filters
3236
3264
  });
@@ -3253,13 +3281,13 @@ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-bbc959bb"]]), Al = E({
3253
3281
  icon: p.icon
3254
3282
  }, {
3255
3283
  default: v(() => [
3256
- W(g(p.label || e(L)(h, { plural: !0 })), 1)
3284
+ W(k(p.label || e(L)(h, { plural: !0 })), 1)
3257
3285
  ]),
3258
3286
  _: 2
3259
- }, 1032, ["icon"])) : (t(), s("div", wl, g(p.label || e(L)(h, { plural: !0 })), 1)),
3287
+ }, 1032, ["icon"])) : (t(), s("div", wl, k(p.label || e(L)(h, { plural: !0 })), 1)),
3260
3288
  p.badgeFunction ? (t(), $($e, { key: 2 }, {
3261
3289
  default: v(() => [
3262
- q(e(Al), {
3290
+ F(e(Al), {
3263
3291
  "initial-value": "0",
3264
3292
  promise: c(p, i.value)
3265
3293
  }, null, 8, ["promise"])
@@ -3272,9 +3300,9 @@ const Il = /* @__PURE__ */ K(Ol, [["__scopeId", "data-v-bbc959bb"]]), Al = E({
3272
3300
  ]), 1024)) : y("", !0);
3273
3301
  }
3274
3302
  });
3275
- const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3303
+ const Tl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3276
3304
  __proto__: null,
3277
- default: jl
3305
+ default: Tl
3278
3306
  }, Symbol.toStringTag, { value: "Module" })), Ql = /* @__PURE__ */ E({
3279
3307
  __name: "aeria-password-form",
3280
3308
  props: {
@@ -3284,7 +3312,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3284
3312
  setup(u) {
3285
3313
  const r = u;
3286
3314
  ye(Ue, null);
3287
- const l = Qt(), n = Q(() => l(
3315
+ const l = Qt(), n = G(() => l(
3288
3316
  r.modelValue.password,
3289
3317
  r.modelValue.confirmation
3290
3318
  ));
@@ -3305,7 +3333,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3305
3333
  "onUpdate:modelValue": i[0] || (i[0] = (c) => a.$emit("update:modelValue", c))
3306
3334
  }, {
3307
3335
  after: v(() => [
3308
- C("div", null, g(n.value || "Senhas conferem"), 1),
3336
+ C("div", null, k(n.value || "Senhas conferem"), 1),
3309
3337
  O(a.$slots, "default", pe(Ve({ passwordError: n.value })))
3310
3338
  ]),
3311
3339
  _: 3
@@ -3329,7 +3357,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3329
3357
  {
3330
3358
  path: "signin",
3331
3359
  name: "/user/signin",
3332
- component: () => import("./signin-9ebeb4bf.js"),
3360
+ component: () => import("./signin-1c13c187.js"),
3333
3361
  meta: {
3334
3362
  title: "Autenticação"
3335
3363
  }
@@ -3337,7 +3365,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3337
3365
  {
3338
3366
  path: "signup",
3339
3367
  name: "/user/signup",
3340
- component: () => import("./signup-6a65ca1e.js"),
3368
+ component: () => import("./signup-88cb845a.js"),
3341
3369
  meta: {
3342
3370
  title: "Registro"
3343
3371
  }
@@ -3345,7 +3373,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3345
3373
  {
3346
3374
  path: "activation",
3347
3375
  name: "/user/activation",
3348
- component: () => import("./activation-72df6752.js"),
3376
+ component: () => import("./activation-e4385201.js"),
3349
3377
  meta: {
3350
3378
  title: "Ativação"
3351
3379
  }
@@ -3367,8 +3395,8 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3367
3395
  name: "/dashboard/crud",
3368
3396
  props: !0,
3369
3397
  components: {
3370
- default: () => import("./index-3f208c14.js"),
3371
- topbar: () => Promise.resolve().then(() => Tl)
3398
+ default: () => import("./index-f44785a1.js"),
3399
+ topbar: () => Promise.resolve().then(() => jl)
3372
3400
  },
3373
3401
  meta: {
3374
3402
  title: "%viewTitle%"
@@ -3379,7 +3407,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3379
3407
  name: "/dashboard/crud/:id",
3380
3408
  props: !0,
3381
3409
  components: {
3382
- default: () => import("./_id_-442ddf2a.js")
3410
+ default: () => import("./_id_-fe065dc0.js")
3383
3411
  },
3384
3412
  meta: {
3385
3413
  title: "%viewTitle%"
@@ -3397,7 +3425,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3397
3425
  children: [
3398
3426
  {
3399
3427
  path: "profile",
3400
- component: () => import("./index-d747f05a.js"),
3428
+ component: () => import("./index-a64e672c.js"),
3401
3429
  meta: {
3402
3430
  title: "Meu perfil",
3403
3431
  icon: "user-square"
@@ -3406,7 +3434,7 @@ const jl = /* @__PURE__ */ K(Sl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
3406
3434
  {
3407
3435
  path: "changepass",
3408
3436
  name: "/dashboard/user/changepass",
3409
- component: () => import("./index-be05092e.js"),
3437
+ component: () => import("./index-afccd6d2.js"),
3410
3438
  meta: {
3411
3439
  title: "Mudar senha",
3412
3440
  icon: "lock"
@@ -3421,7 +3449,7 @@ export {
3421
3449
  Al as B,
3422
3450
  il as C,
3423
3451
  dl as D,
3424
- jl as E,
3452
+ Tl as E,
3425
3453
  Gl as F,
3426
3454
  Wl as G,
3427
3455
  Ql as _,
@@ -3430,8 +3458,8 @@ export {
3430
3458
  Kn as c,
3431
3459
  El as d,
3432
3460
  sa as e,
3433
- De as f,
3434
- Hl as g,
3461
+ He as f,
3462
+ Dl as g,
3435
3463
  Be as h,
3436
3464
  K as i,
3437
3465
  Ul as j,
@@ -3441,9 +3469,9 @@ export {
3441
3469
  Ce as n,
3442
3470
  Wa as o,
3443
3471
  kn as p,
3444
- Dl as q,
3472
+ Hl as q,
3445
3473
  Un as r,
3446
- Ha as s,
3474
+ Da as s,
3447
3475
  Il as t,
3448
3476
  ko as u,
3449
3477
  Oe as v,