@stonecrop/aform 0.24.0 → 0.26.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,6 +1,6 @@
1
- import { isBadgeDescriptor as qe, lookupBadge as ce, selectChoices as Be } from "@stonecrop/schema";
2
- import { install as Ce } from "@stonecrop/atable";
3
- import { defineComponent as V, computed as w, useModel as Y, openBlock as r, createElementBlock as m, Fragment as L, createElementVNode as t, toDisplayString as k, withDirectives as F, vModelCheckbox as Ve, vShow as Q, mergeModels as P, useId as Re, ref as p, inject as me, watch as J, normalizeClass as Z, withKeys as q, withModifiers as H, vModelText as G, createCommentVNode as B, renderList as j, renderSlot as ye, createTextVNode as se, unref as O, createVNode as ie, withCtx as Ne, useTemplateRef as oe, onMounted as Se, nextTick as He, reactive as he, vModelSelect as Ue, provide as Ee, createBlock as ee, normalizeStyle as fe, watchEffect as Pe, resolveDynamicComponent as De, mergeProps as Ke } from "vue";
1
+ import { isBadgeDescriptor as qe, lookupBadge as ce, selectChoices as Ce } from "@stonecrop/schema";
2
+ import { install as Be } from "@stonecrop/atable";
3
+ import { defineComponent as V, computed as w, useModel as Y, openBlock as r, createElementBlock as m, Fragment as L, createElementVNode as t, toDisplayString as k, withDirectives as F, vModelCheckbox as Ve, vShow as Q, mergeModels as P, useId as Re, ref as p, inject as me, watch as J, normalizeClass as Z, withKeys as q, withModifiers as H, vModelText as G, createCommentVNode as C, renderList as j, renderSlot as ye, createTextVNode as se, unref as O, createVNode as ie, withCtx as Ne, useTemplateRef as oe, onMounted as Se, nextTick as He, reactive as he, vModelSelect as Ue, provide as Ee, createBlock as ee, normalizeStyle as fe, watchEffect as Pe, resolveDynamicComponent as De, mergeProps as Ke } from "vue";
4
4
  import { vOnClickOutside as be } from "@vueuse/components";
5
5
  import { onClickOutside as ge, useFileDialog as Qe } from "@vueuse/core";
6
6
  import './assets/index.css';function ae(e) {
@@ -49,7 +49,18 @@ function we(e) {
49
49
  paddingLeft: "calc(1ch - 4px)"
50
50
  };
51
51
  }
52
- const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" }, Oe = { class: "aform_display-value" }, Xe = ["for"], Ze = { class: "aform_checkbox-container aform_input-field" }, je = ["id", "disabled", "required"], et = ["innerHTML"], tt = /* @__PURE__ */ V({
52
+ function We(e) {
53
+ const o = [];
54
+ for (const n of e)
55
+ if (n.kind === "fieldset")
56
+ o.push(...We(n.schema));
57
+ else if (n.kind === "field") {
58
+ const { kind: i, ...a } = n;
59
+ o.push(a);
60
+ }
61
+ return o;
62
+ }
63
+ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" }, Xe = { class: "aform_display-value" }, Ze = ["for"], je = { class: "aform_checkbox-container aform_input-field" }, et = ["id", "disabled", "required"], tt = ["innerHTML"], at = /* @__PURE__ */ V({
53
64
  __name: "ACheckbox",
54
65
  props: /* @__PURE__ */ P({
55
66
  schema: {},
@@ -68,16 +79,16 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
68
79
  emits: ["update:modelValue"],
69
80
  setup(e) {
70
81
  const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Y(e, "modelValue");
71
- return (i, a) => (r(), m("div", We, [
82
+ return (i, a) => (r(), m("div", Je, [
72
83
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
73
- t("label", Je, k(e.label), 1),
74
- t("span", Oe, k(n.value ? "✓" : "✗"), 1)
84
+ t("label", Oe, k(e.label), 1),
85
+ t("span", Xe, k(n.value ? "✓" : "✗"), 1)
75
86
  ], 64)) : (r(), m(L, { key: 1 }, [
76
87
  t("label", {
77
88
  class: "aform_field-label",
78
89
  for: e.uuid
79
- }, k(e.label), 9, Xe),
80
- t("span", Ze, [
90
+ }, k(e.label), 9, Ze),
91
+ t("span", je, [
81
92
  F(t("input", {
82
93
  id: e.uuid,
83
94
  "onUpdate:modelValue": a[0] || (a[0] = (u) => n.value = u),
@@ -85,14 +96,14 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
85
96
  class: "aform_checkbox",
86
97
  disabled: e.mode === "read",
87
98
  required: e.required
88
- }, null, 8, je), [
99
+ }, null, 8, et), [
89
100
  [Ve, n.value]
90
101
  ])
91
102
  ]),
92
103
  F(t("p", {
93
104
  class: "aform_error",
94
105
  innerHTML: o.value
95
- }, null, 8, et), [
106
+ }, null, 8, tt), [
96
107
  [Q, o.value]
97
108
  ])
98
109
  ], 64))
@@ -103,16 +114,16 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
103
114
  for (const [i, a] of o)
104
115
  n[i] = a;
105
116
  return n;
106
- }, at = /* @__PURE__ */ N(tt, [["__scopeId", "data-v-ca06741d"]]), lt = {
117
+ }, lt = /* @__PURE__ */ N(at, [["__scopeId", "data-v-ca06741d"]]), nt = {
107
118
  key: 0,
108
119
  class: "aform_display-value"
109
- }, nt = { class: "aform_form-link-wrapper" }, ot = { class: "input-group" }, st = ["placeholder", "aria-label", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "disabled", "onKeydown"], it = ["onKeydown"], ut = ["aria-label"], rt = {
120
+ }, ot = { class: "aform_form-link-wrapper" }, st = { class: "input-group" }, it = ["placeholder", "aria-label", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "disabled", "onKeydown"], ut = ["onKeydown"], rt = ["aria-label"], dt = {
110
121
  key: 0,
111
122
  class: "autocomplete-result loading"
112
- }, dt = ["id", "aria-selected", "onMousedown"], ct = {
123
+ }, ct = ["id", "aria-selected", "onMousedown"], mt = {
113
124
  key: 0,
114
125
  class: "aform_field-label"
115
- }, mt = /* @__PURE__ */ V({
126
+ }, ft = /* @__PURE__ */ V({
116
127
  __name: "AFormLink",
117
128
  props: /* @__PURE__ */ P({
118
129
  schema: {},
@@ -150,30 +161,30 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
150
161
  if (T == null) return;
151
162
  if (typeof T == "string") return T === "" ? void 0 : T;
152
163
  if (typeof T == "number") return String(T);
153
- const C = T.id;
154
- if (!(C == null || C === ""))
155
- return String(C);
164
+ const B = T.id;
165
+ if (!(B == null || B === ""))
166
+ return String(B);
156
167
  }
157
168
  function d(T) {
158
169
  if (T == null || typeof T != "object") return;
159
- const C = T.displayText;
160
- return typeof C == "string" || typeof C == "number" ? String(C) : void 0;
170
+ const B = T.displayText;
171
+ return typeof B == "string" || typeof B == "number" ? String(B) : void 0;
161
172
  }
162
173
  function l(T) {
163
174
  if (T != null && typeof T == "object") return T;
164
- const C = A(T);
165
- return C !== void 0 ? { id: C } : { id: "" };
175
+ const B = A(T);
176
+ return B !== void 0 ? { id: B } : { id: "" };
166
177
  }
167
178
  J(
168
179
  () => A(n.value),
169
180
  async (T) => {
170
181
  if (!(!T || d(n.value)))
171
182
  try {
172
- let C, E;
173
- if (e.filterFunction ? (C = (await (typeof e.filterFunction == "string" ? ae(e.filterFunction) : e.filterFunction)(String(T))).find((re) => String(re.id) === String(T)), E = C?.displayText, E === void 0 && console.warn(
183
+ let B, E;
184
+ if (e.filterFunction ? (B = (await (typeof e.filterFunction == "string" ? ae(e.filterFunction) : e.filterFunction)(String(T))).find((re) => String(re.id) === String(T)), E = B?.displayText, E === void 0 && console.warn(
174
185
  `[AFormLink] filterFunction returned no matching result for id "${T}". The function must return an item whose \`id\` exactly matches the search string.`
175
186
  )) : $ && e.doctype && (E = await $(e.doctype, T.toString()) ?? void 0), E) {
176
- const X = { ...l(n.value), ...C, id: T, displayText: E };
187
+ const X = { ...l(n.value), ...B, id: T, displayText: E };
177
188
  u.value = e.formatter ? e.formatter(X) : E, n.value = X;
178
189
  }
179
190
  } catch {
@@ -190,8 +201,8 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
190
201
  if (!(!e.filterFunction || e.mode === "read")) {
191
202
  s.value = null, y.value = !0, e.isAsync && (g.value = !0);
192
203
  try {
193
- const C = typeof e.filterFunction == "string" ? ae(e.filterFunction) : e.filterFunction;
194
- h.value = await C(T) ?? [];
204
+ const B = typeof e.filterFunction == "string" ? ae(e.filterFunction) : e.filterFunction;
205
+ h.value = await B(T) ?? [];
195
206
  } catch {
196
207
  h.value = [];
197
208
  } finally {
@@ -212,14 +223,14 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
212
223
  }, te = () => {
213
224
  s.value !== null && h.value[s.value] && I(h.value[s.value]);
214
225
  };
215
- return (T, C) => (r(), m("div", {
226
+ return (T, B) => (r(), m("div", {
216
227
  class: Z(["aform_form-element", { "aform_form-element--embedded": e.embedded }])
217
228
  }, [
218
- e.mode === "display" ? (r(), m("span", lt, k(a.value), 1)) : (r(), m(L, { key: 1 }, [
219
- F((r(), m("div", nt, [
220
- t("div", ot, [
229
+ e.mode === "display" ? (r(), m("span", nt, k(a.value), 1)) : (r(), m(L, { key: 1 }, [
230
+ F((r(), m("div", ot, [
231
+ t("div", st, [
221
232
  F(t("input", {
222
- "onUpdate:modelValue": C[0] || (C[0] = (E) => u.value = E),
233
+ "onUpdate:modelValue": B[0] || (B[0] = (E) => u.value = E),
223
234
  type: "text",
224
235
  role: "combobox",
225
236
  autocomplete: "off",
@@ -241,7 +252,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
241
252
  q(M, ["esc"]),
242
253
  q(M, ["tab"])
243
254
  ]
244
- }, null, 42, st), [
255
+ }, null, 42, it), [
245
256
  [G, u.value]
246
257
  ]),
247
258
  i.value && !e.disabled && !e.embedded ? (r(), m("button", {
@@ -252,7 +263,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
252
263
  onKeydown: q(H(f, ["prevent"]), ["enter"])
253
264
  }, [
254
265
  t("span", null, k(e.icon === "chevron-right" ? "›" : "→"), 1)
255
- ], 40, it)) : B("", !0)
266
+ ], 40, ut)) : C("", !0)
256
267
  ]),
257
268
  y.value ? (r(), m("ul", {
258
269
  key: 0,
@@ -261,7 +272,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
261
272
  role: "listbox",
262
273
  "aria-label": e.ariaLabel
263
274
  }, [
264
- g.value ? (r(), m("li", rt, "Loading…")) : (r(!0), m(L, { key: 1 }, j(h.value, (E, X) => (r(), m("li", {
275
+ g.value ? (r(), m("li", dt, "Loading…")) : (r(!0), m(L, { key: 1 }, j(h.value, (E, X) => (r(), m("li", {
265
276
  id: `${o}-opt-${X}`,
266
277
  key: String(E.id),
267
278
  role: "option",
@@ -272,16 +283,16 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
272
283
  ye(T.$slots, "option", { option: E }, () => [
273
284
  se(k(E.displayText ?? String(E.id)), 1)
274
285
  ], !0)
275
- ], 42, dt))), 128))
276
- ], 8, ut)) : B("", !0)
286
+ ], 42, ct))), 128))
287
+ ], 8, rt)) : C("", !0)
277
288
  ])), [
278
289
  [O(be), v]
279
290
  ]),
280
- e.label && !e.embedded ? (r(), m("label", ct, k(e.label), 1)) : B("", !0)
291
+ e.label && !e.embedded ? (r(), m("label", mt, k(e.label), 1)) : C("", !0)
281
292
  ], 64))
282
293
  ], 2));
283
294
  }
284
- }), Ae = /* @__PURE__ */ N(mt, [["__scopeId", "data-v-154d79c9"]]), ft = { class: "aform_form-element acurrency" }, vt = { class: "aform_display-value" }, yt = { class: "aform_field-label" }, ht = { class: "acurrency__row" }, bt = { class: "acurrency__field acurrency__field--amount" }, gt = { class: "acurrency__group" }, kt = { class: "acurrency__currency" }, $t = { class: "acurrency__amount-wrap" }, xt = ["id", "disabled", "required"], Dt = ["for"], wt = { class: "acurrency__row acurrency__row--base" }, Mt = { class: "acurrency__field acurrency__field--base-currency" }, Tt = ["value"], St = { class: "aform_field-label" }, At = { class: "acurrency__field acurrency__field--base-amount" }, pt = ["value"], It = { class: "aform_field-label" }, _t = { class: "acurrency__field acurrency__field--exchange-rate" }, Lt = ["value"], Ft = { class: "aform_field-label" }, qt = ["innerHTML"], Me = 6, Bt = /* @__PURE__ */ V({
295
+ }), Ae = /* @__PURE__ */ N(ft, [["__scopeId", "data-v-154d79c9"]]), vt = { class: "aform_form-element acurrency" }, yt = { class: "aform_display-value" }, ht = { class: "aform_field-label" }, bt = { class: "acurrency__row" }, gt = { class: "acurrency__field acurrency__field--amount" }, kt = { class: "acurrency__group" }, $t = { class: "acurrency__currency" }, xt = { class: "acurrency__amount-wrap" }, Dt = ["id", "disabled", "required"], wt = ["for"], Mt = { class: "acurrency__row acurrency__row--base" }, Tt = { class: "acurrency__field acurrency__field--base-currency" }, St = ["value"], At = { class: "aform_field-label" }, pt = { class: "acurrency__field acurrency__field--base-amount" }, It = ["value"], _t = { class: "aform_field-label" }, Lt = { class: "acurrency__field acurrency__field--exchange-rate" }, Ft = ["value"], qt = { class: "aform_field-label" }, Ct = ["innerHTML"], Me = 6, Bt = /* @__PURE__ */ V({
285
296
  __name: "ACurrencyInput",
286
297
  props: /* @__PURE__ */ P({
287
298
  schema: {},
@@ -386,15 +397,15 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
386
397
  const I = v.baseCurrency.displayText ?? String(v.baseCurrency.id);
387
398
  return `${b} (${v.baseAmount} ${I})`;
388
399
  });
389
- return (v, D) => (r(), m("div", ft, [
400
+ return (v, D) => (r(), m("div", vt, [
390
401
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
391
- t("span", vt, k(M.value), 1),
392
- t("label", yt, k(e.label), 1)
402
+ t("span", yt, k(M.value), 1),
403
+ t("label", ht, k(e.label), 1)
393
404
  ], 64)) : (r(), m(L, { key: 1 }, [
394
- t("div", ht, [
395
- t("div", bt, [
396
- t("div", gt, [
397
- t("div", kt, [
405
+ t("div", bt, [
406
+ t("div", gt, [
407
+ t("div", kt, [
408
+ t("div", $t, [
398
409
  ie(Ae, {
399
410
  modelValue: A.value,
400
411
  "onUpdate:modelValue": D[0] || (D[0] = (b) => A.value = b),
@@ -414,7 +425,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
414
425
  _: 1
415
426
  }, 8, ["modelValue", "mode", "placeholder", "aria-label", "required", "doctype", "filter-function", "is-async"])
416
427
  ]),
417
- t("div", $t, [
428
+ t("div", xt, [
418
429
  F(t("input", {
419
430
  id: e.uuid,
420
431
  "onUpdate:modelValue": D[1] || (D[1] = (b) => $.value = b),
@@ -424,7 +435,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
424
435
  required: e.required,
425
436
  onKeydown: l,
426
437
  onPaste: f
427
- }, null, 40, xt), [
438
+ }, null, 40, Dt), [
428
439
  [
429
440
  G,
430
441
  $.value,
@@ -435,57 +446,57 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
435
446
  t("label", {
436
447
  class: "aform_field-label",
437
448
  for: e.uuid
438
- }, k(e.label), 9, Dt)
449
+ }, k(e.label), 9, wt)
439
450
  ])
440
451
  ])
441
452
  ])
442
453
  ]),
443
- t("div", wt, [
444
- t("div", Mt, [
454
+ t("div", Mt, [
455
+ t("div", Tt, [
445
456
  t("input", {
446
457
  value: y.value,
447
458
  class: "aform_input-field acurrency__base-field",
448
459
  type: "text",
449
460
  disabled: ""
450
- }, null, 8, Tt),
451
- t("label", St, k(e.baseCurrencyLabel), 1)
461
+ }, null, 8, St),
462
+ t("label", At, k(e.baseCurrencyLabel), 1)
452
463
  ]),
453
- t("div", At, [
464
+ t("div", pt, [
454
465
  t("input", {
455
466
  value: n.value.baseAmount,
456
467
  class: "aform_input-field acurrency__base-field",
457
468
  type: "number",
458
469
  disabled: ""
459
- }, null, 8, pt),
460
- t("label", It, k(e.baseAmountLabel), 1)
470
+ }, null, 8, It),
471
+ t("label", _t, k(e.baseAmountLabel), 1)
461
472
  ]),
462
- t("div", _t, [
473
+ t("div", Lt, [
463
474
  t("input", {
464
475
  value: n.value.exchangeRate,
465
476
  class: "aform_input-field acurrency__base-field",
466
477
  type: "number",
467
478
  disabled: ""
468
- }, null, 8, Lt),
469
- t("label", Ft, k(e.exchangeRateLabel), 1)
479
+ }, null, 8, Ft),
480
+ t("label", qt, k(e.exchangeRateLabel), 1)
470
481
  ])
471
482
  ]),
472
483
  F(t("p", {
473
484
  class: "aform_error",
474
485
  innerHTML: e.validation.errorMessage
475
- }, null, 8, qt), [
486
+ }, null, 8, Ct), [
476
487
  [Q, e.validation.errorMessage]
477
488
  ])
478
489
  ], 64))
479
490
  ]));
480
491
  }
481
- }), Ct = /* @__PURE__ */ N(Bt, [["__scopeId", "data-v-15bec6ef"]]), Vt = { class: "aform_display-value" }, Rt = { key: 0 }, Nt = ["innerHTML"], Ht = {
492
+ }), Vt = /* @__PURE__ */ N(Bt, [["__scopeId", "data-v-15bec6ef"]]), Rt = { class: "aform_display-value" }, Nt = { key: 0 }, Ht = ["innerHTML"], Ut = {
482
493
  ref: "datepicker",
483
494
  class: "adatepicker",
484
495
  tabindex: "0"
485
- }, Ut = {
496
+ }, Et = {
486
497
  colspan: "5",
487
498
  tabindex: -1
488
- }, Et = { key: 0 }, Pt = { colspan: "7" }, Kt = { class: "date-input" }, Qt = ["value"], Yt = ["value"], Gt = ["onClick", "onKeydown", "onMouseover"], zt = ["innerHTML"], Wt = 6, Te = 7, Jt = /* @__PURE__ */ V({
499
+ }, Pt = { key: 0 }, Kt = { colspan: "7" }, Qt = { class: "date-input" }, Yt = ["value"], Gt = ["value"], zt = ["onClick", "onKeydown", "onMouseover"], Wt = ["innerHTML"], Jt = 6, Te = 7, Ot = /* @__PURE__ */ V({
489
500
  __name: "ADatePicker",
490
501
  props: /* @__PURE__ */ P({
491
502
  schema: {},
@@ -520,7 +531,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
520
531
  if (!W(_)) return !1;
521
532
  const U = new Date(S), K = $.value, ne = W(K) ? K : new Date(s.value);
522
533
  return U.getTime() > _.getTime() && U.getTime() < ne.getTime();
523
- }, T = (S, _) => h.value[z(S, _)], C = (S) => {
534
+ }, T = (S, _) => h.value[z(S, _)], B = (S) => {
524
535
  s.value = new Date(h.value[S]);
525
536
  }, E = (S) => {
526
537
  S.target?.tagName !== "INPUT" && S.preventDefault();
@@ -575,16 +586,16 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
575
586
  _.length > 0 && _[0].focus();
576
587
  }
577
588
  }), J([y, g], X), o({ currentMonth: y, currentYear: g, selectedDate: u }), (S, _) => e.mode === "display" || e.mode === "read" ? (r(), m(L, { key: 0 }, [
578
- t("span", Vt, k(a.value ? new Date(a.value).toLocaleDateString() : ""), 1),
579
- e.label ? (r(), m("label", Rt, k(e.label), 1)) : B("", !0),
589
+ t("span", Rt, k(a.value ? new Date(a.value).toLocaleDateString() : ""), 1),
590
+ e.label ? (r(), m("label", Nt, k(e.label), 1)) : C("", !0),
580
591
  F(t("p", {
581
592
  class: "aform_error",
582
593
  innerHTML: i.value
583
- }, null, 8, Nt), [
594
+ }, null, 8, Ht), [
584
595
  [Q, i.value]
585
596
  ])
586
597
  ], 64)) : (r(), m(L, { key: 1 }, [
587
- t("div", Ht, [
598
+ t("div", Ut, [
588
599
  t("table", { onMousedown: E }, [
589
600
  t("tbody", null, [
590
601
  t("tr", null, [
@@ -593,16 +604,16 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
593
604
  tabindex: -1,
594
605
  onClick: _e
595
606
  }, "<"),
596
- t("th", Ut, k(f.value), 1),
607
+ t("th", Et, k(f.value), 1),
597
608
  t("td", {
598
609
  id: "next-month-btn",
599
610
  tabindex: -1,
600
611
  onClick: Le
601
612
  }, ">")
602
613
  ]),
603
- e.selectRange ? (r(), m("tr", Et, [
604
- t("td", Pt, [
605
- t("div", Kt, [
614
+ e.selectRange ? (r(), m("tr", Pt, [
615
+ t("td", Kt, [
616
+ t("div", Qt, [
606
617
  t("input", {
607
618
  ref: "start-date-input",
608
619
  value: c.value,
@@ -611,7 +622,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
611
622
  placeholder: "start date",
612
623
  onBlur: _[0] || (_[0] = (U) => de()),
613
624
  onKeydown: ke
614
- }, null, 40, Qt),
625
+ }, null, 40, Yt),
615
626
  _[2] || (_[2] = t("div", null, "-", -1)),
616
627
  t("input", {
617
628
  ref: "end-date-input",
@@ -621,10 +632,10 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
621
632
  placeholder: "end date",
622
633
  onBlur: _[1] || (_[1] = (U) => de()),
623
634
  onKeydown: ke
624
- }, null, 40, Yt)
635
+ }, null, 40, Gt)
625
636
  ])
626
637
  ])
627
- ])) : B("", !0),
638
+ ])) : C("", !0),
628
639
  _[3] || (_[3] = t("tr", { class: "days-header" }, [
629
640
  t("td", null, "M"),
630
641
  t("td", null, "T"),
@@ -634,7 +645,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
634
645
  t("td", null, "S"),
635
646
  t("td", null, "S")
636
647
  ], -1)),
637
- (r(), m(L, null, j(Wt, (U) => t("tr", { key: U }, [
648
+ (r(), m(L, null, j(Jt, (U) => t("tr", { key: U }, [
638
649
  (r(), m(L, null, j(Te, (K) => t("td", {
639
650
  ref_for: !0,
640
651
  ref: "celldate",
@@ -651,8 +662,8 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
651
662
  tabindex: 0,
652
663
  onClick: H((ne) => $e(z(U, K)), ["prevent", "stop"]),
653
664
  onKeydown: q((ne) => $e(z(U, K)), ["enter"]),
654
- onMouseover: (ne) => C(z(U, K))
655
- }, k(new Date(T(U, K)).getDate()), 43, Gt)), 64))
665
+ onMouseover: (ne) => B(z(U, K))
666
+ }, k(new Date(T(U, K)).getDate()), 43, zt)), 64))
656
667
  ])), 64))
657
668
  ])
658
669
  ], 32)
@@ -660,15 +671,15 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
660
671
  F(t("p", {
661
672
  class: "aform_error",
662
673
  innerHTML: i.value
663
- }, null, 8, zt), [
674
+ }, null, 8, Wt), [
664
675
  [Q, i.value]
665
676
  ])
666
677
  ], 64));
667
678
  }
668
- }), pe = /* @__PURE__ */ N(Jt, [["__scopeId", "data-v-322c2ceb"]]), Ot = { class: "adate_time" }, Xt = { class: "adate_time_fields" }, Zt = ["onKeydown"], jt = ["onKeydown"], ea = {
679
+ }), pe = /* @__PURE__ */ N(Ot, [["__scopeId", "data-v-322c2ceb"]]), Xt = { class: "adate_time" }, Zt = { class: "adate_time_fields" }, jt = ["onKeydown"], ea = ["onKeydown"], ta = {
669
680
  key: 0,
670
681
  class: "colon"
671
- }, ta = ["onKeydown"], aa = /* @__PURE__ */ V({
682
+ }, aa = ["onKeydown"], la = /* @__PURE__ */ V({
672
683
  __name: "ADateTimeInput",
673
684
  props: {
674
685
  allowMilitaryTime: { type: Boolean, default: !1 },
@@ -750,8 +761,8 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
750
761
  M instanceof HTMLInputElement && (M.value = c, M.dispatchEvent(new Event("input")));
751
762
  }
752
763
  };
753
- return (d, l) => (r(), m("div", Ot, [
754
- t("div", Xt, [
764
+ return (d, l) => (r(), m("div", Xt, [
765
+ t("div", Zt, [
755
766
  F(t("input", {
756
767
  "onUpdate:modelValue": l[0] || (l[0] = (f) => a.hours = f),
757
768
  type: "text",
@@ -764,7 +775,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
764
775
  l[2] || (l[2] = q(H((f) => s("hours"), ["prevent"]), ["up"])),
765
776
  l[3] || (l[3] = q(H((f) => s("hours", -1), ["prevent"]), ["down"]))
766
777
  ]
767
- }, null, 40, Zt), [
778
+ }, null, 40, jt), [
768
779
  [G, a.hours]
769
780
  ]),
770
781
  l[12] || (l[12] = t("span", { class: "colon" }, ":", -1)),
@@ -780,10 +791,10 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
780
791
  l[5] || (l[5] = q(H((f) => s("minutes"), ["prevent"]), ["up"])),
781
792
  l[6] || (l[6] = q(H((f) => s("minutes", -1), ["prevent"]), ["down"]))
782
793
  ]
783
- }, null, 40, jt), [
794
+ }, null, 40, ea), [
784
795
  [G, a.minutes]
785
796
  ]),
786
- e.useSeconds ? (r(), m("span", ea, ":")) : B("", !0),
797
+ e.useSeconds ? (r(), m("span", ta, ":")) : C("", !0),
787
798
  e.useSeconds ? F((r(), m("input", {
788
799
  key: 1,
789
800
  "onUpdate:modelValue": l[7] || (l[7] = (f) => a.seconds = f),
@@ -797,10 +808,10 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
797
808
  l[8] || (l[8] = q(H((f) => s("seconds"), ["prevent"]), ["up"])),
798
809
  l[9] || (l[9] = q(H((f) => s("seconds", -1), ["prevent"]), ["down"]))
799
810
  ]
800
- }, null, 40, ta)), [
811
+ }, null, 40, aa)), [
801
812
  [G, a.seconds]
802
- ]) : B("", !0),
803
- e.allowMilitaryTime ? B("", !0) : F((r(), m("select", {
813
+ ]) : C("", !0),
814
+ e.allowMilitaryTime ? C("", !0) : F((r(), m("select", {
804
815
  key: 2,
805
816
  ref: "meridiem-selector",
806
817
  "onUpdate:modelValue": l[10] || (l[10] = (f) => u.value = f),
@@ -815,10 +826,10 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
815
826
  ])
816
827
  ]));
817
828
  }
818
- }), ve = /* @__PURE__ */ N(aa, [["__scopeId", "data-v-95ad0aa4"]]), la = { class: "adate-selection" }, na = {
829
+ }), ve = /* @__PURE__ */ N(la, [["__scopeId", "data-v-95ad0aa4"]]), na = { class: "adate-selection" }, oa = {
819
830
  key: 3,
820
831
  class: "empty"
821
- }, oa = /* @__PURE__ */ V({
832
+ }, sa = /* @__PURE__ */ V({
822
833
  __name: "ADateSelection",
823
834
  props: {
824
835
  showDate: { type: Boolean, default: !0 },
@@ -861,12 +872,12 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
861
872
  }, d = (l) => {
862
873
  g.value = s(l), x(l.source ?? "user");
863
874
  };
864
- return (l, f) => (r(), m("div", la, [
875
+ return (l, f) => (r(), m("div", na, [
865
876
  e.showDate ? (r(), ee(pe, {
866
877
  key: 0,
867
878
  "select-range": e.selectRange,
868
879
  onGetDate: $
869
- }, null, 8, ["select-range"])) : B("", !0),
880
+ }, null, 8, ["select-range"])) : C("", !0),
870
881
  e.showTime ? (r(), ee(ve, {
871
882
  key: 1,
872
883
  "allow-military-time": e.allowMilitaryTime,
@@ -876,7 +887,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
876
887
  "default-meridiem": e.defaultMeridiem,
877
888
  "use-seconds": e.useSeconds,
878
889
  onGetTime: A
879
- }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : B("", !0),
890
+ }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : C("", !0),
880
891
  e.selectRange && e.showTime && e.showEndTime ? (r(), m(L, { key: 2 }, [
881
892
  f[0] || (f[0] = t("div", { class: "adate-selection__end-label" }, "End time", -1)),
882
893
  ie(ve, {
@@ -888,11 +899,11 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
888
899
  "use-seconds": e.useSeconds,
889
900
  onGetTime: d
890
901
  }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])
891
- ], 64)) : B("", !0),
892
- !e.showTime && !e.showDate ? (r(), m("p", na, "empty")) : B("", !0)
902
+ ], 64)) : C("", !0),
903
+ !e.showTime && !e.showDate ? (r(), m("p", oa, "empty")) : C("", !0)
893
904
  ]));
894
905
  }
895
- }), le = /* @__PURE__ */ N(oa, [["__scopeId", "data-v-602dfd69"]]), sa = { class: "aform_form-element" }, ia = { class: "aform_display-value" }, ua = { class: "aform_field-label" }, ra = ["id", "disabled", "required"], da = ["for"], ca = ["innerHTML"], ma = /* @__PURE__ */ V({
906
+ }), le = /* @__PURE__ */ N(sa, [["__scopeId", "data-v-602dfd69"]]), ia = { class: "aform_form-element" }, ua = { class: "aform_display-value" }, ra = { class: "aform_field-label" }, da = ["id", "disabled", "required"], ca = ["for"], ma = ["innerHTML"], fa = /* @__PURE__ */ V({
896
907
  __name: "ADate",
897
908
  props: /* @__PURE__ */ P({
898
909
  schema: {},
@@ -929,10 +940,10 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
929
940
  const h = (s) => {
930
941
  i.value = s.selected, n.value = a.value, y.value = !1;
931
942
  };
932
- return (s, x) => (r(), m("div", sa, [
943
+ return (s, x) => (r(), m("div", ia, [
933
944
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
934
- t("span", ia, k(n.value ? new Date(a.value).toLocaleDateString() : ""), 1),
935
- t("label", ua, k(e.label), 1)
945
+ t("span", ua, k(n.value ? new Date(a.value).toLocaleDateString() : ""), 1),
946
+ t("label", ra, k(e.label), 1)
936
947
  ], 64)) : (r(), m(L, { key: 1 }, [
937
948
  F(t("input", {
938
949
  id: e.uuid,
@@ -943,17 +954,17 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
943
954
  disabled: e.mode === "read",
944
955
  required: e.required,
945
956
  onClick: g
946
- }, null, 8, ra), [
957
+ }, null, 8, da), [
947
958
  [G, a.value]
948
959
  ]),
949
960
  t("label", {
950
961
  class: "aform_field-label",
951
962
  for: e.uuid
952
- }, k(e.label), 9, da),
963
+ }, k(e.label), 9, ca),
953
964
  F(t("p", {
954
965
  class: "aform_error",
955
966
  innerHTML: o.value
956
- }, null, 8, ca), [
967
+ }, null, 8, ma), [
957
968
  [Q, o.value]
958
969
  ]),
959
970
  y.value ? (r(), ee(le, {
@@ -963,20 +974,20 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
963
974
  "select-range": !1,
964
975
  "show-time": !1,
965
976
  onGetDate: h
966
- }, null, 512)) : B("", !0)
977
+ }, null, 512)) : C("", !0)
967
978
  ], 64))
968
979
  ]));
969
980
  }
970
- }), fa = /* @__PURE__ */ N(ma, [["__scopeId", "data-v-5de3fe7a"]]), va = { class: "aform_form-element" }, ya = {
981
+ }), va = /* @__PURE__ */ N(fa, [["__scopeId", "data-v-5de3fe7a"]]), ya = { class: "aform_form-element" }, ha = {
971
982
  key: 1,
972
983
  class: "aform_display-value"
973
- }, ha = { class: "aform_field-label" }, ba = ["disabled"], ga = {
984
+ }, ba = { class: "aform_field-label" }, ga = ["disabled"], ka = {
974
985
  id: "autocomplete-results",
975
986
  class: "autocomplete-results"
976
- }, ka = {
987
+ }, $a = {
977
988
  key: 0,
978
989
  class: "loading autocomplete-result"
979
- }, $a = ["onClick"], xa = { class: "aform_field-label" }, Da = ["innerHTML"], wa = /* @__PURE__ */ V({
990
+ }, xa = ["onClick"], Da = { class: "aform_field-label" }, wa = ["innerHTML"], Ma = /* @__PURE__ */ V({
980
991
  __name: "ADropdown",
981
992
  props: /* @__PURE__ */ P({
982
993
  schema: {},
@@ -998,7 +1009,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
998
1009
  }),
999
1010
  emits: ["update:modelValue"],
1000
1011
  setup(e) {
1001
- const o = w(() => Be(e.options)), n = w(() => e.format ? ae(e.format) : void 0), i = w(() => Ye(g.value, e.options, n.value)), a = w(() => we(i.value)), u = w(() => we(i.value)), y = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), g = Y(e, "modelValue"), h = p(g.value ?? ""), s = he({
1012
+ const o = w(() => Ce(e.options)), n = w(() => e.format ? ae(e.format) : void 0), i = w(() => Ye(g.value, e.options, n.value)), a = w(() => we(i.value)), u = w(() => we(i.value)), y = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), g = Y(e, "modelValue"), h = p(g.value ?? ""), s = he({
1002
1013
  activeItemIndex: null,
1003
1014
  open: !1,
1004
1015
  loading: !1,
@@ -1054,14 +1065,14 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1054
1065
  }
1055
1066
  s.activeItemIndex = 0;
1056
1067
  };
1057
- return (D, b) => (r(), m("div", va, [
1068
+ return (D, b) => (r(), m("div", ya, [
1058
1069
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
1059
1070
  i.value ? (r(), m("span", {
1060
1071
  key: 0,
1061
1072
  class: "aform_display-value",
1062
1073
  style: fe(u.value)
1063
- }, k(i.value.label), 5)) : (r(), m("span", ya, k(g.value ?? ""), 1)),
1064
- t("label", ha, k(e.label), 1)
1074
+ }, k(i.value.label), 5)) : (r(), m("span", ha, k(g.value ?? ""), 1)),
1075
+ t("label", ba, k(e.label), 1)
1065
1076
  ], 64)) : (r(), m(L, { key: 1 }, [
1066
1077
  F((r(), m("div", {
1067
1078
  class: Z(["autocomplete", { isOpen: s.open }])
@@ -1081,32 +1092,32 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1081
1092
  q(x, ["esc"]),
1082
1093
  q(x, ["tab"])
1083
1094
  ]
1084
- }, null, 44, ba), [
1095
+ }, null, 44, ga), [
1085
1096
  [G, g.value]
1086
1097
  ]),
1087
- F(t("ul", ga, [
1088
- s.loading ? (r(), m("li", ka, "Loading results...")) : (r(!0), m(L, { key: 1 }, j(s.results, (I, R) => (r(), m("li", {
1098
+ F(t("ul", ka, [
1099
+ s.loading ? (r(), m("li", $a, "Loading results...")) : (r(!0), m(L, { key: 1 }, j(s.results, (I, R) => (r(), m("li", {
1089
1100
  key: I,
1090
1101
  class: Z(["autocomplete-result", { "is-active": R === s.activeItemIndex }]),
1091
1102
  onClick: H((z) => A(I), ["stop"])
1092
- }, k(I), 11, $a))), 128))
1103
+ }, k(I), 11, xa))), 128))
1093
1104
  ], 512), [
1094
1105
  [Q, s.open]
1095
1106
  ]),
1096
- t("label", xa, k(e.label), 1)
1107
+ t("label", Da, k(e.label), 1)
1097
1108
  ], 2)), [
1098
1109
  [O(be), x]
1099
1110
  ]),
1100
1111
  F(t("p", {
1101
1112
  class: "aform_error",
1102
1113
  innerHTML: y.value
1103
- }, null, 8, Da), [
1114
+ }, null, 8, wa), [
1104
1115
  [Q, y.value]
1105
1116
  ])
1106
1117
  ], 64))
1107
1118
  ]));
1108
1119
  }
1109
- }), Ma = /* @__PURE__ */ N(wa, [["__scopeId", "data-v-11fc3569"]]), Ta = /* @__PURE__ */ V({
1120
+ }), Ta = /* @__PURE__ */ N(Ma, [["__scopeId", "data-v-11fc3569"]]), Sa = /* @__PURE__ */ V({
1110
1121
  __name: "ABadge",
1111
1122
  props: {
1112
1123
  label: {},
@@ -1143,9 +1154,9 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1143
1154
  key: 0,
1144
1155
  class: Z(y.value),
1145
1156
  style: fe(g.value)
1146
- }, k(i.value), 7)) : B("", !0);
1157
+ }, k(i.value), 7)) : C("", !0);
1147
1158
  }
1148
- }), Sa = /* @__PURE__ */ N(Ta, [["__scopeId", "data-v-4f364f5f"]]), Aa = { class: "aform_form-element" }, pa = { class: "aform_display-value" }, Ia = { class: "aform_field-label" }, _a = ["id", "value", "disabled"], La = ["for"], Fa = ["innerHTML"], qa = /* @__PURE__ */ V({
1159
+ }), Aa = /* @__PURE__ */ N(Sa, [["__scopeId", "data-v-4f364f5f"]]), pa = { class: "aform_form-element" }, Ia = { class: "aform_display-value" }, _a = { class: "aform_field-label" }, La = ["id", "value", "disabled"], Fa = ["for"], qa = ["innerHTML"], Ca = /* @__PURE__ */ V({
1149
1160
  __name: "ADateTime",
1150
1161
  props: /* @__PURE__ */ P({
1151
1162
  schema: {},
@@ -1192,10 +1203,10 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1192
1203
  (d) => {
1193
1204
  d && (i.value = new Date(d));
1194
1205
  }
1195
- ), (d, l) => (r(), m("div", Aa, [
1206
+ ), (d, l) => (r(), m("div", pa, [
1196
1207
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
1197
- t("span", pa, k(g.value), 1),
1198
- t("label", Ia, k(e.label), 1)
1208
+ t("span", Ia, k(g.value), 1),
1209
+ t("label", _a, k(e.label), 1)
1199
1210
  ], 64)) : (r(), m(L, { key: 1 }, [
1200
1211
  t("input", {
1201
1212
  id: e.uuid,
@@ -1206,15 +1217,15 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1206
1217
  disabled: e.mode === "read",
1207
1218
  readonly: "",
1208
1219
  onClick: y
1209
- }, null, 8, _a),
1220
+ }, null, 8, La),
1210
1221
  t("label", {
1211
1222
  class: "aform_field-label",
1212
1223
  for: e.uuid
1213
- }, k(e.label), 9, La),
1224
+ }, k(e.label), 9, Fa),
1214
1225
  F(t("p", {
1215
1226
  class: "aform_error",
1216
1227
  innerHTML: o.value
1217
- }, null, 8, Fa), [
1228
+ }, null, 8, qa), [
1218
1229
  [Q, o.value]
1219
1230
  ]),
1220
1231
  a.value ? (r(), ee(le, {
@@ -1233,14 +1244,14 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1233
1244
  "use-seconds": e.useSeconds,
1234
1245
  onGetDate: $,
1235
1246
  onGetTime: A
1236
- }, null, 8, ["default-hours", "default-minutes", "default-seconds", "default-meridiem", "allow-military-time", "use-seconds"])) : B("", !0)
1247
+ }, null, 8, ["default-hours", "default-minutes", "default-seconds", "default-meridiem", "allow-military-time", "use-seconds"])) : C("", !0)
1237
1248
  ], 64))
1238
1249
  ]));
1239
1250
  }
1240
- }), Ba = /* @__PURE__ */ N(qa, [["__scopeId", "data-v-b0fa488b"]]), Ca = { class: "aduration" }, Va = { class: "aform_display-value" }, Ra = { class: "aduration__footer" }, Na = {
1251
+ }), Ba = /* @__PURE__ */ N(Ca, [["__scopeId", "data-v-b0fa488b"]]), Va = { class: "aduration" }, Ra = { class: "aform_display-value" }, Na = { class: "aduration__footer" }, Ha = {
1241
1252
  key: 0,
1242
1253
  class: "aduration__summary"
1243
- }, Ha = { class: "aduration__value" }, Ua = { class: "aduration__ms" }, Ea = /* @__PURE__ */ V({
1254
+ }, Ua = { class: "aduration__value" }, Ea = { class: "aduration__ms" }, Pa = /* @__PURE__ */ V({
1244
1255
  __name: "ADuration",
1245
1256
  props: /* @__PURE__ */ P({
1246
1257
  label: { default: "Duration" },
@@ -1274,9 +1285,9 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1274
1285
  const s = Math.floor(h / 1e3) % 60, x = Math.floor(h / 6e4) % 60, $ = Math.floor(h / 36e5) % 24, A = Math.floor(h / 864e5);
1275
1286
  return [A && `${A}d`, $ && `${$}h`, x && `${x}m`, s && `${s}s`].filter(Boolean).join(" ") || "0s";
1276
1287
  });
1277
- return (h, s) => (r(), m("div", Ca, [
1288
+ return (h, s) => (r(), m("div", Va, [
1278
1289
  e.mode === "display" || e.mode === "read" ? (r(), m(L, { key: 0 }, [
1279
- t("span", Va, k(g.value), 1),
1290
+ t("span", Ra, k(g.value), 1),
1280
1291
  t("label", null, k(e.label), 1)
1281
1292
  ], 64)) : (r(), m(L, { key: 1 }, [
1282
1293
  ie(le, {
@@ -1288,18 +1299,18 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1288
1299
  "use-seconds": e.useSeconds,
1289
1300
  onGetRange: u
1290
1301
  }, null, 8, ["allow-military-time", "use-seconds"]),
1291
- t("div", Ra, [
1302
+ t("div", Na, [
1292
1303
  t("label", null, k(e.label), 1),
1293
- n.value && i.value ? (r(), m("div", Na, [
1304
+ n.value && i.value ? (r(), m("div", Ha, [
1294
1305
  s[0] || (s[0] = t("span", { class: "aduration__label" }, "Duration:", -1)),
1295
- t("span", Ha, k(y.value), 1),
1296
- t("span", Ua, "(" + k(o.value ?? 0) + " ms)", 1)
1297
- ])) : B("", !0)
1306
+ t("span", Ua, k(y.value), 1),
1307
+ t("span", Ea, "(" + k(o.value ?? 0) + " ms)", 1)
1308
+ ])) : C("", !0)
1298
1309
  ])
1299
1310
  ], 64))
1300
1311
  ]));
1301
1312
  }
1302
- }), Pa = /* @__PURE__ */ N(Ea, [["__scopeId", "data-v-2e4dd7dd"]]), Ka = { class: "aform_form-element" }, Qa = { class: "aform_display-value" }, Ya = { class: "aform_field-label" }, Ga = ["id", "value", "disabled"], za = ["for"], Wa = ["innerHTML"], Ja = /* @__PURE__ */ V({
1313
+ }), Ka = /* @__PURE__ */ N(Pa, [["__scopeId", "data-v-2e4dd7dd"]]), Qa = { class: "aform_form-element" }, Ya = { class: "aform_display-value" }, Ga = { class: "aform_field-label" }, za = ["id", "value", "disabled"], Wa = ["for"], Ja = ["innerHTML"], Oa = /* @__PURE__ */ V({
1303
1314
  __name: "ADateRange",
1304
1315
  props: /* @__PURE__ */ P({
1305
1316
  schema: {},
@@ -1346,10 +1357,10 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1346
1357
  a.value = c.start_date ? new Date(c.start_date) : null, u.value = c.end_date ? new Date(c.end_date) : null;
1347
1358
  },
1348
1359
  { deep: !0 }
1349
- ), (c, M) => (r(), m("div", Ka, [
1360
+ ), (c, M) => (r(), m("div", Qa, [
1350
1361
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
1351
- t("span", Qa, k($.value), 1),
1352
- t("label", Ya, k(e.label), 1)
1362
+ t("span", Ya, k($.value), 1),
1363
+ t("label", Ga, k(e.label), 1)
1353
1364
  ], 64)) : (r(), m(L, { key: 1 }, [
1354
1365
  t("input", {
1355
1366
  id: e.uuid,
@@ -1360,15 +1371,15 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1360
1371
  disabled: e.mode === "read",
1361
1372
  readonly: "",
1362
1373
  onClick: h
1363
- }, null, 8, Ga),
1374
+ }, null, 8, za),
1364
1375
  t("label", {
1365
1376
  class: "aform_field-label",
1366
1377
  for: e.uuid
1367
- }, k(e.label), 9, za),
1378
+ }, k(e.label), 9, Wa),
1368
1379
  F(t("p", {
1369
1380
  class: "aform_error",
1370
1381
  innerHTML: n.value
1371
- }, null, 8, Wa), [
1382
+ }, null, 8, Ja), [
1372
1383
  [Q, n.value]
1373
1384
  ]),
1374
1385
  y.value ? (r(), ee(le, {
@@ -1379,17 +1390,17 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1379
1390
  "select-range": !0,
1380
1391
  "show-time": !1,
1381
1392
  onGetDate: f
1382
- }, null, 512)) : B("", !0)
1393
+ }, null, 512)) : C("", !0)
1383
1394
  ], 64))
1384
1395
  ]));
1385
1396
  }
1386
- }), Oa = /* @__PURE__ */ N(Ja, [["__scopeId", "data-v-f8dad4d3"]]), Xa = { class: "aform" }, Za = {
1397
+ }), Xa = /* @__PURE__ */ N(Oa, [["__scopeId", "data-v-f8dad4d3"]]), Za = { class: "aform" }, ja = {
1387
1398
  key: 0,
1388
1399
  class: "aform-nested-section"
1389
- }, ja = {
1400
+ }, el = {
1390
1401
  key: 0,
1391
1402
  class: "aform-nested-label"
1392
- }, el = /* @__PURE__ */ V({
1403
+ }, tl = /* @__PURE__ */ V({
1393
1404
  __name: "AForm",
1394
1405
  props: /* @__PURE__ */ P({
1395
1406
  schema: {},
@@ -1440,10 +1451,10 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1440
1451
  })));
1441
1452
  });
1442
1453
  const A = w(() => $.value);
1443
- return (d, l) => (r(), m("form", Xa, [
1454
+ return (d, l) => (r(), m("form", Za, [
1444
1455
  (r(!0), m(L, null, j(e.schema, (f, c) => (r(), m(L, { key: c }, [
1445
- a(f) ? (r(), m("div", Za, [
1446
- f.label && f.kind !== "fieldset" ? (r(), m("h4", ja, k(f.label), 1)) : B("", !0),
1456
+ a(f) ? (r(), m("div", ja, [
1457
+ f.label && f.kind !== "fieldset" ? (r(), m("h4", el, k(f.label), 1)) : C("", !0),
1447
1458
  (r(), ee(De(f.component ?? "AForm"), {
1448
1459
  data: u.value[f.fieldname],
1449
1460
  mode: x(f),
@@ -1453,7 +1464,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1453
1464
  errors: e.errors,
1454
1465
  "onUpdate:data": (M) => y(f.fieldname, M)
1455
1466
  }, null, 40, ["data", "mode", "schema", "label", "collapsible", "errors", "onUpdate:data"]))
1456
- ])) : f.hidden ? B("", !0) : (r(), ee(De(f.component), Ke({
1467
+ ])) : f.hidden ? C("", !0) : (r(), ee(De(f.component), Ke({
1457
1468
  key: 1,
1458
1469
  modelValue: A.value[c].value,
1459
1470
  "onUpdate:modelValue": (M) => A.value[c].value = M,
@@ -1466,7 +1477,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1466
1477
  ], 64))), 128))
1467
1478
  ]));
1468
1479
  }
1469
- }), Ie = /* @__PURE__ */ N(el, [["__scopeId", "data-v-bb17171c"]]), tl = /* @__PURE__ */ V({
1480
+ }), Ie = /* @__PURE__ */ N(tl, [["__scopeId", "data-v-bb17171c"]]), al = /* @__PURE__ */ V({
1470
1481
  __name: "CollapseButton",
1471
1482
  props: {
1472
1483
  collapsed: { type: Boolean }
@@ -1476,7 +1487,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1476
1487
  class: Z(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
1477
1488
  }, "×", 2));
1478
1489
  }
1479
- }), al = /* @__PURE__ */ N(tl, [["__scopeId", "data-v-6f1c1b45"]]), ll = /* @__PURE__ */ V({
1490
+ }), ll = /* @__PURE__ */ N(al, [["__scopeId", "data-v-6f1c1b45"]]), nl = /* @__PURE__ */ V({
1480
1491
  __name: "AFieldset",
1481
1492
  props: {
1482
1493
  schema: {},
@@ -1497,11 +1508,11 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1497
1508
  onSubmit: u
1498
1509
  }, [
1499
1510
  se(k(e.label) + " ", 1),
1500
- e.collapsible ? (r(), ee(al, {
1511
+ e.collapsible ? (r(), ee(ll, {
1501
1512
  key: 0,
1502
1513
  collapsed: n.value
1503
- }, null, 8, ["collapsed"])) : B("", !0)
1504
- ], 32)) : B("", !0),
1514
+ }, null, 8, ["collapsed"])) : C("", !0)
1515
+ ], 32)) : C("", !0),
1505
1516
  ye(y.$slots, "default", { collapsed: n.value }, () => [
1506
1517
  F(ie(Ie, {
1507
1518
  data: i.value,
@@ -1514,16 +1525,16 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1514
1525
  ], !0)
1515
1526
  ]));
1516
1527
  }
1517
- }), nl = /* @__PURE__ */ N(ll, [["__scopeId", "data-v-162e7317"]]), ol = { class: "aform_form-element aform_file-attach aform__grid--full" }, sl = {
1528
+ }), ol = /* @__PURE__ */ N(nl, [["__scopeId", "data-v-162e7317"]]), sl = { class: "aform_form-element aform_file-attach aform__grid--full" }, il = {
1518
1529
  key: 0,
1519
1530
  class: "aform_file-attach-feedback"
1520
- }, il = {
1531
+ }, ul = {
1521
1532
  key: 1,
1522
1533
  class: "aform_display-value"
1523
- }, ul = {
1534
+ }, rl = {
1524
1535
  key: 0,
1525
1536
  class: "aform_file-attach-feedback"
1526
- }, rl = ["disabled"], dl = ["disabled"], cl = /* @__PURE__ */ V({
1537
+ }, dl = ["disabled"], cl = ["disabled"], ml = /* @__PURE__ */ V({
1527
1538
  __name: "AFileAttach",
1528
1539
  props: {
1529
1540
  schema: {},
@@ -1541,18 +1552,18 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1541
1552
  const y = o.value?.length ?? 0;
1542
1553
  return `${y} ${y === 1 ? "file" : "files"}`;
1543
1554
  });
1544
- return a((y) => y), (y, g) => (r(), m("div", ol, [
1555
+ return a((y) => y), (y, g) => (r(), m("div", sl, [
1545
1556
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
1546
- O(o) ? (r(), m("div", sl, [
1557
+ O(o) ? (r(), m("div", il, [
1547
1558
  t("p", null, [
1548
1559
  t("b", null, k(u.value), 1)
1549
1560
  ]),
1550
1561
  (r(!0), m(L, null, j(O(o), (h) => (r(), m("li", {
1551
1562
  key: h.name
1552
1563
  }, k(h.name), 1))), 128))
1553
- ])) : (r(), m("span", il, "No file selected"))
1564
+ ])) : (r(), m("span", ul, "No file selected"))
1554
1565
  ], 64)) : (r(), m(L, { key: 1 }, [
1555
- O(o) ? (r(), m("div", ul, [
1566
+ O(o) ? (r(), m("div", rl, [
1556
1567
  t("p", null, [
1557
1568
  g[2] || (g[2] = se(" You have selected: ", -1)),
1558
1569
  t("b", null, k(u.value), 1)
@@ -1560,23 +1571,23 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1560
1571
  (r(!0), m(L, null, j(O(o), (h) => (r(), m("li", {
1561
1572
  key: h.name
1562
1573
  }, k(h.name), 1))), 128))
1563
- ])) : B("", !0),
1574
+ ])) : C("", !0),
1564
1575
  t("button", {
1565
1576
  type: "button",
1566
1577
  class: "aform_form-btn",
1567
1578
  disabled: e.mode === "read",
1568
1579
  onClick: g[0] || (g[0] = (h) => O(n)())
1569
- }, k(e.label), 9, rl),
1580
+ }, k(e.label), 9, dl),
1570
1581
  t("button", {
1571
1582
  type: "button",
1572
1583
  disabled: !O(o) || e.mode === "read",
1573
1584
  class: "aform_form-btn",
1574
1585
  onClick: g[1] || (g[1] = (h) => O(i)())
1575
- }, "Reset", 8, dl)
1586
+ }, "Reset", 8, cl)
1576
1587
  ], 64))
1577
1588
  ]));
1578
1589
  }
1579
- }), ml = /* @__PURE__ */ N(cl, [["__scopeId", "data-v-8eefd179"]]), fl = { class: "aform_form-element" }, vl = { class: "aform_display-value" }, yl = { class: "aform_field-label" }, hl = ["id", "disabled", "required"], bl = ["for"], gl = ["innerHTML"], kl = /* @__PURE__ */ V({
1590
+ }), fl = /* @__PURE__ */ N(ml, [["__scopeId", "data-v-8eefd179"]]), vl = { class: "aform_form-element" }, yl = { class: "aform_display-value" }, hl = { class: "aform_field-label" }, bl = ["id", "disabled", "required"], gl = ["for"], kl = ["innerHTML"], $l = /* @__PURE__ */ V({
1580
1591
  __name: "ANumericInput",
1581
1592
  props: /* @__PURE__ */ P({
1582
1593
  schema: {},
@@ -1595,10 +1606,10 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1595
1606
  emits: ["update:modelValue"],
1596
1607
  setup(e) {
1597
1608
  const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Y(e, "modelValue");
1598
- return (i, a) => (r(), m("div", fl, [
1609
+ return (i, a) => (r(), m("div", vl, [
1599
1610
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
1600
- t("span", vl, k(n.value ?? ""), 1),
1601
- t("label", yl, k(e.label), 1)
1611
+ t("span", yl, k(n.value ?? ""), 1),
1612
+ t("label", hl, k(e.label), 1)
1602
1613
  ], 64)) : (r(), m(L, { key: 1 }, [
1603
1614
  F(t("input", {
1604
1615
  id: e.uuid,
@@ -1607,23 +1618,23 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1607
1618
  type: "number",
1608
1619
  disabled: e.mode === "read",
1609
1620
  required: e.required
1610
- }, null, 8, hl), [
1621
+ }, null, 8, bl), [
1611
1622
  [G, n.value]
1612
1623
  ]),
1613
1624
  t("label", {
1614
1625
  class: "aform_field-label",
1615
1626
  for: e.uuid
1616
- }, k(e.label), 9, bl),
1627
+ }, k(e.label), 9, gl),
1617
1628
  F(t("p", {
1618
1629
  class: "aform_error",
1619
1630
  innerHTML: o.value
1620
- }, null, 8, gl), [
1631
+ }, null, 8, kl), [
1621
1632
  [Q, o.value]
1622
1633
  ])
1623
1634
  ], 64))
1624
1635
  ]));
1625
1636
  }
1626
- }), $l = { class: "aform_form-element aquantity" }, xl = { class: "aform_display-value" }, Dl = { class: "aform_field-label" }, wl = { class: "aquantity__row" }, Ml = { class: "aquantity__field aquantity__field--qty" }, Tl = { class: "aquantity__group" }, Sl = ["id", "disabled", "required"], Al = { class: "aquantity__uom" }, pl = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], Il = { class: "aquantity__uom-value" }, _l = ["aria-label"], Ll = ["id", "aria-selected", "onMouseenter", "onClick"], Fl = ["for"], ql = { class: "aquantity__row aquantity__row--stock" }, Bl = { class: "aquantity__field aquantity__field--stock-uom" }, Cl = ["value"], Vl = { class: "aform_field-label" }, Rl = { class: "aquantity__field aquantity__field--stock-qty" }, Nl = ["value"], Hl = { class: "aform_field-label" }, Ul = { class: "aquantity__field aquantity__field--conversion" }, El = ["value"], Pl = { class: "aform_field-label" }, Kl = ["innerHTML"], Ql = /* @__PURE__ */ V({
1637
+ }), xl = { class: "aform_form-element aquantity" }, Dl = { class: "aform_display-value" }, wl = { class: "aform_field-label" }, Ml = { class: "aquantity__row" }, Tl = { class: "aquantity__field aquantity__field--qty" }, Sl = { class: "aquantity__group" }, Al = ["id", "disabled", "required"], pl = { class: "aquantity__uom" }, Il = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], _l = { class: "aquantity__uom-value" }, Ll = ["aria-label"], Fl = ["id", "aria-selected", "onMouseenter", "onClick"], ql = ["for"], Cl = { class: "aquantity__row aquantity__row--stock" }, Bl = { class: "aquantity__field aquantity__field--stock-uom" }, Vl = ["value"], Rl = { class: "aform_field-label" }, Nl = { class: "aquantity__field aquantity__field--stock-qty" }, Hl = ["value"], Ul = { class: "aform_field-label" }, El = { class: "aquantity__field aquantity__field--conversion" }, Pl = ["value"], Kl = { class: "aform_field-label" }, Ql = ["innerHTML"], Yl = /* @__PURE__ */ V({
1627
1638
  __name: "AQuantityInput",
1628
1639
  props: /* @__PURE__ */ P({
1629
1640
  schema: {},
@@ -1718,14 +1729,14 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1718
1729
  const I = `${b.qty} ${b.uom}`;
1719
1730
  return v.value ? `${I} (${b.stockQty} ${b.stockUom})` : I;
1720
1731
  });
1721
- return (b, I) => (r(), m("div", $l, [
1732
+ return (b, I) => (r(), m("div", xl, [
1722
1733
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
1723
- t("span", xl, k(D.value), 1),
1724
- t("label", Dl, k(e.label), 1)
1734
+ t("span", Dl, k(D.value), 1),
1735
+ t("label", wl, k(e.label), 1)
1725
1736
  ], 64)) : (r(), m(L, { key: 1 }, [
1726
- t("div", wl, [
1727
- t("div", Ml, [
1728
- t("div", Tl, [
1737
+ t("div", Ml, [
1738
+ t("div", Tl, [
1739
+ t("div", Sl, [
1729
1740
  F(t("input", {
1730
1741
  id: e.uuid,
1731
1742
  "onUpdate:modelValue": I[0] || (I[0] = (R) => y.value = R),
@@ -1735,7 +1746,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1735
1746
  required: e.required,
1736
1747
  onKeydown: s,
1737
1748
  onPaste: x
1738
- }, null, 40, Sl), [
1749
+ }, null, 40, Al), [
1739
1750
  [
1740
1751
  G,
1741
1752
  y.value,
@@ -1743,7 +1754,7 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1743
1754
  { number: !0 }
1744
1755
  ]
1745
1756
  ]),
1746
- F((r(), m("div", Al, [
1757
+ F((r(), m("div", pl, [
1747
1758
  t("button", {
1748
1759
  id: `${e.uuid}-uom`,
1749
1760
  type: "button",
@@ -1760,12 +1771,12 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1760
1771
  q(d, ["esc"])
1761
1772
  ]
1762
1773
  }, [
1763
- t("span", Il, k(g.value || e.uomLabel), 1),
1774
+ t("span", _l, k(g.value || e.uomLabel), 1),
1764
1775
  I[3] || (I[3] = t("span", {
1765
1776
  class: "aquantity__caret",
1766
1777
  "aria-hidden": "true"
1767
1778
  }, null, -1))
1768
- ], 40, pl),
1779
+ ], 40, Il),
1769
1780
  F(t("ul", {
1770
1781
  class: "aquantity__uom-menu",
1771
1782
  role: "listbox",
@@ -1779,8 +1790,8 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1779
1790
  class: Z(["aquantity__uom-option", { "is-active": z === $.activeIndex }]),
1780
1791
  onMouseenter: (te) => $.activeIndex = z,
1781
1792
  onClick: (te) => f(R)
1782
- }, k(R), 43, Ll))), 128))
1783
- ], 8, _l), [
1793
+ }, k(R), 43, Fl))), 128))
1794
+ ], 8, Ll), [
1784
1795
  [Q, $.open]
1785
1796
  ])
1786
1797
  ])), [
@@ -1790,73 +1801,73 @@ const We = { class: "aform_form-element" }, Je = { class: "aform_field-label" },
1790
1801
  t("label", {
1791
1802
  class: "aform_field-label",
1792
1803
  for: e.uuid
1793
- }, k(e.label), 9, Fl)
1804
+ }, k(e.label), 9, ql)
1794
1805
  ])
1795
1806
  ]),
1796
- t("div", ql, [
1807
+ t("div", Cl, [
1797
1808
  t("div", Bl, [
1798
1809
  t("input", {
1799
1810
  value: o.value.stockUom,
1800
1811
  class: "aform_input-field aquantity__stock-field",
1801
1812
  type: "text",
1802
1813
  disabled: ""
1803
- }, null, 8, Cl),
1804
- t("label", Vl, k(e.stockUomLabel), 1)
1814
+ }, null, 8, Vl),
1815
+ t("label", Rl, k(e.stockUomLabel), 1)
1805
1816
  ]),
1806
- t("div", Rl, [
1817
+ t("div", Nl, [
1807
1818
  t("input", {
1808
1819
  value: o.value.stockQty,
1809
1820
  class: "aform_input-field aquantity__stock-field",
1810
1821
  type: "number",
1811
1822
  disabled: ""
1812
- }, null, 8, Nl),
1813
- t("label", Hl, k(e.stockQtyLabel), 1)
1823
+ }, null, 8, Hl),
1824
+ t("label", Ul, k(e.stockQtyLabel), 1)
1814
1825
  ]),
1815
- t("div", Ul, [
1826
+ t("div", El, [
1816
1827
  t("input", {
1817
1828
  value: o.value.conversionFactor,
1818
1829
  class: "aform_input-field aquantity__stock-field",
1819
1830
  type: "number",
1820
1831
  disabled: ""
1821
- }, null, 8, El),
1822
- t("label", Pl, k(e.conversionFactorLabel), 1)
1832
+ }, null, 8, Pl),
1833
+ t("label", Kl, k(e.conversionFactorLabel), 1)
1823
1834
  ])
1824
1835
  ]),
1825
1836
  F(t("p", {
1826
1837
  class: "aform_error",
1827
1838
  innerHTML: e.validation.errorMessage
1828
- }, null, 8, Kl), [
1839
+ }, null, 8, Ql), [
1829
1840
  [Q, e.validation.errorMessage]
1830
1841
  ])
1831
1842
  ], 64))
1832
1843
  ]));
1833
1844
  }
1834
- }), Yl = /* @__PURE__ */ N(Ql, [["__scopeId", "data-v-0b714861"]]);
1835
- function Gl(e) {
1845
+ }), Gl = /* @__PURE__ */ N(Yl, [["__scopeId", "data-v-0b714861"]]);
1846
+ function zl(e) {
1836
1847
  try {
1837
1848
  return ae(e);
1838
1849
  } catch {
1839
1850
  return;
1840
1851
  }
1841
1852
  }
1842
- function zl(e) {
1853
+ function Wl(e) {
1843
1854
  const o = e.value;
1844
1855
  if (!o) return;
1845
- const n = Gl(o);
1856
+ const n = zl(o);
1846
1857
  if (n) {
1847
1858
  const a = e.instance?.locale;
1848
1859
  return n(a);
1849
1860
  }
1850
1861
  return o;
1851
1862
  }
1852
- function Wl(e, o) {
1863
+ function Jl(e, o) {
1853
1864
  let n = e;
1854
1865
  const i = [o, "/", "-", "(", ")", " "];
1855
1866
  for (const a of i)
1856
1867
  n = n.replaceAll(a, "");
1857
1868
  return n;
1858
1869
  }
1859
- function Jl(e, o, n) {
1870
+ function Ol(e, o, n) {
1860
1871
  let i = o;
1861
1872
  for (const a of e) {
1862
1873
  const u = i.indexOf(n);
@@ -1867,17 +1878,17 @@ function Jl(e, o, n) {
1867
1878
  }
1868
1879
  return i.slice(0, o.length);
1869
1880
  }
1870
- function Ol(e, o) {
1871
- const n = zl(o);
1881
+ function Xl(e, o) {
1882
+ const n = Wl(o);
1872
1883
  if (!n) return;
1873
- const i = "#", a = e.value, u = Wl(a, i);
1884
+ const i = "#", a = e.value, u = Jl(a, i);
1874
1885
  if (u) {
1875
- const y = Jl(u, n, i), g = o.instance;
1886
+ const y = Ol(u, n, i), g = o.instance;
1876
1887
  g?.maskFilled && (g.maskFilled = !y.includes(i)), e.value = y;
1877
1888
  } else
1878
1889
  e.value = n;
1879
1890
  }
1880
- const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value" }, jl = { class: "aform_field-label" }, en = ["id", "disabled", "maxlength", "required"], tn = ["for"], an = ["innerHTML"], ln = /* @__PURE__ */ V({
1891
+ const Zl = { class: "aform_form-element" }, jl = { class: "aform_display-value" }, en = { class: "aform_field-label" }, tn = ["id", "disabled", "maxlength", "required"], an = ["for"], ln = ["innerHTML"], nn = /* @__PURE__ */ V({
1881
1892
  __name: "ATextInput",
1882
1893
  props: /* @__PURE__ */ P({
1883
1894
  schema: {},
@@ -1896,10 +1907,10 @@ const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value"
1896
1907
  emits: ["update:modelValue"],
1897
1908
  setup(e) {
1898
1909
  const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = p(!0), i = Y(e, "modelValue");
1899
- return (a, u) => (r(), m("div", Xl, [
1910
+ return (a, u) => (r(), m("div", Zl, [
1900
1911
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
1901
- t("span", Zl, k(i.value ?? ""), 1),
1902
- t("label", jl, k(e.label), 1)
1912
+ t("span", jl, k(i.value ?? ""), 1),
1913
+ t("label", en, k(e.label), 1)
1903
1914
  ], 64)) : (r(), m(L, { key: 1 }, [
1904
1915
  F(t("input", {
1905
1916
  id: e.uuid,
@@ -1908,24 +1919,24 @@ const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value"
1908
1919
  disabled: e.mode === "read",
1909
1920
  maxlength: e.mask && n.value ? e.mask.length : void 0,
1910
1921
  required: e.required
1911
- }, null, 8, en), [
1922
+ }, null, 8, tn), [
1912
1923
  [G, i.value],
1913
- [O(Ol), e.mask]
1924
+ [O(Xl), e.mask]
1914
1925
  ]),
1915
1926
  t("label", {
1916
1927
  class: "aform_field-label",
1917
1928
  for: e.uuid
1918
- }, k(e.label), 9, tn),
1929
+ }, k(e.label), 9, an),
1919
1930
  F(t("p", {
1920
1931
  class: "aform_error",
1921
1932
  innerHTML: o.value
1922
- }, null, 8, an), [
1933
+ }, null, 8, ln), [
1923
1934
  [Q, o.value]
1924
1935
  ])
1925
1936
  ], 64))
1926
1937
  ]));
1927
1938
  }
1928
- }), nn = { class: "aform_form-element" }, on = { class: "aform_display-value aform_textbox-display" }, sn = { class: "aform_field-label" }, un = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], rn = ["for"], dn = ["innerHTML"], cn = /* @__PURE__ */ V({
1939
+ }), on = { class: "aform_form-element" }, sn = { class: "aform_display-value aform_textbox-display" }, un = { class: "aform_field-label" }, rn = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], dn = ["for"], cn = ["innerHTML"], mn = /* @__PURE__ */ V({
1929
1940
  __name: "ATextboxInput",
1930
1941
  props: /* @__PURE__ */ P({
1931
1942
  schema: {},
@@ -1947,10 +1958,10 @@ const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value"
1947
1958
  emits: ["update:modelValue"],
1948
1959
  setup(e) {
1949
1960
  const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Y(e, "modelValue");
1950
- return (i, a) => (r(), m("div", nn, [
1961
+ return (i, a) => (r(), m("div", on, [
1951
1962
  e.mode === "display" ? (r(), m(L, { key: 0 }, [
1952
- t("span", on, k(n.value ?? ""), 1),
1953
- t("label", sn, k(e.label), 1)
1963
+ t("span", sn, k(n.value ?? ""), 1),
1964
+ t("label", un, k(e.label), 1)
1954
1965
  ], 64)) : (r(), m(L, { key: 1 }, [
1955
1966
  F(t("textarea", {
1956
1967
  id: e.uuid,
@@ -1961,26 +1972,26 @@ const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value"
1961
1972
  maxlength: e.maxlength,
1962
1973
  disabled: e.mode === "read",
1963
1974
  required: e.required
1964
- }, null, 8, un), [
1975
+ }, null, 8, rn), [
1965
1976
  [G, n.value]
1966
1977
  ]),
1967
1978
  t("label", {
1968
1979
  class: "aform_field-label",
1969
1980
  for: e.uuid
1970
- }, k(e.label), 9, rn),
1981
+ }, k(e.label), 9, dn),
1971
1982
  F(t("p", {
1972
1983
  class: "aform_error",
1973
1984
  innerHTML: o.value
1974
- }, null, 8, dn), [
1985
+ }, null, 8, cn), [
1975
1986
  [Q, o.value]
1976
1987
  ])
1977
1988
  ], 64))
1978
1989
  ]));
1979
1990
  }
1980
- }), mn = /* @__PURE__ */ N(cn, [["__scopeId", "data-v-2a9c793b"]]), fn = { class: "login-container" }, vn = { class: "account-container" }, yn = { class: "account-header" }, hn = { id: "account-title" }, bn = { id: "account-subtitle" }, gn = { class: "login-form-container" }, kn = { class: "login-form-email aform_form-element" }, $n = ["disabled"], xn = { class: "login-form-password aform_form-element" }, Dn = ["disabled"], wn = ["disabled"], Mn = {
1991
+ }), fn = /* @__PURE__ */ N(mn, [["__scopeId", "data-v-2a9c793b"]]), vn = { class: "login-container" }, yn = { class: "account-container" }, hn = { class: "account-header" }, bn = { id: "account-title" }, gn = { id: "account-subtitle" }, kn = { class: "login-form-container" }, $n = { class: "login-form-email aform_form-element" }, xn = ["disabled"], Dn = { class: "login-form-password aform_form-element" }, wn = ["disabled"], Mn = ["disabled"], Tn = {
1981
1992
  key: 0,
1982
1993
  class: "material-symbols-outlined loading-icon"
1983
- }, Tn = /* @__PURE__ */ V({
1994
+ }, Sn = /* @__PURE__ */ V({
1984
1995
  __name: "Login",
1985
1996
  props: {
1986
1997
  headerTitle: { default: "Login" },
@@ -1996,16 +2007,16 @@ const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value"
1996
2007
  }
1997
2008
  u.value = !1, n("loginSuccess");
1998
2009
  }
1999
- return (h, s) => (r(), m("div", fn, [
2010
+ return (h, s) => (r(), m("div", vn, [
2000
2011
  t("div", null, [
2001
- t("div", vn, [
2002
- t("div", yn, [
2003
- t("h1", hn, k(e.headerTitle), 1),
2004
- t("p", bn, k(e.headerSubtitle), 1)
2012
+ t("div", yn, [
2013
+ t("div", hn, [
2014
+ t("h1", bn, k(e.headerTitle), 1),
2015
+ t("p", gn, k(e.headerSubtitle), 1)
2005
2016
  ]),
2006
2017
  t("form", { onSubmit: g }, [
2007
- t("div", gn, [
2008
- t("div", kn, [
2018
+ t("div", kn, [
2019
+ t("div", $n, [
2009
2020
  s[2] || (s[2] = t("label", {
2010
2021
  id: "login-email",
2011
2022
  for: "email",
@@ -2022,11 +2033,11 @@ const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value"
2022
2033
  "auto-complete": "email",
2023
2034
  "auto-correct": "off",
2024
2035
  disabled: u.value
2025
- }, null, 8, $n), [
2036
+ }, null, 8, xn), [
2026
2037
  [G, i.value]
2027
2038
  ])
2028
2039
  ]),
2029
- t("div", xn, [
2040
+ t("div", Dn, [
2030
2041
  s[3] || (s[3] = t("label", {
2031
2042
  id: "login-password",
2032
2043
  for: "password",
@@ -2039,7 +2050,7 @@ const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value"
2039
2050
  name: "password",
2040
2051
  type: "password",
2041
2052
  disabled: u.value
2042
- }, null, 8, Dn), [
2053
+ }, null, 8, wn), [
2043
2054
  [G, a.value]
2044
2055
  ])
2045
2056
  ]),
@@ -2048,9 +2059,9 @@ const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value"
2048
2059
  disabled: u.value || !i.value || !a.value,
2049
2060
  onClick: g
2050
2061
  }, [
2051
- u.value ? (r(), m("span", Mn, "progress_activity")) : B("", !0),
2062
+ u.value ? (r(), m("span", Tn, "progress_activity")) : C("", !0),
2052
2063
  s[4] || (s[4] = t("span", { id: "login-form-button" }, "Login", -1))
2053
- ], 8, wn)
2064
+ ], 8, Mn)
2054
2065
  ])
2055
2066
  ], 32),
2056
2067
  s[5] || (s[5] = t("button", { class: "btn" }, [
@@ -2060,44 +2071,45 @@ const Xl = { class: "aform_form-element" }, Zl = { class: "aform_display-value"
2060
2071
  ])
2061
2072
  ]));
2062
2073
  }
2063
- }), Vn = /* @__PURE__ */ N(Tn, [["__scopeId", "data-v-2c0f0634"]]), Sn = {}, An = { class: "aform-loading" }, pn = { class: "aform-loading__label" };
2064
- function In(e, o) {
2065
- return r(), m("div", An, [
2066
- t("div", pn, [
2074
+ }), Rn = /* @__PURE__ */ N(Sn, [["__scopeId", "data-v-2c0f0634"]]), An = {}, pn = { class: "aform-loading" }, In = { class: "aform-loading__label" };
2075
+ function _n(e, o) {
2076
+ return r(), m("div", pn, [
2077
+ t("div", In, [
2067
2078
  ye(e.$slots, "default", {}, void 0, !0)
2068
2079
  ]),
2069
2080
  o[0] || (o[0] = t("div", { class: "aform-loading__bar" }, null, -1))
2070
2081
  ]);
2071
2082
  }
2072
- const _n = /* @__PURE__ */ N(Sn, [["render", In], ["__scopeId", "data-v-274f5ba3"]]);
2073
- function Rn(e) {
2074
- e.use(Ce), e.component("ACheckbox", at), e.component("ACurrencyInput", Ct), e.component("ADate", fa), e.component("ADropdown", Ma), e.component("ABadge", Sa), e.component("ADatePicker", pe), e.component("ADateTime", Ba), e.component("ADateTimeInput", ve), e.component("ADateRange", Oa), e.component("ADateSelection", le), e.component("AFieldset", nl), e.component("AFileAttach", ml), e.component("AForm", Ie), e.component("AFormLink", Ae), e.component("ANumericInput", kl), e.component("AQuantityInput", Yl), e.component("ATextInput", ln), e.component("ATextboxInput", mn), e.component("ADuration", Pa), e.component("AFormLoading", _n);
2083
+ const Ln = /* @__PURE__ */ N(An, [["render", _n], ["__scopeId", "data-v-274f5ba3"]]);
2084
+ function Nn(e) {
2085
+ e.use(Be), e.component("ACheckbox", lt), e.component("ACurrencyInput", Vt), e.component("ADate", va), e.component("ADropdown", Ta), e.component("ABadge", Aa), e.component("ADatePicker", pe), e.component("ADateTime", Ba), e.component("ADateTimeInput", ve), e.component("ADateRange", Xa), e.component("ADateSelection", le), e.component("AFieldset", ol), e.component("AFileAttach", fl), e.component("AForm", Ie), e.component("AFormLink", Ae), e.component("ANumericInput", $l), e.component("AQuantityInput", Gl), e.component("ATextInput", nn), e.component("ATextboxInput", fn), e.component("ADuration", Ka), e.component("AFormLoading", Ln);
2075
2086
  }
2076
2087
  export {
2077
- Sa as ABadge,
2078
- at as ACheckbox,
2079
- Ct as ACurrencyInput,
2080
- fa as ADate,
2088
+ Aa as ABadge,
2089
+ lt as ACheckbox,
2090
+ Vt as ACurrencyInput,
2091
+ va as ADate,
2081
2092
  pe as ADatePicker,
2082
- Oa as ADateRange,
2093
+ Xa as ADateRange,
2083
2094
  le as ADateSelection,
2084
2095
  Ba as ADateTime,
2085
2096
  ve as ADateTimeInput,
2086
- Ma as ADropdown,
2087
- Pa as ADuration,
2088
- nl as AFieldset,
2089
- ml as AFileAttach,
2097
+ Ta as ADropdown,
2098
+ Ka as ADuration,
2099
+ ol as AFieldset,
2100
+ fl as AFileAttach,
2090
2101
  Ie as AForm,
2091
2102
  Ae as AFormLink,
2092
- _n as AFormLoading,
2093
- kl as ANumericInput,
2094
- Yl as AQuantityInput,
2095
- ln as ATextInput,
2096
- mn as ATextboxInput,
2097
- Vn as Login,
2103
+ Ln as AFormLoading,
2104
+ $l as ANumericInput,
2105
+ Gl as AQuantityInput,
2106
+ nn as ATextInput,
2107
+ fn as ATextboxInput,
2108
+ Rn as Login,
2098
2109
  we as badgeInputAccentStyle,
2099
2110
  ae as deserializeFunction,
2100
- Rn as install,
2101
- Ye as resolveFieldBadge
2111
+ Nn as install,
2112
+ Ye as resolveFieldBadge,
2113
+ We as resolvedFieldsToColumns
2102
2114
  };
2103
2115
  //# sourceMappingURL=aform.js.map