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