@stonecrop/aform 0.18.0 → 0.20.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,13 +1,13 @@
1
- import { install as pe } from "@stonecrop/atable";
2
- import { defineComponent as R, computed as A, useModel as G, openBlock as u, createElementBlock as m, Fragment as L, createElementVNode as a, toDisplayString as g, withDirectives as p, vModelCheckbox as Le, vShow as K, mergeModels as P, useId as qe, ref as S, inject as ie, watch as J, normalizeClass as X, withKeys as _, withModifiers as B, vModelText as Y, createCommentVNode as C, renderList as Z, renderSlot as re, createTextVNode as ae, unref as W, createVNode as le, withCtx as Fe, useTemplateRef as te, onMounted as $e, nextTick as _e, reactive as ce, vModelSelect as Ce, provide as Be, createBlock as O, watchEffect as Re, resolveDynamicComponent as he, mergeProps as Ve } from "vue";
3
- import { vOnClickOutside as me } from "@vueuse/components";
4
- import { onClickOutside as ke, useFileDialog as Ne } from "@vueuse/core";
5
- import './assets/index.css';function ue(e) {
1
+ import { install as Le } from "@stonecrop/atable";
2
+ import { defineComponent as V, computed as A, useModel as G, openBlock as u, createElementBlock as m, Fragment as L, createElementVNode as a, toDisplayString as g, withDirectives as p, vModelCheckbox as qe, vShow as P, mergeModels as Q, useId as Fe, ref as I, inject as re, watch as Z, normalizeClass as O, withKeys as _, withModifiers as R, vModelText as Y, createCommentVNode as B, renderList as j, renderSlot as fe, createTextVNode as ne, unref as J, createVNode as oe, withCtx as _e, useTemplateRef as le, onMounted as we, nextTick as Ce, reactive as ve, vModelSelect as Be, provide as Re, createBlock as ee, watchEffect as Ve, resolveDynamicComponent as $e, mergeProps as Ne } from "vue";
3
+ import { vOnClickOutside as ye } from "@vueuse/components";
4
+ import { onClickOutside as De, useFileDialog as Ue } from "@vueuse/core";
5
+ import './assets/index.css';function ce(e) {
6
6
  return Function(`"use strict"; return (${e})`)();
7
7
  }
8
- const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" }, Ee = { class: "aform_display-value" }, Ke = ["for"], Pe = { class: "aform_checkbox-container aform_input-field" }, Qe = ["id", "disabled", "required"], Ye = ["innerHTML"], Ge = /* @__PURE__ */ R({
8
+ const He = { class: "aform_form-element" }, Ee = { class: "aform_field-label" }, Ke = { class: "aform_display-value" }, Pe = ["for"], Qe = { class: "aform_checkbox-container aform_input-field" }, Ye = ["id", "disabled", "required"], Ge = ["innerHTML"], ze = /* @__PURE__ */ V({
9
9
  __name: "ACheckbox",
10
- props: /* @__PURE__ */ P({
10
+ props: /* @__PURE__ */ Q({
11
11
  schema: {},
12
12
  label: {},
13
13
  selectRange: { type: Boolean },
@@ -26,14 +26,14 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
26
26
  const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
27
27
  return (c, t) => (u(), m("div", He, [
28
28
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
29
- a("label", Ue, g(e.label), 1),
30
- a("span", Ee, g(n.value ? "✓" : "✗"), 1)
29
+ a("label", Ee, g(e.label), 1),
30
+ a("span", Ke, g(n.value ? "✓" : "✗"), 1)
31
31
  ], 64)) : (u(), m(L, { key: 1 }, [
32
32
  a("label", {
33
33
  class: "aform_field-label",
34
34
  for: e.uuid
35
- }, g(e.label), 9, Ke),
36
- a("span", Pe, [
35
+ }, g(e.label), 9, Pe),
36
+ a("span", Qe, [
37
37
  p(a("input", {
38
38
  id: e.uuid,
39
39
  "onUpdate:modelValue": t[0] || (t[0] = (d) => n.value = d),
@@ -41,36 +41,36 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
41
41
  class: "aform_checkbox",
42
42
  disabled: e.mode === "read",
43
43
  required: e.required
44
- }, null, 8, Qe), [
45
- [Le, n.value]
44
+ }, null, 8, Ye), [
45
+ [qe, n.value]
46
46
  ])
47
47
  ]),
48
48
  p(a("p", {
49
49
  class: "aform_error",
50
50
  innerHTML: s.value
51
- }, null, 8, Ye), [
52
- [K, s.value]
51
+ }, null, 8, Ge), [
52
+ [P, s.value]
53
53
  ])
54
54
  ], 64))
55
55
  ]));
56
56
  }
57
- }), U = (e, s) => {
57
+ }), H = (e, s) => {
58
58
  const n = e.__vccOpts || e;
59
59
  for (const [c, t] of s)
60
60
  n[c] = t;
61
61
  return n;
62
- }, ze = /* @__PURE__ */ U(Ge, [["__scopeId", "data-v-ca06741d"]]), We = {
62
+ }, We = /* @__PURE__ */ H(ze, [["__scopeId", "data-v-ca06741d"]]), Je = {
63
63
  key: 0,
64
64
  class: "aform_display-value"
65
- }, Je = { class: "aform_form-link-wrapper" }, Xe = { class: "input-group" }, Ze = ["placeholder", "aria-label", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "disabled", "onKeydown"], Oe = ["onKeydown"], je = ["aria-label"], et = {
65
+ }, Xe = { class: "aform_form-link-wrapper" }, Ze = { class: "input-group" }, Oe = ["placeholder", "aria-label", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "disabled", "onKeydown"], je = ["onKeydown"], et = ["aria-label"], tt = {
66
66
  key: 0,
67
67
  class: "autocomplete-result loading"
68
- }, tt = ["id", "aria-selected", "onMousedown"], at = {
68
+ }, at = ["id", "aria-selected", "onMousedown"], lt = {
69
69
  key: 0,
70
70
  class: "aform_field-label"
71
- }, lt = /* @__PURE__ */ R({
71
+ }, nt = /* @__PURE__ */ V({
72
72
  __name: "AFormLink",
73
- props: /* @__PURE__ */ P({
73
+ props: /* @__PURE__ */ Q({
74
74
  schema: {},
75
75
  label: {},
76
76
  selectRange: { type: Boolean },
@@ -98,76 +98,89 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
98
98
  }),
99
99
  emits: ["update:modelValue"],
100
100
  setup(e) {
101
- const s = `${e.uuid ?? `aform-link-${qe()}`}-listbox`, n = G(e, "modelValue"), c = A(() => {
102
- const D = n.value?.id;
103
- return D != null && D !== "";
104
- }), t = A(() => c.value ? e.formatter ? e.formatter(n.value) : n.value.displayText ?? String(n.value.id) : "—"), d = S(c.value ? t.value : ""), y = S(!1), k = S(!1), v = S([]), h = S(null), x = ie("aformLinkNavigator", null), $ = ie("aformLinkResolver", null);
105
- J(
106
- () => n.value,
107
- (D) => {
108
- D != null && (typeof D == "string" || typeof D == "number") && (n.value = { id: D });
109
- },
110
- { immediate: !0 }
111
- ), J(
112
- () => n.value?.id,
101
+ const s = `${e.uuid ?? `aform-link-${Fe()}`}-listbox`, n = G(e, "modelValue"), c = A(() => T(n.value) !== void 0), t = A(() => {
102
+ const D = T(n.value);
103
+ return D === void 0 ? "—" : e.formatter ? e.formatter(l(n.value)) : f(n.value) ?? D;
104
+ }), d = I(c.value ? t.value : ""), y = I(!1), k = I(!1), v = I([]), h = I(null), x = re("aformLinkNavigator", null), $ = re("aformLinkResolver", null);
105
+ function T(D) {
106
+ if (D == null) return;
107
+ if (typeof D == "string") return D === "" ? void 0 : D;
108
+ if (typeof D == "number") return String(D);
109
+ const C = D.id;
110
+ if (!(C == null || C === ""))
111
+ return String(C);
112
+ }
113
+ function f(D) {
114
+ if (D == null || typeof D != "object") return;
115
+ const C = D.displayText;
116
+ return typeof C == "string" || typeof C == "number" ? String(C) : void 0;
117
+ }
118
+ function l(D) {
119
+ if (D != null && typeof D == "object") return D;
120
+ const C = T(D);
121
+ return C !== void 0 ? { id: C } : { id: "" };
122
+ }
123
+ Z(
124
+ () => T(n.value),
113
125
  async (D) => {
114
- if (!(!D || n.value.displayText))
126
+ if (!(!D || f(n.value)))
115
127
  try {
116
- let V, N;
117
- if (e.filterFunction ? (V = (await (typeof e.filterFunction == "string" ? ue(e.filterFunction) : e.filterFunction)(String(D))).find((j) => String(j.id) === String(D)), N = V?.displayText, N === void 0 && console.warn(
128
+ let C, E;
129
+ if (e.filterFunction ? (C = (await (typeof e.filterFunction == "string" ? ce(e.filterFunction) : e.filterFunction)(String(D))).find((ue) => String(ue.id) === String(D)), E = C?.displayText, E === void 0 && console.warn(
118
130
  `[AFormLink] filterFunction returned no matching result for id "${D}". The function must return an item whose \`id\` exactly matches the search string.`
119
- )) : $ && e.doctype && (N = await $(e.doctype, D.toString()) ?? void 0), N) {
120
- const Q = { ...n.value, ...V, id: n.value.id, displayText: N };
121
- d.value = e.formatter ? e.formatter(Q) : N, n.value = Q;
131
+ )) : $ && e.doctype && (E = await $(e.doctype, D.toString()) ?? void 0), E) {
132
+ const X = { ...l(n.value), ...C, id: D, displayText: E };
133
+ d.value = e.formatter ? e.formatter(X) : E, n.value = X;
122
134
  }
123
135
  } catch {
124
136
  }
125
137
  },
126
138
  { immediate: !0 }
127
139
  );
128
- const I = () => {
129
- x && e.doctype ? x.navigate(e.doctype, n.value.id) : x && !e.doctype && console.warn(
140
+ const o = () => {
141
+ const D = T(n.value);
142
+ x && e.doctype && D !== void 0 ? x.navigate(e.doctype, D) : x && !e.doctype && console.warn(
130
143
  "[AFormLink] Navigation requested but `doctype` prop is missing. Add `options` (or `doctype`) to the Link field definition to enable navigation."
131
144
  );
132
- }, f = async (D) => {
145
+ }, i = async (D) => {
133
146
  if (!(!e.filterFunction || e.mode === "read")) {
134
147
  h.value = null, y.value = !0, e.isAsync && (k.value = !0);
135
148
  try {
136
- const V = typeof e.filterFunction == "string" ? ue(e.filterFunction) : e.filterFunction;
137
- v.value = await V(D) ?? [];
149
+ const C = typeof e.filterFunction == "string" ? ce(e.filterFunction) : e.filterFunction;
150
+ v.value = await C(D) ?? [];
138
151
  } catch {
139
152
  v.value = [];
140
153
  } finally {
141
154
  k.value = !1;
142
155
  }
143
156
  }
144
- }, l = () => {
157
+ }, w = () => {
145
158
  y.value = !1, h.value = null, d.value = c.value ? t.value : "";
146
- }, o = () => {
147
- y.value && l();
148
- }, i = () => f(d.value), w = () => f(d.value), r = (D) => {
159
+ }, r = () => {
160
+ y.value && w();
161
+ }, F = () => i(d.value), b = () => i(d.value), q = (D) => {
149
162
  n.value = D, d.value = e.formatter ? e.formatter(D) : D.displayText ?? String(D.id), y.value = !1, h.value = null;
150
- }, F = () => {
163
+ }, N = () => {
151
164
  const D = v.value.length;
152
165
  D && (h.value = h.value === null ? 0 : (h.value + 1) % D);
153
- }, b = () => {
166
+ }, W = () => {
154
167
  v.value.length && (h.value === null || h.value === 0 ? h.value = null : h.value -= 1);
155
- }, q = () => {
156
- h.value !== null && v.value[h.value] && r(v.value[h.value]);
168
+ }, te = () => {
169
+ h.value !== null && v.value[h.value] && q(v.value[h.value]);
157
170
  };
158
- return (D, V) => (u(), m("div", {
159
- class: X(["aform_form-element", { "aform_form-element--embedded": e.embedded }])
171
+ return (D, C) => (u(), m("div", {
172
+ class: O(["aform_form-element", { "aform_form-element--embedded": e.embedded }])
160
173
  }, [
161
- e.mode === "display" ? (u(), m("span", We, g(t.value), 1)) : (u(), m(L, { key: 1 }, [
162
- p((u(), m("div", Je, [
163
- a("div", Xe, [
174
+ e.mode === "display" ? (u(), m("span", Je, g(t.value), 1)) : (u(), m(L, { key: 1 }, [
175
+ p((u(), m("div", Xe, [
176
+ a("div", Ze, [
164
177
  p(a("input", {
165
- "onUpdate:modelValue": V[0] || (V[0] = (N) => d.value = N),
178
+ "onUpdate:modelValue": C[0] || (C[0] = (E) => d.value = E),
166
179
  type: "text",
167
180
  role: "combobox",
168
181
  autocomplete: "off",
169
182
  "aria-autocomplete": "list",
170
- class: X(["aform_input-field", { "aform_input-field--embedded": e.embedded }]),
183
+ class: O(["aform_input-field", { "aform_input-field--embedded": e.embedded }]),
171
184
  placeholder: e.placeholder,
172
185
  "aria-label": e.ariaLabel,
173
186
  required: e.required,
@@ -175,27 +188,27 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
175
188
  "aria-controls": y.value ? s : void 0,
176
189
  "aria-activedescendant": h.value === null ? void 0 : `${s}-opt-${h.value}`,
177
190
  disabled: e.disabled || e.mode === "read",
178
- onInput: w,
179
- onFocus: i,
191
+ onInput: b,
192
+ onFocus: F,
180
193
  onKeydown: [
181
- _(B(F, ["prevent"]), ["down"]),
182
- _(B(b, ["prevent"]), ["up"]),
183
- _(B(q, ["prevent"]), ["enter"]),
184
- _(l, ["esc"]),
185
- _(l, ["tab"])
194
+ _(R(N, ["prevent"]), ["down"]),
195
+ _(R(W, ["prevent"]), ["up"]),
196
+ _(R(te, ["prevent"]), ["enter"]),
197
+ _(w, ["esc"]),
198
+ _(w, ["tab"])
186
199
  ]
187
- }, null, 42, Ze), [
200
+ }, null, 42, Oe), [
188
201
  [Y, d.value]
189
202
  ]),
190
203
  c.value && !e.disabled && !e.embedded ? (u(), m("button", {
191
204
  key: 0,
192
205
  type: "button",
193
206
  class: "aform_form-btn",
194
- onClick: I,
195
- onKeydown: _(B(I, ["prevent"]), ["enter"])
207
+ onClick: o,
208
+ onKeydown: _(R(o, ["prevent"]), ["enter"])
196
209
  }, [
197
210
  a("span", null, g(e.icon === "chevron-right" ? "›" : "→"), 1)
198
- ], 40, Oe)) : C("", !0)
211
+ ], 40, je)) : B("", !0)
199
212
  ]),
200
213
  y.value ? (u(), m("ul", {
201
214
  key: 0,
@@ -204,29 +217,29 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
204
217
  role: "listbox",
205
218
  "aria-label": e.ariaLabel
206
219
  }, [
207
- k.value ? (u(), m("li", et, "Loading…")) : (u(!0), m(L, { key: 1 }, Z(v.value, (N, Q) => (u(), m("li", {
208
- id: `${s}-opt-${Q}`,
209
- key: String(N.id),
220
+ k.value ? (u(), m("li", tt, "Loading…")) : (u(!0), m(L, { key: 1 }, j(v.value, (E, X) => (u(), m("li", {
221
+ id: `${s}-opt-${X}`,
222
+ key: String(E.id),
210
223
  role: "option",
211
- "aria-selected": Q === h.value,
212
- class: X(["autocomplete-result", { "is-active": Q === h.value }]),
213
- onMousedown: B((se) => r(N), ["prevent"])
224
+ "aria-selected": X === h.value,
225
+ class: O(["autocomplete-result", { "is-active": X === h.value }]),
226
+ onMousedown: R((ie) => q(E), ["prevent"])
214
227
  }, [
215
- re(D.$slots, "option", { option: N }, () => [
216
- ae(g(N.displayText ?? String(N.id)), 1)
228
+ fe(D.$slots, "option", { option: E }, () => [
229
+ ne(g(E.displayText ?? String(E.id)), 1)
217
230
  ], !0)
218
- ], 42, tt))), 128))
219
- ], 8, je)) : C("", !0)
231
+ ], 42, at))), 128))
232
+ ], 8, et)) : B("", !0)
220
233
  ])), [
221
- [W(me), o]
234
+ [J(ye), r]
222
235
  ]),
223
- e.label && !e.embedded ? (u(), m("label", at, g(e.label), 1)) : C("", !0)
236
+ e.label && !e.embedded ? (u(), m("label", lt, g(e.label), 1)) : B("", !0)
224
237
  ], 64))
225
238
  ], 2));
226
239
  }
227
- }), xe = /* @__PURE__ */ U(lt, [["__scopeId", "data-v-eb2fee75"]]), nt = { class: "aform_form-element acurrency" }, st = { class: "aform_display-value" }, ot = { class: "aform_field-label" }, it = { class: "acurrency__row" }, ut = { class: "acurrency__field acurrency__field--amount" }, dt = { class: "acurrency__group" }, rt = { class: "acurrency__currency" }, ct = { class: "acurrency__amount-wrap" }, mt = ["id", "disabled", "required"], ft = ["for"], vt = { class: "acurrency__row acurrency__row--base" }, yt = { class: "acurrency__field acurrency__field--base-currency" }, ht = ["value"], bt = { class: "aform_field-label" }, gt = { class: "acurrency__field acurrency__field--base-amount" }, $t = ["value"], kt = { class: "aform_field-label" }, xt = { class: "acurrency__field acurrency__field--exchange-rate" }, wt = ["value"], Dt = { class: "aform_field-label" }, Mt = ["innerHTML"], be = 6, Tt = /* @__PURE__ */ R({
240
+ }), Me = /* @__PURE__ */ H(nt, [["__scopeId", "data-v-154d79c9"]]), ot = { class: "aform_form-element acurrency" }, st = { class: "aform_display-value" }, it = { class: "aform_field-label" }, ut = { class: "acurrency__row" }, dt = { class: "acurrency__field acurrency__field--amount" }, rt = { class: "acurrency__group" }, ct = { class: "acurrency__currency" }, mt = { class: "acurrency__amount-wrap" }, ft = ["id", "disabled", "required"], vt = ["for"], yt = { class: "acurrency__row acurrency__row--base" }, ht = { class: "acurrency__field acurrency__field--base-currency" }, bt = ["value"], gt = { class: "aform_field-label" }, $t = { class: "acurrency__field acurrency__field--base-amount" }, kt = ["value"], xt = { class: "aform_field-label" }, wt = { class: "acurrency__field acurrency__field--exchange-rate" }, Dt = ["value"], Mt = { class: "aform_field-label" }, Tt = ["innerHTML"], ke = 6, St = /* @__PURE__ */ V({
228
241
  __name: "ACurrencyInput",
229
- props: /* @__PURE__ */ P({
242
+ props: /* @__PURE__ */ Q({
230
243
  schema: {},
231
244
  label: {},
232
245
  selectRange: { type: Boolean },
@@ -258,8 +271,8 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
258
271
  const s = (r) => r.symbol ?? r.displayText ?? String(r.id), n = G(e, "modelValue"), c = A(() => {
259
272
  const r = e.options.baseCurrency ?? n.value?.baseCurrency;
260
273
  return r ? typeof r == "string" ? { id: r } : r : { id: "" };
261
- }), t = ie("aformLinkResolver", null), d = S(c.value);
262
- J(
274
+ }), t = re("aformLinkResolver", null), d = I(c.value);
275
+ Z(
263
276
  c,
264
277
  async (r) => {
265
278
  if (!r.id || r.displayText || !t || !e.options.doctype) {
@@ -283,7 +296,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
283
296
  return !r || String(r) === String(F) ? 1 : String(r) === String(n.value?.currency?.id) ? n.value?.exchangeRate ?? e.options.exchangeRates?.[String(r)] ?? 1 : e.options.exchangeRates?.[String(r)] ?? 1;
284
297
  }, v = A(() => {
285
298
  const { precision: r } = e.options;
286
- return r === void 0 ? be : Number.isInteger(r) && r >= 0 && r <= 100 ? r : be;
299
+ return r === void 0 ? ke : Number.isInteger(r) && r >= 0 && r <= 100 ? r : ke;
287
300
  }), h = (r) => Number(r.toFixed(v.value)), x = (r, F) => {
288
301
  const b = k(F.id);
289
302
  n.value = {
@@ -296,7 +309,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
296
309
  }, $ = A({
297
310
  get: () => n.value?.amount ?? 0,
298
311
  set: (r) => x(r, n.value?.currency ?? { id: "" })
299
- }), I = A({
312
+ }), T = A({
300
313
  get: () => n.value?.currency ?? { id: "" },
301
314
  set: (r) => x(n.value?.amount ?? 0, r)
302
315
  }), f = /* @__PURE__ */ new Set([
@@ -329,18 +342,18 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
329
342
  const q = r.baseCurrency.displayText ?? String(r.baseCurrency.id);
330
343
  return `${b} (${r.baseAmount} ${q})`;
331
344
  });
332
- return (r, F) => (u(), m("div", nt, [
345
+ return (r, F) => (u(), m("div", ot, [
333
346
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
334
347
  a("span", st, g(w.value), 1),
335
- a("label", ot, g(e.label), 1)
348
+ a("label", it, g(e.label), 1)
336
349
  ], 64)) : (u(), m(L, { key: 1 }, [
337
- a("div", it, [
338
- a("div", ut, [
339
- a("div", dt, [
340
- a("div", rt, [
341
- le(xe, {
342
- modelValue: I.value,
343
- "onUpdate:modelValue": F[0] || (F[0] = (b) => I.value = b),
350
+ a("div", ut, [
351
+ a("div", dt, [
352
+ a("div", rt, [
353
+ a("div", ct, [
354
+ oe(Me, {
355
+ modelValue: T.value,
356
+ "onUpdate:modelValue": F[0] || (F[0] = (b) => T.value = b),
344
357
  mode: e.mode,
345
358
  embedded: "",
346
359
  placeholder: e.currencyLabel,
@@ -351,13 +364,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
351
364
  "filter-function": e.options.filterFunction,
352
365
  "is-async": e.options.isAsync
353
366
  }, {
354
- option: Fe(({ option: b }) => [
355
- ae(g(b.symbol ? `${b.symbol} — ` : "") + g(b.displayText ?? b.id), 1)
367
+ option: _e(({ option: b }) => [
368
+ ne(g(b.symbol ? `${b.symbol} — ` : "") + g(b.displayText ?? b.id), 1)
356
369
  ]),
357
370
  _: 1
358
371
  }, 8, ["modelValue", "mode", "placeholder", "aria-label", "required", "doctype", "filter-function", "is-async"])
359
372
  ]),
360
- a("div", ct, [
373
+ a("div", mt, [
361
374
  p(a("input", {
362
375
  id: e.uuid,
363
376
  "onUpdate:modelValue": F[1] || (F[1] = (b) => $.value = b),
@@ -367,7 +380,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
367
380
  required: e.required,
368
381
  onKeydown: l,
369
382
  onPaste: o
370
- }, null, 40, mt), [
383
+ }, null, 40, ft), [
371
384
  [
372
385
  Y,
373
386
  $.value,
@@ -378,59 +391,59 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
378
391
  a("label", {
379
392
  class: "aform_field-label",
380
393
  for: e.uuid
381
- }, g(e.label), 9, ft)
394
+ }, g(e.label), 9, vt)
382
395
  ])
383
396
  ])
384
397
  ])
385
398
  ]),
386
- a("div", vt, [
387
- a("div", yt, [
399
+ a("div", yt, [
400
+ a("div", ht, [
388
401
  a("input", {
389
402
  value: y.value,
390
403
  class: "aform_input-field acurrency__base-field",
391
404
  type: "text",
392
405
  disabled: ""
393
- }, null, 8, ht),
394
- a("label", bt, g(e.baseCurrencyLabel), 1)
406
+ }, null, 8, bt),
407
+ a("label", gt, g(e.baseCurrencyLabel), 1)
395
408
  ]),
396
- a("div", gt, [
409
+ a("div", $t, [
397
410
  a("input", {
398
411
  value: n.value.baseAmount,
399
412
  class: "aform_input-field acurrency__base-field",
400
413
  type: "number",
401
414
  disabled: ""
402
- }, null, 8, $t),
403
- a("label", kt, g(e.baseAmountLabel), 1)
415
+ }, null, 8, kt),
416
+ a("label", xt, g(e.baseAmountLabel), 1)
404
417
  ]),
405
- a("div", xt, [
418
+ a("div", wt, [
406
419
  a("input", {
407
420
  value: n.value.exchangeRate,
408
421
  class: "aform_input-field acurrency__base-field",
409
422
  type: "number",
410
423
  disabled: ""
411
- }, null, 8, wt),
412
- a("label", Dt, g(e.exchangeRateLabel), 1)
424
+ }, null, 8, Dt),
425
+ a("label", Mt, g(e.exchangeRateLabel), 1)
413
426
  ])
414
427
  ]),
415
428
  p(a("p", {
416
429
  class: "aform_error",
417
430
  innerHTML: e.validation.errorMessage
418
- }, null, 8, Mt), [
419
- [K, e.validation.errorMessage]
431
+ }, null, 8, Tt), [
432
+ [P, e.validation.errorMessage]
420
433
  ])
421
434
  ], 64))
422
435
  ]));
423
436
  }
424
- }), St = /* @__PURE__ */ U(Tt, [["__scopeId", "data-v-15bec6ef"]]), At = { class: "aform_display-value" }, It = { key: 0 }, pt = ["innerHTML"], Lt = {
437
+ }), It = /* @__PURE__ */ H(St, [["__scopeId", "data-v-15bec6ef"]]), At = { class: "aform_display-value" }, pt = { key: 0 }, Lt = ["innerHTML"], qt = {
425
438
  ref: "datepicker",
426
439
  class: "adatepicker",
427
440
  tabindex: "0"
428
- }, qt = {
441
+ }, Ft = {
429
442
  colspan: "5",
430
443
  tabindex: -1
431
- }, Ft = { key: 0 }, _t = { colspan: "7" }, Ct = { class: "date-input" }, Bt = ["value"], Rt = ["value"], Vt = ["onClick", "onKeydown", "onMouseover"], Nt = ["innerHTML"], Ht = 6, ge = 7, Ut = /* @__PURE__ */ R({
444
+ }, _t = { key: 0 }, Ct = { colspan: "7" }, Bt = { class: "date-input" }, Rt = ["value"], Vt = ["value"], Nt = ["onClick", "onKeydown", "onMouseover"], Ut = ["innerHTML"], Ht = 6, xe = 7, Et = /* @__PURE__ */ V({
432
445
  __name: "ADatePicker",
433
- props: /* @__PURE__ */ P({
446
+ props: /* @__PURE__ */ Q({
434
447
  schema: {},
435
448
  label: {},
436
449
  selectRange: { type: Boolean, default: !1 },
@@ -444,52 +457,54 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
444
457
  modelValue: { default: () => /* @__PURE__ */ new Date() },
445
458
  modelModifiers: {}
446
459
  }),
447
- emits: /* @__PURE__ */ P(["get-date"], ["update:modelValue"]),
460
+ emits: /* @__PURE__ */ Q(["get-date"], ["update:modelValue"]),
448
461
  setup(e, { expose: s, emit: n }) {
449
- const c = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), t = G(e, "modelValue"), d = S(new Date(t.value)), y = S(d.value.getMonth()), k = S(d.value.getFullYear()), v = S([]), h = S(new Date(t.value)), x = S(null), $ = S(null), I = te("start-date-input"), f = te("end-date-input"), l = n, o = A(() => new Date(k.value, y.value, 1).toLocaleDateString(void 0, {
462
+ const c = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), t = G(e, "modelValue"), d = I(new Date(t.value)), y = I(d.value.getMonth()), k = I(d.value.getFullYear()), v = I([]), h = I(new Date(t.value)), x = I(null), $ = I(null), T = le("start-date-input"), f = le("end-date-input"), l = n, o = A(() => new Date(k.value, y.value, 1).toLocaleDateString(void 0, {
450
463
  year: "numeric",
451
464
  month: "long"
452
465
  })), i = A(() => x.value != null ? r(x.value) : ""), w = A(() => $.value != null ? r($.value) : ""), r = (M) => z(M) ? M.getMonth() + 1 + "/" + M.getDate() + "/" + M.getFullYear() : "", F = (M) => {
453
- const T = /* @__PURE__ */ new Date();
454
- return y.value !== T.getMonth() ? !1 : T.toDateString() === new Date(M).toDateString();
466
+ const S = /* @__PURE__ */ new Date();
467
+ return y.value !== S.getMonth() ? !1 : S.toDateString() === new Date(M).toDateString();
455
468
  }, b = (M) => new Date(M).toDateString() === new Date(d.value).toDateString(), q = (M) => {
456
- const T = x.value;
457
- return z(T) ? new Date(M).toDateString() === T.toDateString() : !1;
458
- }, D = (M) => {
459
- const T = $.value;
460
- return z(T) ? new Date(M).toDateString() === T.toDateString() : !1;
461
- }, V = (M, T) => (M - 1) * ge + T, N = (M) => {
462
- const T = x.value;
463
- if (!z(T)) return !1;
464
- const H = new Date(M), E = $.value, ee = z(E) ? E : new Date(h.value);
465
- return H.getTime() > T.getTime() && H.getTime() < ee.getTime();
466
- }, Q = (M, T) => v.value[V(M, T)], se = (M) => {
469
+ const S = x.value;
470
+ return z(S) ? new Date(M).toDateString() === S.toDateString() : !1;
471
+ }, N = (M) => {
472
+ const S = $.value;
473
+ return z(S) ? new Date(M).toDateString() === S.toDateString() : !1;
474
+ }, W = (M, S) => (M - 1) * xe + S, te = (M) => {
475
+ const S = x.value;
476
+ if (!z(S)) return !1;
477
+ const U = new Date(M), K = $.value, ae = z(K) ? K : new Date(h.value);
478
+ return U.getTime() > S.getTime() && U.getTime() < ae.getTime();
479
+ }, D = (M, S) => v.value[W(M, S)], C = (M) => {
467
480
  h.value = new Date(v.value[M]);
468
- }, j = () => {
481
+ }, E = (M) => {
482
+ M.target?.tagName !== "INPUT" && M.preventDefault();
483
+ }, X = () => {
469
484
  v.value = [];
470
- const M = new Date(k.value, y.value, 1), T = M.getDay(), H = M.setDate(M.getDate() - T);
471
- for (const E of Array(43).keys())
472
- v.value.push(H + E * 864e5);
473
- }, Me = () => k.value -= 1, Te = () => k.value += 1, Se = () => {
474
- y.value == 0 ? (y.value = 11, Me()) : y.value -= 1;
485
+ const M = new Date(k.value, y.value, 1), S = M.getDay(), U = M.setDate(M.getDate() - S);
486
+ for (const K of Array(43).keys())
487
+ v.value.push(U + K * 864e5);
488
+ }, ie = () => k.value -= 1, ue = () => k.value += 1, Ie = () => {
489
+ y.value == 0 ? (y.value = 11, ie()) : y.value -= 1;
475
490
  }, Ae = () => {
476
- y.value == 11 ? (y.value = 0, Te()) : y.value += 1;
477
- }, fe = (M) => {
478
- M.key === "Enter" && oe();
479
- }, ve = (M) => {
491
+ y.value == 11 ? (y.value = 0, ue()) : y.value += 1;
492
+ }, he = (M) => {
493
+ M.key === "Enter" && de();
494
+ }, be = (M) => {
480
495
  if (t.value = d.value = new Date(v.value[M]), e.selectRange) {
481
- const T = x.value;
482
- T == null || $.value != null ? (x.value = t.value, $.value = null) : z(T) && d.value.getTime() < T.getTime() ? ($.value = null, x.value = t.value) : $.value = t.value, I.value && (I.value.value = r(x.value) ?? ""), f.value && (f.value.value = r($.value) ?? "");
496
+ const S = x.value;
497
+ S == null || $.value != null ? (x.value = t.value, $.value = null) : z(S) && d.value.getTime() < S.getTime() ? ($.value = null, x.value = t.value) : $.value = t.value, T.value && (T.value.value = r(x.value) ?? ""), f.value && (f.value.value = r($.value) ?? "");
483
498
  }
484
- ye();
485
- }, Ie = () => {
486
- const M = x.value, T = $.value;
487
- z(T) && z(M) && T.getTime() < M.getTime() && ([x.value, $.value] = [T, M]);
488
- }, z = (M) => M instanceof Date && !isNaN(M.getTime()), oe = () => {
489
- if (I.value?.value == "")
499
+ ge();
500
+ }, pe = () => {
501
+ const M = x.value, S = $.value;
502
+ z(S) && z(M) && S.getTime() < M.getTime() && ([x.value, $.value] = [S, M]);
503
+ }, z = (M) => M instanceof Date && !isNaN(M.getTime()), de = () => {
504
+ if (T.value?.value == "")
490
505
  x.value = null;
491
- else if (I.value) {
492
- const M = new Date(I.value.value);
506
+ else if (T.value) {
507
+ const M = new Date(T.value.value);
493
508
  x.value = z(M) ? M : null;
494
509
  }
495
510
  if (f.value?.value == "")
@@ -498,75 +513,75 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
498
513
  const M = new Date(f.value.value);
499
514
  $.value = z(M) ? M : null;
500
515
  }
501
- z(x.value) && (z($.value) && Ie(), d.value = x.value), ye();
502
- }, ye = () => {
516
+ z(x.value) && (z($.value) && pe(), d.value = x.value), ge();
517
+ }, ge = () => {
503
518
  l("get-date", {
504
519
  start: e.selectRange ? x.value : null,
505
520
  end: e.selectRange ? $.value : null,
506
521
  selected: d.value
507
522
  });
508
523
  };
509
- return $e(async () => {
510
- j(), await _e();
524
+ return we(async () => {
525
+ X(), await Ce();
511
526
  const M = document.getElementsByClassName("selectedDate");
512
527
  if (M.length > 0)
513
528
  M[0].focus();
514
529
  else {
515
- const T = document.getElementsByClassName("todaysDate");
516
- T.length > 0 && T[0].focus();
530
+ const S = document.getElementsByClassName("todaysDate");
531
+ S.length > 0 && S[0].focus();
517
532
  }
518
- }), J([y, k], j), s({ currentMonth: y, currentYear: k, selectedDate: d }), (M, T) => e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
533
+ }), Z([y, k], X), s({ currentMonth: y, currentYear: k, selectedDate: d }), (M, S) => e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
519
534
  a("span", At, g(t.value ? new Date(t.value).toLocaleDateString() : ""), 1),
520
- e.label ? (u(), m("label", It, g(e.label), 1)) : C("", !0),
535
+ e.label ? (u(), m("label", pt, g(e.label), 1)) : B("", !0),
521
536
  p(a("p", {
522
537
  class: "aform_error",
523
538
  innerHTML: c.value
524
- }, null, 8, pt), [
525
- [K, c.value]
539
+ }, null, 8, Lt), [
540
+ [P, c.value]
526
541
  ])
527
542
  ], 64)) : (u(), m(L, { key: 1 }, [
528
- a("div", Lt, [
529
- a("table", null, [
543
+ a("div", qt, [
544
+ a("table", { onMousedown: E }, [
530
545
  a("tbody", null, [
531
546
  a("tr", null, [
532
547
  a("td", {
533
548
  id: "previous-month-btn",
534
549
  tabindex: -1,
535
- onClick: Se
550
+ onClick: Ie
536
551
  }, "<"),
537
- a("th", qt, g(o.value), 1),
552
+ a("th", Ft, g(o.value), 1),
538
553
  a("td", {
539
554
  id: "next-month-btn",
540
555
  tabindex: -1,
541
556
  onClick: Ae
542
557
  }, ">")
543
558
  ]),
544
- e.selectRange ? (u(), m("tr", Ft, [
545
- a("td", _t, [
546
- a("div", Ct, [
559
+ e.selectRange ? (u(), m("tr", _t, [
560
+ a("td", Ct, [
561
+ a("div", Bt, [
547
562
  a("input", {
548
563
  ref: "start-date-input",
549
564
  value: i.value,
550
565
  class: "date-input-start aform_input-field",
551
566
  type: "text",
552
567
  placeholder: "start date",
553
- onBlur: T[0] || (T[0] = (H) => oe()),
554
- onKeydown: fe
555
- }, null, 40, Bt),
556
- T[2] || (T[2] = a("div", null, "-", -1)),
568
+ onBlur: S[0] || (S[0] = (U) => de()),
569
+ onKeydown: he
570
+ }, null, 40, Rt),
571
+ S[2] || (S[2] = a("div", null, "-", -1)),
557
572
  a("input", {
558
573
  ref: "end-date-input",
559
574
  value: w.value,
560
575
  class: "date-input-end aform_input-field",
561
576
  type: "text",
562
577
  placeholder: "end date",
563
- onBlur: T[1] || (T[1] = (H) => oe()),
564
- onKeydown: fe
565
- }, null, 40, Rt)
578
+ onBlur: S[1] || (S[1] = (U) => de()),
579
+ onKeydown: he
580
+ }, null, 40, Vt)
566
581
  ])
567
582
  ])
568
- ])) : C("", !0),
569
- T[3] || (T[3] = a("tr", { class: "days-header" }, [
583
+ ])) : B("", !0),
584
+ S[3] || (S[3] = a("tr", { class: "days-header" }, [
570
585
  a("td", null, "M"),
571
586
  a("td", null, "T"),
572
587
  a("td", null, "W"),
@@ -575,41 +590,41 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
575
590
  a("td", null, "S"),
576
591
  a("td", null, "S")
577
592
  ], -1)),
578
- (u(), m(L, null, Z(Ht, (H) => a("tr", { key: H }, [
579
- (u(), m(L, null, Z(ge, (E) => a("td", {
593
+ (u(), m(L, null, j(Ht, (U) => a("tr", { key: U }, [
594
+ (u(), m(L, null, j(xe, (K) => a("td", {
580
595
  ref_for: !0,
581
596
  ref: "celldate",
582
- key: V(H, E),
583
- class: X(["date-cell", {
584
- todaysDate: F(Q(H, E)),
585
- selectedDate: b(Q(H, E)),
586
- withinRange: e.selectRange ? N(Q(H, E)) : !1,
587
- startDate: e.selectRange ? q(Q(H, E)) : !1,
588
- endDate: e.selectRange ? D(Q(H, E)) : !1
597
+ key: W(U, K),
598
+ class: O(["date-cell", {
599
+ todaysDate: F(D(U, K)),
600
+ selectedDate: b(D(U, K)),
601
+ withinRange: e.selectRange ? te(D(U, K)) : !1,
602
+ startDate: e.selectRange ? q(D(U, K)) : !1,
603
+ endDate: e.selectRange ? N(D(U, K)) : !1
589
604
  }]),
590
605
  contenteditable: !1,
591
606
  spellcheck: !1,
592
607
  tabindex: 0,
593
- onClick: B((ee) => ve(V(H, E)), ["prevent", "stop"]),
594
- onKeydown: _((ee) => ve(V(H, E)), ["enter"]),
595
- onMouseover: (ee) => se(V(H, E))
596
- }, g(new Date(Q(H, E)).getDate()), 43, Vt)), 64))
608
+ onClick: R((ae) => be(W(U, K)), ["prevent", "stop"]),
609
+ onKeydown: _((ae) => be(W(U, K)), ["enter"]),
610
+ onMouseover: (ae) => C(W(U, K))
611
+ }, g(new Date(D(U, K)).getDate()), 43, Nt)), 64))
597
612
  ])), 64))
598
613
  ])
599
- ])
614
+ ], 32)
600
615
  ], 512),
601
616
  p(a("p", {
602
617
  class: "aform_error",
603
618
  innerHTML: c.value
604
- }, null, 8, Nt), [
605
- [K, c.value]
619
+ }, null, 8, Ut), [
620
+ [P, c.value]
606
621
  ])
607
622
  ], 64));
608
623
  }
609
- }), we = /* @__PURE__ */ U(Ut, [["__scopeId", "data-v-9e85c95a"]]), Et = { class: "adate_time" }, Kt = { class: "adate_time_fields" }, Pt = ["onKeydown"], Qt = ["onKeydown"], Yt = {
624
+ }), Te = /* @__PURE__ */ H(Et, [["__scopeId", "data-v-322c2ceb"]]), Kt = { class: "adate_time" }, Pt = { class: "adate_time_fields" }, Qt = ["onKeydown"], Yt = ["onKeydown"], Gt = {
610
625
  key: 0,
611
626
  class: "colon"
612
- }, Gt = ["onKeydown"], zt = /* @__PURE__ */ R({
627
+ }, zt = ["onKeydown"], Wt = /* @__PURE__ */ V({
613
628
  __name: "ADateTime",
614
629
  props: {
615
630
  allowMilitaryTime: { type: Boolean, default: !1 },
@@ -621,12 +636,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
621
636
  },
622
637
  emits: ["get-time"],
623
638
  setup(e, { emit: s }) {
624
- const n = s, c = te("meridiem-selector"), t = ce({
639
+ const n = s, c = le("meridiem-selector"), t = ve({
625
640
  hours: String(e.defaultHours).padStart(2, "0"),
626
641
  minutes: String(e.defaultMinutes).padStart(2, "0"),
627
642
  seconds: String(e.defaultSeconds).padStart(2, "0")
628
- }), d = S(e.defaultMeridiem == "AM" ? "AM" : "PM");
629
- $e(() => {
643
+ }), d = I(e.defaultMeridiem == "AM" ? "AM" : "PM");
644
+ we(() => {
630
645
  k();
631
646
  });
632
647
  const y = () => {
@@ -656,17 +671,17 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
656
671
  const r = Number(t.hours);
657
672
  !e.allowMilitaryTime && r !== w && (w === 11 && r === 12 || w === 12 && r === 11) && $(), t.hours = String(x(Number(t.hours), i, o)).padStart(2, "0"), t.minutes = String(x(Number(t.minutes), 0, 59)).padStart(2, "0"), t.seconds = String(x(Number(t.seconds), 0, 59)).padStart(2, "0");
658
673
  };
659
- J(
674
+ Z(
660
675
  () => t.hours,
661
676
  (f, l) => {
662
677
  t.hours = Number(f) > 99 ? l : f;
663
678
  }
664
- ), J(
679
+ ), Z(
665
680
  () => t.minutes,
666
681
  (f, l) => {
667
682
  t.minutes = Number(f) > 99 ? l : f;
668
683
  }
669
- ), J(
684
+ ), Z(
670
685
  () => t.seconds,
671
686
  (f, l) => {
672
687
  t.seconds = Number(f) > 99 ? l : f;
@@ -674,7 +689,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
674
689
  );
675
690
  const x = (f, l, o) => f > o ? l : f < l ? o : f, $ = () => {
676
691
  d.value = d.value == "PM" ? "AM" : "PM", k();
677
- }, I = (f, l = !1) => {
692
+ }, T = (f, l = !1) => {
678
693
  f.stopPropagation(), f.preventDefault();
679
694
  const o = f.clipboardData;
680
695
  if (!o) return;
@@ -690,21 +705,21 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
690
705
  w instanceof HTMLInputElement && (w.value = i, w.dispatchEvent(new Event("input")));
691
706
  }
692
707
  };
693
- return (f, l) => (u(), m("div", Et, [
694
- a("div", Kt, [
708
+ return (f, l) => (u(), m("div", Kt, [
709
+ a("div", Pt, [
695
710
  p(a("input", {
696
711
  "onUpdate:modelValue": l[0] || (l[0] = (o) => t.hours = o),
697
712
  type: "text",
698
713
  inputmode: "numeric",
699
- onPaste: l[1] || (l[1] = (o) => I(o, !0)),
714
+ onPaste: l[1] || (l[1] = (o) => T(o, !0)),
700
715
  onFocus: v,
701
716
  onBlur: y,
702
717
  onKeydown: [
703
- _(B(y, ["prevent"]), ["enter"]),
704
- l[2] || (l[2] = _(B((o) => h("hours"), ["prevent"]), ["up"])),
705
- l[3] || (l[3] = _(B((o) => h("hours", -1), ["prevent"]), ["down"]))
718
+ _(R(y, ["prevent"]), ["enter"]),
719
+ l[2] || (l[2] = _(R((o) => h("hours"), ["prevent"]), ["up"])),
720
+ l[3] || (l[3] = _(R((o) => h("hours", -1), ["prevent"]), ["down"]))
706
721
  ]
707
- }, null, 40, Pt), [
722
+ }, null, 40, Qt), [
708
723
  [Y, t.hours]
709
724
  ]),
710
725
  l[12] || (l[12] = a("span", { class: "colon" }, ":", -1)),
@@ -712,35 +727,35 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
712
727
  "onUpdate:modelValue": l[4] || (l[4] = (o) => t.minutes = o),
713
728
  type: "text",
714
729
  inputmode: "numeric",
715
- onPaste: I,
730
+ onPaste: T,
716
731
  onFocus: v,
717
732
  onBlur: y,
718
733
  onKeydown: [
719
- _(B(y, ["prevent"]), ["enter"]),
720
- l[5] || (l[5] = _(B((o) => h("minutes"), ["prevent"]), ["up"])),
721
- l[6] || (l[6] = _(B((o) => h("minutes", -1), ["prevent"]), ["down"]))
734
+ _(R(y, ["prevent"]), ["enter"]),
735
+ l[5] || (l[5] = _(R((o) => h("minutes"), ["prevent"]), ["up"])),
736
+ l[6] || (l[6] = _(R((o) => h("minutes", -1), ["prevent"]), ["down"]))
722
737
  ]
723
- }, null, 40, Qt), [
738
+ }, null, 40, Yt), [
724
739
  [Y, t.minutes]
725
740
  ]),
726
- e.useSeconds ? (u(), m("span", Yt, ":")) : C("", !0),
741
+ e.useSeconds ? (u(), m("span", Gt, ":")) : B("", !0),
727
742
  e.useSeconds ? p((u(), m("input", {
728
743
  key: 1,
729
744
  "onUpdate:modelValue": l[7] || (l[7] = (o) => t.seconds = o),
730
745
  type: "text",
731
746
  inputmode: "numeric",
732
- onPaste: I,
747
+ onPaste: T,
733
748
  onFocus: v,
734
749
  onBlur: y,
735
750
  onKeydown: [
736
- _(B(y, ["prevent"]), ["enter"]),
737
- l[8] || (l[8] = _(B((o) => h("seconds"), ["prevent"]), ["up"])),
738
- l[9] || (l[9] = _(B((o) => h("seconds", -1), ["prevent"]), ["down"]))
751
+ _(R(y, ["prevent"]), ["enter"]),
752
+ l[8] || (l[8] = _(R((o) => h("seconds"), ["prevent"]), ["up"])),
753
+ l[9] || (l[9] = _(R((o) => h("seconds", -1), ["prevent"]), ["down"]))
739
754
  ]
740
- }, null, 40, Gt)), [
755
+ }, null, 40, zt)), [
741
756
  [Y, t.seconds]
742
- ]) : C("", !0),
743
- e.allowMilitaryTime ? C("", !0) : p((u(), m("select", {
757
+ ]) : B("", !0),
758
+ e.allowMilitaryTime ? B("", !0) : p((u(), m("select", {
744
759
  key: 2,
745
760
  ref: "meridiem-selector",
746
761
  "onUpdate:modelValue": l[10] || (l[10] = (o) => d.value = o),
@@ -750,15 +765,15 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
750
765
  a("option", { value: "AM" }, "AM", -1),
751
766
  a("option", { value: "PM" }, "PM", -1)
752
767
  ])], 544)), [
753
- [Ce, d.value]
768
+ [Be, d.value]
754
769
  ])
755
770
  ])
756
771
  ]));
757
772
  }
758
- }), de = /* @__PURE__ */ U(zt, [["__scopeId", "data-v-959a3e41"]]), Wt = { class: "adate-selection" }, Jt = {
773
+ }), me = /* @__PURE__ */ H(Wt, [["__scopeId", "data-v-959a3e41"]]), Jt = { class: "adate-selection" }, Xt = {
759
774
  key: 3,
760
775
  class: "empty"
761
- }, Xt = /* @__PURE__ */ R({
776
+ }, Zt = /* @__PURE__ */ V({
762
777
  __name: "ADateSelection",
763
778
  props: {
764
779
  showDate: { type: Boolean, default: !0 },
@@ -775,8 +790,8 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
775
790
  emits: ["get-date", "get-time", "get-range"],
776
791
  setup(e, { emit: s }) {
777
792
  const n = s;
778
- Be("select-range", e.selectRange);
779
- const c = /* @__PURE__ */ new Date(), t = S(c), d = S(c), y = S(0), k = S(0), v = (l, o) => {
793
+ Re("select-range", e.selectRange);
794
+ const c = /* @__PURE__ */ new Date(), t = I(c), d = I(c), y = I(0), k = I(0), v = (l, o) => {
780
795
  const i = new Date(l);
781
796
  return i.setHours(0, 0, 0, 0), new Date(i.getTime() + o);
782
797
  }, h = (l) => {
@@ -795,18 +810,18 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
795
810
  });
796
811
  }, $ = (l) => {
797
812
  n("get-date", l), e.selectRange && (t.value = l.start ?? l.selected, d.value = l.end ?? l.selected, x());
798
- }, I = (l) => {
813
+ }, T = (l) => {
799
814
  y.value = h(l), e.showEndTime ? x() : n("get-time", l);
800
815
  }, f = (l) => {
801
816
  k.value = h(l), x();
802
817
  };
803
- return (l, o) => (u(), m("div", Wt, [
804
- e.showDate ? (u(), O(we, {
818
+ return (l, o) => (u(), m("div", Jt, [
819
+ e.showDate ? (u(), ee(Te, {
805
820
  key: 0,
806
821
  "select-range": e.selectRange,
807
822
  onGetDate: $
808
- }, null, 8, ["select-range"])) : C("", !0),
809
- e.showTime ? (u(), O(de, {
823
+ }, null, 8, ["select-range"])) : B("", !0),
824
+ e.showTime ? (u(), ee(me, {
810
825
  key: 1,
811
826
  "allow-military-time": e.allowMilitaryTime,
812
827
  "default-hours": e.defaultHours,
@@ -814,11 +829,11 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
814
829
  "default-seconds": e.defaultSeconds,
815
830
  "default-meridiem": e.defaultMeridiem,
816
831
  "use-seconds": e.useSeconds,
817
- onGetTime: I
818
- }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : C("", !0),
832
+ onGetTime: T
833
+ }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : B("", !0),
819
834
  e.selectRange && e.showTime && e.showEndTime ? (u(), m(L, { key: 2 }, [
820
835
  o[0] || (o[0] = a("div", { class: "adate-selection__end-label" }, "End time", -1)),
821
- le(de, {
836
+ oe(me, {
822
837
  "allow-military-time": e.allowMilitaryTime,
823
838
  "default-hours": e.defaultHours,
824
839
  "default-minutes": e.defaultMinutes,
@@ -827,13 +842,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
827
842
  "use-seconds": e.useSeconds,
828
843
  onGetTime: f
829
844
  }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])
830
- ], 64)) : C("", !0),
831
- !e.showTime && !e.showDate ? (u(), m("p", Jt, "empty")) : C("", !0)
845
+ ], 64)) : B("", !0),
846
+ !e.showTime && !e.showDate ? (u(), m("p", Xt, "empty")) : B("", !0)
832
847
  ]));
833
848
  }
834
- }), ne = /* @__PURE__ */ U(Xt, [["__scopeId", "data-v-eeadb3e2"]]), Zt = { class: "aform_display-value" }, Ot = ["id", "value", "disabled", "required"], jt = ["for"], ea = ["innerHTML"], ta = /* @__PURE__ */ R({
849
+ }), se = /* @__PURE__ */ H(Zt, [["__scopeId", "data-v-eeadb3e2"]]), Ot = { class: "aform_display-value" }, jt = ["id", "value", "disabled", "required"], ea = ["for"], ta = ["innerHTML"], aa = /* @__PURE__ */ V({
835
850
  __name: "ADate",
836
- props: /* @__PURE__ */ P({
851
+ props: /* @__PURE__ */ Q({
837
852
  schema: {},
838
853
  label: { default: "Date" },
839
854
  selectRange: { type: Boolean },
@@ -849,13 +864,13 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
849
864
  }),
850
865
  emits: ["update:modelValue"],
851
866
  setup(e) {
852
- const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = S(n.value ? new Date(n.value) : /* @__PURE__ */ new Date()), t = A({
867
+ const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = I(n.value ? new Date(n.value) : /* @__PURE__ */ new Date()), t = A({
853
868
  get: () => c.value.toISOString().split("T")[0],
854
869
  set: (v) => {
855
870
  c.value = new Date(v), n.value = v;
856
871
  }
857
- }), d = te("picker"), y = S(!1);
858
- ke(d, () => y.value = !1), J(
872
+ }), d = le("picker"), y = I(!1);
873
+ De(d, () => y.value = !1), Z(
859
874
  () => n.value,
860
875
  (v) => {
861
876
  v && (c.value = new Date(v));
@@ -866,7 +881,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
866
881
  };
867
882
  return (v, h) => (u(), m("div", null, [
868
883
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
869
- a("span", Zt, g(n.value ? new Date(t.value).toLocaleDateString() : ""), 1),
884
+ a("span", Ot, g(n.value ? new Date(t.value).toLocaleDateString() : ""), 1),
870
885
  a("label", null, g(e.label), 1)
871
886
  ], 64)) : (u(), m(L, { key: 1 }, [
872
887
  p(a("input", {
@@ -878,42 +893,42 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
878
893
  type: "date",
879
894
  disabled: e.mode === "read",
880
895
  required: e.required,
881
- onClick: h[1] || (h[1] = B(
896
+ onClick: h[1] || (h[1] = R(
882
897
  () => {
883
898
  y.value = !y.value;
884
899
  },
885
900
  ["prevent"]
886
901
  ))
887
- }, null, 8, Ot), [
902
+ }, null, 8, jt), [
888
903
  [Y, t.value]
889
904
  ]),
890
- a("label", { for: e.uuid }, g(e.label), 9, jt),
891
- p(a("p", { innerHTML: s.value }, null, 8, ea), [
892
- [K, s.value]
905
+ a("label", { for: e.uuid }, g(e.label), 9, ea),
906
+ p(a("p", { innerHTML: s.value }, null, 8, ta), [
907
+ [P, s.value]
893
908
  ]),
894
- y.value ? (u(), O(ne, {
909
+ y.value ? (u(), ee(se, {
895
910
  key: 0,
896
911
  ref: "picker",
897
912
  class: "picker",
898
913
  "select-range": !1,
899
914
  "show-time": !1,
900
915
  onGetDate: k
901
- }, null, 512)) : C("", !0)
916
+ }, null, 512)) : B("", !0)
902
917
  ], 64))
903
918
  ]));
904
919
  }
905
- }), aa = /* @__PURE__ */ U(ta, [["__scopeId", "data-v-a73c275b"]]), la = {
920
+ }), la = /* @__PURE__ */ H(aa, [["__scopeId", "data-v-a73c275b"]]), na = {
906
921
  key: 0,
907
922
  class: "input-wrapper"
908
- }, na = { class: "aform_display-value" }, sa = ["innerHTML"], oa = { class: "input-wrapper" }, ia = ["disabled"], ua = {
923
+ }, oa = { class: "aform_display-value" }, sa = ["innerHTML"], ia = { class: "input-wrapper" }, ua = ["disabled"], da = {
909
924
  id: "autocomplete-results",
910
925
  class: "autocomplete-results"
911
- }, da = {
926
+ }, ra = {
912
927
  key: 0,
913
928
  class: "loading autocomplete-result"
914
- }, ra = ["onClick"], ca = ["innerHTML"], ma = /* @__PURE__ */ R({
929
+ }, ca = ["onClick"], ma = ["innerHTML"], fa = /* @__PURE__ */ V({
915
930
  __name: "ADropdown",
916
- props: /* @__PURE__ */ P({
931
+ props: /* @__PURE__ */ Q({
917
932
  schema: {},
918
933
  label: {},
919
934
  selectRange: { type: Boolean },
@@ -932,7 +947,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
932
947
  }),
933
948
  emits: ["update:modelValue"],
934
949
  setup(e) {
935
- const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = S(n.value ?? ""), t = ce({
950
+ const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue"), c = I(n.value ?? ""), t = ve({
936
951
  activeItemIndex: null,
937
952
  open: !1,
938
953
  loading: !1,
@@ -966,7 +981,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
966
981
  t.activeItemIndex = (o + 1) % l;
967
982
  } else
968
983
  t.activeItemIndex = 0;
969
- }, I = () => {
984
+ }, T = () => {
970
985
  const l = t.results?.length || 0;
971
986
  if (t.activeItemIndex != null) {
972
987
  const o = isNaN(t.activeItemIndex) ? 0 : t.activeItemIndex;
@@ -980,20 +995,20 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
980
995
  }
981
996
  t.activeItemIndex = 0;
982
997
  };
983
- return (l, o) => e.mode === "display" ? (u(), m("div", la, [
984
- a("span", na, g(n.value ?? ""), 1),
998
+ return (l, o) => e.mode === "display" ? (u(), m("div", na, [
999
+ a("span", oa, g(n.value ?? ""), 1),
985
1000
  a("label", null, g(e.label), 1),
986
1001
  p(a("p", {
987
1002
  class: "aform_error",
988
1003
  innerHTML: s.value
989
1004
  }, null, 8, sa), [
990
- [K, s.value]
1005
+ [P, s.value]
991
1006
  ])
992
1007
  ])) : p((u(), m("div", {
993
1008
  key: 1,
994
- class: X(["autocomplete", { isOpen: t.open }])
1009
+ class: O(["autocomplete", { isOpen: t.open }])
995
1010
  }, [
996
- a("div", oa, [
1011
+ a("div", ia, [
997
1012
  p(a("input", {
998
1013
  "onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i),
999
1014
  type: "text",
@@ -1002,41 +1017,41 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1002
1017
  onFocus: v,
1003
1018
  onKeydown: [
1004
1019
  _($, ["down"]),
1005
- _(I, ["up"]),
1020
+ _(T, ["up"]),
1006
1021
  _(f, ["enter"]),
1007
1022
  _(d, ["esc"]),
1008
1023
  _(d, ["tab"])
1009
1024
  ]
1010
- }, null, 40, ia), [
1025
+ }, null, 40, ua), [
1011
1026
  [Y, n.value]
1012
1027
  ]),
1013
- p(a("ul", ua, [
1014
- t.loading ? (u(), m("li", da, "Loading results...")) : (u(!0), m(L, { key: 1 }, Z(t.results, (i, w) => (u(), m("li", {
1028
+ p(a("ul", da, [
1029
+ t.loading ? (u(), m("li", ra, "Loading results...")) : (u(!0), m(L, { key: 1 }, j(t.results, (i, w) => (u(), m("li", {
1015
1030
  key: i,
1016
- class: X(["autocomplete-result", { "is-active": w === t.activeItemIndex }]),
1017
- onClick: B((r) => k(i), ["stop"])
1018
- }, g(i), 11, ra))), 128))
1031
+ class: O(["autocomplete-result", { "is-active": w === t.activeItemIndex }]),
1032
+ onClick: R((r) => k(i), ["stop"])
1033
+ }, g(i), 11, ca))), 128))
1019
1034
  ], 512), [
1020
- [K, t.open]
1035
+ [P, t.open]
1021
1036
  ]),
1022
1037
  a("label", null, g(e.label), 1)
1023
1038
  ]),
1024
1039
  p(a("p", {
1025
1040
  class: "aform_error",
1026
1041
  innerHTML: s.value
1027
- }, null, 8, ca), [
1028
- [K, s.value]
1042
+ }, null, 8, ma), [
1043
+ [P, s.value]
1029
1044
  ])
1030
1045
  ], 2)), [
1031
- [W(me), d]
1046
+ [J(ye), d]
1032
1047
  ]);
1033
1048
  }
1034
- }), fa = /* @__PURE__ */ U(ma, [["__scopeId", "data-v-2b75e2d5"]]), va = { class: "aduration" }, ya = { class: "aform_display-value" }, ha = { class: "aduration__footer" }, ba = {
1049
+ }), va = /* @__PURE__ */ H(fa, [["__scopeId", "data-v-2b75e2d5"]]), ya = { class: "aduration" }, ha = { class: "aform_display-value" }, ba = { class: "aduration__footer" }, ga = {
1035
1050
  key: 0,
1036
1051
  class: "aduration__summary"
1037
- }, ga = { class: "aduration__value" }, $a = { class: "aduration__ms" }, ka = /* @__PURE__ */ R({
1052
+ }, $a = { class: "aduration__value" }, ka = { class: "aduration__ms" }, xa = /* @__PURE__ */ V({
1038
1053
  __name: "ADuration",
1039
- props: /* @__PURE__ */ P({
1054
+ props: /* @__PURE__ */ Q({
1040
1055
  label: { default: "Duration" },
1041
1056
  mode: { default: "edit" },
1042
1057
  allowMilitaryTime: { type: Boolean, default: !1 },
@@ -1047,12 +1062,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1047
1062
  }),
1048
1063
  emits: ["update:modelValue"],
1049
1064
  setup(e) {
1050
- const s = G(e, "modelValue"), n = S(null), c = S(null), t = A(() => {
1065
+ const s = G(e, "modelValue"), n = I(null), c = I(null), t = A(() => {
1051
1066
  if (!n.value || !c.value) return 0;
1052
1067
  const v = c.value.getTime() - n.value.getTime();
1053
1068
  return v > 0 ? v : 0;
1054
1069
  });
1055
- J(t, (v) => {
1070
+ Z(t, (v) => {
1056
1071
  s.value = v;
1057
1072
  });
1058
1073
  const d = (v) => {
@@ -1060,20 +1075,20 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1060
1075
  }, y = A(() => {
1061
1076
  const v = t.value;
1062
1077
  if (v === 0) return "0s";
1063
- const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, I = Math.floor(v / 864e5);
1064
- return [I && `${I}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
1078
+ const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, T = Math.floor(v / 864e5);
1079
+ return [T && `${T}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
1065
1080
  }), k = A(() => {
1066
1081
  const v = s.value;
1067
1082
  if (!v) return "—";
1068
- const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, I = Math.floor(v / 864e5);
1069
- return [I && `${I}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
1083
+ const h = Math.floor(v / 1e3) % 60, x = Math.floor(v / 6e4) % 60, $ = Math.floor(v / 36e5) % 24, T = Math.floor(v / 864e5);
1084
+ return [T && `${T}d`, $ && `${$}h`, x && `${x}m`, h && `${h}s`].filter(Boolean).join(" ") || "0s";
1070
1085
  });
1071
- return (v, h) => (u(), m("div", va, [
1086
+ return (v, h) => (u(), m("div", ya, [
1072
1087
  e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
1073
- a("span", ya, g(k.value), 1),
1088
+ a("span", ha, g(k.value), 1),
1074
1089
  a("label", null, g(e.label), 1)
1075
1090
  ], 64)) : (u(), m(L, { key: 1 }, [
1076
- le(ne, {
1091
+ oe(se, {
1077
1092
  ref: "selectionRef",
1078
1093
  "select-range": !0,
1079
1094
  "show-time": !0,
@@ -1082,20 +1097,20 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1082
1097
  "use-seconds": e.useSeconds,
1083
1098
  onGetRange: d
1084
1099
  }, null, 8, ["allow-military-time", "use-seconds"]),
1085
- a("div", ha, [
1100
+ a("div", ba, [
1086
1101
  a("label", null, g(e.label), 1),
1087
- n.value && c.value ? (u(), m("div", ba, [
1102
+ n.value && c.value ? (u(), m("div", ga, [
1088
1103
  h[0] || (h[0] = a("span", { class: "aduration__label" }, "Duration:", -1)),
1089
- a("span", ga, g(y.value), 1),
1090
- a("span", $a, "(" + g(s.value ?? 0) + " ms)", 1)
1091
- ])) : C("", !0)
1104
+ a("span", $a, g(y.value), 1),
1105
+ a("span", ka, "(" + g(s.value ?? 0) + " ms)", 1)
1106
+ ])) : B("", !0)
1092
1107
  ])
1093
1108
  ], 64))
1094
1109
  ]));
1095
1110
  }
1096
- }), xa = /* @__PURE__ */ U(ka, [["__scopeId", "data-v-22611dd6"]]), wa = { class: "adaterange" }, Da = { class: "aform_display-value" }, Ma = ["id", "value", "disabled"], Ta = ["for"], Sa = ["innerHTML"], Aa = /* @__PURE__ */ R({
1111
+ }), wa = /* @__PURE__ */ H(xa, [["__scopeId", "data-v-22611dd6"]]), Da = { class: "adaterange" }, Ma = { class: "aform_display-value" }, Ta = ["id", "value", "disabled"], Sa = ["for"], Ia = ["innerHTML"], Aa = /* @__PURE__ */ V({
1097
1112
  __name: "ADateRange",
1098
- props: /* @__PURE__ */ P({
1113
+ props: /* @__PURE__ */ Q({
1099
1114
  schema: {},
1100
1115
  label: { default: "Date Range" },
1101
1116
  selectRange: { type: Boolean },
@@ -1113,8 +1128,8 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1113
1128
  }),
1114
1129
  emits: ["update:modelValue"],
1115
1130
  setup(e) {
1116
- const s = (i) => new Date(i).toLocaleDateString(), n = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), c = G(e, "modelValue"), t = S(c.value.start_date ? new Date(c.value.start_date) : null), d = S(c.value.end_date ? new Date(c.value.end_date) : null), y = S(!1), k = S(null);
1117
- ke(k, () => y.value = !1);
1131
+ const s = (i) => new Date(i).toLocaleDateString(), n = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), c = G(e, "modelValue"), t = I(c.value.start_date ? new Date(c.value.start_date) : null), d = I(c.value.end_date ? new Date(c.value.end_date) : null), y = I(!1), k = I(null);
1132
+ De(k, () => y.value = !1);
1118
1133
  const v = () => {
1119
1134
  e.mode !== "read" && (y.value = !0);
1120
1135
  }, h = (i) => i ? `${i.getMonth() + 1}/${i.getDate()}/${i.getFullYear()}` : "", x = A(() => {
@@ -1123,7 +1138,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1123
1138
  }), $ = A(() => {
1124
1139
  const i = c.value.start_date, w = c.value.end_date;
1125
1140
  return !i && !w ? "" : i && w ? `${s(i)} — ${s(w)}` : i ? `From ${s(i)}` : `Until ${s(w)}`;
1126
- }), I = () => {
1141
+ }), T = () => {
1127
1142
  const i = t.value, w = d.value;
1128
1143
  i && w && w.getTime() < i.getTime() && ([t.value, d.value] = [w, i]);
1129
1144
  }, f = (i) => i ? i.toISOString().split("T")[0] : null, l = () => {
@@ -1132,17 +1147,17 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1132
1147
  end_date: f(d.value)
1133
1148
  };
1134
1149
  }, o = (i) => {
1135
- i.start && (t.value = i.start), i.end && (d.value = i.end, I(), y.value = !1), l();
1150
+ i.start && (t.value = i.start), i.end && (d.value = i.end, T(), y.value = !1), l();
1136
1151
  };
1137
- return J(
1152
+ return Z(
1138
1153
  () => c.value,
1139
1154
  (i) => {
1140
1155
  t.value = i.start_date ? new Date(i.start_date) : null, d.value = i.end_date ? new Date(i.end_date) : null;
1141
1156
  },
1142
1157
  { deep: !0 }
1143
- ), (i, w) => (u(), m("div", wa, [
1158
+ ), (i, w) => (u(), m("div", Da, [
1144
1159
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1145
- a("span", Da, g($.value), 1),
1160
+ a("span", Ma, g($.value), 1),
1146
1161
  a("label", null, g(e.label), 1)
1147
1162
  ], 64)) : (u(), m(L, { key: 1 }, [
1148
1163
  a("input", {
@@ -1154,12 +1169,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1154
1169
  disabled: e.mode === "read",
1155
1170
  readonly: "",
1156
1171
  onClick: v
1157
- }, null, 8, Ma),
1158
- a("label", { for: e.uuid }, g(e.label), 9, Ta),
1159
- p(a("p", { innerHTML: n.value }, null, 8, Sa), [
1160
- [K, n.value]
1172
+ }, null, 8, Ta),
1173
+ a("label", { for: e.uuid }, g(e.label), 9, Sa),
1174
+ p(a("p", { innerHTML: n.value }, null, 8, Ia), [
1175
+ [P, n.value]
1161
1176
  ]),
1162
- y.value ? (u(), O(ne, {
1177
+ y.value ? (u(), ee(se, {
1163
1178
  key: 0,
1164
1179
  ref_key: "pickerRef",
1165
1180
  ref: k,
@@ -1167,19 +1182,19 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1167
1182
  "select-range": !0,
1168
1183
  "show-time": !1,
1169
1184
  onGetDate: o
1170
- }, null, 512)) : C("", !0)
1185
+ }, null, 512)) : B("", !0)
1171
1186
  ], 64))
1172
1187
  ]));
1173
1188
  }
1174
- }), Ia = /* @__PURE__ */ U(Aa, [["__scopeId", "data-v-b5838478"]]), pa = { class: "aform" }, La = {
1189
+ }), pa = /* @__PURE__ */ H(Aa, [["__scopeId", "data-v-b5838478"]]), La = { class: "aform" }, qa = {
1175
1190
  key: 0,
1176
1191
  class: "aform-nested-section"
1177
- }, qa = {
1192
+ }, Fa = {
1178
1193
  key: 0,
1179
1194
  class: "aform-nested-label"
1180
- }, Fa = /* @__PURE__ */ R({
1195
+ }, _a = /* @__PURE__ */ V({
1181
1196
  __name: "AForm",
1182
- props: /* @__PURE__ */ P({
1197
+ props: /* @__PURE__ */ Q({
1183
1198
  schema: {},
1184
1199
  mode: { default: "edit" },
1185
1200
  errors: {}
@@ -1187,10 +1202,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1187
1202
  data: { required: !0 },
1188
1203
  dataModifiers: {}
1189
1204
  }),
1190
- emits: /* @__PURE__ */ P(["update:schema", "update:data"], ["update:data"]),
1205
+ emits: /* @__PURE__ */ Q(["update:schema", "update:data"], ["update:data"]),
1191
1206
  setup(e, { emit: s }) {
1192
- const n = s, c = G(e, "data"), t = (f) => (f.kind === "link" || f.kind === "fieldset") && "schema" in f && Array.isArray(f.schema) && f.schema.length > 0, d = S({});
1193
- J(
1207
+ const n = s, c = G(e, "data"), t = (f) => (f.kind === "link" || f.kind === "fieldset") && "schema" in f && Array.isArray(f.schema) && f.schema.length > 0, d = I({});
1208
+ Z(
1194
1209
  () => c.value,
1195
1210
  (f) => {
1196
1211
  !e.schema || !f || e.schema.forEach((l) => {
@@ -1215,8 +1230,8 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1215
1230
  const l = f.mode;
1216
1231
  return l || h.value;
1217
1232
  }
1218
- const $ = S([]);
1219
- Re(() => {
1233
+ const $ = I([]);
1234
+ Ve(() => {
1220
1235
  e.schema && $.value.length !== e.schema.length && ($.value = e.schema.map((f, l) => A({
1221
1236
  get() {
1222
1237
  return c.value?.[e.schema[l].fieldname];
@@ -1227,12 +1242,12 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1227
1242
  }
1228
1243
  })));
1229
1244
  });
1230
- const I = A(() => $.value);
1231
- return (f, l) => (u(), m("form", pa, [
1232
- (u(!0), m(L, null, Z(e.schema, (o, i) => (u(), m(L, { key: i }, [
1233
- t(o) ? (u(), m("div", La, [
1234
- o.label && o.kind !== "fieldset" ? (u(), m("h4", qa, g(o.label), 1)) : C("", !0),
1235
- (u(), O(he(o.component ?? "AForm"), {
1245
+ const T = A(() => $.value);
1246
+ return (f, l) => (u(), m("form", La, [
1247
+ (u(!0), m(L, null, j(e.schema, (o, i) => (u(), m(L, { key: i }, [
1248
+ t(o) ? (u(), m("div", qa, [
1249
+ o.label && o.kind !== "fieldset" ? (u(), m("h4", Fa, g(o.label), 1)) : B("", !0),
1250
+ (u(), ee($e(o.component ?? "AForm"), {
1236
1251
  data: d.value[o.fieldname],
1237
1252
  mode: x(o),
1238
1253
  schema: o.schema,
@@ -1241,10 +1256,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1241
1256
  errors: e.errors,
1242
1257
  "onUpdate:data": (w) => y(o.fieldname, w)
1243
1258
  }, null, 40, ["data", "mode", "schema", "label", "collapsible", "errors", "onUpdate:data"]))
1244
- ])) : o.hidden ? C("", !0) : (u(), O(he(o.component), Ve({
1259
+ ])) : o.hidden ? B("", !0) : (u(), ee($e(o.component), Ne({
1245
1260
  key: 1,
1246
- modelValue: I.value[i].value,
1247
- "onUpdate:modelValue": (w) => I.value[i].value = w,
1261
+ modelValue: T.value[i].value,
1262
+ "onUpdate:modelValue": (w) => T.value[i].value = w,
1248
1263
  style: v(o),
1249
1264
  schema: o,
1250
1265
  data: c.value[o.fieldname],
@@ -1254,17 +1269,17 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1254
1269
  ], 64))), 128))
1255
1270
  ]));
1256
1271
  }
1257
- }), De = /* @__PURE__ */ U(Fa, [["__scopeId", "data-v-bb17171c"]]), _a = /* @__PURE__ */ R({
1272
+ }), Se = /* @__PURE__ */ H(_a, [["__scopeId", "data-v-bb17171c"]]), Ca = /* @__PURE__ */ V({
1258
1273
  __name: "CollapseButton",
1259
1274
  props: {
1260
1275
  collapsed: { type: Boolean }
1261
1276
  },
1262
1277
  setup(e) {
1263
1278
  return (s, n) => (u(), m("button", {
1264
- class: X(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
1279
+ class: O(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
1265
1280
  }, "×", 2));
1266
1281
  }
1267
- }), Ca = /* @__PURE__ */ U(_a, [["__scopeId", "data-v-6f1c1b45"]]), Ba = /* @__PURE__ */ R({
1282
+ }), Ba = /* @__PURE__ */ H(Ca, [["__scopeId", "data-v-6f1c1b45"]]), Ra = /* @__PURE__ */ V({
1268
1283
  __name: "AFieldset",
1269
1284
  props: {
1270
1285
  schema: {},
@@ -1275,7 +1290,7 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1275
1290
  mode: { default: "edit" }
1276
1291
  },
1277
1292
  setup(e, { expose: s }) {
1278
- const n = S(!1), c = S(e.data || []), t = S(e.schema), d = (y) => {
1293
+ const n = I(!1), c = I(e.data || []), t = I(e.schema), d = (y) => {
1279
1294
  y.preventDefault(), e.collapsible && (n.value = !n.value);
1280
1295
  };
1281
1296
  return s({ collapsed: n }), (y, k) => (u(), m("fieldset", null, [
@@ -1284,34 +1299,34 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1284
1299
  onClick: d,
1285
1300
  onSubmit: d
1286
1301
  }, [
1287
- ae(g(e.label) + " ", 1),
1288
- e.collapsible ? (u(), O(Ca, {
1302
+ ne(g(e.label) + " ", 1),
1303
+ e.collapsible ? (u(), ee(Ba, {
1289
1304
  key: 0,
1290
1305
  collapsed: n.value
1291
- }, null, 8, ["collapsed"])) : C("", !0)
1292
- ], 32)) : C("", !0),
1293
- re(y.$slots, "default", { collapsed: n.value }, () => [
1294
- p(le(De, {
1306
+ }, null, 8, ["collapsed"])) : B("", !0)
1307
+ ], 32)) : B("", !0),
1308
+ fe(y.$slots, "default", { collapsed: n.value }, () => [
1309
+ p(oe(Se, {
1295
1310
  data: c.value,
1296
1311
  "onUpdate:data": k[0] || (k[0] = (v) => c.value = v),
1297
1312
  schema: t.value,
1298
1313
  mode: e.mode
1299
1314
  }, null, 8, ["data", "schema", "mode"]), [
1300
- [K, !n.value]
1315
+ [P, !n.value]
1301
1316
  ])
1302
1317
  ], !0)
1303
1318
  ]));
1304
1319
  }
1305
- }), Ra = /* @__PURE__ */ U(Ba, [["__scopeId", "data-v-162e7317"]]), Va = { class: "aform_form-element aform_file-attach aform__grid--full" }, Na = {
1320
+ }), Va = /* @__PURE__ */ H(Ra, [["__scopeId", "data-v-162e7317"]]), Na = { class: "aform_form-element aform_file-attach aform__grid--full" }, Ua = {
1306
1321
  key: 0,
1307
1322
  class: "aform_file-attach-feedback"
1308
1323
  }, Ha = {
1309
1324
  key: 1,
1310
1325
  class: "aform_display-value"
1311
- }, Ua = {
1326
+ }, Ea = {
1312
1327
  key: 0,
1313
1328
  class: "aform_file-attach-feedback"
1314
- }, Ea = ["disabled"], Ka = ["disabled"], Pa = /* @__PURE__ */ R({
1329
+ }, Ka = ["disabled"], Pa = ["disabled"], Qa = /* @__PURE__ */ V({
1315
1330
  __name: "AFileAttach",
1316
1331
  props: {
1317
1332
  schema: {},
@@ -1325,48 +1340,48 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1325
1340
  errors: {}
1326
1341
  },
1327
1342
  setup(e) {
1328
- const { files: s, open: n, reset: c, onChange: t } = Ne(), d = A(() => {
1343
+ const { files: s, open: n, reset: c, onChange: t } = Ue(), d = A(() => {
1329
1344
  const y = s.value?.length ?? 0;
1330
1345
  return `${y} ${y === 1 ? "file" : "files"}`;
1331
1346
  });
1332
- return t((y) => y), (y, k) => (u(), m("div", Va, [
1347
+ return t((y) => y), (y, k) => (u(), m("div", Na, [
1333
1348
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1334
- W(s) ? (u(), m("div", Na, [
1349
+ J(s) ? (u(), m("div", Ua, [
1335
1350
  a("p", null, [
1336
1351
  a("b", null, g(d.value), 1)
1337
1352
  ]),
1338
- (u(!0), m(L, null, Z(W(s), (v) => (u(), m("li", {
1353
+ (u(!0), m(L, null, j(J(s), (v) => (u(), m("li", {
1339
1354
  key: v.name
1340
1355
  }, g(v.name), 1))), 128))
1341
1356
  ])) : (u(), m("span", Ha, "No file selected"))
1342
1357
  ], 64)) : (u(), m(L, { key: 1 }, [
1343
- W(s) ? (u(), m("div", Ua, [
1358
+ J(s) ? (u(), m("div", Ea, [
1344
1359
  a("p", null, [
1345
- k[2] || (k[2] = ae(" You have selected: ", -1)),
1360
+ k[2] || (k[2] = ne(" You have selected: ", -1)),
1346
1361
  a("b", null, g(d.value), 1)
1347
1362
  ]),
1348
- (u(!0), m(L, null, Z(W(s), (v) => (u(), m("li", {
1363
+ (u(!0), m(L, null, j(J(s), (v) => (u(), m("li", {
1349
1364
  key: v.name
1350
1365
  }, g(v.name), 1))), 128))
1351
- ])) : C("", !0),
1366
+ ])) : B("", !0),
1352
1367
  a("button", {
1353
1368
  type: "button",
1354
1369
  class: "aform_form-btn",
1355
1370
  disabled: e.mode === "read",
1356
- onClick: k[0] || (k[0] = (v) => W(n)())
1357
- }, g(e.label), 9, Ea),
1371
+ onClick: k[0] || (k[0] = (v) => J(n)())
1372
+ }, g(e.label), 9, Ka),
1358
1373
  a("button", {
1359
1374
  type: "button",
1360
- disabled: !W(s) || e.mode === "read",
1375
+ disabled: !J(s) || e.mode === "read",
1361
1376
  class: "aform_form-btn",
1362
- onClick: k[1] || (k[1] = (v) => W(c)())
1363
- }, "Reset", 8, Ka)
1377
+ onClick: k[1] || (k[1] = (v) => J(c)())
1378
+ }, "Reset", 8, Pa)
1364
1379
  ], 64))
1365
1380
  ]));
1366
1381
  }
1367
- }), Qa = /* @__PURE__ */ U(Pa, [["__scopeId", "data-v-8eefd179"]]), Ya = { class: "aform_form-element" }, Ga = { class: "aform_display-value" }, za = { class: "aform_field-label" }, Wa = ["id", "disabled", "required"], Ja = ["for"], Xa = ["innerHTML"], Za = /* @__PURE__ */ R({
1382
+ }), Ya = /* @__PURE__ */ H(Qa, [["__scopeId", "data-v-8eefd179"]]), Ga = { class: "aform_form-element" }, za = { class: "aform_display-value" }, Wa = { class: "aform_field-label" }, Ja = ["id", "disabled", "required"], Xa = ["for"], Za = ["innerHTML"], Oa = /* @__PURE__ */ V({
1368
1383
  __name: "ANumericInput",
1369
- props: /* @__PURE__ */ P({
1384
+ props: /* @__PURE__ */ Q({
1370
1385
  schema: {},
1371
1386
  label: {},
1372
1387
  selectRange: { type: Boolean },
@@ -1383,10 +1398,10 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1383
1398
  emits: ["update:modelValue"],
1384
1399
  setup(e) {
1385
1400
  const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
1386
- return (c, t) => (u(), m("div", Ya, [
1401
+ return (c, t) => (u(), m("div", Ga, [
1387
1402
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1388
- a("span", Ga, g(n.value ?? ""), 1),
1389
- a("label", za, g(e.label), 1)
1403
+ a("span", za, g(n.value ?? ""), 1),
1404
+ a("label", Wa, g(e.label), 1)
1390
1405
  ], 64)) : (u(), m(L, { key: 1 }, [
1391
1406
  p(a("input", {
1392
1407
  id: e.uuid,
@@ -1395,25 +1410,25 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1395
1410
  type: "number",
1396
1411
  disabled: e.mode === "read",
1397
1412
  required: e.required
1398
- }, null, 8, Wa), [
1413
+ }, null, 8, Ja), [
1399
1414
  [Y, n.value]
1400
1415
  ]),
1401
1416
  a("label", {
1402
1417
  class: "aform_field-label",
1403
1418
  for: e.uuid
1404
- }, g(e.label), 9, Ja),
1419
+ }, g(e.label), 9, Xa),
1405
1420
  p(a("p", {
1406
1421
  class: "aform_error",
1407
1422
  innerHTML: s.value
1408
- }, null, 8, Xa), [
1409
- [K, s.value]
1423
+ }, null, 8, Za), [
1424
+ [P, s.value]
1410
1425
  ])
1411
1426
  ], 64))
1412
1427
  ]));
1413
1428
  }
1414
- }), Oa = { class: "aform_form-element aquantity" }, ja = { class: "aform_display-value" }, el = { class: "aform_field-label" }, tl = { class: "aquantity__row" }, al = { class: "aquantity__field aquantity__field--qty" }, ll = { class: "aquantity__group" }, nl = ["id", "disabled", "required"], sl = { class: "aquantity__uom" }, ol = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], il = { class: "aquantity__uom-value" }, ul = ["aria-label"], dl = ["id", "aria-selected", "onMouseenter", "onClick"], rl = ["for"], cl = { class: "aquantity__row aquantity__row--stock" }, ml = { class: "aquantity__field aquantity__field--stock-uom" }, fl = ["value"], vl = { class: "aform_field-label" }, yl = { class: "aquantity__field aquantity__field--stock-qty" }, hl = ["value"], bl = { class: "aform_field-label" }, gl = { class: "aquantity__field aquantity__field--conversion" }, $l = ["value"], kl = { class: "aform_field-label" }, xl = ["innerHTML"], wl = /* @__PURE__ */ R({
1429
+ }), ja = { class: "aform_form-element aquantity" }, el = { class: "aform_display-value" }, tl = { class: "aform_field-label" }, al = { class: "aquantity__row" }, ll = { class: "aquantity__field aquantity__field--qty" }, nl = { class: "aquantity__group" }, ol = ["id", "disabled", "required"], sl = { class: "aquantity__uom" }, il = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], ul = { class: "aquantity__uom-value" }, dl = ["aria-label"], rl = ["id", "aria-selected", "onMouseenter", "onClick"], cl = ["for"], ml = { class: "aquantity__row aquantity__row--stock" }, fl = { class: "aquantity__field aquantity__field--stock-uom" }, vl = ["value"], yl = { class: "aform_field-label" }, hl = { class: "aquantity__field aquantity__field--stock-qty" }, bl = ["value"], gl = { class: "aform_field-label" }, $l = { class: "aquantity__field aquantity__field--conversion" }, kl = ["value"], xl = { class: "aform_field-label" }, wl = ["innerHTML"], Dl = /* @__PURE__ */ V({
1415
1430
  __name: "AQuantityInput",
1416
- props: /* @__PURE__ */ P({
1431
+ props: /* @__PURE__ */ Q({
1417
1432
  schema: {},
1418
1433
  label: {},
1419
1434
  selectRange: { type: Boolean },
@@ -1439,16 +1454,16 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1439
1454
  const s = G(e, "modelValue"), n = A(() => e.options.uoms ?? []), c = (b) => Number(b.toFixed(6)), t = (b) => {
1440
1455
  const q = e.options.stockUom ?? s.value.stockUom;
1441
1456
  if (!b || b === q) return 1;
1442
- const D = e.options.conversionFactors?.[b];
1443
- return D !== void 0 ? D : b === s.value.uom ? s.value.conversionFactor ?? 1 : 1;
1457
+ const N = e.options.conversionFactors?.[b];
1458
+ return N !== void 0 ? N : b === s.value.uom ? s.value.conversionFactor ?? 1 : 1;
1444
1459
  }, d = (b, q) => {
1445
- const D = t(q);
1460
+ const N = t(q);
1446
1461
  s.value = {
1447
1462
  qty: b,
1448
1463
  uom: q,
1449
- conversionFactor: D,
1464
+ conversionFactor: N,
1450
1465
  stockUom: e.options.stockUom ?? s.value.stockUom,
1451
- stockQty: c(b * D)
1466
+ stockQty: c(b * N)
1452
1467
  };
1453
1468
  }, y = A({
1454
1469
  get: () => s.value?.qty ?? 0,
@@ -1475,24 +1490,24 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1475
1490
  }, x = (b) => {
1476
1491
  const q = b.clipboardData?.getData("text") ?? "";
1477
1492
  /^\d*\.?\d*$/.test(q) || b.preventDefault();
1478
- }, $ = ce({ open: !1, activeIndex: -1 }), I = () => {
1493
+ }, $ = ve({ open: !1, activeIndex: -1 }), T = () => {
1479
1494
  $.activeIndex = Math.max(n.value.indexOf(k.value), 0), $.open = !0;
1480
1495
  }, f = () => {
1481
1496
  $.open = !1;
1482
1497
  }, l = () => {
1483
- $.open ? f() : I();
1498
+ $.open ? f() : T();
1484
1499
  }, o = (b) => {
1485
1500
  k.value = b, f();
1486
1501
  }, i = (b) => {
1487
1502
  if (!$.open) {
1488
- I();
1503
+ T();
1489
1504
  return;
1490
1505
  }
1491
1506
  const q = n.value.length;
1492
1507
  q && ($.activeIndex = ($.activeIndex + b + q) % q);
1493
1508
  }, w = () => {
1494
1509
  if (!$.open) {
1495
- I();
1510
+ T();
1496
1511
  return;
1497
1512
  }
1498
1513
  const b = n.value[$.activeIndex];
@@ -1506,24 +1521,24 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1506
1521
  const q = `${b.qty} ${b.uom}`;
1507
1522
  return r.value ? `${q} (${b.stockQty} ${b.stockUom})` : q;
1508
1523
  });
1509
- return (b, q) => (u(), m("div", Oa, [
1524
+ return (b, q) => (u(), m("div", ja, [
1510
1525
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1511
- a("span", ja, g(F.value), 1),
1512
- a("label", el, g(e.label), 1)
1526
+ a("span", el, g(F.value), 1),
1527
+ a("label", tl, g(e.label), 1)
1513
1528
  ], 64)) : (u(), m(L, { key: 1 }, [
1514
- a("div", tl, [
1515
- a("div", al, [
1516
- a("div", ll, [
1529
+ a("div", al, [
1530
+ a("div", ll, [
1531
+ a("div", nl, [
1517
1532
  p(a("input", {
1518
1533
  id: e.uuid,
1519
- "onUpdate:modelValue": q[0] || (q[0] = (D) => y.value = D),
1534
+ "onUpdate:modelValue": q[0] || (q[0] = (N) => y.value = N),
1520
1535
  class: "aquantity__qty",
1521
1536
  type: "number",
1522
1537
  disabled: e.mode === "read",
1523
1538
  required: e.required,
1524
1539
  onKeydown: h,
1525
1540
  onPaste: x
1526
- }, null, 40, nl), [
1541
+ }, null, 40, ol), [
1527
1542
  [
1528
1543
  Y,
1529
1544
  y.value,
@@ -1542,102 +1557,102 @@ const He = { class: "aform_form-element" }, Ue = { class: "aform_field-label" },
1542
1557
  "aria-activedescendant": $.open && $.activeIndex >= 0 ? `${e.uuid}-uom-opt-${$.activeIndex}` : void 0,
1543
1558
  onClick: l,
1544
1559
  onKeydown: [
1545
- q[1] || (q[1] = _(B((D) => i(1), ["prevent"]), ["down"])),
1546
- q[2] || (q[2] = _(B((D) => i(-1), ["prevent"]), ["up"])),
1547
- _(B(w, ["prevent"]), ["enter"]),
1560
+ q[1] || (q[1] = _(R((N) => i(1), ["prevent"]), ["down"])),
1561
+ q[2] || (q[2] = _(R((N) => i(-1), ["prevent"]), ["up"])),
1562
+ _(R(w, ["prevent"]), ["enter"]),
1548
1563
  _(f, ["esc"])
1549
1564
  ]
1550
1565
  }, [
1551
- a("span", il, g(k.value || e.uomLabel), 1),
1566
+ a("span", ul, g(k.value || e.uomLabel), 1),
1552
1567
  q[3] || (q[3] = a("span", {
1553
1568
  class: "aquantity__caret",
1554
1569
  "aria-hidden": "true"
1555
1570
  }, null, -1))
1556
- ], 40, ol),
1571
+ ], 40, il),
1557
1572
  p(a("ul", {
1558
1573
  class: "aquantity__uom-menu",
1559
1574
  role: "listbox",
1560
1575
  "aria-label": e.uomLabel
1561
1576
  }, [
1562
- (u(!0), m(L, null, Z(n.value, (D, V) => (u(), m("li", {
1563
- id: `${e.uuid}-uom-opt-${V}`,
1564
- key: D,
1577
+ (u(!0), m(L, null, j(n.value, (N, W) => (u(), m("li", {
1578
+ id: `${e.uuid}-uom-opt-${W}`,
1579
+ key: N,
1565
1580
  role: "option",
1566
- "aria-selected": D === k.value,
1567
- class: X(["aquantity__uom-option", { "is-active": V === $.activeIndex }]),
1568
- onMouseenter: (N) => $.activeIndex = V,
1569
- onClick: (N) => o(D)
1570
- }, g(D), 43, dl))), 128))
1571
- ], 8, ul), [
1572
- [K, $.open]
1581
+ "aria-selected": N === k.value,
1582
+ class: O(["aquantity__uom-option", { "is-active": W === $.activeIndex }]),
1583
+ onMouseenter: (te) => $.activeIndex = W,
1584
+ onClick: (te) => o(N)
1585
+ }, g(N), 43, rl))), 128))
1586
+ ], 8, dl), [
1587
+ [P, $.open]
1573
1588
  ])
1574
1589
  ])), [
1575
- [W(me), f]
1590
+ [J(ye), f]
1576
1591
  ])
1577
1592
  ]),
1578
1593
  a("label", {
1579
1594
  class: "aform_field-label",
1580
1595
  for: e.uuid
1581
- }, g(e.label), 9, rl)
1596
+ }, g(e.label), 9, cl)
1582
1597
  ])
1583
1598
  ]),
1584
- a("div", cl, [
1585
- a("div", ml, [
1599
+ a("div", ml, [
1600
+ a("div", fl, [
1586
1601
  a("input", {
1587
1602
  value: s.value.stockUom,
1588
1603
  class: "aform_input-field aquantity__stock-field",
1589
1604
  type: "text",
1590
1605
  disabled: ""
1591
- }, null, 8, fl),
1592
- a("label", vl, g(e.stockUomLabel), 1)
1606
+ }, null, 8, vl),
1607
+ a("label", yl, g(e.stockUomLabel), 1)
1593
1608
  ]),
1594
- a("div", yl, [
1609
+ a("div", hl, [
1595
1610
  a("input", {
1596
1611
  value: s.value.stockQty,
1597
1612
  class: "aform_input-field aquantity__stock-field",
1598
1613
  type: "number",
1599
1614
  disabled: ""
1600
- }, null, 8, hl),
1601
- a("label", bl, g(e.stockQtyLabel), 1)
1615
+ }, null, 8, bl),
1616
+ a("label", gl, g(e.stockQtyLabel), 1)
1602
1617
  ]),
1603
- a("div", gl, [
1618
+ a("div", $l, [
1604
1619
  a("input", {
1605
1620
  value: s.value.conversionFactor,
1606
1621
  class: "aform_input-field aquantity__stock-field",
1607
1622
  type: "number",
1608
1623
  disabled: ""
1609
- }, null, 8, $l),
1610
- a("label", kl, g(e.conversionFactorLabel), 1)
1624
+ }, null, 8, kl),
1625
+ a("label", xl, g(e.conversionFactorLabel), 1)
1611
1626
  ])
1612
1627
  ]),
1613
1628
  p(a("p", {
1614
1629
  class: "aform_error",
1615
1630
  innerHTML: e.validation.errorMessage
1616
- }, null, 8, xl), [
1617
- [K, e.validation.errorMessage]
1631
+ }, null, 8, wl), [
1632
+ [P, e.validation.errorMessage]
1618
1633
  ])
1619
1634
  ], 64))
1620
1635
  ]));
1621
1636
  }
1622
- }), Dl = /* @__PURE__ */ U(wl, [["__scopeId", "data-v-0b714861"]]);
1623
- function Ml(e) {
1637
+ }), Ml = /* @__PURE__ */ H(Dl, [["__scopeId", "data-v-0b714861"]]);
1638
+ function Tl(e) {
1624
1639
  try {
1625
- return ue(e);
1640
+ return ce(e);
1626
1641
  } catch {
1627
1642
  return;
1628
1643
  }
1629
1644
  }
1630
- function Tl(e) {
1645
+ function Sl(e) {
1631
1646
  const s = e.value;
1632
1647
  if (!s) return;
1633
- const n = Ml(s);
1648
+ const n = Tl(s);
1634
1649
  if (n) {
1635
1650
  const t = e.instance?.locale;
1636
1651
  return n(t);
1637
1652
  }
1638
1653
  return s;
1639
1654
  }
1640
- function Sl(e, s) {
1655
+ function Il(e, s) {
1641
1656
  let n = e;
1642
1657
  const c = [s, "/", "-", "(", ")", " "];
1643
1658
  for (const t of c)
@@ -1655,19 +1670,19 @@ function Al(e, s, n) {
1655
1670
  }
1656
1671
  return c.slice(0, s.length);
1657
1672
  }
1658
- function Il(e, s) {
1659
- const n = Tl(s);
1673
+ function pl(e, s) {
1674
+ const n = Sl(s);
1660
1675
  if (!n) return;
1661
- const c = "#", t = e.value, d = Sl(t, c);
1676
+ const c = "#", t = e.value, d = Il(t, c);
1662
1677
  if (d) {
1663
1678
  const y = Al(d, n, c), k = s.instance;
1664
1679
  k?.maskFilled && (k.maskFilled = !y.includes(c)), e.value = y;
1665
1680
  } else
1666
1681
  e.value = n;
1667
1682
  }
1668
- const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value" }, ql = { class: "aform_field-label" }, Fl = ["id", "disabled", "maxlength", "required"], _l = ["for"], Cl = ["innerHTML"], Bl = /* @__PURE__ */ R({
1683
+ const Ll = { class: "aform_form-element" }, ql = { class: "aform_display-value" }, Fl = { class: "aform_field-label" }, _l = ["id", "disabled", "maxlength", "required"], Cl = ["for"], Bl = ["innerHTML"], Rl = /* @__PURE__ */ V({
1669
1684
  __name: "ATextInput",
1670
- props: /* @__PURE__ */ P({
1685
+ props: /* @__PURE__ */ Q({
1671
1686
  schema: {},
1672
1687
  label: {},
1673
1688
  selectRange: { type: Boolean },
@@ -1683,11 +1698,11 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1683
1698
  }),
1684
1699
  emits: ["update:modelValue"],
1685
1700
  setup(e) {
1686
- const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = S(!0), c = G(e, "modelValue");
1687
- return (t, d) => (u(), m("div", pl, [
1701
+ const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = I(!0), c = G(e, "modelValue");
1702
+ return (t, d) => (u(), m("div", Ll, [
1688
1703
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1689
- a("span", Ll, g(c.value ?? ""), 1),
1690
- a("label", ql, g(e.label), 1)
1704
+ a("span", ql, g(c.value ?? ""), 1),
1705
+ a("label", Fl, g(e.label), 1)
1691
1706
  ], 64)) : (u(), m(L, { key: 1 }, [
1692
1707
  p(a("input", {
1693
1708
  id: e.uuid,
@@ -1696,26 +1711,26 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1696
1711
  disabled: e.mode === "read",
1697
1712
  maxlength: e.mask && n.value ? e.mask.length : void 0,
1698
1713
  required: e.required
1699
- }, null, 8, Fl), [
1714
+ }, null, 8, _l), [
1700
1715
  [Y, c.value],
1701
- [W(Il), e.mask]
1716
+ [J(pl), e.mask]
1702
1717
  ]),
1703
1718
  a("label", {
1704
1719
  class: "aform_field-label",
1705
1720
  for: e.uuid
1706
- }, g(e.label), 9, _l),
1721
+ }, g(e.label), 9, Cl),
1707
1722
  p(a("p", {
1708
1723
  class: "aform_error",
1709
1724
  innerHTML: s.value
1710
- }, null, 8, Cl), [
1711
- [K, s.value]
1725
+ }, null, 8, Bl), [
1726
+ [P, s.value]
1712
1727
  ])
1713
1728
  ], 64))
1714
1729
  ]));
1715
1730
  }
1716
- }), Rl = { class: "aform_form-element" }, Vl = { class: "aform_display-value aform_textbox-display" }, Nl = { class: "aform_field-label" }, Hl = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], Ul = ["for"], El = ["innerHTML"], Kl = /* @__PURE__ */ R({
1731
+ }), Vl = { class: "aform_form-element" }, Nl = { class: "aform_display-value aform_textbox-display" }, Ul = { class: "aform_field-label" }, Hl = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], El = ["for"], Kl = ["innerHTML"], Pl = /* @__PURE__ */ V({
1717
1732
  __name: "ATextboxInput",
1718
- props: /* @__PURE__ */ P({
1733
+ props: /* @__PURE__ */ Q({
1719
1734
  schema: {},
1720
1735
  label: {},
1721
1736
  selectRange: { type: Boolean },
@@ -1735,10 +1750,10 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1735
1750
  emits: ["update:modelValue"],
1736
1751
  setup(e) {
1737
1752
  const s = A(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = G(e, "modelValue");
1738
- return (c, t) => (u(), m("div", Rl, [
1753
+ return (c, t) => (u(), m("div", Vl, [
1739
1754
  e.mode === "display" ? (u(), m(L, { key: 0 }, [
1740
- a("span", Vl, g(n.value ?? ""), 1),
1741
- a("label", Nl, g(e.label), 1)
1755
+ a("span", Nl, g(n.value ?? ""), 1),
1756
+ a("label", Ul, g(e.label), 1)
1742
1757
  ], 64)) : (u(), m(L, { key: 1 }, [
1743
1758
  p(a("textarea", {
1744
1759
  id: e.uuid,
@@ -1755,20 +1770,20 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1755
1770
  a("label", {
1756
1771
  class: "aform_field-label",
1757
1772
  for: e.uuid
1758
- }, g(e.label), 9, Ul),
1773
+ }, g(e.label), 9, El),
1759
1774
  p(a("p", {
1760
1775
  class: "aform_error",
1761
1776
  innerHTML: s.value
1762
- }, null, 8, El), [
1763
- [K, s.value]
1777
+ }, null, 8, Kl), [
1778
+ [P, s.value]
1764
1779
  ])
1765
1780
  ], 64))
1766
1781
  ]));
1767
1782
  }
1768
- }), Pl = /* @__PURE__ */ U(Kl, [["__scopeId", "data-v-2a9c793b"]]), Ql = { class: "login-container" }, Yl = { class: "account-container" }, Gl = { class: "account-header" }, zl = { id: "account-title" }, Wl = { id: "account-subtitle" }, Jl = { class: "login-form-container" }, Xl = { class: "login-form-email aform_form-element" }, Zl = ["disabled"], Ol = { class: "login-form-password aform_form-element" }, jl = ["disabled"], en = ["disabled"], tn = {
1783
+ }), Ql = /* @__PURE__ */ H(Pl, [["__scopeId", "data-v-2a9c793b"]]), Yl = { class: "login-container" }, Gl = { class: "account-container" }, zl = { class: "account-header" }, Wl = { id: "account-title" }, Jl = { id: "account-subtitle" }, Xl = { class: "login-form-container" }, Zl = { class: "login-form-email aform_form-element" }, Ol = ["disabled"], jl = { class: "login-form-password aform_form-element" }, en = ["disabled"], tn = ["disabled"], an = {
1769
1784
  key: 0,
1770
1785
  class: "material-symbols-outlined loading-icon"
1771
- }, an = /* @__PURE__ */ R({
1786
+ }, ln = /* @__PURE__ */ V({
1772
1787
  __name: "Login",
1773
1788
  props: {
1774
1789
  headerTitle: { default: "Login" },
@@ -1776,7 +1791,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1776
1791
  },
1777
1792
  emits: ["loginFailed", "loginSuccess"],
1778
1793
  setup(e, { emit: s }) {
1779
- const n = s, c = S(""), t = S(""), d = S(!1), y = S(!1);
1794
+ const n = s, c = I(""), t = I(""), d = I(!1), y = I(!1);
1780
1795
  function k(v) {
1781
1796
  if (v.preventDefault(), d.value = !0, y.value) {
1782
1797
  d.value = !1, n("loginFailed");
@@ -1784,16 +1799,16 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1784
1799
  }
1785
1800
  d.value = !1, n("loginSuccess");
1786
1801
  }
1787
- return (v, h) => (u(), m("div", Ql, [
1802
+ return (v, h) => (u(), m("div", Yl, [
1788
1803
  a("div", null, [
1789
- a("div", Yl, [
1790
- a("div", Gl, [
1791
- a("h1", zl, g(e.headerTitle), 1),
1792
- a("p", Wl, g(e.headerSubtitle), 1)
1804
+ a("div", Gl, [
1805
+ a("div", zl, [
1806
+ a("h1", Wl, g(e.headerTitle), 1),
1807
+ a("p", Jl, g(e.headerSubtitle), 1)
1793
1808
  ]),
1794
1809
  a("form", { onSubmit: k }, [
1795
- a("div", Jl, [
1796
- a("div", Xl, [
1810
+ a("div", Xl, [
1811
+ a("div", Zl, [
1797
1812
  h[2] || (h[2] = a("label", {
1798
1813
  id: "login-email",
1799
1814
  for: "email",
@@ -1810,11 +1825,11 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1810
1825
  "auto-complete": "email",
1811
1826
  "auto-correct": "off",
1812
1827
  disabled: d.value
1813
- }, null, 8, Zl), [
1828
+ }, null, 8, Ol), [
1814
1829
  [Y, c.value]
1815
1830
  ])
1816
1831
  ]),
1817
- a("div", Ol, [
1832
+ a("div", jl, [
1818
1833
  h[3] || (h[3] = a("label", {
1819
1834
  id: "login-password",
1820
1835
  for: "password",
@@ -1827,7 +1842,7 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1827
1842
  name: "password",
1828
1843
  type: "password",
1829
1844
  disabled: d.value
1830
- }, null, 8, jl), [
1845
+ }, null, 8, en), [
1831
1846
  [Y, t.value]
1832
1847
  ])
1833
1848
  ]),
@@ -1836,9 +1851,9 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1836
1851
  disabled: d.value || !c.value || !t.value,
1837
1852
  onClick: k
1838
1853
  }, [
1839
- d.value ? (u(), m("span", tn, "progress_activity")) : C("", !0),
1854
+ d.value ? (u(), m("span", an, "progress_activity")) : B("", !0),
1840
1855
  h[4] || (h[4] = a("span", { id: "login-form-button" }, "Login", -1))
1841
- ], 8, en)
1856
+ ], 8, tn)
1842
1857
  ])
1843
1858
  ], 32),
1844
1859
  h[5] || (h[5] = a("button", { class: "btn" }, [
@@ -1848,40 +1863,40 @@ const pl = { class: "aform_form-element" }, Ll = { class: "aform_display-value"
1848
1863
  ])
1849
1864
  ]));
1850
1865
  }
1851
- }), fn = /* @__PURE__ */ U(an, [["__scopeId", "data-v-2c0f0634"]]), ln = {}, nn = { class: "aform-loading" }, sn = { class: "aform-loading__label" };
1852
- function on(e, s) {
1853
- return u(), m("div", nn, [
1866
+ }), vn = /* @__PURE__ */ H(ln, [["__scopeId", "data-v-2c0f0634"]]), nn = {}, on = { class: "aform-loading" }, sn = { class: "aform-loading__label" };
1867
+ function un(e, s) {
1868
+ return u(), m("div", on, [
1854
1869
  a("div", sn, [
1855
- re(e.$slots, "default", {}, void 0, !0)
1870
+ fe(e.$slots, "default", {}, void 0, !0)
1856
1871
  ]),
1857
1872
  s[0] || (s[0] = a("div", { class: "aform-loading__bar" }, null, -1))
1858
1873
  ]);
1859
1874
  }
1860
- const un = /* @__PURE__ */ U(ln, [["render", on], ["__scopeId", "data-v-274f5ba3"]]);
1861
- function vn(e) {
1862
- e.use(pe), e.component("ACheckbox", ze), e.component("ACurrencyInput", St), e.component("ADate", aa), e.component("ADropdown", fa), e.component("ADatePicker", we), e.component("ADateTime", de), e.component("ADateRange", Ia), e.component("ADateSelection", ne), e.component("AFieldset", Ra), e.component("AFileAttach", Qa), e.component("AForm", De), e.component("AFormLink", xe), e.component("ANumericInput", Za), e.component("AQuantityInput", Dl), e.component("ATextInput", Bl), e.component("ATextboxInput", Pl), e.component("ADuration", xa), e.component("AFormLoading", un);
1875
+ const dn = /* @__PURE__ */ H(nn, [["render", un], ["__scopeId", "data-v-274f5ba3"]]);
1876
+ function yn(e) {
1877
+ e.use(Le), e.component("ACheckbox", We), e.component("ACurrencyInput", It), e.component("ADate", la), e.component("ADropdown", va), e.component("ADatePicker", Te), e.component("ADateTime", me), e.component("ADateRange", pa), e.component("ADateSelection", se), e.component("AFieldset", Va), e.component("AFileAttach", Ya), e.component("AForm", Se), e.component("AFormLink", Me), e.component("ANumericInput", Oa), e.component("AQuantityInput", Ml), e.component("ATextInput", Rl), e.component("ATextboxInput", Ql), e.component("ADuration", wa), e.component("AFormLoading", dn);
1863
1878
  }
1864
1879
  export {
1865
- ze as ACheckbox,
1866
- St as ACurrencyInput,
1867
- aa as ADate,
1868
- we as ADatePicker,
1869
- Ia as ADateRange,
1870
- ne as ADateSelection,
1871
- de as ADateTime,
1872
- fa as ADropdown,
1873
- xa as ADuration,
1874
- Ra as AFieldset,
1875
- Qa as AFileAttach,
1876
- De as AForm,
1877
- xe as AFormLink,
1878
- un as AFormLoading,
1879
- Za as ANumericInput,
1880
- Dl as AQuantityInput,
1881
- Bl as ATextInput,
1882
- Pl as ATextboxInput,
1883
- fn as Login,
1884
- ue as deserializeFunction,
1885
- vn as install
1880
+ We as ACheckbox,
1881
+ It as ACurrencyInput,
1882
+ la as ADate,
1883
+ Te as ADatePicker,
1884
+ pa as ADateRange,
1885
+ se as ADateSelection,
1886
+ me as ADateTime,
1887
+ va as ADropdown,
1888
+ wa as ADuration,
1889
+ Va as AFieldset,
1890
+ Ya as AFileAttach,
1891
+ Se as AForm,
1892
+ Me as AFormLink,
1893
+ dn as AFormLoading,
1894
+ Oa as ANumericInput,
1895
+ Ml as AQuantityInput,
1896
+ Rl as ATextInput,
1897
+ Ql as ATextboxInput,
1898
+ vn as Login,
1899
+ ce as deserializeFunction,
1900
+ yn as install
1886
1901
  };
1887
1902
  //# sourceMappingURL=aform.js.map