@stonecrop/aform 0.3.11 → 0.4.0

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,5 +1,5 @@
1
- import { defineComponent as M, mergeModels as G, useModel as H, openBlock as g, createElementBlock as b, createElementVNode as d, toDisplayString as D, withDirectives as E, vModelCheckbox as Pe, vShow as R, resolveComponent as Oe, createBlock as te, withCtx as Fe, useTemplateRef as Ae, vModelText as F, getCurrentScope as ne, onScopeDispose as oe, toRef as He, readonly as De, customRef as Re, ref as y, watch as P, toValue as V, computed as I, reactive as Be, normalizeClass as J, withKeys as O, Fragment as U, renderList as N, withModifiers as Ee, unref as x, onMounted as le, onBeforeUnmount as qe, getCurrentInstance as We, nextTick as Ue, resolveDynamicComponent as Ne, mergeProps as Ye, createTextVNode as Me, createCommentVNode as se, renderSlot as je, createVNode as Ge } from "vue";
2
- import './assets/index.css';const Ke = { class: "aform_form-element" }, ze = ["for"], Xe = { class: "aform_checkbox-container aform_input-field" }, Je = ["id", "readonly", "required"], Qe = ["innerHTML"], Ze = /* @__PURE__ */ M({
1
+ import { defineComponent as M, mergeModels as G, useModel as H, openBlock as g, createElementBlock as b, createElementVNode as d, toDisplayString as D, withDirectives as E, vModelCheckbox as Ve, vShow as R, resolveComponent as Pe, createBlock as te, withCtx as Oe, useTemplateRef as _e, vModelText as F, getCurrentScope as Ae, onScopeDispose as De, unref as C, toRef as Fe, readonly as Ee, customRef as He, ref as y, watch as P, computed as T, reactive as Re, normalizeClass as J, withKeys as O, Fragment as U, renderList as N, withModifiers as Me, onMounted as ne, onBeforeUnmount as Be, getCurrentInstance as qe, nextTick as We, resolveDynamicComponent as Ue, mergeProps as Ne, createTextVNode as Ie, createCommentVNode as oe, renderSlot as Ye, createVNode as je } from "vue";
2
+ import './assets/index.css';const Ge = { class: "aform_form-element" }, Ke = ["for"], ze = { class: "aform_checkbox-container aform_input-field" }, Xe = ["id", "readonly", "required"], Je = ["innerHTML"], Qe = /* @__PURE__ */ M({
3
3
  __name: "ACheckbox",
4
4
  props: /* @__PURE__ */ G({
5
5
  schema: {},
@@ -16,12 +16,12 @@ import './assets/index.css';const Ke = { class: "aform_form-element" }, ze = ["f
16
16
  emits: ["update:modelValue"],
17
17
  setup(e) {
18
18
  const t = H(e, "modelValue");
19
- return (n, o) => (g(), b("div", Ke, [
19
+ return (n, o) => (g(), b("div", Ge, [
20
20
  d("label", {
21
21
  class: "aform_field-label",
22
22
  for: n.uuid
23
- }, D(n.label), 9, ze),
24
- d("span", Xe, [
23
+ }, D(n.label), 9, Ke),
24
+ d("span", ze, [
25
25
  E(d("input", {
26
26
  "onUpdate:modelValue": o[0] || (o[0] = (l) => t.value = l),
27
27
  type: "checkbox",
@@ -29,35 +29,35 @@ import './assets/index.css';const Ke = { class: "aform_form-element" }, ze = ["f
29
29
  class: "aform_checkbox",
30
30
  readonly: n.readonly,
31
31
  required: n.required
32
- }, null, 8, Je), [
33
- [Pe, t.value]
32
+ }, null, 8, Xe), [
33
+ [Ve, t.value]
34
34
  ])
35
35
  ]),
36
36
  E(d("p", {
37
37
  class: "aform_error",
38
38
  innerHTML: n.validation.errorMessage
39
- }, null, 8, Qe), [
39
+ }, null, 8, Je), [
40
40
  [R, n.validation.errorMessage]
41
41
  ])
42
42
  ]));
43
43
  }
44
- }), T = (e, t) => {
44
+ }), S = (e, t) => {
45
45
  const n = e.__vccOpts || e;
46
46
  for (const [o, l] of t)
47
47
  n[o] = l;
48
48
  return n;
49
- }, et = /* @__PURE__ */ T(Ze, [["__scopeId", "data-v-9f382ad4"]]), tt = /* @__PURE__ */ M({
49
+ }, Ze = /* @__PURE__ */ S(Qe, [["__scopeId", "data-v-9f382ad4"]]), et = /* @__PURE__ */ M({
50
50
  __name: "AComboBox",
51
51
  props: ["event", "cellData", "tableID"],
52
52
  setup(e) {
53
53
  return (t, n) => {
54
- const o = Oe("ATableModal");
54
+ const o = Pe("ATableModal");
55
55
  return g(), te(o, {
56
56
  event: e.event,
57
57
  cellData: e.cellData,
58
58
  class: "amodal"
59
59
  }, {
60
- default: Fe(() => n[0] || (n[0] = [
60
+ default: Oe(() => n[0] || (n[0] = [
61
61
  d("div", null, [
62
62
  d("input", { type: "text" }),
63
63
  d("input", { type: "text" }),
@@ -68,7 +68,7 @@ import './assets/index.css';const Ke = { class: "aform_form-element" }, ze = ["f
68
68
  }, 8, ["event", "cellData"]);
69
69
  };
70
70
  }
71
- }), nt = ["id", "disabled", "required"], ot = ["for"], lt = ["innerHTML"], st = /* @__PURE__ */ M({
71
+ }), tt = ["id", "disabled", "required"], nt = ["for"], ot = ["innerHTML"], lt = /* @__PURE__ */ M({
72
72
  __name: "ADate",
73
73
  props: /* @__PURE__ */ G({
74
74
  schema: {},
@@ -89,7 +89,7 @@ import './assets/index.css';const Ke = { class: "aform_form-element" }, ze = ["f
89
89
  const t = H(e, "modelValue", {
90
90
  // format the date to be compatible with the native input datepicker
91
91
  set: (l) => new Date(l).toISOString().split("T")[0]
92
- }), n = Ae("date"), o = () => {
92
+ }), n = _e("date"), o = () => {
93
93
  n.value && "showPicker" in HTMLInputElement.prototype && n.value.showPicker();
94
94
  };
95
95
  return (l, a) => (g(), b("div", null, [
@@ -101,39 +101,92 @@ import './assets/index.css';const Ke = { class: "aform_form-element" }, ze = ["f
101
101
  disabled: l.readonly,
102
102
  required: l.required,
103
103
  onClick: o
104
- }, null, 8, nt), [
104
+ }, null, 8, tt), [
105
105
  [F, t.value]
106
106
  ]),
107
- d("label", { for: l.uuid }, D(l.label), 9, ot),
107
+ d("label", { for: l.uuid }, D(l.label), 9, nt),
108
108
  E(d("p", {
109
109
  innerHTML: l.validation.errorMessage
110
- }, null, 8, lt), [
110
+ }, null, 8, ot), [
111
111
  [R, l.validation.errorMessage]
112
112
  ])
113
113
  ]));
114
114
  }
115
- }), at = /* @__PURE__ */ T(st, [["__scopeId", "data-v-280b3d1a"]]);
116
- function Ce(e) {
117
- return ne() ? (oe(e), !0) : !1;
115
+ }), st = /* @__PURE__ */ S(lt, [["__scopeId", "data-v-280b3d1a"]]);
116
+ function le(e) {
117
+ return Ae() ? (De(e), !0) : !1;
118
118
  }
119
- const Ie = typeof window < "u" && typeof document < "u";
119
+ function de() {
120
+ const e = /* @__PURE__ */ new Set(), t = (l) => {
121
+ e.delete(l);
122
+ };
123
+ return {
124
+ on: (l) => {
125
+ e.add(l);
126
+ const a = () => t(l);
127
+ return le(a), {
128
+ off: a
129
+ };
130
+ },
131
+ off: t,
132
+ trigger: (...l) => Promise.all(Array.from(e).map((a) => a(...l)))
133
+ };
134
+ }
135
+ function V(e) {
136
+ return typeof e == "function" ? e() : C(e);
137
+ }
138
+ const se = typeof window < "u" && typeof document < "u";
120
139
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
121
- const rt = Object.prototype.toString, it = (e) => rt.call(e) === "[object Object]", W = () => {
122
- }, ee = /* @__PURE__ */ ut();
140
+ const at = Object.prototype.toString, rt = (e) => at.call(e) === "[object Object]", W = () => {
141
+ }, it = (e, t) => Object.prototype.hasOwnProperty.call(e, t), ee = /* @__PURE__ */ ut();
123
142
  function ut() {
124
143
  var e, t;
125
- return Ie && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
126
- }
127
- function de(e) {
128
- return Array.isArray(e) ? e : [e];
144
+ return se && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
129
145
  }
130
146
  function ct(...e) {
131
147
  if (e.length !== 1)
132
- return He(...e);
148
+ return Fe(...e);
133
149
  const t = e[0];
134
- return typeof t == "function" ? De(Re(() => ({ get: t, set: W }))) : y(t);
150
+ return typeof t == "function" ? Ee(He(() => ({ get: t, set: W }))) : y(t);
151
+ }
152
+ const dt = se ? window.document : void 0, ft = {
153
+ multiple: !0,
154
+ accept: "*",
155
+ reset: !1,
156
+ directory: !1
157
+ };
158
+ function mt(e = {}) {
159
+ const {
160
+ document: t = dt
161
+ } = e, n = y(null), { on: o, trigger: l } = de(), { on: a, trigger: s } = de();
162
+ let r;
163
+ t && (r = t.createElement("input"), r.type = "file", r.onchange = (c) => {
164
+ const m = c.target;
165
+ n.value = m.files, l(n.value);
166
+ }, r.oncancel = () => {
167
+ s();
168
+ });
169
+ const u = () => {
170
+ n.value = null, r && r.value && (r.value = "", l(null));
171
+ }, i = (c) => {
172
+ if (!r)
173
+ return;
174
+ const m = {
175
+ ...ft,
176
+ ...e,
177
+ ...c
178
+ };
179
+ r.multiple = m.multiple, r.accept = m.accept, r.webkitdirectory = m.directory, it(m, "capture") && (r.capture = m.capture), m.reset && u(), r.click();
180
+ };
181
+ return {
182
+ files: Ee(n),
183
+ open: i,
184
+ reset: u,
185
+ onCancel: a,
186
+ onChange: o
187
+ };
135
188
  }
136
- const Te = Ie ? window : void 0;
189
+ const Ce = se ? window : void 0;
137
190
  function q(e) {
138
191
  var t;
139
192
  const n = V(e);
@@ -141,9 +194,9 @@ function q(e) {
141
194
  }
142
195
  function X(...e) {
143
196
  let t, n, o, l;
144
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = Te) : [t, n, o, l] = e, !t)
197
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = Ce) : [t, n, o, l] = e, !t)
145
198
  return W;
146
- n = de(n), o = de(o);
199
+ Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
147
200
  const a = [], s = () => {
148
201
  a.forEach((c) => c()), a.length = 0;
149
202
  }, r = (c, m, f, p) => (c.addEventListener(m, f, p), () => c.removeEventListener(m, f, p)), u = P(
@@ -151,7 +204,7 @@ function X(...e) {
151
204
  ([c, m]) => {
152
205
  if (s(), !c)
153
206
  return;
154
- const f = it(m) ? { ...m } : m;
207
+ const f = rt(m) ? { ...m } : m;
155
208
  a.push(
156
209
  ...n.flatMap((p) => o.map((w) => r(c, p, w, f)))
157
210
  );
@@ -160,11 +213,11 @@ function X(...e) {
160
213
  ), i = () => {
161
214
  u(), s();
162
215
  };
163
- return Ce(i), i;
216
+ return le(i), i;
164
217
  }
165
218
  let fe = !1;
166
219
  function me(e, t, n = {}) {
167
- const { window: o = Te, ignore: l = [], capture: a = !0, detectIframe: s = !1 } = n;
220
+ const { window: o = Ce, ignore: l = [], capture: a = !0, detectIframe: s = !1 } = n;
168
221
  if (!o)
169
222
  return W;
170
223
  ee && !fe && (fe = !0, Array.from(o.document.body.children).forEach((v) => v.addEventListener("click", W)), o.document.documentElement.addEventListener("click", W));
@@ -212,11 +265,11 @@ function me(e, t, n = {}) {
212
265
  const _ = q(e);
213
266
  ((h = o.document.activeElement) == null ? void 0 : h.tagName) === "IFRAME" && !(_ != null && _.contains(o.document.activeElement)) && t(v);
214
267
  }, 0);
215
- }, { passive: !0 })
268
+ })
216
269
  ].filter(Boolean);
217
270
  return () => p.forEach((v) => v());
218
271
  }
219
- const dt = {
272
+ const pt = {
220
273
  mounted(e, t) {
221
274
  const n = !t.modifiers.bubble;
222
275
  if (typeof t.value == "function")
@@ -233,21 +286,21 @@ const dt = {
233
286
  function Q(e) {
234
287
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
235
288
  }
236
- function Se(e) {
289
+ function Te(e) {
237
290
  const t = window.getComputedStyle(e);
238
291
  if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
239
292
  return !0;
240
293
  {
241
294
  const n = e.parentNode;
242
- return !n || n.tagName === "BODY" ? !1 : Se(n);
295
+ return !n || n.tagName === "BODY" ? !1 : Te(n);
243
296
  }
244
297
  }
245
- function ft(e) {
298
+ function vt(e) {
246
299
  const t = e || window.event, n = t.target;
247
- return Se(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
300
+ return Te(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
248
301
  }
249
302
  const Z = /* @__PURE__ */ new WeakMap();
250
- function mt(e, t = !1) {
303
+ function ht(e, t = !1) {
251
304
  const n = y(t);
252
305
  let o = null, l = "";
253
306
  P(ct(e), (r) => {
@@ -268,7 +321,7 @@ function mt(e, t = !1) {
268
321
  r,
269
322
  "touchmove",
270
323
  (u) => {
271
- ft(u);
324
+ vt(u);
272
325
  },
273
326
  { passive: !1 }
274
327
  )), r.style.overflow = "hidden", n.value = !0);
@@ -276,7 +329,7 @@ function mt(e, t = !1) {
276
329
  const r = Q(V(e));
277
330
  !r || !n.value || (ee && (o == null || o()), r.style.overflow = l, Z.delete(r), n.value = !1);
278
331
  };
279
- return Ce(s), I({
332
+ return le(s), T({
280
333
  get() {
281
334
  return n.value;
282
335
  },
@@ -285,25 +338,25 @@ function mt(e, t = !1) {
285
338
  }
286
339
  });
287
340
  }
288
- function pt() {
341
+ function gt() {
289
342
  let e = !1;
290
343
  const t = y(!1);
291
344
  return (n, o) => {
292
345
  if (t.value = o.value, e)
293
346
  return;
294
347
  e = !0;
295
- const l = mt(n, o.value);
348
+ const l = ht(n, o.value);
296
349
  P(t, (a) => l.value = a);
297
350
  };
298
351
  }
299
- pt();
300
- const vt = { class: "input-wrapper" }, ht = {
352
+ gt();
353
+ const yt = { class: "input-wrapper" }, bt = {
301
354
  id: "autocomplete-results",
302
355
  class: "autocomplete-results"
303
- }, gt = {
356
+ }, wt = {
304
357
  key: 0,
305
358
  class: "loading autocomplete-result"
306
- }, yt = ["onClick"], bt = /* @__PURE__ */ M({
359
+ }, kt = ["onClick"], _t = /* @__PURE__ */ M({
307
360
  __name: "ADropdown",
308
361
  props: /* @__PURE__ */ G({
309
362
  label: {},
@@ -316,7 +369,7 @@ const vt = { class: "input-wrapper" }, ht = {
316
369
  }),
317
370
  emits: ["update:modelValue"],
318
371
  setup(e) {
319
- const t = H(e, "modelValue"), n = Be({
372
+ const t = H(e, "modelValue"), n = Re({
320
373
  activeItemIndex: null,
321
374
  open: !1,
322
375
  loading: !1,
@@ -371,7 +424,7 @@ const vt = { class: "input-wrapper" }, ht = {
371
424
  return (f, p) => E((g(), b("div", {
372
425
  class: J(["autocomplete", { isOpen: n.open }])
373
426
  }, [
374
- d("div", vt, [
427
+ d("div", yt, [
375
428
  E(d("input", {
376
429
  "onUpdate:modelValue": p[0] || (p[0] = (w) => t.value = w),
377
430
  type: "text",
@@ -387,32 +440,32 @@ const vt = { class: "input-wrapper" }, ht = {
387
440
  }, null, 544), [
388
441
  [F, t.value]
389
442
  ]),
390
- E(d("ul", ht, [
391
- n.loading ? (g(), b("li", gt, "Loading results...")) : (g(!0), b(U, { key: 1 }, N(n.results, (w, v) => (g(), b("li", {
443
+ E(d("ul", bt, [
444
+ n.loading ? (g(), b("li", wt, "Loading results...")) : (g(!0), b(U, { key: 1 }, N(n.results, (w, v) => (g(), b("li", {
392
445
  key: w,
393
- onClick: Ee((h) => a(w), ["stop"]),
446
+ onClick: Me((h) => a(w), ["stop"]),
394
447
  class: J(["autocomplete-result", { "is-active": v === n.activeItemIndex }])
395
- }, D(w), 11, yt))), 128))
448
+ }, D(w), 11, kt))), 128))
396
449
  ], 512), [
397
450
  [R, n.open]
398
451
  ]),
399
452
  d("label", null, D(f.label), 1)
400
453
  ])
401
454
  ], 2)), [
402
- [x(dt), o]
455
+ [C(pt), o]
403
456
  ]);
404
457
  }
405
- }), wt = /* @__PURE__ */ T(bt, [["__scopeId", "data-v-16c329d1"]]);
406
- function $e(e) {
407
- return ne() ? (oe(e), !0) : !1;
458
+ }), At = /* @__PURE__ */ S(_t, [["__scopeId", "data-v-16c329d1"]]);
459
+ function Se(e) {
460
+ return Ae() ? (De(e), !0) : !1;
408
461
  }
409
462
  function ae(e) {
410
- return typeof e == "function" ? e() : x(e);
463
+ return typeof e == "function" ? e() : C(e);
411
464
  }
412
- const kt = typeof window < "u" && typeof document < "u";
465
+ const Dt = typeof window < "u" && typeof document < "u";
413
466
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
414
- const _t = (e) => e != null, At = Object.prototype.toString, Dt = (e) => At.call(e) === "[object Object]", Et = () => {
415
- }, K = kt ? window : void 0;
467
+ const Et = (e) => e != null, Mt = Object.prototype.toString, It = (e) => Mt.call(e) === "[object Object]", Ct = () => {
468
+ }, K = Dt ? window : void 0;
416
469
  function Y(e) {
417
470
  var t;
418
471
  const n = ae(e);
@@ -421,7 +474,7 @@ function Y(e) {
421
474
  function j(...e) {
422
475
  let t, n, o, l;
423
476
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = K) : [t, n, o, l] = e, !t)
424
- return Et;
477
+ return Ct;
425
478
  Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
426
479
  const a = [], s = () => {
427
480
  a.forEach((c) => c()), a.length = 0;
@@ -430,7 +483,7 @@ function j(...e) {
430
483
  ([c, m]) => {
431
484
  if (s(), !c)
432
485
  return;
433
- const f = Dt(m) ? { ...m } : m;
486
+ const f = It(m) ? { ...m } : m;
434
487
  a.push(
435
488
  ...n.flatMap((p) => o.map((w) => r(c, p, w, f)))
436
489
  );
@@ -439,25 +492,25 @@ function j(...e) {
439
492
  ), i = () => {
440
493
  u(), s();
441
494
  };
442
- return $e(i), i;
495
+ return Se(i), i;
443
496
  }
444
- function Mt() {
445
- const e = y(!1), t = We();
446
- return t && le(() => {
497
+ function Tt() {
498
+ const e = y(!1), t = qe();
499
+ return t && ne(() => {
447
500
  e.value = !0;
448
501
  }, t), e;
449
502
  }
450
- function Ct(e) {
451
- const t = Mt();
452
- return I(() => (t.value, !!e()));
503
+ function St(e) {
504
+ const t = Tt();
505
+ return T(() => (t.value, !!e()));
453
506
  }
454
- function It(e, t, n = {}) {
507
+ function Lt(e, t, n = {}) {
455
508
  const { window: o = K, ...l } = n;
456
509
  let a;
457
- const s = Ct(() => o && "MutationObserver" in o), r = () => {
510
+ const s = St(() => o && "MutationObserver" in o), r = () => {
458
511
  a && (a.disconnect(), a = void 0);
459
- }, u = I(() => {
460
- const f = ae(e), p = (Array.isArray(f) ? f : [f]).map(Y).filter(_t);
512
+ }, u = T(() => {
513
+ const f = ae(e), p = (Array.isArray(f) ? f : [f]).map(Y).filter(Et);
461
514
  return new Set(p);
462
515
  }), i = P(
463
516
  () => u.value,
@@ -468,13 +521,13 @@ function It(e, t, n = {}) {
468
521
  ), c = () => a == null ? void 0 : a.takeRecords(), m = () => {
469
522
  i(), r();
470
523
  };
471
- return $e(m), {
524
+ return Se(m), {
472
525
  isSupported: s,
473
526
  stop: m,
474
527
  takeRecords: c
475
528
  };
476
529
  }
477
- function Tt(e = {}) {
530
+ function $t(e = {}) {
478
531
  var t;
479
532
  const {
480
533
  window: n = K,
@@ -492,7 +545,7 @@ function Tt(e = {}) {
492
545
  };
493
546
  return n && (j(n, "blur", (i) => {
494
547
  i.relatedTarget === null && u();
495
- }, !0), j(n, "focus", u, !0)), l && It(a, (i) => {
548
+ }, !0), j(n, "focus", u, !0)), l && Lt(a, (i) => {
496
549
  i.filter((c) => c.removedNodes.length).map((c) => Array.from(c.removedNodes)).flat().forEach((c) => {
497
550
  c === r.value && u();
498
551
  });
@@ -501,12 +554,12 @@ function Tt(e = {}) {
501
554
  subtree: !0
502
555
  }), u(), r;
503
556
  }
504
- const St = "focusin", $t = "focusout";
505
- function Lt(e, t = {}) {
506
- const { window: n = K } = t, o = I(() => Y(e)), l = y(!1), a = I(() => l.value), s = Tt(t);
507
- return !n || !s.value ? { focused: a } : (j(o, St, () => l.value = !0), j(o, $t, () => l.value = !1), { focused: a });
557
+ const xt = "focusin", Vt = "focusout";
558
+ function Pt(e, t = {}) {
559
+ const { window: n = K } = t, o = T(() => Y(e)), l = y(!1), a = T(() => l.value), s = $t(t);
560
+ return !n || !s.value ? { focused: a } : (j(o, xt, () => l.value = !0), j(o, Vt, () => l.value = !1), { focused: a });
508
561
  }
509
- function xt(e, { window: t = K, scrollTarget: n } = {}) {
562
+ function Ot(e, { window: t = K, scrollTarget: n } = {}) {
510
563
  const o = y(!1), l = () => {
511
564
  if (!t) return;
512
565
  const a = t.document, s = Y(e);
@@ -526,8 +579,8 @@ function xt(e, { window: t = K, scrollTarget: n } = {}) {
526
579
  passive: !0
527
580
  }), o;
528
581
  }
529
- const S = (e) => {
530
- let t = xt(e).value;
582
+ const L = (e) => {
583
+ let t = Ot(e).value;
531
584
  return t = t && e.offsetHeight > 0, t;
532
585
  }, $ = (e) => e.tabIndex >= 0, pe = (e) => {
533
586
  const t = e.target;
@@ -545,8 +598,8 @@ const S = (e) => {
545
598
  const o = e.previousElementSibling;
546
599
  o && (n = o);
547
600
  }
548
- return n && (!$(n) || !S(n)) ? re(n) : n;
549
- }, Vt = (e) => {
601
+ return n && (!$(n) || !L(n)) ? re(n) : n;
602
+ }, Ft = (e) => {
550
603
  var t;
551
604
  const n = e.target;
552
605
  let o;
@@ -563,7 +616,7 @@ const S = (e) => {
563
616
  a && (o = a);
564
617
  }
565
618
  }
566
- return o && (!$(o) || !S(o)) ? ie(o) : o;
619
+ return o && (!$(o) || !L(o)) ? ie(o) : o;
567
620
  }, ve = (e) => {
568
621
  const t = e.target;
569
622
  return ie(t);
@@ -580,8 +633,8 @@ const S = (e) => {
580
633
  const o = e.nextElementSibling;
581
634
  o && (n = o);
582
635
  }
583
- return n && (!$(n) || !S(n)) ? ie(n) : n;
584
- }, Pt = (e) => {
636
+ return n && (!$(n) || !L(n)) ? ie(n) : n;
637
+ }, Ht = (e) => {
585
638
  var t;
586
639
  const n = e.target;
587
640
  let o;
@@ -598,7 +651,7 @@ const S = (e) => {
598
651
  a && (o = a);
599
652
  }
600
653
  }
601
- return o && (!$(o) || !S(o)) ? re(o) : o;
654
+ return o && (!$(o) || !L(o)) ? re(o) : o;
602
655
  }, he = (e) => {
603
656
  const t = e.target;
604
657
  return ue(t);
@@ -611,7 +664,7 @@ const S = (e) => {
611
664
  const o = (t = e.parentElement) == null ? void 0 : t.previousElementSibling;
612
665
  n = o == null ? void 0 : o.lastElementChild;
613
666
  }
614
- return n && (!$(n) || !S(n)) ? ue(n) : n;
667
+ return n && (!$(n) || !L(n)) ? ue(n) : n;
615
668
  }, ge = (e) => {
616
669
  const t = e.target;
617
670
  return ce(t);
@@ -624,14 +677,14 @@ const S = (e) => {
624
677
  const o = (t = e.parentElement) == null ? void 0 : t.nextElementSibling;
625
678
  n = o == null ? void 0 : o.firstElementChild;
626
679
  }
627
- return n && (!$(n) || !S(n)) ? ce(n) : n;
680
+ return n && (!$(n) || !L(n)) ? ce(n) : n;
628
681
  }, ye = (e) => {
629
682
  const t = e.target.parentElement, n = t == null ? void 0 : t.firstElementChild;
630
- return n && (!$(n) || !S(n)) ? ce(n) : n;
683
+ return n && (!$(n) || !L(n)) ? ce(n) : n;
631
684
  }, be = (e) => {
632
685
  const t = e.target.parentElement, n = t == null ? void 0 : t.lastElementChild;
633
- return n && (!$(n) || !S(n)) ? ue(n) : n;
634
- }, z = ["alt", "control", "shift", "meta"], Ot = {
686
+ return n && (!$(n) || !L(n)) ? ue(n) : n;
687
+ }, z = ["alt", "control", "shift", "meta"], Rt = {
635
688
  ArrowUp: "up",
636
689
  ArrowDown: "down",
637
690
  ArrowLeft: "left",
@@ -654,11 +707,11 @@ const S = (e) => {
654
707
  e.preventDefault(), e.stopPropagation(), t && t.focus();
655
708
  },
656
709
  "keydown.control.up": (e) => {
657
- const t = Vt(e);
710
+ const t = Ft(e);
658
711
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
659
712
  },
660
713
  "keydown.control.down": (e) => {
661
- const t = Pt(e);
714
+ const t = Ht(e);
662
715
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
663
716
  },
664
717
  "keydown.control.left": (e) => {
@@ -700,7 +753,7 @@ const S = (e) => {
700
753
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
701
754
  }
702
755
  };
703
- function Ft(e) {
756
+ function Bt(e) {
704
757
  const t = (s) => {
705
758
  let r = null;
706
759
  return s.parent && (typeof s.parent == "string" ? r = document.querySelector(s.parent) : s.parent instanceof HTMLElement ? r = s.parent : r = s.parent.value), r;
@@ -725,9 +778,9 @@ function Ft(e) {
725
778
  }, o = (s) => {
726
779
  const r = t(s);
727
780
  let u = [];
728
- return s.selectors ? u = n(s) : r && (u = Array.from(r.children).filter((i) => $(i) && S(i))), u;
781
+ return s.selectors ? u = n(s) : r && (u = Array.from(r.children).filter((i) => $(i) && L(i))), u;
729
782
  }, l = (s) => (r) => {
730
- const u = Ot[r.key] || r.key.toLowerCase();
783
+ const u = Rt[r.key] || r.key.toLowerCase();
731
784
  if (z.includes(u)) return;
732
785
  const i = s.handlers || Le;
733
786
  for (const c of Object.keys(i)) {
@@ -750,29 +803,29 @@ function Ft(e) {
750
803
  }
751
804
  }
752
805
  }, a = [];
753
- le(() => {
806
+ ne(() => {
754
807
  for (const s of e) {
755
808
  const r = t(s), u = o(s), i = l(s), c = r ? [r] : u;
756
809
  for (const m of c) {
757
- const { focused: f } = Lt(y(m)), p = P(f, (w) => {
810
+ const { focused: f } = Pt(y(m)), p = P(f, (w) => {
758
811
  w ? m.addEventListener("keydown", i) : m.removeEventListener("keydown", i);
759
812
  });
760
813
  a.push(p);
761
814
  }
762
815
  }
763
- }), qe(() => {
816
+ }), Be(() => {
764
817
  for (const s of a)
765
818
  s();
766
819
  });
767
820
  }
768
- const Ht = {
821
+ const qt = {
769
822
  class: "adatepicker",
770
823
  tabindex: "0",
771
824
  ref: "datepicker"
772
- }, Rt = {
825
+ }, Wt = {
773
826
  colspan: "5",
774
827
  tabindex: -1
775
- }, Bt = ["onClick", "onKeydown"], qt = 6, we = 7, Wt = /* @__PURE__ */ M({
828
+ }, Ut = ["onClick", "onKeydown"], Nt = 6, we = 7, Yt = /* @__PURE__ */ M({
776
829
  __name: "ADatePicker",
777
830
  props: {
778
831
  modelValue: { default: /* @__PURE__ */ new Date() },
@@ -780,9 +833,9 @@ const Ht = {
780
833
  },
781
834
  emits: ["update:modelValue"],
782
835
  setup(e, { expose: t }) {
783
- const n = H(e, "modelValue"), o = y(new Date(n.value)), l = y(o.value.getMonth()), a = y(o.value.getFullYear()), s = y([]), r = Ae("datepicker");
784
- le(async () => {
785
- u(), await Ue();
836
+ const n = H(e, "modelValue"), o = y(new Date(n.value)), l = y(o.value.getMonth()), a = y(o.value.getFullYear()), s = y([]), r = _e("datepicker");
837
+ ne(async () => {
838
+ u(), await We();
786
839
  const k = document.getElementsByClassName("selectedDate");
787
840
  if (k.length > 0)
788
841
  k[0].focus();
@@ -793,9 +846,9 @@ const Ht = {
793
846
  });
794
847
  const u = () => {
795
848
  s.value = [];
796
- const k = new Date(a.value, l.value, 1), A = k.getDay(), C = k.setDate(k.getDate() - A);
797
- for (const L of Array(43).keys())
798
- s.value.push(C + L * 864e5);
849
+ const k = new Date(a.value, l.value, 1), A = k.getDay(), I = k.setDate(k.getDate() - A);
850
+ for (const x of Array(43).keys())
851
+ s.value.push(I + x * 864e5);
799
852
  };
800
853
  P([l, a], u);
801
854
  const i = () => a.value -= 1, c = () => a.value += 1, m = () => {
@@ -808,11 +861,11 @@ const Ht = {
808
861
  return A.toDateString() === new Date(k).toDateString();
809
862
  }, w = (k) => new Date(k).toDateString() === new Date(o.value).toDateString(), v = (k, A) => (k - 1) * we + A, h = (k, A) => s.value[v(k, A)], _ = (k) => {
810
863
  n.value = o.value = new Date(s.value[k]);
811
- }, B = I(() => new Date(a.value, l.value, 1).toLocaleDateString(void 0, {
864
+ }, B = T(() => new Date(a.value, l.value, 1).toLocaleDateString(void 0, {
812
865
  year: "numeric",
813
866
  month: "long"
814
867
  }));
815
- return Ft([
868
+ return Bt([
816
869
  {
817
870
  parent: r,
818
871
  selectors: "td",
@@ -829,7 +882,7 @@ const Ht = {
829
882
  }
830
883
  }
831
884
  }
832
- ]), t({ currentMonth: l, currentYear: a, selectedDate: o }), (k, A) => (g(), b("div", Ht, [
885
+ ]), t({ currentMonth: l, currentYear: a, selectedDate: o }), (k, A) => (g(), b("div", qt, [
833
886
  d("table", null, [
834
887
  d("tbody", null, [
835
888
  d("tr", null, [
@@ -838,7 +891,7 @@ const Ht = {
838
891
  onClick: m,
839
892
  tabindex: -1
840
893
  }, "<"),
841
- d("th", Rt, D(B.value), 1),
894
+ d("th", Wt, D(B.value), 1),
842
895
  d("td", {
843
896
  id: "next-month-btn",
844
897
  onClick: f,
@@ -854,27 +907,27 @@ const Ht = {
854
907
  d("td", null, "S"),
855
908
  d("td", null, "S")
856
909
  ], -1)),
857
- (g(), b(U, null, N(qt, (C) => d("tr", { key: C }, [
858
- (g(), b(U, null, N(we, (L) => d("td", {
910
+ (g(), b(U, null, N(Nt, (I) => d("tr", { key: I }, [
911
+ (g(), b(U, null, N(we, (x) => d("td", {
859
912
  ref_for: !0,
860
913
  ref: "celldate",
861
- key: v(C, L),
914
+ key: v(I, x),
862
915
  contenteditable: !1,
863
916
  spellcheck: !1,
864
917
  tabindex: 0,
865
- onClick: Ee((Ve) => _(v(C, L)), ["prevent", "stop"]),
866
- onKeydown: O((Ve) => _(v(C, L)), ["enter"]),
918
+ onClick: Me((xe) => _(v(I, x)), ["prevent", "stop"]),
919
+ onKeydown: O((xe) => _(v(I, x)), ["enter"]),
867
920
  class: J({
868
- todaysDate: p(h(C, L)),
869
- selectedDate: w(h(C, L))
921
+ todaysDate: p(h(I, x)),
922
+ selectedDate: w(h(I, x))
870
923
  })
871
- }, D(new Date(h(C, L)).getDate()), 43, Bt)), 64))
924
+ }, D(new Date(h(I, x)).getDate()), 43, Ut)), 64))
872
925
  ])), 64))
873
926
  ])
874
927
  ])
875
928
  ], 512));
876
929
  }
877
- }), Ut = /* @__PURE__ */ T(Wt, [["__scopeId", "data-v-f49cfd40"]]), Nt = /* @__PURE__ */ M({
930
+ }), jt = /* @__PURE__ */ S(Yt, [["__scopeId", "data-v-f49cfd40"]]), Gt = /* @__PURE__ */ M({
878
931
  __name: "CollapseButton",
879
932
  props: {
880
933
  collapsed: { type: Boolean }
@@ -884,7 +937,7 @@ const Ht = {
884
937
  class: J(["collapse-button", t.collapsed ? "rotated" : "unrotated"])
885
938
  }, "×", 2));
886
939
  }
887
- }), Yt = /* @__PURE__ */ T(Nt, [["__scopeId", "data-v-6f1c1b45"]]), jt = { class: "aform" }, Gt = /* @__PURE__ */ M({
940
+ }), Kt = /* @__PURE__ */ S(Gt, [["__scopeId", "data-v-6f1c1b45"]]), zt = { class: "aform" }, Xt = /* @__PURE__ */ M({
888
941
  __name: "AForm",
889
942
  props: {
890
943
  modelValue: {},
@@ -898,8 +951,8 @@ const Ht = {
898
951
  for (const [u, i] of Object.entries(s))
899
952
  ["component", "fieldtype"].includes(u) || (r[u] = i), u === "rows" && i && i.length === 0 && (r.rows = o.value[s.fieldname]);
900
953
  return r;
901
- }, a = I({
902
- get: () => e.modelValue.map((s, r) => I({
954
+ }, a = T({
955
+ get: () => e.modelValue.map((s, r) => T({
903
956
  get() {
904
957
  return s.value;
905
958
  },
@@ -910,8 +963,8 @@ const Ht = {
910
963
  set: () => {
911
964
  }
912
965
  });
913
- return (s, r) => (g(), b("form", jt, [
914
- (g(!0), b(U, null, N(s.modelValue, (u, i) => (g(), te(Ne(u.component), Ye({
966
+ return (s, r) => (g(), b("form", zt, [
967
+ (g(!0), b(U, null, N(s.modelValue, (u, i) => (g(), te(Ue(u.component), Ne({
915
968
  key: i,
916
969
  schema: u,
917
970
  modelValue: a.value[i].value,
@@ -922,7 +975,7 @@ const Ht = {
922
975
  }, l(u)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
923
976
  ]));
924
977
  }
925
- }), xe = /* @__PURE__ */ T(Gt, [["__scopeId", "data-v-68845234"]]), Kt = /* @__PURE__ */ M({
978
+ }), $e = /* @__PURE__ */ S(Xt, [["__scopeId", "data-v-68845234"]]), Jt = /* @__PURE__ */ M({
926
979
  __name: "AFieldset",
927
980
  props: {
928
981
  schema: {},
@@ -939,14 +992,14 @@ const Ht = {
939
992
  onClick: a,
940
993
  onSubmit: a
941
994
  }, [
942
- Me(D(s.label) + " ", 1),
943
- s.collapsible ? (g(), te(Yt, {
995
+ Ie(D(s.label) + " ", 1),
996
+ s.collapsible ? (g(), te(Kt, {
944
997
  key: 0,
945
998
  collapsed: n.value
946
- }, null, 8, ["collapsed"])) : se("", !0)
999
+ }, null, 8, ["collapsed"])) : oe("", !0)
947
1000
  ], 32),
948
- je(s.$slots, "default", { collapsed: n.value }, () => [
949
- E(Ge(xe, {
1001
+ Ye(s.$slots, "default", { collapsed: n.value }, () => [
1002
+ E(je($e, {
950
1003
  modelValue: l.value,
951
1004
  "onUpdate:modelValue": r[0] || (r[0] = (u) => l.value = u),
952
1005
  data: o.value
@@ -956,99 +1009,40 @@ const Ht = {
956
1009
  ], !0)
957
1010
  ]));
958
1011
  }
959
- }), zt = /* @__PURE__ */ T(Kt, [["__scopeId", "data-v-e7ea7e12"]]);
960
- function Xt(e) {
961
- return ne() ? (oe(e), !0) : !1;
962
- }
963
- function ke() {
964
- const e = /* @__PURE__ */ new Set(), t = (l) => {
965
- e.delete(l);
966
- };
967
- return {
968
- on: (l) => {
969
- e.add(l);
970
- const a = () => t(l);
971
- return Xt(a), {
972
- off: a
973
- };
974
- },
975
- off: t,
976
- trigger: (...l) => Promise.all(Array.from(e).map((a) => a(...l)))
977
- };
978
- }
979
- const Jt = typeof window < "u" && typeof document < "u";
980
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
981
- const Qt = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Zt = Jt ? window.document : void 0, en = {
982
- multiple: !0,
983
- accept: "*",
984
- reset: !1,
985
- directory: !1
986
- };
987
- function tn(e = {}) {
988
- const {
989
- document: t = Zt
990
- } = e, n = y(null), { on: o, trigger: l } = ke(), { on: a, trigger: s } = ke();
991
- let r;
992
- t && (r = t.createElement("input"), r.type = "file", r.onchange = (c) => {
993
- const m = c.target;
994
- n.value = m.files, l(n.value);
995
- }, r.oncancel = () => {
996
- s();
997
- });
998
- const u = () => {
999
- n.value = null, r && r.value && (r.value = "", l(null));
1000
- }, i = (c) => {
1001
- if (!r)
1002
- return;
1003
- const m = {
1004
- ...en,
1005
- ...e,
1006
- ...c
1007
- };
1008
- r.multiple = m.multiple, r.accept = m.accept, r.webkitdirectory = m.directory, Qt(m, "capture") && (r.capture = m.capture), m.reset && u(), r.click();
1009
- };
1010
- return {
1011
- files: De(n),
1012
- open: i,
1013
- reset: u,
1014
- onCancel: a,
1015
- onChange: o
1016
- };
1017
- }
1018
- const nn = { class: "aform_form-element aform_file-attach aform__grid--full" }, on = {
1012
+ }), Qt = /* @__PURE__ */ S(Jt, [["__scopeId", "data-v-e7ea7e12"]]), Zt = { class: "aform_form-element aform_file-attach aform__grid--full" }, en = {
1019
1013
  key: 0,
1020
1014
  class: "aform_file-attach-feedback"
1021
- }, ln = ["disabled"], sn = /* @__PURE__ */ M({
1015
+ }, tn = ["disabled"], nn = /* @__PURE__ */ M({
1022
1016
  __name: "AFileAttach",
1023
1017
  props: {
1024
1018
  label: {}
1025
1019
  },
1026
1020
  setup(e) {
1027
- const { files: t, open: n, reset: o, onChange: l } = tn(), a = I(() => `${t.value.length} ${t.value.length === 1 ? "file" : "files"}`);
1028
- return l((s) => s), (s, r) => (g(), b("div", nn, [
1029
- x(t) ? (g(), b("div", on, [
1021
+ const { files: t, open: n, reset: o, onChange: l } = mt(), a = T(() => `${t.value.length} ${t.value.length === 1 ? "file" : "files"}`);
1022
+ return l((s) => s), (s, r) => (g(), b("div", Zt, [
1023
+ C(t) ? (g(), b("div", en, [
1030
1024
  d("p", null, [
1031
- r[2] || (r[2] = Me(" You have selected: ")),
1025
+ r[2] || (r[2] = Ie(" You have selected: ")),
1032
1026
  d("b", null, D(a.value), 1)
1033
1027
  ]),
1034
- (g(!0), b(U, null, N(x(t), (u) => (g(), b("li", {
1028
+ (g(!0), b(U, null, N(C(t), (u) => (g(), b("li", {
1035
1029
  key: u.name
1036
1030
  }, D(u.name), 1))), 128))
1037
- ])) : se("", !0),
1031
+ ])) : oe("", !0),
1038
1032
  d("button", {
1039
1033
  type: "button",
1040
- onClick: r[0] || (r[0] = (u) => x(n)()),
1034
+ onClick: r[0] || (r[0] = (u) => C(n)()),
1041
1035
  class: "aform_form-btn"
1042
1036
  }, D(s.label), 1),
1043
1037
  d("button", {
1044
1038
  type: "button",
1045
- disabled: !x(t),
1046
- onClick: r[1] || (r[1] = (u) => x(o)()),
1039
+ disabled: !C(t),
1040
+ onClick: r[1] || (r[1] = (u) => C(o)()),
1047
1041
  class: "aform_form-btn"
1048
- }, "Reset", 8, ln)
1042
+ }, "Reset", 8, tn)
1049
1043
  ]));
1050
1044
  }
1051
- }), an = /* @__PURE__ */ T(sn, [["__scopeId", "data-v-0b3a11cc"]]), rn = { class: "aform_form-element" }, un = ["id", "disabled", "required"], cn = ["for"], dn = ["innerHTML"], fn = /* @__PURE__ */ M({
1045
+ }), on = /* @__PURE__ */ S(nn, [["__scopeId", "data-v-0b3a11cc"]]), ln = { class: "aform_form-element" }, sn = ["id", "disabled", "required"], an = ["for"], rn = ["innerHTML"], un = /* @__PURE__ */ M({
1052
1046
  __name: "ANumericInput",
1053
1047
  props: /* @__PURE__ */ G({
1054
1048
  schema: {},
@@ -1065,7 +1059,7 @@ const nn = { class: "aform_form-element aform_file-attach aform__grid--full" },
1065
1059
  emits: ["update:modelValue"],
1066
1060
  setup(e) {
1067
1061
  const t = H(e, "modelValue");
1068
- return (n, o) => (g(), b("div", rn, [
1062
+ return (n, o) => (g(), b("div", ln, [
1069
1063
  E(d("input", {
1070
1064
  class: "aform_input-field",
1071
1065
  "onUpdate:modelValue": o[0] || (o[0] = (l) => t.value = l),
@@ -1073,22 +1067,22 @@ const nn = { class: "aform_form-element aform_file-attach aform__grid--full" },
1073
1067
  id: n.uuid,
1074
1068
  disabled: n.readonly,
1075
1069
  required: n.required
1076
- }, null, 8, un), [
1070
+ }, null, 8, sn), [
1077
1071
  [F, t.value]
1078
1072
  ]),
1079
1073
  d("label", {
1080
1074
  class: "aform_field-label",
1081
1075
  for: n.uuid
1082
- }, D(n.label), 9, cn),
1076
+ }, D(n.label), 9, an),
1083
1077
  E(d("p", {
1084
1078
  class: "aform_error",
1085
1079
  innerHTML: n.validation.errorMessage
1086
- }, null, 8, dn), [
1080
+ }, null, 8, rn), [
1087
1081
  [R, n.validation.errorMessage]
1088
1082
  ])
1089
1083
  ]));
1090
1084
  }
1091
- }), _e = {
1085
+ }), ke = {
1092
1086
  date: "##/##/####",
1093
1087
  datetime: "####/##/## ##:##",
1094
1088
  time: "##:##",
@@ -1096,35 +1090,35 @@ const nn = { class: "aform_form-element aform_file-attach aform__grid--full" },
1096
1090
  phone: "(###) ### - ####",
1097
1091
  card: "#### #### #### ####"
1098
1092
  };
1099
- function mn(e) {
1093
+ function cn(e) {
1100
1094
  try {
1101
1095
  return Function(`"use strict";return (${e})`)();
1102
1096
  } catch {
1103
1097
  }
1104
1098
  }
1105
- function pn(e) {
1099
+ function dn(e) {
1106
1100
  var n, o, l;
1107
1101
  let t = e.value;
1108
1102
  if (t) {
1109
- const a = mn(t);
1103
+ const a = cn(t);
1110
1104
  if (a) {
1111
1105
  const s = (n = e.instance) == null ? void 0 : n.locale;
1112
1106
  t = a(s);
1113
1107
  }
1114
1108
  } else {
1115
1109
  const a = (o = e.instance) == null ? void 0 : o.schema, s = (l = a == null ? void 0 : a.fieldtype) == null ? void 0 : l.toLowerCase();
1116
- s && _e[s] && (t = _e[s]);
1110
+ s && ke[s] && (t = ke[s]);
1117
1111
  }
1118
1112
  return t;
1119
1113
  }
1120
- function vn(e, t) {
1114
+ function fn(e, t) {
1121
1115
  let n = e;
1122
1116
  const o = [t, "/", "-", "(", ")", " "];
1123
1117
  for (const l of o)
1124
1118
  n = n.replaceAll(l, "");
1125
1119
  return n;
1126
1120
  }
1127
- function hn(e, t, n) {
1121
+ function mn(e, t, n) {
1128
1122
  let o = t;
1129
1123
  for (const l of e) {
1130
1124
  const a = o.indexOf(n);
@@ -1135,18 +1129,18 @@ function hn(e, t, n) {
1135
1129
  }
1136
1130
  return o.slice(0, t.length);
1137
1131
  }
1138
- function gn(e, t) {
1132
+ function pn(e, t) {
1139
1133
  var s;
1140
- const n = pn(t);
1134
+ const n = dn(t);
1141
1135
  if (!n) return;
1142
- const o = "#", l = e.value, a = vn(l, o);
1136
+ const o = "#", l = e.value, a = fn(l, o);
1143
1137
  if (a) {
1144
- const r = hn(a, n, o);
1138
+ const r = mn(a, n, o);
1145
1139
  (s = t.instance) != null && s.maskFilled && (t.instance.maskFilled = !r.includes(o)), e.value = r;
1146
1140
  } else
1147
1141
  e.value = n;
1148
1142
  }
1149
- const yn = { class: "aform_form-element" }, bn = ["id", "disabled", "maxlength", "required"], wn = ["for"], kn = ["innerHTML"], _n = /* @__PURE__ */ M({
1143
+ const vn = { class: "aform_form-element" }, hn = ["id", "disabled", "maxlength", "required"], gn = ["for"], yn = ["innerHTML"], bn = /* @__PURE__ */ M({
1150
1144
  __name: "ATextInput",
1151
1145
  props: /* @__PURE__ */ G({
1152
1146
  schema: {},
@@ -1163,7 +1157,7 @@ const yn = { class: "aform_form-element" }, bn = ["id", "disabled", "maxlength",
1163
1157
  emits: ["update:modelValue"],
1164
1158
  setup(e) {
1165
1159
  const t = y(!0), n = H(e, "modelValue");
1166
- return (o, l) => (g(), b("div", yn, [
1160
+ return (o, l) => (g(), b("div", vn, [
1167
1161
  E(d("input", {
1168
1162
  class: "aform_input-field",
1169
1163
  "onUpdate:modelValue": l[0] || (l[0] = (a) => n.value = a),
@@ -1171,26 +1165,26 @@ const yn = { class: "aform_form-element" }, bn = ["id", "disabled", "maxlength",
1171
1165
  disabled: o.readonly,
1172
1166
  maxlength: o.mask ? t.value && o.mask.length : void 0,
1173
1167
  required: o.required
1174
- }, null, 8, bn), [
1168
+ }, null, 8, hn), [
1175
1169
  [F, n.value],
1176
- [x(gn), o.mask]
1170
+ [C(pn), o.mask]
1177
1171
  ]),
1178
1172
  d("label", {
1179
1173
  class: "aform_field-label",
1180
1174
  for: o.uuid
1181
- }, D(o.label), 9, wn),
1175
+ }, D(o.label), 9, gn),
1182
1176
  E(d("p", {
1183
1177
  class: "aform_error",
1184
1178
  innerHTML: o.validation.errorMessage
1185
- }, null, 8, kn), [
1179
+ }, null, 8, yn), [
1186
1180
  [R, o.validation.errorMessage]
1187
1181
  ])
1188
1182
  ]));
1189
1183
  }
1190
- }), An = { class: "login-container" }, Dn = { class: "account-container" }, En = { class: "account-header" }, Mn = { id: "account-title" }, Cn = { id: "account-subtitle" }, In = { class: "login-form-container" }, Tn = { class: "login-form-email aform_form-element" }, Sn = ["disabled"], $n = { class: "login-form-password aform_form-element" }, Ln = ["disabled"], xn = ["disabled"], Vn = {
1184
+ }), wn = { class: "login-container" }, kn = { class: "account-container" }, _n = { class: "account-header" }, An = { id: "account-title" }, Dn = { id: "account-subtitle" }, En = { class: "login-form-container" }, Mn = { class: "login-form-email aform_form-element" }, In = ["disabled"], Cn = { class: "login-form-password aform_form-element" }, Tn = ["disabled"], Sn = ["disabled"], Ln = {
1191
1185
  key: 0,
1192
1186
  class: "material-symbols-outlined loading-icon"
1193
- }, Pn = /* @__PURE__ */ M({
1187
+ }, $n = /* @__PURE__ */ M({
1194
1188
  __name: "Login",
1195
1189
  props: {
1196
1190
  headerTitle: { default: "Login" },
@@ -1206,16 +1200,16 @@ const yn = { class: "aform_form-element" }, bn = ["id", "disabled", "maxlength",
1206
1200
  }
1207
1201
  a.value = !1, n("loginSuccess");
1208
1202
  }
1209
- return (u, i) => (g(), b("div", An, [
1203
+ return (u, i) => (g(), b("div", wn, [
1210
1204
  d("div", null, [
1211
- d("div", Dn, [
1212
- d("div", En, [
1213
- d("h1", Mn, D(u.headerTitle), 1),
1214
- d("p", Cn, D(u.headerSubtitle), 1)
1205
+ d("div", kn, [
1206
+ d("div", _n, [
1207
+ d("h1", An, D(u.headerTitle), 1),
1208
+ d("p", Dn, D(u.headerSubtitle), 1)
1215
1209
  ]),
1216
1210
  d("form", { onSubmit: r }, [
1217
- d("div", In, [
1218
- d("div", Tn, [
1211
+ d("div", En, [
1212
+ d("div", Mn, [
1219
1213
  i[2] || (i[2] = d("label", {
1220
1214
  id: "login-email",
1221
1215
  for: "email",
@@ -1232,11 +1226,11 @@ const yn = { class: "aform_form-element" }, bn = ["id", "disabled", "maxlength",
1232
1226
  "auto-complete": "email",
1233
1227
  "auto-correct": "off",
1234
1228
  disabled: a.value
1235
- }, null, 8, Sn), [
1229
+ }, null, 8, In), [
1236
1230
  [F, o.value]
1237
1231
  ])
1238
1232
  ]),
1239
- d("div", $n, [
1233
+ d("div", Cn, [
1240
1234
  i[3] || (i[3] = d("label", {
1241
1235
  id: "login-password",
1242
1236
  for: "password",
@@ -1249,7 +1243,7 @@ const yn = { class: "aform_form-element" }, bn = ["id", "disabled", "maxlength",
1249
1243
  type: "password",
1250
1244
  "onUpdate:modelValue": i[1] || (i[1] = (c) => l.value = c),
1251
1245
  disabled: a.value
1252
- }, null, 8, Ln), [
1246
+ }, null, 8, Tn), [
1253
1247
  [F, l.value]
1254
1248
  ])
1255
1249
  ]),
@@ -1258,9 +1252,9 @@ const yn = { class: "aform_form-element" }, bn = ["id", "disabled", "maxlength",
1258
1252
  onClick: r,
1259
1253
  disabled: a.value || !o.value || !l.value
1260
1254
  }, [
1261
- a.value ? (g(), b("span", Vn, "progress_activity")) : se("", !0),
1255
+ a.value ? (g(), b("span", Ln, "progress_activity")) : oe("", !0),
1262
1256
  i[4] || (i[4] = d("span", { id: "login-form-button" }, "Login", -1))
1263
- ], 8, xn)
1257
+ ], 8, Sn)
1264
1258
  ])
1265
1259
  ], 32),
1266
1260
  i[5] || (i[5] = d("button", { class: "btn" }, [
@@ -1270,22 +1264,22 @@ const yn = { class: "aform_form-element" }, bn = ["id", "disabled", "maxlength",
1270
1264
  ])
1271
1265
  ]));
1272
1266
  }
1273
- }), Fn = /* @__PURE__ */ T(Pn, [["__scopeId", "data-v-6cbd3add"]]);
1274
- function Hn(e) {
1275
- e.component("ACheckbox", et), e.component("ACombobox", tt), e.component("ADate", at), e.component("ADropdown", wt), e.component("ADatePicker", Ut), e.component("AFieldset", zt), e.component("AFileAttach", an), e.component("AForm", xe), e.component("ANumericInput", fn), e.component("ATextInput", _n);
1267
+ }), Vn = /* @__PURE__ */ S($n, [["__scopeId", "data-v-6cbd3add"]]);
1268
+ function Pn(e) {
1269
+ e.component("ACheckbox", Ze), e.component("ACombobox", et), e.component("ADate", st), e.component("ADropdown", At), e.component("ADatePicker", jt), e.component("AFieldset", Qt), e.component("AFileAttach", on), e.component("AForm", $e), e.component("ANumericInput", un), e.component("ATextInput", bn);
1276
1270
  }
1277
1271
  export {
1278
- et as ACheckbox,
1279
- tt as AComboBox,
1280
- at as ADate,
1281
- Ut as ADatePicker,
1282
- wt as ADropdown,
1283
- zt as AFieldset,
1284
- an as AFileAttach,
1285
- xe as AForm,
1286
- fn as ANumericInput,
1287
- _n as ATextInput,
1288
- Fn as Login,
1289
- Hn as install
1272
+ Ze as ACheckbox,
1273
+ et as AComboBox,
1274
+ st as ADate,
1275
+ jt as ADatePicker,
1276
+ At as ADropdown,
1277
+ Qt as AFieldset,
1278
+ on as AFileAttach,
1279
+ $e as AForm,
1280
+ un as ANumericInput,
1281
+ bn as ATextInput,
1282
+ Vn as Login,
1283
+ Pn as install
1290
1284
  };
1291
1285
  //# sourceMappingURL=aform.js.map