@stonecrop/aform 0.26.0 → 0.28.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,24 +1,24 @@
1
- import { isBadgeDescriptor as qe, lookupBadge as ce, selectChoices as Ce } from "@stonecrop/schema";
2
- import { install as Be } from "@stonecrop/atable";
3
- import { defineComponent as V, computed as w, useModel as Y, openBlock as r, createElementBlock as m, Fragment as L, createElementVNode as t, toDisplayString as k, withDirectives as F, vModelCheckbox as Ve, vShow as Q, mergeModels as P, useId as Re, ref as p, inject as me, watch as J, normalizeClass as Z, withKeys as q, withModifiers as H, vModelText as G, createCommentVNode as C, renderList as j, renderSlot as ye, createTextVNode as se, unref as O, createVNode as ie, withCtx as Ne, useTemplateRef as oe, onMounted as Se, nextTick as He, reactive as he, vModelSelect as Ue, provide as Ee, createBlock as ee, normalizeStyle as fe, watchEffect as Pe, resolveDynamicComponent as De, mergeProps as Ke } from "vue";
4
- import { vOnClickOutside as be } from "@vueuse/components";
5
- import { onClickOutside as ge, useFileDialog as Qe } from "@vueuse/core";
6
- import './assets/index.css';function ae(e) {
1
+ import { isBadgeDescriptor as Re, lookupBadge as te, selectChoices as Se, hasBadgeOptions as He } from "@stonecrop/schema";
2
+ import { install as Ne } from "@stonecrop/atable";
3
+ import { defineComponent as F, computed as w, useModel as G, openBlock as u, createElementBlock as m, Fragment as L, createElementVNode as t, toDisplayString as k, withDirectives as B, vModelCheckbox as Ae, vShow as K, mergeModels as E, useId as pe, ref as I, inject as fe, watch as X, normalizeClass as Y, withKeys as C, withModifiers as N, vModelText as z, createCommentVNode as q, renderList as j, renderSlot as ye, createTextVNode as ue, unref as Z, createVNode as re, withCtx as Ue, useTemplateRef as se, onMounted as Ie, nextTick as Ee, reactive as be, vModelSelect as Pe, provide as Ke, createBlock as ee, normalizeStyle as ie, vModelRadio as Qe, watchEffect as Ge, resolveDynamicComponent as De, mergeProps as Ye } from "vue";
4
+ import { vOnClickOutside as ge } from "@vueuse/components";
5
+ import { onClickOutside as he, useFileDialog as ze } from "@vueuse/core";
6
+ import './assets/index.css';function le(e) {
7
7
  return Function(`"use strict"; return (${e})`)();
8
8
  }
9
- function Ye(e, o, n, i = {}) {
10
- if (n) {
11
- let u;
12
- if (typeof n == "function" ? u = n(e, i) : u = ae(n)(e, i), qe(u))
13
- return u.label.trim() ? u : void 0;
14
- if (typeof u == "string" && u !== "")
15
- return ce(o, u) ?? { label: u, variant: "neutral" };
9
+ function We(e, l, o, r = {}) {
10
+ if (o) {
11
+ let d;
12
+ if (typeof o == "function" ? d = o(e, r) : d = le(o)(e, r), Re(d))
13
+ return d.label.trim() ? d : void 0;
14
+ if (typeof d == "string" && d !== "")
15
+ return te(l, d) ?? { label: d, variant: "neutral" };
16
16
  }
17
- const a = Ge(e);
17
+ const a = Je(e);
18
18
  if (a !== void 0)
19
- return ce(o, a);
19
+ return te(l, a);
20
20
  }
21
- function Ge(e) {
21
+ function Je(e) {
22
22
  switch (typeof e) {
23
23
  case "string":
24
24
  return e === "" ? void 0 : e;
@@ -30,10 +30,10 @@ function Ge(e) {
30
30
  return;
31
31
  }
32
32
  }
33
- const ze = /* @__PURE__ */ new Set(["neutral", "success", "warning", "danger", "brand"]);
33
+ const Xe = /* @__PURE__ */ new Set(["neutral", "success", "warning", "danger", "brand"]);
34
34
  function we(e) {
35
35
  if (!e?.label?.trim()) return;
36
- const o = e.variant ?? "neutral";
36
+ const l = e.variant ?? "neutral";
37
37
  if (e.color)
38
38
  return {
39
39
  borderLeftWidth: "4px",
@@ -41,28 +41,28 @@ function we(e) {
41
41
  borderLeftColor: e.color,
42
42
  paddingLeft: "calc(1ch - 4px)"
43
43
  };
44
- if (ze.has(o))
44
+ if (Xe.has(l))
45
45
  return {
46
46
  borderLeftWidth: "4px",
47
47
  borderLeftStyle: "solid",
48
- borderLeftColor: `var(--sc-badge-${o}-accent)`,
48
+ borderLeftColor: `var(--sc-badge-${l}-accent)`,
49
49
  paddingLeft: "calc(1ch - 4px)"
50
50
  };
51
51
  }
52
- function We(e) {
53
- const o = [];
54
- for (const n of e)
55
- if (n.kind === "fieldset")
56
- o.push(...We(n.schema));
57
- else if (n.kind === "field") {
58
- const { kind: i, ...a } = n;
59
- o.push(a);
52
+ function Ze(e) {
53
+ const l = [];
54
+ for (const o of e)
55
+ if (o.kind === "fieldset")
56
+ l.push(...Ze(o.schema));
57
+ else if (o.kind === "field") {
58
+ const { kind: r, ...a } = o;
59
+ l.push(a);
60
60
  }
61
- return o;
61
+ return l;
62
62
  }
63
- const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" }, Xe = { class: "aform_display-value" }, Ze = ["for"], je = { class: "aform_checkbox-container aform_input-field" }, et = ["id", "disabled", "required"], tt = ["innerHTML"], at = /* @__PURE__ */ V({
63
+ const Oe = { class: "aform_form-element" }, je = { class: "aform_field-label" }, et = { class: "aform_display-value" }, tt = ["for"], at = { class: "aform_checkbox-container aform_input-field" }, lt = ["id", "disabled", "required"], nt = ["innerHTML"], ot = /* @__PURE__ */ F({
64
64
  __name: "ACheckbox",
65
- props: /* @__PURE__ */ P({
65
+ props: /* @__PURE__ */ E({
66
66
  schema: {},
67
67
  label: {},
68
68
  selectRange: { type: Boolean },
@@ -78,54 +78,54 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
78
78
  }),
79
79
  emits: ["update:modelValue"],
80
80
  setup(e) {
81
- const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Y(e, "modelValue");
82
- return (i, a) => (r(), m("div", Je, [
83
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
84
- t("label", Oe, k(e.label), 1),
85
- t("span", Xe, k(n.value ? "✓" : "✗"), 1)
86
- ], 64)) : (r(), m(L, { key: 1 }, [
81
+ const l = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), o = G(e, "modelValue");
82
+ return (r, a) => (u(), m("div", Oe, [
83
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
84
+ t("label", je, k(e.label), 1),
85
+ t("span", et, k(o.value ? "✓" : "✗"), 1)
86
+ ], 64)) : (u(), m(L, { key: 1 }, [
87
87
  t("label", {
88
88
  class: "aform_field-label",
89
89
  for: e.uuid
90
- }, k(e.label), 9, Ze),
91
- t("span", je, [
92
- F(t("input", {
90
+ }, k(e.label), 9, tt),
91
+ t("span", at, [
92
+ B(t("input", {
93
93
  id: e.uuid,
94
- "onUpdate:modelValue": a[0] || (a[0] = (u) => n.value = u),
94
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d),
95
95
  type: "checkbox",
96
96
  class: "aform_checkbox",
97
97
  disabled: e.mode === "read",
98
98
  required: e.required
99
- }, null, 8, et), [
100
- [Ve, n.value]
99
+ }, null, 8, lt), [
100
+ [Ae, o.value]
101
101
  ])
102
102
  ]),
103
- F(t("p", {
103
+ B(t("p", {
104
104
  class: "aform_error",
105
- innerHTML: o.value
106
- }, null, 8, tt), [
107
- [Q, o.value]
105
+ innerHTML: l.value
106
+ }, null, 8, nt), [
107
+ [K, l.value]
108
108
  ])
109
109
  ], 64))
110
110
  ]));
111
111
  }
112
- }), N = (e, o) => {
113
- const n = e.__vccOpts || e;
114
- for (const [i, a] of o)
115
- n[i] = a;
116
- return n;
117
- }, lt = /* @__PURE__ */ N(at, [["__scopeId", "data-v-ca06741d"]]), nt = {
112
+ }), R = (e, l) => {
113
+ const o = e.__vccOpts || e;
114
+ for (const [r, a] of l)
115
+ o[r] = a;
116
+ return o;
117
+ }, st = /* @__PURE__ */ R(ot, [["__scopeId", "data-v-ca06741d"]]), it = {
118
118
  key: 0,
119
119
  class: "aform_display-value"
120
- }, ot = { class: "aform_form-link-wrapper" }, st = { class: "input-group" }, it = ["placeholder", "aria-label", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "disabled", "onKeydown"], ut = ["onKeydown"], rt = ["aria-label"], dt = {
120
+ }, ut = { class: "aform_form-link-wrapper" }, rt = { class: "input-group" }, dt = ["placeholder", "aria-label", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "disabled", "onKeydown"], ct = ["onKeydown"], mt = ["aria-label"], ft = {
121
121
  key: 0,
122
122
  class: "autocomplete-result loading"
123
- }, ct = ["id", "aria-selected", "onMousedown"], mt = {
123
+ }, vt = ["id", "aria-selected", "onMousedown"], yt = {
124
124
  key: 0,
125
125
  class: "aform_field-label"
126
- }, ft = /* @__PURE__ */ V({
126
+ }, bt = /* @__PURE__ */ F({
127
127
  __name: "AFormLink",
128
- props: /* @__PURE__ */ P({
128
+ props: /* @__PURE__ */ E({
129
129
  schema: {},
130
130
  label: {},
131
131
  selectRange: { type: Boolean },
@@ -153,148 +153,148 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
153
153
  }),
154
154
  emits: ["update:modelValue"],
155
155
  setup(e) {
156
- const o = `${e.uuid ?? `aform-link-${Re()}`}-listbox`, n = Y(e, "modelValue"), i = w(() => A(n.value) !== void 0), a = w(() => {
157
- const T = A(n.value);
158
- return T === void 0 ? "—" : e.formatter ? e.formatter(l(n.value)) : d(n.value) ?? T;
159
- }), u = p(i.value ? a.value : ""), y = p(!1), g = p(!1), h = p([]), s = p(null), x = me("aformLinkNavigator", null), $ = me("aformLinkResolver", null);
156
+ const l = `${e.uuid ?? `aform-link-${pe()}`}-listbox`, o = G(e, "modelValue"), r = w(() => A(o.value) !== void 0), a = w(() => {
157
+ const T = A(o.value);
158
+ return T === void 0 ? "—" : e.formatter ? e.formatter(n(o.value)) : c(o.value) ?? T;
159
+ }), d = I(r.value ? a.value : ""), b = I(!1), h = I(!1), g = I([]), s = I(null), x = fe("aformLinkNavigator", null), $ = fe("aformLinkResolver", null);
160
160
  function A(T) {
161
161
  if (T == null) return;
162
162
  if (typeof T == "string") return T === "" ? void 0 : T;
163
163
  if (typeof T == "number") return String(T);
164
- const B = T.id;
165
- if (!(B == null || B === ""))
166
- return String(B);
164
+ const V = T.id;
165
+ if (!(V == null || V === ""))
166
+ return String(V);
167
167
  }
168
- function d(T) {
168
+ function c(T) {
169
169
  if (T == null || typeof T != "object") return;
170
- const B = T.displayText;
171
- return typeof B == "string" || typeof B == "number" ? String(B) : void 0;
170
+ const V = T.displayText;
171
+ return typeof V == "string" || typeof V == "number" ? String(V) : void 0;
172
172
  }
173
- function l(T) {
173
+ function n(T) {
174
174
  if (T != null && typeof T == "object") return T;
175
- const B = A(T);
176
- return B !== void 0 ? { id: B } : { id: "" };
175
+ const V = A(T);
176
+ return V !== void 0 ? { id: V } : { id: "" };
177
177
  }
178
- J(
179
- () => A(n.value),
178
+ X(
179
+ () => A(o.value),
180
180
  async (T) => {
181
- if (!(!T || d(n.value)))
181
+ if (!(!T || c(o.value)))
182
182
  try {
183
- let B, E;
184
- if (e.filterFunction ? (B = (await (typeof e.filterFunction == "string" ? ae(e.filterFunction) : e.filterFunction)(String(T))).find((re) => String(re.id) === String(T)), E = B?.displayText, E === void 0 && console.warn(
183
+ let V, P;
184
+ if (e.filterFunction ? (V = (await (typeof e.filterFunction == "string" ? le(e.filterFunction) : e.filterFunction)(String(T))).find((ce) => String(ce.id) === String(T)), P = V?.displayText, P === void 0 && console.warn(
185
185
  `[AFormLink] filterFunction returned no matching result for id "${T}". The function must return an item whose \`id\` exactly matches the search string.`
186
- )) : $ && e.doctype && (E = await $(e.doctype, T.toString()) ?? void 0), E) {
187
- const X = { ...l(n.value), ...B, id: T, displayText: E };
188
- u.value = e.formatter ? e.formatter(X) : E, n.value = X;
186
+ )) : $ && e.doctype && (P = await $(e.doctype, T.toString()) ?? void 0), P) {
187
+ const O = { ...n(o.value), ...V, id: T, displayText: P };
188
+ d.value = e.formatter ? e.formatter(O) : P, o.value = O;
189
189
  }
190
190
  } catch {
191
191
  }
192
192
  },
193
193
  { immediate: !0 }
194
194
  );
195
- const f = () => {
196
- const T = A(n.value);
195
+ const v = () => {
196
+ const T = A(o.value);
197
197
  x && e.doctype && T !== void 0 ? x.navigate(e.doctype, T) : x && !e.doctype && console.warn(
198
198
  "[AFormLink] Navigation requested but `doctype` prop is missing. Add `options` (or `doctype`) to the Link field definition to enable navigation."
199
199
  );
200
- }, c = async (T) => {
200
+ }, f = async (T) => {
201
201
  if (!(!e.filterFunction || e.mode === "read")) {
202
- s.value = null, y.value = !0, e.isAsync && (g.value = !0);
202
+ s.value = null, b.value = !0, e.isAsync && (h.value = !0);
203
203
  try {
204
- const B = typeof e.filterFunction == "string" ? ae(e.filterFunction) : e.filterFunction;
205
- h.value = await B(T) ?? [];
204
+ const V = typeof e.filterFunction == "string" ? le(e.filterFunction) : e.filterFunction;
205
+ g.value = await V(T) ?? [];
206
206
  } catch {
207
- h.value = [];
207
+ g.value = [];
208
208
  } finally {
209
- g.value = !1;
209
+ h.value = !1;
210
210
  }
211
211
  }
212
212
  }, M = () => {
213
- y.value = !1, s.value = null, u.value = i.value ? a.value : "";
214
- }, v = () => {
215
- y.value && M();
216
- }, D = () => c(u.value), b = () => c(u.value), I = (T) => {
217
- n.value = T, u.value = e.formatter ? e.formatter(T) : T.displayText ?? String(T.id), y.value = !1, s.value = null;
218
- }, R = () => {
219
- const T = h.value.length;
213
+ b.value = !1, s.value = null, d.value = r.value ? a.value : "";
214
+ }, i = () => {
215
+ b.value && M();
216
+ }, D = () => f(d.value), y = () => f(d.value), p = (T) => {
217
+ o.value = T, d.value = e.formatter ? e.formatter(T) : T.displayText ?? String(T.id), b.value = !1, s.value = null;
218
+ }, H = () => {
219
+ const T = g.value.length;
220
220
  T && (s.value = s.value === null ? 0 : (s.value + 1) % T);
221
- }, z = () => {
222
- h.value.length && (s.value === null || s.value === 0 ? s.value = null : s.value -= 1);
223
- }, te = () => {
224
- s.value !== null && h.value[s.value] && I(h.value[s.value]);
221
+ }, W = () => {
222
+ g.value.length && (s.value === null || s.value === 0 ? s.value = null : s.value -= 1);
223
+ }, ae = () => {
224
+ s.value !== null && g.value[s.value] && p(g.value[s.value]);
225
225
  };
226
- return (T, B) => (r(), m("div", {
227
- class: Z(["aform_form-element", { "aform_form-element--embedded": e.embedded }])
226
+ return (T, V) => (u(), m("div", {
227
+ class: Y(["aform_form-element", { "aform_form-element--embedded": e.embedded }])
228
228
  }, [
229
- e.mode === "display" ? (r(), m("span", nt, k(a.value), 1)) : (r(), m(L, { key: 1 }, [
230
- F((r(), m("div", ot, [
231
- t("div", st, [
232
- F(t("input", {
233
- "onUpdate:modelValue": B[0] || (B[0] = (E) => u.value = E),
229
+ e.mode === "display" ? (u(), m("span", it, k(a.value), 1)) : (u(), m(L, { key: 1 }, [
230
+ B((u(), m("div", ut, [
231
+ t("div", rt, [
232
+ B(t("input", {
233
+ "onUpdate:modelValue": V[0] || (V[0] = (P) => d.value = P),
234
234
  type: "text",
235
235
  role: "combobox",
236
236
  autocomplete: "off",
237
237
  "aria-autocomplete": "list",
238
- class: Z(["aform_input-field", { "aform_input-field--embedded": e.embedded }]),
238
+ class: Y(["aform_input-field", { "aform_input-field--embedded": e.embedded }]),
239
239
  placeholder: e.placeholder,
240
240
  "aria-label": e.ariaLabel,
241
241
  required: e.required,
242
- "aria-expanded": y.value,
243
- "aria-controls": y.value ? o : void 0,
244
- "aria-activedescendant": s.value === null ? void 0 : `${o}-opt-${s.value}`,
242
+ "aria-expanded": b.value,
243
+ "aria-controls": b.value ? l : void 0,
244
+ "aria-activedescendant": s.value === null ? void 0 : `${l}-opt-${s.value}`,
245
245
  disabled: e.disabled || e.mode === "read",
246
- onInput: b,
246
+ onInput: y,
247
247
  onFocus: D,
248
248
  onKeydown: [
249
- q(H(R, ["prevent"]), ["down"]),
250
- q(H(z, ["prevent"]), ["up"]),
251
- q(H(te, ["prevent"]), ["enter"]),
252
- q(M, ["esc"]),
253
- q(M, ["tab"])
249
+ C(N(H, ["prevent"]), ["down"]),
250
+ C(N(W, ["prevent"]), ["up"]),
251
+ C(N(ae, ["prevent"]), ["enter"]),
252
+ C(M, ["esc"]),
253
+ C(M, ["tab"])
254
254
  ]
255
- }, null, 42, it), [
256
- [G, u.value]
255
+ }, null, 42, dt), [
256
+ [z, d.value]
257
257
  ]),
258
- i.value && !e.disabled && !e.embedded ? (r(), m("button", {
258
+ r.value && !e.disabled && !e.embedded ? (u(), m("button", {
259
259
  key: 0,
260
260
  type: "button",
261
261
  class: "aform_form-btn",
262
- onClick: f,
263
- onKeydown: q(H(f, ["prevent"]), ["enter"])
262
+ onClick: v,
263
+ onKeydown: C(N(v, ["prevent"]), ["enter"])
264
264
  }, [
265
265
  t("span", null, k(e.icon === "chevron-right" ? "›" : "→"), 1)
266
- ], 40, ut)) : C("", !0)
266
+ ], 40, ct)) : q("", !0)
267
267
  ]),
268
- y.value ? (r(), m("ul", {
268
+ b.value ? (u(), m("ul", {
269
269
  key: 0,
270
- id: o,
270
+ id: l,
271
271
  class: "autocomplete-results",
272
272
  role: "listbox",
273
273
  "aria-label": e.ariaLabel
274
274
  }, [
275
- g.value ? (r(), m("li", dt, "Loading…")) : (r(!0), m(L, { key: 1 }, j(h.value, (E, X) => (r(), m("li", {
276
- id: `${o}-opt-${X}`,
277
- key: String(E.id),
275
+ h.value ? (u(), m("li", ft, "Loading…")) : (u(!0), m(L, { key: 1 }, j(g.value, (P, O) => (u(), m("li", {
276
+ id: `${l}-opt-${O}`,
277
+ key: String(P.id),
278
278
  role: "option",
279
- "aria-selected": X === s.value,
280
- class: Z(["autocomplete-result", { "is-active": X === s.value }]),
281
- onMousedown: H((ue) => I(E), ["prevent"])
279
+ "aria-selected": O === s.value,
280
+ class: Y(["autocomplete-result", { "is-active": O === s.value }]),
281
+ onMousedown: N((de) => p(P), ["prevent"])
282
282
  }, [
283
- ye(T.$slots, "option", { option: E }, () => [
284
- se(k(E.displayText ?? String(E.id)), 1)
283
+ ye(T.$slots, "option", { option: P }, () => [
284
+ ue(k(P.displayText ?? String(P.id)), 1)
285
285
  ], !0)
286
- ], 42, ct))), 128))
287
- ], 8, rt)) : C("", !0)
286
+ ], 42, vt))), 128))
287
+ ], 8, mt)) : q("", !0)
288
288
  ])), [
289
- [O(be), v]
289
+ [Z(ge), i]
290
290
  ]),
291
- e.label && !e.embedded ? (r(), m("label", mt, k(e.label), 1)) : C("", !0)
291
+ e.label && !e.embedded ? (u(), m("label", yt, k(e.label), 1)) : q("", !0)
292
292
  ], 64))
293
293
  ], 2));
294
294
  }
295
- }), Ae = /* @__PURE__ */ N(ft, [["__scopeId", "data-v-154d79c9"]]), vt = { class: "aform_form-element acurrency" }, yt = { class: "aform_display-value" }, ht = { class: "aform_field-label" }, bt = { class: "acurrency__row" }, gt = { class: "acurrency__field acurrency__field--amount" }, kt = { class: "acurrency__group" }, $t = { class: "acurrency__currency" }, xt = { class: "acurrency__amount-wrap" }, Dt = ["id", "disabled", "required"], wt = ["for"], Mt = { class: "acurrency__row acurrency__row--base" }, Tt = { class: "acurrency__field acurrency__field--base-currency" }, St = ["value"], At = { class: "aform_field-label" }, pt = { class: "acurrency__field acurrency__field--base-amount" }, It = ["value"], _t = { class: "aform_field-label" }, Lt = { class: "acurrency__field acurrency__field--exchange-rate" }, Ft = ["value"], qt = { class: "aform_field-label" }, Ct = ["innerHTML"], Me = 6, Bt = /* @__PURE__ */ V({
295
+ }), Le = /* @__PURE__ */ R(bt, [["__scopeId", "data-v-154d79c9"]]), gt = { class: "aform_form-element acurrency" }, ht = { class: "aform_display-value" }, kt = { class: "aform_field-label" }, $t = { class: "acurrency__row" }, xt = { class: "acurrency__field acurrency__field--amount" }, Dt = { class: "acurrency__group" }, wt = { class: "acurrency__currency" }, Mt = { class: "acurrency__amount-wrap" }, Tt = ["id", "disabled", "required"], St = ["for"], At = { class: "acurrency__row acurrency__row--base" }, pt = { class: "acurrency__field acurrency__field--base-currency" }, It = ["value"], Lt = { class: "aform_field-label" }, _t = { class: "acurrency__field acurrency__field--base-amount" }, Bt = ["value"], Ct = { class: "aform_field-label" }, qt = { class: "acurrency__field acurrency__field--exchange-rate" }, Ft = ["value"], Vt = { class: "aform_field-label" }, Rt = ["innerHTML"], Me = 6, Ht = /* @__PURE__ */ F({
296
296
  __name: "ACurrencyInput",
297
- props: /* @__PURE__ */ P({
297
+ props: /* @__PURE__ */ E({
298
298
  schema: {},
299
299
  label: {},
300
300
  selectRange: { type: Boolean },
@@ -323,51 +323,51 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
323
323
  }),
324
324
  emits: ["update:modelValue"],
325
325
  setup(e) {
326
- const o = (v) => v.symbol ?? v.displayText ?? String(v.id), n = Y(e, "modelValue"), i = w(() => {
327
- const v = e.options.baseCurrency ?? n.value?.baseCurrency;
328
- return v ? typeof v == "string" ? { id: v } : v : { id: "" };
329
- }), a = me("aformLinkResolver", null), u = p(i.value);
330
- J(
331
- i,
332
- async (v) => {
333
- if (!v.id || v.displayText || !a || !e.options.doctype) {
334
- u.value = v;
326
+ const l = (i) => i.symbol ?? i.displayText ?? String(i.id), o = G(e, "modelValue"), r = w(() => {
327
+ const i = e.options.baseCurrency ?? o.value?.baseCurrency;
328
+ return i ? typeof i == "string" ? { id: i } : i : { id: "" };
329
+ }), a = fe("aformLinkResolver", null), d = I(r.value);
330
+ X(
331
+ r,
332
+ async (i) => {
333
+ if (!i.id || i.displayText || !a || !e.options.doctype) {
334
+ d.value = i;
335
335
  return;
336
336
  }
337
337
  try {
338
- const D = await a(e.options.doctype, String(v.id));
339
- u.value = D ? { ...v, displayText: D } : v;
338
+ const D = await a(e.options.doctype, String(i.id));
339
+ d.value = D ? { ...i, displayText: D } : i;
340
340
  } catch {
341
- u.value = v;
341
+ d.value = i;
342
342
  }
343
343
  },
344
344
  { immediate: !0 }
345
345
  );
346
- const y = w(() => {
347
- const v = u.value;
348
- return v?.id ? v.displayText ?? String(v.id) : "";
349
- }), g = (v) => {
350
- const D = u.value.id;
351
- return !v || String(v) === String(D) ? 1 : String(v) === String(n.value?.currency?.id) ? n.value?.exchangeRate ?? e.options.exchangeRates?.[String(v)] ?? 1 : e.options.exchangeRates?.[String(v)] ?? 1;
352
- }, h = w(() => {
353
- const { precision: v } = e.options;
354
- return v === void 0 ? Me : Number.isInteger(v) && v >= 0 && v <= 100 ? v : Me;
355
- }), s = (v) => Number(v.toFixed(h.value)), x = (v, D) => {
356
- const b = g(D.id);
357
- n.value = {
358
- amount: v,
346
+ const b = w(() => {
347
+ const i = d.value;
348
+ return i?.id ? i.displayText ?? String(i.id) : "";
349
+ }), h = (i) => {
350
+ const D = d.value.id;
351
+ return !i || String(i) === String(D) ? 1 : String(i) === String(o.value?.currency?.id) ? o.value?.exchangeRate ?? e.options.exchangeRates?.[String(i)] ?? 1 : e.options.exchangeRates?.[String(i)] ?? 1;
352
+ }, g = w(() => {
353
+ const { precision: i } = e.options;
354
+ return i === void 0 ? Me : Number.isInteger(i) && i >= 0 && i <= 100 ? i : Me;
355
+ }), s = (i) => Number(i.toFixed(g.value)), x = (i, D) => {
356
+ const y = h(D.id);
357
+ o.value = {
358
+ amount: i,
359
359
  currency: D,
360
- exchangeRate: b,
361
- baseCurrency: u.value,
362
- baseAmount: s(v * b)
360
+ exchangeRate: y,
361
+ baseCurrency: d.value,
362
+ baseAmount: s(i * y)
363
363
  };
364
364
  }, $ = w({
365
- get: () => n.value?.amount ?? 0,
366
- set: (v) => x(v, n.value?.currency ?? { id: "" })
365
+ get: () => o.value?.amount ?? 0,
366
+ set: (i) => x(i, o.value?.currency ?? { id: "" })
367
367
  }), A = w({
368
- get: () => n.value?.currency ?? { id: "" },
369
- set: (v) => x(n.value?.amount ?? 0, v)
370
- }), d = /* @__PURE__ */ new Set([
368
+ get: () => o.value?.currency ?? { id: "" },
369
+ set: (i) => x(o.value?.amount ?? 0, i)
370
+ }), c = /* @__PURE__ */ new Set([
371
371
  "Backspace",
372
372
  "Delete",
373
373
  "Tab",
@@ -379,65 +379,65 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
379
379
  "ArrowDown",
380
380
  "Home",
381
381
  "End"
382
- ]), l = (v) => {
383
- if (v.ctrlKey || v.metaKey || v.altKey || d.has(v.key) || /^[0-9]$/.test(v.key)) return;
384
- const D = v.target;
385
- v.key === "." && !D.value.includes(".") || v.key === "-" && !D.value.includes("-") || v.preventDefault();
386
- }, f = (v) => {
387
- const D = v.clipboardData?.getData("text") ?? "";
388
- /^-?\d*\.?\d*$/.test(D) || v.preventDefault();
389
- }, c = w(() => {
390
- const v = n.value;
391
- return !!v?.baseCurrency?.id && (v.currency?.id !== v.baseCurrency?.id || v.amount !== v.baseAmount);
382
+ ]), n = (i) => {
383
+ if (i.ctrlKey || i.metaKey || i.altKey || c.has(i.key) || /^[0-9]$/.test(i.key)) return;
384
+ const D = i.target;
385
+ i.key === "." && !D.value.includes(".") || i.key === "-" && !D.value.includes("-") || i.preventDefault();
386
+ }, v = (i) => {
387
+ const D = i.clipboardData?.getData("text") ?? "";
388
+ /^-?\d*\.?\d*$/.test(D) || i.preventDefault();
389
+ }, f = w(() => {
390
+ const i = o.value;
391
+ return !!i?.baseCurrency?.id && (i.currency?.id !== i.baseCurrency?.id || i.amount !== i.baseAmount);
392
392
  }), M = w(() => {
393
- const v = n.value;
394
- if (!v || !v.currency?.id) return "—";
395
- const D = v.currency.displayText ?? String(v.currency.id), b = `${v.amount} ${D}`;
396
- if (!c.value) return b;
397
- const I = v.baseCurrency.displayText ?? String(v.baseCurrency.id);
398
- return `${b} (${v.baseAmount} ${I})`;
393
+ const i = o.value;
394
+ if (!i || !i.currency?.id) return "—";
395
+ const D = i.currency.displayText ?? String(i.currency.id), y = `${i.amount} ${D}`;
396
+ if (!f.value) return y;
397
+ const p = i.baseCurrency.displayText ?? String(i.baseCurrency.id);
398
+ return `${y} (${i.baseAmount} ${p})`;
399
399
  });
400
- return (v, D) => (r(), m("div", vt, [
401
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
402
- t("span", yt, k(M.value), 1),
403
- t("label", ht, k(e.label), 1)
404
- ], 64)) : (r(), m(L, { key: 1 }, [
405
- t("div", bt, [
406
- t("div", gt, [
407
- t("div", kt, [
408
- t("div", $t, [
409
- ie(Ae, {
400
+ return (i, D) => (u(), m("div", gt, [
401
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
402
+ t("span", ht, k(M.value), 1),
403
+ t("label", kt, k(e.label), 1)
404
+ ], 64)) : (u(), m(L, { key: 1 }, [
405
+ t("div", $t, [
406
+ t("div", xt, [
407
+ t("div", Dt, [
408
+ t("div", wt, [
409
+ re(Le, {
410
410
  modelValue: A.value,
411
- "onUpdate:modelValue": D[0] || (D[0] = (b) => A.value = b),
411
+ "onUpdate:modelValue": D[0] || (D[0] = (y) => A.value = y),
412
412
  mode: e.mode,
413
413
  embedded: "",
414
414
  placeholder: e.currencyLabel,
415
415
  "aria-label": e.currencyLabel,
416
416
  required: e.required,
417
- formatter: o,
417
+ formatter: l,
418
418
  doctype: e.options.doctype,
419
419
  "filter-function": e.options.filterFunction,
420
420
  "is-async": e.options.isAsync
421
421
  }, {
422
- option: Ne(({ option: b }) => [
423
- se(k(b.symbol ? `${b.symbol} — ` : "") + k(b.displayText ?? b.id), 1)
422
+ option: Ue(({ option: y }) => [
423
+ ue(k(y.symbol ? `${y.symbol} — ` : "") + k(y.displayText ?? y.id), 1)
424
424
  ]),
425
425
  _: 1
426
426
  }, 8, ["modelValue", "mode", "placeholder", "aria-label", "required", "doctype", "filter-function", "is-async"])
427
427
  ]),
428
- t("div", xt, [
429
- F(t("input", {
428
+ t("div", Mt, [
429
+ B(t("input", {
430
430
  id: e.uuid,
431
- "onUpdate:modelValue": D[1] || (D[1] = (b) => $.value = b),
431
+ "onUpdate:modelValue": D[1] || (D[1] = (y) => $.value = y),
432
432
  class: "acurrency__amount",
433
433
  type: "number",
434
434
  disabled: e.mode === "read",
435
435
  required: e.required,
436
- onKeydown: l,
437
- onPaste: f
438
- }, null, 40, Dt), [
436
+ onKeydown: n,
437
+ onPaste: v
438
+ }, null, 40, Tt), [
439
439
  [
440
- G,
440
+ z,
441
441
  $.value,
442
442
  void 0,
443
443
  { number: !0 }
@@ -446,59 +446,59 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
446
446
  t("label", {
447
447
  class: "aform_field-label",
448
448
  for: e.uuid
449
- }, k(e.label), 9, wt)
449
+ }, k(e.label), 9, St)
450
450
  ])
451
451
  ])
452
452
  ])
453
453
  ]),
454
- t("div", Mt, [
455
- t("div", Tt, [
454
+ t("div", At, [
455
+ t("div", pt, [
456
456
  t("input", {
457
- value: y.value,
457
+ value: b.value,
458
458
  class: "aform_input-field acurrency__base-field",
459
459
  type: "text",
460
460
  disabled: ""
461
- }, null, 8, St),
462
- t("label", At, k(e.baseCurrencyLabel), 1)
461
+ }, null, 8, It),
462
+ t("label", Lt, k(e.baseCurrencyLabel), 1)
463
463
  ]),
464
- t("div", pt, [
464
+ t("div", _t, [
465
465
  t("input", {
466
- value: n.value.baseAmount,
466
+ value: o.value.baseAmount,
467
467
  class: "aform_input-field acurrency__base-field",
468
468
  type: "number",
469
469
  disabled: ""
470
- }, null, 8, It),
471
- t("label", _t, k(e.baseAmountLabel), 1)
470
+ }, null, 8, Bt),
471
+ t("label", Ct, k(e.baseAmountLabel), 1)
472
472
  ]),
473
- t("div", Lt, [
473
+ t("div", qt, [
474
474
  t("input", {
475
- value: n.value.exchangeRate,
475
+ value: o.value.exchangeRate,
476
476
  class: "aform_input-field acurrency__base-field",
477
477
  type: "number",
478
478
  disabled: ""
479
479
  }, null, 8, Ft),
480
- t("label", qt, k(e.exchangeRateLabel), 1)
480
+ t("label", Vt, k(e.exchangeRateLabel), 1)
481
481
  ])
482
482
  ]),
483
- F(t("p", {
483
+ B(t("p", {
484
484
  class: "aform_error",
485
485
  innerHTML: e.validation.errorMessage
486
- }, null, 8, Ct), [
487
- [Q, e.validation.errorMessage]
486
+ }, null, 8, Rt), [
487
+ [K, e.validation.errorMessage]
488
488
  ])
489
489
  ], 64))
490
490
  ]));
491
491
  }
492
- }), Vt = /* @__PURE__ */ N(Bt, [["__scopeId", "data-v-15bec6ef"]]), Rt = { class: "aform_display-value" }, Nt = { key: 0 }, Ht = ["innerHTML"], Ut = {
492
+ }), Nt = /* @__PURE__ */ R(Ht, [["__scopeId", "data-v-15bec6ef"]]), Ut = { class: "aform_display-value" }, Et = { key: 0 }, Pt = ["innerHTML"], Kt = {
493
493
  ref: "datepicker",
494
494
  class: "adatepicker",
495
495
  tabindex: "0"
496
- }, Et = {
496
+ }, Qt = {
497
497
  colspan: "5",
498
498
  tabindex: -1
499
- }, Pt = { key: 0 }, Kt = { colspan: "7" }, Qt = { class: "date-input" }, Yt = ["value"], Gt = ["value"], zt = ["onClick", "onKeydown", "onMouseover"], Wt = ["innerHTML"], Jt = 6, Te = 7, Ot = /* @__PURE__ */ V({
499
+ }, Gt = { key: 0 }, Yt = { colspan: "7" }, zt = { class: "date-input" }, Wt = ["value"], Jt = ["value"], Xt = ["onClick", "onKeydown", "onMouseover"], Zt = ["innerHTML"], Ot = 6, Te = 7, jt = /* @__PURE__ */ F({
500
500
  __name: "ADatePicker",
501
- props: /* @__PURE__ */ P({
501
+ props: /* @__PURE__ */ E({
502
502
  schema: {},
503
503
  label: {},
504
504
  selectRange: { type: Boolean, default: !1 },
@@ -512,72 +512,72 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
512
512
  modelValue: { default: () => /* @__PURE__ */ new Date() },
513
513
  modelModifiers: {}
514
514
  }),
515
- emits: /* @__PURE__ */ P(["get-date"], ["update:modelValue"]),
516
- setup(e, { expose: o, emit: n }) {
517
- const i = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), a = Y(e, "modelValue"), u = p(new Date(a.value)), y = p(u.value.getMonth()), g = p(u.value.getFullYear()), h = p([]), s = p(new Date(a.value)), x = p(null), $ = p(null), A = oe("start-date-input"), d = oe("end-date-input"), l = n, f = w(() => new Date(g.value, y.value, 1).toLocaleDateString(void 0, {
515
+ emits: /* @__PURE__ */ E(["get-date"], ["update:modelValue"]),
516
+ setup(e, { expose: l, emit: o }) {
517
+ const r = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), a = G(e, "modelValue"), d = I(new Date(a.value)), b = I(d.value.getMonth()), h = I(d.value.getFullYear()), g = I([]), s = I(new Date(a.value)), x = I(null), $ = I(null), A = se("start-date-input"), c = se("end-date-input"), n = o, v = w(() => new Date(h.value, b.value, 1).toLocaleDateString(void 0, {
518
518
  year: "numeric",
519
519
  month: "long"
520
- })), c = w(() => x.value != null ? v(x.value) : ""), M = w(() => $.value != null ? v($.value) : ""), v = (S) => W(S) ? S.getMonth() + 1 + "/" + S.getDate() + "/" + S.getFullYear() : "", D = (S) => {
520
+ })), f = w(() => x.value != null ? i(x.value) : ""), M = w(() => $.value != null ? i($.value) : ""), i = (S) => J(S) ? S.getMonth() + 1 + "/" + S.getDate() + "/" + S.getFullYear() : "", D = (S) => {
521
521
  const _ = /* @__PURE__ */ new Date();
522
- return y.value !== _.getMonth() ? !1 : _.toDateString() === new Date(S).toDateString();
523
- }, b = (S) => new Date(S).toDateString() === new Date(u.value).toDateString(), I = (S) => {
522
+ return b.value !== _.getMonth() ? !1 : _.toDateString() === new Date(S).toDateString();
523
+ }, y = (S) => new Date(S).toDateString() === new Date(d.value).toDateString(), p = (S) => {
524
524
  const _ = x.value;
525
- return W(_) ? new Date(S).toDateString() === _.toDateString() : !1;
526
- }, R = (S) => {
525
+ return J(_) ? new Date(S).toDateString() === _.toDateString() : !1;
526
+ }, H = (S) => {
527
527
  const _ = $.value;
528
- return W(_) ? new Date(S).toDateString() === _.toDateString() : !1;
529
- }, z = (S, _) => (S - 1) * Te + _, te = (S) => {
528
+ return J(_) ? new Date(S).toDateString() === _.toDateString() : !1;
529
+ }, W = (S, _) => (S - 1) * Te + _, ae = (S) => {
530
530
  const _ = x.value;
531
- if (!W(_)) return !1;
532
- const U = new Date(S), K = $.value, ne = W(K) ? K : new Date(s.value);
533
- return U.getTime() > _.getTime() && U.getTime() < ne.getTime();
534
- }, T = (S, _) => h.value[z(S, _)], B = (S) => {
535
- s.value = new Date(h.value[S]);
536
- }, E = (S) => {
531
+ if (!J(_)) return !1;
532
+ const U = new Date(S), Q = $.value, oe = J(Q) ? Q : new Date(s.value);
533
+ return U.getTime() > _.getTime() && U.getTime() < oe.getTime();
534
+ }, T = (S, _) => g.value[W(S, _)], V = (S) => {
535
+ s.value = new Date(g.value[S]);
536
+ }, P = (S) => {
537
537
  S.target?.tagName !== "INPUT" && S.preventDefault();
538
- }, X = () => {
539
- h.value = [];
540
- const S = new Date(g.value, y.value, 1), _ = S.getDay(), U = S.setDate(S.getDate() - _);
541
- for (const K of Array(43).keys())
542
- h.value.push(U + K * 864e5);
543
- }, ue = () => g.value -= 1, re = () => g.value += 1, _e = () => {
544
- y.value == 0 ? (y.value = 11, ue()) : y.value -= 1;
545
- }, Le = () => {
546
- y.value == 11 ? (y.value = 0, re()) : y.value += 1;
538
+ }, O = () => {
539
+ g.value = [];
540
+ const S = new Date(h.value, b.value, 1), _ = S.getDay(), U = S.setDate(S.getDate() - _);
541
+ for (const Q of Array(43).keys())
542
+ g.value.push(U + Q * 864e5);
543
+ }, de = () => h.value -= 1, ce = () => h.value += 1, qe = () => {
544
+ b.value == 0 ? (b.value = 11, de()) : b.value -= 1;
545
+ }, Fe = () => {
546
+ b.value == 11 ? (b.value = 0, ce()) : b.value += 1;
547
547
  }, ke = (S) => {
548
- S.key === "Enter" && de();
548
+ S.key === "Enter" && me();
549
549
  }, $e = (S) => {
550
- if (a.value = u.value = new Date(h.value[S]), e.selectRange) {
550
+ if (a.value = d.value = new Date(g.value[S]), e.selectRange) {
551
551
  const _ = x.value;
552
- _ == null || $.value != null ? (x.value = a.value, $.value = null) : W(_) && u.value.getTime() < _.getTime() ? ($.value = null, x.value = a.value) : $.value = a.value, A.value && (A.value.value = v(x.value) ?? ""), d.value && (d.value.value = v($.value) ?? "");
552
+ _ == null || $.value != null ? (x.value = a.value, $.value = null) : J(_) && d.value.getTime() < _.getTime() ? ($.value = null, x.value = a.value) : $.value = a.value, A.value && (A.value.value = i(x.value) ?? ""), c.value && (c.value.value = i($.value) ?? "");
553
553
  }
554
554
  xe();
555
- }, Fe = () => {
555
+ }, Ve = () => {
556
556
  const S = x.value, _ = $.value;
557
- W(_) && W(S) && _.getTime() < S.getTime() && ([x.value, $.value] = [_, S]);
558
- }, W = (S) => S instanceof Date && !isNaN(S.getTime()), de = () => {
557
+ J(_) && J(S) && _.getTime() < S.getTime() && ([x.value, $.value] = [_, S]);
558
+ }, J = (S) => S instanceof Date && !isNaN(S.getTime()), me = () => {
559
559
  if (A.value?.value == "")
560
560
  x.value = null;
561
561
  else if (A.value) {
562
562
  const S = new Date(A.value.value);
563
- x.value = W(S) ? S : null;
563
+ x.value = J(S) ? S : null;
564
564
  }
565
- if (d.value?.value == "")
565
+ if (c.value?.value == "")
566
566
  $.value = null;
567
- else if (d.value) {
568
- const S = new Date(d.value.value);
569
- $.value = W(S) ? S : null;
567
+ else if (c.value) {
568
+ const S = new Date(c.value.value);
569
+ $.value = J(S) ? S : null;
570
570
  }
571
- W(x.value) && (W($.value) && Fe(), u.value = x.value), xe();
571
+ J(x.value) && (J($.value) && Ve(), d.value = x.value), xe();
572
572
  }, xe = () => {
573
- l("get-date", {
573
+ n("get-date", {
574
574
  start: e.selectRange ? x.value : null,
575
575
  end: e.selectRange ? $.value : null,
576
- selected: u.value
576
+ selected: d.value
577
577
  });
578
578
  };
579
- return Se(async () => {
580
- X(), await He();
579
+ return Ie(async () => {
580
+ O(), await Ee();
581
581
  const S = document.getElementsByClassName("selectedDate");
582
582
  if (S.length > 0)
583
583
  S[0].focus();
@@ -585,44 +585,44 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
585
585
  const _ = document.getElementsByClassName("todaysDate");
586
586
  _.length > 0 && _[0].focus();
587
587
  }
588
- }), J([y, g], X), o({ currentMonth: y, currentYear: g, selectedDate: u }), (S, _) => e.mode === "display" || e.mode === "read" ? (r(), m(L, { key: 0 }, [
589
- t("span", Rt, k(a.value ? new Date(a.value).toLocaleDateString() : ""), 1),
590
- e.label ? (r(), m("label", Nt, k(e.label), 1)) : C("", !0),
591
- F(t("p", {
588
+ }), X([b, h], O), l({ currentMonth: b, currentYear: h, selectedDate: d }), (S, _) => e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
589
+ t("span", Ut, k(a.value ? new Date(a.value).toLocaleDateString() : ""), 1),
590
+ e.label ? (u(), m("label", Et, k(e.label), 1)) : q("", !0),
591
+ B(t("p", {
592
592
  class: "aform_error",
593
- innerHTML: i.value
594
- }, null, 8, Ht), [
595
- [Q, i.value]
593
+ innerHTML: r.value
594
+ }, null, 8, Pt), [
595
+ [K, r.value]
596
596
  ])
597
- ], 64)) : (r(), m(L, { key: 1 }, [
598
- t("div", Ut, [
599
- t("table", { onMousedown: E }, [
597
+ ], 64)) : (u(), m(L, { key: 1 }, [
598
+ t("div", Kt, [
599
+ t("table", { onMousedown: P }, [
600
600
  t("tbody", null, [
601
601
  t("tr", null, [
602
602
  t("td", {
603
603
  id: "previous-month-btn",
604
604
  tabindex: -1,
605
- onClick: _e
605
+ onClick: qe
606
606
  }, "<"),
607
- t("th", Et, k(f.value), 1),
607
+ t("th", Qt, k(v.value), 1),
608
608
  t("td", {
609
609
  id: "next-month-btn",
610
610
  tabindex: -1,
611
- onClick: Le
611
+ onClick: Fe
612
612
  }, ">")
613
613
  ]),
614
- e.selectRange ? (r(), m("tr", Pt, [
615
- t("td", Kt, [
616
- t("div", Qt, [
614
+ e.selectRange ? (u(), m("tr", Gt, [
615
+ t("td", Yt, [
616
+ t("div", zt, [
617
617
  t("input", {
618
618
  ref: "start-date-input",
619
- value: c.value,
619
+ value: f.value,
620
620
  class: "date-input-start aform_input-field",
621
621
  type: "text",
622
622
  placeholder: "start date",
623
- onBlur: _[0] || (_[0] = (U) => de()),
623
+ onBlur: _[0] || (_[0] = (U) => me()),
624
624
  onKeydown: ke
625
- }, null, 40, Yt),
625
+ }, null, 40, Wt),
626
626
  _[2] || (_[2] = t("div", null, "-", -1)),
627
627
  t("input", {
628
628
  ref: "end-date-input",
@@ -630,12 +630,12 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
630
630
  class: "date-input-end aform_input-field",
631
631
  type: "text",
632
632
  placeholder: "end date",
633
- onBlur: _[1] || (_[1] = (U) => de()),
633
+ onBlur: _[1] || (_[1] = (U) => me()),
634
634
  onKeydown: ke
635
- }, null, 40, Gt)
635
+ }, null, 40, Jt)
636
636
  ])
637
637
  ])
638
- ])) : C("", !0),
638
+ ])) : q("", !0),
639
639
  _[3] || (_[3] = t("tr", { class: "days-header" }, [
640
640
  t("td", null, "M"),
641
641
  t("td", null, "T"),
@@ -645,41 +645,41 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
645
645
  t("td", null, "S"),
646
646
  t("td", null, "S")
647
647
  ], -1)),
648
- (r(), m(L, null, j(Jt, (U) => t("tr", { key: U }, [
649
- (r(), m(L, null, j(Te, (K) => t("td", {
648
+ (u(), m(L, null, j(Ot, (U) => t("tr", { key: U }, [
649
+ (u(), m(L, null, j(Te, (Q) => t("td", {
650
650
  ref_for: !0,
651
651
  ref: "celldate",
652
- key: z(U, K),
653
- class: Z(["date-cell", {
654
- todaysDate: D(T(U, K)),
655
- selectedDate: b(T(U, K)),
656
- withinRange: e.selectRange ? te(T(U, K)) : !1,
657
- startDate: e.selectRange ? I(T(U, K)) : !1,
658
- endDate: e.selectRange ? R(T(U, K)) : !1
652
+ key: W(U, Q),
653
+ class: Y(["date-cell", {
654
+ todaysDate: D(T(U, Q)),
655
+ selectedDate: y(T(U, Q)),
656
+ withinRange: e.selectRange ? ae(T(U, Q)) : !1,
657
+ startDate: e.selectRange ? p(T(U, Q)) : !1,
658
+ endDate: e.selectRange ? H(T(U, Q)) : !1
659
659
  }]),
660
660
  contenteditable: !1,
661
661
  spellcheck: !1,
662
662
  tabindex: 0,
663
- onClick: H((ne) => $e(z(U, K)), ["prevent", "stop"]),
664
- onKeydown: q((ne) => $e(z(U, K)), ["enter"]),
665
- onMouseover: (ne) => B(z(U, K))
666
- }, k(new Date(T(U, K)).getDate()), 43, zt)), 64))
663
+ onClick: N((oe) => $e(W(U, Q)), ["prevent", "stop"]),
664
+ onKeydown: C((oe) => $e(W(U, Q)), ["enter"]),
665
+ onMouseover: (oe) => V(W(U, Q))
666
+ }, k(new Date(T(U, Q)).getDate()), 43, Xt)), 64))
667
667
  ])), 64))
668
668
  ])
669
669
  ], 32)
670
670
  ], 512),
671
- F(t("p", {
671
+ B(t("p", {
672
672
  class: "aform_error",
673
- innerHTML: i.value
674
- }, null, 8, Wt), [
675
- [Q, i.value]
673
+ innerHTML: r.value
674
+ }, null, 8, Zt), [
675
+ [K, r.value]
676
676
  ])
677
677
  ], 64));
678
678
  }
679
- }), pe = /* @__PURE__ */ N(Ot, [["__scopeId", "data-v-322c2ceb"]]), Xt = { class: "adate_time" }, Zt = { class: "adate_time_fields" }, jt = ["onKeydown"], ea = ["onKeydown"], ta = {
679
+ }), _e = /* @__PURE__ */ R(jt, [["__scopeId", "data-v-322c2ceb"]]), ea = { class: "adate_time" }, ta = { class: "adate_time_fields" }, aa = ["onKeydown"], la = ["onKeydown"], na = {
680
680
  key: 0,
681
681
  class: "colon"
682
- }, aa = ["onKeydown"], la = /* @__PURE__ */ V({
682
+ }, oa = ["onKeydown"], sa = /* @__PURE__ */ F({
683
683
  __name: "ADateTimeInput",
684
684
  props: {
685
685
  allowMilitaryTime: { type: Boolean, default: !1 },
@@ -690,146 +690,146 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
690
690
  useSeconds: { type: Boolean, default: !0 }
691
691
  },
692
692
  emits: ["get-time"],
693
- setup(e, { emit: o }) {
694
- const n = o, i = oe("meridiem-selector"), a = he({
693
+ setup(e, { emit: l }) {
694
+ const o = l, r = se("meridiem-selector"), a = be({
695
695
  hours: String(e.defaultHours).padStart(2, "0"),
696
696
  minutes: String(e.defaultMinutes).padStart(2, "0"),
697
697
  seconds: String(e.defaultSeconds).padStart(2, "0")
698
- }), u = p(e.defaultMeridiem == "AM" ? "AM" : "PM");
699
- Se(() => {
700
- g("init");
698
+ }), d = I(e.defaultMeridiem == "AM" ? "AM" : "PM");
699
+ Ie(() => {
700
+ h("init");
701
701
  });
702
- const y = () => {
703
- const d = e.allowMilitaryTime ? 23 : 12, l = e.allowMilitaryTime ? 0 : 1;
704
- let f = Number(a.hours), c = Number(a.minutes), M = Number(a.seconds);
705
- (isNaN(f) || a.hours === "" || f > d) && (f = d), !e.allowMilitaryTime && f < l && (f = l), (isNaN(c) || a.minutes === "" || c > 59) && (c = 59), (isNaN(M) || a.seconds === "" || M > 59) && (M = 59), a.hours = String(f).padStart(2, "0"), a.minutes = String(c).padStart(2, "0"), a.seconds = String(M).padStart(2, "0"), g("user");
706
- }, g = (d) => {
707
- const l = Number(a.hours), f = Number(a.minutes), c = Number(a.seconds);
708
- n("get-time", {
709
- hours: l,
710
- minutes: f,
711
- seconds: c,
712
- source: d,
713
- meridiem: u.value,
714
- militaryTime: e.allowMilitaryTime ? l : u.value === "PM" ? l === 12 ? 12 : l + 12 : l % 12
702
+ const b = () => {
703
+ const c = e.allowMilitaryTime ? 23 : 12, n = e.allowMilitaryTime ? 0 : 1;
704
+ let v = Number(a.hours), f = Number(a.minutes), M = Number(a.seconds);
705
+ (isNaN(v) || a.hours === "" || v > c) && (v = c), !e.allowMilitaryTime && v < n && (v = n), (isNaN(f) || a.minutes === "" || f > 59) && (f = 59), (isNaN(M) || a.seconds === "" || M > 59) && (M = 59), a.hours = String(v).padStart(2, "0"), a.minutes = String(f).padStart(2, "0"), a.seconds = String(M).padStart(2, "0"), h("user");
706
+ }, h = (c) => {
707
+ const n = Number(a.hours), v = Number(a.minutes), f = Number(a.seconds);
708
+ o("get-time", {
709
+ hours: n,
710
+ minutes: v,
711
+ seconds: f,
712
+ source: c,
713
+ meridiem: d.value,
714
+ militaryTime: e.allowMilitaryTime ? n : d.value === "PM" ? n === 12 ? 12 : n + 12 : n % 12
715
715
  });
716
- }, h = (d) => {
717
- const l = d.target;
718
- l instanceof HTMLInputElement && l.select();
719
- }, s = (d, l = 1) => {
720
- const f = e.allowMilitaryTime ? 23 : 12, c = e.allowMilitaryTime ? 0 : 1;
721
- if (d == "hours") {
716
+ }, g = (c) => {
717
+ const n = c.target;
718
+ n instanceof HTMLInputElement && n.select();
719
+ }, s = (c, n = 1) => {
720
+ const v = e.allowMilitaryTime ? 23 : 12, f = e.allowMilitaryTime ? 0 : 1;
721
+ if (c == "hours") {
722
722
  const D = Number(a.hours);
723
- a.hours = String(D + l), (D == 11 && Number(a.hours) == 12 || D == 12 && Number(a.hours) == 11) && $();
724
- } else d == "minutes" ? a.minutes = String(Number(a.minutes) + l) : d == "seconds" && (a.seconds = String(Number(a.seconds) + l));
723
+ a.hours = String(D + n), (D == 11 && Number(a.hours) == 12 || D == 12 && Number(a.hours) == 11) && $();
724
+ } else c == "minutes" ? a.minutes = String(Number(a.minutes) + n) : c == "seconds" && (a.seconds = String(Number(a.seconds) + n));
725
725
  const M = Number(a.hours);
726
726
  Number(a.seconds) < 0 ? a.minutes = String(Number(a.minutes) - 1) : Number(a.seconds) > 59 && (a.minutes = String(Number(a.minutes) + 1)), Number(a.minutes) < 0 ? a.hours = String(M - 1) : Number(a.minutes) > 59 && (a.hours = String(M + 1));
727
- const v = Number(a.hours);
728
- !e.allowMilitaryTime && v !== M && (M === 11 && v === 12 || M === 12 && v === 11) && $(), a.hours = String(x(Number(a.hours), c, f)).padStart(2, "0"), a.minutes = String(x(Number(a.minutes), 0, 59)).padStart(2, "0"), a.seconds = String(x(Number(a.seconds), 0, 59)).padStart(2, "0");
727
+ const i = Number(a.hours);
728
+ !e.allowMilitaryTime && i !== M && (M === 11 && i === 12 || M === 12 && i === 11) && $(), a.hours = String(x(Number(a.hours), f, v)).padStart(2, "0"), a.minutes = String(x(Number(a.minutes), 0, 59)).padStart(2, "0"), a.seconds = String(x(Number(a.seconds), 0, 59)).padStart(2, "0");
729
729
  };
730
- J(
730
+ X(
731
731
  () => a.hours,
732
- (d, l) => {
733
- a.hours = Number(d) > 99 ? l : d;
732
+ (c, n) => {
733
+ a.hours = Number(c) > 99 ? n : c;
734
734
  }
735
- ), J(
735
+ ), X(
736
736
  () => a.minutes,
737
- (d, l) => {
738
- a.minutes = Number(d) > 99 ? l : d;
737
+ (c, n) => {
738
+ a.minutes = Number(c) > 99 ? n : c;
739
739
  }
740
- ), J(
740
+ ), X(
741
741
  () => a.seconds,
742
- (d, l) => {
743
- a.seconds = Number(d) > 99 ? l : d;
742
+ (c, n) => {
743
+ a.seconds = Number(c) > 99 ? n : c;
744
744
  }
745
745
  );
746
- const x = (d, l, f) => d > f ? l : d < l ? f : d, $ = () => {
747
- u.value = u.value == "PM" ? "AM" : "PM", g("user");
748
- }, A = (d, l = !1) => {
749
- d.stopPropagation(), d.preventDefault();
750
- const f = d.clipboardData;
751
- if (!f) return;
752
- let c = f.getData("Text");
753
- if (c = c.replace(/[^0-9]/g, ""), l) {
754
- c.length % 2 != 0 && (c = "0" + c), c.length < 3 && (c += "00"), c.length < 5 && (c += "00");
755
- const M = c.match(/(..?)/g);
746
+ const x = (c, n, v) => c > v ? n : c < n ? v : c, $ = () => {
747
+ d.value = d.value == "PM" ? "AM" : "PM", h("user");
748
+ }, A = (c, n = !1) => {
749
+ c.stopPropagation(), c.preventDefault();
750
+ const v = c.clipboardData;
751
+ if (!v) return;
752
+ let f = v.getData("Text");
753
+ if (f = f.replace(/[^0-9]/g, ""), n) {
754
+ f.length % 2 != 0 && (f = "0" + f), f.length < 3 && (f += "00"), f.length < 5 && (f += "00");
755
+ const M = f.match(/(..?)/g);
756
756
  if (!M || M.length < 3) return;
757
- a.seconds = M[2], a.minutes = M[1], a.hours = M[0], y(), e.allowMilitaryTime || i.value?.focus();
757
+ a.seconds = M[2], a.minutes = M[1], a.hours = M[0], b(), e.allowMilitaryTime || r.value?.focus();
758
758
  } else {
759
- c.length > 2 && (c = c.slice(0, 2));
760
- const M = d.target;
761
- M instanceof HTMLInputElement && (M.value = c, M.dispatchEvent(new Event("input")));
759
+ f.length > 2 && (f = f.slice(0, 2));
760
+ const M = c.target;
761
+ M instanceof HTMLInputElement && (M.value = f, M.dispatchEvent(new Event("input")));
762
762
  }
763
763
  };
764
- return (d, l) => (r(), m("div", Xt, [
765
- t("div", Zt, [
766
- F(t("input", {
767
- "onUpdate:modelValue": l[0] || (l[0] = (f) => a.hours = f),
764
+ return (c, n) => (u(), m("div", ea, [
765
+ t("div", ta, [
766
+ B(t("input", {
767
+ "onUpdate:modelValue": n[0] || (n[0] = (v) => a.hours = v),
768
768
  type: "text",
769
769
  inputmode: "numeric",
770
- onPaste: l[1] || (l[1] = (f) => A(f, !0)),
771
- onFocus: h,
772
- onBlur: y,
770
+ onPaste: n[1] || (n[1] = (v) => A(v, !0)),
771
+ onFocus: g,
772
+ onBlur: b,
773
773
  onKeydown: [
774
- q(H(y, ["prevent"]), ["enter"]),
775
- l[2] || (l[2] = q(H((f) => s("hours"), ["prevent"]), ["up"])),
776
- l[3] || (l[3] = q(H((f) => s("hours", -1), ["prevent"]), ["down"]))
774
+ C(N(b, ["prevent"]), ["enter"]),
775
+ n[2] || (n[2] = C(N((v) => s("hours"), ["prevent"]), ["up"])),
776
+ n[3] || (n[3] = C(N((v) => s("hours", -1), ["prevent"]), ["down"]))
777
777
  ]
778
- }, null, 40, jt), [
779
- [G, a.hours]
778
+ }, null, 40, aa), [
779
+ [z, a.hours]
780
780
  ]),
781
- l[12] || (l[12] = t("span", { class: "colon" }, ":", -1)),
782
- F(t("input", {
783
- "onUpdate:modelValue": l[4] || (l[4] = (f) => a.minutes = f),
781
+ n[12] || (n[12] = t("span", { class: "colon" }, ":", -1)),
782
+ B(t("input", {
783
+ "onUpdate:modelValue": n[4] || (n[4] = (v) => a.minutes = v),
784
784
  type: "text",
785
785
  inputmode: "numeric",
786
786
  onPaste: A,
787
- onFocus: h,
788
- onBlur: y,
787
+ onFocus: g,
788
+ onBlur: b,
789
789
  onKeydown: [
790
- q(H(y, ["prevent"]), ["enter"]),
791
- l[5] || (l[5] = q(H((f) => s("minutes"), ["prevent"]), ["up"])),
792
- l[6] || (l[6] = q(H((f) => s("minutes", -1), ["prevent"]), ["down"]))
790
+ C(N(b, ["prevent"]), ["enter"]),
791
+ n[5] || (n[5] = C(N((v) => s("minutes"), ["prevent"]), ["up"])),
792
+ n[6] || (n[6] = C(N((v) => s("minutes", -1), ["prevent"]), ["down"]))
793
793
  ]
794
- }, null, 40, ea), [
795
- [G, a.minutes]
794
+ }, null, 40, la), [
795
+ [z, a.minutes]
796
796
  ]),
797
- e.useSeconds ? (r(), m("span", ta, ":")) : C("", !0),
798
- e.useSeconds ? F((r(), m("input", {
797
+ e.useSeconds ? (u(), m("span", na, ":")) : q("", !0),
798
+ e.useSeconds ? B((u(), m("input", {
799
799
  key: 1,
800
- "onUpdate:modelValue": l[7] || (l[7] = (f) => a.seconds = f),
800
+ "onUpdate:modelValue": n[7] || (n[7] = (v) => a.seconds = v),
801
801
  type: "text",
802
802
  inputmode: "numeric",
803
803
  onPaste: A,
804
- onFocus: h,
805
- onBlur: y,
804
+ onFocus: g,
805
+ onBlur: b,
806
806
  onKeydown: [
807
- q(H(y, ["prevent"]), ["enter"]),
808
- l[8] || (l[8] = q(H((f) => s("seconds"), ["prevent"]), ["up"])),
809
- l[9] || (l[9] = q(H((f) => s("seconds", -1), ["prevent"]), ["down"]))
807
+ C(N(b, ["prevent"]), ["enter"]),
808
+ n[8] || (n[8] = C(N((v) => s("seconds"), ["prevent"]), ["up"])),
809
+ n[9] || (n[9] = C(N((v) => s("seconds", -1), ["prevent"]), ["down"]))
810
810
  ]
811
- }, null, 40, aa)), [
812
- [G, a.seconds]
813
- ]) : C("", !0),
814
- e.allowMilitaryTime ? C("", !0) : F((r(), m("select", {
811
+ }, null, 40, oa)), [
812
+ [z, a.seconds]
813
+ ]) : q("", !0),
814
+ e.allowMilitaryTime ? q("", !0) : B((u(), m("select", {
815
815
  key: 2,
816
816
  ref: "meridiem-selector",
817
- "onUpdate:modelValue": l[10] || (l[10] = (f) => u.value = f),
817
+ "onUpdate:modelValue": n[10] || (n[10] = (v) => d.value = v),
818
818
  class: "aform-select meridiem-selector",
819
- onChange: y
820
- }, [...l[11] || (l[11] = [
819
+ onChange: b
820
+ }, [...n[11] || (n[11] = [
821
821
  t("option", { value: "AM" }, "AM", -1),
822
822
  t("option", { value: "PM" }, "PM", -1)
823
823
  ])], 544)), [
824
- [Ue, u.value]
824
+ [Pe, d.value]
825
825
  ])
826
826
  ])
827
827
  ]));
828
828
  }
829
- }), ve = /* @__PURE__ */ N(la, [["__scopeId", "data-v-95ad0aa4"]]), na = { class: "adate-selection" }, oa = {
829
+ }), ve = /* @__PURE__ */ R(sa, [["__scopeId", "data-v-95ad0aa4"]]), ia = { class: "adate-selection" }, ua = {
830
830
  key: 3,
831
831
  class: "empty"
832
- }, sa = /* @__PURE__ */ V({
832
+ }, ra = /* @__PURE__ */ F({
833
833
  __name: "ADateSelection",
834
834
  props: {
835
835
  showDate: { type: Boolean, default: !0 },
@@ -844,41 +844,41 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
844
844
  useSeconds: { type: Boolean, default: !0 }
845
845
  },
846
846
  emits: ["get-date", "get-time", "get-range"],
847
- setup(e, { emit: o }) {
848
- const n = o;
849
- Ee("select-range", e.selectRange);
850
- const i = /* @__PURE__ */ new Date(), a = p(i), u = p(i), y = p(0), g = p(0), h = (l, f) => {
851
- const c = new Date(l);
852
- return c.setHours(0, 0, 0, 0), new Date(c.getTime() + f);
853
- }, s = (l) => {
854
- let f;
855
- if (l.militaryTime !== void 0)
856
- f = l.militaryTime;
847
+ setup(e, { emit: l }) {
848
+ const o = l;
849
+ Ke("select-range", e.selectRange);
850
+ const r = /* @__PURE__ */ new Date(), a = I(r), d = I(r), b = I(0), h = I(0), g = (n, v) => {
851
+ const f = new Date(n);
852
+ return f.setHours(0, 0, 0, 0), new Date(f.getTime() + v);
853
+ }, s = (n) => {
854
+ let v;
855
+ if (n.militaryTime !== void 0)
856
+ v = n.militaryTime;
857
857
  else {
858
- const c = l.hours % 12;
859
- f = l.meridiem === "PM" ? c + 12 : c;
858
+ const f = n.hours % 12;
859
+ v = n.meridiem === "PM" ? f + 12 : f;
860
860
  }
861
- return (f * 3600 + l.minutes * 60 + (l.seconds ?? 0)) * 1e3;
862
- }, x = (l) => {
863
- !e.selectRange || !e.showTime || !e.showEndTime || n("get-range", {
864
- start: h(a.value, y.value),
865
- end: h(u.value, g.value),
866
- source: l
861
+ return (v * 3600 + n.minutes * 60 + (n.seconds ?? 0)) * 1e3;
862
+ }, x = (n) => {
863
+ !e.selectRange || !e.showTime || !e.showEndTime || o("get-range", {
864
+ start: g(a.value, b.value),
865
+ end: g(d.value, h.value),
866
+ source: n
867
867
  });
868
- }, $ = (l) => {
869
- n("get-date", l), e.selectRange && (a.value = l.start ?? l.selected, u.value = l.end ?? l.selected, x("user"));
870
- }, A = (l) => {
871
- y.value = s(l), e.showEndTime ? x(l.source ?? "user") : n("get-time", l);
872
- }, d = (l) => {
873
- g.value = s(l), x(l.source ?? "user");
868
+ }, $ = (n) => {
869
+ o("get-date", n), e.selectRange && (a.value = n.start ?? n.selected, d.value = n.end ?? n.selected, x("user"));
870
+ }, A = (n) => {
871
+ b.value = s(n), e.showEndTime ? x(n.source ?? "user") : o("get-time", n);
872
+ }, c = (n) => {
873
+ h.value = s(n), x(n.source ?? "user");
874
874
  };
875
- return (l, f) => (r(), m("div", na, [
876
- e.showDate ? (r(), ee(pe, {
875
+ return (n, v) => (u(), m("div", ia, [
876
+ e.showDate ? (u(), ee(_e, {
877
877
  key: 0,
878
878
  "select-range": e.selectRange,
879
879
  onGetDate: $
880
- }, null, 8, ["select-range"])) : C("", !0),
881
- e.showTime ? (r(), ee(ve, {
880
+ }, null, 8, ["select-range"])) : q("", !0),
881
+ e.showTime ? (u(), ee(ve, {
882
882
  key: 1,
883
883
  "allow-military-time": e.allowMilitaryTime,
884
884
  "default-hours": e.defaultHours,
@@ -887,25 +887,25 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
887
887
  "default-meridiem": e.defaultMeridiem,
888
888
  "use-seconds": e.useSeconds,
889
889
  onGetTime: A
890
- }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : C("", !0),
891
- e.selectRange && e.showTime && e.showEndTime ? (r(), m(L, { key: 2 }, [
892
- f[0] || (f[0] = t("div", { class: "adate-selection__end-label" }, "End time", -1)),
893
- ie(ve, {
890
+ }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : q("", !0),
891
+ e.selectRange && e.showTime && e.showEndTime ? (u(), m(L, { key: 2 }, [
892
+ v[0] || (v[0] = t("div", { class: "adate-selection__end-label" }, "End time", -1)),
893
+ re(ve, {
894
894
  "allow-military-time": e.allowMilitaryTime,
895
895
  "default-hours": e.defaultHours,
896
896
  "default-minutes": e.defaultMinutes,
897
897
  "default-seconds": e.defaultSeconds,
898
898
  "default-meridiem": e.defaultMeridiem,
899
899
  "use-seconds": e.useSeconds,
900
- onGetTime: d
900
+ onGetTime: c
901
901
  }, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])
902
- ], 64)) : C("", !0),
903
- !e.showTime && !e.showDate ? (r(), m("p", oa, "empty")) : C("", !0)
902
+ ], 64)) : q("", !0),
903
+ !e.showTime && !e.showDate ? (u(), m("p", ua, "empty")) : q("", !0)
904
904
  ]));
905
905
  }
906
- }), le = /* @__PURE__ */ N(sa, [["__scopeId", "data-v-602dfd69"]]), ia = { class: "aform_form-element" }, ua = { class: "aform_display-value" }, ra = { class: "aform_field-label" }, da = ["id", "disabled", "required"], ca = ["for"], ma = ["innerHTML"], fa = /* @__PURE__ */ V({
906
+ }), ne = /* @__PURE__ */ R(ra, [["__scopeId", "data-v-602dfd69"]]), da = { class: "aform_form-element" }, ca = { class: "aform_display-value" }, ma = { class: "aform_field-label" }, fa = ["id", "disabled", "required"], va = ["for"], ya = ["innerHTML"], ba = /* @__PURE__ */ F({
907
907
  __name: "ADate",
908
- props: /* @__PURE__ */ P({
908
+ props: /* @__PURE__ */ E({
909
909
  schema: {},
910
910
  label: { default: "Date" },
911
911
  selectRange: { type: Boolean },
@@ -921,31 +921,31 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
921
921
  }),
922
922
  emits: ["update:modelValue"],
923
923
  setup(e) {
924
- const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Y(e, "modelValue"), i = p(n.value ? new Date(n.value) : /* @__PURE__ */ new Date()), a = w({
925
- get: () => i.value.toISOString().split("T")[0],
924
+ const l = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), o = G(e, "modelValue"), r = I(o.value ? new Date(o.value) : /* @__PURE__ */ new Date()), a = w({
925
+ get: () => r.value.toISOString().split("T")[0],
926
926
  set: (s) => {
927
- i.value = new Date(s), n.value = s;
927
+ r.value = new Date(s), o.value = s;
928
928
  }
929
- }), u = oe("picker"), y = p(!1);
930
- ge(u, () => y.value = !1);
931
- const g = () => {
932
- e.mode !== "read" && (y.value = !y.value);
929
+ }), d = se("picker"), b = I(!1);
930
+ he(d, () => b.value = !1);
931
+ const h = () => {
932
+ e.mode !== "read" && (b.value = !b.value);
933
933
  };
934
- J(
935
- () => n.value,
934
+ X(
935
+ () => o.value,
936
936
  (s) => {
937
- s && (i.value = new Date(s));
937
+ s && (r.value = new Date(s));
938
938
  }
939
939
  );
940
- const h = (s) => {
941
- i.value = s.selected, n.value = a.value, y.value = !1;
940
+ const g = (s) => {
941
+ r.value = s.selected, o.value = a.value, b.value = !1;
942
942
  };
943
- return (s, x) => (r(), m("div", ia, [
944
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
945
- t("span", ua, k(n.value ? new Date(a.value).toLocaleDateString() : ""), 1),
946
- t("label", ra, k(e.label), 1)
947
- ], 64)) : (r(), m(L, { key: 1 }, [
948
- F(t("input", {
943
+ return (s, x) => (u(), m("div", da, [
944
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
945
+ t("span", ca, k(o.value ? new Date(a.value).toLocaleDateString() : ""), 1),
946
+ t("label", ma, k(e.label), 1)
947
+ ], 64)) : (u(), m(L, { key: 1 }, [
948
+ B(t("input", {
949
949
  id: e.uuid,
950
950
  ref: "date",
951
951
  "onUpdate:modelValue": x[0] || (x[0] = ($) => a.value = $),
@@ -953,43 +953,43 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
953
953
  type: "date",
954
954
  disabled: e.mode === "read",
955
955
  required: e.required,
956
- onClick: g
957
- }, null, 8, da), [
958
- [G, a.value]
956
+ onClick: h
957
+ }, null, 8, fa), [
958
+ [z, a.value]
959
959
  ]),
960
960
  t("label", {
961
961
  class: "aform_field-label",
962
962
  for: e.uuid
963
- }, k(e.label), 9, ca),
964
- F(t("p", {
963
+ }, k(e.label), 9, va),
964
+ B(t("p", {
965
965
  class: "aform_error",
966
- innerHTML: o.value
967
- }, null, 8, ma), [
968
- [Q, o.value]
966
+ innerHTML: l.value
967
+ }, null, 8, ya), [
968
+ [K, l.value]
969
969
  ]),
970
- y.value ? (r(), ee(le, {
970
+ b.value ? (u(), ee(ne, {
971
971
  key: 0,
972
972
  ref: "picker",
973
973
  class: "adate-picker",
974
974
  "select-range": !1,
975
975
  "show-time": !1,
976
- onGetDate: h
977
- }, null, 512)) : C("", !0)
976
+ onGetDate: g
977
+ }, null, 512)) : q("", !0)
978
978
  ], 64))
979
979
  ]));
980
980
  }
981
- }), va = /* @__PURE__ */ N(fa, [["__scopeId", "data-v-5de3fe7a"]]), ya = { class: "aform_form-element" }, ha = {
981
+ }), ga = /* @__PURE__ */ R(ba, [["__scopeId", "data-v-5de3fe7a"]]), ha = { class: "aform_form-element" }, ka = {
982
982
  key: 1,
983
983
  class: "aform_display-value"
984
- }, ba = { class: "aform_field-label" }, ga = ["disabled"], ka = {
984
+ }, $a = { class: "aform_field-label" }, xa = ["disabled"], Da = {
985
985
  id: "autocomplete-results",
986
986
  class: "autocomplete-results"
987
- }, $a = {
987
+ }, wa = {
988
988
  key: 0,
989
989
  class: "loading autocomplete-result"
990
- }, xa = ["onClick"], Da = { class: "aform_field-label" }, wa = ["innerHTML"], Ma = /* @__PURE__ */ V({
990
+ }, Ma = ["onClick"], Ta = { class: "aform_field-label" }, Sa = ["innerHTML"], Aa = /* @__PURE__ */ F({
991
991
  __name: "ADropdown",
992
- props: /* @__PURE__ */ P({
992
+ props: /* @__PURE__ */ E({
993
993
  schema: {},
994
994
  label: {},
995
995
  selectRange: { type: Boolean },
@@ -1009,24 +1009,24 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1009
1009
  }),
1010
1010
  emits: ["update:modelValue"],
1011
1011
  setup(e) {
1012
- const o = w(() => Ce(e.options)), n = w(() => e.format ? ae(e.format) : void 0), i = w(() => Ye(g.value, e.options, n.value)), a = w(() => we(i.value)), u = w(() => we(i.value)), y = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), g = Y(e, "modelValue"), h = p(g.value ?? ""), s = he({
1012
+ const l = w(() => Se(e.options)), o = w(() => e.format ? le(e.format) : void 0), r = w(() => We(h.value, e.options, o.value)), a = w(() => we(r.value)), d = w(() => we(r.value)), b = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), h = G(e, "modelValue"), g = I(h.value ?? ""), s = be({
1013
1013
  activeItemIndex: null,
1014
1014
  open: !1,
1015
1015
  loading: !1,
1016
1016
  results: []
1017
1017
  });
1018
- J(
1019
- o,
1018
+ X(
1019
+ l,
1020
1020
  (D) => {
1021
1021
  s.results = D;
1022
1022
  },
1023
1023
  { immediate: !0 }
1024
1024
  );
1025
- const x = () => l(), $ = async () => {
1025
+ const x = () => n(), $ = async () => {
1026
1026
  if (s.open = !0, s.activeItemIndex = null, e.filterFunction) {
1027
1027
  e.isAsync && (s.loading = !0);
1028
1028
  try {
1029
- const D = await e.filterFunction(g.value || "");
1029
+ const D = await e.filterFunction(h.value || "");
1030
1030
  s.results = D || [];
1031
1031
  } catch {
1032
1032
  s.results = [];
@@ -1034,90 +1034,90 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1034
1034
  e.isAsync && (s.loading = !1);
1035
1035
  }
1036
1036
  } else
1037
- f();
1037
+ v();
1038
1038
  }, A = (D) => {
1039
- g.value = D, h.value = D, l(D);
1040
- }, d = () => {
1041
- const D = o.value.indexOf(g.value ?? "");
1042
- s.activeItemIndex = e.isAsync ? null : D >= 0 ? D : null, s.open = !0, s.results = e.isAsync ? [] : o.value;
1043
- }, l = (D) => {
1044
- s.activeItemIndex = null, s.open = !1, o.value.includes(D || g.value || "") || (g.value = h.value);
1045
- }, f = () => {
1046
- g.value ? s.results = o.value.filter((D) => D.toLowerCase().includes((g.value ?? "").toLowerCase())) : s.results = o.value;
1039
+ h.value = D, g.value = D, n(D);
1047
1040
  }, c = () => {
1041
+ const D = l.value.indexOf(h.value ?? "");
1042
+ s.activeItemIndex = e.isAsync ? null : D >= 0 ? D : null, s.open = !0, s.results = e.isAsync ? [] : l.value;
1043
+ }, n = (D) => {
1044
+ s.activeItemIndex = null, s.open = !1, l.value.includes(D || h.value || "") || (h.value = g.value);
1045
+ }, v = () => {
1046
+ h.value ? s.results = l.value.filter((D) => D.toLowerCase().includes((h.value ?? "").toLowerCase())) : s.results = l.value;
1047
+ }, f = () => {
1048
1048
  const D = s.results?.length || 0;
1049
1049
  if (s.activeItemIndex != null) {
1050
- const b = isNaN(s.activeItemIndex) ? 0 : s.activeItemIndex;
1051
- s.activeItemIndex = (b + 1) % D;
1050
+ const y = isNaN(s.activeItemIndex) ? 0 : s.activeItemIndex;
1051
+ s.activeItemIndex = (y + 1) % D;
1052
1052
  } else
1053
1053
  s.activeItemIndex = 0;
1054
1054
  }, M = () => {
1055
1055
  const D = s.results?.length || 0;
1056
1056
  if (s.activeItemIndex != null) {
1057
- const b = isNaN(s.activeItemIndex) ? 0 : s.activeItemIndex;
1058
- b === 0 ? s.activeItemIndex = null : s.activeItemIndex = b - 1;
1057
+ const y = isNaN(s.activeItemIndex) ? 0 : s.activeItemIndex;
1058
+ y === 0 ? s.activeItemIndex = null : s.activeItemIndex = y - 1;
1059
1059
  } else
1060
1060
  s.activeItemIndex = D - 1;
1061
- }, v = () => {
1061
+ }, i = () => {
1062
1062
  if (s.results) {
1063
- const D = s.activeItemIndex || 0, b = s.results[D];
1064
- A(b);
1063
+ const D = s.activeItemIndex || 0, y = s.results[D];
1064
+ A(y);
1065
1065
  }
1066
1066
  s.activeItemIndex = 0;
1067
1067
  };
1068
- return (D, b) => (r(), m("div", ya, [
1069
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
1070
- i.value ? (r(), m("span", {
1068
+ return (D, y) => (u(), m("div", ha, [
1069
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
1070
+ r.value ? (u(), m("span", {
1071
1071
  key: 0,
1072
1072
  class: "aform_display-value",
1073
- style: fe(u.value)
1074
- }, k(i.value.label), 5)) : (r(), m("span", ha, k(g.value ?? ""), 1)),
1075
- t("label", ba, k(e.label), 1)
1076
- ], 64)) : (r(), m(L, { key: 1 }, [
1077
- F((r(), m("div", {
1078
- class: Z(["autocomplete", { isOpen: s.open }])
1073
+ style: ie(d.value)
1074
+ }, k(r.value.label), 5)) : (u(), m("span", ka, k(h.value ?? ""), 1)),
1075
+ t("label", $a, k(e.label), 1)
1076
+ ], 64)) : (u(), m(L, { key: 1 }, [
1077
+ B((u(), m("div", {
1078
+ class: Y(["autocomplete", { isOpen: s.open }])
1079
1079
  }, [
1080
- F(t("input", {
1081
- "onUpdate:modelValue": b[0] || (b[0] = (I) => g.value = I),
1080
+ B(t("input", {
1081
+ "onUpdate:modelValue": y[0] || (y[0] = (p) => h.value = p),
1082
1082
  type: "text",
1083
1083
  class: "aform_input-field",
1084
1084
  disabled: e.mode === "read",
1085
- style: fe(a.value),
1085
+ style: ie(a.value),
1086
1086
  onInput: $,
1087
- onFocus: d,
1087
+ onFocus: c,
1088
1088
  onKeydown: [
1089
- q(c, ["down"]),
1090
- q(M, ["up"]),
1091
- q(v, ["enter"]),
1092
- q(x, ["esc"]),
1093
- q(x, ["tab"])
1089
+ C(f, ["down"]),
1090
+ C(M, ["up"]),
1091
+ C(i, ["enter"]),
1092
+ C(x, ["esc"]),
1093
+ C(x, ["tab"])
1094
1094
  ]
1095
- }, null, 44, ga), [
1096
- [G, g.value]
1095
+ }, null, 44, xa), [
1096
+ [z, h.value]
1097
1097
  ]),
1098
- F(t("ul", ka, [
1099
- s.loading ? (r(), m("li", $a, "Loading results...")) : (r(!0), m(L, { key: 1 }, j(s.results, (I, R) => (r(), m("li", {
1100
- key: I,
1101
- class: Z(["autocomplete-result", { "is-active": R === s.activeItemIndex }]),
1102
- onClick: H((z) => A(I), ["stop"])
1103
- }, k(I), 11, xa))), 128))
1098
+ B(t("ul", Da, [
1099
+ s.loading ? (u(), m("li", wa, "Loading results...")) : (u(!0), m(L, { key: 1 }, j(s.results, (p, H) => (u(), m("li", {
1100
+ key: p,
1101
+ class: Y(["autocomplete-result", { "is-active": H === s.activeItemIndex }]),
1102
+ onClick: N((W) => A(p), ["stop"])
1103
+ }, k(p), 11, Ma))), 128))
1104
1104
  ], 512), [
1105
- [Q, s.open]
1105
+ [K, s.open]
1106
1106
  ]),
1107
- t("label", Da, k(e.label), 1)
1107
+ t("label", Ta, k(e.label), 1)
1108
1108
  ], 2)), [
1109
- [O(be), x]
1109
+ [Z(ge), x]
1110
1110
  ]),
1111
- F(t("p", {
1111
+ B(t("p", {
1112
1112
  class: "aform_error",
1113
- innerHTML: y.value
1114
- }, null, 8, wa), [
1115
- [Q, y.value]
1113
+ innerHTML: b.value
1114
+ }, null, 8, Sa), [
1115
+ [K, b.value]
1116
1116
  ])
1117
1117
  ], 64))
1118
1118
  ]));
1119
1119
  }
1120
- }), Ta = /* @__PURE__ */ N(Ma, [["__scopeId", "data-v-11fc3569"]]), Sa = /* @__PURE__ */ V({
1120
+ }), pa = /* @__PURE__ */ R(Aa, [["__scopeId", "data-v-11fc3569"]]), Ia = /* @__PURE__ */ F({
1121
1121
  __name: "ABadge",
1122
1122
  props: {
1123
1123
  label: {},
@@ -1128,37 +1128,171 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1128
1128
  options: {}
1129
1129
  },
1130
1130
  setup(e) {
1131
- const o = e, n = w(() => {
1132
- if (o.label?.trim())
1131
+ const l = e, o = w(() => {
1132
+ if (l.label?.trim())
1133
1133
  return {
1134
- label: o.label.trim(),
1135
- variant: o.variant,
1136
- color: o.color
1134
+ label: l.label.trim(),
1135
+ variant: l.variant,
1136
+ color: l.color
1137
1137
  };
1138
- if (o.value === null || o.value === void 0 || o.value === "") return;
1139
- const h = typeof o.value == "string" ? o.value : String(o.value);
1140
- return ce(o.options, h);
1141
- }), i = w(() => n.value?.label?.trim() ?? ""), a = w(() => n.value?.variant ?? o.variant ?? "neutral"), u = w(() => n.value?.color ?? o.color), y = w(() => [
1138
+ if (l.value === null || l.value === void 0 || l.value === "") return;
1139
+ const g = typeof l.value == "string" ? l.value : String(l.value);
1140
+ return te(l.options, g);
1141
+ }), r = w(() => o.value?.label?.trim() ?? ""), a = w(() => o.value?.variant ?? l.variant ?? "neutral"), d = w(() => o.value?.color ?? l.color), b = w(() => [
1142
1142
  "abadge",
1143
- `abadge--${o.presentation ?? "cell-fill"}`,
1143
+ `abadge--${l.presentation ?? "cell-fill"}`,
1144
1144
  `abadge--${a.value}`
1145
- ]), g = w(() => {
1146
- const h = u.value;
1147
- return h ? {
1148
- "--sc-badge-bg": h,
1149
- "--sc-badge-text": h,
1150
- "--sc-badge-accent": h
1145
+ ]), h = w(() => {
1146
+ const g = d.value;
1147
+ return g ? {
1148
+ "--sc-badge-bg": g,
1149
+ "--sc-badge-text": g,
1150
+ "--sc-badge-accent": g
1151
1151
  } : {};
1152
1152
  });
1153
- return (h, s) => i.value ? (r(), m("span", {
1153
+ return (g, s) => r.value ? (u(), m("span", {
1154
1154
  key: 0,
1155
- class: Z(y.value),
1156
- style: fe(g.value)
1157
- }, k(i.value), 7)) : C("", !0);
1155
+ class: Y(b.value),
1156
+ style: ie(h.value)
1157
+ }, k(r.value), 7)) : q("", !0);
1158
+ }
1159
+ }), Be = /* @__PURE__ */ R(Ia, [["__scopeId", "data-v-4f364f5f"]]), La = {
1160
+ key: 1,
1161
+ class: "aform_display-value"
1162
+ }, _a = ["id"], Ba = ["role", "aria-labelledby", "aria-label", "aria-busy"], Ca = ["data-segment-value"], qa = ["name", "value", "disabled"], Fa = ["name", "value", "disabled"], Va = { class: "aform_segmented-label" }, Ra = ["innerHTML"], Ha = /* @__PURE__ */ F({
1163
+ __name: "ASegmentedControl",
1164
+ props: /* @__PURE__ */ E({
1165
+ schema: {},
1166
+ label: {},
1167
+ selectRange: { type: Boolean },
1168
+ mask: {},
1169
+ required: { type: Boolean },
1170
+ mode: {},
1171
+ uuid: {},
1172
+ validation: { default: () => ({ errorMessage: "" }) },
1173
+ errors: {},
1174
+ options: { default: () => {
1175
+ } },
1176
+ size: { default: "sm" },
1177
+ equal: { type: Boolean, default: !1 },
1178
+ hideLabel: { type: Boolean, default: !1 },
1179
+ ariaLabel: { default: () => {
1180
+ } },
1181
+ busy: { type: Boolean, default: !1 },
1182
+ multiple: { type: Boolean, default: !1 }
1183
+ }, {
1184
+ modelValue: { default: "" },
1185
+ modelModifiers: {}
1186
+ }),
1187
+ emits: ["update:modelValue"],
1188
+ setup(e) {
1189
+ const l = G(e, "modelValue"), o = w({
1190
+ get: () => Array.isArray(l.value) ? l.value : [],
1191
+ set: (i) => {
1192
+ l.value = i;
1193
+ }
1194
+ }), r = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), a = pe(), d = w(() => e.uuid ?? `aform-segmented-${a}`), b = w(() => `${d.value}-label`), h = w(() => e.hideLabel ? e.ariaLabel : void 0), g = w(() => Se(e.options)), s = w(() => He(e.options));
1195
+ function x(i) {
1196
+ return te(e.options, i)?.label ?? i;
1197
+ }
1198
+ function $(i) {
1199
+ return te(e.options, i)?.variant ?? "neutral";
1200
+ }
1201
+ function A(i) {
1202
+ return e.multiple ? o.value.includes(i) : l.value === i;
1203
+ }
1204
+ function c(i) {
1205
+ return s.value ? {
1206
+ "aform_segmented-segment--badge": !0,
1207
+ [`aform_segmented-segment--${$(i)}`]: A(i)
1208
+ } : {};
1209
+ }
1210
+ function n(i) {
1211
+ if (!s.value || !A(i)) return {};
1212
+ const D = te(e.options, i)?.color;
1213
+ return D ? {
1214
+ "--sc-badge-bg": D,
1215
+ "--sc-badge-text": D
1216
+ } : {};
1217
+ }
1218
+ const v = w(() => {
1219
+ if (e.multiple)
1220
+ return o.value.map(x).filter(Boolean).join(", ");
1221
+ const i = l.value;
1222
+ return typeof i != "string" || i === "" ? "" : x(i);
1223
+ }), f = w(() => s.value ? e.multiple ? o.value.length === 1 : typeof l.value == "string" && l.value !== "" : !1), M = w(() => e.multiple ? o.value[0] ?? "" : typeof l.value == "string" ? l.value : "");
1224
+ return (i, D) => (u(), m("div", {
1225
+ class: Y(["aform_form-element aform_segmented-control", {
1226
+ "aform_segmented-control--xs": e.size === "xs",
1227
+ "aform_segmented-control--sm": e.size === "sm",
1228
+ "aform_segmented-control--equal": e.equal
1229
+ }])
1230
+ }, [
1231
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
1232
+ t("label", {
1233
+ class: Y(["aform_field-label", { "aform_segmented-sr-label": e.hideLabel }])
1234
+ }, k(e.label), 3),
1235
+ f.value ? (u(), ee(Be, {
1236
+ key: 0,
1237
+ class: "aform_display-value aform_segmented-display-badge",
1238
+ value: M.value,
1239
+ options: e.options,
1240
+ presentation: "input-accent"
1241
+ }, null, 8, ["value", "options"])) : (u(), m("span", La, k(v.value), 1))
1242
+ ], 64)) : (u(), m(L, { key: 1 }, [
1243
+ t("label", {
1244
+ id: b.value,
1245
+ class: Y(["aform_field-label", { "aform_segmented-sr-label": e.hideLabel }])
1246
+ }, k(e.label), 11, _a),
1247
+ t("div", {
1248
+ role: e.multiple ? "group" : "radiogroup",
1249
+ class: "aform_segmented-track",
1250
+ "aria-labelledby": h.value ? void 0 : b.value,
1251
+ "aria-label": h.value,
1252
+ "aria-busy": e.busy || void 0
1253
+ }, [
1254
+ (u(!0), m(L, null, j(g.value, (y) => (u(), m("label", {
1255
+ key: y,
1256
+ class: Y(["aform_segmented-segment", c(y)]),
1257
+ style: ie(n(y)),
1258
+ "data-segment-value": y
1259
+ }, [
1260
+ e.multiple ? B((u(), m("input", {
1261
+ key: 0,
1262
+ "onUpdate:modelValue": D[0] || (D[0] = (p) => o.value = p),
1263
+ type: "checkbox",
1264
+ class: "aform_segmented-input",
1265
+ name: d.value,
1266
+ value: y,
1267
+ disabled: e.mode === "read"
1268
+ }, null, 8, qa)), [
1269
+ [Ae, o.value]
1270
+ ]) : B((u(), m("input", {
1271
+ key: 1,
1272
+ "onUpdate:modelValue": D[1] || (D[1] = (p) => l.value = p),
1273
+ type: "radio",
1274
+ class: "aform_segmented-input",
1275
+ name: d.value,
1276
+ value: y,
1277
+ disabled: e.mode === "read"
1278
+ }, null, 8, Fa)), [
1279
+ [Qe, l.value]
1280
+ ]),
1281
+ t("span", Va, k(x(y)), 1)
1282
+ ], 14, Ca))), 128))
1283
+ ], 8, Ba),
1284
+ B(t("p", {
1285
+ class: "aform_error",
1286
+ innerHTML: r.value
1287
+ }, null, 8, Ra), [
1288
+ [K, r.value]
1289
+ ])
1290
+ ], 64))
1291
+ ], 2));
1158
1292
  }
1159
- }), Aa = /* @__PURE__ */ N(Sa, [["__scopeId", "data-v-4f364f5f"]]), pa = { class: "aform_form-element" }, Ia = { class: "aform_display-value" }, _a = { class: "aform_field-label" }, La = ["id", "value", "disabled"], Fa = ["for"], qa = ["innerHTML"], Ca = /* @__PURE__ */ V({
1293
+ }), Na = /* @__PURE__ */ R(Ha, [["__scopeId", "data-v-23f09651"]]), Ua = { class: "aform_form-element" }, Ea = { class: "aform_display-value" }, Pa = { class: "aform_field-label" }, Ka = ["id", "value", "disabled"], Qa = ["for"], Ga = ["innerHTML"], Ya = /* @__PURE__ */ F({
1160
1294
  __name: "ADateTime",
1161
- props: /* @__PURE__ */ P({
1295
+ props: /* @__PURE__ */ E({
1162
1296
  schema: {},
1163
1297
  label: { default: "Date & Time" },
1164
1298
  selectRange: { type: Boolean },
@@ -1176,62 +1310,62 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1176
1310
  }),
1177
1311
  emits: ["update:modelValue"],
1178
1312
  setup(e) {
1179
- const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Y(e, "modelValue"), i = p(n.value ? new Date(n.value) : /* @__PURE__ */ new Date()), a = p(!1), u = p(null);
1180
- ge(u, () => a.value = !1);
1181
- const y = () => {
1313
+ const l = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), o = G(e, "modelValue"), r = I(o.value ? new Date(o.value) : /* @__PURE__ */ new Date()), a = I(!1), d = I(null);
1314
+ he(d, () => a.value = !1);
1315
+ const b = () => {
1182
1316
  e.mode !== "read" && (a.value = !0);
1183
- }, g = w(() => n.value ? i.value.toLocaleString() : ""), h = w(() => g.value), s = w(() => {
1184
- const d = i.value, l = d.getHours(), f = l >= 12 ? "PM" : "AM", c = l % 12 || 12;
1317
+ }, h = w(() => o.value ? r.value.toLocaleString() : ""), g = w(() => h.value), s = w(() => {
1318
+ const c = r.value, n = c.getHours(), v = n >= 12 ? "PM" : "AM", f = n % 12 || 12;
1185
1319
  return {
1186
- hours: e.allowMilitaryTime ? l : c,
1187
- minutes: d.getMinutes(),
1188
- seconds: d.getSeconds(),
1189
- meridiem: f
1320
+ hours: e.allowMilitaryTime ? n : f,
1321
+ minutes: c.getMinutes(),
1322
+ seconds: c.getSeconds(),
1323
+ meridiem: v
1190
1324
  };
1191
1325
  }), x = () => {
1192
- n.value = i.value.toISOString();
1193
- }, $ = (d) => {
1194
- const l = new Date(i.value);
1195
- l.setFullYear(d.selected.getFullYear(), d.selected.getMonth(), d.selected.getDate()), i.value = l, x();
1196
- }, A = (d) => {
1197
- if (d.source === "init") return;
1198
- const l = new Date(i.value), f = d.militaryTime ?? d.hours;
1199
- l.setHours(f, d.minutes, e.useSeconds ? d.seconds : 0, 0), i.value = l, x();
1326
+ o.value = r.value.toISOString();
1327
+ }, $ = (c) => {
1328
+ const n = new Date(r.value);
1329
+ n.setFullYear(c.selected.getFullYear(), c.selected.getMonth(), c.selected.getDate()), r.value = n, x();
1330
+ }, A = (c) => {
1331
+ if (c.source === "init") return;
1332
+ const n = new Date(r.value), v = c.militaryTime ?? c.hours;
1333
+ n.setHours(v, c.minutes, e.useSeconds ? c.seconds : 0, 0), r.value = n, x();
1200
1334
  };
1201
- return J(
1202
- () => n.value,
1203
- (d) => {
1204
- d && (i.value = new Date(d));
1335
+ return X(
1336
+ () => o.value,
1337
+ (c) => {
1338
+ c && (r.value = new Date(c));
1205
1339
  }
1206
- ), (d, l) => (r(), m("div", pa, [
1207
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
1208
- t("span", Ia, k(g.value), 1),
1209
- t("label", _a, k(e.label), 1)
1210
- ], 64)) : (r(), m(L, { key: 1 }, [
1340
+ ), (c, n) => (u(), m("div", Ua, [
1341
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
1342
+ t("span", Ea, k(h.value), 1),
1343
+ t("label", Pa, k(e.label), 1)
1344
+ ], 64)) : (u(), m(L, { key: 1 }, [
1211
1345
  t("input", {
1212
1346
  id: e.uuid,
1213
1347
  class: "aform_input-field",
1214
1348
  type: "text",
1215
- value: h.value,
1349
+ value: g.value,
1216
1350
  placeholder: "Select date and time",
1217
1351
  disabled: e.mode === "read",
1218
1352
  readonly: "",
1219
- onClick: y
1220
- }, null, 8, La),
1353
+ onClick: b
1354
+ }, null, 8, Ka),
1221
1355
  t("label", {
1222
1356
  class: "aform_field-label",
1223
1357
  for: e.uuid
1224
- }, k(e.label), 9, Fa),
1225
- F(t("p", {
1358
+ }, k(e.label), 9, Qa),
1359
+ B(t("p", {
1226
1360
  class: "aform_error",
1227
- innerHTML: o.value
1228
- }, null, 8, qa), [
1229
- [Q, o.value]
1361
+ innerHTML: l.value
1362
+ }, null, 8, Ga), [
1363
+ [K, l.value]
1230
1364
  ]),
1231
- a.value ? (r(), ee(le, {
1365
+ a.value ? (u(), ee(ne, {
1232
1366
  key: 0,
1233
1367
  ref_key: "pickerRef",
1234
- ref: u,
1368
+ ref: d,
1235
1369
  class: "adatetime-picker",
1236
1370
  "select-range": !1,
1237
1371
  "show-date": !0,
@@ -1244,16 +1378,16 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1244
1378
  "use-seconds": e.useSeconds,
1245
1379
  onGetDate: $,
1246
1380
  onGetTime: A
1247
- }, null, 8, ["default-hours", "default-minutes", "default-seconds", "default-meridiem", "allow-military-time", "use-seconds"])) : C("", !0)
1381
+ }, null, 8, ["default-hours", "default-minutes", "default-seconds", "default-meridiem", "allow-military-time", "use-seconds"])) : q("", !0)
1248
1382
  ], 64))
1249
1383
  ]));
1250
1384
  }
1251
- }), Ba = /* @__PURE__ */ N(Ca, [["__scopeId", "data-v-b0fa488b"]]), Va = { class: "aduration" }, Ra = { class: "aform_display-value" }, Na = { class: "aduration__footer" }, Ha = {
1385
+ }), za = /* @__PURE__ */ R(Ya, [["__scopeId", "data-v-b0fa488b"]]), Wa = { class: "aduration" }, Ja = { class: "aform_display-value" }, Xa = { class: "aduration__footer" }, Za = {
1252
1386
  key: 0,
1253
1387
  class: "aduration__summary"
1254
- }, Ua = { class: "aduration__value" }, Ea = { class: "aduration__ms" }, Pa = /* @__PURE__ */ V({
1388
+ }, Oa = { class: "aduration__value" }, ja = { class: "aduration__ms" }, el = /* @__PURE__ */ F({
1255
1389
  __name: "ADuration",
1256
- props: /* @__PURE__ */ P({
1390
+ props: /* @__PURE__ */ E({
1257
1391
  label: { default: "Duration" },
1258
1392
  mode: { default: "edit" },
1259
1393
  allowMilitaryTime: { type: Boolean, default: !1 },
@@ -1264,55 +1398,55 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1264
1398
  }),
1265
1399
  emits: ["update:modelValue"],
1266
1400
  setup(e) {
1267
- const o = Y(e, "modelValue"), n = p(null), i = p(null), a = w(() => {
1268
- if (!n.value || !i.value) return 0;
1269
- const h = i.value.getTime() - n.value.getTime();
1270
- return h > 0 ? h : 0;
1401
+ const l = G(e, "modelValue"), o = I(null), r = I(null), a = w(() => {
1402
+ if (!o.value || !r.value) return 0;
1403
+ const g = r.value.getTime() - o.value.getTime();
1404
+ return g > 0 ? g : 0;
1271
1405
  });
1272
- J(a, (h) => {
1273
- o.value = h;
1406
+ X(a, (g) => {
1407
+ l.value = g;
1274
1408
  });
1275
- const u = (h) => {
1276
- h.source !== "init" && (n.value = h.start, i.value = h.end, o.value = a.value);
1277
- }, y = w(() => {
1278
- const h = a.value;
1279
- if (h === 0) return "0s";
1280
- const s = Math.floor(h / 1e3) % 60, x = Math.floor(h / 6e4) % 60, $ = Math.floor(h / 36e5) % 24, A = Math.floor(h / 864e5);
1409
+ const d = (g) => {
1410
+ g.source !== "init" && (o.value = g.start, r.value = g.end, l.value = a.value);
1411
+ }, b = w(() => {
1412
+ const g = a.value;
1413
+ if (g === 0) return "0s";
1414
+ const s = Math.floor(g / 1e3) % 60, x = Math.floor(g / 6e4) % 60, $ = Math.floor(g / 36e5) % 24, A = Math.floor(g / 864e5);
1281
1415
  return [A && `${A}d`, $ && `${$}h`, x && `${x}m`, s && `${s}s`].filter(Boolean).join(" ") || "0s";
1282
- }), g = w(() => {
1283
- const h = o.value;
1284
- if (!h) return "—";
1285
- const s = Math.floor(h / 1e3) % 60, x = Math.floor(h / 6e4) % 60, $ = Math.floor(h / 36e5) % 24, A = Math.floor(h / 864e5);
1416
+ }), h = w(() => {
1417
+ const g = l.value;
1418
+ if (!g) return "—";
1419
+ const s = Math.floor(g / 1e3) % 60, x = Math.floor(g / 6e4) % 60, $ = Math.floor(g / 36e5) % 24, A = Math.floor(g / 864e5);
1286
1420
  return [A && `${A}d`, $ && `${$}h`, x && `${x}m`, s && `${s}s`].filter(Boolean).join(" ") || "0s";
1287
1421
  });
1288
- return (h, s) => (r(), m("div", Va, [
1289
- e.mode === "display" || e.mode === "read" ? (r(), m(L, { key: 0 }, [
1290
- t("span", Ra, k(g.value), 1),
1422
+ return (g, s) => (u(), m("div", Wa, [
1423
+ e.mode === "display" || e.mode === "read" ? (u(), m(L, { key: 0 }, [
1424
+ t("span", Ja, k(h.value), 1),
1291
1425
  t("label", null, k(e.label), 1)
1292
- ], 64)) : (r(), m(L, { key: 1 }, [
1293
- ie(le, {
1426
+ ], 64)) : (u(), m(L, { key: 1 }, [
1427
+ re(ne, {
1294
1428
  ref: "selectionRef",
1295
1429
  "select-range": !0,
1296
1430
  "show-time": !0,
1297
1431
  "show-end-time": !0,
1298
1432
  "allow-military-time": e.allowMilitaryTime,
1299
1433
  "use-seconds": e.useSeconds,
1300
- onGetRange: u
1434
+ onGetRange: d
1301
1435
  }, null, 8, ["allow-military-time", "use-seconds"]),
1302
- t("div", Na, [
1436
+ t("div", Xa, [
1303
1437
  t("label", null, k(e.label), 1),
1304
- n.value && i.value ? (r(), m("div", Ha, [
1438
+ o.value && r.value ? (u(), m("div", Za, [
1305
1439
  s[0] || (s[0] = t("span", { class: "aduration__label" }, "Duration:", -1)),
1306
- t("span", Ua, k(y.value), 1),
1307
- t("span", Ea, "(" + k(o.value ?? 0) + " ms)", 1)
1308
- ])) : C("", !0)
1440
+ t("span", Oa, k(b.value), 1),
1441
+ t("span", ja, "(" + k(l.value ?? 0) + " ms)", 1)
1442
+ ])) : q("", !0)
1309
1443
  ])
1310
1444
  ], 64))
1311
1445
  ]));
1312
1446
  }
1313
- }), Ka = /* @__PURE__ */ N(Pa, [["__scopeId", "data-v-2e4dd7dd"]]), Qa = { class: "aform_form-element" }, Ya = { class: "aform_display-value" }, Ga = { class: "aform_field-label" }, za = ["id", "value", "disabled"], Wa = ["for"], Ja = ["innerHTML"], Oa = /* @__PURE__ */ V({
1447
+ }), tl = /* @__PURE__ */ R(el, [["__scopeId", "data-v-2e4dd7dd"]]), al = { class: "aform_form-element" }, ll = { class: "aform_display-value" }, nl = { class: "aform_field-label" }, ol = ["id", "value", "disabled"], sl = ["for"], il = ["innerHTML"], ul = /* @__PURE__ */ F({
1314
1448
  __name: "ADateRange",
1315
- props: /* @__PURE__ */ P({
1449
+ props: /* @__PURE__ */ E({
1316
1450
  schema: {},
1317
1451
  label: { default: "Date Range" },
1318
1452
  selectRange: { type: Boolean },
@@ -1330,38 +1464,38 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1330
1464
  }),
1331
1465
  emits: ["update:modelValue"],
1332
1466
  setup(e) {
1333
- const o = (c) => new Date(c).toLocaleDateString(), n = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), i = Y(e, "modelValue"), a = p(i.value.start_date ? new Date(i.value.start_date) : null), u = p(i.value.end_date ? new Date(i.value.end_date) : null), y = p(!1), g = p(null);
1334
- ge(g, () => y.value = !1);
1335
- const h = () => {
1336
- e.mode !== "read" && (y.value = !0);
1337
- }, s = (c) => c ? `${c.getMonth() + 1}/${c.getDate()}/${c.getFullYear()}` : "", x = w(() => {
1338
- const c = s(a.value), M = s(u.value);
1339
- return c && M ? `${c} — ${M}` : c ? `${c} — ...` : "";
1467
+ const l = (f) => new Date(f).toLocaleDateString(), o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), r = G(e, "modelValue"), a = I(r.value.start_date ? new Date(r.value.start_date) : null), d = I(r.value.end_date ? new Date(r.value.end_date) : null), b = I(!1), h = I(null);
1468
+ he(h, () => b.value = !1);
1469
+ const g = () => {
1470
+ e.mode !== "read" && (b.value = !0);
1471
+ }, s = (f) => f ? `${f.getMonth() + 1}/${f.getDate()}/${f.getFullYear()}` : "", x = w(() => {
1472
+ const f = s(a.value), M = s(d.value);
1473
+ return f && M ? `${f} — ${M}` : f ? `${f} — ...` : "";
1340
1474
  }), $ = w(() => {
1341
- const c = i.value.start_date, M = i.value.end_date;
1342
- return !c && !M ? "" : c && M ? `${o(c)} — ${o(M)}` : c ? `From ${o(c)}` : `Until ${o(M)}`;
1475
+ const f = r.value.start_date, M = r.value.end_date;
1476
+ return !f && !M ? "" : f && M ? `${l(f)} — ${l(M)}` : f ? `From ${l(f)}` : `Until ${l(M)}`;
1343
1477
  }), A = () => {
1344
- const c = a.value, M = u.value;
1345
- c && M && M.getTime() < c.getTime() && ([a.value, u.value] = [M, c]);
1346
- }, d = (c) => c ? c.toISOString().split("T")[0] : null, l = () => {
1347
- i.value = {
1348
- start_date: d(a.value),
1349
- end_date: d(u.value)
1478
+ const f = a.value, M = d.value;
1479
+ f && M && M.getTime() < f.getTime() && ([a.value, d.value] = [M, f]);
1480
+ }, c = (f) => f ? f.toISOString().split("T")[0] : null, n = () => {
1481
+ r.value = {
1482
+ start_date: c(a.value),
1483
+ end_date: c(d.value)
1350
1484
  };
1351
- }, f = (c) => {
1352
- c.start && (a.value = c.start), c.end && (u.value = c.end, A(), y.value = !1), l();
1485
+ }, v = (f) => {
1486
+ f.start && (a.value = f.start), f.end && (d.value = f.end, A(), b.value = !1), n();
1353
1487
  };
1354
- return J(
1355
- () => i.value,
1356
- (c) => {
1357
- a.value = c.start_date ? new Date(c.start_date) : null, u.value = c.end_date ? new Date(c.end_date) : null;
1488
+ return X(
1489
+ () => r.value,
1490
+ (f) => {
1491
+ a.value = f.start_date ? new Date(f.start_date) : null, d.value = f.end_date ? new Date(f.end_date) : null;
1358
1492
  },
1359
1493
  { deep: !0 }
1360
- ), (c, M) => (r(), m("div", Qa, [
1361
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
1362
- t("span", Ya, k($.value), 1),
1363
- t("label", Ga, k(e.label), 1)
1364
- ], 64)) : (r(), m(L, { key: 1 }, [
1494
+ ), (f, M) => (u(), m("div", al, [
1495
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
1496
+ t("span", ll, k($.value), 1),
1497
+ t("label", nl, k(e.label), 1)
1498
+ ], 64)) : (u(), m(L, { key: 1 }, [
1365
1499
  t("input", {
1366
1500
  id: e.uuid,
1367
1501
  class: "aform_input-field",
@@ -1370,39 +1504,39 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1370
1504
  placeholder: "Select date range",
1371
1505
  disabled: e.mode === "read",
1372
1506
  readonly: "",
1373
- onClick: h
1374
- }, null, 8, za),
1507
+ onClick: g
1508
+ }, null, 8, ol),
1375
1509
  t("label", {
1376
1510
  class: "aform_field-label",
1377
1511
  for: e.uuid
1378
- }, k(e.label), 9, Wa),
1379
- F(t("p", {
1512
+ }, k(e.label), 9, sl),
1513
+ B(t("p", {
1380
1514
  class: "aform_error",
1381
- innerHTML: n.value
1382
- }, null, 8, Ja), [
1383
- [Q, n.value]
1515
+ innerHTML: o.value
1516
+ }, null, 8, il), [
1517
+ [K, o.value]
1384
1518
  ]),
1385
- y.value ? (r(), ee(le, {
1519
+ b.value ? (u(), ee(ne, {
1386
1520
  key: 0,
1387
1521
  ref_key: "pickerRef",
1388
- ref: g,
1522
+ ref: h,
1389
1523
  class: "adaterange-picker",
1390
1524
  "select-range": !0,
1391
1525
  "show-time": !1,
1392
- onGetDate: f
1393
- }, null, 512)) : C("", !0)
1526
+ onGetDate: v
1527
+ }, null, 512)) : q("", !0)
1394
1528
  ], 64))
1395
1529
  ]));
1396
1530
  }
1397
- }), Xa = /* @__PURE__ */ N(Oa, [["__scopeId", "data-v-f8dad4d3"]]), Za = { class: "aform" }, ja = {
1531
+ }), rl = /* @__PURE__ */ R(ul, [["__scopeId", "data-v-f8dad4d3"]]), dl = { class: "aform" }, cl = {
1398
1532
  key: 0,
1399
1533
  class: "aform-nested-section"
1400
- }, el = {
1534
+ }, ml = {
1401
1535
  key: 0,
1402
1536
  class: "aform-nested-label"
1403
- }, tl = /* @__PURE__ */ V({
1537
+ }, fl = /* @__PURE__ */ F({
1404
1538
  __name: "AForm",
1405
- props: /* @__PURE__ */ P({
1539
+ props: /* @__PURE__ */ E({
1406
1540
  schema: {},
1407
1541
  mode: { default: "edit" },
1408
1542
  errors: {}
@@ -1410,84 +1544,84 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1410
1544
  data: { required: !0 },
1411
1545
  dataModifiers: {}
1412
1546
  }),
1413
- emits: /* @__PURE__ */ P(["update:schema", "update:data"], ["update:data"]),
1414
- setup(e, { emit: o }) {
1415
- const n = o, i = Y(e, "data"), a = (d) => (d.kind === "link" || d.kind === "fieldset") && "schema" in d && Array.isArray(d.schema) && d.schema.length > 0, u = p({});
1416
- J(
1417
- () => i.value,
1418
- (d) => {
1419
- !e.schema || !d || e.schema.forEach((l) => {
1420
- a(l) && (u.value[l.fieldname] = d[l.fieldname] ?? {});
1547
+ emits: /* @__PURE__ */ E(["update:schema", "update:data"], ["update:data"]),
1548
+ setup(e, { emit: l }) {
1549
+ const o = l, r = G(e, "data"), a = (c) => (c.kind === "link" || c.kind === "fieldset") && "schema" in c && Array.isArray(c.schema) && c.schema.length > 0, d = I({});
1550
+ X(
1551
+ () => r.value,
1552
+ (c) => {
1553
+ !e.schema || !c || e.schema.forEach((n) => {
1554
+ a(n) && (d.value[n.fieldname] = c[n.fieldname] ?? {});
1421
1555
  });
1422
1556
  },
1423
1557
  { immediate: !0 }
1424
1558
  );
1425
- const y = (d, l) => {
1426
- u.value[d] = l, i.value && (i.value[d] = l, n("update:data", { ...i.value }));
1427
- }, g = (d) => {
1428
- const l = {};
1429
- for (const [f, c] of Object.entries(d))
1430
- ["component", "primaryKey", "computed", "language", "hidden", "mode", "width"].includes(f) || (l[f] = c);
1431
- return d.kind === "table" && (l.rows = i.value[d.fieldname] || []), l;
1432
- }, h = (d) => {
1433
- if (d.kind !== "field") return {};
1434
- const l = d.width;
1435
- return l ? { flexBasis: l, width: l } : {};
1559
+ const b = (c, n) => {
1560
+ d.value[c] = n, r.value && (r.value[c] = n, o("update:data", { ...r.value }));
1561
+ }, h = (c) => {
1562
+ const n = {};
1563
+ for (const [v, f] of Object.entries(c))
1564
+ ["component", "primaryKey", "computed", "language", "hidden", "mode", "width", "height"].includes(v) || (n[v] = f);
1565
+ return c.kind === "table" && (n.rows = r.value[c.fieldname] || []), n;
1566
+ }, g = (c) => {
1567
+ if (c.kind !== "field") return {};
1568
+ const n = {};
1569
+ return c.width && (n.flexBasis = c.width, n.width = c.width), c.height && (n.height = c.height, n.minHeight = "0", n.flexGrow = "1", n.alignSelf = "stretch"), n;
1436
1570
  }, s = w(() => e.mode ?? "edit");
1437
- function x(d) {
1438
- const l = d.mode;
1439
- return l || s.value;
1571
+ function x(c) {
1572
+ const n = c.mode;
1573
+ return n || s.value;
1440
1574
  }
1441
- const $ = p([]);
1442
- Pe(() => {
1443
- e.schema && $.value.length !== e.schema.length && ($.value = e.schema.map((d, l) => w({
1575
+ const $ = I([]);
1576
+ Ge(() => {
1577
+ e.schema && $.value.length !== e.schema.length && ($.value = e.schema.map((c, n) => w({
1444
1578
  get() {
1445
- return i.value?.[e.schema[l].fieldname];
1579
+ return r.value?.[e.schema[n].fieldname];
1446
1580
  },
1447
- set: (f) => {
1448
- const c = e.schema[l].fieldname;
1449
- c && i.value && (i.value[c] = f, n("update:data", { ...i.value })), n("update:schema", e.schema);
1581
+ set: (v) => {
1582
+ const f = e.schema[n].fieldname;
1583
+ f && r.value && (r.value[f] = v, o("update:data", { ...r.value })), o("update:schema", e.schema);
1450
1584
  }
1451
1585
  })));
1452
1586
  });
1453
1587
  const A = w(() => $.value);
1454
- return (d, l) => (r(), m("form", Za, [
1455
- (r(!0), m(L, null, j(e.schema, (f, c) => (r(), m(L, { key: c }, [
1456
- a(f) ? (r(), m("div", ja, [
1457
- f.label && f.kind !== "fieldset" ? (r(), m("h4", el, k(f.label), 1)) : C("", !0),
1458
- (r(), ee(De(f.component ?? "AForm"), {
1459
- data: u.value[f.fieldname],
1460
- mode: x(f),
1461
- schema: f.schema,
1462
- label: f.label,
1463
- collapsible: f.kind === "fieldset" ? f.collapsible : void 0,
1588
+ return (c, n) => (u(), m("form", dl, [
1589
+ (u(!0), m(L, null, j(e.schema, (v, f) => (u(), m(L, { key: f }, [
1590
+ a(v) ? (u(), m("div", cl, [
1591
+ v.label && v.kind !== "fieldset" ? (u(), m("h4", ml, k(v.label), 1)) : q("", !0),
1592
+ (u(), ee(De(v.component ?? "AForm"), {
1593
+ data: d.value[v.fieldname],
1594
+ mode: x(v),
1595
+ schema: v.schema,
1596
+ label: v.label,
1597
+ collapsible: v.kind === "fieldset" ? v.collapsible : void 0,
1464
1598
  errors: e.errors,
1465
- "onUpdate:data": (M) => y(f.fieldname, M)
1599
+ "onUpdate:data": (M) => b(v.fieldname, M)
1466
1600
  }, null, 40, ["data", "mode", "schema", "label", "collapsible", "errors", "onUpdate:data"]))
1467
- ])) : f.hidden ? C("", !0) : (r(), ee(De(f.component), Ke({
1601
+ ])) : v.hidden ? q("", !0) : (u(), ee(De(v.component), Ye({
1468
1602
  key: 1,
1469
- modelValue: A.value[c].value,
1470
- "onUpdate:modelValue": (M) => A.value[c].value = M,
1471
- style: h(f),
1472
- schema: f,
1473
- data: i.value[f.fieldname],
1474
- mode: x(f),
1475
- errors: e.errors?.[f.fieldname]
1476
- }, { ref_for: !0 }, g(f)), null, 16, ["modelValue", "onUpdate:modelValue", "style", "schema", "data", "mode", "errors"]))
1603
+ modelValue: A.value[f].value,
1604
+ "onUpdate:modelValue": (M) => A.value[f].value = M,
1605
+ style: g(v),
1606
+ schema: v,
1607
+ data: r.value[v.fieldname],
1608
+ mode: x(v),
1609
+ errors: e.errors?.[v.fieldname]
1610
+ }, { ref_for: !0 }, h(v)), null, 16, ["modelValue", "onUpdate:modelValue", "style", "schema", "data", "mode", "errors"]))
1477
1611
  ], 64))), 128))
1478
1612
  ]));
1479
1613
  }
1480
- }), Ie = /* @__PURE__ */ N(tl, [["__scopeId", "data-v-bb17171c"]]), al = /* @__PURE__ */ V({
1614
+ }), Ce = /* @__PURE__ */ R(fl, [["__scopeId", "data-v-16a61857"]]), vl = /* @__PURE__ */ F({
1481
1615
  __name: "CollapseButton",
1482
1616
  props: {
1483
1617
  collapsed: { type: Boolean }
1484
1618
  },
1485
1619
  setup(e) {
1486
- return (o, n) => (r(), m("button", {
1487
- class: Z(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
1620
+ return (l, o) => (u(), m("button", {
1621
+ class: Y(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
1488
1622
  }, "×", 2));
1489
1623
  }
1490
- }), ll = /* @__PURE__ */ N(al, [["__scopeId", "data-v-6f1c1b45"]]), nl = /* @__PURE__ */ V({
1624
+ }), yl = /* @__PURE__ */ R(vl, [["__scopeId", "data-v-6f1c1b45"]]), bl = /* @__PURE__ */ F({
1491
1625
  __name: "AFieldset",
1492
1626
  props: {
1493
1627
  schema: {},
@@ -1497,44 +1631,44 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1497
1631
  data: { default: () => ({}) },
1498
1632
  mode: { default: "edit" }
1499
1633
  },
1500
- setup(e, { expose: o }) {
1501
- const n = p(!1), i = p(e.data || []), a = p(e.schema), u = (y) => {
1502
- y.preventDefault(), e.collapsible && (n.value = !n.value);
1634
+ setup(e, { expose: l }) {
1635
+ const o = I(!1), r = I(e.data || []), a = I(e.schema), d = (b) => {
1636
+ b.preventDefault(), e.collapsible && (o.value = !o.value);
1503
1637
  };
1504
- return o({ collapsed: n }), (y, g) => (r(), m("fieldset", null, [
1505
- e.label || e.collapsible ? (r(), m("legend", {
1638
+ return l({ collapsed: o }), (b, h) => (u(), m("fieldset", null, [
1639
+ e.label || e.collapsible ? (u(), m("legend", {
1506
1640
  key: 0,
1507
- onClick: u,
1508
- onSubmit: u
1641
+ onClick: d,
1642
+ onSubmit: d
1509
1643
  }, [
1510
- se(k(e.label) + " ", 1),
1511
- e.collapsible ? (r(), ee(ll, {
1644
+ ue(k(e.label) + " ", 1),
1645
+ e.collapsible ? (u(), ee(yl, {
1512
1646
  key: 0,
1513
- collapsed: n.value
1514
- }, null, 8, ["collapsed"])) : C("", !0)
1515
- ], 32)) : C("", !0),
1516
- ye(y.$slots, "default", { collapsed: n.value }, () => [
1517
- F(ie(Ie, {
1518
- data: i.value,
1519
- "onUpdate:data": g[0] || (g[0] = (h) => i.value = h),
1647
+ collapsed: o.value
1648
+ }, null, 8, ["collapsed"])) : q("", !0)
1649
+ ], 32)) : q("", !0),
1650
+ ye(b.$slots, "default", { collapsed: o.value }, () => [
1651
+ B(re(Ce, {
1652
+ data: r.value,
1653
+ "onUpdate:data": h[0] || (h[0] = (g) => r.value = g),
1520
1654
  schema: a.value,
1521
1655
  mode: e.mode
1522
1656
  }, null, 8, ["data", "schema", "mode"]), [
1523
- [Q, !n.value]
1657
+ [K, !o.value]
1524
1658
  ])
1525
1659
  ], !0)
1526
1660
  ]));
1527
1661
  }
1528
- }), ol = /* @__PURE__ */ N(nl, [["__scopeId", "data-v-162e7317"]]), sl = { class: "aform_form-element aform_file-attach aform__grid--full" }, il = {
1662
+ }), gl = /* @__PURE__ */ R(bl, [["__scopeId", "data-v-162e7317"]]), hl = { class: "aform_form-element aform_file-attach aform__grid--full" }, kl = {
1529
1663
  key: 0,
1530
1664
  class: "aform_file-attach-feedback"
1531
- }, ul = {
1665
+ }, $l = {
1532
1666
  key: 1,
1533
1667
  class: "aform_display-value"
1534
- }, rl = {
1668
+ }, xl = {
1535
1669
  key: 0,
1536
1670
  class: "aform_file-attach-feedback"
1537
- }, dl = ["disabled"], cl = ["disabled"], ml = /* @__PURE__ */ V({
1671
+ }, Dl = ["disabled"], wl = ["disabled"], Ml = /* @__PURE__ */ F({
1538
1672
  __name: "AFileAttach",
1539
1673
  props: {
1540
1674
  schema: {},
@@ -1548,48 +1682,48 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1548
1682
  errors: {}
1549
1683
  },
1550
1684
  setup(e) {
1551
- const { files: o, open: n, reset: i, onChange: a } = Qe(), u = w(() => {
1552
- const y = o.value?.length ?? 0;
1553
- return `${y} ${y === 1 ? "file" : "files"}`;
1685
+ const { files: l, open: o, reset: r, onChange: a } = ze(), d = w(() => {
1686
+ const b = l.value?.length ?? 0;
1687
+ return `${b} ${b === 1 ? "file" : "files"}`;
1554
1688
  });
1555
- return a((y) => y), (y, g) => (r(), m("div", sl, [
1556
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
1557
- O(o) ? (r(), m("div", il, [
1689
+ return a((b) => b), (b, h) => (u(), m("div", hl, [
1690
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
1691
+ Z(l) ? (u(), m("div", kl, [
1558
1692
  t("p", null, [
1559
- t("b", null, k(u.value), 1)
1693
+ t("b", null, k(d.value), 1)
1560
1694
  ]),
1561
- (r(!0), m(L, null, j(O(o), (h) => (r(), m("li", {
1562
- key: h.name
1563
- }, k(h.name), 1))), 128))
1564
- ])) : (r(), m("span", ul, "No file selected"))
1565
- ], 64)) : (r(), m(L, { key: 1 }, [
1566
- O(o) ? (r(), m("div", rl, [
1695
+ (u(!0), m(L, null, j(Z(l), (g) => (u(), m("li", {
1696
+ key: g.name
1697
+ }, k(g.name), 1))), 128))
1698
+ ])) : (u(), m("span", $l, "No file selected"))
1699
+ ], 64)) : (u(), m(L, { key: 1 }, [
1700
+ Z(l) ? (u(), m("div", xl, [
1567
1701
  t("p", null, [
1568
- g[2] || (g[2] = se(" You have selected: ", -1)),
1569
- t("b", null, k(u.value), 1)
1702
+ h[2] || (h[2] = ue(" You have selected: ", -1)),
1703
+ t("b", null, k(d.value), 1)
1570
1704
  ]),
1571
- (r(!0), m(L, null, j(O(o), (h) => (r(), m("li", {
1572
- key: h.name
1573
- }, k(h.name), 1))), 128))
1574
- ])) : C("", !0),
1705
+ (u(!0), m(L, null, j(Z(l), (g) => (u(), m("li", {
1706
+ key: g.name
1707
+ }, k(g.name), 1))), 128))
1708
+ ])) : q("", !0),
1575
1709
  t("button", {
1576
1710
  type: "button",
1577
1711
  class: "aform_form-btn",
1578
1712
  disabled: e.mode === "read",
1579
- onClick: g[0] || (g[0] = (h) => O(n)())
1580
- }, k(e.label), 9, dl),
1713
+ onClick: h[0] || (h[0] = (g) => Z(o)())
1714
+ }, k(e.label), 9, Dl),
1581
1715
  t("button", {
1582
1716
  type: "button",
1583
- disabled: !O(o) || e.mode === "read",
1717
+ disabled: !Z(l) || e.mode === "read",
1584
1718
  class: "aform_form-btn",
1585
- onClick: g[1] || (g[1] = (h) => O(i)())
1586
- }, "Reset", 8, cl)
1719
+ onClick: h[1] || (h[1] = (g) => Z(r)())
1720
+ }, "Reset", 8, wl)
1587
1721
  ], 64))
1588
1722
  ]));
1589
1723
  }
1590
- }), fl = /* @__PURE__ */ N(ml, [["__scopeId", "data-v-8eefd179"]]), vl = { class: "aform_form-element" }, yl = { class: "aform_display-value" }, hl = { class: "aform_field-label" }, bl = ["id", "disabled", "required"], gl = ["for"], kl = ["innerHTML"], $l = /* @__PURE__ */ V({
1724
+ }), Tl = /* @__PURE__ */ R(Ml, [["__scopeId", "data-v-8eefd179"]]), Sl = { class: "aform_form-element" }, Al = { class: "aform_display-value" }, pl = { class: "aform_field-label" }, Il = ["id", "disabled", "required"], Ll = ["for"], _l = ["innerHTML"], Bl = /* @__PURE__ */ F({
1591
1725
  __name: "ANumericInput",
1592
- props: /* @__PURE__ */ P({
1726
+ props: /* @__PURE__ */ E({
1593
1727
  schema: {},
1594
1728
  label: {},
1595
1729
  selectRange: { type: Boolean },
@@ -1605,38 +1739,38 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1605
1739
  }),
1606
1740
  emits: ["update:modelValue"],
1607
1741
  setup(e) {
1608
- const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Y(e, "modelValue");
1609
- return (i, a) => (r(), m("div", vl, [
1610
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
1611
- t("span", yl, k(n.value ?? ""), 1),
1612
- t("label", hl, k(e.label), 1)
1613
- ], 64)) : (r(), m(L, { key: 1 }, [
1614
- F(t("input", {
1742
+ const l = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), o = G(e, "modelValue");
1743
+ return (r, a) => (u(), m("div", Sl, [
1744
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
1745
+ t("span", Al, k(o.value ?? ""), 1),
1746
+ t("label", pl, k(e.label), 1)
1747
+ ], 64)) : (u(), m(L, { key: 1 }, [
1748
+ B(t("input", {
1615
1749
  id: e.uuid,
1616
- "onUpdate:modelValue": a[0] || (a[0] = (u) => n.value = u),
1750
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d),
1617
1751
  class: "aform_input-field",
1618
1752
  type: "number",
1619
1753
  disabled: e.mode === "read",
1620
1754
  required: e.required
1621
- }, null, 8, bl), [
1622
- [G, n.value]
1755
+ }, null, 8, Il), [
1756
+ [z, o.value]
1623
1757
  ]),
1624
1758
  t("label", {
1625
1759
  class: "aform_field-label",
1626
1760
  for: e.uuid
1627
- }, k(e.label), 9, gl),
1628
- F(t("p", {
1761
+ }, k(e.label), 9, Ll),
1762
+ B(t("p", {
1629
1763
  class: "aform_error",
1630
- innerHTML: o.value
1631
- }, null, 8, kl), [
1632
- [Q, o.value]
1764
+ innerHTML: l.value
1765
+ }, null, 8, _l), [
1766
+ [K, l.value]
1633
1767
  ])
1634
1768
  ], 64))
1635
1769
  ]));
1636
1770
  }
1637
- }), xl = { class: "aform_form-element aquantity" }, Dl = { class: "aform_display-value" }, wl = { class: "aform_field-label" }, Ml = { class: "aquantity__row" }, Tl = { class: "aquantity__field aquantity__field--qty" }, Sl = { class: "aquantity__group" }, Al = ["id", "disabled", "required"], pl = { class: "aquantity__uom" }, Il = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], _l = { class: "aquantity__uom-value" }, Ll = ["aria-label"], Fl = ["id", "aria-selected", "onMouseenter", "onClick"], ql = ["for"], Cl = { class: "aquantity__row aquantity__row--stock" }, Bl = { class: "aquantity__field aquantity__field--stock-uom" }, Vl = ["value"], Rl = { class: "aform_field-label" }, Nl = { class: "aquantity__field aquantity__field--stock-qty" }, Hl = ["value"], Ul = { class: "aform_field-label" }, El = { class: "aquantity__field aquantity__field--conversion" }, Pl = ["value"], Kl = { class: "aform_field-label" }, Ql = ["innerHTML"], Yl = /* @__PURE__ */ V({
1771
+ }), Cl = { class: "aform_form-element aquantity" }, ql = { class: "aform_display-value" }, Fl = { class: "aform_field-label" }, Vl = { class: "aquantity__row" }, Rl = { class: "aquantity__field aquantity__field--qty" }, Hl = { class: "aquantity__group" }, Nl = ["id", "disabled", "required"], Ul = { class: "aquantity__uom" }, El = ["id", "disabled", "aria-expanded", "aria-activedescendant", "onKeydown"], Pl = { class: "aquantity__uom-value" }, Kl = ["aria-label"], Ql = ["id", "aria-selected", "onMouseenter", "onClick"], Gl = ["for"], Yl = { class: "aquantity__row aquantity__row--stock" }, zl = { class: "aquantity__field aquantity__field--stock-uom" }, Wl = ["value"], Jl = { class: "aform_field-label" }, Xl = { class: "aquantity__field aquantity__field--stock-qty" }, Zl = ["value"], Ol = { class: "aform_field-label" }, jl = { class: "aquantity__field aquantity__field--conversion" }, en = ["value"], tn = { class: "aform_field-label" }, an = ["innerHTML"], ln = /* @__PURE__ */ F({
1638
1772
  __name: "AQuantityInput",
1639
- props: /* @__PURE__ */ P({
1773
+ props: /* @__PURE__ */ E({
1640
1774
  schema: {},
1641
1775
  label: {},
1642
1776
  selectRange: { type: Boolean },
@@ -1659,27 +1793,27 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1659
1793
  }),
1660
1794
  emits: ["update:modelValue"],
1661
1795
  setup(e) {
1662
- const o = Y(e, "modelValue"), n = w(() => e.options.uoms ?? []), i = (b) => Number(b.toFixed(6)), a = (b) => {
1663
- const I = e.options.stockUom ?? o.value.stockUom;
1664
- if (!b || b === I) return 1;
1665
- const R = e.options.conversionFactors?.[b];
1666
- return R !== void 0 ? R : b === o.value.uom ? o.value.conversionFactor ?? 1 : 1;
1667
- }, u = (b, I) => {
1668
- const R = a(I);
1669
- o.value = {
1670
- qty: b,
1671
- uom: I,
1672
- conversionFactor: R,
1673
- stockUom: e.options.stockUom ?? o.value.stockUom,
1674
- stockQty: i(b * R)
1796
+ const l = G(e, "modelValue"), o = w(() => e.options.uoms ?? []), r = (y) => Number(y.toFixed(6)), a = (y) => {
1797
+ const p = e.options.stockUom ?? l.value.stockUom;
1798
+ if (!y || y === p) return 1;
1799
+ const H = e.options.conversionFactors?.[y];
1800
+ return H !== void 0 ? H : y === l.value.uom ? l.value.conversionFactor ?? 1 : 1;
1801
+ }, d = (y, p) => {
1802
+ const H = a(p);
1803
+ l.value = {
1804
+ qty: y,
1805
+ uom: p,
1806
+ conversionFactor: H,
1807
+ stockUom: e.options.stockUom ?? l.value.stockUom,
1808
+ stockQty: r(y * H)
1675
1809
  };
1676
- }, y = w({
1677
- get: () => o.value?.qty ?? 0,
1678
- set: (b) => u(b, o.value?.uom ?? "")
1679
- }), g = w({
1680
- get: () => o.value?.uom ?? "",
1681
- set: (b) => u(o.value?.qty ?? 0, b)
1682
- }), h = /* @__PURE__ */ new Set([
1810
+ }, b = w({
1811
+ get: () => l.value?.qty ?? 0,
1812
+ set: (y) => d(y, l.value?.uom ?? "")
1813
+ }), h = w({
1814
+ get: () => l.value?.uom ?? "",
1815
+ set: (y) => d(l.value?.qty ?? 0, y)
1816
+ }), g = /* @__PURE__ */ new Set([
1683
1817
  "Backspace",
1684
1818
  "Delete",
1685
1819
  "Tab",
@@ -1691,70 +1825,70 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1691
1825
  "ArrowDown",
1692
1826
  "Home",
1693
1827
  "End"
1694
- ]), s = (b) => {
1695
- if (b.ctrlKey || b.metaKey || b.altKey || h.has(b.key) || /^[0-9]$/.test(b.key)) return;
1696
- const I = b.target;
1697
- b.key === "." && !I.value.includes(".") || b.preventDefault();
1698
- }, x = (b) => {
1699
- const I = b.clipboardData?.getData("text") ?? "";
1700
- /^\d*\.?\d*$/.test(I) || b.preventDefault();
1701
- }, $ = he({ open: !1, activeIndex: -1 }), A = () => {
1702
- $.activeIndex = Math.max(n.value.indexOf(g.value), 0), $.open = !0;
1703
- }, d = () => {
1828
+ ]), s = (y) => {
1829
+ if (y.ctrlKey || y.metaKey || y.altKey || g.has(y.key) || /^[0-9]$/.test(y.key)) return;
1830
+ const p = y.target;
1831
+ y.key === "." && !p.value.includes(".") || y.preventDefault();
1832
+ }, x = (y) => {
1833
+ const p = y.clipboardData?.getData("text") ?? "";
1834
+ /^\d*\.?\d*$/.test(p) || y.preventDefault();
1835
+ }, $ = be({ open: !1, activeIndex: -1 }), A = () => {
1836
+ $.activeIndex = Math.max(o.value.indexOf(h.value), 0), $.open = !0;
1837
+ }, c = () => {
1704
1838
  $.open = !1;
1705
- }, l = () => {
1706
- $.open ? d() : A();
1707
- }, f = (b) => {
1708
- g.value = b, d();
1709
- }, c = (b) => {
1839
+ }, n = () => {
1840
+ $.open ? c() : A();
1841
+ }, v = (y) => {
1842
+ h.value = y, c();
1843
+ }, f = (y) => {
1710
1844
  if (!$.open) {
1711
1845
  A();
1712
1846
  return;
1713
1847
  }
1714
- const I = n.value.length;
1715
- I && ($.activeIndex = ($.activeIndex + b + I) % I);
1848
+ const p = o.value.length;
1849
+ p && ($.activeIndex = ($.activeIndex + y + p) % p);
1716
1850
  }, M = () => {
1717
1851
  if (!$.open) {
1718
1852
  A();
1719
1853
  return;
1720
1854
  }
1721
- const b = n.value[$.activeIndex];
1722
- b !== void 0 && f(b);
1723
- }, v = w(() => {
1724
- const b = o.value;
1725
- return !!b?.stockUom && (b.uom !== b.stockUom || b.qty !== b.stockQty);
1855
+ const y = o.value[$.activeIndex];
1856
+ y !== void 0 && v(y);
1857
+ }, i = w(() => {
1858
+ const y = l.value;
1859
+ return !!y?.stockUom && (y.uom !== y.stockUom || y.qty !== y.stockQty);
1726
1860
  }), D = w(() => {
1727
- const b = o.value;
1728
- if (!b || !b.uom) return "—";
1729
- const I = `${b.qty} ${b.uom}`;
1730
- return v.value ? `${I} (${b.stockQty} ${b.stockUom})` : I;
1861
+ const y = l.value;
1862
+ if (!y || !y.uom) return "—";
1863
+ const p = `${y.qty} ${y.uom}`;
1864
+ return i.value ? `${p} (${y.stockQty} ${y.stockUom})` : p;
1731
1865
  });
1732
- return (b, I) => (r(), m("div", xl, [
1733
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
1734
- t("span", Dl, k(D.value), 1),
1735
- t("label", wl, k(e.label), 1)
1736
- ], 64)) : (r(), m(L, { key: 1 }, [
1737
- t("div", Ml, [
1738
- t("div", Tl, [
1739
- t("div", Sl, [
1740
- F(t("input", {
1866
+ return (y, p) => (u(), m("div", Cl, [
1867
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
1868
+ t("span", ql, k(D.value), 1),
1869
+ t("label", Fl, k(e.label), 1)
1870
+ ], 64)) : (u(), m(L, { key: 1 }, [
1871
+ t("div", Vl, [
1872
+ t("div", Rl, [
1873
+ t("div", Hl, [
1874
+ B(t("input", {
1741
1875
  id: e.uuid,
1742
- "onUpdate:modelValue": I[0] || (I[0] = (R) => y.value = R),
1876
+ "onUpdate:modelValue": p[0] || (p[0] = (H) => b.value = H),
1743
1877
  class: "aquantity__qty",
1744
1878
  type: "number",
1745
1879
  disabled: e.mode === "read",
1746
1880
  required: e.required,
1747
1881
  onKeydown: s,
1748
1882
  onPaste: x
1749
- }, null, 40, Al), [
1883
+ }, null, 40, Nl), [
1750
1884
  [
1751
- G,
1752
- y.value,
1885
+ z,
1886
+ b.value,
1753
1887
  void 0,
1754
1888
  { number: !0 }
1755
1889
  ]
1756
1890
  ]),
1757
- F((r(), m("div", pl, [
1891
+ B((u(), m("div", Ul, [
1758
1892
  t("button", {
1759
1893
  id: `${e.uuid}-uom`,
1760
1894
  type: "button",
@@ -1763,134 +1897,134 @@ const Je = { class: "aform_form-element" }, Oe = { class: "aform_field-label" },
1763
1897
  "aria-haspopup": "listbox",
1764
1898
  "aria-expanded": $.open,
1765
1899
  "aria-activedescendant": $.open && $.activeIndex >= 0 ? `${e.uuid}-uom-opt-${$.activeIndex}` : void 0,
1766
- onClick: l,
1900
+ onClick: n,
1767
1901
  onKeydown: [
1768
- I[1] || (I[1] = q(H((R) => c(1), ["prevent"]), ["down"])),
1769
- I[2] || (I[2] = q(H((R) => c(-1), ["prevent"]), ["up"])),
1770
- q(H(M, ["prevent"]), ["enter"]),
1771
- q(d, ["esc"])
1902
+ p[1] || (p[1] = C(N((H) => f(1), ["prevent"]), ["down"])),
1903
+ p[2] || (p[2] = C(N((H) => f(-1), ["prevent"]), ["up"])),
1904
+ C(N(M, ["prevent"]), ["enter"]),
1905
+ C(c, ["esc"])
1772
1906
  ]
1773
1907
  }, [
1774
- t("span", _l, k(g.value || e.uomLabel), 1),
1775
- I[3] || (I[3] = t("span", {
1908
+ t("span", Pl, k(h.value || e.uomLabel), 1),
1909
+ p[3] || (p[3] = t("span", {
1776
1910
  class: "aquantity__caret",
1777
1911
  "aria-hidden": "true"
1778
1912
  }, null, -1))
1779
- ], 40, Il),
1780
- F(t("ul", {
1913
+ ], 40, El),
1914
+ B(t("ul", {
1781
1915
  class: "aquantity__uom-menu",
1782
1916
  role: "listbox",
1783
1917
  "aria-label": e.uomLabel
1784
1918
  }, [
1785
- (r(!0), m(L, null, j(n.value, (R, z) => (r(), m("li", {
1786
- id: `${e.uuid}-uom-opt-${z}`,
1787
- key: R,
1919
+ (u(!0), m(L, null, j(o.value, (H, W) => (u(), m("li", {
1920
+ id: `${e.uuid}-uom-opt-${W}`,
1921
+ key: H,
1788
1922
  role: "option",
1789
- "aria-selected": R === g.value,
1790
- class: Z(["aquantity__uom-option", { "is-active": z === $.activeIndex }]),
1791
- onMouseenter: (te) => $.activeIndex = z,
1792
- onClick: (te) => f(R)
1793
- }, k(R), 43, Fl))), 128))
1794
- ], 8, Ll), [
1795
- [Q, $.open]
1923
+ "aria-selected": H === h.value,
1924
+ class: Y(["aquantity__uom-option", { "is-active": W === $.activeIndex }]),
1925
+ onMouseenter: (ae) => $.activeIndex = W,
1926
+ onClick: (ae) => v(H)
1927
+ }, k(H), 43, Ql))), 128))
1928
+ ], 8, Kl), [
1929
+ [K, $.open]
1796
1930
  ])
1797
1931
  ])), [
1798
- [O(be), d]
1932
+ [Z(ge), c]
1799
1933
  ])
1800
1934
  ]),
1801
1935
  t("label", {
1802
1936
  class: "aform_field-label",
1803
1937
  for: e.uuid
1804
- }, k(e.label), 9, ql)
1938
+ }, k(e.label), 9, Gl)
1805
1939
  ])
1806
1940
  ]),
1807
- t("div", Cl, [
1808
- t("div", Bl, [
1941
+ t("div", Yl, [
1942
+ t("div", zl, [
1809
1943
  t("input", {
1810
- value: o.value.stockUom,
1944
+ value: l.value.stockUom,
1811
1945
  class: "aform_input-field aquantity__stock-field",
1812
1946
  type: "text",
1813
1947
  disabled: ""
1814
- }, null, 8, Vl),
1815
- t("label", Rl, k(e.stockUomLabel), 1)
1948
+ }, null, 8, Wl),
1949
+ t("label", Jl, k(e.stockUomLabel), 1)
1816
1950
  ]),
1817
- t("div", Nl, [
1951
+ t("div", Xl, [
1818
1952
  t("input", {
1819
- value: o.value.stockQty,
1953
+ value: l.value.stockQty,
1820
1954
  class: "aform_input-field aquantity__stock-field",
1821
1955
  type: "number",
1822
1956
  disabled: ""
1823
- }, null, 8, Hl),
1824
- t("label", Ul, k(e.stockQtyLabel), 1)
1957
+ }, null, 8, Zl),
1958
+ t("label", Ol, k(e.stockQtyLabel), 1)
1825
1959
  ]),
1826
- t("div", El, [
1960
+ t("div", jl, [
1827
1961
  t("input", {
1828
- value: o.value.conversionFactor,
1962
+ value: l.value.conversionFactor,
1829
1963
  class: "aform_input-field aquantity__stock-field",
1830
1964
  type: "number",
1831
1965
  disabled: ""
1832
- }, null, 8, Pl),
1833
- t("label", Kl, k(e.conversionFactorLabel), 1)
1966
+ }, null, 8, en),
1967
+ t("label", tn, k(e.conversionFactorLabel), 1)
1834
1968
  ])
1835
1969
  ]),
1836
- F(t("p", {
1970
+ B(t("p", {
1837
1971
  class: "aform_error",
1838
1972
  innerHTML: e.validation.errorMessage
1839
- }, null, 8, Ql), [
1840
- [Q, e.validation.errorMessage]
1973
+ }, null, 8, an), [
1974
+ [K, e.validation.errorMessage]
1841
1975
  ])
1842
1976
  ], 64))
1843
1977
  ]));
1844
1978
  }
1845
- }), Gl = /* @__PURE__ */ N(Yl, [["__scopeId", "data-v-0b714861"]]);
1846
- function zl(e) {
1979
+ }), nn = /* @__PURE__ */ R(ln, [["__scopeId", "data-v-0b714861"]]);
1980
+ function on(e) {
1847
1981
  try {
1848
- return ae(e);
1982
+ return le(e);
1849
1983
  } catch {
1850
1984
  return;
1851
1985
  }
1852
1986
  }
1853
- function Wl(e) {
1854
- const o = e.value;
1855
- if (!o) return;
1856
- const n = zl(o);
1857
- if (n) {
1987
+ function sn(e) {
1988
+ const l = e.value;
1989
+ if (!l) return;
1990
+ const o = on(l);
1991
+ if (o) {
1858
1992
  const a = e.instance?.locale;
1859
- return n(a);
1993
+ return o(a);
1860
1994
  }
1861
- return o;
1995
+ return l;
1862
1996
  }
1863
- function Jl(e, o) {
1864
- let n = e;
1865
- const i = [o, "/", "-", "(", ")", " "];
1866
- for (const a of i)
1867
- n = n.replaceAll(a, "");
1868
- return n;
1997
+ function un(e, l) {
1998
+ let o = e;
1999
+ const r = [l, "/", "-", "(", ")", " "];
2000
+ for (const a of r)
2001
+ o = o.replaceAll(a, "");
2002
+ return o;
1869
2003
  }
1870
- function Ol(e, o, n) {
1871
- let i = o;
2004
+ function rn(e, l, o) {
2005
+ let r = l;
1872
2006
  for (const a of e) {
1873
- const u = i.indexOf(n);
1874
- if (u !== -1) {
1875
- const y = i.substring(0, u), g = i.substring(u + 1);
1876
- i = y + a + g;
2007
+ const d = r.indexOf(o);
2008
+ if (d !== -1) {
2009
+ const b = r.substring(0, d), h = r.substring(d + 1);
2010
+ r = b + a + h;
1877
2011
  }
1878
2012
  }
1879
- return i.slice(0, o.length);
2013
+ return r.slice(0, l.length);
1880
2014
  }
1881
- function Xl(e, o) {
1882
- const n = Wl(o);
1883
- if (!n) return;
1884
- const i = "#", a = e.value, u = Jl(a, i);
1885
- if (u) {
1886
- const y = Ol(u, n, i), g = o.instance;
1887
- g?.maskFilled && (g.maskFilled = !y.includes(i)), e.value = y;
2015
+ function dn(e, l) {
2016
+ const o = sn(l);
2017
+ if (!o) return;
2018
+ const r = "#", a = e.value, d = un(a, r);
2019
+ if (d) {
2020
+ const b = rn(d, o, r), h = l.instance;
2021
+ h?.maskFilled && (h.maskFilled = !b.includes(r)), e.value = b;
1888
2022
  } else
1889
- e.value = n;
2023
+ e.value = o;
1890
2024
  }
1891
- const Zl = { class: "aform_form-element" }, jl = { class: "aform_display-value" }, en = { class: "aform_field-label" }, tn = ["id", "disabled", "maxlength", "required"], an = ["for"], ln = ["innerHTML"], nn = /* @__PURE__ */ V({
2025
+ const cn = { class: "aform_form-element" }, mn = { class: "aform_display-value" }, fn = { class: "aform_field-label" }, vn = ["id", "disabled", "maxlength", "required"], yn = ["for"], bn = ["innerHTML"], gn = /* @__PURE__ */ F({
1892
2026
  __name: "ATextInput",
1893
- props: /* @__PURE__ */ P({
2027
+ props: /* @__PURE__ */ E({
1894
2028
  schema: {},
1895
2029
  label: {},
1896
2030
  selectRange: { type: Boolean },
@@ -1906,39 +2040,39 @@ const Zl = { class: "aform_form-element" }, jl = { class: "aform_display-value"
1906
2040
  }),
1907
2041
  emits: ["update:modelValue"],
1908
2042
  setup(e) {
1909
- const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = p(!0), i = Y(e, "modelValue");
1910
- return (a, u) => (r(), m("div", Zl, [
1911
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
1912
- t("span", jl, k(i.value ?? ""), 1),
1913
- t("label", en, k(e.label), 1)
1914
- ], 64)) : (r(), m(L, { key: 1 }, [
1915
- F(t("input", {
2043
+ const l = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), o = I(!0), r = G(e, "modelValue");
2044
+ return (a, d) => (u(), m("div", cn, [
2045
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
2046
+ t("span", mn, k(r.value ?? ""), 1),
2047
+ t("label", fn, k(e.label), 1)
2048
+ ], 64)) : (u(), m(L, { key: 1 }, [
2049
+ B(t("input", {
1916
2050
  id: e.uuid,
1917
- "onUpdate:modelValue": u[0] || (u[0] = (y) => i.value = y),
2051
+ "onUpdate:modelValue": d[0] || (d[0] = (b) => r.value = b),
1918
2052
  class: "aform_input-field",
1919
2053
  disabled: e.mode === "read",
1920
- maxlength: e.mask && n.value ? e.mask.length : void 0,
2054
+ maxlength: e.mask && o.value ? e.mask.length : void 0,
1921
2055
  required: e.required
1922
- }, null, 8, tn), [
1923
- [G, i.value],
1924
- [O(Xl), e.mask]
2056
+ }, null, 8, vn), [
2057
+ [z, r.value],
2058
+ [Z(dn), e.mask]
1925
2059
  ]),
1926
2060
  t("label", {
1927
2061
  class: "aform_field-label",
1928
2062
  for: e.uuid
1929
- }, k(e.label), 9, an),
1930
- F(t("p", {
2063
+ }, k(e.label), 9, yn),
2064
+ B(t("p", {
1931
2065
  class: "aform_error",
1932
- innerHTML: o.value
1933
- }, null, 8, ln), [
1934
- [Q, o.value]
2066
+ innerHTML: l.value
2067
+ }, null, 8, bn), [
2068
+ [K, l.value]
1935
2069
  ])
1936
2070
  ], 64))
1937
2071
  ]));
1938
2072
  }
1939
- }), on = { class: "aform_form-element" }, sn = { class: "aform_display-value aform_textbox-display" }, un = { class: "aform_field-label" }, rn = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], dn = ["for"], cn = ["innerHTML"], mn = /* @__PURE__ */ V({
2073
+ }), hn = { class: "aform_form-element" }, kn = { class: "aform_display-value aform_textbox-display" }, $n = { class: "aform_field-label" }, xn = ["id", "placeholder", "rows", "maxlength", "disabled", "required"], Dn = ["for"], wn = ["innerHTML"], Mn = /* @__PURE__ */ F({
1940
2074
  __name: "ATextboxInput",
1941
- props: /* @__PURE__ */ P({
2075
+ props: /* @__PURE__ */ E({
1942
2076
  schema: {},
1943
2077
  label: {},
1944
2078
  selectRange: { type: Boolean },
@@ -1957,74 +2091,74 @@ const Zl = { class: "aform_form-element" }, jl = { class: "aform_display-value"
1957
2091
  }),
1958
2092
  emits: ["update:modelValue"],
1959
2093
  setup(e) {
1960
- const o = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Y(e, "modelValue");
1961
- return (i, a) => (r(), m("div", on, [
1962
- e.mode === "display" ? (r(), m(L, { key: 0 }, [
1963
- t("span", sn, k(n.value ?? ""), 1),
1964
- t("label", un, k(e.label), 1)
1965
- ], 64)) : (r(), m(L, { key: 1 }, [
1966
- F(t("textarea", {
2094
+ const l = w(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), o = G(e, "modelValue");
2095
+ return (r, a) => (u(), m("div", hn, [
2096
+ e.mode === "display" ? (u(), m(L, { key: 0 }, [
2097
+ t("span", kn, k(o.value ?? ""), 1),
2098
+ t("label", $n, k(e.label), 1)
2099
+ ], 64)) : (u(), m(L, { key: 1 }, [
2100
+ B(t("textarea", {
1967
2101
  id: e.uuid,
1968
- "onUpdate:modelValue": a[0] || (a[0] = (u) => n.value = u),
2102
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d),
1969
2103
  class: "aform_input-field aform_textbox",
1970
2104
  placeholder: e.placeholder,
1971
2105
  rows: e.rows,
1972
2106
  maxlength: e.maxlength,
1973
2107
  disabled: e.mode === "read",
1974
2108
  required: e.required
1975
- }, null, 8, rn), [
1976
- [G, n.value]
2109
+ }, null, 8, xn), [
2110
+ [z, o.value]
1977
2111
  ]),
1978
2112
  t("label", {
1979
2113
  class: "aform_field-label",
1980
2114
  for: e.uuid
1981
- }, k(e.label), 9, dn),
1982
- F(t("p", {
2115
+ }, k(e.label), 9, Dn),
2116
+ B(t("p", {
1983
2117
  class: "aform_error",
1984
- innerHTML: o.value
1985
- }, null, 8, cn), [
1986
- [Q, o.value]
2118
+ innerHTML: l.value
2119
+ }, null, 8, wn), [
2120
+ [K, l.value]
1987
2121
  ])
1988
2122
  ], 64))
1989
2123
  ]));
1990
2124
  }
1991
- }), fn = /* @__PURE__ */ N(mn, [["__scopeId", "data-v-2a9c793b"]]), vn = { class: "login-container" }, yn = { class: "account-container" }, hn = { class: "account-header" }, bn = { id: "account-title" }, gn = { id: "account-subtitle" }, kn = { class: "login-form-container" }, $n = { class: "login-form-email aform_form-element" }, xn = ["disabled"], Dn = { class: "login-form-password aform_form-element" }, wn = ["disabled"], Mn = ["disabled"], Tn = {
2125
+ }), Tn = /* @__PURE__ */ R(Mn, [["__scopeId", "data-v-2a9c793b"]]), Sn = { class: "login-container" }, An = { class: "account-container" }, pn = { class: "account-header" }, In = { id: "account-title" }, Ln = { id: "account-subtitle" }, _n = { class: "login-form-container" }, Bn = { class: "login-form-email aform_form-element" }, Cn = ["disabled"], qn = { class: "login-form-password aform_form-element" }, Fn = ["disabled"], Vn = ["disabled"], Rn = {
1992
2126
  key: 0,
1993
2127
  class: "material-symbols-outlined loading-icon"
1994
- }, Sn = /* @__PURE__ */ V({
2128
+ }, Hn = /* @__PURE__ */ F({
1995
2129
  __name: "Login",
1996
2130
  props: {
1997
2131
  headerTitle: { default: "Login" },
1998
2132
  headerSubtitle: { default: "Enter your email and password to login" }
1999
2133
  },
2000
2134
  emits: ["loginFailed", "loginSuccess"],
2001
- setup(e, { emit: o }) {
2002
- const n = o, i = p(""), a = p(""), u = p(!1), y = p(!1);
2003
- function g(h) {
2004
- if (h.preventDefault(), u.value = !0, y.value) {
2005
- u.value = !1, n("loginFailed");
2135
+ setup(e, { emit: l }) {
2136
+ const o = l, r = I(""), a = I(""), d = I(!1), b = I(!1);
2137
+ function h(g) {
2138
+ if (g.preventDefault(), d.value = !0, b.value) {
2139
+ d.value = !1, o("loginFailed");
2006
2140
  return;
2007
2141
  }
2008
- u.value = !1, n("loginSuccess");
2142
+ d.value = !1, o("loginSuccess");
2009
2143
  }
2010
- return (h, s) => (r(), m("div", vn, [
2144
+ return (g, s) => (u(), m("div", Sn, [
2011
2145
  t("div", null, [
2012
- t("div", yn, [
2013
- t("div", hn, [
2014
- t("h1", bn, k(e.headerTitle), 1),
2015
- t("p", gn, k(e.headerSubtitle), 1)
2146
+ t("div", An, [
2147
+ t("div", pn, [
2148
+ t("h1", In, k(e.headerTitle), 1),
2149
+ t("p", Ln, k(e.headerSubtitle), 1)
2016
2150
  ]),
2017
- t("form", { onSubmit: g }, [
2018
- t("div", kn, [
2019
- t("div", $n, [
2151
+ t("form", { onSubmit: h }, [
2152
+ t("div", _n, [
2153
+ t("div", Bn, [
2020
2154
  s[2] || (s[2] = t("label", {
2021
2155
  id: "login-email",
2022
2156
  for: "email",
2023
2157
  class: "aform_field-label"
2024
2158
  }, "Email", -1)),
2025
- F(t("input", {
2159
+ B(t("input", {
2026
2160
  id: "email",
2027
- "onUpdate:modelValue": s[0] || (s[0] = (x) => i.value = x),
2161
+ "onUpdate:modelValue": s[0] || (s[0] = (x) => r.value = x),
2028
2162
  class: "aform_input-field",
2029
2163
  name: "email",
2030
2164
  placeholder: "name@example.com",
@@ -2032,36 +2166,36 @@ const Zl = { class: "aform_form-element" }, jl = { class: "aform_display-value"
2032
2166
  "auto-capitalize": "none",
2033
2167
  "auto-complete": "email",
2034
2168
  "auto-correct": "off",
2035
- disabled: u.value
2036
- }, null, 8, xn), [
2037
- [G, i.value]
2169
+ disabled: d.value
2170
+ }, null, 8, Cn), [
2171
+ [z, r.value]
2038
2172
  ])
2039
2173
  ]),
2040
- t("div", Dn, [
2174
+ t("div", qn, [
2041
2175
  s[3] || (s[3] = t("label", {
2042
2176
  id: "login-password",
2043
2177
  for: "password",
2044
2178
  class: "aform_field-label"
2045
2179
  }, "Password", -1)),
2046
- F(t("input", {
2180
+ B(t("input", {
2047
2181
  id: "password",
2048
2182
  "onUpdate:modelValue": s[1] || (s[1] = (x) => a.value = x),
2049
2183
  class: "aform_input-field",
2050
2184
  name: "password",
2051
2185
  type: "password",
2052
- disabled: u.value
2053
- }, null, 8, wn), [
2054
- [G, a.value]
2186
+ disabled: d.value
2187
+ }, null, 8, Fn), [
2188
+ [z, a.value]
2055
2189
  ])
2056
2190
  ]),
2057
2191
  t("button", {
2058
2192
  class: "btn",
2059
- disabled: u.value || !i.value || !a.value,
2060
- onClick: g
2193
+ disabled: d.value || !r.value || !a.value,
2194
+ onClick: h
2061
2195
  }, [
2062
- u.value ? (r(), m("span", Tn, "progress_activity")) : C("", !0),
2196
+ d.value ? (u(), m("span", Rn, "progress_activity")) : q("", !0),
2063
2197
  s[4] || (s[4] = t("span", { id: "login-form-button" }, "Login", -1))
2064
- ], 8, Mn)
2198
+ ], 8, Vn)
2065
2199
  ])
2066
2200
  ], 32),
2067
2201
  s[5] || (s[5] = t("button", { class: "btn" }, [
@@ -2071,45 +2205,60 @@ const Zl = { class: "aform_form-element" }, jl = { class: "aform_display-value"
2071
2205
  ])
2072
2206
  ]));
2073
2207
  }
2074
- }), Rn = /* @__PURE__ */ N(Sn, [["__scopeId", "data-v-2c0f0634"]]), An = {}, pn = { class: "aform-loading" }, In = { class: "aform-loading__label" };
2075
- function _n(e, o) {
2076
- return r(), m("div", pn, [
2077
- t("div", In, [
2208
+ }), On = /* @__PURE__ */ R(Hn, [["__scopeId", "data-v-2c0f0634"]]), Nn = {}, Un = { class: "aform-loading" }, En = { class: "aform-loading__label" };
2209
+ function Pn(e, l) {
2210
+ return u(), m("div", Un, [
2211
+ t("div", En, [
2078
2212
  ye(e.$slots, "default", {}, void 0, !0)
2079
2213
  ]),
2080
- o[0] || (o[0] = t("div", { class: "aform-loading__bar" }, null, -1))
2214
+ l[0] || (l[0] = t("div", { class: "aform-loading__bar" }, null, -1))
2081
2215
  ]);
2082
2216
  }
2083
- const Ln = /* @__PURE__ */ N(An, [["render", _n], ["__scopeId", "data-v-274f5ba3"]]);
2084
- function Nn(e) {
2085
- e.use(Be), e.component("ACheckbox", lt), e.component("ACurrencyInput", Vt), e.component("ADate", va), e.component("ADropdown", Ta), e.component("ABadge", Aa), e.component("ADatePicker", pe), e.component("ADateTime", Ba), e.component("ADateTimeInput", ve), e.component("ADateRange", Xa), e.component("ADateSelection", le), e.component("AFieldset", ol), e.component("AFileAttach", fl), e.component("AForm", Ie), e.component("AFormLink", Ae), e.component("ANumericInput", $l), e.component("AQuantityInput", Gl), e.component("ATextInput", nn), e.component("ATextboxInput", fn), e.component("ADuration", Ka), e.component("AFormLoading", Ln);
2217
+ const Kn = /* @__PURE__ */ R(Nn, [["render", Pn], ["__scopeId", "data-v-274f5ba3"]]), Qn = ["aria-expanded", "aria-label"], Gn = /* @__PURE__ */ F({
2218
+ __name: "ExpandButton",
2219
+ props: {
2220
+ expanded: { type: Boolean }
2221
+ },
2222
+ setup(e) {
2223
+ return (l, o) => (u(), m("button", {
2224
+ type: "button",
2225
+ class: "expansion-index",
2226
+ "aria-expanded": e.expanded,
2227
+ "aria-label": e.expanded ? "Collapse" : "Expand"
2228
+ }, k(e.expanded ? "▼" : "►"), 9, Qn));
2229
+ }
2230
+ }), Yn = /* @__PURE__ */ R(Gn, [["__scopeId", "data-v-df191efe"]]);
2231
+ function jn(e) {
2232
+ e.use(Ne), e.component("ACheckbox", st), e.component("ACurrencyInput", Nt), e.component("ADate", ga), e.component("ADropdown", pa), e.component("ASegmentedControl", Na), e.component("ABadge", Be), e.component("ADatePicker", _e), e.component("ADateTime", za), e.component("ADateTimeInput", ve), e.component("ADateRange", rl), e.component("ADateSelection", ne), e.component("AFieldset", gl), e.component("AFileAttach", Tl), e.component("AForm", Ce), e.component("AFormLink", Le), e.component("ANumericInput", Bl), e.component("AQuantityInput", nn), e.component("ATextInput", gn), e.component("ATextboxInput", Tn), e.component("ADuration", tl), e.component("AFormLoading", Kn), e.component("ExpandButton", Yn);
2086
2233
  }
2087
2234
  export {
2088
- Aa as ABadge,
2089
- lt as ACheckbox,
2090
- Vt as ACurrencyInput,
2091
- va as ADate,
2092
- pe as ADatePicker,
2093
- Xa as ADateRange,
2094
- le as ADateSelection,
2095
- Ba as ADateTime,
2235
+ Be as ABadge,
2236
+ st as ACheckbox,
2237
+ Nt as ACurrencyInput,
2238
+ ga as ADate,
2239
+ _e as ADatePicker,
2240
+ rl as ADateRange,
2241
+ ne as ADateSelection,
2242
+ za as ADateTime,
2096
2243
  ve as ADateTimeInput,
2097
- Ta as ADropdown,
2098
- Ka as ADuration,
2099
- ol as AFieldset,
2100
- fl as AFileAttach,
2101
- Ie as AForm,
2102
- Ae as AFormLink,
2103
- Ln as AFormLoading,
2104
- $l as ANumericInput,
2105
- Gl as AQuantityInput,
2106
- nn as ATextInput,
2107
- fn as ATextboxInput,
2108
- Rn as Login,
2244
+ pa as ADropdown,
2245
+ tl as ADuration,
2246
+ gl as AFieldset,
2247
+ Tl as AFileAttach,
2248
+ Ce as AForm,
2249
+ Le as AFormLink,
2250
+ Kn as AFormLoading,
2251
+ Bl as ANumericInput,
2252
+ nn as AQuantityInput,
2253
+ Na as ASegmentedControl,
2254
+ gn as ATextInput,
2255
+ Tn as ATextboxInput,
2256
+ Yn as ExpandButton,
2257
+ On as Login,
2109
2258
  we as badgeInputAccentStyle,
2110
- ae as deserializeFunction,
2111
- Nn as install,
2112
- Ye as resolveFieldBadge,
2113
- We as resolvedFieldsToColumns
2259
+ le as deserializeFunction,
2260
+ jn as install,
2261
+ We as resolveFieldBadge,
2262
+ Ze as resolvedFieldsToColumns
2114
2263
  };
2115
2264
  //# sourceMappingURL=aform.js.map