@aeria-ui/ui 0.0.132 → 0.0.133

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
1
  import { defineComponent as r, watch as n, openBlock as c, createBlock as l } from "vue";
2
2
  import { getGlobalStateManager as a, useStore as m } from "@aeria-ui/state-management";
3
- import { e as s } from "./index-c6ea2c43.js";
3
+ import { e as s } from "./index-441f7289.js";
4
4
  import "@aeria-ui/i18n";
5
5
  import "@aeria-ui/core";
6
6
  import "@aeriajs/common";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as $, withAsyncContext as x, ref as S, unref as f, openBlock as c, createElementBlock as v, createElementVNode as y, createVNode as s, withCtx as i, withModifiers as A, createTextVNode as g } from "vue";
2
2
  import { useStore as w } from "@aeria-ui/state-management";
3
3
  import { useRouter as I } from "vue-router";
4
- import { A as R, _ as b, a as V } from "./index-c6ea2c43.js";
4
+ import { A as R, _ as b, a as V } from "./index-441f7289.js";
5
5
  import "@aeria-ui/i18n";
6
6
  import "@aeria-ui/core";
7
7
  import "@aeriajs/common";
@@ -7,6 +7,7 @@ type Props = {
7
7
  })[];
8
8
  collection: string;
9
9
  form?: string[];
10
+ float?: boolean;
10
11
  visible?: any;
11
12
  modelValue?: unknown;
12
13
  readOnly?: boolean;
@@ -1,4 +1,4 @@
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";
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 E, 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
2
  import { t as R, useI18n as Bt } from "@aeria-ui/i18n";
3
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
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";
@@ -124,7 +124,7 @@ const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
124
124
  { "icon__icon--right": c.iconRight }
125
125
  ])
126
126
  }, [
127
- (t(), l("svg", U({
127
+ (t(), l("svg", E({
128
128
  width: "24",
129
129
  height: "24",
130
130
  viewBox: "0 0 256 256",
@@ -643,7 +643,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
643
643
  }
644
644
  })();
645
645
  n("input", G), n("update:modelValue", G);
646
- }, E = (h) => {
646
+ }, U = (h) => {
647
647
  const G = h.target.value;
648
648
  f.value = G, M(G);
649
649
  };
@@ -672,7 +672,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
672
672
  "input__textarea",
673
673
  `input__input--${e(i)}`
674
674
  ]),
675
- onInput: E
675
+ onInput: U
676
676
  }, null, 42, gn), [
677
677
  [oe, e(o).focus]
678
678
  ])
@@ -683,7 +683,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
683
683
  `input__container--${e(i)}`
684
684
  ])
685
685
  }, [
686
- J(B("input", U(e(v), {
686
+ J(B("input", E(e(v), {
687
687
  value: f.value,
688
688
  "data-component": "input",
689
689
  class: [
@@ -692,7 +692,7 @@ const yn = /* @__PURE__ */ Q(vn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
692
692
  { "input__input--icon": e(c) },
693
693
  { "input__input--readOnly": e(d) }
694
694
  ],
695
- onInput: E,
695
+ onInput: U,
696
696
  onChange: G[0] || (G[0] = (te) => n("change", te))
697
697
  }), null, 16, kn), [
698
698
  [oe, e(o).focus]
@@ -761,7 +761,7 @@ const Ce = /* @__PURE__ */ Q(Cn, [["__scopeId", "data-v-b4ebd684"]]), On = {
761
761
  key: 1,
762
762
  "read-only": "",
763
763
  "model-value": i.modelValue
764
- }, null, 8, ["model-value"])) : (t(), l("select", U({ key: 0 }, {
764
+ }, null, 8, ["model-value"])) : (t(), l("select", E({ key: 0 }, {
765
765
  size: $.value,
766
766
  value: i.modelValue
767
767
  }, {
@@ -968,7 +968,7 @@ const qn = /* @__PURE__ */ Q(jn, [["__scopeId", "data-v-ae7235de"]]), Rn = { cla
968
968
  { "checkbox--readOnly": e(o) }
969
969
  ])
970
970
  }, [
971
- J(B("input", U({
971
+ J(B("input", E({
972
972
  "onUpdate:modelValue": v[0] || (v[0] = (s) => d.value = s)
973
973
  }, {
974
974
  type: e(c),
@@ -1036,7 +1036,7 @@ const Un = /* @__PURE__ */ Q(En, [["__scopeId", "data-v-7e6efc77"]]), Hn = {
1036
1036
  key: `option-${$}`,
1037
1037
  class: "options__checkbox"
1038
1038
  }, [
1039
- L(Un, U({ ref_for: !0 }, {
1039
+ L(Un, E({ ref_for: !0 }, {
1040
1040
  value: $,
1041
1041
  readOnly: e(o),
1042
1042
  property: _.property
@@ -1279,7 +1279,7 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1279
1279
  for (const s of f) {
1280
1280
  const M = await $(s);
1281
1281
  if (u) {
1282
- const { data: { error: E, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${s.name}`, M, {
1282
+ const { data: { error: U, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${s.name}`, M, {
1283
1283
  params: {
1284
1284
  method: "POST",
1285
1285
  headers: {
@@ -1288,7 +1288,7 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1288
1288
  }
1289
1289
  }
1290
1290
  });
1291
- if (E)
1291
+ if (U)
1292
1292
  return;
1293
1293
  I.unshift({
1294
1294
  tempId: Z.tempId,
@@ -1319,9 +1319,9 @@ const io = /* @__PURE__ */ Q(so, [["__scopeId", "data-v-85a82246"]]), ro = { cla
1319
1319
  onChange: i
1320
1320
  }, null, 40, uo)),
1321
1321
  d.value && d.value.length > 0 ? (t(), l("div", co, [
1322
- (t(!0), l(P, null, H(d.value, (E, Z) => (t(), V(io, {
1323
- key: "_id" in E ? String(E._id) : E.file.name,
1324
- "model-value": E
1322
+ (t(!0), l(P, null, H(d.value, (U, Z) => (t(), V(io, {
1323
+ key: "_id" in U ? String(U._id) : U.file.name,
1324
+ "model-value": U
1325
1325
  }, {
1326
1326
  default: y(() => [
1327
1327
  k.readOnly ? b("", !0) : J((t(), V(Y, {
@@ -1460,7 +1460,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1460
1460
  const v = ee(a.modelValue), k = ee({
1461
1461
  data: [],
1462
1462
  pagination: {}
1463
- }), f = K(() => k.value.data), I = K(() => k.value.pagination), s = ee(0), M = ee(!1), E = ee(""), Z = () => {
1463
+ }), f = K(() => k.value.data), I = K(() => k.value.pagination), s = ee(0), M = ee(!1), U = ee(""), Z = () => {
1464
1464
  const g = {};
1465
1465
  if (d) {
1466
1466
  const N = e(d);
@@ -1469,7 +1469,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1469
1469
  return o.constraints ? Et(o.constraints, g) : {};
1470
1470
  }, h = () => {
1471
1471
  f.value.length < I.value.recordsTotal && (s.value += 1, oe());
1472
- }, G = async () => E.value.length === 0 ? _.$actions.custom("getAll", {
1472
+ }, G = async () => U.value.length === 0 ? _.$actions.custom("getAll", {
1473
1473
  limit: Fe,
1474
1474
  offset: s.value * Fe,
1475
1475
  filters: Z()
@@ -1478,7 +1478,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1478
1478
  offset: s.value * Fe,
1479
1479
  filters: {
1480
1480
  $text: {
1481
- $search: `"${E.value}"`,
1481
+ $search: `"${U.value}"`,
1482
1482
  $caseSensitive: !1
1483
1483
  },
1484
1484
  ...Z()
@@ -1506,7 +1506,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1506
1506
  }, de = () => {
1507
1507
  s.value = 0, k.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
1508
1508
  };
1509
- ue(() => E.value.length, (g, N) => {
1509
+ ue(() => U.value.length, (g, N) => {
1510
1510
  g && !N && oe();
1511
1511
  }), We(() => {
1512
1512
  a.selectOnly && oe();
@@ -1548,9 +1548,9 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1548
1548
  var m, T;
1549
1549
  return [
1550
1550
  B("div", ho, [
1551
- L(Ce, U({
1552
- modelValue: E.value,
1553
- "onUpdate:modelValue": N[0] || (N[0] = (F) => E.value = F)
1551
+ L(Ce, E({
1552
+ modelValue: U.value,
1553
+ "onUpdate:modelValue": N[0] || (N[0] = (F) => U.value = F)
1554
1554
  }, {
1555
1555
  property: {
1556
1556
  type: "string",
@@ -1564,7 +1564,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1564
1564
  onEndReached: h
1565
1565
  }, {
1566
1566
  default: y(() => [
1567
- (t(!0), l(P, null, H(f.value, (F) => (t(), V(De, U({ ref_for: !0 }, {
1567
+ (t(!0), l(P, null, H(f.value, (F) => (t(), V(De, E({ ref_for: !0 }, {
1568
1568
  item: F,
1569
1569
  indexes: e(i),
1570
1570
  property: g.property
@@ -1576,7 +1576,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1576
1576
  ]),
1577
1577
  _: 1
1578
1578
  })) : (t(), l("div", $o, [
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)
1579
+ M.value ? (t(), l("div", go, C(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(_).loading.getAll && Object.values(U.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)
1580
1580
  ]))
1581
1581
  ]),
1582
1582
  B("div", Vo, C(e(R)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(R)("of")) + " " + C(I.value.recordsTotal), 1)
@@ -1591,7 +1591,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1591
1591
  var m;
1592
1592
  return [
1593
1593
  "items" in g.property ? (t(), l("div", Oo, [
1594
- (t(!0), l(P, null, H(g.modelValue, (T) => (t(), V(De, U({ ref_for: !0 }, {
1594
+ (t(!0), l(P, null, H(g.modelValue, (T) => (t(), V(De, E({ ref_for: !0 }, {
1595
1595
  item: T,
1596
1596
  indexes: e(i),
1597
1597
  property: g.property,
@@ -1601,7 +1601,7 @@ const De = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), ho = { cla
1601
1601
  key: `selected-${T._id}`,
1602
1602
  "onUpdate:modelValue": ae
1603
1603
  }), null, 16))), 128))
1604
- ])) : (m = g.modelValue) != null && m._id ? (t(), V(De, U({ key: 1 }, {
1604
+ ])) : (m = g.modelValue) != null && m._id ? (t(), V(De, E({ key: 1 }, {
1605
1605
  item: g.modelValue,
1606
1606
  indexes: e(i),
1607
1607
  property: e(o),
@@ -1742,7 +1742,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1742
1742
  }), v = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), k = (m) => {
1743
1743
  const T = fe(m, n[m]);
1744
1744
  return n[m] && he(m, n[m]), T;
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");
1745
+ }, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), I = k("formComponents") || {}, s = k("propertyComponents") || {}, M = k("omitFormHeader"), U = k("omitInputLabels"), Z = k("innerInputLabel");
1746
1746
  u && he(ze, u), he("searchOnly", n.searchOnly);
1747
1747
  const h = (m) => i.value ? Object.entries(i.value).filter(([T, F]) => !F.noForm && m([
1748
1748
  T,
@@ -1814,7 +1814,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1814
1814
  "form__field--form": "properties" in q
1815
1815
  })
1816
1816
  }, [
1817
- (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(E) && !e(Z) ? (t(), l("label", jo, [
1817
+ (!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(U) && !e(Z) ? (t(), l("label", jo, [
1818
1818
  B("div", {
1819
1819
  class: W({
1820
1820
  "form__field-label": !0,
@@ -1827,7 +1827,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1827
1827
  innerHTML: q.hint
1828
1828
  }, null, 8, qo)) : b("", !0)
1829
1829
  ])) : b("", !0),
1830
- m.$slots[`field-${S}`] ? A(m.$slots, `field-${S}`, U({
1830
+ m.$slots[`field-${S}`] ? A(m.$slots, `field-${S}`, E({
1831
1831
  key: 1,
1832
1832
  ref_for: !0
1833
1833
  }, {
@@ -1835,7 +1835,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1835
1835
  property: q,
1836
1836
  propertyName: S,
1837
1837
  modelValue: m.modelValue
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({
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]), E({
1839
1839
  key: 2,
1840
1840
  modelValue: m.modelValue[S],
1841
1841
  "onUpdate:modelValue": (x) => m.modelValue[S] = x,
@@ -1855,7 +1855,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1855
1855
  onInput: (x) => o("input", S),
1856
1856
  onChange: T[1] || (T[1] = (x) => o("change", x))
1857
1857
  }, [
1858
- L(Ce, U({
1858
+ L(Ce, E({
1859
1859
  modelValue: m.modelValue[S].$gte,
1860
1860
  "onUpdate:modelValue": (x) => m.modelValue[S].$gte = x,
1861
1861
  ref_for: !0
@@ -1863,7 +1863,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1863
1863
  property: q,
1864
1864
  propertyName: S
1865
1865
  }), null, 16, ["modelValue", "onUpdate:modelValue"]),
1866
- L(Ce, U({
1866
+ L(Ce, E({
1867
1867
  modelValue: m.modelValue[S].$lte,
1868
1868
  "onUpdate:modelValue": (x) => m.modelValue[S].$lte = x,
1869
1869
  ref_for: !0
@@ -1872,7 +1872,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1872
1872
  propertyName: S
1873
1873
  }), null, 16, ["modelValue", "onUpdate:modelValue"])
1874
1874
  ], 40, Ro)) : "type" in q && q.type === "boolean" && m.searchOnly ? (t(), l("div", Lo, [
1875
- L(Xe, U({ ref_for: !0 }, {
1875
+ L(Xe, E({ ref_for: !0 }, {
1876
1876
  property: q,
1877
1877
  propertyName: S
1878
1878
  }, {
@@ -1926,7 +1926,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1926
1926
  }, 1032, ["onClick"])), [
1927
1927
  [F]
1928
1928
  ]),
1929
- (t(), V(be(e(pt)(q, e(I))), U({
1929
+ (t(), V(be(e(pt)(q, e(I))), E({
1930
1930
  modelValue: m.modelValue[S][we],
1931
1931
  "onUpdate:modelValue": (Te) => m.modelValue[S][we] = Te,
1932
1932
  ref_for: !0
@@ -1946,7 +1946,7 @@ const Io = /* @__PURE__ */ Q(Ao, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r
1946
1946
  ]);
1947
1947
  }), 128))
1948
1948
  ])) : b("", !0)
1949
- ])) : m.modelValue ? J((t(), V(be(e(pt)(q, e(I))), U({
1949
+ ])) : m.modelValue ? J((t(), V(be(e(pt)(q, e(I))), E({
1950
1950
  key: 6,
1951
1951
  modelValue: m.modelValue[S],
1952
1952
  "onUpdate:modelValue": (x) => m.modelValue[S] = x,
@@ -2037,7 +2037,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2037
2037
  }, 8, ["disabled"])
2038
2038
  ]),
2039
2039
  default: y(() => [
2040
- L(He, U({
2040
+ L(He, E({
2041
2041
  modelValue: e(n).filters,
2042
2042
  "onUpdate:modelValue": d[0] || (d[0] = ($) => e(n).filters = $)
2043
2043
  }, {
@@ -2055,6 +2055,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2055
2055
  individualActions: {},
2056
2056
  collection: {},
2057
2057
  form: {},
2058
+ float: { type: Boolean },
2058
2059
  visible: { default: !0 },
2059
2060
  modelValue: {},
2060
2061
  readOnly: { type: Boolean },
@@ -2085,13 +2086,13 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2085
2086
  k === null && n("update:visible", !1);
2086
2087
  }), (k, f) => {
2087
2088
  const I = ne("clickable");
2088
- return t(), V(Se, {
2089
- "model-value": k.visible,
2089
+ return t(), V(Se, E({
2090
+ modelValue: k.visible,
2090
2091
  loading: e(u).loading.get,
2091
- onOverlayClick: i
2092
- }, ce({
2092
+ float: k.float
2093
+ }, { onOverlayClick: i }), ce({
2093
2094
  extra: y(() => [
2094
- k.individualActions ? (t(), V(Ie, U({ key: 0 }, {
2095
+ k.individualActions ? (t(), V(Ie, E({ key: 0 }, {
2095
2096
  subject: e(u).item,
2096
2097
  actions: k.individualActions.filter(({ action: s }) => s !== "spawnEdit"),
2097
2098
  overlayLayer: 60
@@ -2114,7 +2115,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2114
2115
  }, 16)) : b("", !0)
2115
2116
  ]),
2116
2117
  default: y(() => [
2117
- L(He, U({
2118
+ L(He, E({
2118
2119
  modelValue: e(u).item,
2119
2120
  "onUpdate:modelValue": f[0] || (f[0] = (s) => e(u).item = s)
2120
2121
  }, {
@@ -2149,7 +2150,8 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2149
2150
  k.readOnly ? void 0 : {
2150
2151
  name: "footer",
2151
2152
  fn: y(() => [
2152
- L(_e, {
2153
+ k.float ? (t(), V(_e, {
2154
+ key: 0,
2153
2155
  variant: "transparent",
2154
2156
  onClick: i
2155
2157
  }, {
@@ -2157,7 +2159,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2157
2159
  D(C(e($)("action.cancel", { capitalize: !0 })), 1)
2158
2160
  ]),
2159
2161
  _: 1
2160
- }),
2162
+ })) : b("", !0),
2161
2163
  L(_e, {
2162
2164
  large: "",
2163
2165
  disabled: !e(u).isInsertReady || e(u).loading.get,
@@ -2172,7 +2174,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2172
2174
  ]),
2173
2175
  key: "1"
2174
2176
  }
2175
- ]), 1032, ["model-value", "loading"]);
2177
+ ]), 1040);
2176
2178
  };
2177
2179
  }
2178
2180
  }), ht = (p, r) => {
@@ -2241,8 +2243,8 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2241
2243
  var s;
2242
2244
  const I = (s = a.layout) == null ? void 0 : s.actions;
2243
2245
  return !o.value.xl || !I || !a.actions ? [] : a.actions.filter((M) => {
2244
- const E = I[M.action];
2245
- return E && $(E, f);
2246
+ const U = I[M.action];
2247
+ return U && $(U, f);
2246
2248
  });
2247
2249
  }, v = (f) => {
2248
2250
  var s;
@@ -2250,24 +2252,24 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2250
2252
  return [];
2251
2253
  const I = (s = a.layout) == null ? void 0 : s.actions;
2252
2254
  return !o.value.xl || !I ? a.actions : a.actions.filter((M) => {
2253
- const E = I[M.action];
2255
+ const U = I[M.action];
2254
2256
  if (M.roles) {
2255
2257
  const Z = re("user");
2256
2258
  if (!bt(M.roles, Z.currentUser.roles))
2257
2259
  return !1;
2258
2260
  }
2259
- return !E || !$(E, f);
2261
+ return !U || !$(U, f);
2260
2262
  });
2261
2263
  }, k = (f, I) => {
2262
- var E, Z;
2263
- const s = [], M = (Z = (E = a.layout) == null ? void 0 : E.actions) == null ? void 0 : Z[I.action];
2264
+ var U, Z;
2265
+ const s = [], M = (Z = (U = a.layout) == null ? void 0 : U.actions) == null ? void 0 : Z[I.action];
2264
2266
  return M != null && M.if && (Qe(
2265
2267
  f,
2266
2268
  M.if
2267
2269
  ).satisfied || s.push("display: none;")), s.join("");
2268
2270
  };
2269
2271
  return (f, I) => {
2270
- var M, E, Z;
2272
+ var M, U, Z;
2271
2273
  const s = ne("clickable");
2272
2274
  return d.value > 0 || f.$slots.thead ? (t(), l("table", Jo, [
2273
2275
  f.$slots.thead ? (t(), l("thead", Zo, [
@@ -2313,7 +2315,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2313
2315
  }, [
2314
2316
  B("div", sa, C(te.description || e(R)(w)), 1),
2315
2317
  `row-${w}` in f.$slots ? (t(), l("div", ia, [
2316
- A(f.$slots, `row-${w}`, U({ ref_for: !0 }, {
2318
+ A(f.$slots, `row-${w}`, E({ ref_for: !0 }, {
2317
2319
  store: e(u),
2318
2320
  column: w,
2319
2321
  property: te,
@@ -2402,7 +2404,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2402
2404
  ]),
2403
2405
  _: 2
2404
2406
  }, 1032, ["icon", "style", "onClick"]))), 128)),
2405
- v(h).length > 0 ? (t(), V(Ie, U({
2407
+ v(h).length > 0 ? (t(), V(Ie, E({
2406
2408
  key: 0,
2407
2409
  ref_for: !0
2408
2410
  }, {
@@ -2445,7 +2447,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2445
2447
  ]),
2446
2448
  _: 2
2447
2449
  }, 1032, ["onClick"]))), 128)),
2448
- v(h).length > 0 ? (t(), V(Ie, U({
2450
+ v(h).length > 0 ? (t(), V(Ie, E({
2449
2451
  key: 0,
2450
2452
  ref_for: !0
2451
2453
  }, {
@@ -2469,7 +2471,7 @@ const He = /* @__PURE__ */ Q(Wo, [["__scopeId", "data-v-e9376cc1"]]), Yo = /* @_
2469
2471
  }), 128))
2470
2472
  ])),
2471
2473
  B("tfoot", null, [
2472
- f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (t(), l("tr", Ca, [
2474
+ f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((U = f.rows) != null && U.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (t(), l("tr", Ca, [
2473
2475
  B("td", {
2474
2476
  colspan: d.value + 1
2475
2477
  }, [
@@ -2502,7 +2504,7 @@ const Ba = /* @__PURE__ */ Q(Ia, [["__scopeId", "data-v-89303bb6"]]), Sa = /* @_
2502
2504
  });
2503
2505
  return (c, u) => (t(), l("div", null, [
2504
2506
  c.$slots.inner ? A(c.$slots, "inner", { key: 0 }) : b("", !0),
2505
- e(a).properties ? (t(), V(Ba, U({ key: 1 }, o.value, {
2507
+ e(a).properties ? (t(), V(Ba, E({ key: 1 }, o.value, {
2506
2508
  key: e(a).$id
2507
2509
  }), ce({ _: 2 }, [
2508
2510
  H(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
@@ -2561,7 +2563,7 @@ const Ta = /* @__PURE__ */ Q(wa, [["__scopeId", "data-v-4839c834"]]), ja = { key
2561
2563
  actions: y(() => {
2562
2564
  var $;
2563
2565
  return [
2564
- ($ = c.individualActions) != null && $.length ? (t(), V(Ie, U({
2566
+ ($ = c.individualActions) != null && $.length ? (t(), V(Ie, E({
2565
2567
  key: 0,
2566
2568
  ref_for: !0
2567
2569
  }, {
@@ -2670,8 +2672,8 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2670
2672
  Xo(s, {
2671
2673
  persistInQuery: !u.noQueryPersistence
2672
2674
  });
2673
- const M = Ke(), E = u.action ? e(u.action) : Lt(s, d, M);
2674
- o.value = E[0], c.value = E[1];
2675
+ const M = Ke(), U = u.action ? e(u.action) : Lt(s, d, M);
2676
+ o.value = U[0], c.value = U[1];
2675
2677
  const Z = ee(0), h = ee(!1), G = async (O) => {
2676
2678
  s.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || s.$filters), Object.assign(s.activeFilters, s.filtersPreset);
2677
2679
  const g = {
@@ -2830,7 +2832,7 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2830
2832
  ]), 1032, ["visible", "collection", "individual-actions"])) : b("", !0),
2831
2833
  !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, [
2832
2834
  e(s).description.search ? (t(), l("div", za, [
2833
- L(Ce, U({
2835
+ L(Ce, E({
2834
2836
  modelValue: e(s).textQuery,
2835
2837
  "onUpdate:modelValue": g[3] || (g[3] = (j) => e(s).textQuery = j)
2836
2838
  }, {
@@ -2952,7 +2954,7 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2952
2954
  ])) : b("", !0),
2953
2955
  J((t(), l("div", null, [
2954
2956
  e(s).itemsCount === 0 && !e(s).loading.getAll && h.value && (e(w) || O.$slots.empty) ? (t(), l("div", Ua, [
2955
- e(w) ? (t(), V(be(e(w)), pe(U({ key: 0 }, {
2957
+ e(w) ? (t(), V(be(e(w)), pe(E({ key: 0 }, {
2956
2958
  collection: e(s).$id
2957
2959
  })), {
2958
2960
  default: y(() => [
@@ -2971,12 +2973,12 @@ const _t = /* @__PURE__ */ Q(Ra, [["__scopeId", "data-v-11c581da"]]), La = (p) =
2971
2973
  })) : b("", !0)
2972
2974
  ]),
2973
2975
  _: 1
2974
- }, 16)) : A(O.$slots, "empty", pe(U({ key: 1 }, {
2976
+ }, 16)) : A(O.$slots, "empty", pe(E({ key: 1 }, {
2975
2977
  collection: e(s).$id
2976
2978
  })), void 0, !0)
2977
- ])) : O.$slots.component ? A(O.$slots, "component", pe(U({ key: 1 }, {
2979
+ ])) : O.$slots.component ? A(O.$slots, "component", pe(E({ key: 1 }, {
2978
2980
  store: e(s)
2979
- })), void 0, !0) : (t(), V(be(e(La)(((S = O.layout) == null ? void 0 : S.name) || e(s).$currentLayout)), U({ key: 2 }, {
2981
+ })), void 0, !0) : (t(), V(be(e(La)(((S = O.layout) == null ? void 0 : S.name) || e(s).$currentLayout)), E({ key: 2 }, {
2980
2982
  individualActions: de.value,
2981
2983
  layoutOptions: ((q = O.layout) == null ? void 0 : q.options) || e(s).layout.options,
2982
2984
  componentProps: O.componentProps
@@ -3083,7 +3085,7 @@ const Wa = /* @__PURE__ */ Q(Ga, [["__scopeId", "data-v-ee4328ae"]]), Ya = { cla
3083
3085
  onAnimationend: n[0] || (n[0] = (c) => e(r).$actions.popToast()),
3084
3086
  onClick: n[1] || (n[1] = (c) => e(r).$actions.popToast(a.itr))
3085
3087
  }, [
3086
- L(Y, U(
3088
+ L(Y, E(
3087
3089
  a.icon ? { icon: a.icon } : { icon: "warning-circle" },
3088
3090
  { style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
3089
3091
  ), null, 16),
@@ -3130,7 +3132,7 @@ const Ja = /* @__PURE__ */ Q(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["inn
3130
3132
  _: 3
3131
3133
  })),
3132
3134
  A(n.$slots, "default", {}, void 0, !0),
3133
- L(Se, U({
3135
+ L(Se, E({
3134
3136
  modelValue: e(r).modal.visible,
3135
3137
  "onUpdate:modelValue": o[0] || (o[0] = (u) => e(r).modal.visible = u),
3136
3138
  float: "",
@@ -3149,14 +3151,14 @@ const Ja = /* @__PURE__ */ Q(Xa, [["__scopeId", "data-v-606d47bf"]]), Za = ["inn
3149
3151
  ]),
3150
3152
  _: 1
3151
3153
  }, 16, ["modelValue"]),
3152
- e(r).prompt.visible ? (t(), V(Wa, pe(U({ key: 0 }, e(r).prompt)), {
3154
+ e(r).prompt.visible ? (t(), V(Wa, pe(E({ key: 0 }, e(r).prompt)), {
3153
3155
  default: y(() => [
3154
3156
  D(C(e(r).prompt.body), 1)
3155
3157
  ]),
3156
3158
  _: 1
3157
3159
  }, 16)) : b("", !0),
3158
3160
  B("div", Pa, [
3159
- (t(!0), l(P, null, H(e(r).toasts, (u) => (t(), V(Ja, U({ ref_for: !0 }, u, {
3161
+ (t(!0), l(P, null, H(e(r).toasts, (u) => (t(), V(Ja, E({ ref_for: !0 }, u, {
3160
3162
  key: `toast-${u.itr}`
3161
3163
  }), {
3162
3164
  default: y(() => [
@@ -3391,7 +3393,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3391
3393
  {
3392
3394
  path: "signin",
3393
3395
  name: "/user/signin",
3394
- component: () => import("./signin-c2dc28d8.js"),
3396
+ component: () => import("./signin-4e6cf45d.js"),
3395
3397
  meta: {
3396
3398
  title: "Autenticação"
3397
3399
  }
@@ -3399,7 +3401,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3399
3401
  {
3400
3402
  path: "signup",
3401
3403
  name: "/user/signup",
3402
- component: () => import("./signup-91da9fd0.js"),
3404
+ component: () => import("./signup-2725cba2.js"),
3403
3405
  meta: {
3404
3406
  title: "Registro"
3405
3407
  }
@@ -3407,7 +3409,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3407
3409
  {
3408
3410
  path: "activation",
3409
3411
  name: "/user/activation",
3410
- component: () => import("./activation-bcc630ef.js"),
3412
+ component: () => import("./activation-0305ef50.js"),
3411
3413
  meta: {
3412
3414
  title: "Ativação"
3413
3415
  }
@@ -3429,7 +3431,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3429
3431
  name: "/dashboard/:collection",
3430
3432
  props: !0,
3431
3433
  components: {
3432
- default: () => import("./index-d639faa0.js"),
3434
+ default: () => import("./index-b172110d.js"),
3433
3435
  topbar: () => Promise.resolve().then(() => vl)
3434
3436
  },
3435
3437
  meta: {
@@ -3441,7 +3443,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3441
3443
  name: "/dashboard/:collection/:id",
3442
3444
  props: !0,
3443
3445
  components: {
3444
- default: () => import("./_id_-dc42e9ad.js")
3446
+ default: () => import("./_id_-2095a2d8.js")
3445
3447
  },
3446
3448
  meta: {
3447
3449
  title: "%viewTitle%"
@@ -3459,7 +3461,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3459
3461
  children: [
3460
3462
  {
3461
3463
  path: "profile",
3462
- component: () => import("./index-0bc00691.js"),
3464
+ component: () => import("./index-e90638e8.js"),
3463
3465
  meta: {
3464
3466
  title: "Meu perfil",
3465
3467
  icon: "user-square"
@@ -3468,7 +3470,7 @@ const fl = /* @__PURE__ */ Q(ml, [["__scopeId", "data-v-f0a45677"]]), vl = /* @_
3468
3470
  {
3469
3471
  path: "changepass",
3470
3472
  name: "/dashboard/user/changepass",
3471
- component: () => import("./index-f922456e.js"),
3473
+ component: () => import("./index-a6e389ed.js"),
3472
3474
  meta: {
3473
3475
  title: "Mudar senha",
3474
3476
  icon: "lock"
@@ -2,7 +2,7 @@ import { defineComponent as c, ref as m, openBlock as u, createBlock as _, withC
2
2
  import { useRouter as v } from "vue-router";
3
3
  import { useI18n as x } from "@aeria-ui/i18n";
4
4
  import { useStore as n } from "@aeria-ui/state-management";
5
- import { h as V, _ as k, a as y } from "./index-c6ea2c43.js";
5
+ import { h as V, _ as k, a as y } from "./index-441f7289.js";
6
6
  import "@aeria-ui/core";
7
7
  import "@aeriajs/common";
8
8
  import "@aeria-ui/utils";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, openBlock as t, createBlock as r, createSlots as i, withCtx as n, renderSlot as c, createCommentVNode as l } from "vue";
2
- import { d as m } from "./index-c6ea2c43.js";
2
+ import { d as m } from "./index-441f7289.js";
3
3
  import "@aeria-ui/i18n";
4
4
  import "@aeria-ui/core";
5
5
  import "@aeriajs/common";
@@ -2,7 +2,7 @@ import { defineComponent as b, ref as h, resolveDirective as A, openBlock as u,
2
2
  import { useRouter as P } from "vue-router";
3
3
  import { useStore as v } from "@aeria-ui/state-management";
4
4
  import { STORAGE_NAMESPACE as y } from "@aeria-ui/core";
5
- import { f as z, g as E, b as f, h as O, a as x, A as B, i as U } from "./index-c6ea2c43.js";
5
+ import { f as z, g as E, b as f, h as O, a as x, A as B, i as U } from "./index-441f7289.js";
6
6
  import "@aeria-ui/i18n";
7
7
  import "@aeriajs/common";
8
8
  import "@aeria-ui/utils";
@@ -2,7 +2,7 @@ import { defineComponent as T, inject as v, resolveDirective as V, openBlock as
2
2
  import { INSTANCE_VARS_SYMBOL as w, STORAGE_NAMESPACE as x } from "@aeria-ui/core";
3
3
  import { useStore as y } from "@aeria-ui/state-management";
4
4
  import { useRouter as N } from "vue-router";
5
- import { A as E, a as h } from "./index-c6ea2c43.js";
5
+ import { A as E, a as h } from "./index-441f7289.js";
6
6
  import "@aeria-ui/i18n";
7
7
  import "@aeriajs/common";
8
8
  import "@aeria-ui/utils";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as h, withAsyncContext as A, ref as p, resolveDirective as C, openBlock as b, createElementBlock as $, Fragment as x, createElementVNode as c, toDisplayString as i, withDirectives as B, createBlock as S, unref as g, withCtx as r, createTextVNode as m, createVNode as n, mergeProps as U, withModifiers as D } from "vue";
2
2
  import { useRouter as E } from "vue-router";
3
3
  import { useStore as V } from "@aeria-ui/state-management";
4
- import { b as M, A as N, _ as F, c as P, a as j } from "./index-c6ea2c43.js";
4
+ import { b as M, A as N, _ as F, c as P, a as j } from "./index-441f7289.js";
5
5
  import "@aeria-ui/i18n";
6
6
  import "@aeria-ui/core";
7
7
  import "@aeriajs/common";
package/dist/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as p, C as m, k as u, l as c, a as d, m as l, c as P, n as b, d as C, F as h, v as B, p as F, A as x, o as I, b as T, q as f, w as g, e as w, r as M, g as S, x as k, s as y, h as G, _ as R, f as j, D as q, y as v, z, B as D, t as E, u as H, E as O, H as _, G as J } from "./index-c6ea2c43.js";
1
+ import { j as p, C as m, k as u, l as c, a as d, m as l, c as P, n as b, d as C, F as h, v as B, p as F, A as x, o as I, b as T, q as f, w as g, e as w, r as M, g as S, x as k, s as y, h as G, _ as R, f as j, D as q, y as v, z, B as D, t as E, u as H, E as O, H as _, G as J } from "./index-441f7289.js";
2
2
  import "vue";
3
3
  import "@aeria-ui/i18n";
4
4
  import "@aeria-ui/core";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aeria-ui/ui",
3
3
  "type": "module",
4
- "version": "0.0.132",
4
+ "version": "0.0.133",
5
5
  "description": "",
6
6
  "keywords": [],
7
7
  "author": "",