@aeria-ui/ui 0.0.128 → 0.0.130

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,8 +1,8 @@
1
- import { defineComponent as z, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as l, normalizeClass as W, Fragment as P, renderList as H, withDirectives as J, toDisplayString as C, createCommentVNode as b, createTextVNode as D, unref as e, renderSlot as A, withModifiers as Re, inject as fe, computed as K, createElementVNode as B, mergeProps as U, createBlock as V, withCtx as y, resolveDynamicComponent as be, useCssVars as ht, normalizeProps as pe, guardReactiveProps as Ve, Teleport as Ge, onMounted as We, watch as ue, createVNode as M, vModelDynamic as $t, onBeforeMount as mt, normalizeStyle as $e, provide as he, createSlots as ce, vModelCheckbox as gt, onUnmounted as kt, resolveComponent as Vt, Suspense as Ct, useSlots as Ot, h as At } from "vue";
2
- import { t as L, useI18n as It } from "@aeria-ui/i18n";
3
- import { INSTANCE_VARS_SYMBOL as Bt, useScrollObserver as Ye, useBreakpoints as Me, useMask as St, PAGINATION_PER_PAGE_DEFAULTS as wt, API_URL as ft, request as Tt, useDebounce as vt, convertToSearchQuery as jt, useParentCollectionStore as je, useCollectionStore as Rt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as qt } from "@aeria-ui/core";
4
- import { arraysIntersect as yt, deepClone as Ae, getReferenceProperty as me, freshItem as zt, isRequired as Ft, evaluateCondition as Qe, deepMerge as Le } from "@aeriajs/common";
5
- import { useStore as ie, getStoreId as qe, useParentStore as Ue, STORE_ID as ze, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
1
+ import { defineComponent as z, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as l, normalizeClass as W, Fragment as P, renderList as H, withDirectives as J, toDisplayString as C, createCommentVNode as b, createTextVNode as D, unref as e, renderSlot as A, withModifiers as qe, inject as fe, computed as K, createElementVNode as B, mergeProps as U, createBlock as V, withCtx as y, resolveDynamicComponent as be, useCssVars as $t, normalizeProps as pe, guardReactiveProps as Ve, Teleport as Ge, onMounted as We, watch as ue, createVNode as L, vModelDynamic as gt, onBeforeMount as ft, normalizeStyle as $e, provide as he, createSlots as ce, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as Ot, useSlots as At, h as It } from "vue";
2
+ import { t as R, useI18n as Bt } from "@aeria-ui/i18n";
3
+ import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ye, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as vt, request as jt, useDebounce as yt, convertToSearchQuery as qt, useParentCollectionStore as je, useCollectionStore as Rt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as zt } from "@aeria-ui/core";
4
+ import { arraysIntersect as bt, deepClone as Ae, getReferenceProperty as me, freshItem as Ft, isRequired as ct, evaluateCondition as Qe, deepMerge as Re } from "@aeriajs/common";
5
+ import { useStore as re, getStoreId as Me, useParentStore as Ue, STORE_ID as ze, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
6
6
  import { useRouter as Be } from "vue-router";
7
7
  import { convertConditionToQuery as Et, isDocumentComplete as Ut, getObjectKey as Ht } from "@aeria-ui/utils";
8
8
  const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
@@ -34,7 +34,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
34
34
  onClick: (d) => r.value === u ? r.value = null : r.value = u
35
35
  }, [
36
36
  n.enumerate ? (t(), l("span", Qt, C(_ + 1) + ". ", 1)) : b("", !0),
37
- D(" " + C(n.headers[u] ? o(n.headers[u]) : e(L)(u)), 1)
37
+ D(" " + C(n.headers[u] ? o(n.headers[u]) : e(R)(u)), 1)
38
38
  ], 8, Dt)), [
39
39
  [c]
40
40
  ]),
@@ -84,7 +84,7 @@ const ke = /* @__PURE__ */ Q(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @_
84
84
  "barebutton",
85
85
  `barebutton--${c.disabled ? "disabled" : "enabled"}`
86
86
  ]),
87
- onClick: Re(a, ["prevent"])
87
+ onClick: qe(a, ["prevent"])
88
88
  }, [
89
89
  A(c.$slots, "default", {}, void 0, !0)
90
90
  ], 2));
@@ -105,7 +105,7 @@ const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
105
105
  active: { type: Boolean }
106
106
  },
107
107
  setup(p) {
108
- const r = p, o = fe(Bt), n = typeof r.reactive == "boolean" ? r.reactive : fe("iconReactive", !1), a = K(() => {
108
+ const r = p, o = fe(St), n = typeof r.reactive == "boolean" ? r.reactive : fe("iconReactive", !1), a = K(() => {
109
109
  var c;
110
110
  return (c = r.icon) != null && c.includes(":") ? r.icon : `regular:${r.icon}`;
111
111
  });
@@ -372,14 +372,14 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
372
372
  },
373
373
  emits: ["actionClick"],
374
374
  setup(p, { emit: r }) {
375
- ht((d) => ({
375
+ $t((d) => ({
376
376
  "4fd17073": _.value.x,
377
377
  "4fd17074": _.value.y
378
378
  }));
379
379
  const o = r, n = ee(null), a = ee(!1), c = (d) => d == null ? void 0 : d.filter(($) => {
380
380
  if ($.roles) {
381
- const i = ie("user");
382
- return yt($.roles, i.currentUser.roles);
381
+ const i = re("user");
382
+ return bt($.roles, i.currentUser.roles);
383
383
  }
384
384
  return !0;
385
385
  }), u = (d, $) => {
@@ -467,7 +467,7 @@ const Se = /* @__PURE__ */ Q(cn, [["__scopeId", "data-v-84cde0d8"]]), dn = { cla
467
467
  icon: v.icon
468
468
  }, {
469
469
  default: y(() => [
470
- D(C(v.translate ? e(L)(v.label, { capitalize: !0 }) : v.label), 1)
470
+ D(C(v.translate ? e(R)(v.label, { capitalize: !0 }) : v.label), 1)
471
471
  ]),
472
472
  _: 2
473
473
  }, 1032, ["icon"])) : b("", !0)
@@ -511,7 +511,7 @@ const Ie = /* @__PURE__ */ Q(mn, [["__scopeId", "data-v-3fa3b32f"]]), fn = { cla
511
511
  where: { default: "top" }
512
512
  },
513
513
  setup(p) {
514
- const r = Me(), o = ee(!1);
514
+ const r = Le(), o = ee(!1);
515
515
  return (n, a) => e(r).md ? (t(), l("div", {
516
516
  key: 0,
517
517
  class: "info",
@@ -554,6 +554,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
554
554
  parentPropertyName: {},
555
555
  parentCollection: {},
556
556
  readOnly: { type: Boolean },
557
+ required: { type: Boolean },
557
558
  variant: {}
558
559
  },
559
560
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
@@ -583,7 +584,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
583
584
  placeholder: _ ? a.description || o.propertyName : a.placeholder
584
585
  });
585
586
  "type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (v.min = a.minimum), a.exclusiveMinimum && (v.min = a.exclusiveMinimum + 1), a.maximum && (v.max = a.maximum), a.exclusiveMaximum && (v.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (v.type = !u && a.format === "date-time" ? "datetime-local" : "date"), v.minlength = a.minLength, v.maxlength = a.maxLength)), v.type === "text" && u && (v.type = "search"), We(() => {
586
- o.modelValue !== null && q(o.modelValue);
587
+ o.modelValue !== null && M(o.modelValue);
587
588
  });
588
589
  const k = (h) => {
589
590
  if (typeof h == "string")
@@ -598,7 +599,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
598
599
  default:
599
600
  throw new Error();
600
601
  }
601
- }, f = ee(""), I = ((Z = o.property) == null ? void 0 : Z.type) === "string" && o.property.mask ? St(o.property.mask) : null;
602
+ }, f = ee(""), I = ((Z = o.property) == null ? void 0 : Z.type) === "string" && o.property.mask ? wt(o.property.mask) : null;
602
603
  ue(() => o.modelValue, (h) => {
603
604
  f.value = (() => {
604
605
  if (I)
@@ -626,7 +627,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
626
627
  return typeof f.value == "string" && ((G = o.property) == null ? void 0 : G.type) === "string" && I !== null ? (f.value = I.enmask(f.value, void 0, {
627
628
  defaultValue: !0
628
629
  }), o.property.maskedValue === !0 ? f.value : I.unmask(f.value)) : h;
629
- }, q = (h) => {
630
+ }, M = (h) => {
630
631
  const G = (() => {
631
632
  if (!h || typeof h != "string")
632
633
  return h;
@@ -644,7 +645,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
644
645
  n("input", G), n("update:modelValue", G);
645
646
  }, E = (h) => {
646
647
  const G = h.target.value;
647
- f.value = G, q(G);
648
+ f.value = G, M(G);
648
649
  };
649
650
  return (h, G) => {
650
651
  const oe = ne("focus"), w = ne("clickable");
@@ -705,15 +706,15 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
705
706
  ])
706
707
  }, null, 8, ["icon", "class"])) : b("", !0),
707
708
  e(d) ? (t(), l("div", Vn, [
708
- M(yn, null, {
709
+ L(yn, null, {
709
710
  text: y(() => G[2] || (G[2] = [
710
711
  D("Copiar")
711
712
  ])),
712
713
  default: y(() => [
713
- J(M(Y, {
714
+ J(L(Y, {
714
715
  reactive: "",
715
716
  icon: "clipboard",
716
- onClick: G[1] || (G[1] = Re((te) => $(String(h.modelValue || "")), ["prevent"]))
717
+ onClick: G[1] || (G[1] = qe((te) => $(String(h.modelValue || "")), ["prevent"]))
717
718
  }, null, 512), [
718
719
  [w]
719
720
  ])
@@ -738,6 +739,7 @@ const Ce = /* @__PURE__ */ Q(Cn, [["__scopeId", "data-v-b4ebd684"]]), On = {
738
739
  parentPropertyName: {},
739
740
  parentCollection: {},
740
741
  readOnly: { type: Boolean },
742
+ required: { type: Boolean },
741
743
  booleanRef: { type: Boolean },
742
744
  multiple: { type: [Boolean, Number] },
743
745
  noOutline: { type: Boolean }
@@ -776,20 +778,20 @@ const Ce = /* @__PURE__ */ Q(Cn, [["__scopeId", "data-v-b4ebd684"]]), On = {
776
778
  key: 0,
777
779
  icon: e(c).icon
778
780
  }, null, 8, ["icon"])) : b("", !0),
779
- o.multiple ? b("", !0) : (t(), l("option", On, C(e(L)("none")), 1)),
781
+ !o.multiple && !i.required ? (t(), l("option", On, C(e(R)("none")), 1)) : b("", !0),
780
782
  (t(!0), l(P, null, H(e(c) && "enum" in e(c) ? e(c).enum : [], (k) => {
781
783
  var f;
782
784
  return t(), l("option", {
783
785
  key: String(k),
784
786
  value: k,
785
787
  "data-selected": d(k)
786
- }, C((f = e(c)) != null && f.translate ? e(L)(k) : k), 9, An);
788
+ }, C((f = e(c)) != null && f.translate ? e(R)(k) : k), 9, An);
787
789
  }), 128)),
788
790
  A(i.$slots, "default", {}, void 0, !0)
789
791
  ], 16));
790
792
  }
791
793
  });
792
- const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-86a1e910"]]), Bn = { class: "pagination" }, Sn = { class: "pagination__arrows" }, wn = ["value"], Tn = {
794
+ const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-50bbcc3b"]]), Bn = { class: "pagination" }, Sn = { class: "pagination__arrows" }, wn = ["value"], Tn = {
793
795
  key: 0,
794
796
  class: "pagination__summary"
795
797
  }, jn = /* @__PURE__ */ z({
@@ -823,43 +825,43 @@ const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-86a1e910"]]), Bn = { cla
823
825
  });
824
826
  }), ($, i) => (t(), l("div", Bn, [
825
827
  B("div", Sn, [
826
- M(ye, {
828
+ L(ye, {
827
829
  disabled: a.value === 0,
828
830
  onClick: i[0] || (i[0] = (v) => a.value = 0)
829
831
  }, {
830
832
  default: y(() => [
831
- M(Y, { icon: "caret-double-left" })
833
+ L(Y, { icon: "caret-double-left" })
832
834
  ]),
833
835
  _: 1
834
836
  }, 8, ["disabled"]),
835
- M(ye, {
837
+ L(ye, {
836
838
  disabled: a.value === 0,
837
839
  onClick: i[1] || (i[1] = (v) => d("previous"))
838
840
  }, {
839
841
  default: y(() => [
840
- M(Y, { icon: "caret-left" })
842
+ L(Y, { icon: "caret-left" })
841
843
  ]),
842
844
  _: 1
843
845
  }, 8, ["disabled"]),
844
- M(ye, {
846
+ L(ye, {
845
847
  disabled: a.value === _.value - 1,
846
848
  onClick: i[2] || (i[2] = (v) => d("next"))
847
849
  }, {
848
850
  default: y(() => [
849
- M(Y, { icon: "caret-right" })
851
+ L(Y, { icon: "caret-right" })
850
852
  ]),
851
853
  _: 1
852
854
  }, 8, ["disabled"]),
853
- M(ye, {
855
+ L(ye, {
854
856
  disabled: a.value === _.value - 1,
855
857
  onClick: i[3] || (i[3] = (v) => a.value = _.value - 1)
856
858
  }, {
857
859
  default: y(() => [
858
- M(Y, { icon: "caret-double-right" })
860
+ L(Y, { icon: "caret-double-right" })
859
861
  ]),
860
862
  _: 1
861
863
  }, 8, ["disabled"]),
862
- M(Xe, {
864
+ L(Xe, {
863
865
  modelValue: c.value,
864
866
  "onUpdate:modelValue": i[4] || (i[4] = (v) => c.value = v),
865
867
  property: {
@@ -869,7 +871,7 @@ const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-86a1e910"]]), Bn = { cla
869
871
  class: "pagination__control"
870
872
  }, {
871
873
  default: y(() => [
872
- (t(!0), l(P, null, H(e(wt), (v) => (t(), l("option", {
874
+ (t(!0), l(P, null, H(e(Tt), (v) => (t(), l("option", {
873
875
  key: `limit-${v}`,
874
876
  value: v
875
877
  }, C(v), 9, wn))), 128))
@@ -878,7 +880,7 @@ const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-86a1e910"]]), Bn = { cla
878
880
  }, 8, ["modelValue"])
879
881
  ]),
880
882
  $.noSummary ? b("", !0) : (t(), l("div", Tn, [
881
- D(C(e(L)("Page")) + " ", 1),
883
+ D(C(e(R)("Page")) + " ", 1),
882
884
  (t(), V(Ce, {
883
885
  key: a.value,
884
886
  modelValue: u.value,
@@ -892,12 +894,12 @@ const Xe = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-86a1e910"]]), Bn = { cla
892
894
  a.value = u.value === 0 ? 0 : u.value - 1;
893
895
  })
894
896
  }, null, 8, ["modelValue"])),
895
- B("span", null, C(e(L)("of")) + " " + C(_.value), 1)
897
+ B("span", null, C(e(R)("of")) + " " + C(_.value), 1)
896
898
  ]))
897
899
  ]));
898
900
  }
899
901
  });
900
- const Rn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Ln = { class: "checkbox__text" }, Mn = ["innerHTML"], qn = { class: "checkbox__hint" }, zn = ["innerHTML"], Fn = {
902
+ const qn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Rn = { class: "checkbox__text" }, Ln = ["innerHTML"], Mn = { class: "checkbox__hint" }, zn = ["innerHTML"], Fn = {
901
903
  inheritAttrs: !1
902
904
  }, En = /* @__PURE__ */ z({
903
905
  ...Fn,
@@ -909,6 +911,7 @@ const Rn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
909
911
  parentPropertyName: {},
910
912
  parentCollection: {},
911
913
  readOnly: { type: Boolean },
914
+ required: { type: Boolean },
912
915
  value: {},
913
916
  variant: {}
914
917
  },
@@ -975,16 +978,16 @@ const Rn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
975
978
  class: "checkbox__input",
976
979
  onClick: $
977
980
  }), null, 16), [
978
- [$t, d.value]
981
+ [gt, d.value]
979
982
  ]),
980
- B("div", Ln, [
983
+ B("div", Rn, [
981
984
  B("div", null, [
982
985
  i.$slots.description ? A(i.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), l("div", {
983
986
  key: 1,
984
- innerHTML: (f = e(n)) != null && f.translate ? e(L)(e(_)) : e(_)
985
- }, null, 8, Mn)) : A(i.$slots, "default", { key: 2 }, void 0, !0)
987
+ innerHTML: (f = e(n)) != null && f.translate ? e(R)(e(_)) : e(_)
988
+ }, null, 8, Ln)) : A(i.$slots, "default", { key: 2 }, void 0, !0)
986
989
  ]),
987
- B("div", qn, [
990
+ B("div", Mn, [
988
991
  i.$slots.hint ? A(i.$slots, "hint", { key: 0 }, void 0, !0) : (I = e(n)) != null && I.hint ? (t(), l("div", {
989
992
  key: 1,
990
993
  innerHTML: e(n).hint
@@ -1008,6 +1011,7 @@ const Un = /* @__PURE__ */ Q(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
1008
1011
  parentPropertyName: {},
1009
1012
  parentCollection: {},
1010
1013
  readOnly: { type: Boolean },
1014
+ required: { type: Boolean },
1011
1015
  property: {},
1012
1016
  columns: { default: 1 }
1013
1017
  },
@@ -1016,7 +1020,7 @@ const Un = /* @__PURE__ */ Q(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
1016
1020
  const o = p, n = r, a = o.readOnly || o.property.readOnly, c = "items" in o.property ? o.property.items.enum : o.property.enum, u = (_) => {
1017
1021
  n("update:modelValue", _);
1018
1022
  };
1019
- return mt(() => {
1023
+ return ft(() => {
1020
1024
  o.modelValue || n(
1021
1025
  "update:modelValue",
1022
1026
  "items" in o.property ? [] : ""
@@ -1032,7 +1036,7 @@ const Un = /* @__PURE__ */ Q(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
1032
1036
  key: `option-${$}`,
1033
1037
  class: "options__checkbox"
1034
1038
  }, [
1035
- M(Un, U({ ref_for: !0 }, {
1039
+ L(Un, U({ ref_for: !0 }, {
1036
1040
  value: $,
1037
1041
  readOnly: e(a),
1038
1042
  property: _.property
@@ -1055,7 +1059,8 @@ const Qn = /* @__PURE__ */ Q(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { cla
1055
1059
  propertyName: {},
1056
1060
  parentPropertyName: {},
1057
1061
  parentCollection: {},
1058
- readOnly: { type: Boolean }
1062
+ readOnly: { type: Boolean },
1063
+ required: { type: Boolean }
1059
1064
  },
1060
1065
  emits: ["update:modelValue", "change"],
1061
1066
  setup(p, { emit: r }) {
@@ -1072,7 +1077,7 @@ const Qn = /* @__PURE__ */ Q(Dn, [["__scopeId", "data-v-bcfc697e"]]), Gn = { cla
1072
1077
  { "switch--active": _.modelValue },
1073
1078
  { "switch--readOnly": e(c) }
1074
1079
  ]),
1075
- onClick: Re(u, ["stop"])
1080
+ onClick: qe(u, ["stop"])
1076
1081
  }, [
1077
1082
  d[0] || (d[0] = B("div", { class: "switch__slider" }, null, -1)),
1078
1083
  B("div", {
@@ -1109,7 +1114,7 @@ const Xn = /* @__PURE__ */ Q(Kn, [["__scopeId", "data-v-ae45597d"]]), Jn = { cla
1109
1114
  meta: {}
1110
1115
  },
1111
1116
  setup(p) {
1112
- const r = p, o = K(() => r.fileId ? `${ft}/file/${r.fileId}/picture` : r.url || r.modelValue), n = ee(!1);
1117
+ const r = p, o = K(() => r.fileId ? `${vt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = ee(!1);
1113
1118
  return (a, c) => {
1114
1119
  var _;
1115
1120
  const u = ne("overlay");
@@ -1253,13 +1258,14 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1253
1258
  parentPropertyName: {},
1254
1259
  parentCollection: {},
1255
1260
  readOnly: { type: Boolean },
1261
+ required: { type: Boolean },
1256
1262
  meta: {},
1257
1263
  content: {},
1258
1264
  multiple: { type: Boolean }
1259
1265
  },
1260
1266
  emits: ["update:content", "change", "update:modelValue"],
1261
1267
  setup(p, { emit: r }) {
1262
- const o = p, n = o.property && me(o.property), a = r, u = qe() ? Ue() : null, _ = o.multiple || o.property && "type" in o.property && o.property.type === "array", d = K(() => {
1268
+ const o = p, n = o.property && me(o.property), a = r, u = Me() ? Ue() : null, _ = o.multiple || o.property && "type" in o.property && o.property.type === "array", d = K(() => {
1263
1269
  if (o.modelValue)
1264
1270
  return Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue];
1265
1271
  }), $ = (k) => new Promise((f) => {
@@ -1271,9 +1277,9 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1271
1277
  return;
1272
1278
  const I = [];
1273
1279
  for (const s of f) {
1274
- const q = await $(s);
1280
+ const M = await $(s);
1275
1281
  if (u) {
1276
- const { data: { error: E, result: Z } } = await Tt(`${ft}/${u.$id}/upload?name=${s.name}`, q, {
1282
+ const { data: { error: E, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${s.name}`, M, {
1277
1283
  params: {
1278
1284
  method: "POST",
1279
1285
  headers: {
@@ -1301,14 +1307,14 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1301
1307
  _ ? a("update:modelValue", f) : a("update:modelValue", null), a("update:content", f), a("change", f);
1302
1308
  };
1303
1309
  return (k, f) => {
1304
- var s, q;
1310
+ var s, M;
1305
1311
  const I = ne("clickable");
1306
1312
  return t(), l("div", ro, [
1307
1313
  k.readOnly ? b("", !0) : (t(), l("input", {
1308
1314
  key: 0,
1309
1315
  ref: "file",
1310
1316
  type: "file",
1311
- accept: (q = (s = e(n)) == null ? void 0 : s.accept) == null ? void 0 : q.join(","),
1317
+ accept: (M = (s = e(n)) == null ? void 0 : s.accept) == null ? void 0 : M.join(","),
1312
1318
  multiple: e(_),
1313
1319
  onChange: i
1314
1320
  }, null, 40, uo)),
@@ -1364,7 +1370,7 @@ const _o = /* @__PURE__ */ Q(po, [["__scopeId", "data-v-9950a715"]]), mo = { cla
1364
1370
  ]));
1365
1371
  }
1366
1372
  });
1367
- const ct = /* @__PURE__ */ Q(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { class: "item__values" }, bo = /* @__PURE__ */ z({
1373
+ const dt = /* @__PURE__ */ Q(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { class: "item__values" }, bo = /* @__PURE__ */ z({
1368
1374
  __name: "aeria-search-item",
1369
1375
  props: {
1370
1376
  item: {},
@@ -1391,7 +1397,7 @@ const ct = /* @__PURE__ */ Q(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { cla
1391
1397
  });
1392
1398
  }
1393
1399
  const f = () => {
1394
- const I = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [], s = I.findIndex((q) => q._id === n.item._id);
1400
+ const I = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [], s = I.findIndex((M) => M._id === n.item._id);
1395
1401
  return I.splice(s, 1), I;
1396
1402
  };
1397
1403
  a("update:modelValue", "items" in c ? f() : null);
@@ -1415,8 +1421,8 @@ const ct = /* @__PURE__ */ Q(vo, [["__scopeId", "data-v-c86e2d2a"]]), yo = { cla
1415
1421
  }, [
1416
1422
  A(k.$slots, "default", {}, void 0, !0),
1417
1423
  B("div", yo, [
1418
- (t(!0), l(P, null, H(k.indexes, (s, q) => (t(), l("div", {
1419
- key: `index-${k.item._id}-${q}`,
1424
+ (t(!0), l(P, null, H(k.indexes, (s, M) => (t(), l("div", {
1425
+ key: `index-${k.item._id}-${M}`,
1420
1426
  class: "item__value"
1421
1427
  }, C(k.item[s]), 1))), 128))
1422
1428
  ]),
@@ -1441,6 +1447,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1441
1447
  parentPropertyName: {},
1442
1448
  parentCollection: {},
1443
1449
  readOnly: { type: Boolean },
1450
+ required: { type: Boolean },
1444
1451
  property: {},
1445
1452
  propertyName: {},
1446
1453
  selectOnly: { type: Boolean },
@@ -1448,12 +1455,12 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1448
1455
  },
1449
1456
  emits: ["update:modelValue", "change", "update:panel"],
1450
1457
  setup(p, { emit: r }) {
1451
- const o = p, n = ie("meta"), a = me(o.property), c = o.panel !== void 0 ? K(() => o.panel) : ee(!1), u = r, _ = ie(me(o.property).$ref), d = qe(), $ = d ? Ue() : null, i = a.indexes;
1458
+ const o = p, n = re("meta"), a = me(o.property), c = o.panel !== void 0 ? K(() => o.panel) : ee(!1), u = r, _ = re(me(o.property).$ref), d = Me(), $ = d ? Ue() : null, i = a.indexes;
1452
1459
  he(ze, me(o.property).$ref), he("innerInputLabel", !0), he("omitInputLabels", !0);
1453
1460
  const v = ee(o.modelValue), k = ee({
1454
1461
  data: [],
1455
1462
  pagination: {}
1456
- }), f = K(() => k.value.data), I = K(() => k.value.pagination), s = ee(0), q = ee(!1), E = ee(""), Z = () => {
1463
+ }), f = K(() => k.value.data), I = K(() => k.value.pagination), s = ee(0), M = ee(!1), E = ee(""), Z = () => {
1457
1464
  const g = {};
1458
1465
  if (d) {
1459
1466
  const N = e(d);
@@ -1488,12 +1495,12 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1488
1495
  return;
1489
1496
  }
1490
1497
  k.value.pagination = N.pagination, s.value === 0 && k.value.data.splice(0), k.value.data.push(...N.data);
1491
- }, [w] = vt({
1498
+ }, [w] = yt({
1492
1499
  delay: 800
1493
1500
  })(() => {
1494
- s.value = 0, oe(), q.value = !1;
1501
+ s.value = 0, oe(), M.value = !1;
1495
1502
  }), te = () => {
1496
- q.value = !0, w();
1503
+ M.value = !0, w();
1497
1504
  }, ge = () => {
1498
1505
  "effect" in c ? u("update:panel", !0) : c.value = !0, oe();
1499
1506
  }, de = () => {
@@ -1504,22 +1511,22 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1504
1511
  }), We(() => {
1505
1512
  o.selectOnly && oe();
1506
1513
  });
1507
- const re = (g) => {
1514
+ const ae = (g) => {
1508
1515
  v.value = g, o.selectOnly || u("update:modelValue", g);
1509
1516
  }, O = () => {
1510
1517
  de(), u("update:modelValue", v.value);
1511
1518
  };
1512
1519
  return (g, N) => {
1513
- const ae = ne("clickable");
1520
+ const le = ne("clickable");
1514
1521
  return t(), l("div", null, [
1515
1522
  e(c) ? (t(), V(Ge, {
1516
1523
  key: 0,
1517
1524
  to: "main"
1518
1525
  }, [
1519
- M(Se, {
1526
+ L(Se, {
1520
1527
  float: "",
1521
1528
  "close-hint": "",
1522
- title: `${e(L)("action.select", { capitalize: !0 })} ${e(L)(g.propertyName)}`,
1529
+ title: `${e(R)("action.select", { capitalize: !0 })} ${e(R)(g.propertyName)}`,
1523
1530
  "overlay-layer": 65,
1524
1531
  "model-value": e(c),
1525
1532
  style: { "--panel-max-width": "36rem" },
@@ -1527,12 +1534,12 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1527
1534
  onOverlayClick: de
1528
1535
  }, {
1529
1536
  footer: y(() => [
1530
- M(_e, {
1537
+ L(_e, {
1531
1538
  large: "",
1532
1539
  onClick: O
1533
1540
  }, {
1534
1541
  default: y(() => [
1535
- D(C(e(L)("action.save", { capitalize: !0 })), 1)
1542
+ D(C(e(R)("action.save", { capitalize: !0 })), 1)
1536
1543
  ]),
1537
1544
  _: 1
1538
1545
  })
@@ -1541,7 +1548,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1541
1548
  var m, T;
1542
1549
  return [
1543
1550
  B("div", ho, [
1544
- M(Ce, U({
1551
+ L(Ce, U({
1545
1552
  modelValue: E.value,
1546
1553
  "onUpdate:modelValue": N[0] || (N[0] = (F) => E.value = F)
1547
1554
  }, {
@@ -1551,7 +1558,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1551
1558
  inputType: "search"
1552
1559
  }
1553
1560
  }, { onInput: te }), null, 16, ["modelValue"]),
1554
- f.value.length ? (t(), V(ct, {
1561
+ f.value.length ? (t(), V(dt, {
1555
1562
  key: 0,
1556
1563
  "observe-scroll": "",
1557
1564
  onEndReached: h
@@ -1569,17 +1576,17 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1569
1576
  ]),
1570
1577
  _: 1
1571
1578
  })) : (t(), l("div", $o, [
1572
- q.value ? (t(), l("div", go, C(e(L)("searching", { capitalize: !0 })) + "... ", 1)) : !e(_).loading.getAll && Object.values(E.value).filter((F) => !!F).length > 0 && !("items" in g.property && ((m = g.modelValue) != null && m.length) || !Array.isArray(g.modelValue) && ((T = g.modelValue) != null && T._id)) ? (t(), l("div", ko, C(e(L)("no_results", { capitalize: !0 })), 1)) : b("", !0)
1579
+ M.value ? (t(), l("div", go, C(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(_).loading.getAll && Object.values(E.value).filter((F) => !!F).length > 0 && !("items" in g.property && ((m = g.modelValue) != null && m.length) || !Array.isArray(g.modelValue) && ((T = g.modelValue) != null && T._id)) ? (t(), l("div", ko, C(e(R)("no_results", { capitalize: !0 })), 1)) : b("", !0)
1573
1580
  ]))
1574
1581
  ]),
1575
- B("div", Vo, C(e(L)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(L)("of")) + " " + C(I.value.recordsTotal), 1)
1582
+ B("div", Vo, C(e(R)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(R)("of")) + " " + C(I.value.recordsTotal), 1)
1576
1583
  ];
1577
1584
  }),
1578
1585
  _: 1
1579
1586
  }, 8, ["title", "model-value"])
1580
1587
  ])) : b("", !0),
1581
1588
  g.selectOnly ? b("", !0) : (t(), l("div", Co, [
1582
- M(ct, null, ce({
1589
+ L(dt, null, ce({
1583
1590
  default: y(() => {
1584
1591
  var m;
1585
1592
  return [
@@ -1592,7 +1599,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1592
1599
  modelValue: g.modelValue
1593
1600
  }, {
1594
1601
  key: `selected-${T._id}`,
1595
- "onUpdate:modelValue": re
1602
+ "onUpdate:modelValue": ae
1596
1603
  }), null, 16))), 128))
1597
1604
  ])) : (m = g.modelValue) != null && m._id ? (t(), V(De, U({ key: 1 }, {
1598
1605
  item: g.modelValue,
@@ -1600,7 +1607,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1600
1607
  property: e(a),
1601
1608
  readOnly: g.readOnly,
1602
1609
  modelValue: g.modelValue
1603
- }, { "onUpdate:modelValue": re }), null, 16)) : b("", !0)
1610
+ }, { "onUpdate:modelValue": ae }), null, 16)) : b("", !0)
1604
1611
  ];
1605
1612
  }),
1606
1613
  _: 2
@@ -1613,11 +1620,11 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1613
1620
  onClick: ge
1614
1621
  }, {
1615
1622
  default: y(() => [
1616
- D(C(e(L)("action.select", { capitalize: !0 })), 1)
1623
+ D(C(e(R)("action.select", { capitalize: !0 })), 1)
1617
1624
  ]),
1618
1625
  _: 1
1619
1626
  })), [
1620
- [ae]
1627
+ [le]
1621
1628
  ])
1622
1629
  ]),
1623
1630
  key: "0"
@@ -1628,7 +1635,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1628
1635
  };
1629
1636
  }
1630
1637
  });
1631
- const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r) => {
1638
+ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r) => {
1632
1639
  const o = "items" in p ? p.items : p, n = {
1633
1640
  options: Qn,
1634
1641
  select: Xe,
@@ -1658,16 +1665,16 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1658
1665
  p ?? (p = []);
1659
1666
  const n = "items" in r ? r.items : r;
1660
1667
  if ("$ref" in n) {
1661
- const a = ie(n.$ref, o), c = Ae(a.$freshItem);
1668
+ const a = re(n.$ref, o), c = Ae(a.$freshItem);
1662
1669
  return p.push(c);
1663
1670
  }
1664
- return "properties" in n ? p.push(zt(n)) : "type" in n && n.type === "boolean" ? p.push({}) : p.push(null);
1671
+ return "properties" in n ? p.push(Ft(n)) : "type" in n && n.type === "boolean" ? p.push({}) : p.push(null);
1665
1672
  }, So = (p, r) => {
1666
1673
  p.splice(r, 1);
1667
1674
  }, wo = {
1668
1675
  key: 0,
1669
1676
  class: "form__header"
1670
- }, To = { class: "form__fieldset" }, jo = { key: 0 }, Ro = ["innerHTML"], Lo = ["onInput"], Mo = { key: 4 }, qo = { value: "true" }, zo = { value: "false" }, Fo = {
1677
+ }, To = { class: "form__fieldset" }, jo = { key: 0 }, qo = ["innerHTML"], Ro = ["onInput"], Lo = { key: 4 }, Mo = { value: "true" }, zo = { value: "false" }, Fo = {
1671
1678
  key: 5,
1672
1679
  style: { display: "grid", "row-gap": ".4rem" }
1673
1680
  }, Eo = { key: 0 }, Uo = {
@@ -1688,12 +1695,12 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1688
1695
  parentPropertyName: {},
1689
1696
  parentCollection: {},
1690
1697
  readOnly: { type: Boolean },
1698
+ required: { type: [Boolean, Array] },
1691
1699
  form: {},
1692
1700
  collection: {},
1693
1701
  searchOnly: { type: Boolean },
1694
1702
  layout: {},
1695
1703
  formLayout: {},
1696
- required: {},
1697
1704
  formComponents: {},
1698
1705
  propertyComponents: {},
1699
1706
  omitFormHeader: { type: Boolean },
@@ -1707,12 +1714,12 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1707
1714
  },
1708
1715
  emits: ["update:modelValue", "input", "change", "clipboardCopy"],
1709
1716
  setup(p, { emit: r }) {
1710
- var ae;
1717
+ var le;
1711
1718
  const o = Ke(), n = p, a = r;
1712
- mt(() => {
1719
+ ft(() => {
1713
1720
  n.modelValue || a("update:modelValue", n.property && "items" in n.property ? [] : {});
1714
1721
  });
1715
- const c = n.property && me(n.property), u = c ? c.$ref : n.collection || qe(), _ = n.readOnly || ((ae = n.property) == null ? void 0 : ae.readOnly), d = u ? ie(e(u)) : null;
1722
+ const c = n.property && me(n.property), u = c ? c.$ref : n.collection || Me(), _ = n.readOnly || ((le = n.property) == null ? void 0 : le.readOnly), d = u ? re(e(u)) : null;
1716
1723
  !u && process.env.NODE_ENV !== "production" && console.warn("aeria-form was used without providing storeId or specifying collection prop, some features may not work as intended");
1717
1724
  const $ = ee(!1), i = K(() => {
1718
1725
  const m = (() => !n.form && n.property ? "type" in n.property && n.property.type === "object" ? "properties" in n.property ? n.property.properties : void 0 : d == null ? void 0 : d.properties : n.form)();
@@ -1735,7 +1742,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1735
1742
  }), v = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), k = (m) => {
1736
1743
  const T = fe(m, n[m]);
1737
1744
  return n[m] && he(m, n[m]), T;
1738
- }, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), I = k("formComponents") || {}, s = k("propertyComponents") || {}, q = k("omitFormHeader"), E = k("omitInputLabels"), Z = k("innerInputLabel");
1745
+ }, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), I = k("formComponents") || {}, s = k("propertyComponents") || {}, M = k("omitFormHeader"), E = k("omitInputLabels"), Z = k("innerInputLabel");
1739
1746
  u && he(ze, u), he("searchOnly", n.searchOnly);
1740
1747
  const h = (m) => i.value ? Object.entries(i.value).filter(([T, F]) => !F.noForm && m([
1741
1748
  T,
@@ -1746,9 +1753,9 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1746
1753
  return !0;
1747
1754
  const F = n.property && "properties" in n.property ? n.property.form : (X = d == null ? void 0 : d.description) == null ? void 0 : X.form;
1748
1755
  return !F || F.includes(m);
1749
- }, oe = h(([m, T]) => G(m, T)), w = Me(), te = {}, ge = (m, T) => {
1750
- var R, se, j, le;
1751
- const F = [], X = ((se = (R = v.value) == null ? void 0 : R.fields) == null ? void 0 : se[m]) || ((le = (j = v.value) == null ? void 0 : j.fields) == null ? void 0 : le.$default);
1756
+ }, oe = h(([m, T]) => G(m, T)), w = Le(), te = {}, ge = (m, T) => {
1757
+ var q, ie, j, se;
1758
+ const F = [], X = ((ie = (q = v.value) == null ? void 0 : q.fields) == null ? void 0 : ie[m]) || ((se = (j = v.value) == null ? void 0 : j.fields) == null ? void 0 : se.$default);
1752
1759
  if (!T)
1753
1760
  return;
1754
1761
  if (X != null && X.if && !n.searchOnly) {
@@ -1774,10 +1781,10 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1774
1781
  padding: 1rem 0;
1775
1782
  margin: 1rem 0;
1776
1783
  `)), F.join("");
1777
- }, de = (m) => m === null || m instanceof Object && !Object.keys(m).length, re = K(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), O = K(() => n.form ? Ut(
1784
+ }, de = (m) => m === null || m instanceof Object && !Object.keys(m).length, ae = K(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), O = K(() => n.form ? Ut(
1778
1785
  n.modelValue,
1779
1786
  n.form,
1780
- re.value,
1787
+ ae.value,
1781
1788
  d == null ? void 0 : d.description
1782
1789
  ) : !0), g = (m, T) => {
1783
1790
  var F;
@@ -1790,82 +1797,83 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1790
1797
  const F = ne("clickable"), X = ne("focus");
1791
1798
  return t(), l("form", {
1792
1799
  class: "form",
1793
- style: $e(`row-gap: ${e(q) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1800
+ style: $e(`row-gap: ${e(M) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
1794
1801
  }, [
1795
- m.$slots.header && !e(q) ? (t(), l("header", wo, [
1802
+ m.$slots.header && !e(M) ? (t(), l("header", wo, [
1796
1803
  A(m.$slots, "header", {}, void 0, !0)
1797
1804
  ])) : b("", !0),
1798
1805
  A(m.$slots, "default", {}, void 0, !0),
1799
1806
  B("fieldset", To, [
1800
- (t(!0), l(P, null, H(e(oe), ([S, R]) => {
1801
- var se, j, le, ve, Oe, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
1807
+ (t(!0), l(P, null, H(e(oe), ([S, q]) => {
1808
+ var ie, j, se, ve, Oe, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
1802
1809
  return t(), l("div", {
1803
1810
  key: `field-${S}`,
1804
- style: $e(ge(S, R)),
1811
+ style: $e(ge(S, q)),
1805
1812
  class: W({
1806
1813
  form__field: !0,
1807
- "form__field--form": "properties" in R
1814
+ "form__field--form": "properties" in q
1808
1815
  })
1809
1816
  }, [
1810
- (!("type" in R) || R.type !== "boolean" || m.searchOnly) && !R.noLabel && !e(E) && !e(Z) ? (t(), l("label", jo, [
1817
+ (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(E) && !e(Z) ? (t(), l("label", jo, [
1811
1818
  B("div", {
1812
1819
  class: W({
1813
1820
  "form__field-label": !0,
1814
- "form__field-label--section": "items" in R ? "properties" in R.items : "properties" in R,
1815
- "form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!re.value || e(Ft)(S, re.value, m.modelValue))
1821
+ "form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
1822
+ "form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!ae.value || e(ct)(S, ae.value, m.modelValue))
1816
1823
  })
1817
- }, C(R.description || e(L)(S)), 3),
1818
- R.hint ? (t(), l("div", {
1824
+ }, C(q.description || e(R)(S)), 3),
1825
+ q.hint ? (t(), l("div", {
1819
1826
  key: 0,
1820
- innerHTML: R.hint
1821
- }, null, 8, Ro)) : b("", !0)
1827
+ innerHTML: q.hint
1828
+ }, null, 8, qo)) : b("", !0)
1822
1829
  ])) : b("", !0),
1823
1830
  m.$slots[`field-${S}`] ? A(m.$slots, `field-${S}`, U({
1824
1831
  key: 1,
1825
1832
  ref_for: !0
1826
1833
  }, {
1827
1834
  readOnly: e(_),
1828
- property: R,
1835
+ property: q,
1829
1836
  propertyName: S,
1830
1837
  modelValue: m.modelValue
1831
- }), void 0, !0) : (le = (j = (se = m.layout) == null ? void 0 : se.fields) == null ? void 0 : j[S]) != null && le.component && e(s)[m.layout.fields[S].component.name] ? (t(), V(be(e(s)[m.layout.fields[S].component.name]), U({
1838
+ }), void 0, !0) : (se = (j = (ie = m.layout) == null ? void 0 : ie.fields) == null ? void 0 : j[S]) != null && se.component && e(s)[m.layout.fields[S].component.name] ? (t(), V(be(e(s)[m.layout.fields[S].component.name]), U({
1832
1839
  key: 2,
1833
1840
  modelValue: m.modelValue[S],
1834
1841
  "onUpdate:modelValue": (x) => m.modelValue[S] = x,
1835
1842
  ref_for: !0
1836
1843
  }, {
1837
1844
  readOnly: e(_),
1838
- property: R,
1845
+ property: q,
1839
1846
  propertyName: S,
1847
+ required: !m.searchOnly && (!ae.value || e(ct)(S, ae.value, m.modelValue)),
1840
1848
  ...m.layout.fields[S].component.props || {}
1841
1849
  }, {
1842
1850
  onInput: (x) => a("input", S),
1843
1851
  onChange: T[0] || (T[0] = (x) => a("change", x))
1844
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) && m.searchOnly ? (t(), l("div", {
1852
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && m.searchOnly ? (t(), l("div", {
1845
1853
  key: 3,
1846
1854
  style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
1847
1855
  onInput: (x) => a("input", S),
1848
1856
  onChange: T[1] || (T[1] = (x) => a("change", x))
1849
1857
  }, [
1850
- M(Ce, U({
1858
+ L(Ce, U({
1851
1859
  modelValue: m.modelValue[S].$gte,
1852
1860
  "onUpdate:modelValue": (x) => m.modelValue[S].$gte = x,
1853
1861
  ref_for: !0
1854
1862
  }, {
1855
- property: R,
1863
+ property: q,
1856
1864
  propertyName: S
1857
1865
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1858
- M(Ce, U({
1866
+ L(Ce, U({
1859
1867
  modelValue: m.modelValue[S].$lte,
1860
1868
  "onUpdate:modelValue": (x) => m.modelValue[S].$lte = x,
1861
1869
  ref_for: !0
1862
1870
  }, {
1863
- property: R,
1871
+ property: q,
1864
1872
  propertyName: S
1865
1873
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1866
- ], 40, Lo)) : "type" in R && R.type === "boolean" && m.searchOnly ? (t(), l("div", Mo, [
1867
- M(Xe, U({ ref_for: !0 }, {
1868
- property: R,
1874
+ ], 40, Ro)) : "type" in q && q.type === "boolean" && m.searchOnly ? (t(), l("div", Lo, [
1875
+ L(Xe, U({ ref_for: !0 }, {
1876
+ property: q,
1869
1877
  propertyName: S
1870
1878
  }, {
1871
1879
  "boolean-ref": "",
@@ -1876,24 +1884,24 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1876
1884
  }
1877
1885
  }), {
1878
1886
  default: y(() => [
1879
- B("option", qo, C(e(L)("yes")), 1),
1880
- B("option", zo, C(e(L)("no")), 1)
1887
+ B("option", Mo, C(e(R)("yes")), 1),
1888
+ B("option", zo, C(e(R)("no")), 1)
1881
1889
  ]),
1882
1890
  _: 2
1883
1891
  }, 1040, ["model-value", "onUpdate:modelValue"])
1884
- ])) : m.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), l("div", Fo, [
1892
+ ])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline) ? (t(), l("div", Fo, [
1885
1893
  e(_) ? b("", !0) : (t(), l("div", Eo, [
1886
- M(_e, {
1894
+ L(_e, {
1887
1895
  small: "",
1888
1896
  variant: "alt",
1889
1897
  icon: "plus",
1890
- disabled: !("inline" in R.items && R.items.inline) && (((ve = m.modelValue[S]) == null ? void 0 : ve.length) >= R.maxItems || de((Je = m.modelValue[S]) == null ? void 0 : Je[((Oe = m.modelValue[S]) == null ? void 0 : Oe.length) - 1])),
1891
- onClick: Re((x) => {
1892
- m.modelValue[S] || (m.modelValue[S] = []), e(Bo)(m.modelValue[S], R, e(o));
1898
+ disabled: !("inline" in q.items && q.items.inline) && (((ve = m.modelValue[S]) == null ? void 0 : ve.length) >= q.maxItems || de((Je = m.modelValue[S]) == null ? void 0 : Je[((Oe = m.modelValue[S]) == null ? void 0 : Oe.length) - 1])),
1899
+ onClick: qe((x) => {
1900
+ m.modelValue[S] || (m.modelValue[S] = []), e(Bo)(m.modelValue[S], q, e(o));
1893
1901
  }, ["prevent"])
1894
1902
  }, {
1895
1903
  default: y(() => [
1896
- D(C(e(L)("action.add", { capitalize: !0 })), 1)
1904
+ D(C(e(R)("action.add", { capitalize: !0 })), 1)
1897
1905
  ]),
1898
1906
  _: 2
1899
1907
  }, 1032, ["disabled", "onClick"])
@@ -1909,28 +1917,28 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1909
1917
  key: 0,
1910
1918
  icon: "trash",
1911
1919
  class: "form__array-remove",
1912
- onClick: Re((Te) => e(So)(m.modelValue[S], we), ["prevent"])
1920
+ onClick: qe((Te) => e(So)(m.modelValue[S], we), ["prevent"])
1913
1921
  }, {
1914
1922
  default: y(() => [
1915
- D(C(e(L)("action.remove", { capitalize: !0 })), 1)
1923
+ D(C(e(R)("action.remove", { capitalize: !0 })), 1)
1916
1924
  ]),
1917
1925
  _: 2
1918
1926
  }, 1032, ["onClick"])), [
1919
1927
  [F]
1920
1928
  ]),
1921
- (t(), V(be(e(dt)(R, e(I))), U({
1929
+ (t(), V(be(e(pt)(q, e(I))), U({
1922
1930
  modelValue: m.modelValue[S][we],
1923
1931
  "onUpdate:modelValue": (Te) => m.modelValue[S][we] = Te,
1924
1932
  ref_for: !0
1925
1933
  }, {
1926
1934
  readOnly: e(_),
1927
- property: R.items,
1935
+ property: q.items,
1928
1936
  propertyName: S,
1929
1937
  parentCollection: e(u),
1930
1938
  parentPropertyName: m.parentPropertyName,
1931
1939
  columns: ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt[S]) == null ? void 0 : st.optionsColumns) || ((ut = (rt = (it = m.layout) == null ? void 0 : it.fields) == null ? void 0 : rt.$default) == null ? void 0 : ut.optionsColumns),
1932
1940
  validationErrors: g(S, we),
1933
- ...R.componentProps || {}
1941
+ ...q.componentProps || {}
1934
1942
  }, {
1935
1943
  onInput: (Te) => a("input", S),
1936
1944
  onChange: T[3] || (T[3] = (Te) => a("change", Te))
@@ -1938,30 +1946,30 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1938
1946
  ]);
1939
1947
  }), 128))
1940
1948
  ])) : b("", !0)
1941
- ])) : m.modelValue ? J((t(), V(be(e(dt)(R, e(I))), U({
1949
+ ])) : m.modelValue ? J((t(), V(be(e(pt)(q, e(I))), U({
1942
1950
  key: 6,
1943
1951
  modelValue: m.modelValue[S],
1944
1952
  "onUpdate:modelValue": (x) => m.modelValue[S] = x,
1945
1953
  ref_for: !0
1946
1954
  }, {
1947
1955
  readOnly: e(_),
1948
- property: R,
1956
+ property: q,
1949
1957
  propertyName: S,
1950
1958
  parentPropertyName: m.parentPropertyName,
1951
1959
  parentCollection: e(u),
1952
1960
  columns: ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne[S]) == null ? void 0 : xe.optionsColumns) || ((nt = (tt = (et = m.layout) == null ? void 0 : et.fields) == null ? void 0 : tt.$default) == null ? void 0 : nt.optionsColumns),
1953
- ...R.componentProps || {},
1961
+ ...q.componentProps || {},
1954
1962
  validationErrors: g(S)
1955
1963
  }, {
1956
1964
  onInput: (x) => a("input", S),
1957
1965
  onChange: T[4] || (T[4] = (x) => a("change", x)),
1958
1966
  onClipboardCopy: T[5] || (T[5] = (x) => a("clipboardCopy", x))
1959
1967
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
1960
- [X, N(R)]
1968
+ [X, N(q)]
1961
1969
  ]) : b("", !0),
1962
1970
  (ot = f.value) != null && ot[S] ? (t(), l("div", Ho, [
1963
- f.value[S].type ? (t(), l("span", Do, C(e(L)(`validation_error.${f.value[S].type}`)), 1)) : b("", !0),
1964
- f.value[S].detail ? (t(), l("span", Qo, C(e(L)(f.value[S].detail)), 1)) : b("", !0)
1971
+ f.value[S].type ? (t(), l("span", Do, C(e(R)(`validation_error.${f.value[S].type}`)), 1)) : b("", !0),
1972
+ f.value[S].detail ? (t(), l("span", Qo, C(e(R)(f.value[S].detail)), 1)) : b("", !0)
1965
1973
  ])) : b("", !0)
1966
1974
  ], 6);
1967
1975
  }), 128))
@@ -1976,7 +1984,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), dt = (p, r
1976
1984
  };
1977
1985
  }
1978
1986
  });
1979
- const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @__PURE__ */ z({
1987
+ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @__PURE__ */ z({
1980
1988
  __name: "aeria-filter-panel",
1981
1989
  emits: ["update:modelValue"],
1982
1990
  setup(p, { emit: r }) {
@@ -1986,8 +1994,8 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
1986
1994
  for (const d of Object.keys(_))
1987
1995
  d.startsWith(`${c}.`) && delete _[d];
1988
1996
  }
1989
- a.push(Le(a.currentRoute, {
1990
- query: jt(n)
1997
+ a.push(Re(a.currentRoute, {
1998
+ query: qt(n)
1991
1999
  }));
1992
2000
  };
1993
2001
  return (_, d) => (t(), V(Se, {
@@ -2007,7 +2015,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2007
2015
  }, {
2008
2016
  default: y(() => [
2009
2017
  D(C(_.t("action.clear", { capitalize: !0 })) + " ", 1),
2010
- M(ke, null, {
2018
+ L(ke, null, {
2011
2019
  default: y(() => [
2012
2020
  D(C(e(n).filtersCount), 1)
2013
2021
  ]),
@@ -2016,7 +2024,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2016
2024
  ]),
2017
2025
  _: 1
2018
2026
  })) : b("", !0),
2019
- M(_e, {
2027
+ L(_e, {
2020
2028
  large: "",
2021
2029
  icon: "funnel",
2022
2030
  disabled: !e(n).hasActiveFilters,
@@ -2029,7 +2037,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2029
2037
  }, 8, ["disabled"])
2030
2038
  ]),
2031
2039
  default: y(() => [
2032
- M(He, U({
2040
+ L(He, U({
2033
2041
  modelValue: e(n).filters,
2034
2042
  "onUpdate:modelValue": d[0] || (d[0] = ($) => e(n).filters = $)
2035
2043
  }, {
@@ -2055,14 +2063,14 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2055
2063
  },
2056
2064
  emits: ["update:visible", "update:modelValue", "insert", "cancel"],
2057
2065
  setup(p, { emit: r }) {
2058
- const o = p, n = r, a = ie("meta"), c = o.collection, u = ie(c);
2066
+ const o = p, n = r, a = re("meta"), c = o.collection, u = re(c);
2059
2067
  We(() => {
2060
2068
  o.modelValue && u.$actions.setItem(o.modelValue);
2061
2069
  });
2062
2070
  const _ = K(() => o.form ? u.$actions.useProperties(o.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
2063
2071
  const { error: k, result: f } = await u.$actions.deepInsert();
2064
2072
  k || (n("update:visible", !1), n("update:modelValue", f), n("insert", f), u.$actions.clearItem());
2065
- }, { t: $ } = It(), i = () => {
2073
+ }, { t: $ } = Bt(), i = () => {
2066
2074
  a.$actions.ask({
2067
2075
  action: () => {
2068
2076
  u.$actions.clearItem(), u.validationErrors = {}, n("cancel");
@@ -2106,7 +2114,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2106
2114
  }, 16)) : b("", !0)
2107
2115
  ]),
2108
2116
  default: y(() => [
2109
- M(He, U({
2117
+ L(He, U({
2110
2118
  modelValue: e(u).item,
2111
2119
  "onUpdate:modelValue": f[0] || (f[0] = (s) => e(u).item = s)
2112
2120
  }, {
@@ -2123,8 +2131,8 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2123
2131
  }), ce({ _: 2 }, [
2124
2132
  H(Object.keys(k.$slots).filter((s) => s.startsWith("field-")), (s) => ({
2125
2133
  name: s,
2126
- fn: y((q) => [
2127
- A(k.$slots, s, pe(Ve(q)))
2134
+ fn: y((M) => [
2135
+ A(k.$slots, s, pe(Ve(M)))
2128
2136
  ])
2129
2137
  }))
2130
2138
  ]), 1040, ["modelValue"])
@@ -2141,7 +2149,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2141
2149
  k.readOnly ? void 0 : {
2142
2150
  name: "footer",
2143
2151
  fn: y(() => [
2144
- M(_e, {
2152
+ L(_e, {
2145
2153
  variant: "transparent",
2146
2154
  onClick: i
2147
2155
  }, {
@@ -2150,7 +2158,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2150
2158
  ]),
2151
2159
  _: 1
2152
2160
  }),
2153
- M(_e, {
2161
+ L(_e, {
2154
2162
  large: "",
2155
2163
  disabled: !e(u).isInsertReady || e(u).loading.get,
2156
2164
  loading: e(u).loading.insert,
@@ -2167,7 +2175,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2167
2175
  ]), 1032, ["model-value", "loading"]);
2168
2176
  };
2169
2177
  }
2170
- }), bt = (p, r) => {
2178
+ }), ht = (p, r) => {
2171
2179
  if (r) {
2172
2180
  if (!p) {
2173
2181
  r.filtersPreset = {}, r.preferredTableProperties = [], r.pagination.offset = 0;
@@ -2183,7 +2191,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2183
2191
  if (p) {
2184
2192
  if (p.description.filtersPresets) {
2185
2193
  const c = a || Object.keys(p.description.filtersPresets)[0];
2186
- bt(p.description.filtersPresets[c], p);
2194
+ ht(p.description.filtersPresets[c], p);
2187
2195
  }
2188
2196
  if (r.persistInQuery) {
2189
2197
  const c = n.value.query;
@@ -2226,14 +2234,14 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2226
2234
  },
2227
2235
  emits: ["itemClick"],
2228
2236
  setup(p, { emit: r }) {
2229
- const o = p, n = r, a = Me(), c = o.collection || qe(), u = c ? ie(typeof c == "string" ? c : c.value) : null, _ = K({
2237
+ const o = p, n = r, a = Le(), c = o.collection || Me(), u = c ? re(typeof c == "string" ? c : c.value) : null, _ = K({
2230
2238
  get: () => u == null ? void 0 : u.selected,
2231
2239
  set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
2232
2240
  }), d = K(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), $ = (f, I) => f.button ? typeof f.button == "object" ? Qe(I, f.button).satisfied : f.button : !1, i = (f) => {
2233
2241
  var s;
2234
2242
  const I = (s = o.layout) == null ? void 0 : s.actions;
2235
- return !a.value.xl || !I || !o.actions ? [] : o.actions.filter((q) => {
2236
- const E = I[q.action];
2243
+ return !a.value.xl || !I || !o.actions ? [] : o.actions.filter((M) => {
2244
+ const E = I[M.action];
2237
2245
  return E && $(E, f);
2238
2246
  });
2239
2247
  }, v = (f) => {
@@ -2241,25 +2249,25 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2241
2249
  if (!o.actions)
2242
2250
  return [];
2243
2251
  const I = (s = o.layout) == null ? void 0 : s.actions;
2244
- return !a.value.xl || !I ? o.actions : o.actions.filter((q) => {
2245
- const E = I[q.action];
2246
- if (q.roles) {
2247
- const Z = ie("user");
2248
- if (!yt(q.roles, Z.currentUser.roles))
2252
+ return !a.value.xl || !I ? o.actions : o.actions.filter((M) => {
2253
+ const E = I[M.action];
2254
+ if (M.roles) {
2255
+ const Z = re("user");
2256
+ if (!bt(M.roles, Z.currentUser.roles))
2249
2257
  return !1;
2250
2258
  }
2251
2259
  return !E || !$(E, f);
2252
2260
  });
2253
2261
  }, k = (f, I) => {
2254
2262
  var E, Z;
2255
- const s = [], q = (Z = (E = o.layout) == null ? void 0 : E.actions) == null ? void 0 : Z[I.action];
2256
- return q != null && q.if && (Qe(
2263
+ const s = [], M = (Z = (E = o.layout) == null ? void 0 : E.actions) == null ? void 0 : Z[I.action];
2264
+ return M != null && M.if && (Qe(
2257
2265
  f,
2258
- q.if
2266
+ M.if
2259
2267
  ).satisfied || s.push("display: none;")), s.join("");
2260
2268
  };
2261
2269
  return (f, I) => {
2262
- var q, E, Z;
2270
+ var M, E, Z;
2263
2271
  const s = ne("clickable");
2264
2272
  return d.value > 0 || f.$slots.thead ? (t(), l("table", Jo, [
2265
2273
  f.$slots.thead ? (t(), l("thead", Zo, [
@@ -2276,8 +2284,8 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2276
2284
  (t(!0), l(P, null, H(Object.entries(f.columns), ([h, G], oe) => (t(), l("th", {
2277
2285
  key: `header-${oe}`,
2278
2286
  class: "table__header"
2279
- }, C(G.description || e(L)(h)), 1))), 128)),
2280
- (q = f.actions) != null && q.length ? (t(), l("th", ea)) : b("", !0)
2287
+ }, C(G.description || e(R)(h)), 1))), 128)),
2288
+ (M = f.actions) != null && M.length ? (t(), l("th", ea)) : b("", !0)
2281
2289
  ])
2282
2290
  ])),
2283
2291
  f.$slots.tbody ? (t(), l("tbody", ta, [
@@ -2295,15 +2303,15 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2295
2303
  type: "checkbox",
2296
2304
  value: h._id
2297
2305
  }, null, 8, la), [
2298
- [gt, _.value]
2306
+ [kt, _.value]
2299
2307
  ])
2300
2308
  ])) : b("", !0),
2301
2309
  (t(!0), l(P, null, H(Object.entries(f.columns), ([w, te], ge) => {
2302
- var de, re, O;
2310
+ var de, ae, O;
2303
2311
  return t(), l("td", {
2304
2312
  key: `column-${h._id}-${ge}`
2305
2313
  }, [
2306
- B("div", sa, C(te.description || e(L)(w)), 1),
2314
+ B("div", sa, C(te.description || e(R)(w)), 1),
2307
2315
  `row-${w}` in f.$slots ? (t(), l("div", ia, [
2308
2316
  A(f.$slots, `row-${w}`, U({ ref_for: !0 }, {
2309
2317
  store: e(u),
@@ -2320,7 +2328,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2320
2328
  "icon-classes": "aeria-blueish"
2321
2329
  }, {
2322
2330
  default: y(() => [
2323
- D(C(e(L)("yes")), 1)
2331
+ D(C(e(R)("yes")), 1)
2324
2332
  ]),
2325
2333
  _: 1
2326
2334
  })) : (t(), V(Y, {
@@ -2329,7 +2337,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2329
2337
  "icon-classes": "aeria-redish"
2330
2338
  }, {
2331
2339
  default: y(() => [
2332
- D(C(e(L)("no")), 1)
2340
+ D(C(e(R)("no")), 1)
2333
2341
  ]),
2334
2342
  _: 1
2335
2343
  }))
@@ -2363,7 +2371,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2363
2371
  key: w,
2364
2372
  property: te
2365
2373
  })), 1)) : (t(), l("span", ba, C(Array.isArray(h[w]) ? h[w].filter((g) => !!g).join(", ") : [void 0, null].includes(h[w]) ? "-" : h[w]), 1)),
2366
- ((O = (re = e(me)(te)) == null ? void 0 : re.indexes) == null ? void 0 : O.length) > 1 ? (t(), l("div", ha, [
2374
+ ((O = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : O.length) > 1 ? (t(), l("div", ha, [
2367
2375
  (t(!0), l(P, null, H(e(me)(te).indexes.slice(1, 2), (g, N) => (t(), l("div", {
2368
2376
  key: `subvalue-${N}`,
2369
2377
  class: "table__cell-subvalue"
@@ -2390,7 +2398,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2390
2398
  onClick: (te) => w.click(h)
2391
2399
  }, {
2392
2400
  default: y(() => [
2393
- D(C(e(L)(w.label)), 1)
2401
+ D(C(e(R)(w.label)), 1)
2394
2402
  ]),
2395
2403
  _: 2
2396
2404
  }, 1032, ["icon", "style", "onClick"]))), 128)),
@@ -2404,7 +2412,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2404
2412
  default: y(({
2405
2413
  visible: w
2406
2414
  }) => [
2407
- J(M(Y, {
2415
+ J(L(Y, {
2408
2416
  reactive: "",
2409
2417
  active: w,
2410
2418
  icon: "dots-three"
@@ -2426,11 +2434,11 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2426
2434
  onClick: (te) => w.click(h)
2427
2435
  }, {
2428
2436
  default: y(() => [
2429
- M(Y, {
2437
+ L(Y, {
2430
2438
  icon: w.icon || "gear"
2431
2439
  }, {
2432
2440
  default: y(() => [
2433
- D(C(e(L)(w.label)), 1)
2441
+ D(C(e(R)(w.label)), 1)
2434
2442
  ]),
2435
2443
  _: 2
2436
2444
  }, 1032, ["icon"])
@@ -2445,7 +2453,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2445
2453
  actions: v(h)
2446
2454
  }), {
2447
2455
  default: y(() => [
2448
- M(Y, {
2456
+ L(Y, {
2449
2457
  icon: "dots-three",
2450
2458
  class: "table__mobile-actions-button"
2451
2459
  })
@@ -2465,7 +2473,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-bb85a0c6"]]), Yo = /* @_
2465
2473
  B("td", {
2466
2474
  colspan: d.value + 1
2467
2475
  }, [
2468
- B("div", Aa, C(e(L)("no_results", { capitalize: !0 })) + ". ", 1)
2476
+ B("div", Aa, C(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
2469
2477
  ], 8, Oa)
2470
2478
  ])) : b("", !0)
2471
2479
  ])
@@ -2481,7 +2489,7 @@ const Ba = /* @__PURE__ */ Q(Ia, [["__scopeId", "data-v-89303bb6"]]), Sa = /* @_
2481
2489
  componentProps: {}
2482
2490
  },
2483
2491
  setup(p) {
2484
- const r = p, o = je(), n = qe(), a = K(() => {
2492
+ const r = p, o = je(), n = Me(), a = K(() => {
2485
2493
  const c = {
2486
2494
  collection: n,
2487
2495
  checkbox: o.hasSelectionActions,
@@ -2522,10 +2530,10 @@ const Ba = /* @__PURE__ */ Q(Ia, [["__scopeId", "data-v-89303bb6"]]), Sa = /* @_
2522
2530
  ], 2));
2523
2531
  }
2524
2532
  });
2525
- const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key: 0 }, Ra = {
2533
+ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key: 0 }, qa = {
2526
2534
  key: 1,
2527
2535
  class: "card__information"
2528
- }, La = /* @__PURE__ */ z({
2536
+ }, Ra = /* @__PURE__ */ z({
2529
2537
  __name: "aeria-grid",
2530
2538
  props: {
2531
2539
  individualActions: {},
@@ -2548,7 +2556,7 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2548
2556
  }, ce({
2549
2557
  footer: y(() => [
2550
2558
  e(o).title ? (t(), l("div", ja, C(d[e(o).title]), 1)) : b("", !0),
2551
- e(o).information ? (t(), l("div", Ra, C(d[e(o).information]), 1)) : b("", !0)
2559
+ e(o).information ? (t(), l("div", qa, C(d[e(o).information]), 1)) : b("", !0)
2552
2560
  ]),
2553
2561
  actions: y(() => {
2554
2562
  var $;
@@ -2563,7 +2571,7 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2563
2571
  default: y(({
2564
2572
  visible: i
2565
2573
  }) => [
2566
- J(M(Y, {
2574
+ J(L(Y, {
2567
2575
  reactive: "",
2568
2576
  active: i,
2569
2577
  icon: "dots-three-vertical"
@@ -2578,7 +2586,7 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2578
2586
  default: y(() => {
2579
2587
  var $;
2580
2588
  return [
2581
- M(Ee, {
2589
+ L(Ee, {
2582
2590
  alt: "Item picture",
2583
2591
  expandable: "",
2584
2592
  url: ($ = a(d[e(o).picture])) == null ? void 0 : $.link,
@@ -2596,7 +2604,7 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2596
2604
  large: ""
2597
2605
  }, {
2598
2606
  default: y(() => [
2599
- D(C(e(o).translateBadge ? e(L)($) : $), 1)
2607
+ D(C(e(o).translateBadge ? e(R)($) : $), 1)
2600
2608
  ]),
2601
2609
  _: 2
2602
2610
  }, 1024))), 128))
@@ -2605,9 +2613,9 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2605
2613
  } : e(o).badge ? {
2606
2614
  name: "badge",
2607
2615
  fn: y(() => [
2608
- M(ke, null, {
2616
+ L(ke, null, {
2609
2617
  default: y(() => [
2610
- D(C(e(o).translateBadge ? e(L)(d[e(o).badge]) : d[e(o).badge]), 1)
2618
+ D(C(e(o).translateBadge ? e(R)(d[e(o).badge]) : d[e(o).badge]), 1)
2611
2619
  ]),
2612
2620
  _: 2
2613
2621
  }, 1024)
@@ -2621,11 +2629,11 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2621
2629
  };
2622
2630
  }
2623
2631
  });
2624
- const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) => ({
2632
+ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) => ({
2625
2633
  tabular: Sa,
2626
- grid: pt,
2627
- list: pt
2628
- })[p], qa = {
2634
+ grid: _t,
2635
+ list: _t
2636
+ })[p], Ma = {
2629
2637
  key: 2,
2630
2638
  class: "crud__controls"
2631
2639
  }, za = {
@@ -2634,7 +2642,7 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2634
2642
  }, Fa = { class: "crud__actions" }, Ea = { class: "crud__context-badge" }, Ua = { key: 0 }, Ha = {
2635
2643
  key: 3,
2636
2644
  class: "crud__pagination"
2637
- }, _t = 30, Da = /* @__PURE__ */ z({
2645
+ }, mt = 30, Da = /* @__PURE__ */ z({
2638
2646
  __name: "aeria-crud",
2639
2647
  props: {
2640
2648
  collection: {},
@@ -2650,19 +2658,19 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2650
2658
  },
2651
2659
  emits: ["uiEvent"],
2652
2660
  setup(p, { emit: r }) {
2653
- const o = ee(!1), n = ee(!1), a = ee((...O) => null), c = ee(), u = p, _ = r, d = Be(), $ = vt({
2661
+ const o = ee(!1), n = ee(!1), a = ee((...O) => null), c = ee(), u = p, _ = r, d = Be(), $ = yt({
2654
2662
  delay: 600
2655
- }), i = ie("meta"), v = Me(), { reachedEnd: k, detach: f } = Ye(null, {
2663
+ }), i = re("meta"), v = Le(), { reachedEnd: k, detach: f } = Ye(null, {
2656
2664
  antecipate: 600
2657
2665
  }), I = !v.value.md || u.scrollPagination;
2658
2666
  I && ue(k, (O) => {
2659
- O && s.pagination.recordsTotal > s.items.length && Z.value < _t && (Z.value += 1, G());
2667
+ O && s.pagination.recordsTotal > s.items.length && Z.value < mt && (Z.value += 1, G());
2660
2668
  });
2661
2669
  const s = Rt(u.collection);
2662
2670
  Xo(s, {
2663
2671
  persistInQuery: !u.noQueryPersistence
2664
2672
  });
2665
- const q = Ke(), E = u.action ? e(u.action) : Lt(s, d, q);
2673
+ const M = Ke(), E = u.action ? e(u.action) : Lt(s, d, M);
2666
2674
  a.value = E[0], c.value = E[1];
2667
2675
  const Z = ee(0), h = ee(!1), G = async (O) => {
2668
2676
  s.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || s.$filters), Object.assign(s.activeFilters, s.filtersPreset);
@@ -2673,13 +2681,13 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2673
2681
  project: s.preferredTableProperties.length > 0 ? s.preferredTableProperties : s.description.table || Object.keys(s.properties)
2674
2682
  };
2675
2683
  Z.value > 0 && (g.limit = 15, g.offset = Z.value * g.limit), s.description.tableMeta && (g.project = g.project.concat(s.description.tableMeta)), O && Object.assign(g, O), s.loading.getAll = !0;
2676
- const { error: N, result: ae } = await s.$actions.retrieveItems(g);
2684
+ const { error: N, result: le } = await s.$actions.retrieveItems(g);
2677
2685
  if (N)
2678
2686
  return;
2679
- const { data: m, pagination: T } = ae;
2687
+ const { data: m, pagination: T } = le;
2680
2688
  s.pagination.recordsCount = T.recordsCount, s.pagination.recordsTotal = T.recordsTotal, Z.value === 0 && s.items.splice(0), s.items.push(...m), s.loading.getAll = !1, h.value = !0;
2681
2689
  }, oe = async (O) => {
2682
- d.push(Le(d.currentRoute.value, {
2690
+ d.push(Re(d.currentRoute.value, {
2683
2691
  query: {
2684
2692
  offset: O.offset,
2685
2693
  limit: O.limit
@@ -2694,14 +2702,14 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2694
2702
  return;
2695
2703
  const N = d.currentRoute.value;
2696
2704
  if (i.view.title = u.collection, !u.noFetch && (!N.query._popstate || s.itemsCount === 0)) {
2697
- const ae = Mt(s, N.query);
2698
- Object.keys(ae).length > 0 && Object.assign(s.filters, ae), await G();
2705
+ const le = Mt(s, N.query);
2706
+ Object.keys(le).length > 0 && Object.assign(s.filters, le), await G();
2699
2707
  }
2700
2708
  }, {
2701
2709
  immediate: !0,
2702
2710
  flush: "post"
2703
2711
  });
2704
- const [te] = $((O) => (d.push(Le(d.currentRoute.value, {
2712
+ const [te] = $((O) => (d.push(Re(d.currentRoute.value, {
2705
2713
  query: {
2706
2714
  search: O || void 0
2707
2715
  }
@@ -2719,10 +2727,10 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2719
2727
  const ge = (O) => {
2720
2728
  O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
2721
2729
  };
2722
- kt(() => {
2730
+ Vt(() => {
2723
2731
  s.$actions.clearFilters(), s.textQuery = "", f();
2724
2732
  }), ue(() => c.value, async (O) => {
2725
- var ae;
2733
+ var le;
2726
2734
  const g = Ae(O);
2727
2735
  let N;
2728
2736
  if (g)
@@ -2731,7 +2739,7 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2731
2739
  _id: g.params._id
2732
2740
  }
2733
2741
  })), g.name === "spawnAdd")
2734
- s.$actions.clearItem(), (ae = g.params) != null && ae.item && (s.$actions.setItem(g.params.item), Object.keys(g.params.item).forEach((m) => {
2742
+ s.$actions.clearItem(), (le = g.params) != null && le.item && (s.$actions.setItem(g.params.item), Object.keys(g.params.item).forEach((m) => {
2735
2743
  delete s.referenceItem[m];
2736
2744
  })), o.value = "add";
2737
2745
  else if (g.name === "spawnEdit")
@@ -2747,19 +2755,19 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2747
2755
  const S = s.properties[F];
2748
2756
  if (S.readOnly)
2749
2757
  return T;
2750
- const R = (se) => {
2758
+ const q = (ie) => {
2751
2759
  const j = me(S);
2752
2760
  if (!j)
2753
- return se;
2761
+ return ie;
2754
2762
  if (j.$ref === "file")
2755
2763
  return {};
2756
- if (j.inline && se) {
2757
- const { _id: le, ...ve } = se;
2764
+ if (j.inline && ie) {
2765
+ const { _id: se, ...ve } = ie;
2758
2766
  return ve;
2759
2767
  }
2760
- return se;
2768
+ return ie;
2761
2769
  };
2762
- return X = Array.isArray(X) ? X.map(R) : R(X), {
2770
+ return X = Array.isArray(X) ? X.map(q) : q(X), {
2763
2771
  ...T,
2764
2772
  [F]: X
2765
2773
  };
@@ -2778,10 +2786,10 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2778
2786
  click: a.value(O),
2779
2787
  ...O
2780
2788
  }));
2781
- }), re = K(() => s.actions.filter((O) => !O.button));
2789
+ }), ae = K(() => s.actions.filter((O) => !O.button));
2782
2790
  return he(ze, K(() => u.collection)), (O, g) => {
2783
- var m, T, F, X, S, R, se;
2784
- const N = ne("clickable"), ae = ne("loading");
2791
+ var m, T, F, X, S, q, ie;
2792
+ const N = ne("clickable"), le = ne("loading");
2785
2793
  return t(), l(P, null, [
2786
2794
  n.value ? (t(), V(Yo, {
2787
2795
  key: e(s).$id,
@@ -2801,28 +2809,28 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2801
2809
  B("span", null, C((() => {
2802
2810
  switch (o.value) {
2803
2811
  case "add":
2804
- return e(L)("action.add", { capitalize: !0 });
2812
+ return e(R)("action.add", { capitalize: !0 });
2805
2813
  case "duplicate":
2806
- return e(L)("action.duplicate", { capitalize: !0 });
2814
+ return e(R)("action.duplicate", { capitalize: !0 });
2807
2815
  case "edit":
2808
2816
  default:
2809
- return e(L)("action.edit", { capitalize: !0 });
2817
+ return e(R)("action.edit", { capitalize: !0 });
2810
2818
  }
2811
2819
  })()), 1),
2812
- B("span", null, " " + C(e(L)(O.collection)), 1)
2820
+ B("span", null, " " + C(e(R)(O.collection)), 1)
2813
2821
  ]),
2814
2822
  _: 2
2815
2823
  }, [
2816
2824
  H(Object.keys(O.$slots).filter((j) => j.startsWith("field-")), (j) => ({
2817
2825
  name: j,
2818
- fn: y((le) => [
2819
- A(O.$slots, j, pe(Ve(le)), void 0, !0)
2826
+ fn: y((se) => [
2827
+ A(O.$slots, j, pe(Ve(se)), void 0, !0)
2820
2828
  ])
2821
2829
  }))
2822
2830
  ]), 1032, ["visible", "collection", "individual-actions"])) : b("", !0),
2823
- !O.noActions && (e(s).description.search || Object.keys(e(s).availableFilters).length > 0 || ((m = e(s)) == null ? void 0 : m.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && e(s).description.layout && ((T = e(s).description.layout) == null ? void 0 : T.name) !== "tabular") ? (t(), l("div", qa, [
2831
+ !O.noActions && (e(s).description.search || Object.keys(e(s).availableFilters).length > 0 || ((m = e(s)) == null ? void 0 : m.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && e(s).description.layout && ((T = e(s).description.layout) == null ? void 0 : T.name) !== "tabular") ? (t(), l("div", Ma, [
2824
2832
  e(s).description.search ? (t(), l("div", za, [
2825
- M(Ce, U({
2833
+ L(Ce, U({
2826
2834
  modelValue: e(s).textQuery,
2827
2835
  "onUpdate:modelValue": g[3] || (g[3] = (j) => e(s).textQuery = j)
2828
2836
  }, {
@@ -2834,9 +2842,9 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2834
2842
  }), null, 16, ["modelValue"])
2835
2843
  ])) : b("", !0),
2836
2844
  B("div", Fa, [
2837
- re.value.length > 0 || !O.noLayoutToggle && e(s).description.layout && ((F = e(s).description.layout) == null ? void 0 : F.name) !== "tabular" ? (t(), V(Ie, { key: 0 }, ce({
2845
+ ae.value.length > 0 || !O.noLayoutToggle && e(s).description.layout && ((F = e(s).description.layout) == null ? void 0 : F.name) !== "tabular" ? (t(), V(Ie, { key: 0 }, ce({
2838
2846
  default: y(() => [
2839
- M(_e, {
2847
+ L(_e, {
2840
2848
  variant: "alt",
2841
2849
  icon: "sliders"
2842
2850
  }, {
@@ -2861,7 +2869,7 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2861
2869
  onClick: g[4] || (g[4] = (j) => n.value = !0)
2862
2870
  }, {
2863
2871
  default: y(() => [
2864
- D(C(e(L)("filters", { capitalize: !0 })), 1)
2872
+ D(C(e(R)("filters", { capitalize: !0 })), 1)
2865
2873
  ]),
2866
2874
  _: 1
2867
2875
  })), [
@@ -2886,7 +2894,7 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2886
2894
  onClick: g[5] || (g[5] = (j) => ge(e(s)))
2887
2895
  }, {
2888
2896
  default: y(() => [
2889
- D(C(e(L)("change_layout", { capitalize: !0 })), 1)
2897
+ D(C(e(R)("change_layout", { capitalize: !0 })), 1)
2890
2898
  ]),
2891
2899
  _: 1
2892
2900
  })), [
@@ -2895,8 +2903,8 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2895
2903
  ]),
2896
2904
  key: "1"
2897
2905
  } : void 0,
2898
- H(re.value, (j, le) => ({
2899
- name: `action-${le}`,
2906
+ H(ae.value, (j, se) => ({
2907
+ name: `action-${se}`,
2900
2908
  fn: y(() => [
2901
2909
  j ? (t(), V(Y, {
2902
2910
  key: 0,
@@ -2905,7 +2913,7 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2905
2913
  onClick: (ve) => a.value(j)({ _id: e(s).selected.map((Oe) => Oe._id) })
2906
2914
  }, {
2907
2915
  default: y(() => [
2908
- D(C(e(L)(j.label, { capitalize: !0 })), 1)
2916
+ D(C(e(R)(j.label, { capitalize: !0 })), 1)
2909
2917
  ]),
2910
2918
  _: 2
2911
2919
  }, 1032, ["icon", "disabled", "onClick"])) : b("", !0)
@@ -2928,14 +2936,14 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2928
2936
  ]),
2929
2937
  _: 1
2930
2938
  })) : b("", !0),
2931
- (t(!0), l(P, null, H(e(s).actions.filter((j) => j.button), (j, le) => (t(), V(_e, {
2932
- key: `action-${le}`,
2939
+ (t(!0), l(P, null, H(e(s).actions.filter((j) => j.button), (j, se) => (t(), V(_e, {
2940
+ key: `action-${se}`,
2933
2941
  icon: j.icon,
2934
2942
  disabled: e(s).selected.length === 0 && "selection" in j && j.selection,
2935
2943
  onClick: (ve) => a.value(j)({ _id: e(s).selected.map((Oe) => Oe._id) })
2936
2944
  }, {
2937
2945
  default: y(() => [
2938
- D(C(e(L)(j.label, { capitalize: !0 })), 1)
2946
+ D(C(e(R)(j.label, { capitalize: !0 })), 1)
2939
2947
  ]),
2940
2948
  _: 2
2941
2949
  }, 1032, ["icon", "disabled", "onClick"]))), 128)),
@@ -2957,7 +2965,7 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2957
2965
  })())
2958
2966
  }, {
2959
2967
  default: y(() => [
2960
- D(C(e(L)("add_first_item", { capitalize: !0 })), 1)
2968
+ D(C(e(R)("add_first_item", { capitalize: !0 })), 1)
2961
2969
  ]),
2962
2970
  _: 1
2963
2971
  })) : b("", !0)
@@ -2968,17 +2976,17 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2968
2976
  })), void 0, !0)
2969
2977
  ])) : O.$slots.component ? A(O.$slots, "component", pe(U({ key: 1 }, {
2970
2978
  store: e(s)
2971
- })), void 0, !0) : (t(), V(be(e(Ma)(((S = O.layout) == null ? void 0 : S.name) || e(s).$currentLayout)), U({ key: 2 }, {
2979
+ })), void 0, !0) : (t(), V(be(e(La)(((S = O.layout) == null ? void 0 : S.name) || e(s).$currentLayout)), U({ key: 2 }, {
2972
2980
  individualActions: de.value,
2973
- layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(s).layout.options,
2981
+ layoutOptions: ((q = O.layout) == null ? void 0 : q.options) || e(s).layout.options,
2974
2982
  componentProps: O.componentProps
2975
2983
  }, {
2976
- "component-name": ((se = O.layout) == null ? void 0 : se.name) || e(s).$currentLayout
2984
+ "component-name": ((ie = O.layout) == null ? void 0 : ie.name) || e(s).$currentLayout
2977
2985
  }), ce({ _: 2 }, [
2978
2986
  H(Object.keys(O.$slots).filter((j) => j.startsWith("row-")), (j) => ({
2979
2987
  name: j,
2980
- fn: y((le) => [
2981
- A(O.$slots, j, pe(Ve(le)), void 0, !0)
2988
+ fn: y((se) => [
2989
+ A(O.$slots, j, pe(Ve(se)), void 0, !0)
2982
2990
  ])
2983
2991
  })),
2984
2992
  O.$slots.tfoot ? {
@@ -2990,10 +2998,10 @@ const pt = /* @__PURE__ */ Q(La, [["__scopeId", "data-v-11c581da"]]), Ma = (p) =
2990
2998
  } : void 0
2991
2999
  ]), 1040, ["component-name"]))
2992
3000
  ])), [
2993
- [ae, (!e(I) || Z.value === _t) && e(s).loading.getAll]
3001
+ [le, (!e(I) || Z.value === mt) && e(s).loading.getAll]
2994
3002
  ]),
2995
3003
  !e(I) && !O.noControls && !e(s).loading.getAll && e(s).itemsCount > 0 ? (t(), l("div", Ha, [
2996
- M(Rn, {
3004
+ L(qn, {
2997
3005
  pagination: e(s).pagination,
2998
3006
  onPaginate: oe
2999
3007
  }, null, 8, ["pagination"])
@@ -3009,7 +3017,7 @@ const Ol = /* @__PURE__ */ Q(Da, [["__scopeId", "data-v-147880c3"]]), Qa = { cla
3009
3017
  options: {}
3010
3018
  },
3011
3019
  setup(p) {
3012
- const r = ie("meta"), o = (n, a) => {
3020
+ const r = re("meta"), o = (n, a) => {
3013
3021
  r.$actions.fulfillPrompt(n, a);
3014
3022
  };
3015
3023
  return (n, a) => (t(), V(Se, {
@@ -3064,7 +3072,7 @@ const Wa = /* @__PURE__ */ Q(Ga, [["__scopeId", "data-v-ee4328ae"]]), Ya = { cla
3064
3072
  icon: {}
3065
3073
  },
3066
3074
  setup(p) {
3067
- const r = ie("meta");
3075
+ const r = re("meta");
3068
3076
  return (o, n) => {
3069
3077
  const a = ne("clickable");
3070
3078
  return J((t(), l("div", {
@@ -3075,7 +3083,7 @@ const Wa = /* @__PURE__ */ Q(Ga, [["__scopeId", "data-v-ee4328ae"]]), Ya = { cla
3075
3083
  onAnimationend: n[0] || (n[0] = (c) => e(r).$actions.popToast()),
3076
3084
  onClick: n[1] || (n[1] = (c) => e(r).$actions.popToast(o.itr))
3077
3085
  }, [
3078
- M(Y, U(
3086
+ L(Y, U(
3079
3087
  o.icon ? { icon: o.icon } : { icon: "warning-circle" },
3080
3088
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3081
3089
  ), null, 16),
@@ -3092,9 +3100,9 @@ const Wa = /* @__PURE__ */ Q(Ga, [["__scopeId", "data-v-ee4328ae"]]), Ya = { cla
3092
3100
  const Ja = /* @__PURE__ */ Q(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["innerHTML"], Pa = { class: "main__toasts" }, Na = ["innerHTML"], xa = /* @__PURE__ */ z({
3093
3101
  __name: "aeria-main",
3094
3102
  setup(p) {
3095
- const r = ie("meta"), o = K(() => r.themeOverride || r.theme);
3103
+ const r = re("meta"), o = K(() => r.themeOverride || r.theme);
3096
3104
  return (n, a) => {
3097
- const c = Vt("router-view");
3105
+ const c = Ct("router-view");
3098
3106
  return t(), l("main", {
3099
3107
  id: "main",
3100
3108
  class: W([
@@ -3103,9 +3111,9 @@ const Ja = /* @__PURE__ */ Q(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["inn
3103
3111
  { "tw-dark": o.value === "dark" }
3104
3112
  ])
3105
3113
  }, [
3106
- (t(), V(Ct, null, {
3114
+ (t(), V(Ot, null, {
3107
3115
  default: y(() => [
3108
- M(c, null, {
3116
+ L(c, null, {
3109
3117
  default: y(({ Component: u }) => [
3110
3118
  (t(), V(be(u), null, ce({ _: 2 }, [
3111
3119
  H(Object.keys(n.$slots), (_) => ({
@@ -3122,7 +3130,7 @@ const Ja = /* @__PURE__ */ Q(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["inn
3122
3130
  _: 3
3123
3131
  })),
3124
3132
  A(n.$slots, "default", {}, void 0, !0),
3125
- M(Se, U({
3133
+ L(Se, U({
3126
3134
  modelValue: e(r).modal.visible,
3127
3135
  "onUpdate:modelValue": a[0] || (a[0] = (u) => e(r).modal.visible = u),
3128
3136
  float: "",
@@ -3153,7 +3161,7 @@ const Ja = /* @__PURE__ */ Q(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["inn
3153
3161
  }), {
3154
3162
  default: y(() => [
3155
3163
  B("div", {
3156
- innerHTML: e(L)(u.text)
3164
+ innerHTML: e(R)(u.text)
3157
3165
  }, null, 8, Na)
3158
3166
  ]),
3159
3167
  _: 2
@@ -3192,7 +3200,7 @@ const Il = /* @__PURE__ */ Q(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
3192
3200
  dropdown: { type: Boolean }
3193
3201
  },
3194
3202
  setup(p) {
3195
- const r = p, o = Ot(), n = Be(), a = Me(), c = K(() => {
3203
+ const r = p, o = At(), n = Be(), a = Le(), c = K(() => {
3196
3204
  if (r.query) {
3197
3205
  const _ = n.currentRoute.value.query[r.query];
3198
3206
  if (_)
@@ -3204,11 +3212,11 @@ const Il = /* @__PURE__ */ Q(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
3204
3212
  }
3205
3213
  return Object.keys(o)[0];
3206
3214
  }), u = (_) => {
3207
- r.query && n.push(Le(n.currentRoute.value, {
3215
+ r.query && n.push(Re(n.currentRoute.value, {
3208
3216
  query: {
3209
3217
  [r.query]: _
3210
3218
  }
3211
- })), r.param && n.push(Le(n.currentRoute.value, {
3219
+ })), r.param && n.push(Re(n.currentRoute.value, {
3212
3220
  params: {
3213
3221
  [r.param]: _
3214
3222
  }
@@ -3232,7 +3240,7 @@ const Il = /* @__PURE__ */ Q(el, [["render", nl], ["__scopeId", "data-v-3cfef7fb
3232
3240
  A(_.$slots, i, {}, void 0, !0)
3233
3241
  ], 10, sl))), 128))
3234
3242
  ])) : (t(), l("div", il, [
3235
- M(Ie, null, ce({
3243
+ L(Ie, null, ce({
3236
3244
  default: y(({ visible: i }) => [
3237
3245
  J((t(), V(Y, {
3238
3246
  "icon-right": "",
@@ -3276,7 +3284,7 @@ const cl = /* @__PURE__ */ Q(ul, [["__scopeId", "data-v-a20914ab"]]), dl = z({
3276
3284
  const r = ee(p.initialValue);
3277
3285
  return p.promise instanceof Promise && p.promise.then((o) => {
3278
3286
  r.value = o;
3279
- }), () => At("div", String(r.value));
3287
+ }), () => It("div", String(r.value));
3280
3288
  }
3281
3289
  }), pl = ["onClick"], _l = { key: 1 }, ml = /* @__PURE__ */ z({
3282
3290
  __name: "aeria-crud-topbar",
@@ -3300,22 +3308,22 @@ const cl = /* @__PURE__ */ Q(ul, [["__scopeId", "data-v-a20914ab"]]), dl = z({
3300
3308
  fn: y(() => [
3301
3309
  B("div", {
3302
3310
  class: "topbar__preset",
3303
- onClick: (v) => e(bt)(i, c.value)
3311
+ onClick: (v) => e(ht)(i, c.value)
3304
3312
  }, [
3305
3313
  i.icon ? (t(), V(Y, {
3306
3314
  key: 0,
3307
3315
  icon: i.icon
3308
3316
  }, {
3309
3317
  default: y(() => [
3310
- D(C(i.label || e(L)($, { plural: !0 })), 1)
3318
+ D(C(i.label || e(R)($, { plural: !0 })), 1)
3311
3319
  ]),
3312
3320
  _: 2
3313
- }, 1032, ["icon"])) : (t(), l("div", _l, C(i.label || e(L)($, { plural: !0 })), 1)),
3321
+ }, 1032, ["icon"])) : (t(), l("div", _l, C(i.label || e(R)($, { plural: !0 })), 1)),
3314
3322
  i.badgeFunction ? (t(), V(ke, { key: 2 }, {
3315
3323
  default: y(() => [
3316
- M(e(dl), {
3324
+ L(e(dl), {
3317
3325
  "initial-value": "0",
3318
- promise: async () => String(u(i, c.value))
3326
+ promise: u(i, c.value)
3319
3327
  }, null, 8, ["promise"])
3320
3328
  ]),
3321
3329
  _: 2
@@ -3326,7 +3334,7 @@ const cl = /* @__PURE__ */ Q(ul, [["__scopeId", "data-v-a20914ab"]]), dl = z({
3326
3334
  ]), 1024)) : b("", !0);
3327
3335
  }
3328
3336
  });
3329
- const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3337
+ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3330
3338
  __proto__: null,
3331
3339
  default: fl
3332
3340
  }, Symbol.toStringTag, { value: "Module" })), Bl = /* @__PURE__ */ z({
@@ -3338,7 +3346,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
3338
3346
  setup(p) {
3339
3347
  const r = p;
3340
3348
  he(ze, null);
3341
- const o = qt(), n = K(() => o(
3349
+ const o = zt(), n = K(() => o(
3342
3350
  r.modelValue.password,
3343
3351
  r.modelValue.confirmation
3344
3352
  ));
@@ -3383,7 +3391,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
3383
3391
  {
3384
3392
  path: "signin",
3385
3393
  name: "/user/signin",
3386
- component: () => import("./signin-65f781a5.js"),
3394
+ component: () => import("./signin-93341575.js"),
3387
3395
  meta: {
3388
3396
  title: "Autenticação"
3389
3397
  }
@@ -3391,7 +3399,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
3391
3399
  {
3392
3400
  path: "signup",
3393
3401
  name: "/user/signup",
3394
- component: () => import("./signup-83b7c10f.js"),
3402
+ component: () => import("./signup-63b80db4.js"),
3395
3403
  meta: {
3396
3404
  title: "Registro"
3397
3405
  }
@@ -3399,7 +3407,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
3399
3407
  {
3400
3408
  path: "activation",
3401
3409
  name: "/user/activation",
3402
- component: () => import("./activation-0f34f978.js"),
3410
+ component: () => import("./activation-df06ab69.js"),
3403
3411
  meta: {
3404
3412
  title: "Ativação"
3405
3413
  }
@@ -3421,7 +3429,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
3421
3429
  name: "/dashboard/:collection",
3422
3430
  props: !0,
3423
3431
  components: {
3424
- default: () => import("./index-212512bb.js"),
3432
+ default: () => import("./index-82d7e042.js"),
3425
3433
  topbar: () => Promise.resolve().then(() => vl)
3426
3434
  },
3427
3435
  meta: {
@@ -3433,7 +3441,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
3433
3441
  name: "/dashboard/:collection/:id",
3434
3442
  props: !0,
3435
3443
  components: {
3436
- default: () => import("./_id_-647db632.js")
3444
+ default: () => import("./_id_-fb02d7d7.js")
3437
3445
  },
3438
3446
  meta: {
3439
3447
  title: "%viewTitle%"
@@ -3451,7 +3459,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
3451
3459
  children: [
3452
3460
  {
3453
3461
  path: "profile",
3454
- component: () => import("./index-dfec5013.js"),
3462
+ component: () => import("./index-22d46b1b.js"),
3455
3463
  meta: {
3456
3464
  title: "Meu perfil",
3457
3465
  icon: "user-square"
@@ -3460,7 +3468,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-fd905a2a"]]), vl = /* @_
3460
3468
  {
3461
3469
  path: "changepass",
3462
3470
  name: "/dashboard/user/changepass",
3463
- component: () => import("./index-eb88327a.js"),
3471
+ component: () => import("./index-245aab95.js"),
3464
3472
  meta: {
3465
3473
  title: "Mudar senha",
3466
3474
  icon: "lock"
@@ -3498,7 +3506,7 @@ export {
3498
3506
  Yo as p,
3499
3507
  yn as q,
3500
3508
  Al as r,
3501
- Rn as s,
3509
+ qn as s,
3502
3510
  Ba as t,
3503
3511
  cl as u,
3504
3512
  _o as v,