@stonecrop/aform 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/aform.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, mergeModels as z, useModel as q, createElementBlock as b, openBlock as g, createElementVNode as c, withDirectives as M, toDisplayString as I, vModelCheckbox as Pe, vShow as U, resolveComponent as Fe, createBlock as le, withCtx as Re, useTemplateRef as De, vModelText as H, watch as F, getCurrentScope as Ee, onScopeDispose as Me, toRef as Oe, readonly as Ie, ref as D, customRef as He, computed as T, watchEffect as Ae, toValue as w, unref as S, shallowRef as G, reactive as Be, normalizeClass as X, withKeys as R, Fragment as j, renderList as Y, withModifiers as Te, onMounted as ae, onBeforeUnmount as qe, getCurrentInstance as Ue, nextTick as We, resolveDynamicComponent as Ne, mergeProps as je, renderSlot as Ye, createTextVNode as Ce, createCommentVNode as se, createVNode as Ke } from "vue";
1
+ import { defineComponent as C, mergeModels as z, useModel as q, createElementBlock as b, openBlock as g, createElementVNode as c, withDirectives as M, toDisplayString as I, vModelCheckbox as Pe, vShow as U, resolveComponent as Fe, createBlock as le, withCtx as Re, useTemplateRef as Ee, vModelText as H, watch as F, getCurrentScope as Me, onScopeDispose as Ie, toRef as Oe, readonly as Ae, ref as D, customRef as He, computed as T, watchEffect as ae, toValue as w, unref as S, shallowRef as G, reactive as Be, normalizeClass as X, withKeys as R, Fragment as j, renderList as Y, withModifiers as Te, onMounted as se, onBeforeUnmount as qe, getCurrentInstance as Ue, nextTick as We, resolveDynamicComponent as Ne, mergeProps as je, renderSlot as Ye, createTextVNode as Ce, createCommentVNode as re, createVNode as Ke } from "vue";
2
2
  import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["for"], Je = { class: "aform_checkbox-container aform_input-field" }, Qe = ["id", "readonly", "required"], Xe = ["innerHTML"], Ze = /* @__PURE__ */ C({
3
3
  __name: "ACheckbox",
4
4
  props: /* @__PURE__ */ z({
@@ -41,12 +41,12 @@ import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["f
41
41
  ])
42
42
  ]));
43
43
  }
44
- }), _ = (e, t) => {
44
+ }), L = (e, t) => {
45
45
  const n = e.__vccOpts || e;
46
46
  for (const [o, r] of t)
47
47
  n[o] = r;
48
48
  return n;
49
- }, et = /* @__PURE__ */ _(Ze, [["__scopeId", "data-v-aaa1a4c4"]]), tt = /* @__PURE__ */ C({
49
+ }, et = /* @__PURE__ */ L(Ze, [["__scopeId", "data-v-aaa1a4c4"]]), tt = /* @__PURE__ */ C({
50
50
  __name: "AComboBox",
51
51
  props: ["event", "cellData", "tableID"],
52
52
  setup(e) {
@@ -89,7 +89,7 @@ import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["f
89
89
  const t = q(e, "modelValue", {
90
90
  // format the date to be compatible with the native input datepicker
91
91
  set: (r) => new Date(r).toISOString().split("T")[0]
92
- }), n = De("date"), o = () => {
92
+ }), n = Ee("date"), o = () => {
93
93
  n.value && "showPicker" in HTMLInputElement.prototype && n.value.showPicker();
94
94
  };
95
95
  return (r, u) => (g(), b("div", null, [
@@ -112,12 +112,12 @@ import './assets/index.css';const ze = { class: "aform_form-element" }, Ge = ["f
112
112
  ])
113
113
  ]));
114
114
  }
115
- }), st = /* @__PURE__ */ _(at, [["__scopeId", "data-v-455d9e30"]]);
116
- function re(e, t) {
117
- return Ee() ? (Me(e, t), !0) : !1;
115
+ }), st = /* @__PURE__ */ L(at, [["__scopeId", "data-v-455d9e30"]]);
116
+ function ie(e, t) {
117
+ return Me() ? (Ie(e, t), !0) : !1;
118
118
  }
119
119
  // @__NO_SIDE_EFFECTS__
120
- function me() {
120
+ function ve() {
121
121
  const e = /* @__PURE__ */ new Set(), t = (u) => {
122
122
  e.delete(u);
123
123
  };
@@ -125,7 +125,7 @@ function me() {
125
125
  on: (u) => {
126
126
  e.add(u);
127
127
  const s = () => t(u);
128
- return re(s), { off: s };
128
+ return ie(s), { off: s };
129
129
  },
130
130
  off: t,
131
131
  trigger: (...u) => Promise.all(Array.from(e).map((s) => s(...u))),
@@ -141,7 +141,7 @@ const rt = Object.prototype.toString, it = (e) => rt.call(e) === "[object Object
141
141
  function ct(...e) {
142
142
  if (e.length !== 1) return Oe(...e);
143
143
  const t = e[0];
144
- return typeof t == "function" ? Ie(He(() => ({
144
+ return typeof t == "function" ? Ae(He(() => ({
145
145
  get: t,
146
146
  set: N
147
147
  }))) : D(t);
@@ -182,9 +182,9 @@ function ee(...e) {
182
182
  }, { flush: "post" }), s = () => {
183
183
  u(), n();
184
184
  };
185
- return re(n), s;
185
+ return ie(n), s;
186
186
  }
187
- function ve(e, t, n = {}) {
187
+ function pe(e, t, n = {}) {
188
188
  const { window: o = Se, ignore: r = [], capture: u = !0, detectIframe: s = !1, controls: l = !1 } = n;
189
189
  if (!o) return l ? {
190
190
  stop: N,
@@ -263,7 +263,7 @@ function vt(e) {
263
263
  return t.files;
264
264
  }
265
265
  function pt(e = {}) {
266
- const { document: t = ft } = e, n = D(vt(e.initialFiles)), { on: o, trigger: r } = /* @__PURE__ */ me(), { on: u, trigger: s } = /* @__PURE__ */ me(), l = T(() => {
266
+ const { document: t = ft } = e, n = D(vt(e.initialFiles)), { on: o, trigger: r } = /* @__PURE__ */ ve(), { on: u, trigger: s } = /* @__PURE__ */ ve(), l = T(() => {
267
267
  var v;
268
268
  const d = (v = O(e.input)) !== null && v !== void 0 ? v : t ? t.createElement("input") : void 0;
269
269
  return d && (d.type = "file", d.onchange = (p) => {
@@ -286,10 +286,10 @@ function pt(e = {}) {
286
286
  };
287
287
  i(p), w(p.reset) && a(), d.click();
288
288
  };
289
- return Ae(() => {
289
+ return ae(() => {
290
290
  i(e);
291
291
  }), {
292
- files: Ie(n),
292
+ files: Ae(n),
293
293
  open: f,
294
294
  reset: a,
295
295
  onCancel: u,
@@ -318,7 +318,7 @@ function ht(e, t = !1) {
318
318
  const s = te(w(e));
319
319
  !s || !n.value || (s.style.overflow = o, ne.delete(s), n.value = !1);
320
320
  };
321
- return re(u), T({
321
+ return ie(u), T({
322
322
  get() {
323
323
  return n.value;
324
324
  },
@@ -331,10 +331,10 @@ const oe = /* @__PURE__ */ new WeakMap(), gt = {
331
331
  mounted(e, t) {
332
332
  const n = !t.modifiers.bubble;
333
333
  let o;
334
- if (typeof t.value == "function") o = ve(e, t.value, { capture: n });
334
+ if (typeof t.value == "function") o = pe(e, t.value, { capture: n });
335
335
  else {
336
336
  const [r, u] = t.value;
337
- o = ve(e, r, Object.assign({ capture: n }, u));
337
+ o = pe(e, r, Object.assign({ capture: n }, u));
338
338
  }
339
339
  oe.set(e, o);
340
340
  },
@@ -454,9 +454,9 @@ const bt = { class: "input-wrapper" }, wt = {
454
454
  [S(gt), o]
455
455
  ]);
456
456
  }
457
- }), Et = /* @__PURE__ */ _(Dt, [["__scopeId", "data-v-31a6db8c"]]);
458
- function ie(e, t) {
459
- return Ee() ? (Me(e, t), !0) : !1;
457
+ }), Et = /* @__PURE__ */ L(Dt, [["__scopeId", "data-v-31a6db8c"]]);
458
+ function ue(e, t) {
459
+ return Me() ? (Ie(e, t), !0) : !1;
460
460
  }
461
461
  const Mt = typeof window < "u" && typeof document < "u";
462
462
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
@@ -498,24 +498,24 @@ function K(...e) {
498
498
  }, { flush: "post" }), s = () => {
499
499
  u(), n();
500
500
  };
501
- return ie(n), s;
501
+ return ue(n), s;
502
502
  }
503
503
  // @__NO_SIDE_EFFECTS__
504
504
  function St() {
505
505
  const e = G(!1), t = Ue();
506
- return t && ae(() => {
506
+ return t && se(() => {
507
507
  e.value = !0;
508
508
  }, t), e;
509
509
  }
510
510
  // @__NO_SIDE_EFFECTS__
511
- function _t(e) {
511
+ function Lt(e) {
512
512
  const t = /* @__PURE__ */ St();
513
513
  return T(() => (t.value, !!e()));
514
514
  }
515
- function Lt(e, t, n = {}) {
515
+ function _t(e, t, n = {}) {
516
516
  const { window: o = W, ...r } = n;
517
517
  let u;
518
- const s = /* @__PURE__ */ _t(() => o && "MutationObserver" in o), l = () => {
518
+ const s = /* @__PURE__ */ Lt(() => o && "MutationObserver" in o), l = () => {
519
519
  u && (u.disconnect(), u = void 0);
520
520
  }, a = F(T(() => {
521
521
  const v = Q(w(e)).map(B).filter(It);
@@ -528,7 +528,7 @@ function Lt(e, t, n = {}) {
528
528
  }), i = () => u?.takeRecords(), f = () => {
529
529
  a(), l();
530
530
  };
531
- return ie(f), {
531
+ return ue(f), {
532
532
  isSupported: s,
533
533
  stop: f,
534
534
  takeRecords: i
@@ -540,10 +540,10 @@ function Vt(e, t, n = {}) {
540
540
  let s;
541
541
  const l = (f) => {
542
542
  s?.(), s = f;
543
- }, a = Ae(() => {
543
+ }, a = ae(() => {
544
544
  const f = B(e);
545
545
  if (f) {
546
- const { stop: v } = Lt(r, (d) => {
546
+ const { stop: v } = _t(r, (d) => {
547
547
  d.map((p) => [...p.removedNodes]).flat().some((p) => p === f || p.contains(f)) && t(d);
548
548
  }, {
549
549
  window: o,
@@ -555,7 +555,7 @@ function Vt(e, t, n = {}) {
555
555
  }, { flush: u }), i = () => {
556
556
  a(), l();
557
557
  };
558
- return ie(i), i;
558
+ return ue(i), i;
559
559
  }
560
560
  // @__NO_SIDE_EFFECTS__
561
561
  function Pt(e = {}) {
@@ -609,13 +609,13 @@ function Bt(e, { window: t = W, scrollTarget: n } = {}) {
609
609
  passive: !0
610
610
  }), o;
611
611
  }
612
- const L = (e) => {
612
+ const _ = (e) => {
613
613
  let t = Bt(e).value;
614
614
  return t = t && e.offsetHeight > 0, t;
615
- }, V = (e) => e.tabIndex >= 0, pe = (e) => {
615
+ }, V = (e) => e.tabIndex >= 0, he = (e) => {
616
616
  const t = e.target;
617
- return ue(t);
618
- }, ue = (e) => {
617
+ return ce(t);
618
+ }, ce = (e) => {
619
619
  let t;
620
620
  if (e instanceof HTMLTableCellElement) {
621
621
  const n = e.parentElement?.previousElementSibling;
@@ -627,7 +627,7 @@ const L = (e) => {
627
627
  const n = e.previousElementSibling;
628
628
  n && (t = n);
629
629
  }
630
- return t && (!V(t) || !L(t)) ? ue(t) : t;
630
+ return t && (!V(t) || !_(t)) ? ce(t) : t;
631
631
  }, qt = (e) => {
632
632
  const t = e.target;
633
633
  let n;
@@ -644,11 +644,11 @@ const L = (e) => {
644
644
  r && (n = r);
645
645
  }
646
646
  }
647
- return n && (!V(n) || !L(n)) ? ce(n) : n;
648
- }, he = (e) => {
647
+ return n && (!V(n) || !_(n)) ? de(n) : n;
648
+ }, ge = (e) => {
649
649
  const t = e.target;
650
- return ce(t);
651
- }, ce = (e) => {
650
+ return de(t);
651
+ }, de = (e) => {
652
652
  let t;
653
653
  if (e instanceof HTMLTableCellElement) {
654
654
  const n = e.parentElement?.nextElementSibling;
@@ -660,7 +660,7 @@ const L = (e) => {
660
660
  const n = e.nextElementSibling;
661
661
  n && (t = n);
662
662
  }
663
- return t && (!V(t) || !L(t)) ? ce(t) : t;
663
+ return t && (!V(t) || !_(t)) ? de(t) : t;
664
664
  }, Ut = (e) => {
665
665
  const t = e.target;
666
666
  let n;
@@ -677,45 +677,45 @@ const L = (e) => {
677
677
  r && (n = r);
678
678
  }
679
679
  }
680
- return n && (!V(n) || !L(n)) ? ue(n) : n;
681
- }, ge = (e) => {
682
- const t = e.target;
683
- return de(t);
684
- }, de = (e) => {
685
- let t;
686
- return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!V(t) || !L(t)) ? de(t) : t;
680
+ return n && (!V(n) || !_(n)) ? ce(n) : n;
687
681
  }, ye = (e) => {
688
682
  const t = e.target;
689
683
  return fe(t);
690
684
  }, fe = (e) => {
691
685
  let t;
692
- return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!V(t) || !L(t)) ? fe(t) : t;
686
+ return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!V(t) || !_(t)) ? fe(t) : t;
693
687
  }, be = (e) => {
694
- const t = e.target.parentElement?.firstElementChild;
695
- return t && (!V(t) || !L(t)) ? fe(t) : t;
688
+ const t = e.target;
689
+ return me(t);
690
+ }, me = (e) => {
691
+ let t;
692
+ return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!V(t) || !_(t)) ? me(t) : t;
696
693
  }, we = (e) => {
694
+ const t = e.target.parentElement?.firstElementChild;
695
+ return t && (!V(t) || !_(t)) ? me(t) : t;
696
+ }, ke = (e) => {
697
697
  const t = e.target.parentElement?.lastElementChild;
698
- return t && (!V(t) || !L(t)) ? de(t) : t;
698
+ return t && (!V(t) || !_(t)) ? fe(t) : t;
699
699
  }, J = ["alt", "control", "shift", "meta"], Wt = {
700
700
  ArrowUp: "up",
701
701
  ArrowDown: "down",
702
702
  ArrowLeft: "left",
703
703
  ArrowRight: "right"
704
- }, _e = {
704
+ }, Le = {
705
705
  "keydown.up": (e) => {
706
- const t = pe(e);
706
+ const t = he(e);
707
707
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
708
708
  },
709
709
  "keydown.down": (e) => {
710
- const t = he(e);
710
+ const t = ge(e);
711
711
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
712
712
  },
713
713
  "keydown.left": (e) => {
714
- const t = ge(e);
714
+ const t = ye(e);
715
715
  e.preventDefault(), e.stopPropagation(), t && t.focus();
716
716
  },
717
717
  "keydown.right": (e) => {
718
- const t = ye(e);
718
+ const t = be(e);
719
719
  e.preventDefault(), e.stopPropagation(), t && t.focus();
720
720
  },
721
721
  "keydown.control.up": (e) => {
@@ -727,41 +727,41 @@ const L = (e) => {
727
727
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
728
728
  },
729
729
  "keydown.control.left": (e) => {
730
- const t = be(e);
730
+ const t = we(e);
731
731
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
732
732
  },
733
733
  "keydown.control.right": (e) => {
734
- const t = we(e);
734
+ const t = ke(e);
735
735
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
736
736
  },
737
737
  "keydown.end": (e) => {
738
- const t = we(e);
738
+ const t = ke(e);
739
739
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
740
740
  },
741
741
  "keydown.enter": (e) => {
742
742
  if (e.target instanceof HTMLTableCellElement) {
743
743
  e.preventDefault(), e.stopPropagation();
744
- const t = he(e);
744
+ const t = ge(e);
745
745
  t && t.focus();
746
746
  }
747
747
  },
748
748
  "keydown.shift.enter": (e) => {
749
749
  if (e.target instanceof HTMLTableCellElement) {
750
750
  e.preventDefault(), e.stopPropagation();
751
- const t = pe(e);
751
+ const t = he(e);
752
752
  t && t.focus();
753
753
  }
754
754
  },
755
755
  "keydown.home": (e) => {
756
- const t = be(e);
756
+ const t = we(e);
757
757
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
758
758
  },
759
759
  "keydown.tab": (e) => {
760
- const t = ye(e);
760
+ const t = be(e);
761
761
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
762
762
  },
763
763
  "keydown.shift.tab": (e) => {
764
- const t = ge(e);
764
+ const t = ye(e);
765
765
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
766
766
  }
767
767
  };
@@ -789,11 +789,11 @@ function Nt(e) {
789
789
  }, o = (s) => {
790
790
  const l = t(s);
791
791
  let a = [];
792
- return s.selectors ? a = n(s) : l && (a = Array.from(l.children).filter((i) => V(i) && L(i))), a;
792
+ return s.selectors ? a = n(s) : l && (a = Array.from(l.children).filter((i) => V(i) && _(i))), a;
793
793
  }, r = (s) => (l) => {
794
794
  const a = Wt[l.key] || l.key.toLowerCase();
795
795
  if (J.includes(a)) return;
796
- const i = s.handlers || _e;
796
+ const i = s.handlers || Le;
797
797
  for (const f of Object.keys(i)) {
798
798
  const [v, ...d] = f.split(".");
799
799
  if (v === "keydown" && d.includes(a)) {
@@ -814,7 +814,7 @@ function Nt(e) {
814
814
  }
815
815
  }
816
816
  }, u = [];
817
- ae(() => {
817
+ se(() => {
818
818
  for (const s of e) {
819
819
  const l = t(s), a = o(s), i = r(s), f = l ? [l] : a;
820
820
  for (const v of f) {
@@ -836,7 +836,7 @@ const jt = {
836
836
  }, Yt = {
837
837
  colspan: "5",
838
838
  tabindex: -1
839
- }, Kt = ["onClick", "onKeydown"], zt = 6, ke = 7, Gt = /* @__PURE__ */ C({
839
+ }, Kt = ["onClick", "onKeydown"], zt = 6, xe = 7, Gt = /* @__PURE__ */ C({
840
840
  __name: "ADatePicker",
841
841
  props: {
842
842
  modelValue: { default: /* @__PURE__ */ new Date() },
@@ -844,8 +844,8 @@ const jt = {
844
844
  },
845
845
  emits: ["update:modelValue"],
846
846
  setup(e, { expose: t }) {
847
- const n = q(e, "modelValue"), o = D(new Date(n.value)), r = D(o.value.getMonth()), u = D(o.value.getFullYear()), s = D([]), l = De("datepicker");
848
- ae(async () => {
847
+ const n = q(e, "modelValue"), o = D(new Date(n.value)), r = D(o.value.getMonth()), u = D(o.value.getFullYear()), s = D([]), l = Ee("datepicker");
848
+ se(async () => {
849
849
  a(), await We();
850
850
  const y = document.getElementsByClassName("selectedDate");
851
851
  if (y.length > 0)
@@ -870,7 +870,7 @@ const jt = {
870
870
  const x = /* @__PURE__ */ new Date();
871
871
  if (r.value === x.getMonth())
872
872
  return x.toDateString() === new Date(y).toDateString();
873
- }, k = (y) => new Date(y).toDateString() === new Date(o.value).toDateString(), A = (y, x) => (y - 1) * ke + x, m = (y, x) => s.value[A(y, x)], h = (y) => {
873
+ }, k = (y) => new Date(y).toDateString() === new Date(o.value).toDateString(), A = (y, x) => (y - 1) * xe + x, m = (y, x) => s.value[A(y, x)], h = (y) => {
874
874
  n.value = o.value = new Date(s.value[y]);
875
875
  }, E = T(() => new Date(u.value, r.value, 1).toLocaleDateString(void 0, {
876
876
  year: "numeric",
@@ -881,7 +881,7 @@ const jt = {
881
881
  parent: l,
882
882
  selectors: "td",
883
883
  handlers: {
884
- ..._e,
884
+ ...Le,
885
885
  "keydown.pageup": v,
886
886
  "keydown.shift.pageup": i,
887
887
  "keydown.pagedown": d,
@@ -918,7 +918,7 @@ const jt = {
918
918
  c("td", null, "S")
919
919
  ], -1)),
920
920
  (g(), b(j, null, Y(zt, ($) => c("tr", { key: $ }, [
921
- (g(), b(j, null, Y(ke, (P) => c("td", {
921
+ (g(), b(j, null, Y(xe, (P) => c("td", {
922
922
  ref_for: !0,
923
923
  ref: "celldate",
924
924
  key: A($, P),
@@ -937,7 +937,7 @@ const jt = {
937
937
  ])
938
938
  ], 512));
939
939
  }
940
- }), Jt = /* @__PURE__ */ _(Gt, [["__scopeId", "data-v-056d2b5e"]]), Qt = /* @__PURE__ */ C({
940
+ }), Jt = /* @__PURE__ */ L(Gt, [["__scopeId", "data-v-056d2b5e"]]), Qt = /* @__PURE__ */ C({
941
941
  __name: "CollapseButton",
942
942
  props: {
943
943
  collapsed: { type: Boolean }
@@ -947,7 +947,7 @@ const jt = {
947
947
  class: X(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
948
948
  }, "×", 2));
949
949
  }
950
- }), Xt = /* @__PURE__ */ _(Qt, [["__scopeId", "data-v-6f1c1b45"]]), Zt = { class: "aform" }, en = /* @__PURE__ */ C({
950
+ }), Xt = /* @__PURE__ */ L(Qt, [["__scopeId", "data-v-6f1c1b45"]]), Zt = { class: "aform" }, en = /* @__PURE__ */ C({
951
951
  __name: "AForm",
952
952
  props: {
953
953
  modelValue: {},
@@ -956,7 +956,13 @@ const jt = {
956
956
  },
957
957
  emits: ["update:modelValue"],
958
958
  setup(e, { emit: t }) {
959
- const n = t, o = D(e.data || {}), r = (s) => {
959
+ const n = t, o = D(e.data || {});
960
+ ae(() => {
961
+ e.data && (o.value = e.data, e.modelValue.forEach((s) => {
962
+ s.fieldname && e.data[s.fieldname] !== void 0 && (s.value = e.data[s.fieldname]);
963
+ }));
964
+ });
965
+ const r = (s) => {
960
966
  let l = {};
961
967
  for (const [a, i] of Object.entries(s))
962
968
  ["component", "fieldtype"].includes(a) || (l[a] = i), a === "rows" && i && i.length === 0 && (l.rows = o.value[s.fieldname]);
@@ -984,7 +990,7 @@ const jt = {
984
990
  }, { ref_for: !0 }, r(a)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "readonly"]))), 128))
985
991
  ]));
986
992
  }
987
- }), Le = /* @__PURE__ */ _(en, [["__scopeId", "data-v-da354cb0"]]), tn = /* @__PURE__ */ C({
993
+ }), _e = /* @__PURE__ */ L(en, [["__scopeId", "data-v-82d33d5b"]]), tn = /* @__PURE__ */ C({
988
994
  __name: "AFieldset",
989
995
  props: {
990
996
  schema: {},
@@ -1005,10 +1011,10 @@ const jt = {
1005
1011
  e.collapsible ? (g(), le(Xt, {
1006
1012
  key: 0,
1007
1013
  collapsed: n.value
1008
- }, null, 8, ["collapsed"])) : se("", !0)
1014
+ }, null, 8, ["collapsed"])) : re("", !0)
1009
1015
  ], 32),
1010
1016
  Ye(s.$slots, "default", { collapsed: n.value }, () => [
1011
- M(Ke(Le, {
1017
+ M(Ke(_e, {
1012
1018
  modelValue: r.value,
1013
1019
  "onUpdate:modelValue": l[0] || (l[0] = (a) => r.value = a),
1014
1020
  data: o.value
@@ -1018,7 +1024,7 @@ const jt = {
1018
1024
  ], !0)
1019
1025
  ]));
1020
1026
  }
1021
- }), nn = /* @__PURE__ */ _(tn, [["__scopeId", "data-v-40b2a95d"]]), on = { class: "aform_form-element aform_file-attach aform__grid--full" }, ln = {
1027
+ }), nn = /* @__PURE__ */ L(tn, [["__scopeId", "data-v-40b2a95d"]]), on = { class: "aform_form-element aform_file-attach aform__grid--full" }, ln = {
1022
1028
  key: 0,
1023
1029
  class: "aform_file-attach-feedback"
1024
1030
  }, an = ["disabled"], sn = /* @__PURE__ */ C({
@@ -1037,7 +1043,7 @@ const jt = {
1037
1043
  (g(!0), b(j, null, Y(S(t), (a) => (g(), b("li", {
1038
1044
  key: a.name
1039
1045
  }, I(a.name), 1))), 128))
1040
- ])) : se("", !0),
1046
+ ])) : re("", !0),
1041
1047
  c("button", {
1042
1048
  type: "button",
1043
1049
  class: "aform_form-btn",
@@ -1051,7 +1057,7 @@ const jt = {
1051
1057
  }, "Reset", 8, an)
1052
1058
  ]));
1053
1059
  }
1054
- }), rn = /* @__PURE__ */ _(sn, [["__scopeId", "data-v-b700734f"]]), un = { class: "aform_form-element" }, cn = ["id", "disabled", "required"], dn = ["for"], fn = ["innerHTML"], mn = /* @__PURE__ */ C({
1060
+ }), rn = /* @__PURE__ */ L(sn, [["__scopeId", "data-v-b700734f"]]), un = { class: "aform_form-element" }, cn = ["id", "disabled", "required"], dn = ["for"], fn = ["innerHTML"], mn = /* @__PURE__ */ C({
1055
1061
  __name: "ANumericInput",
1056
1062
  props: /* @__PURE__ */ z({
1057
1063
  schema: {},
@@ -1091,7 +1097,7 @@ const jt = {
1091
1097
  ])
1092
1098
  ]));
1093
1099
  }
1094
- }), xe = {
1100
+ }), De = {
1095
1101
  date: "##/##/####",
1096
1102
  datetime: "####/##/## ##:##",
1097
1103
  time: "##:##",
@@ -1115,7 +1121,7 @@ function pn(e) {
1115
1121
  }
1116
1122
  } else {
1117
1123
  const o = e.instance?.schema?.fieldtype?.toLowerCase();
1118
- o && xe[o] && (t = xe[o]);
1124
+ o && De[o] && (t = De[o]);
1119
1125
  }
1120
1126
  return t;
1121
1127
  }
@@ -1188,7 +1194,7 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
1188
1194
  ])
1189
1195
  ]));
1190
1196
  }
1191
- }), En = { class: "login-container" }, Mn = { class: "account-container" }, In = { class: "account-header" }, An = { id: "account-title" }, Tn = { id: "account-subtitle" }, Cn = { class: "login-form-container" }, $n = { class: "login-form-email aform_form-element" }, Sn = ["disabled"], _n = { class: "login-form-password aform_form-element" }, Ln = ["disabled"], Vn = ["disabled"], Pn = {
1197
+ }), En = { class: "login-container" }, Mn = { class: "account-container" }, In = { class: "account-header" }, An = { id: "account-title" }, Tn = { id: "account-subtitle" }, Cn = { class: "login-form-container" }, $n = { class: "login-form-email aform_form-element" }, Sn = ["disabled"], Ln = { class: "login-form-password aform_form-element" }, _n = ["disabled"], Vn = ["disabled"], Pn = {
1192
1198
  key: 0,
1193
1199
  class: "material-symbols-outlined loading-icon"
1194
1200
  }, Fn = /* @__PURE__ */ C({
@@ -1237,7 +1243,7 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
1237
1243
  [H, o.value]
1238
1244
  ])
1239
1245
  ]),
1240
- c("div", _n, [
1246
+ c("div", Ln, [
1241
1247
  i[3] || (i[3] = c("label", {
1242
1248
  id: "login-password",
1243
1249
  for: "password",
@@ -1250,7 +1256,7 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
1250
1256
  name: "password",
1251
1257
  type: "password",
1252
1258
  disabled: u.value
1253
- }, null, 8, Ln), [
1259
+ }, null, 8, _n), [
1254
1260
  [H, r.value]
1255
1261
  ])
1256
1262
  ]),
@@ -1259,7 +1265,7 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
1259
1265
  disabled: u.value || !o.value || !r.value,
1260
1266
  onClick: l
1261
1267
  }, [
1262
- u.value ? (g(), b("span", Pn, "progress_activity")) : se("", !0),
1268
+ u.value ? (g(), b("span", Pn, "progress_activity")) : re("", !0),
1263
1269
  i[4] || (i[4] = c("span", { id: "login-form-button" }, "Login", -1))
1264
1270
  ], 8, Vn)
1265
1271
  ])
@@ -1271,9 +1277,9 @@ const bn = { class: "aform_form-element" }, wn = ["id", "disabled", "maxlength",
1271
1277
  ])
1272
1278
  ]));
1273
1279
  }
1274
- }), On = /* @__PURE__ */ _(Fn, [["__scopeId", "data-v-d9ffd0a7"]]);
1280
+ }), On = /* @__PURE__ */ L(Fn, [["__scopeId", "data-v-d9ffd0a7"]]);
1275
1281
  function Hn(e) {
1276
- e.component("ACheckbox", et), e.component("ACombobox", tt), e.component("ADate", st), e.component("ADropdown", Et), e.component("ADatePicker", Jt), e.component("AFieldset", nn), e.component("AFileAttach", rn), e.component("AForm", Le), e.component("ANumericInput", mn), e.component("ATextInput", Dn);
1282
+ e.component("ACheckbox", et), e.component("ACombobox", tt), e.component("ADate", st), e.component("ADropdown", Et), e.component("ADatePicker", Jt), e.component("AFieldset", nn), e.component("AFileAttach", rn), e.component("AForm", _e), e.component("ANumericInput", mn), e.component("ATextInput", Dn);
1277
1283
  }
1278
1284
  export {
1279
1285
  et as ACheckbox,
@@ -1283,7 +1289,7 @@ export {
1283
1289
  Et as ADropdown,
1284
1290
  nn as AFieldset,
1285
1291
  rn as AFileAttach,
1286
- Le as AForm,
1292
+ _e as AForm,
1287
1293
  mn as ANumericInput,
1288
1294
  Dn as ATextInput,
1289
1295
  On as Login,