@stonecrop/aform 0.3.10 → 0.4.0

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