@stonecrop/aform 0.12.0 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/aform.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as te, useTemplateRef as ve, ref as R, computed as A, openBlock as h, createElementBlock as b, unref as H, normalizeClass as ae, normalizeStyle as Ie, createBlock as pe, resolveDynamicComponent as Fe, mergeProps as dt, toDisplayString as Z, createElementVNode as y, withModifiers as he, withDirectives as j, Fragment as X, renderList as de, vShow as $e, createCommentVNode as z, renderSlot as ge, createTextVNode as Dt, onMounted as Te, watch as oe, onBeforeUnmount as an, nextTick as ft, toValue as T, shallowRef as ue, getCurrentScope as vt, onScopeDispose as pt, reactive as sn, vModelText as be, vModelCheckbox as rn, vModelSelect as Cn, getCurrentInstance as mt, watchEffect as ht, useCssVars as En, onUnmounted as $n, useModel as Me, createVNode as $t, withCtx as Tt, mergeModels as xe, isRef as Tn, toRefs as An, customRef as St, toRef as un, readonly as Rt, resolveComponent as Dn, withKeys as ye, inject as Sn } from "vue";
1
+ import { defineComponent as ne, useTemplateRef as ve, ref as R, computed as A, openBlock as g, createElementBlock as b, unref as H, normalizeClass as ae, normalizeStyle as Ie, createBlock as pe, resolveDynamicComponent as Fe, mergeProps as dt, toDisplayString as Z, createElementVNode as y, withModifiers as he, withDirectives as J, Fragment as X, renderList as de, vShow as Te, createCommentVNode as z, renderSlot as ge, createTextVNode as St, onMounted as $e, watch as te, onBeforeUnmount as sn, nextTick as ft, toValue as $, shallowRef as ue, getCurrentScope as vt, onScopeDispose as pt, reactive as rn, vModelText as be, vModelCheckbox as un, vModelSelect as Cn, getCurrentInstance as mt, watchEffect as ht, useCssVars as En, onUnmounted as Tn, useModel as Me, createVNode as Tt, withCtx as $t, mergeModels as xe, isRef as $n, toRefs as An, customRef as Rt, toRef as cn, readonly as Lt, resolveComponent as Dn, withKeys as ye, inject as Sn } from "vue";
2
2
  import { defineStore as Rn } from "pinia";
3
- import './assets/index.css';function cn(e) {
3
+ import './assets/index.css';function At(e) {
4
4
  return Function(`"use strict"; return (${e})`)();
5
5
  }
6
6
  function dn(e, t) {
@@ -8,13 +8,13 @@ function dn(e, t) {
8
8
  }
9
9
  const Ln = typeof window < "u" && typeof document < "u";
10
10
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
11
- const Hn = (e) => e != null, Vn = Object.prototype.toString, _n = (e) => Vn.call(e) === "[object Object]", Bn = () => {
11
+ const Hn = (e) => e != null, Vn = Object.prototype.toString, Bn = (e) => Vn.call(e) === "[object Object]", Pn = () => {
12
12
  };
13
13
  function st(e) {
14
14
  return Array.isArray(e) ? e : [e];
15
15
  }
16
- function Pn(e, t, o) {
17
- return oe(e, t, {
16
+ function _n(e, t, o) {
17
+ return te(e, t, {
18
18
  ...o,
19
19
  immediate: !0
20
20
  });
@@ -22,25 +22,25 @@ function Pn(e, t, o) {
22
22
  const qe = Ln ? window : void 0;
23
23
  function We(e) {
24
24
  var t;
25
- const o = T(e);
25
+ const o = $(e);
26
26
  return (t = o?.$el) !== null && t !== void 0 ? t : o;
27
27
  }
28
- function Qe(...e) {
28
+ function je(...e) {
29
29
  const t = (n, s, r, a) => (n.addEventListener(s, r, a), () => n.removeEventListener(s, r, a)), o = A(() => {
30
- const n = st(T(e[0])).filter((s) => s != null);
30
+ const n = st($(e[0])).filter((s) => s != null);
31
31
  return n.every((s) => typeof s != "string") ? n : void 0;
32
32
  });
33
- return Pn(() => {
33
+ return _n(() => {
34
34
  var n, s;
35
35
  return [
36
36
  (n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => We(r))) !== null && n !== void 0 ? n : [qe].filter((r) => r != null),
37
- st(T(o.value ? e[1] : e[0])),
37
+ st($(o.value ? e[1] : e[0])),
38
38
  st(H(o.value ? e[2] : e[1])),
39
- T(o.value ? e[3] : e[2])
39
+ $(o.value ? e[3] : e[2])
40
40
  ];
41
41
  }, ([n, s, r, a], i, l) => {
42
42
  if (!n?.length || !s?.length || !r?.length) return;
43
- const u = _n(a) ? { ...a } : a, c = n.flatMap((v) => s.flatMap((g) => r.map((x) => t(v, g, x, u))));
43
+ const u = Bn(a) ? { ...a } : a, c = n.flatMap((v) => s.flatMap((x) => r.map((w) => t(v, x, w, u))));
44
44
  l(() => {
45
45
  c.forEach((v) => v());
46
46
  });
@@ -49,7 +49,7 @@ function Qe(...e) {
49
49
  // @__NO_SIDE_EFFECTS__
50
50
  function Fn() {
51
51
  const e = ue(!1), t = mt();
52
- return t && Te(() => {
52
+ return t && $e(() => {
53
53
  e.value = !0;
54
54
  }, t), e;
55
55
  }
@@ -63,11 +63,11 @@ function Zn(e, t, o = {}) {
63
63
  let r;
64
64
  const a = /* @__PURE__ */ On(() => n && "MutationObserver" in n), i = () => {
65
65
  r && (r.disconnect(), r = void 0);
66
- }, l = oe(A(() => {
67
- const v = st(T(e)).map(We).filter(Hn);
66
+ }, l = te(A(() => {
67
+ const v = st($(e)).map(We).filter(Hn);
68
68
  return new Set(v);
69
69
  }), (v) => {
70
- i(), a.value && v.size && (r = new MutationObserver(t), v.forEach((g) => r.observe(g, s)));
70
+ i(), a.value && v.size && (r = new MutationObserver(t), v.forEach((x) => r.observe(x, s)));
71
71
  }, {
72
72
  immediate: !0,
73
73
  flush: "post"
@@ -82,15 +82,15 @@ function Zn(e, t, o = {}) {
82
82
  }
83
83
  function Nn(e, t, o = {}) {
84
84
  const { window: n = qe, document: s = n?.document, flush: r = "sync" } = o;
85
- if (!n || !s) return Bn;
85
+ if (!n || !s) return Pn;
86
86
  let a;
87
87
  const i = (c) => {
88
88
  a?.(), a = c;
89
89
  }, l = ht(() => {
90
90
  const c = We(e);
91
91
  if (c) {
92
- const { stop: v } = Zn(s, (g) => {
93
- g.map((x) => [...x.removedNodes]).flat().some((x) => x === c || x.contains(c)) && t(g);
92
+ const { stop: v } = Zn(s, (x) => {
93
+ x.map((w) => [...w.removedNodes]).flat().some((w) => w === c || w.contains(c)) && t(x);
94
94
  }, {
95
95
  window: n,
96
96
  childList: !0,
@@ -119,9 +119,9 @@ function Un(e = {}) {
119
119
  capture: !0,
120
120
  passive: !0
121
121
  };
122
- Qe(o, "blur", (c) => {
122
+ je(o, "blur", (c) => {
123
123
  c.relatedTarget === null && l();
124
- }, u), Qe(o, "focus", l, u);
124
+ }, u), je(o, "focus", l, u);
125
125
  }
126
126
  return s && Nn(i, l, { document: r }), l(), i;
127
127
  }
@@ -130,7 +130,7 @@ function zn(e, t = {}) {
130
130
  const { window: o = qe } = t, n = A(() => We(e)), s = ue(!1), r = A(() => s.value);
131
131
  if (!o || !(/* @__PURE__ */ Un(t)).value) return { focused: r };
132
132
  const a = { passive: !0 };
133
- return Qe(n, Wn, () => s.value = !0, a), Qe(n, Gn, () => {
133
+ return je(n, Wn, () => s.value = !0, a), je(n, Gn, () => {
134
134
  var i, l, u;
135
135
  return s.value = (i = (l = n.value) === null || l === void 0 || (u = l.matches) === null || u === void 0 ? void 0 : u.call(l, qn)) !== null && i !== void 0 ? i : !1;
136
136
  }, a), { focused: r };
@@ -146,11 +146,11 @@ function Yn(e, { window: t = qe, scrollTarget: o } = {}) {
146
146
  n.value = i.top <= (t.innerHeight || r.documentElement.clientHeight) && i.left <= (t.innerWidth || r.documentElement.clientWidth) && i.bottom >= 0 && i.right >= 0;
147
147
  }
148
148
  };
149
- return oe(
149
+ return te(
150
150
  () => We(e),
151
151
  () => s(),
152
152
  { immediate: !0, flush: "post" }
153
- ), t && Qe(o || t, "scroll", s, {
153
+ ), t && je(o || t, "scroll", s, {
154
154
  capture: !1,
155
155
  passive: !0
156
156
  }), n;
@@ -158,10 +158,10 @@ function Yn(e, { window: t = qe, scrollTarget: o } = {}) {
158
158
  const Ae = (e) => {
159
159
  let t = Yn(e).value;
160
160
  return t = t && e.offsetHeight > 0, t;
161
- }, De = (e) => e.tabIndex >= 0, Wt = (e) => {
161
+ }, De = (e) => e.tabIndex >= 0, Gt = (e) => {
162
162
  const t = e.target;
163
- return Lt(t);
164
- }, Lt = (e) => {
163
+ return Ht(t);
164
+ }, Ht = (e) => {
165
165
  let t;
166
166
  if (e instanceof HTMLTableCellElement) {
167
167
  const o = e.parentElement?.previousElementSibling;
@@ -173,7 +173,7 @@ const Ae = (e) => {
173
173
  const o = e.previousElementSibling;
174
174
  o && (t = o);
175
175
  }
176
- return t && (!De(t) || !Ae(t)) ? Lt(t) : t;
176
+ return t && (!De(t) || !Ae(t)) ? Ht(t) : t;
177
177
  }, Xn = (e) => {
178
178
  const t = e.target;
179
179
  let o;
@@ -190,11 +190,11 @@ const Ae = (e) => {
190
190
  s && (o = s);
191
191
  }
192
192
  }
193
- return o && (!De(o) || !Ae(o)) ? Ht(o) : o;
194
- }, Gt = (e) => {
193
+ return o && (!De(o) || !Ae(o)) ? Vt(o) : o;
194
+ }, qt = (e) => {
195
195
  const t = e.target;
196
- return Ht(t);
197
- }, Ht = (e) => {
196
+ return Vt(t);
197
+ }, Vt = (e) => {
198
198
  let t;
199
199
  if (e instanceof HTMLTableCellElement) {
200
200
  const o = e.parentElement?.nextElementSibling;
@@ -206,8 +206,8 @@ const Ae = (e) => {
206
206
  const o = e.nextElementSibling;
207
207
  o && (t = o);
208
208
  }
209
- return t && (!De(t) || !Ae(t)) ? Ht(t) : t;
210
- }, jn = (e) => {
209
+ return t && (!De(t) || !Ae(t)) ? Vt(t) : t;
210
+ }, Jn = (e) => {
211
211
  const t = e.target;
212
212
  let o;
213
213
  if (t instanceof HTMLTableCellElement) {
@@ -223,45 +223,45 @@ const Ae = (e) => {
223
223
  s && (o = s);
224
224
  }
225
225
  }
226
- return o && (!De(o) || !Ae(o)) ? Lt(o) : o;
227
- }, qt = (e) => {
228
- const t = e.target;
229
- return Vt(t);
230
- }, Vt = (e) => {
231
- let t;
232
- return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!De(t) || !Ae(t)) ? Vt(t) : t;
226
+ return o && (!De(o) || !Ae(o)) ? Ht(o) : o;
233
227
  }, zt = (e) => {
234
228
  const t = e.target;
235
- return _t(t);
236
- }, _t = (e) => {
229
+ return Bt(t);
230
+ }, Bt = (e) => {
237
231
  let t;
238
- return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!De(t) || !Ae(t)) ? _t(t) : t;
232
+ return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!De(t) || !Ae(t)) ? Bt(t) : t;
239
233
  }, Yt = (e) => {
240
- const t = e.target.parentElement?.firstElementChild;
241
- return t && (!De(t) || !Ae(t)) ? _t(t) : t;
234
+ const t = e.target;
235
+ return Pt(t);
236
+ }, Pt = (e) => {
237
+ let t;
238
+ return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!De(t) || !Ae(t)) ? Pt(t) : t;
242
239
  }, Xt = (e) => {
240
+ const t = e.target.parentElement?.firstElementChild;
241
+ return t && (!De(t) || !Ae(t)) ? Pt(t) : t;
242
+ }, Jt = (e) => {
243
243
  const t = e.target.parentElement?.lastElementChild;
244
- return t && (!De(t) || !Ae(t)) ? Vt(t) : t;
245
- }, nt = ["alt", "control", "shift", "meta"], Jn = {
244
+ return t && (!De(t) || !Ae(t)) ? Bt(t) : t;
245
+ }, nt = ["alt", "control", "shift", "meta"], Qn = {
246
246
  ArrowUp: "up",
247
247
  ArrowDown: "down",
248
248
  ArrowLeft: "left",
249
249
  ArrowRight: "right"
250
250
  }, gt = {
251
251
  "keydown.up": (e) => {
252
- const t = Wt(e);
252
+ const t = Gt(e);
253
253
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
254
254
  },
255
255
  "keydown.down": (e) => {
256
- const t = Gt(e);
256
+ const t = qt(e);
257
257
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
258
258
  },
259
259
  "keydown.left": (e) => {
260
- const t = qt(e);
260
+ const t = zt(e);
261
261
  e.preventDefault(), e.stopPropagation(), t && t.focus();
262
262
  },
263
263
  "keydown.right": (e) => {
264
- const t = zt(e);
264
+ const t = Yt(e);
265
265
  e.preventDefault(), e.stopPropagation(), t && t.focus();
266
266
  },
267
267
  "keydown.control.up": (e) => {
@@ -269,49 +269,49 @@ const Ae = (e) => {
269
269
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
270
270
  },
271
271
  "keydown.control.down": (e) => {
272
- const t = jn(e);
272
+ const t = Jn(e);
273
273
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
274
274
  },
275
275
  "keydown.control.left": (e) => {
276
- const t = Yt(e);
276
+ const t = Xt(e);
277
277
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
278
278
  },
279
279
  "keydown.control.right": (e) => {
280
- const t = Xt(e);
280
+ const t = Jt(e);
281
281
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
282
282
  },
283
283
  "keydown.end": (e) => {
284
- const t = Xt(e);
284
+ const t = Jt(e);
285
285
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
286
286
  },
287
287
  "keydown.enter": (e) => {
288
288
  if (e.target instanceof HTMLTableCellElement) {
289
289
  e.preventDefault(), e.stopPropagation();
290
- const t = Gt(e);
290
+ const t = qt(e);
291
291
  t && t.focus();
292
292
  }
293
293
  },
294
294
  "keydown.shift.enter": (e) => {
295
295
  if (e.target instanceof HTMLTableCellElement) {
296
296
  e.preventDefault(), e.stopPropagation();
297
- const t = Wt(e);
297
+ const t = Gt(e);
298
298
  t && t.focus();
299
299
  }
300
300
  },
301
301
  "keydown.home": (e) => {
302
- const t = Yt(e);
302
+ const t = Xt(e);
303
303
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
304
304
  },
305
305
  "keydown.tab": (e) => {
306
- const t = zt(e);
306
+ const t = Yt(e);
307
307
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
308
308
  },
309
309
  "keydown.shift.tab": (e) => {
310
- const t = qt(e);
310
+ const t = zt(e);
311
311
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
312
312
  }
313
313
  };
314
- function Bt(e) {
314
+ function _t(e) {
315
315
  const t = (a) => {
316
316
  let i = null;
317
317
  return a.parent && (typeof a.parent == "string" ? i = document.querySelector(a.parent) : a.parent instanceof HTMLElement ? i = a.parent : i = a.parent.value), i;
@@ -337,57 +337,57 @@ function Bt(e) {
337
337
  let l = [];
338
338
  return a.selectors ? l = o(a) : i && (l = Array.from(i.children).filter((u) => De(u) && Ae(u))), l;
339
339
  }, s = (a) => (i) => {
340
- const l = Jn[i.key] || i.key.toLowerCase();
340
+ const l = Qn[i.key] || i.key.toLowerCase();
341
341
  if (nt.includes(l)) return;
342
342
  const u = a.handlers || gt;
343
343
  for (const c of Object.keys(u)) {
344
- const [v, ...g] = c.split(".");
345
- if (v === "keydown" && g.includes(l)) {
346
- const x = u[c], C = g.filter((f) => nt.includes(f)), w = nt.some((f) => {
344
+ const [v, ...x] = c.split(".");
345
+ if (v === "keydown" && x.includes(l)) {
346
+ const w = u[c], E = x.filter((f) => nt.includes(f)), h = nt.some((f) => {
347
347
  const m = f.charAt(0).toUpperCase() + f.slice(1);
348
348
  return i.getModifierState(m);
349
349
  });
350
- if (C.length > 0) {
351
- if (w) {
350
+ if (E.length > 0) {
351
+ if (h) {
352
352
  for (const f of nt)
353
- if (g.includes(f)) {
353
+ if (x.includes(f)) {
354
354
  const m = f.charAt(0).toUpperCase() + f.slice(1);
355
- i.getModifierState(m) && x(i);
355
+ i.getModifierState(m) && w(i);
356
356
  }
357
357
  }
358
358
  } else
359
- w || x(i);
359
+ h || w(i);
360
360
  }
361
361
  }
362
362
  }, r = [];
363
- Te(() => {
363
+ $e(() => {
364
364
  for (const a of e) {
365
365
  const i = t(a), l = n(a), u = s(a), c = i ? [i] : l;
366
366
  for (const v of c) {
367
- const { focused: g } = zn(R(v)), x = oe(g, (C) => {
368
- C ? v.addEventListener("keydown", u) : v.removeEventListener("keydown", u);
367
+ const { focused: x } = zn(R(v)), w = te(x, (E) => {
368
+ E ? v.addEventListener("keydown", u) : v.removeEventListener("keydown", u);
369
369
  });
370
- r.push(x);
370
+ r.push(w);
371
371
  }
372
372
  }
373
- }), an(() => {
373
+ }), sn(() => {
374
374
  for (const a of r)
375
375
  a();
376
376
  });
377
377
  }
378
- function Pt(e, t) {
378
+ function Ft(e, t) {
379
379
  return vt() ? (pt(e, t), !0) : !1;
380
380
  }
381
381
  const fn = typeof window < "u" && typeof document < "u";
382
382
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
383
- const Qn = (e) => e != null, Kn = Object.prototype.toString, eo = (e) => Kn.call(e) === "[object Object]", Pe = () => {
383
+ const jn = (e) => e != null, Kn = Object.prototype.toString, eo = (e) => Kn.call(e) === "[object Object]", _e = () => {
384
384
  };
385
385
  function to(...e) {
386
- if (e.length !== 1) return un(...e);
386
+ if (e.length !== 1) return cn(...e);
387
387
  const t = e[0];
388
- return typeof t == "function" ? Rt(St(() => ({
388
+ return typeof t == "function" ? Lt(Rt(() => ({
389
389
  get: t,
390
- set: Pe
390
+ set: _e
391
391
  }))) : R(t);
392
392
  }
393
393
  function no(e, t) {
@@ -403,13 +403,13 @@ function no(e, t) {
403
403
  return o;
404
404
  }
405
405
  function oo(e, t = {}) {
406
- let o, n, s = Pe;
406
+ let o, n, s = _e;
407
407
  const r = (i) => {
408
- clearTimeout(i), s(), s = Pe;
408
+ clearTimeout(i), s(), s = _e;
409
409
  };
410
410
  let a;
411
411
  return (i) => {
412
- const l = T(e), u = T(t.maxWait);
412
+ const l = $(e), u = $(t.maxWait);
413
413
  return o && r(o), l <= 0 || u !== void 0 && u <= 0 ? (n && (r(n), n = void 0), Promise.resolve(i())) : new Promise((c, v) => {
414
414
  s = t.rejectOnCancel ? v : c, a = i, u && !n && (n = setTimeout(() => {
415
415
  o && r(o), n = void 0, c(a());
@@ -430,15 +430,15 @@ function ao(e, t = 200, o = {}) {
430
430
  return no(oo(t, o), e);
431
431
  }
432
432
  function so(e, t = {}) {
433
- if (!Tn(e)) return An(e);
433
+ if (!$n(e)) return An(e);
434
434
  const o = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
435
- for (const n in e.value) o[n] = St(() => ({
435
+ for (const n in e.value) o[n] = Rt(() => ({
436
436
  get() {
437
437
  return e.value[n];
438
438
  },
439
439
  set(s) {
440
440
  var r;
441
- if (!((r = T(t.replaceRef)) !== null && r !== void 0) || r) if (Array.isArray(e.value)) {
441
+ if (!((r = $(t.replaceRef)) !== null && r !== void 0) || r) if (Array.isArray(e.value)) {
442
442
  const a = [...e.value];
443
443
  a[n] = s, e.value = a;
444
444
  } else {
@@ -454,10 +454,10 @@ function so(e, t = {}) {
454
454
  return o;
455
455
  }
456
456
  function ro(e, t = !0, o) {
457
- lo() ? Te(e, o) : t ? e() : ft(e);
457
+ lo() ? $e(e, o) : t ? e() : ft(e);
458
458
  }
459
459
  function io(e, t, o) {
460
- return oe(e, t, {
460
+ return te(e, t, {
461
461
  ...o,
462
462
  immediate: !0
463
463
  });
@@ -465,39 +465,39 @@ function io(e, t, o) {
465
465
  const et = fn ? window : void 0;
466
466
  function ke(e) {
467
467
  var t;
468
- const o = T(e);
468
+ const o = $(e);
469
469
  return (t = o?.$el) !== null && t !== void 0 ? t : o;
470
470
  }
471
471
  function Ve(...e) {
472
472
  const t = (n, s, r, a) => (n.addEventListener(s, r, a), () => n.removeEventListener(s, r, a)), o = A(() => {
473
- const n = rt(T(e[0])).filter((s) => s != null);
473
+ const n = rt($(e[0])).filter((s) => s != null);
474
474
  return n.every((s) => typeof s != "string") ? n : void 0;
475
475
  });
476
476
  return io(() => {
477
477
  var n, s;
478
478
  return [
479
479
  (n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => ke(r))) !== null && n !== void 0 ? n : [et].filter((r) => r != null),
480
- rt(T(o.value ? e[1] : e[0])),
480
+ rt($(o.value ? e[1] : e[0])),
481
481
  rt(H(o.value ? e[2] : e[1])),
482
- T(o.value ? e[3] : e[2])
482
+ $(o.value ? e[3] : e[2])
483
483
  ];
484
484
  }, ([n, s, r, a], i, l) => {
485
485
  if (!n?.length || !s?.length || !r?.length) return;
486
- const u = eo(a) ? { ...a } : a, c = n.flatMap((v) => s.flatMap((g) => r.map((x) => t(v, g, x, u))));
486
+ const u = eo(a) ? { ...a } : a, c = n.flatMap((v) => s.flatMap((x) => r.map((w) => t(v, x, w, u))));
487
487
  l(() => {
488
488
  c.forEach((v) => v());
489
489
  });
490
490
  }, { flush: "post" });
491
491
  }
492
- function At(e, t, o = {}) {
492
+ function Dt(e, t, o = {}) {
493
493
  const { window: n = et, ignore: s = [], capture: r = !0, detectIframe: a = !1, controls: i = !1 } = o;
494
494
  if (!n) return i ? {
495
- stop: Pe,
496
- cancel: Pe,
497
- trigger: Pe
498
- } : Pe;
495
+ stop: _e,
496
+ cancel: _e,
497
+ trigger: _e
498
+ } : _e;
499
499
  let l = !0;
500
- const u = (f) => T(s).some((m) => {
500
+ const u = (f) => $(s).some((m) => {
501
501
  if (typeof m == "string") return Array.from(n.document.querySelectorAll(m)).some((I) => I === f.target || f.composedPath().includes(I));
502
502
  {
503
503
  const I = ke(m);
@@ -505,14 +505,14 @@ function At(e, t, o = {}) {
505
505
  }
506
506
  });
507
507
  function c(f) {
508
- const m = T(f);
508
+ const m = $(f);
509
509
  return m && m.$.subTree.shapeFlag === 16;
510
510
  }
511
511
  function v(f, m) {
512
- const I = T(f), k = I.$.subTree && I.$.subTree.children;
513
- return k == null || !Array.isArray(k) ? !1 : k.some((E) => E.el === m.target || m.composedPath().includes(E.el));
512
+ const I = $(f), k = I.$.subTree && I.$.subTree.children;
513
+ return k == null || !Array.isArray(k) ? !1 : k.some((C) => C.el === m.target || m.composedPath().includes(C.el));
514
514
  }
515
- const g = (f) => {
515
+ const x = (f) => {
516
516
  const m = ke(e);
517
517
  if (f.target != null && !(!(m instanceof Element) && c(e) && v(e, f)) && !(!m || m === f.target || f.composedPath().includes(m))) {
518
518
  if ("detail" in f && f.detail === 0 && (l = !u(f)), !l) {
@@ -522,12 +522,12 @@ function At(e, t, o = {}) {
522
522
  t(f);
523
523
  }
524
524
  };
525
- let x = !1;
526
- const C = [
525
+ let w = !1;
526
+ const E = [
527
527
  Ve(n, "click", (f) => {
528
- x || (x = !0, setTimeout(() => {
529
- x = !1;
530
- }, 0), g(f));
528
+ w || (w = !0, setTimeout(() => {
529
+ w = !1;
530
+ }, 0), x(f));
531
531
  }, {
532
532
  passive: !0,
533
533
  capture: r
@@ -543,21 +543,21 @@ function At(e, t, o = {}) {
543
543
  ((m = n.document.activeElement) === null || m === void 0 ? void 0 : m.tagName) === "IFRAME" && !I?.contains(n.document.activeElement) && t(f);
544
544
  }, 0);
545
545
  }, { passive: !0 })
546
- ].filter(Boolean), w = () => C.forEach((f) => f());
546
+ ].filter(Boolean), h = () => E.forEach((f) => f());
547
547
  return i ? {
548
- stop: w,
548
+ stop: h,
549
549
  cancel: () => {
550
550
  l = !1;
551
551
  },
552
552
  trigger: (f) => {
553
- l = !0, g(f), l = !1;
553
+ l = !0, x(f), l = !1;
554
554
  }
555
- } : w;
555
+ } : h;
556
556
  }
557
557
  // @__NO_SIDE_EFFECTS__
558
558
  function uo() {
559
559
  const e = ue(!1), t = mt();
560
- return t && Te(() => {
560
+ return t && $e(() => {
561
561
  e.value = !0;
562
562
  }, t), e;
563
563
  }
@@ -571,18 +571,18 @@ function pn(e, t, o = {}) {
571
571
  let r;
572
572
  const a = /* @__PURE__ */ vn(() => n && "MutationObserver" in n), i = () => {
573
573
  r && (r.disconnect(), r = void 0);
574
- }, l = oe(A(() => {
575
- const v = rt(T(e)).map(ke).filter(Qn);
574
+ }, l = te(A(() => {
575
+ const v = rt($(e)).map(ke).filter(jn);
576
576
  return new Set(v);
577
577
  }), (v) => {
578
- i(), a.value && v.size && (r = new MutationObserver(t), v.forEach((g) => r.observe(g, s)));
578
+ i(), a.value && v.size && (r = new MutationObserver(t), v.forEach((x) => r.observe(x, s)));
579
579
  }, {
580
580
  immediate: !0,
581
581
  flush: "post"
582
582
  }), u = () => r?.takeRecords(), c = () => {
583
583
  l(), i();
584
584
  };
585
- return Pt(c), {
585
+ return Ft(c), {
586
586
  isSupported: a,
587
587
  stop: c,
588
588
  takeRecords: u
@@ -598,29 +598,29 @@ function co(e) {
598
598
  }
599
599
  function wt(e, t = {}) {
600
600
  var o, n, s, r;
601
- const { pointerTypes: a, preventDefault: i, stopPropagation: l, exact: u, onMove: c, onEnd: v, onStart: g, initialValue: x, axis: C = "both", draggingElement: w = et, containerElement: f, handle: m = e, buttons: I = [0], restrictInView: k, autoScroll: E = !1 } = t, D = R((o = T(x)) !== null && o !== void 0 ? o : {
601
+ const { pointerTypes: a, preventDefault: i, stopPropagation: l, exact: u, onMove: c, onEnd: v, onStart: x, initialValue: w, axis: E = "both", draggingElement: h = et, containerElement: f, handle: m = e, buttons: I = [0], restrictInView: k, autoScroll: C = !1 } = t, D = R((o = $(w)) !== null && o !== void 0 ? o : {
602
602
  x: 0,
603
603
  y: 0
604
- }), $ = R(), B = (L) => a ? a.includes(L.pointerType) : !0, U = (L) => {
605
- T(i) && L.preventDefault(), T(l) && L.stopPropagation();
606
- }, me = T(E), J = typeof me == "object" ? {
607
- speed: (n = T(me.speed)) !== null && n !== void 0 ? n : ot.speed,
608
- margin: (s = T(me.margin)) !== null && s !== void 0 ? s : ot.margin,
604
+ }), T = R(), V = (L) => a ? a.includes(L.pointerType) : !0, U = (L) => {
605
+ $(i) && L.preventDefault(), $(l) && L.stopPropagation();
606
+ }, me = $(C), Q = typeof me == "object" ? {
607
+ speed: (n = $(me.speed)) !== null && n !== void 0 ? n : ot.speed,
608
+ margin: (s = $(me.margin)) !== null && s !== void 0 ? s : ot.margin,
609
609
  direction: (r = me.direction) !== null && r !== void 0 ? r : ot.direction
610
- } : ot, Q = (L) => typeof L == "number" ? [L, L] : [L.x, L.y], we = (L, O, G) => {
611
- const { clientWidth: K, clientHeight: Y, scrollLeft: re, scrollTop: Ee, scrollWidth: He, scrollHeight: P } = L, [F, q] = Q(J.margin), [ee, le] = Q(J.speed);
612
- let ne = 0, ie = 0;
613
- (J.direction === "x" || J.direction === "both") && (G.x < F && re > 0 ? ne = -ee : G.x + O.width > K - F && re < He - K && (ne = ee)), (J.direction === "y" || J.direction === "both") && (G.y < q && Ee > 0 ? ie = -le : G.y + O.height > Y - q && Ee < P - Y && (ie = le)), (ne || ie) && L.scrollBy({
614
- left: ne,
610
+ } : ot, j = (L) => typeof L == "number" ? [L, L] : [L.x, L.y], we = (L, O, G) => {
611
+ const { clientWidth: K, clientHeight: Y, scrollLeft: re, scrollTop: Ee, scrollWidth: He, scrollHeight: _ } = L, [F, q] = j(Q.margin), [ee, le] = j(Q.speed);
612
+ let oe = 0, ie = 0;
613
+ (Q.direction === "x" || Q.direction === "both") && (G.x < F && re > 0 ? oe = -ee : G.x + O.width > K - F && re < He - K && (oe = ee)), (Q.direction === "y" || Q.direction === "both") && (G.y < q && Ee > 0 ? ie = -le : G.y + O.height > Y - q && Ee < _ - Y && (ie = le)), (oe || ie) && L.scrollBy({
614
+ left: oe,
615
615
  top: ie,
616
616
  behavior: "auto"
617
617
  });
618
618
  };
619
619
  let fe = null;
620
620
  const Oe = () => {
621
- const L = T(f);
621
+ const L = $(f);
622
622
  L && !fe && (fe = setInterval(() => {
623
- const O = T(e).getBoundingClientRect(), { x: G, y: K } = D.value, Y = {
623
+ const O = $(e).getBoundingClientRect(), { x: G, y: K } = D.value, Y = {
624
624
  x: G - L.scrollLeft,
625
625
  y: K - L.scrollTop
626
626
  };
@@ -632,39 +632,39 @@ function wt(e, t = {}) {
632
632
  const [Y, re] = typeof G == "number" ? [G, G] : [G.x, G.y], { clientWidth: Ee, clientHeight: He } = O;
633
633
  return L.x < Y || L.x + K.width > Ee - Y || L.y < re || L.y + K.height > He - re;
634
634
  }, Xe = () => {
635
- if (T(t.disabled) || !$.value) return;
636
- const L = T(f);
635
+ if ($(t.disabled) || !T.value) return;
636
+ const L = $(f);
637
637
  if (!L) return;
638
- const O = T(e).getBoundingClientRect(), { x: G, y: K } = D.value;
638
+ const O = $(e).getBoundingClientRect(), { x: G, y: K } = D.value;
639
639
  Ye({
640
640
  x: G - L.scrollLeft,
641
641
  y: K - L.scrollTop
642
- }, L, J.margin, O) ? Oe() : Le();
642
+ }, L, Q.margin, O) ? Oe() : Le();
643
643
  };
644
- T(E) && oe(D, Xe);
644
+ $(C) && te(D, Xe);
645
645
  const Ze = (L) => {
646
646
  var O;
647
- if (!T(I).includes(L.button) || T(t.disabled) || !B(L) || T(u) && L.target !== T(e)) return;
648
- const G = T(f), K = G == null || (O = G.getBoundingClientRect) === null || O === void 0 ? void 0 : O.call(G), Y = T(e).getBoundingClientRect(), re = {
649
- x: L.clientX - (G ? Y.left - K.left + (E ? 0 : G.scrollLeft) : Y.left),
650
- y: L.clientY - (G ? Y.top - K.top + (E ? 0 : G.scrollTop) : Y.top)
647
+ if (!$(I).includes(L.button) || $(t.disabled) || !V(L) || $(u) && L.target !== $(e)) return;
648
+ const G = $(f), K = G == null || (O = G.getBoundingClientRect) === null || O === void 0 ? void 0 : O.call(G), Y = $(e).getBoundingClientRect(), re = {
649
+ x: L.clientX - (G ? Y.left - K.left + (C ? 0 : G.scrollLeft) : Y.left),
650
+ y: L.clientY - (G ? Y.top - K.top + (C ? 0 : G.scrollTop) : Y.top)
651
651
  };
652
- g?.(re, L) !== !1 && ($.value = re, U(L));
653
- }, je = (L) => {
654
- if (T(t.disabled) || !B(L) || !$.value) return;
655
- const O = T(f);
652
+ x?.(re, L) !== !1 && (T.value = re, U(L));
653
+ }, Je = (L) => {
654
+ if ($(t.disabled) || !V(L) || !T.value) return;
655
+ const O = $(f);
656
656
  O instanceof HTMLElement && co(O);
657
- const G = T(e).getBoundingClientRect();
657
+ const G = $(e).getBoundingClientRect();
658
658
  let { x: K, y: Y } = D.value;
659
- if ((C === "x" || C === "both") && (K = L.clientX - $.value.x, O && (K = Math.min(Math.max(0, K), O.scrollWidth - G.width))), (C === "y" || C === "both") && (Y = L.clientY - $.value.y, O && (Y = Math.min(Math.max(0, Y), O.scrollHeight - G.height))), T(E) && O && (fe === null && we(O, G, {
659
+ if ((E === "x" || E === "both") && (K = L.clientX - T.value.x, O && (K = Math.min(Math.max(0, K), O.scrollWidth - G.width))), (E === "y" || E === "both") && (Y = L.clientY - T.value.y, O && (Y = Math.min(Math.max(0, Y), O.scrollHeight - G.height))), $(C) && O && (fe === null && we(O, G, {
660
660
  x: K,
661
661
  y: Y
662
- }), K += O.scrollLeft, Y += O.scrollTop), O && (k || E)) {
663
- if (C !== "y") {
662
+ }), K += O.scrollLeft, Y += O.scrollTop), O && (k || C)) {
663
+ if (E !== "y") {
664
664
  const re = K - O.scrollLeft;
665
665
  re < 0 ? K = O.scrollLeft : re > O.clientWidth - G.width && (K = O.clientWidth - G.width + O.scrollLeft);
666
666
  }
667
- if (C !== "x") {
667
+ if (E !== "x") {
668
668
  const re = Y - O.scrollTop;
669
669
  re < 0 ? Y = O.scrollTop : re > O.clientHeight - G.height && (Y = O.clientHeight - G.height + O.scrollTop);
670
670
  }
@@ -674,26 +674,26 @@ function wt(e, t = {}) {
674
674
  y: Y
675
675
  }, c?.(D.value, L), U(L);
676
676
  }, Ne = (L) => {
677
- T(t.disabled) || !B(L) || $.value && ($.value = void 0, E && Le(), v?.(D.value, L), U(L));
677
+ $(t.disabled) || !V(L) || T.value && (T.value = void 0, C && Le(), v?.(D.value, L), U(L));
678
678
  };
679
679
  if (fn) {
680
680
  const L = () => {
681
681
  var O;
682
682
  return {
683
683
  capture: (O = t.capture) !== null && O !== void 0 ? O : !0,
684
- passive: !T(i)
684
+ passive: !$(i)
685
685
  };
686
686
  };
687
- Ve(m, "pointerdown", Ze, L), Ve(w, "pointermove", je, L), Ve(w, "pointerup", Ne, L);
687
+ Ve(m, "pointerdown", Ze, L), Ve(h, "pointermove", Je, L), Ve(h, "pointerup", Ne, L);
688
688
  }
689
689
  return {
690
690
  ...so(D),
691
691
  position: D,
692
- isDragging: A(() => !!$.value),
692
+ isDragging: A(() => !!T.value),
693
693
  style: A(() => `
694
694
  left: ${D.value.x}px;
695
695
  top: ${D.value.y}px;
696
- ${E ? "text-wrap: nowrap;" : ""}
696
+ ${C ? "text-wrap: nowrap;" : ""}
697
697
  `)
698
698
  };
699
699
  }
@@ -702,8 +702,8 @@ function ct(e, t, o = {}) {
702
702
  let r;
703
703
  const a = /* @__PURE__ */ vn(() => n && "ResizeObserver" in n), i = () => {
704
704
  r && (r.disconnect(), r = void 0);
705
- }, l = oe(A(() => {
706
- const c = T(e);
705
+ }, l = te(A(() => {
706
+ const c = $(e);
707
707
  return Array.isArray(c) ? c.map((v) => ke(v)) : [ke(c)];
708
708
  }), (c) => {
709
709
  if (i(), a.value && n) {
@@ -716,26 +716,26 @@ function ct(e, t, o = {}) {
716
716
  }), u = () => {
717
717
  i(), l();
718
718
  };
719
- return Pt(u), {
719
+ return Ft(u), {
720
720
  isSupported: a,
721
721
  stop: u
722
722
  };
723
723
  }
724
- function Be(e, t = {}) {
725
- const { reset: o = !0, windowResize: n = !0, windowScroll: s = !0, immediate: r = !0, updateTiming: a = "sync" } = t, i = ue(0), l = ue(0), u = ue(0), c = ue(0), v = ue(0), g = ue(0), x = ue(0), C = ue(0);
726
- function w() {
724
+ function Pe(e, t = {}) {
725
+ const { reset: o = !0, windowResize: n = !0, windowScroll: s = !0, immediate: r = !0, updateTiming: a = "sync" } = t, i = ue(0), l = ue(0), u = ue(0), c = ue(0), v = ue(0), x = ue(0), w = ue(0), E = ue(0);
726
+ function h() {
727
727
  const m = ke(e);
728
728
  if (!m) {
729
- o && (i.value = 0, l.value = 0, u.value = 0, c.value = 0, v.value = 0, g.value = 0, x.value = 0, C.value = 0);
729
+ o && (i.value = 0, l.value = 0, u.value = 0, c.value = 0, v.value = 0, x.value = 0, w.value = 0, E.value = 0);
730
730
  return;
731
731
  }
732
732
  const I = m.getBoundingClientRect();
733
- i.value = I.height, l.value = I.bottom, u.value = I.left, c.value = I.right, v.value = I.top, g.value = I.width, x.value = I.x, C.value = I.y;
733
+ i.value = I.height, l.value = I.bottom, u.value = I.left, c.value = I.right, v.value = I.top, x.value = I.width, w.value = I.x, E.value = I.y;
734
734
  }
735
735
  function f() {
736
- a === "sync" ? w() : a === "next-frame" && requestAnimationFrame(() => w());
736
+ a === "sync" ? h() : a === "next-frame" && requestAnimationFrame(() => h());
737
737
  }
738
- return ct(e, f), oe(() => ke(e), (m) => !m && f()), pn(e, f, { attributeFilter: ["style", "class"] }), s && Ve("scroll", f, {
738
+ return ct(e, f), te(() => ke(e), (m) => !m && f()), pn(e, f, { attributeFilter: ["style", "class"] }), s && Ve("scroll", f, {
739
739
  capture: !0,
740
740
  passive: !0
741
741
  }), n && Ve("resize", f, { passive: !0 }), ro(() => {
@@ -746,9 +746,9 @@ function Be(e, t = {}) {
746
746
  left: u,
747
747
  right: c,
748
748
  top: v,
749
- width: g,
750
- x,
751
- y: C,
749
+ width: x,
750
+ x: w,
751
+ y: E,
752
752
  update: f
753
753
  };
754
754
  }
@@ -759,8 +759,8 @@ const bt = /* @__PURE__ */ new WeakMap();
759
759
  function fo(e, t = !1) {
760
760
  const o = ue(t);
761
761
  let n = "";
762
- oe(to(e), (a) => {
763
- const i = yt(T(a));
762
+ te(to(e), (a) => {
763
+ const i = yt($(a));
764
764
  if (i) {
765
765
  const l = i;
766
766
  if (bt.get(l) || bt.set(l, l.style.overflow), l.style.overflow !== "hidden" && (n = l.style.overflow), l.style.overflow === "hidden") return o.value = !0;
@@ -768,13 +768,13 @@ function fo(e, t = !1) {
768
768
  }
769
769
  }, { immediate: !0 });
770
770
  const s = () => {
771
- const a = yt(T(e));
771
+ const a = yt($(e));
772
772
  !a || o.value || (a.style.overflow = "hidden", o.value = !0);
773
773
  }, r = () => {
774
- const a = yt(T(e));
774
+ const a = yt($(e));
775
775
  !a || !o.value || (a.style.overflow = n, bt.delete(a), o.value = !1);
776
776
  };
777
- return Pt(r), A({
777
+ return Ft(r), A({
778
778
  get() {
779
779
  return o.value;
780
780
  },
@@ -786,7 +786,7 @@ function fo(e, t = !1) {
786
786
  const vo = (e) => {
787
787
  const t = new DOMParser().parseFromString(e, "text/html");
788
788
  return Array.from(t.body.childNodes).some((o) => o.nodeType === 1);
789
- }, po = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), mo = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], ho = ["innerHTML"], go = { key: 2 }, wo = /* @__PURE__ */ te({
789
+ }, po = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), mo = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], ho = ["innerHTML"], go = { key: 2 }, wo = /* @__PURE__ */ ne({
790
790
  __name: "ACell",
791
791
  props: {
792
792
  colIndex: {},
@@ -798,48 +798,48 @@ const vo = (e) => {
798
798
  debounce: { default: 300 }
799
799
  },
800
800
  setup(e, { expose: t }) {
801
- const o = ve("cell"), n = e.store.getCellData(e.colIndex, e.rowIndex), s = R(""), r = R(!1), a = e.store.columns[e.colIndex], i = e.store.rows[e.rowIndex], l = a.align || "center", u = a.width || "40ch", c = A(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), v = A(() => typeof c.value == "string" ? vo(c.value) : !1), g = A(() => ({
801
+ const o = ve("cell"), n = e.store.getCellData(e.colIndex, e.rowIndex), s = R(""), r = R(!1), a = e.store.columns[e.colIndex], i = e.store.rows[e.rowIndex], l = a.align || "center", u = a.width || "40ch", c = A(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), v = A(() => typeof c.value == "string" ? vo(c.value) : !1), x = A(() => ({
802
802
  textAlign: l,
803
803
  width: u,
804
804
  fontWeight: r.value ? "bold" : "inherit",
805
805
  paddingLeft: e.store.getIndent(e.colIndex, e.store.display[e.rowIndex]?.indent)
806
- })), x = A(() => ({
806
+ })), w = A(() => ({
807
807
  "sticky-column": e.pinned,
808
808
  "cell-modified": r.value
809
- })), C = () => {
810
- f(), w();
811
- }, w = () => {
812
- const { left: $, bottom: B, width: U, height: me } = Be(o);
813
- a.mask, a.modalComponent && e.store.$patch((J) => {
814
- J.modal.visible = !0, J.modal.colIndex = e.colIndex, J.modal.rowIndex = e.rowIndex, J.modal.left = $, J.modal.bottom = B, J.modal.width = U, J.modal.height = me, J.modal.cell = o.value, typeof a.modalComponent == "function" ? J.modal.component = a.modalComponent({ table: J.table, row: i, column: a }) : J.modal.component = a.modalComponent, J.modal.componentProps = a.modalComponentExtraProps;
809
+ })), E = () => {
810
+ f(), h();
811
+ }, h = () => {
812
+ const { left: T, bottom: V, width: U, height: me } = Pe(o);
813
+ a.mask, a.modalComponent && e.store.$patch((Q) => {
814
+ Q.modal.visible = !0, Q.modal.colIndex = e.colIndex, Q.modal.rowIndex = e.rowIndex, Q.modal.left = T, Q.modal.bottom = V, Q.modal.width = U, Q.modal.height = me, Q.modal.cell = o.value, typeof a.modalComponent == "function" ? Q.modal.component = a.modalComponent({ table: Q.table, row: i, column: a }) : Q.modal.component = a.modalComponent, Q.modal.componentProps = a.modalComponentExtraProps;
815
815
  });
816
816
  };
817
817
  if (e.addNavigation) {
818
- let $ = {
818
+ let T = {
819
819
  ...gt,
820
- "keydown.f2": w,
821
- "keydown.alt.up": w,
822
- "keydown.alt.down": w,
823
- "keydown.alt.left": w,
824
- "keydown.alt.right": w
820
+ "keydown.f2": h,
821
+ "keydown.alt.up": h,
822
+ "keydown.alt.down": h,
823
+ "keydown.alt.left": h,
824
+ "keydown.alt.right": h
825
825
  };
826
- typeof e.addNavigation == "object" && ($ = {
827
- ...$,
826
+ typeof e.addNavigation == "object" && (T = {
827
+ ...T,
828
828
  ...e.addNavigation
829
- }), Bt([
829
+ }), _t([
830
830
  {
831
831
  selectors: o,
832
- handlers: $
832
+ handlers: T
833
833
  }
834
834
  ]);
835
835
  }
836
836
  const f = () => {
837
837
  if (o.value && a.edit) {
838
- const $ = window.getSelection();
839
- if ($)
838
+ const T = window.getSelection();
839
+ if (T)
840
840
  try {
841
- const B = document.createRange();
842
- B.selectNodeContents && (B.selectNodeContents(o.value), $.removeAllRanges(), $.addRange(B));
841
+ const V = document.createRange();
842
+ V.selectNodeContents && (V.selectNodeContents(o.value), T.removeAllRanges(), T.addRange(V));
843
843
  } catch {
844
844
  }
845
845
  }
@@ -847,48 +847,48 @@ const vo = (e) => {
847
847
  o.value && (s.value = o.value.textContent, f());
848
848
  }, I = () => {
849
849
  try {
850
- const $ = window.getSelection();
851
- if ($ && $.rangeCount > 0 && o.value) {
852
- const B = $.getRangeAt(0), U = B.cloneRange();
850
+ const T = window.getSelection();
851
+ if (T && T.rangeCount > 0 && o.value) {
852
+ const V = T.getRangeAt(0), U = V.cloneRange();
853
853
  if (U.selectNodeContents && U.setEnd)
854
- return U.selectNodeContents(o.value), U.setEnd(B.endContainer, B.endOffset), U.toString().length;
854
+ return U.selectNodeContents(o.value), U.setEnd(V.endContainer, V.endOffset), U.toString().length;
855
855
  }
856
856
  } catch {
857
857
  }
858
858
  return 0;
859
- }, k = ($) => {
859
+ }, k = (T) => {
860
860
  if (o.value)
861
861
  try {
862
- const B = window.getSelection();
863
- if (!B) return;
862
+ const V = window.getSelection();
863
+ if (!V) return;
864
864
  let U = 0;
865
865
  const me = document.createTreeWalker ? document.createTreeWalker(o.value, NodeFilter.SHOW_TEXT, null) : null;
866
866
  if (!me) return;
867
- let J, Q = null;
868
- for (; J = me.nextNode(); ) {
869
- const we = J, fe = U + we.textContent.length;
870
- if ($ <= fe && (Q = document.createRange(), Q.setStart && Q.setEnd)) {
871
- Q.setStart(we, $ - U), Q.setEnd(we, $ - U);
867
+ let Q, j = null;
868
+ for (; Q = me.nextNode(); ) {
869
+ const we = Q, fe = U + we.textContent.length;
870
+ if (T <= fe && (j = document.createRange(), j.setStart && j.setEnd)) {
871
+ j.setStart(we, T - U), j.setEnd(we, T - U);
872
872
  break;
873
873
  }
874
874
  U = fe;
875
875
  }
876
- Q && B.removeAllRanges && B.addRange && (B.removeAllRanges(), B.addRange(Q));
876
+ j && V.removeAllRanges && V.addRange && (V.removeAllRanges(), V.addRange(j));
877
877
  } catch {
878
878
  }
879
- }, E = ($) => {
879
+ }, C = (T) => {
880
880
  if (!a.edit) return;
881
- const B = $.target;
882
- if (B.textContent === s.value)
881
+ const V = T.target;
882
+ if (V.textContent === s.value)
883
883
  return;
884
884
  const U = I();
885
- s.value = B.textContent, a.format ? (r.value = B.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, n), e.store.setCellText(e.colIndex, e.rowIndex, B.textContent)) : (r.value = B.textContent !== n, e.store.setCellData(e.colIndex, e.rowIndex, B.textContent)), ft().then(() => {
885
+ s.value = V.textContent, a.format ? (r.value = V.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, n), e.store.setCellText(e.colIndex, e.rowIndex, V.textContent)) : (r.value = V.textContent !== n, e.store.setCellData(e.colIndex, e.rowIndex, V.textContent)), ft().then(() => {
886
886
  k(U);
887
887
  });
888
- }, D = /* @__PURE__ */ ao(E, e.debounce);
888
+ }, D = /* @__PURE__ */ ao(C, e.debounce);
889
889
  return t({
890
890
  currentData: s
891
- }), ($, B) => (h(), b("td", {
891
+ }), (T, V) => (g(), b("td", {
892
892
  ref: "cell",
893
893
  "data-colindex": e.colIndex,
894
894
  "data-rowindex": e.rowIndex,
@@ -896,24 +896,24 @@ const vo = (e) => {
896
896
  contenteditable: H(a).edit,
897
897
  tabindex: e.tabIndex,
898
898
  spellcheck: !1,
899
- style: Ie(g.value),
900
- class: ae(["atable-cell", x.value]),
899
+ style: Ie(x.value),
900
+ class: ae(["atable-cell", w.value]),
901
901
  onFocus: m,
902
- onPaste: E,
903
- onInput: B[0] || (B[0] = //@ts-ignore
902
+ onPaste: C,
903
+ onInput: V[0] || (V[0] = //@ts-ignore
904
904
  (...U) => H(D) && H(D)(...U)),
905
- onClick: C
905
+ onClick: E
906
906
  }, [
907
- H(a).cellComponent ? (h(), pe(Fe(H(a).cellComponent), dt({
907
+ H(a).cellComponent ? (g(), pe(Fe(H(a).cellComponent), dt({
908
908
  key: 0,
909
909
  value: c.value
910
- }, H(a).cellComponentProps), null, 16, ["value"])) : v.value ? (h(), b("span", {
910
+ }, H(a).cellComponentProps), null, 16, ["value"])) : v.value ? (g(), b("span", {
911
911
  key: 1,
912
912
  innerHTML: c.value
913
- }, null, 8, ho)) : (h(), b("span", go, Z(c.value), 1))
913
+ }, null, 8, ho)) : (g(), b("span", go, Z(c.value), 1))
914
914
  ], 46, mo));
915
915
  }
916
- }), yo = ["tabindex"], bo = ["tabindex"], xo = ["colspan"], ko = /* @__PURE__ */ te({
916
+ }), yo = ["tabindex"], bo = ["tabindex"], xo = ["colspan"], ko = /* @__PURE__ */ ne({
917
917
  __name: "AExpansionRow",
918
918
  props: {
919
919
  rowIndex: {},
@@ -929,14 +929,14 @@ const vo = (e) => {
929
929
  s.stopPropagation(), s.preventDefault(), e.store.toggleRowExpand(e.rowIndex);
930
930
  }
931
931
  };
932
- typeof e.addNavigation == "object" && Object.assign(n, e.addNavigation), Bt([
932
+ typeof e.addNavigation == "object" && Object.assign(n, e.addNavigation), _t([
933
933
  {
934
934
  selectors: t,
935
935
  handlers: n
936
936
  }
937
937
  ]);
938
938
  }
939
- return (n, s) => (h(), b(X, null, [
939
+ return (n, s) => (g(), b(X, null, [
940
940
  y("tr", dt(n.$attrs, {
941
941
  ref: "rowEl",
942
942
  tabindex: e.tabIndex,
@@ -949,7 +949,7 @@ const vo = (e) => {
949
949
  }, Z(o.value), 1),
950
950
  ge(n.$slots, "row", {}, void 0, !0)
951
951
  ], 16, yo),
952
- e.store.display[e.rowIndex].expanded ? (h(), b("tr", {
952
+ e.store.display[e.rowIndex].expanded ? (g(), b("tr", {
953
953
  key: 0,
954
954
  ref: "rowExpanded",
955
955
  tabindex: e.tabIndex,
@@ -965,18 +965,18 @@ const vo = (e) => {
965
965
  ], 8, bo)) : z("", !0)
966
966
  ], 64));
967
967
  }
968
- }), _e = (e, t) => {
968
+ }), Be = (e, t) => {
969
969
  const o = e.__vccOpts || e;
970
970
  for (const [n, s] of t)
971
971
  o[n] = s;
972
972
  return o;
973
- }, Io = /* @__PURE__ */ _e(ko, [["__scopeId", "data-v-a42297c7"]]), Mo = ["colspan"], Co = {
973
+ }, Io = /* @__PURE__ */ Be(ko, [["__scopeId", "data-v-a42297c7"]]), Mo = ["colspan"], Co = {
974
974
  ref: "container",
975
975
  class: "gantt-container"
976
- }, Eo = ["data-rowindex", "data-colindex"], $o = {
976
+ }, Eo = ["data-rowindex", "data-colindex"], To = {
977
977
  key: 2,
978
978
  class: "gantt-label"
979
- }, To = ["x1", "y1", "x2", "y2"], Ao = /* @__PURE__ */ te({
979
+ }, $o = ["x1", "y1", "x2", "y2"], Ao = /* @__PURE__ */ ne({
980
980
  __name: "AGanttCell",
981
981
  props: {
982
982
  store: {},
@@ -991,18 +991,18 @@ const vo = (e) => {
991
991
  },
992
992
  emits: ["connection:create"],
993
993
  setup(e, { expose: t, emit: o }) {
994
- En((P) => ({
995
- v737862e7: s.value,
996
- v05f25613: P.colspan
994
+ En((_) => ({
995
+ v67f2230e: s.value,
996
+ v8309df7e: _.colspan
997
997
  }));
998
- const n = o, s = R(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, a = ve("container"), i = ve("bar"), l = ve("leftResizeHandle"), u = ve("rightResizeHandle"), c = ve("leftConnectionHandle"), v = ve("rightConnectionHandle"), { width: g } = Be(a), { left: x, right: C } = Be(i), w = R(e.start), f = R(e.end || w.value + e.colspan), m = R(!1), I = R(!1), k = R(!1), E = R(!1), D = R(!1), $ = R({ startX: 0, startY: 0, endX: 0, endY: 0 }), B = A(() => Oe.value || we.value || fe.value), U = A(() => e.colspan > 0 ? g.value / e.colspan : 0), me = A(() => {
999
- const P = w.value / e.colspan * 100, F = f.value / e.colspan * 100;
998
+ const n = o, s = R(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, a = ve("container"), i = ve("bar"), l = ve("leftResizeHandle"), u = ve("rightResizeHandle"), c = ve("leftConnectionHandle"), v = ve("rightConnectionHandle"), { width: x } = Pe(a), { left: w, right: E } = Pe(i), h = R(e.start), f = R(e.end || h.value + e.colspan), m = R(!1), I = R(!1), k = R(!1), C = R(!1), D = R(!1), T = R({ startX: 0, startY: 0, endX: 0, endY: 0 }), V = A(() => Oe.value || we.value || fe.value), U = A(() => e.colspan > 0 ? x.value / e.colspan : 0), me = A(() => {
999
+ const _ = h.value / e.colspan * 100, F = f.value / e.colspan * 100;
1000
1000
  return {
1001
- left: `${P}%`,
1002
- width: `${F - P}%`,
1001
+ left: `${_}%`,
1002
+ width: `${F - _}%`,
1003
1003
  backgroundColor: s.value
1004
1004
  };
1005
- }), J = A(
1005
+ }), Q = A(
1006
1006
  () => ({
1007
1007
  position: "fixed",
1008
1008
  top: 0,
@@ -1012,40 +1012,40 @@ const vo = (e) => {
1012
1012
  pointerEvents: "none",
1013
1013
  zIndex: 1e3
1014
1014
  })
1015
- ), Q = R({ startX: 0, startPos: 0 }), { isDragging: we } = wt(l, {
1015
+ ), j = R({ startX: 0, startPos: 0 }), { isDragging: we } = wt(l, {
1016
1016
  axis: "x",
1017
- onStart: () => Le(x.value, w.value),
1018
- onMove: ({ x: P }) => Ye(P),
1019
- onEnd: ({ x: P }) => Xe(P)
1017
+ onStart: () => Le(w.value, h.value),
1018
+ onMove: ({ x: _ }) => Ye(_),
1019
+ onEnd: ({ x: _ }) => Xe(_)
1020
1020
  }), { isDragging: fe } = wt(u, {
1021
1021
  axis: "x",
1022
- onStart: () => Le(C.value, f.value),
1023
- onMove: ({ x: P }) => Ze(P),
1024
- onEnd: ({ x: P }) => je(P)
1022
+ onStart: () => Le(E.value, f.value),
1023
+ onMove: ({ x: _ }) => Ze(_),
1024
+ onEnd: ({ x: _ }) => Je(_)
1025
1025
  }), { isDragging: Oe } = wt(i, {
1026
1026
  exact: !0,
1027
1027
  axis: "x",
1028
- onStart: () => Le(x.value, w.value),
1029
- onMove: ({ x: P }) => Ne(P),
1030
- onEnd: ({ x: P }) => L(P)
1028
+ onStart: () => Le(w.value, h.value),
1029
+ onMove: ({ x: _ }) => Ne(_),
1030
+ onEnd: ({ x: _ }) => L(_)
1031
1031
  });
1032
- Te(() => {
1032
+ $e(() => {
1033
1033
  O();
1034
- }), $n(() => {
1034
+ }), Tn(() => {
1035
1035
  G();
1036
1036
  });
1037
- function Le(P, F) {
1038
- i.value && (i.value.style.transition = "none"), Q.value = { startX: P, startPos: F };
1037
+ function Le(_, F) {
1038
+ i.value && (i.value.style.transition = "none"), j.value = { startX: _, startPos: F };
1039
1039
  }
1040
- function Ye(P) {
1040
+ function Ye(_) {
1041
1041
  if (!we.value || !i.value) return;
1042
- const F = (P - Q.value.startX) / U.value, q = Math.max(0, Math.min(f.value - 1, Q.value.startPos + F));
1042
+ const F = (_ - j.value.startX) / U.value, q = Math.max(0, Math.min(f.value - 1, j.value.startPos + F));
1043
1043
  i.value.style.left = `${q / e.colspan * 100}%`, i.value.style.width = `${(f.value - q) / e.colspan * 100}%`;
1044
1044
  }
1045
- function Xe(P) {
1045
+ function Xe(_) {
1046
1046
  if (!i.value) return;
1047
- const F = P - Q.value.startX, q = Math.round(F / U.value), ee = w.value, le = Math.max(0, Math.min(f.value - 1, Q.value.startPos + q));
1048
- w.value = le, e.store.updateGanttBar({
1047
+ const F = _ - j.value.startX, q = Math.round(F / U.value), ee = h.value, le = Math.max(0, Math.min(f.value - 1, j.value.startPos + q));
1048
+ h.value = le, e.store.updateGanttBar({
1049
1049
  rowIndex: e.rowIndex,
1050
1050
  colIndex: e.colIndex,
1051
1051
  type: "resize",
@@ -1058,14 +1058,14 @@ const vo = (e) => {
1058
1058
  newColspan: f.value - le
1059
1059
  });
1060
1060
  }
1061
- function Ze(P) {
1061
+ function Ze(_) {
1062
1062
  if (!fe.value || !i.value) return;
1063
- const F = (P - Q.value.startX) / U.value, q = Math.max(w.value + 1, Math.min(e.columnsCount, Q.value.startPos + F));
1064
- i.value.style.width = `${(q - w.value) / e.colspan * 100}%`;
1063
+ const F = (_ - j.value.startX) / U.value, q = Math.max(h.value + 1, Math.min(e.columnsCount, j.value.startPos + F));
1064
+ i.value.style.width = `${(q - h.value) / e.colspan * 100}%`;
1065
1065
  }
1066
- function je(P) {
1066
+ function Je(_) {
1067
1067
  if (!i.value) return;
1068
- const F = P - Q.value.startX, q = Math.round(F / U.value), ee = f.value, le = Math.max(w.value + 1, Math.min(e.columnsCount, Q.value.startPos + q));
1068
+ const F = _ - j.value.startX, q = Math.round(F / U.value), ee = f.value, le = Math.max(h.value + 1, Math.min(e.columnsCount, j.value.startPos + q));
1069
1069
  f.value = le, e.store.updateGanttBar({
1070
1070
  rowIndex: e.rowIndex,
1071
1071
  colIndex: e.colIndex,
@@ -1073,27 +1073,27 @@ const vo = (e) => {
1073
1073
  edge: "end",
1074
1074
  oldEnd: ee,
1075
1075
  newEnd: le,
1076
- start: w.value,
1076
+ start: h.value,
1077
1077
  delta: q,
1078
- oldColspan: ee - w.value,
1079
- newColspan: le - w.value
1078
+ oldColspan: ee - h.value,
1079
+ newColspan: le - h.value
1080
1080
  });
1081
1081
  }
1082
- function Ne(P) {
1082
+ function Ne(_) {
1083
1083
  if (!Oe.value || !i.value) return;
1084
- const F = (P - Q.value.startX) / U.value, q = f.value - w.value, ee = Math.max(0, Math.min(Q.value.startPos + F, e.columnsCount - q));
1084
+ const F = (_ - j.value.startX) / U.value, q = f.value - h.value, ee = Math.max(0, Math.min(j.value.startPos + F, e.columnsCount - q));
1085
1085
  i.value.style.left = `${ee / e.colspan * 100}%`;
1086
1086
  }
1087
- function L(P) {
1087
+ function L(_) {
1088
1088
  if (!i.value) return;
1089
- const F = P - Q.value.startX, q = Math.round(F / U.value), ee = f.value - w.value, le = w.value, ne = f.value;
1090
- let ie = Q.value.startPos + q, ce = ie + ee;
1091
- ie < 0 ? (ie = 0, ce = ee) : ce > e.columnsCount && (ce = e.columnsCount, ie = ce - ee), w.value = ie, f.value = ce, e.store.updateGanttBar({
1089
+ const F = _ - j.value.startX, q = Math.round(F / U.value), ee = f.value - h.value, le = h.value, oe = f.value;
1090
+ let ie = j.value.startPos + q, ce = ie + ee;
1091
+ ie < 0 ? (ie = 0, ce = ee) : ce > e.columnsCount && (ce = e.columnsCount, ie = ce - ee), h.value = ie, f.value = ce, e.store.updateGanttBar({
1092
1092
  rowIndex: e.rowIndex,
1093
1093
  colIndex: e.colIndex,
1094
1094
  type: "bar",
1095
1095
  oldStart: le,
1096
- oldEnd: ne,
1096
+ oldEnd: oe,
1097
1097
  newStart: ie,
1098
1098
  newEnd: ce,
1099
1099
  delta: q,
@@ -1101,16 +1101,16 @@ const vo = (e) => {
1101
1101
  });
1102
1102
  }
1103
1103
  function O() {
1104
- const { x: P, y: F } = Be(i), { x: q, y: ee } = Be(c), { x: le, y: ne } = Be(v);
1104
+ const { x: _, y: F } = Pe(i), { x: q, y: ee } = Pe(c), { x: le, y: oe } = Pe(v);
1105
1105
  e.store.registerGanttBar({
1106
1106
  id: r,
1107
1107
  rowIndex: e.rowIndex,
1108
1108
  colIndex: e.colIndex,
1109
- startIndex: w,
1109
+ startIndex: h,
1110
1110
  endIndex: f,
1111
1111
  color: s,
1112
1112
  label: e.label,
1113
- position: { x: P, y: F }
1113
+ position: { x: _, y: F }
1114
1114
  }), e.store.isDependencyGraphEnabled && (e.store.registerConnectionHandle({
1115
1115
  id: `${r}-connection-left`,
1116
1116
  rowIndex: e.rowIndex,
@@ -1124,7 +1124,7 @@ const vo = (e) => {
1124
1124
  rowIndex: e.rowIndex,
1125
1125
  colIndex: e.colIndex,
1126
1126
  side: "right",
1127
- position: { x: le, y: ne },
1127
+ position: { x: le, y: oe },
1128
1128
  visible: I,
1129
1129
  barId: r
1130
1130
  }));
@@ -1136,28 +1136,28 @@ const vo = (e) => {
1136
1136
  e.store.isDependencyGraphEnabled && (m.value = !0, I.value = !0);
1137
1137
  }
1138
1138
  function Y() {
1139
- !k.value && !E.value && (m.value = !1, I.value = !1);
1139
+ !k.value && !C.value && (m.value = !1, I.value = !1);
1140
1140
  }
1141
- function re(P, F) {
1142
- F.preventDefault(), F.stopPropagation(), D.value = !0, P === "left" ? k.value = !0 : E.value = !0;
1143
- const q = P === "left" ? c.value : v.value;
1141
+ function re(_, F) {
1142
+ F.preventDefault(), F.stopPropagation(), D.value = !0, _ === "left" ? k.value = !0 : C.value = !0;
1143
+ const q = _ === "left" ? c.value : v.value;
1144
1144
  if (q) {
1145
- const ne = q.getBoundingClientRect(), ie = ne.left + ne.width / 2, ce = ne.top + ne.height / 2;
1146
- $.value = { startX: ie, startY: ce, endX: ie, endY: ce };
1145
+ const oe = q.getBoundingClientRect(), ie = oe.left + oe.width / 2, ce = oe.top + oe.height / 2;
1146
+ T.value = { startX: ie, startY: ce, endX: ie, endY: ce };
1147
1147
  }
1148
- const ee = (ne) => {
1149
- $.value.endX = ne.clientX, $.value.endY = ne.clientY;
1150
- }, le = (ne) => {
1151
- Ee(ne, P), He(ee, le);
1148
+ const ee = (oe) => {
1149
+ T.value.endX = oe.clientX, T.value.endY = oe.clientY;
1150
+ }, le = (oe) => {
1151
+ Ee(oe, _), He(ee, le);
1152
1152
  };
1153
1153
  document.addEventListener("mousemove", ee), document.addEventListener("mouseup", le);
1154
1154
  }
1155
- function Ee(P, F) {
1156
- const q = document.elementFromPoint(P.clientX, P.clientY)?.closest(".connection-handle");
1155
+ function Ee(_, F) {
1156
+ const q = document.elementFromPoint(_.clientX, _.clientY)?.closest(".connection-handle");
1157
1157
  if (q && q !== (F === "left" ? c.value : v.value)) {
1158
1158
  const ee = q.closest(".gantt-bar");
1159
1159
  if (ee) {
1160
- const le = parseInt(ee.getAttribute("data-rowindex") || "0"), ne = parseInt(ee.getAttribute("data-colindex") || "0"), ie = q.classList.contains("left-connection-handle") ? "left" : "right", ce = `gantt-bar-row-${le}-col-${ne}`, d = e.store.createConnection(
1160
+ const le = parseInt(ee.getAttribute("data-rowindex") || "0"), oe = parseInt(ee.getAttribute("data-colindex") || "0"), ie = q.classList.contains("left-connection-handle") ? "left" : "right", ce = `gantt-bar-row-${le}-col-${oe}`, d = e.store.createConnection(
1161
1161
  `${r}-connection-${F}`,
1162
1162
  `${ce}-connection-${ie}`
1163
1163
  );
@@ -1165,8 +1165,8 @@ const vo = (e) => {
1165
1165
  }
1166
1166
  }
1167
1167
  }
1168
- function He(P, F) {
1169
- D.value = !1, k.value = !1, E.value = !1, document.removeEventListener("mousemove", P), document.removeEventListener("mouseup", F), i.value?.matches(":hover") || Y();
1168
+ function He(_, F) {
1169
+ D.value = !1, k.value = !1, C.value = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", F), i.value?.matches(":hover") || Y();
1170
1170
  }
1171
1171
  return t({
1172
1172
  barStyle: me,
@@ -1175,10 +1175,10 @@ const vo = (e) => {
1175
1175
  handleConnectionDrop: Ee,
1176
1176
  isLeftConnectionDragging: k,
1177
1177
  isLeftConnectionVisible: m,
1178
- isRightConnectionDragging: E,
1178
+ isRightConnectionDragging: C,
1179
1179
  isRightConnectionVisible: I,
1180
1180
  showDragPreview: D
1181
- }), (P, F) => (h(), b("td", {
1181
+ }), (_, F) => (g(), b("td", {
1182
1182
  class: "aganttcell",
1183
1183
  colspan: e.colspan
1184
1184
  }, [
@@ -1187,12 +1187,12 @@ const vo = (e) => {
1187
1187
  ref: "bar",
1188
1188
  "data-rowindex": e.rowIndex,
1189
1189
  "data-colindex": e.colIndex,
1190
- class: ae(["gantt-bar", { "is-dragging": B.value }]),
1190
+ class: ae(["gantt-bar", { "is-dragging": V.value }]),
1191
1191
  style: Ie(me.value),
1192
1192
  onMouseenter: K,
1193
1193
  onMouseleave: Y
1194
1194
  }, [
1195
- e.store.isDependencyGraphEnabled ? (h(), b("div", {
1195
+ e.store.isDependencyGraphEnabled ? (g(), b("div", {
1196
1196
  key: 0,
1197
1197
  ref: "leftConnectionHandle",
1198
1198
  class: ae(["connection-handle left-connection-handle", { visible: m.value, "is-dragging": k.value }]),
@@ -1200,10 +1200,10 @@ const vo = (e) => {
1200
1200
  }, [...F[2] || (F[2] = [
1201
1201
  y("div", { class: "connection-dot" }, null, -1)
1202
1202
  ])], 34)) : z("", !0),
1203
- e.store.isDependencyGraphEnabled ? (h(), b("div", {
1203
+ e.store.isDependencyGraphEnabled ? (g(), b("div", {
1204
1204
  key: 1,
1205
1205
  ref: "rightConnectionHandle",
1206
- class: ae(["connection-handle right-connection-handle", { visible: I.value, "is-dragging": E.value }]),
1206
+ class: ae(["connection-handle right-connection-handle", { visible: I.value, "is-dragging": C.value }]),
1207
1207
  onMousedown: F[1] || (F[1] = he((q) => re("right", q), ["stop"]))
1208
1208
  }, [...F[3] || (F[3] = [
1209
1209
  y("div", { class: "connection-dot" }, null, -1)
@@ -1215,7 +1215,7 @@ const vo = (e) => {
1215
1215
  y("div", { class: "handle-grip" }, null, -1),
1216
1216
  y("div", { class: "vertical-indicator left-indicator" }, null, -1)
1217
1217
  ])], 2),
1218
- e.label ? (h(), b("label", $o, Z(e.label), 1)) : z("", !0),
1218
+ e.label ? (g(), b("label", To, Z(e.label), 1)) : z("", !0),
1219
1219
  y("div", {
1220
1220
  ref: "rightResizeHandle",
1221
1221
  class: ae(["resize-handle right-resize-handle", { "is-dragging": H(fe) }])
@@ -1225,23 +1225,23 @@ const vo = (e) => {
1225
1225
  ])], 2)
1226
1226
  ], 46, Eo)
1227
1227
  ], 512),
1228
- e.store.isDependencyGraphEnabled && D.value ? (h(), b("svg", {
1228
+ e.store.isDependencyGraphEnabled && D.value ? (g(), b("svg", {
1229
1229
  key: 0,
1230
- style: Ie(J.value)
1230
+ style: Ie(Q.value)
1231
1231
  }, [
1232
1232
  y("line", {
1233
- x1: $.value.startX,
1234
- y1: $.value.startY,
1235
- x2: $.value.endX,
1236
- y2: $.value.endY,
1233
+ x1: T.value.startX,
1234
+ y1: T.value.startY,
1235
+ x2: T.value.endX,
1236
+ y2: T.value.endY,
1237
1237
  stroke: "#2196f3",
1238
1238
  "stroke-width": "2",
1239
1239
  "stroke-dasharray": "5,5"
1240
- }, null, 8, To)
1240
+ }, null, 8, $o)
1241
1241
  ], 4)) : z("", !0)
1242
1242
  ], 8, Mo));
1243
1243
  }
1244
- }), Do = /* @__PURE__ */ _e(Ao, [["__scopeId", "data-v-c2df3f52"]]), So = `<?xml version="1.0" encoding="UTF-8"?>
1244
+ }), Do = /* @__PURE__ */ Be(Ao, [["__scopeId", "data-v-e2e9fdb6"]]), So = `<?xml version="1.0" encoding="UTF-8"?>
1245
1245
  <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
1246
1246
  <path d="M32,64C14.35,64,0,49.65,0,32S14.35,0,32,0s32,14.35,32,32-14.35,32-32,32ZM32,4c-15.44,0-28,12.56-28,28s12.56,28,28,28,28-12.56,28-28S47.44,4,32,4Z" style="fill: #000; stroke-width: 0px;"/>
1247
1247
  <polygon points="34 18 30 18 30 30 18 30 18 34 30 34 30 46 34 46 34 34 46 34 46 30 34 30 34 18" style="fill: #000; stroke-width: 0px;"/>
@@ -1282,23 +1282,23 @@ const vo = (e) => {
1282
1282
  </g>
1283
1283
  <path d="M68.6,23.7v13.7H2v-13.7h66.6M70.6,21.7H0v17.7h70.6v-17.7h0Z"/>
1284
1284
  <path d="M68.6,2v13.7H2V2h66.6M70.6,0H0v17.7h70.6V0h0Z"/>
1285
- </svg>`, _o = `<?xml version="1.0" encoding="UTF-8"?>
1285
+ </svg>`, Bo = `<?xml version="1.0" encoding="UTF-8"?>
1286
1286
  <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.67 70.64">
1287
1287
  <path d="M70.08,33.9l-9.75-9.75-2.83,2.83,6.33,6.33h-26.51V6.81l6.33,6.33,2.83-2.83L36.75.56c-.75-.75-2.08-.75-2.83,0l-9.75,9.75,2.83,2.83,6.33-6.33v26.5H6.83l6.33-6.33-2.83-2.83L.59,33.9c-.38.38-.59.88-.59,1.41s.21,1.04.59,1.41l9.75,9.75,2.83-2.83-6.33-6.33h26.5v26.51l-6.33-6.33-2.83,2.83,9.75,9.75c.38.38.88.59,1.41.59s1.04-.21,1.41-.59l9.75-9.75-2.83-2.83-6.33,6.33v-26.51h26.51l-6.33,6.33,2.83,2.83,9.75-9.75c.38-.38.59-.88.59-1.41s-.21-1.04-.59-1.41Z" style="fill: #000; stroke-width: 0px;"/>
1288
- </svg>`, Bo = {
1288
+ </svg>`, Po = {
1289
1289
  add: So,
1290
1290
  delete: Ro,
1291
1291
  duplicate: Lo,
1292
1292
  insertAbove: Ho,
1293
1293
  insertBelow: Vo,
1294
- move: _o
1295
- }, Po = {
1294
+ move: Bo
1295
+ }, _o = {
1296
1296
  key: 0,
1297
1297
  class: "row-actions-dropdown"
1298
1298
  }, Fo = ["aria-expanded"], Oo = ["onClick"], Zo = ["innerHTML"], No = { class: "action-label" }, Uo = {
1299
1299
  key: 1,
1300
1300
  class: "row-actions-icons"
1301
- }, Wo = ["title", "aria-label", "onClick"], Go = ["innerHTML"], it = /* @__PURE__ */ te({
1301
+ }, Wo = ["title", "aria-label", "onClick"], Go = ["innerHTML"], it = /* @__PURE__ */ ne({
1302
1302
  __name: "ARowActions",
1303
1303
  props: {
1304
1304
  rowIndex: {},
@@ -1317,18 +1317,18 @@ const vo = (e) => {
1317
1317
  move: "Move Row"
1318
1318
  }, v = A(() => {
1319
1319
  const m = [], I = o.config.actions || {}, k = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
1320
- for (const E of k) {
1321
- const D = I[E];
1320
+ for (const C of k) {
1321
+ const D = I[C];
1322
1322
  if (D === !1 || D === void 0) continue;
1323
- let $ = !0, B = c[E], U = Bo[E];
1324
- typeof D == "object" && ($ = D.enabled !== !1, B = D.label || B, U = D.icon || U), $ && m.push({ type: E, label: B, icon: U });
1323
+ let T = !0, V = c[C], U = Po[C];
1324
+ typeof D == "object" && (T = D.enabled !== !1, V = D.label || V, U = D.icon || U), T && m.push({ type: C, label: V, icon: U });
1325
1325
  }
1326
1326
  return m;
1327
- }), g = A(() => {
1327
+ }), x = A(() => {
1328
1328
  if (o.config.forceDropdown) return !0;
1329
1329
  const m = o.config.dropdownThreshold ?? 150;
1330
1330
  return m === 0 ? !1 : a.value > 0 && a.value < m;
1331
- }), x = A(() => i.value ? l.value ? {
1331
+ }), w = A(() => i.value ? l.value ? {
1332
1332
  position: "fixed",
1333
1333
  bottom: `${window.innerHeight - u.value.top}px`,
1334
1334
  left: `${u.value.left}px`,
@@ -1342,12 +1342,12 @@ const vo = (e) => {
1342
1342
  const I = m[0];
1343
1343
  I && (a.value = I.contentRect.width);
1344
1344
  });
1345
- const C = () => {
1346
- i.value || w(), i.value = !i.value;
1347
- }, w = () => {
1345
+ const E = () => {
1346
+ i.value || h(), i.value = !i.value;
1347
+ }, h = () => {
1348
1348
  if (!r.value) return;
1349
- const m = r.value.getBoundingClientRect(), I = window.innerHeight, k = v.value.length * 40 + 16, E = I - m.bottom, D = m.top;
1350
- l.value = E < k && D > k, l.value ? u.value = {
1349
+ const m = r.value.getBoundingClientRect(), I = window.innerHeight, k = v.value.length * 40 + 16, C = I - m.bottom, D = m.top;
1350
+ l.value = C < k && D > k, l.value ? u.value = {
1351
1351
  top: m.top,
1352
1352
  left: m.left
1353
1353
  } : u.value = {
@@ -1355,7 +1355,7 @@ const vo = (e) => {
1355
1355
  left: m.left
1356
1356
  };
1357
1357
  };
1358
- At(s, () => {
1358
+ Dt(s, () => {
1359
1359
  i.value = !1;
1360
1360
  });
1361
1361
  const f = (m) => {
@@ -1363,32 +1363,32 @@ const vo = (e) => {
1363
1363
  const I = o.config.actions?.[m];
1364
1364
  typeof I == "object" && I.handler && I.handler(o.rowIndex, o.store) === !1 || n("action", m, o.rowIndex);
1365
1365
  };
1366
- return (m, I) => (h(), b("td", {
1366
+ return (m, I) => (g(), b("td", {
1367
1367
  ref: "actionsCell",
1368
1368
  class: ae(["atable-row-actions", { "sticky-column": e.position === "before-index", "dropdown-active": i.value }])
1369
1369
  }, [
1370
- g.value ? (h(), b("div", Po, [
1370
+ x.value ? (g(), b("div", _o, [
1371
1371
  y("button", {
1372
1372
  ref: "toggleButton",
1373
1373
  type: "button",
1374
1374
  class: "row-actions-toggle",
1375
1375
  "aria-expanded": i.value,
1376
1376
  "aria-haspopup": "true",
1377
- onClick: he(C, ["stop"])
1377
+ onClick: he(E, ["stop"])
1378
1378
  }, [...I[0] || (I[0] = [
1379
1379
  y("span", { class: "dropdown-icon" }, "⋮", -1)
1380
1380
  ])], 8, Fo),
1381
- j(y("div", {
1381
+ J(y("div", {
1382
1382
  class: ae(["row-actions-menu", { "menu-flipped": l.value }]),
1383
- style: Ie(x.value),
1383
+ style: Ie(w.value),
1384
1384
  role: "menu"
1385
1385
  }, [
1386
- (h(!0), b(X, null, de(v.value, (k) => (h(), b("button", {
1386
+ (g(!0), b(X, null, de(v.value, (k) => (g(), b("button", {
1387
1387
  key: k.type,
1388
1388
  type: "button",
1389
1389
  class: "row-action-menu-item",
1390
1390
  role: "menuitem",
1391
- onClick: he((E) => f(k.type), ["stop"])
1391
+ onClick: he((C) => f(k.type), ["stop"])
1392
1392
  }, [
1393
1393
  y("span", {
1394
1394
  class: "action-icon",
@@ -1397,16 +1397,16 @@ const vo = (e) => {
1397
1397
  y("span", No, Z(k.label), 1)
1398
1398
  ], 8, Oo))), 128))
1399
1399
  ], 6), [
1400
- [$e, i.value]
1400
+ [Te, i.value]
1401
1401
  ])
1402
- ])) : (h(), b("div", Uo, [
1403
- (h(!0), b(X, null, de(v.value, (k) => (h(), b("button", {
1402
+ ])) : (g(), b("div", Uo, [
1403
+ (g(!0), b(X, null, de(v.value, (k) => (g(), b("button", {
1404
1404
  key: k.type,
1405
1405
  type: "button",
1406
1406
  class: "row-action-btn",
1407
1407
  title: k.label,
1408
1408
  "aria-label": k.label,
1409
- onClick: he((E) => f(k.type), ["stop"])
1409
+ onClick: he((C) => f(k.type), ["stop"])
1410
1410
  }, [
1411
1411
  y("span", {
1412
1412
  class: "action-icon",
@@ -1416,7 +1416,7 @@ const vo = (e) => {
1416
1416
  ]))
1417
1417
  ], 2));
1418
1418
  }
1419
- }), qo = ["tabindex"], zo = /* @__PURE__ */ te({
1419
+ }), qo = ["tabindex"], zo = /* @__PURE__ */ ne({
1420
1420
  __name: "ARow",
1421
1421
  props: {
1422
1422
  rowIndex: {},
@@ -1434,19 +1434,19 @@ const vo = (e) => {
1434
1434
  typeof e.addNavigation == "object" && (c = {
1435
1435
  ...c,
1436
1436
  ...e.addNavigation
1437
- }), Bt([
1437
+ }), _t([
1438
1438
  {
1439
1439
  selectors: n,
1440
1440
  handlers: c
1441
1441
  }
1442
1442
  ]);
1443
1443
  }
1444
- return (c, v) => j((h(), b("tr", {
1444
+ return (c, v) => J((g(), b("tr", {
1445
1445
  ref: "rowEl",
1446
1446
  tabindex: e.tabIndex,
1447
1447
  class: "atable-row"
1448
1448
  }, [
1449
- i.value && l.value === "before-index" ? (h(), pe(it, {
1449
+ i.value && l.value === "before-index" ? (g(), pe(it, {
1450
1450
  key: 0,
1451
1451
  "row-index": e.rowIndex,
1452
1452
  store: e.store,
@@ -1455,18 +1455,18 @@ const vo = (e) => {
1455
1455
  onAction: u
1456
1456
  }, null, 8, ["row-index", "store", "config", "position"])) : z("", !0),
1457
1457
  e.store.config.view !== "uncounted" ? ge(c.$slots, "index", { key: 1 }, () => [
1458
- e.store.config.view === "list" ? (h(), b("td", {
1458
+ e.store.config.view === "list" ? (g(), b("td", {
1459
1459
  key: 0,
1460
1460
  tabIndex: -1,
1461
1461
  class: ae(["list-index", e.store.hasPinnedColumns ? "sticky-index" : ""])
1462
- }, Z(e.rowIndex + 1), 3)) : e.store.isTreeView ? (h(), b("td", {
1462
+ }, Z(e.rowIndex + 1), 3)) : e.store.isTreeView ? (g(), b("td", {
1463
1463
  key: 1,
1464
1464
  tabIndex: -1,
1465
1465
  class: ae(["tree-index", e.store.hasPinnedColumns ? "sticky-index" : ""]),
1466
- onClick: v[0] || (v[0] = (g) => e.store.toggleRowExpand(e.rowIndex))
1466
+ onClick: v[0] || (v[0] = (x) => e.store.toggleRowExpand(e.rowIndex))
1467
1467
  }, Z(r.value), 3)) : z("", !0)
1468
1468
  ], !0) : z("", !0),
1469
- i.value && l.value === "after-index" ? (h(), pe(it, {
1469
+ i.value && l.value === "after-index" ? (g(), pe(it, {
1470
1470
  key: 2,
1471
1471
  "row-index": e.rowIndex,
1472
1472
  store: e.store,
@@ -1475,7 +1475,7 @@ const vo = (e) => {
1475
1475
  onAction: u
1476
1476
  }, null, 8, ["row-index", "store", "config", "position"])) : z("", !0),
1477
1477
  ge(c.$slots, "default", {}, void 0, !0),
1478
- i.value && l.value === "end" ? (h(), pe(it, {
1478
+ i.value && l.value === "end" ? (g(), pe(it, {
1479
1479
  key: 3,
1480
1480
  "row-index": e.rowIndex,
1481
1481
  store: e.store,
@@ -1484,17 +1484,17 @@ const vo = (e) => {
1484
1484
  onAction: u
1485
1485
  }, null, 8, ["row-index", "store", "config", "position"])) : z("", !0)
1486
1486
  ], 8, qo)), [
1487
- [$e, s.value]
1487
+ [Te, s.value]
1488
1488
  ]);
1489
1489
  }
1490
- }), mn = /* @__PURE__ */ _e(zo, [["__scopeId", "data-v-e7ca13d1"]]), xt = /* @__PURE__ */ new WeakMap(), Yo = {
1490
+ }), mn = /* @__PURE__ */ Be(zo, [["__scopeId", "data-v-e7ca13d1"]]), xt = /* @__PURE__ */ new WeakMap(), Yo = {
1491
1491
  mounted(e, t) {
1492
1492
  const o = !t.modifiers.bubble;
1493
1493
  let n;
1494
- if (typeof t.value == "function") n = At(e, t.value, { capture: o });
1494
+ if (typeof t.value == "function") n = Dt(e, t.value, { capture: o });
1495
1495
  else {
1496
1496
  const [s, r] = t.value;
1497
- n = At(e, s, Object.assign({ capture: o }, r));
1497
+ n = Dt(e, s, Object.assign({ capture: o }, r));
1498
1498
  }
1499
1499
  xt.set(e, n);
1500
1500
  },
@@ -1505,18 +1505,18 @@ const vo = (e) => {
1505
1505
  }, Xo = { mounted(e, t) {
1506
1506
  typeof t.value == "function" ? ct(e, t.value) : ct(e, ...t.value);
1507
1507
  } };
1508
- function jo() {
1508
+ function Jo() {
1509
1509
  let e = !1;
1510
1510
  const t = ue(!1);
1511
1511
  return (o, n) => {
1512
1512
  if (t.value = n.value, e) return;
1513
1513
  e = !0;
1514
1514
  const s = fo(o, n.value);
1515
- oe(t, (r) => s.value = r);
1515
+ te(t, (r) => s.value = r);
1516
1516
  };
1517
1517
  }
1518
- jo();
1519
- const Jo = { class: "gantt-connection-overlay" }, Qo = {
1518
+ Jo();
1519
+ const Qo = { class: "gantt-connection-overlay" }, jo = {
1520
1520
  class: "connection-svg",
1521
1521
  style: {
1522
1522
  position: "absolute",
@@ -1527,7 +1527,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1527
1527
  pointerEvents: "none",
1528
1528
  zIndex: 1
1529
1529
  }
1530
- }, Ko = ["d", "stroke-width", "onDblclick"], el = ["id", "d", "stroke", "stroke-width", "onDblclick"], tl = 0.25, lt = 16, nl = /* @__PURE__ */ te({
1530
+ }, Ko = ["d", "stroke-width", "onDblclick"], el = ["id", "d", "stroke", "stroke-width", "onDblclick"], tl = 0.25, lt = 16, nl = /* @__PURE__ */ ne({
1531
1531
  __name: "AGanttConnection",
1532
1532
  props: {
1533
1533
  store: {}
@@ -1539,18 +1539,18 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1539
1539
  return i && l;
1540
1540
  })), s = (a) => {
1541
1541
  const i = e.store.connectionHandles.find(
1542
- (B) => B.barId === a.from.barId && B.side === a.from.side
1542
+ (V) => V.barId === a.from.barId && V.side === a.from.side
1543
1543
  ), l = e.store.connectionHandles.find(
1544
- (B) => B.barId === a.to.barId && B.side === a.to.side
1544
+ (V) => V.barId === a.to.barId && V.side === a.to.side
1545
1545
  );
1546
1546
  if (!i || !l) return "";
1547
- const u = i.position.x + lt / 2, c = i.position.y + lt / 2, v = l.position.x + lt / 2, g = l.position.y + lt / 2, x = Math.abs(v - u), C = Math.max(x * tl, 50), w = u + (a.from.side === "left" ? -C : C), f = v + (a.to.side === "left" ? -C : C), m = { x: 0.5 * u + 0.5 * w, y: 0.5 * c + 0.5 * c }, I = { x: 0.5 * w + 0.5 * f, y: 0.5 * c + 0.5 * g }, k = { x: 0.5 * f + 0.5 * v, y: 0.5 * g + 0.5 * g }, E = { x: 0.5 * m.x + 0.5 * I.x, y: 0.5 * m.y + 0.5 * I.y }, D = { x: 0.5 * I.x + 0.5 * k.x, y: 0.5 * I.y + 0.5 * k.y }, $ = { x: 0.5 * E.x + 0.5 * D.x, y: 0.5 * E.y + 0.5 * D.y };
1548
- return `M ${u} ${c} Q ${w} ${c}, ${$.x} ${$.y} Q ${f} ${g}, ${v} ${g}`;
1547
+ const u = i.position.x + lt / 2, c = i.position.y + lt / 2, v = l.position.x + lt / 2, x = l.position.y + lt / 2, w = Math.abs(v - u), E = Math.max(w * tl, 50), h = u + (a.from.side === "left" ? -E : E), f = v + (a.to.side === "left" ? -E : E), m = { x: 0.5 * u + 0.5 * h, y: 0.5 * c + 0.5 * c }, I = { x: 0.5 * h + 0.5 * f, y: 0.5 * c + 0.5 * x }, k = { x: 0.5 * f + 0.5 * v, y: 0.5 * x + 0.5 * x }, C = { x: 0.5 * m.x + 0.5 * I.x, y: 0.5 * m.y + 0.5 * I.y }, D = { x: 0.5 * I.x + 0.5 * k.x, y: 0.5 * I.y + 0.5 * k.y }, T = { x: 0.5 * C.x + 0.5 * D.x, y: 0.5 * C.y + 0.5 * D.y };
1548
+ return `M ${u} ${c} Q ${h} ${c}, ${T.x} ${T.y} Q ${f} ${x}, ${v} ${x}`;
1549
1549
  }, r = (a) => {
1550
1550
  e.store.deleteConnection(a.id) && o("connection:delete", a);
1551
1551
  };
1552
- return (a, i) => (h(), b("div", Jo, [
1553
- (h(), b("svg", Qo, [
1552
+ return (a, i) => (g(), b("div", Qo, [
1553
+ (g(), b("svg", jo, [
1554
1554
  i[0] || (i[0] = y("defs", null, [
1555
1555
  y("path", {
1556
1556
  id: "arrowhead",
@@ -1574,7 +1574,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1574
1574
  })
1575
1575
  ])
1576
1576
  ], -1)),
1577
- (h(!0), b(X, null, de(n.value, (l) => (h(), b("path", {
1577
+ (g(!0), b(X, null, de(n.value, (l) => (g(), b("path", {
1578
1578
  key: `${l.id}-hitbox`,
1579
1579
  d: s(l),
1580
1580
  stroke: "transparent",
@@ -1583,7 +1583,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1583
1583
  class: "connection-hitbox",
1584
1584
  onDblclick: (u) => r(l)
1585
1585
  }, null, 40, Ko))), 128)),
1586
- (h(!0), b(X, null, de(n.value, (l) => (h(), b("path", {
1586
+ (g(!0), b(X, null, de(n.value, (l) => (g(), b("path", {
1587
1587
  id: l.id,
1588
1588
  key: l.id,
1589
1589
  d: s(l),
@@ -1597,13 +1597,13 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1597
1597
  ]))
1598
1598
  ]));
1599
1599
  }
1600
- }), ol = /* @__PURE__ */ _e(nl, [["__scopeId", "data-v-d5929c98"]]), ll = { class: "column-filter" }, al = {
1600
+ }), ol = /* @__PURE__ */ Be(nl, [["__scopeId", "data-v-d5929c98"]]), ll = { class: "column-filter" }, al = {
1601
1601
  key: 2,
1602
1602
  class: "checkbox-filter"
1603
1603
  }, sl = ["value"], rl = {
1604
1604
  key: 5,
1605
1605
  class: "date-range-filter"
1606
- }, il = /* @__PURE__ */ te({
1606
+ }, il = /* @__PURE__ */ ne({
1607
1607
  __name: "ATableColumnFilter",
1608
1608
  props: {
1609
1609
  column: {},
@@ -1611,7 +1611,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1611
1611
  store: {}
1612
1612
  },
1613
1613
  setup(e) {
1614
- const t = R(""), o = sn({
1614
+ const t = R(""), o = rn({
1615
1615
  startValue: "",
1616
1616
  endValue: ""
1617
1617
  }), n = A(() => {
@@ -1638,8 +1638,8 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1638
1638
  if (u.filterOptions) return u.filterOptions;
1639
1639
  const c = /* @__PURE__ */ new Set();
1640
1640
  return e.store.rows.forEach((v) => {
1641
- const g = v[u.name];
1642
- g != null && g !== "" && c.add(g);
1641
+ const x = v[u.name];
1642
+ x != null && x !== "" && c.add(x);
1643
1643
  }), Array.from(c).map((v) => ({
1644
1644
  value: v,
1645
1645
  label: String(v)
@@ -1655,8 +1655,8 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1655
1655
  }, l = () => {
1656
1656
  t.value = "", o.startValue = "", o.endValue = "", e.store.clearFilter(e.colIndex);
1657
1657
  };
1658
- return (u, c) => (h(), b("div", ll, [
1659
- n.value === "text" ? j((h(), b("input", {
1658
+ return (u, c) => (g(), b("div", ll, [
1659
+ n.value === "text" ? J((g(), b("input", {
1660
1660
  key: 0,
1661
1661
  "onUpdate:modelValue": c[0] || (c[0] = (v) => t.value = v),
1662
1662
  type: "text",
@@ -1664,7 +1664,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1664
1664
  onInput: c[1] || (c[1] = (v) => a(t.value))
1665
1665
  }, null, 544)), [
1666
1666
  [be, t.value]
1667
- ]) : n.value === "number" ? j((h(), b("input", {
1667
+ ]) : n.value === "number" ? J((g(), b("input", {
1668
1668
  key: 1,
1669
1669
  "onUpdate:modelValue": c[2] || (c[2] = (v) => t.value = v),
1670
1670
  type: "number",
@@ -1672,30 +1672,30 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1672
1672
  onInput: c[3] || (c[3] = (v) => a(t.value))
1673
1673
  }, null, 544)), [
1674
1674
  [be, t.value]
1675
- ]) : n.value === "checkbox" ? (h(), b("label", al, [
1676
- j(y("input", {
1675
+ ]) : n.value === "checkbox" ? (g(), b("label", al, [
1676
+ J(y("input", {
1677
1677
  "onUpdate:modelValue": c[4] || (c[4] = (v) => t.value = v),
1678
1678
  type: "checkbox",
1679
1679
  class: "filter-checkbox",
1680
1680
  onChange: c[5] || (c[5] = (v) => a(t.value))
1681
1681
  }, null, 544), [
1682
- [rn, t.value]
1682
+ [un, t.value]
1683
1683
  ]),
1684
1684
  y("span", null, Z(e.column.label), 1)
1685
- ])) : n.value === "select" ? j((h(), b("select", {
1685
+ ])) : n.value === "select" ? J((g(), b("select", {
1686
1686
  key: 3,
1687
1687
  "onUpdate:modelValue": c[6] || (c[6] = (v) => t.value = v),
1688
1688
  class: "filter-select",
1689
1689
  onChange: c[7] || (c[7] = (v) => a(t.value))
1690
1690
  }, [
1691
1691
  c[15] || (c[15] = y("option", { value: "" }, "All", -1)),
1692
- (h(!0), b(X, null, de(s(e.column), (v) => (h(), b("option", {
1692
+ (g(!0), b(X, null, de(s(e.column), (v) => (g(), b("option", {
1693
1693
  key: v.value || v,
1694
1694
  value: v.value || v
1695
1695
  }, Z(v.label || v), 9, sl))), 128))
1696
1696
  ], 544)), [
1697
1697
  [Cn, t.value]
1698
- ]) : n.value === "date" ? j((h(), b("input", {
1698
+ ]) : n.value === "date" ? J((g(), b("input", {
1699
1699
  key: 4,
1700
1700
  "onUpdate:modelValue": c[8] || (c[8] = (v) => t.value = v),
1701
1701
  type: "date",
@@ -1703,8 +1703,8 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1703
1703
  onChange: c[9] || (c[9] = (v) => a(t.value))
1704
1704
  }, null, 544)), [
1705
1705
  [be, t.value]
1706
- ]) : n.value === "dateRange" ? (h(), b("div", rl, [
1707
- j(y("input", {
1706
+ ]) : n.value === "dateRange" ? (g(), b("div", rl, [
1707
+ J(y("input", {
1708
1708
  "onUpdate:modelValue": c[10] || (c[10] = (v) => o.startValue = v),
1709
1709
  type: "date",
1710
1710
  class: "filter-input",
@@ -1713,7 +1713,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1713
1713
  [be, o.startValue]
1714
1714
  ]),
1715
1715
  c[16] || (c[16] = y("span", { class: "date-separator" }, "-", -1)),
1716
- j(y("input", {
1716
+ J(y("input", {
1717
1717
  "onUpdate:modelValue": c[12] || (c[12] = (v) => o.endValue = v),
1718
1718
  type: "date",
1719
1719
  class: "filter-input",
@@ -1721,7 +1721,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1721
1721
  }, null, 544), [
1722
1722
  [be, o.endValue]
1723
1723
  ])
1724
- ])) : n.value === "component" && e.column.filterComponent ? (h(), pe(Fe(e.column.filterComponent), {
1724
+ ])) : n.value === "component" && e.column.filterComponent ? (g(), pe(Fe(e.column.filterComponent), {
1725
1725
  key: 6,
1726
1726
  value: t.value,
1727
1727
  column: e.column,
@@ -1729,7 +1729,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1729
1729
  store: e.store,
1730
1730
  "onUpdate:value": c[14] || (c[14] = (v) => a(v))
1731
1731
  }, null, 40, ["value", "column", "col-index", "store"])) : z("", !0),
1732
- r.value ? (h(), b("button", {
1732
+ r.value ? (g(), b("button", {
1733
1733
  key: 7,
1734
1734
  class: "clear-btn",
1735
1735
  title: "Clear",
@@ -1737,7 +1737,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1737
1737
  }, "×")) : z("", !0)
1738
1738
  ]));
1739
1739
  }
1740
- }), ul = /* @__PURE__ */ _e(il, [["__scopeId", "data-v-f56c7674"]]), cl = { key: 0 }, dl = {
1740
+ }), ul = /* @__PURE__ */ Be(il, [["__scopeId", "data-v-f56c7674"]]), cl = { key: 0 }, dl = {
1741
1741
  class: "atable-header-row",
1742
1742
  tabindex: "-1"
1743
1743
  }, fl = {
@@ -1755,7 +1755,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1755
1755
  }, gl = {
1756
1756
  key: 3,
1757
1757
  class: "row-actions-header"
1758
- }, hn = /* @__PURE__ */ te({
1758
+ }, hn = /* @__PURE__ */ ne({
1759
1759
  __name: "ATableHeader",
1760
1760
  props: {
1761
1761
  columns: {},
@@ -1769,13 +1769,13 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1769
1769
  typeof c == "number" && c !== l && e.store.resizeColumn(u, l);
1770
1770
  }
1771
1771
  };
1772
- return (a, i) => e.columns.length ? (h(), b("thead", cl, [
1772
+ return (a, i) => e.columns.length ? (g(), b("thead", cl, [
1773
1773
  y("tr", dl, [
1774
- o.value && n.value === "before-index" ? (h(), b("th", {
1774
+ o.value && n.value === "before-index" ? (g(), b("th", {
1775
1775
  key: 0,
1776
1776
  class: ae(["row-actions-header", { "sticky-column": n.value === "before-index" }])
1777
1777
  }, null, 2)) : z("", !0),
1778
- e.store.zeroColumn ? (h(), b("th", {
1778
+ e.store.zeroColumn ? (g(), b("th", {
1779
1779
  key: 1,
1780
1780
  id: "header-index",
1781
1781
  class: ae([[
@@ -1784,8 +1784,8 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1784
1784
  e.store.config.view === "list-expansion" ? "list-expansion-index" : ""
1785
1785
  ], "list-index"])
1786
1786
  }, null, 2)) : z("", !0),
1787
- o.value && n.value === "after-index" ? (h(), b("th", fl)) : z("", !0),
1788
- (h(!0), b(X, null, de(e.columns, (l, u) => j((h(), b("th", {
1787
+ o.value && n.value === "after-index" ? (g(), b("th", fl)) : z("", !0),
1788
+ (g(!0), b(X, null, de(e.columns, (l, u) => J((g(), b("th", {
1789
1789
  key: l.name,
1790
1790
  "data-colindex": u,
1791
1791
  tabindex: "-1",
@@ -1794,19 +1794,19 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1794
1794
  onClick: (c) => l.sortable !== !1 ? s(u) : void 0
1795
1795
  }, [
1796
1796
  ge(a.$slots, "default", {}, () => [
1797
- Dt(Z(l.label || String.fromCharCode(u + 97).toUpperCase()), 1)
1797
+ St(Z(l.label || String.fromCharCode(u + 97).toUpperCase()), 1)
1798
1798
  ])
1799
1799
  ], 14, vl)), [
1800
1800
  [H(Xo), r]
1801
1801
  ])), 128)),
1802
- o.value && n.value === "end" ? (h(), b("th", pl)) : z("", !0)
1802
+ o.value && n.value === "end" ? (g(), b("th", pl)) : z("", !0)
1803
1803
  ]),
1804
- t.value.length > 0 ? (h(), b("tr", ml, [
1805
- o.value && n.value === "before-index" ? (h(), b("th", {
1804
+ t.value.length > 0 ? (g(), b("tr", ml, [
1805
+ o.value && n.value === "before-index" ? (g(), b("th", {
1806
1806
  key: 0,
1807
1807
  class: ae(["row-actions-header", { "sticky-column": n.value === "before-index" }])
1808
1808
  }, null, 2)) : z("", !0),
1809
- e.store.zeroColumn ? (h(), b("th", {
1809
+ e.store.zeroColumn ? (g(), b("th", {
1810
1810
  key: 1,
1811
1811
  class: ae([[
1812
1812
  e.store.hasPinnedColumns ? "sticky-index" : "",
@@ -1814,30 +1814,30 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1814
1814
  e.store.config.view === "list-expansion" ? "list-expansion-index" : ""
1815
1815
  ], "list-index"])
1816
1816
  }, null, 2)) : z("", !0),
1817
- o.value && n.value === "after-index" ? (h(), b("th", hl)) : z("", !0),
1818
- (h(!0), b(X, null, de(e.columns, (l, u) => (h(), b("th", {
1817
+ o.value && n.value === "after-index" ? (g(), b("th", hl)) : z("", !0),
1818
+ (g(!0), b(X, null, de(e.columns, (l, u) => (g(), b("th", {
1819
1819
  key: `filter-${l.name}`,
1820
1820
  class: ae(`${l.pinned ? "sticky-column" : ""}`),
1821
1821
  style: Ie(e.store.getHeaderCellStyle(l))
1822
1822
  }, [
1823
- l.filterable ? (h(), pe(ul, {
1823
+ l.filterable ? (g(), pe(ul, {
1824
1824
  key: 0,
1825
1825
  column: l,
1826
1826
  "col-index": u,
1827
1827
  store: e.store
1828
1828
  }, null, 8, ["column", "col-index", "store"])) : z("", !0)
1829
1829
  ], 6))), 128)),
1830
- o.value && n.value === "end" ? (h(), b("th", gl)) : z("", !0)
1830
+ o.value && n.value === "end" ? (g(), b("th", gl)) : z("", !0)
1831
1831
  ])) : z("", !0)
1832
1832
  ])) : z("", !0);
1833
1833
  }
1834
- }), gn = /* @__PURE__ */ te({
1834
+ }), gn = /* @__PURE__ */ ne({
1835
1835
  __name: "ATableModal",
1836
1836
  props: {
1837
1837
  store: {}
1838
1838
  },
1839
1839
  setup(e) {
1840
- const t = ve("amodal"), { width: o, height: n } = Be(t), s = A(() => {
1840
+ const t = ve("amodal"), { width: o, height: n } = Pe(t), s = A(() => {
1841
1841
  if (!(e.store.modal.height && e.store.modal.width && e.store.modal.left && e.store.modal.bottom)) return;
1842
1842
  const r = e.store.modal.cell?.closest("table");
1843
1843
  if (!r) return {};
@@ -1851,7 +1851,7 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1851
1851
  top: `${l}px`
1852
1852
  };
1853
1853
  });
1854
- return (r, a) => (h(), b("div", {
1854
+ return (r, a) => (g(), b("div", {
1855
1855
  ref: "amodal",
1856
1856
  class: "amodal",
1857
1857
  tabindex: "-1",
@@ -1870,23 +1870,23 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1870
1870
  const o = () => {
1871
1871
  const d = [Object.assign({}, { rowModified: !1 })], p = /* @__PURE__ */ new Set();
1872
1872
  for (let S = 0; S < s.value.length; S++) {
1873
- const V = s.value[S];
1874
- V.parent !== null && V.parent !== void 0 && p.add(V.parent);
1873
+ const B = s.value[S];
1874
+ B.parent !== null && B.parent !== void 0 && p.add(B.parent);
1875
1875
  }
1876
- const M = (S) => s.value[S]?.gantt !== void 0, _ = (S) => {
1877
- for (let V = 0; V < s.value.length; V++)
1878
- if (s.value[V].parent === S && (M(V) || _(V)))
1876
+ const M = (S) => s.value[S]?.gantt !== void 0, P = (S) => {
1877
+ for (let B = 0; B < s.value.length; B++)
1878
+ if (s.value[B].parent === S && (M(B) || P(B)))
1879
1879
  return !0;
1880
1880
  return !1;
1881
1881
  }, N = (S) => {
1882
- const V = r.value, W = V.view === "tree" || V.view === "tree-gantt" ? V.defaultTreeExpansion : void 0;
1882
+ const B = r.value, W = B.view === "tree" || B.view === "tree-gantt" ? B.defaultTreeExpansion : void 0;
1883
1883
  if (!W) return !0;
1884
1884
  switch (W) {
1885
1885
  case "root":
1886
1886
  return !1;
1887
1887
  // Only root nodes are visible, all children start collapsed
1888
1888
  case "branch":
1889
- return _(S);
1889
+ return P(S);
1890
1890
  case "leaf":
1891
1891
  return !0;
1892
1892
  // All nodes should be expanded
@@ -1895,25 +1895,25 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1895
1895
  }
1896
1896
  };
1897
1897
  for (let S = 0; S < s.value.length; S++) {
1898
- const V = s.value[S], W = V.parent === null || V.parent === void 0, se = p.has(S);
1898
+ const B = s.value[S], W = B.parent === null || B.parent === void 0, se = p.has(S);
1899
1899
  d[S] = {
1900
1900
  childrenOpen: N(S),
1901
1901
  expanded: !1,
1902
- indent: V.indent || 0,
1902
+ indent: B.indent || 0,
1903
1903
  isParent: se,
1904
1904
  isRoot: W,
1905
1905
  rowModified: !1,
1906
1906
  open: W,
1907
1907
  // This will be recalculated later for non-root nodes
1908
- parent: V.parent
1908
+ parent: B.parent
1909
1909
  };
1910
1910
  }
1911
1911
  return d;
1912
1912
  }, n = R(e.columns), s = R(e.rows), r = R(e.config || {}), a = R({}), i = R({}), l = A(() => {
1913
1913
  const d = {};
1914
1914
  for (const [p, M] of n.value.entries())
1915
- for (const [_, N] of s.value.entries())
1916
- d[`${p}:${_}`] = N[M.name];
1915
+ for (const [P, N] of s.value.entries())
1916
+ d[`${p}:${P}`] = N[M.name];
1917
1917
  return d;
1918
1918
  }), u = A({
1919
1919
  get: () => {
@@ -1921,12 +1921,12 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1921
1921
  for (let p = 0; p < d.length; p++)
1922
1922
  a.value[p] && (d[p].rowModified = a.value[p]), i.value[p] && (i.value[p].childrenOpen !== void 0 && (d[p].childrenOpen = i.value[p].childrenOpen), i.value[p].expanded !== void 0 && (d[p].expanded = i.value[p].expanded));
1923
1923
  if (k.value) {
1924
- const p = (M, _) => {
1925
- const N = _[M];
1924
+ const p = (M, P) => {
1925
+ const N = P[M];
1926
1926
  if (N.isRoot || N.parent === null || N.parent === void 0)
1927
1927
  return !0;
1928
1928
  const S = N.parent;
1929
- return S < 0 || S >= _.length ? !1 : (_[S].childrenOpen || !1) && p(S, _);
1929
+ return S < 0 || S >= P.length ? !1 : (P[S].childrenOpen || !1) && p(S, P);
1930
1930
  };
1931
1931
  for (let M = 0; M < d.length; M++)
1932
1932
  d[M].isRoot || (d[M].open = p(M, d));
@@ -1936,51 +1936,51 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
1936
1936
  set: (d) => {
1937
1937
  JSON.stringify(d) !== JSON.stringify(u.value) && (u.value = d);
1938
1938
  }
1939
- }), c = R(e.modal || { visible: !1 }), v = R({}), g = R([]), x = R([]), C = R([]), w = R({
1939
+ }), c = R(e.modal || { visible: !1 }), v = R({}), x = R([]), w = R([]), E = R([]), h = R({
1940
1940
  column: null,
1941
1941
  direction: null
1942
- }), f = R({}), m = A(() => n.value.some((d) => d.pinned)), I = A(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), k = A(() => r.value.view === "tree" || r.value.view === "tree-gantt"), E = A(() => {
1942
+ }), f = R({}), m = A(() => n.value.some((d) => d.pinned)), I = A(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), k = A(() => r.value.view === "tree" || r.value.view === "tree-gantt"), C = A(() => {
1943
1943
  const d = r.value;
1944
1944
  return d.view === "gantt" || d.view === "tree-gantt" ? d.dependencyGraph !== !1 : !0;
1945
- }), D = A(() => `${Math.ceil(s.value.length / 100 + 1)}ch`), $ = A(
1945
+ }), D = A(() => `${Math.ceil(s.value.length / 100 + 1)}ch`), T = A(
1946
1946
  () => r.value.view ? ["list", "tree", "tree-gantt", "list-expansion"].includes(r.value.view) : !1
1947
- ), B = A(() => {
1947
+ ), V = A(() => {
1948
1948
  let d = s.value.map((p, M) => ({
1949
1949
  ...p,
1950
1950
  originalIndex: M
1951
1951
  }));
1952
1952
  if (Object.entries(f.value).forEach(([p, M]) => {
1953
- const _ = parseInt(p), N = n.value[_];
1953
+ const P = parseInt(p), N = n.value[P];
1954
1954
  !N || !(M.value || M.startValue || M.endValue || N.filterType === "checkbox" && M.value !== void 0) || (d = d.filter((S) => {
1955
- const V = S[N.name];
1956
- return le(V, M, N);
1955
+ const B = S[N.name];
1956
+ return le(B, M, N);
1957
1957
  }));
1958
- }), w.value.column !== null && w.value.direction) {
1959
- const p = n.value[w.value.column], M = w.value.direction;
1960
- d.sort((_, N) => {
1961
- let S = _[p.name], V = N[p.name];
1962
- S == null && (S = ""), V == null && (V = "");
1963
- const W = Number(S), se = Number(V);
1964
- if (!isNaN(W) && !isNaN(se) && S !== "" && V !== "")
1958
+ }), h.value.column !== null && h.value.direction) {
1959
+ const p = n.value[h.value.column], M = h.value.direction;
1960
+ d.sort((P, N) => {
1961
+ let S = P[p.name], B = N[p.name];
1962
+ S == null && (S = ""), B == null && (B = "");
1963
+ const W = Number(S), se = Number(B);
1964
+ if (!isNaN(W) && !isNaN(se) && S !== "" && B !== "")
1965
1965
  return M === "asc" ? W - se : se - W;
1966
1966
  {
1967
- const tt = String(S).toLowerCase(), Ut = String(V).toLowerCase();
1968
- return M === "asc" ? tt.localeCompare(Ut) : Ut.localeCompare(tt);
1967
+ const tt = String(S).toLowerCase(), Wt = String(B).toLowerCase();
1968
+ return M === "asc" ? tt.localeCompare(Wt) : Wt.localeCompare(tt);
1969
1969
  }
1970
1970
  });
1971
1971
  }
1972
1972
  return d;
1973
1973
  }), U = (d, p) => l.value[`${d}:${p}`], me = (d, p, M) => {
1974
- const _ = `${d}:${p}`, N = n.value[d];
1975
- l.value[_] !== M && (a.value[p] = !0), l.value[_] = M, s.value[p] = {
1974
+ const P = `${d}:${p}`, N = n.value[d];
1975
+ l.value[P] !== M && (a.value[p] = !0), l.value[P] = M, s.value[p] = {
1976
1976
  ...s.value[p],
1977
1977
  [N.name]: M
1978
1978
  };
1979
- }, J = (d) => {
1979
+ }, Q = (d) => {
1980
1980
  s.value = d;
1981
- }, Q = (d, p, M) => {
1982
- const _ = `${d}:${p}`;
1983
- l.value[_] !== M && (a.value[p] = !0, v.value[_] = M);
1981
+ }, j = (d, p, M) => {
1982
+ const P = `${d}:${p}`;
1983
+ l.value[P] !== M && (a.value[p] = !0, v.value[P] = M);
1984
1984
  }, we = (d) => {
1985
1985
  const p = n.value.indexOf(d) === n.value.length - 1, M = r.value.fullWidth ? d.resizable && !p : d.resizable;
1986
1986
  return {
@@ -2025,13 +2025,13 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
2025
2025
  childrenOpen: !1
2026
2026
  }, Ze(p);
2027
2027
  }
2028
- }, je = (d, p) => {
2028
+ }, Je = (d, p) => {
2029
2029
  const M = U(d, p);
2030
2030
  return Ne(d, p, M);
2031
2031
  }, Ne = (d, p, M) => {
2032
- const _ = n.value[d], N = s.value[p], S = _.format;
2032
+ const P = n.value[d], N = s.value[p], S = P.format;
2033
2033
  if (!S)
2034
- switch (_.fieldtype) {
2034
+ switch (P.fieldtype) {
2035
2035
  case "Check":
2036
2036
  return M ? "✓" : "✗";
2037
2037
  case "Date":
@@ -2041,33 +2041,33 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
2041
2041
  default:
2042
2042
  return M;
2043
2043
  }
2044
- return typeof S == "function" ? S(M, { table: l.value, row: N, column: _ }) : typeof S == "string" ? Function(`"use strict";return (${S})`)()(M, { table: l.value, row: N, column: _ }) : M;
2044
+ return typeof S == "function" ? S(M, { table: l.value, row: N, column: P }) : typeof S == "string" ? Function(`"use strict";return (${S})`)()(M, { table: l.value, row: N, column: P }) : M;
2045
2045
  }, L = (d) => {
2046
2046
  d.target instanceof Node && c.value.parent?.contains(d.target) || c.value.visible && (c.value.visible = !1);
2047
2047
  }, O = (d, p) => p && d === 0 && p > 0 ? `${p}ch` : "inherit", G = (d) => {
2048
2048
  const p = s.value[d.rowIndex]?.gantt;
2049
2049
  p && (d.type === "resize" ? d.edge === "start" ? (p.startIndex = d.newStart, p.endIndex = d.end, p.colspan = p.endIndex - p.startIndex) : d.edge === "end" && (p.startIndex = d.start, p.endIndex = d.newEnd, p.colspan = p.endIndex - p.startIndex) : d.type === "bar" && (p.startIndex = d.newStart, p.endIndex = d.newEnd, p.colspan = p.endIndex - p.startIndex));
2050
2050
  }, K = (d) => {
2051
- const p = g.value.findIndex((M) => M.id === d.id);
2052
- p >= 0 ? g.value[p] = d : g.value.push(d);
2053
- }, Y = (d) => {
2054
- const p = g.value.findIndex((M) => M.id === d);
2055
- p >= 0 && g.value.splice(p, 1);
2056
- }, re = (d) => {
2057
2051
  const p = x.value.findIndex((M) => M.id === d.id);
2058
2052
  p >= 0 ? x.value[p] = d : x.value.push(d);
2059
- }, Ee = (d) => {
2053
+ }, Y = (d) => {
2060
2054
  const p = x.value.findIndex((M) => M.id === d);
2061
2055
  p >= 0 && x.value.splice(p, 1);
2056
+ }, re = (d) => {
2057
+ const p = w.value.findIndex((M) => M.id === d.id);
2058
+ p >= 0 ? w.value[p] = d : w.value.push(d);
2059
+ }, Ee = (d) => {
2060
+ const p = w.value.findIndex((M) => M.id === d);
2061
+ p >= 0 && w.value.splice(p, 1);
2062
2062
  }, He = (d, p, M) => {
2063
- const _ = x.value.find((V) => V.id === d), N = x.value.find((V) => V.id === p);
2064
- if (!_ || !N)
2063
+ const P = w.value.find((B) => B.id === d), N = w.value.find((B) => B.id === p);
2064
+ if (!P || !N)
2065
2065
  return console.warn("Cannot create connection: handle not found"), null;
2066
2066
  const S = {
2067
2067
  id: `connection-${d}-${p}`,
2068
2068
  from: {
2069
- barId: _.barId,
2070
- side: _.side
2069
+ barId: P.barId,
2070
+ side: P.side
2071
2071
  },
2072
2072
  to: {
2073
2073
  barId: N.barId,
@@ -2076,23 +2076,23 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
2076
2076
  style: M?.style,
2077
2077
  label: M?.label
2078
2078
  };
2079
- return C.value.push(S), S;
2080
- }, P = (d) => {
2081
- const p = C.value.findIndex((M) => M.id === d);
2082
- return p >= 0 ? (C.value.splice(p, 1), !0) : !1;
2083
- }, F = (d) => C.value.filter((p) => p.from.barId === d || p.to.barId === d), q = (d) => x.value.filter((p) => p.barId === d), ee = (d) => {
2079
+ return E.value.push(S), S;
2080
+ }, _ = (d) => {
2081
+ const p = E.value.findIndex((M) => M.id === d);
2082
+ return p >= 0 ? (E.value.splice(p, 1), !0) : !1;
2083
+ }, F = (d) => E.value.filter((p) => p.from.barId === d || p.to.barId === d), q = (d) => w.value.filter((p) => p.barId === d), ee = (d) => {
2084
2084
  if (n.value[d].sortable === !1) return;
2085
2085
  let p;
2086
- w.value.column === d && w.value.direction === "asc" ? p = "desc" : p = "asc", w.value.column = d, w.value.direction = p;
2086
+ h.value.column === d && h.value.direction === "asc" ? p = "desc" : p = "asc", h.value.column = d, h.value.direction = p;
2087
2087
  }, le = (d, p, M) => {
2088
- const _ = M.filterType || "text", N = p.value;
2089
- if (!N && _ !== "dateRange" && _ !== "checkbox") return !0;
2090
- switch (_) {
2088
+ const P = M.filterType || "text", N = p.value;
2089
+ if (!N && P !== "dateRange" && P !== "checkbox") return !0;
2090
+ switch (P) {
2091
2091
  case "text":
2092
2092
  return (typeof d == "object" && d !== null ? Object.values(d).join(" ") : String(d || "")).toLowerCase().includes(String(N).toLowerCase());
2093
2093
  case "number": {
2094
- const S = Number(d), V = Number(N);
2095
- return !isNaN(S) && !isNaN(V) && S === V;
2094
+ const S = Number(d), B = Number(N);
2095
+ return !isNaN(S) && !isNaN(B) && S === B;
2096
2096
  }
2097
2097
  case "select":
2098
2098
  return d === N;
@@ -2105,24 +2105,24 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
2105
2105
  S = new Date(se, W.getMonth(), W.getDate());
2106
2106
  } else
2107
2107
  S = new Date(String(d));
2108
- const V = new Date(String(N));
2109
- return S.toDateString() === V.toDateString();
2108
+ const B = new Date(String(N));
2109
+ return S.toDateString() === B.toDateString();
2110
2110
  }
2111
2111
  case "dateRange": {
2112
- const S = p.startValue, V = p.endValue;
2113
- if (!S && !V) return !0;
2112
+ const S = p.startValue, B = p.endValue;
2113
+ if (!S && !B) return !0;
2114
2114
  let W;
2115
2115
  if (typeof d == "number") {
2116
2116
  const se = new Date(d), tt = (/* @__PURE__ */ new Date()).getFullYear();
2117
2117
  W = new Date(tt, se.getMonth(), se.getDate());
2118
2118
  } else
2119
2119
  W = new Date(String(d));
2120
- return !(S && W < new Date(String(S)) || V && W > new Date(String(V)));
2120
+ return !(S && W < new Date(String(S)) || B && W > new Date(String(B)));
2121
2121
  }
2122
2122
  default:
2123
2123
  return !0;
2124
2124
  }
2125
- }, ne = (d, p) => {
2125
+ }, oe = (d, p) => {
2126
2126
  !p.value && !p.startValue && !p.endValue ? delete f.value[d] : f.value[d] = p;
2127
2127
  }, ie = (d) => {
2128
2128
  delete f.value[d];
@@ -2131,61 +2131,61 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
2131
2131
  for (const N of n.value)
2132
2132
  M[N.name] = "";
2133
2133
  d && Object.assign(M, d);
2134
- let _;
2135
- return p === "start" ? (_ = 0, s.value.unshift(M)) : p === "end" ? (_ = s.value.length, s.value.push(M)) : (_ = Math.max(0, Math.min(p, s.value.length)), s.value.splice(_, 0, M)), _;
2134
+ let P;
2135
+ return p === "start" ? (P = 0, s.value.unshift(M)) : p === "end" ? (P = s.value.length, s.value.push(M)) : (P = Math.max(0, Math.min(p, s.value.length)), s.value.splice(P, 0, M)), P;
2136
2136
  };
2137
2137
  return {
2138
2138
  // state
2139
2139
  columns: n,
2140
2140
  config: r,
2141
- connectionHandles: x,
2142
- connectionPaths: C,
2141
+ connectionHandles: w,
2142
+ connectionPaths: E,
2143
2143
  display: u,
2144
2144
  filterState: f,
2145
- ganttBars: g,
2145
+ ganttBars: x,
2146
2146
  modal: c,
2147
2147
  rows: s,
2148
- sortState: w,
2148
+ sortState: h,
2149
2149
  table: l,
2150
2150
  updates: v,
2151
2151
  // getters
2152
- filteredRows: B,
2152
+ filteredRows: V,
2153
2153
  hasPinnedColumns: m,
2154
2154
  isGanttView: I,
2155
2155
  isTreeView: k,
2156
- isDependencyGraphEnabled: E,
2156
+ isDependencyGraphEnabled: C,
2157
2157
  numberedRowWidth: D,
2158
- zeroColumn: $,
2158
+ zeroColumn: T,
2159
2159
  // actions
2160
2160
  addRow: ce,
2161
2161
  clearFilter: ie,
2162
2162
  closeModal: L,
2163
2163
  createConnection: He,
2164
- deleteConnection: P,
2164
+ deleteConnection: _,
2165
2165
  deleteRow: (d) => {
2166
2166
  if (d < 0 || d >= s.value.length)
2167
2167
  return null;
2168
2168
  const [p] = s.value.splice(d, 1);
2169
2169
  delete a.value[d], delete i.value[d];
2170
- const M = {}, _ = {};
2170
+ const M = {}, P = {};
2171
2171
  for (const [N, S] of Object.entries(a.value)) {
2172
- const V = parseInt(N);
2173
- V > d ? M[V - 1] = S : M[V] = S;
2172
+ const B = parseInt(N);
2173
+ B > d ? M[B - 1] = S : M[B] = S;
2174
2174
  }
2175
2175
  for (const [N, S] of Object.entries(i.value)) {
2176
- const V = parseInt(N);
2177
- V > d ? _[V - 1] = S : _[V] = S;
2176
+ const B = parseInt(N);
2177
+ B > d ? P[B - 1] = S : P[B] = S;
2178
2178
  }
2179
- return a.value = M, i.value = _, p;
2179
+ return a.value = M, i.value = P, p;
2180
2180
  },
2181
2181
  duplicateRow: (d) => {
2182
2182
  if (d < 0 || d >= s.value.length)
2183
2183
  return -1;
2184
- const p = s.value[d], M = JSON.parse(JSON.stringify(p)), _ = d + 1;
2185
- return s.value.splice(_, 0, M), _;
2184
+ const p = s.value[d], M = JSON.parse(JSON.stringify(p)), P = d + 1;
2185
+ return s.value.splice(P, 0, M), P;
2186
2186
  },
2187
2187
  getCellData: U,
2188
- getCellDisplayValue: je,
2188
+ getCellDisplayValue: Je,
2189
2189
  getConnectionsForBar: F,
2190
2190
  getFormattedValue: Ne,
2191
2191
  getHandlesForBar: q,
@@ -2207,31 +2207,31 @@ const Jo = { class: "gantt-connection-overlay" }, Qo = {
2207
2207
  return !1;
2208
2208
  const [M] = s.value.splice(d, 1);
2209
2209
  s.value.splice(p, 0, M);
2210
- const _ = {}, N = {};
2211
- for (const [S, V] of Object.entries(a.value)) {
2210
+ const P = {}, N = {};
2211
+ for (const [S, B] of Object.entries(a.value)) {
2212
2212
  const W = parseInt(S);
2213
2213
  let se = W;
2214
- W === d ? se = p : d < p ? W > d && W <= p && (se = W - 1) : W >= p && W < d && (se = W + 1), _[se] = V;
2214
+ W === d ? se = p : d < p ? W > d && W <= p && (se = W - 1) : W >= p && W < d && (se = W + 1), P[se] = B;
2215
2215
  }
2216
- for (const [S, V] of Object.entries(i.value)) {
2216
+ for (const [S, B] of Object.entries(i.value)) {
2217
2217
  const W = parseInt(S);
2218
2218
  let se = W;
2219
- W === d ? se = p : d < p ? W > d && W <= p && (se = W - 1) : W >= p && W < d && (se = W + 1), N[se] = V;
2219
+ W === d ? se = p : d < p ? W > d && W <= p && (se = W - 1) : W >= p && W < d && (se = W + 1), N[se] = B;
2220
2220
  }
2221
- return a.value = _, i.value = N, !0;
2221
+ return a.value = P, i.value = N, !0;
2222
2222
  },
2223
2223
  registerConnectionHandle: re,
2224
2224
  registerGanttBar: K,
2225
2225
  resizeColumn: fe,
2226
2226
  setCellData: me,
2227
- setCellText: Q,
2228
- setFilter: ne,
2227
+ setCellText: j,
2228
+ setFilter: oe,
2229
2229
  sortByColumn: ee,
2230
2230
  toggleRowExpand: Xe,
2231
2231
  unregisterConnectionHandle: Ee,
2232
2232
  unregisterGanttBar: Y,
2233
2233
  updateGanttBar: G,
2234
- updateRows: J
2234
+ updateRows: Q
2235
2235
  };
2236
2236
  })();
2237
2237
  };
@@ -2244,7 +2244,7 @@ function yl(e) {
2244
2244
  const bl = {
2245
2245
  class: "atable-container",
2246
2246
  style: { position: "relative" }
2247
- }, xl = /* @__PURE__ */ te({
2247
+ }, xl = /* @__PURE__ */ ne({
2248
2248
  __name: "ATable",
2249
2249
  props: /* @__PURE__ */ xe({
2250
2250
  id: { default: "" },
@@ -2259,52 +2259,52 @@ const bl = {
2259
2259
  emits: /* @__PURE__ */ xe(["cellUpdate", "gantt:drag", "connection:event", "columns:update", "row:add", "row:delete", "row:duplicate", "row:insert-above", "row:insert-below", "row:move"], ["update:rows", "update:columns"]),
2260
2260
  setup(e, { expose: t, emit: o }) {
2261
2261
  const n = Me(e, "rows"), s = Me(e, "columns"), r = o, a = ve("table"), i = s.value?.length ? s.value : yl(e.schema ?? []), l = wl({ columns: i, rows: n.value, id: e.id, config: e.config });
2262
- l.$onAction(({ name: w, store: f, args: m, after: I }) => {
2263
- if (w === "setCellData" || w === "setCellText") {
2264
- const [k, E, D] = m, $ = f.getCellData(k, E);
2262
+ l.$onAction(({ name: h, store: f, args: m, after: I }) => {
2263
+ if (h === "setCellData" || h === "setCellText") {
2264
+ const [k, C, D] = m, T = f.getCellData(k, C);
2265
2265
  I(() => {
2266
- n.value = [...f.rows], r("cellUpdate", { colIndex: k, rowIndex: E, newValue: D, oldValue: $ });
2266
+ n.value = [...f.rows], r("cellUpdate", { colIndex: k, rowIndex: C, newValue: D, oldValue: T });
2267
2267
  });
2268
- } else if (w === "updateGanttBar") {
2268
+ } else if (h === "updateGanttBar") {
2269
2269
  const [k] = m;
2270
- let E = !1;
2271
- k.type === "resize" ? E = k.oldColspan !== k.newColspan : k.type === "bar" && (E = k.oldStart !== k.newStart || k.oldEnd !== k.newEnd), E && I(() => {
2270
+ let C = !1;
2271
+ k.type === "resize" ? C = k.oldColspan !== k.newColspan : k.type === "bar" && (C = k.oldStart !== k.newStart || k.oldEnd !== k.newEnd), C && I(() => {
2272
2272
  r("gantt:drag", k);
2273
2273
  });
2274
- } else w === "resizeColumn" && I(() => {
2274
+ } else h === "resizeColumn" && I(() => {
2275
2275
  s.value = [...f.columns], r("columns:update", [...f.columns]);
2276
2276
  });
2277
- }), oe(
2277
+ }), te(
2278
2278
  () => n.value,
2279
- (w) => {
2280
- JSON.stringify(w) !== JSON.stringify(l.rows) && (l.rows = [...w]);
2279
+ (h) => {
2280
+ JSON.stringify(h) !== JSON.stringify(l.rows) && (l.rows = [...h]);
2281
2281
  },
2282
2282
  { deep: !0 }
2283
- ), oe(
2283
+ ), te(
2284
2284
  s,
2285
- (w) => {
2286
- JSON.stringify(w) !== JSON.stringify(l.columns) && (l.columns = [...w], r("columns:update", [...w]));
2285
+ (h) => {
2286
+ JSON.stringify(h) !== JSON.stringify(l.columns) && (l.columns = [...h], r("columns:update", [...h]));
2287
2287
  },
2288
2288
  { deep: !0 }
2289
- ), Te(() => {
2290
- s.value?.some((w) => w.pinned) && (c(), l.isTreeView && pn(a, c, { childList: !0, subtree: !0 }));
2289
+ ), $e(() => {
2290
+ s.value?.some((h) => h.pinned) && (c(), l.isTreeView && pn(a, c, { childList: !0, subtree: !0 }));
2291
2291
  });
2292
- const u = A(() => l.columns.filter((w) => w.pinned).length), c = () => {
2293
- const w = a.value, f = w?.rows[0], m = w?.rows[1], I = f ? Array.from(f.cells) : [];
2294
- for (const [k, E] of I.entries()) {
2292
+ const u = A(() => l.columns.filter((h) => h.pinned).length), c = () => {
2293
+ const h = a.value, f = h?.rows[0], m = h?.rows[1], I = f ? Array.from(f.cells) : [];
2294
+ for (const [k, C] of I.entries()) {
2295
2295
  const D = m?.cells[k];
2296
- D && (E.style.width = `${D.offsetWidth}px`);
2296
+ D && (C.style.width = `${D.offsetWidth}px`);
2297
2297
  }
2298
- for (const k of w?.rows || []) {
2299
- let E = 0;
2298
+ for (const k of h?.rows || []) {
2299
+ let C = 0;
2300
2300
  const D = [];
2301
- for (const $ of k.cells)
2302
- ($.classList.contains("sticky-column") || $.classList.contains("sticky-index")) && ($.style.left = `${E}px`, E += $.offsetWidth, D.push($));
2301
+ for (const T of k.cells)
2302
+ (T.classList.contains("sticky-column") || T.classList.contains("sticky-index")) && (T.style.left = `${C}px`, C += T.offsetWidth, D.push(T));
2303
2303
  D.length > 0 && D[D.length - 1].classList.add("sticky-column-edge");
2304
2304
  }
2305
2305
  };
2306
- window.addEventListener("keydown", (w) => {
2307
- if (w.key === "Escape" && l.modal.visible) {
2306
+ window.addEventListener("keydown", (h) => {
2307
+ if (h.key === "Escape" && l.modal.visible) {
2308
2308
  l.modal.visible = !1;
2309
2309
  const f = l.modal.parent;
2310
2310
  f && ft().then(() => {
@@ -2312,8 +2312,8 @@ const bl = {
2312
2312
  });
2313
2313
  }
2314
2314
  });
2315
- const v = (w) => {
2316
- if (!w.gantt || u.value === 0)
2315
+ const v = (h) => {
2316
+ if (!h.gantt || u.value === 0)
2317
2317
  return l.columns;
2318
2318
  const f = [];
2319
2319
  for (let m = 0; m < u.value; m++) {
@@ -2323,17 +2323,17 @@ const bl = {
2323
2323
  return f.push({
2324
2324
  ...l.columns[u.value],
2325
2325
  isGantt: !0,
2326
- colspan: w.gantt?.colspan || l.columns.length - u.value,
2326
+ colspan: h.gantt?.colspan || l.columns.length - u.value,
2327
2327
  originalIndex: u.value,
2328
2328
  width: "auto"
2329
2329
  // TODO: refactor to API that can detect when data exists in a cell. Might have be custom and not generalizable
2330
2330
  }), f;
2331
- }, g = (w) => {
2332
- r("connection:event", { type: "create", connection: w });
2333
- }, x = (w) => {
2334
- r("connection:event", { type: "delete", connection: w });
2335
- }, C = (w, f) => {
2336
- switch (w) {
2331
+ }, x = (h) => {
2332
+ r("connection:event", { type: "create", connection: h });
2333
+ }, w = (h) => {
2334
+ r("connection:event", { type: "delete", connection: h });
2335
+ }, E = (h, f) => {
2336
+ switch (h) {
2337
2337
  case "add": {
2338
2338
  const m = l.addRow({}, f + 1), I = l.rows[m];
2339
2339
  n.value = [...l.rows], r("row:add", { rowIndex: m, row: I });
@@ -2381,34 +2381,34 @@ const bl = {
2381
2381
  insertRowAbove: l.insertRowAbove,
2382
2382
  insertRowBelow: l.insertRowBelow,
2383
2383
  moveRow: l.moveRow
2384
- }), (w, f) => (h(), b("div", bl, [
2385
- j((h(), b("table", {
2384
+ }), (h, f) => (g(), b("div", bl, [
2385
+ J((g(), b("table", {
2386
2386
  ref: "table",
2387
2387
  class: "atable",
2388
2388
  style: Ie({
2389
2389
  width: H(l).config.fullWidth ? "100%" : "auto"
2390
2390
  })
2391
2391
  }, [
2392
- ge(w.$slots, "header", { data: H(l) }, () => [
2393
- $t(hn, {
2392
+ ge(h.$slots, "header", { data: H(l) }, () => [
2393
+ Tt(hn, {
2394
2394
  columns: H(l).columns,
2395
2395
  store: H(l)
2396
2396
  }, null, 8, ["columns", "store"])
2397
2397
  ], !0),
2398
2398
  y("tbody", null, [
2399
- ge(w.$slots, "body", { data: H(l) }, () => [
2400
- (h(!0), b(X, null, de(H(l).filteredRows, (m, I) => (h(), pe(mn, {
2399
+ ge(h.$slots, "body", { data: H(l) }, () => [
2400
+ (g(!0), b(X, null, de(H(l).filteredRows, (m, I) => (g(), pe(mn, {
2401
2401
  key: `${m.originalIndex}-${I}`,
2402
2402
  row: m,
2403
2403
  "row-index": m.originalIndex,
2404
2404
  store: H(l),
2405
- "onRow:action": C
2405
+ "onRow:action": E
2406
2406
  }, {
2407
- default: Tt(() => [
2408
- (h(!0), b(X, null, de(v(m), (k, E) => (h(), b(X, {
2407
+ default: $t(() => [
2408
+ (g(!0), b(X, null, de(v(m), (k, C) => (g(), b(X, {
2409
2409
  key: k.name
2410
2410
  }, [
2411
- k.isGantt ? (h(), pe(Fe(k.ganttComponent || "AGanttCell"), {
2411
+ k.isGantt ? (g(), pe(Fe(k.ganttComponent || "AGanttCell"), {
2412
2412
  key: 0,
2413
2413
  store: H(l),
2414
2414
  "columns-count": H(l).columns.length - u.value,
@@ -2418,19 +2418,19 @@ const bl = {
2418
2418
  colspan: k.colspan,
2419
2419
  pinned: k.pinned,
2420
2420
  "row-index": m.originalIndex,
2421
- "col-index": k.originalIndex ?? E,
2421
+ "col-index": k.originalIndex ?? C,
2422
2422
  style: Ie({
2423
2423
  textAlign: k?.align || "center",
2424
2424
  minWidth: k?.width || "40ch",
2425
2425
  width: H(l).config.fullWidth ? "auto" : null
2426
2426
  }),
2427
- "onConnection:create": g
2428
- }, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "row-index", "col-index", "style"])) : (h(), pe(Fe(k.cellComponent || "ACell"), {
2427
+ "onConnection:create": x
2428
+ }, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "row-index", "col-index", "style"])) : (g(), pe(Fe(k.cellComponent || "ACell"), {
2429
2429
  key: 1,
2430
2430
  store: H(l),
2431
2431
  pinned: k.pinned,
2432
2432
  "row-index": m.originalIndex,
2433
- "col-index": E,
2433
+ "col-index": C,
2434
2434
  style: Ie({
2435
2435
  textAlign: k?.align || "center",
2436
2436
  width: H(l).config.fullWidth ? "auto" : null
@@ -2443,11 +2443,11 @@ const bl = {
2443
2443
  }, 1032, ["row", "row-index", "store"]))), 128))
2444
2444
  ], !0)
2445
2445
  ]),
2446
- ge(w.$slots, "footer", { data: H(l) }, void 0, !0),
2447
- ge(w.$slots, "modal", { data: H(l) }, () => [
2448
- j($t(gn, { store: H(l) }, {
2449
- default: Tt(() => [
2450
- (h(), pe(Fe(H(l).modal.component), dt({
2446
+ ge(h.$slots, "footer", { data: H(l) }, void 0, !0),
2447
+ ge(h.$slots, "modal", { data: H(l) }, () => [
2448
+ J(Tt(gn, { store: H(l) }, {
2449
+ default: $t(() => [
2450
+ (g(), pe(Fe(H(l).modal.component), dt({
2451
2451
  key: `${H(l).modal.rowIndex}:${H(l).modal.colIndex}`,
2452
2452
  "col-index": H(l).modal.colIndex,
2453
2453
  "row-index": H(l).modal.rowIndex,
@@ -2456,42 +2456,42 @@ const bl = {
2456
2456
  ]),
2457
2457
  _: 1
2458
2458
  }, 8, ["store"]), [
2459
- [$e, H(l).modal.visible]
2459
+ [Te, H(l).modal.visible]
2460
2460
  ])
2461
2461
  ], !0)
2462
2462
  ], 4)), [
2463
2463
  [H(Yo), H(l).closeModal]
2464
2464
  ]),
2465
- H(l).isGanttView && H(l).isDependencyGraphEnabled ? (h(), pe(ol, {
2465
+ H(l).isGanttView && H(l).isDependencyGraphEnabled ? (g(), pe(ol, {
2466
2466
  key: 0,
2467
2467
  store: H(l),
2468
- "onConnection:delete": x
2468
+ "onConnection:delete": w
2469
2469
  }, null, 8, ["store"])) : z("", !0)
2470
2470
  ]));
2471
2471
  }
2472
- }), kl = /* @__PURE__ */ _e(xl, [["__scopeId", "data-v-423f43d7"]]), Il = {}, Ml = { class: "aloading" }, Cl = { class: "aloading-header" };
2472
+ }), kl = /* @__PURE__ */ Be(xl, [["__scopeId", "data-v-423f43d7"]]), Il = {}, Ml = { class: "aloading" }, Cl = { class: "aloading-header" };
2473
2473
  function El(e, t) {
2474
- return h(), b("div", Ml, [
2474
+ return g(), b("div", Ml, [
2475
2475
  y("h2", Cl, [
2476
2476
  ge(e.$slots, "default", {}, void 0, !0)
2477
2477
  ]),
2478
2478
  t[0] || (t[0] = y("div", { class: "aloading-bar" }, null, -1))
2479
2479
  ]);
2480
2480
  }
2481
- const $l = /* @__PURE__ */ _e(Il, [["render", El], ["__scopeId", "data-v-a930a25b"]]), Tl = {}, Al = { class: "aloading" }, Dl = { class: "aloading-header" };
2481
+ const Tl = /* @__PURE__ */ Be(Il, [["render", El], ["__scopeId", "data-v-a930a25b"]]), $l = {}, Al = { class: "aloading" }, Dl = { class: "aloading-header" };
2482
2482
  function Sl(e, t) {
2483
- return h(), b("div", Al, [
2483
+ return g(), b("div", Al, [
2484
2484
  y("h2", Dl, [
2485
2485
  ge(e.$slots, "default", {}, void 0, !0)
2486
2486
  ]),
2487
2487
  t[0] || (t[0] = y("div", { class: "aloading-bar" }, null, -1))
2488
2488
  ]);
2489
2489
  }
2490
- const Rl = /* @__PURE__ */ _e(Tl, [["render", Sl], ["__scopeId", "data-v-e1165876"]]);
2490
+ const Rl = /* @__PURE__ */ Be($l, [["render", Sl], ["__scopeId", "data-v-e1165876"]]);
2491
2491
  function Ll(e) {
2492
- e.component("ACell", wo), e.component("AExpansionRow", Io), e.component("AGanttCell", Do), e.component("ARow", mn), e.component("ARowActions", it), e.component("ATable", kl), e.component("ATableHeader", hn), e.component("ATableLoading", $l), e.component("ATableLoadingBar", Rl), e.component("ATableModal", gn);
2492
+ e.component("ACell", wo), e.component("AExpansionRow", Io), e.component("AGanttCell", Do), e.component("ARow", mn), e.component("ARowActions", it), e.component("ATable", kl), e.component("ATableHeader", hn), e.component("ATableLoading", Tl), e.component("ATableLoadingBar", Rl), e.component("ATableModal", gn);
2493
2493
  }
2494
- const Hl = { class: "aform_form-element" }, Vl = { class: "aform_field-label" }, _l = { class: "aform_display-value" }, Bl = ["for"], Pl = { class: "aform_checkbox-container aform_input-field" }, Fl = ["id", "disabled", "required"], Ol = ["innerHTML"], Zl = /* @__PURE__ */ te({
2494
+ const Hl = { class: "aform_form-element" }, Vl = { class: "aform_field-label" }, Bl = { class: "aform_display-value" }, Pl = ["for"], _l = { class: "aform_checkbox-container aform_input-field" }, Fl = ["id", "disabled", "required"], Ol = ["innerHTML"], Zl = /* @__PURE__ */ ne({
2495
2495
  __name: "ACheckbox",
2496
2496
  props: /* @__PURE__ */ xe({
2497
2497
  schema: {},
@@ -2508,17 +2508,17 @@ const Hl = { class: "aform_form-element" }, Vl = { class: "aform_field-label" },
2508
2508
  emits: ["update:modelValue"],
2509
2509
  setup(e) {
2510
2510
  const t = Me(e, "modelValue");
2511
- return (o, n) => (h(), b("div", Hl, [
2512
- e.mode === "display" ? (h(), b(X, { key: 0 }, [
2511
+ return (o, n) => (g(), b("div", Hl, [
2512
+ e.mode === "display" ? (g(), b(X, { key: 0 }, [
2513
2513
  y("label", Vl, Z(e.label), 1),
2514
- y("span", _l, Z(t.value ? "✓" : "✗"), 1)
2515
- ], 64)) : (h(), b(X, { key: 1 }, [
2514
+ y("span", Bl, Z(t.value ? "✓" : "✗"), 1)
2515
+ ], 64)) : (g(), b(X, { key: 1 }, [
2516
2516
  y("label", {
2517
2517
  class: "aform_field-label",
2518
2518
  for: e.uuid
2519
- }, Z(e.label), 9, Bl),
2520
- y("span", Pl, [
2521
- j(y("input", {
2519
+ }, Z(e.label), 9, Pl),
2520
+ y("span", _l, [
2521
+ J(y("input", {
2522
2522
  id: e.uuid,
2523
2523
  "onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s),
2524
2524
  type: "checkbox",
@@ -2526,14 +2526,14 @@ const Hl = { class: "aform_form-element" }, Vl = { class: "aform_field-label" },
2526
2526
  disabled: e.mode === "read",
2527
2527
  required: e.required
2528
2528
  }, null, 8, Fl), [
2529
- [rn, t.value]
2529
+ [un, t.value]
2530
2530
  ])
2531
2531
  ]),
2532
- j(y("p", {
2532
+ J(y("p", {
2533
2533
  class: "aform_error",
2534
2534
  innerHTML: e.validation.errorMessage
2535
2535
  }, null, 8, Ol), [
2536
- [$e, e.validation.errorMessage]
2536
+ [Te, e.validation.errorMessage]
2537
2537
  ])
2538
2538
  ], 64))
2539
2539
  ]));
@@ -2543,7 +2543,7 @@ const Hl = { class: "aform_form-element" }, Vl = { class: "aform_field-label" },
2543
2543
  for (const [n, s] of t)
2544
2544
  o[n] = s;
2545
2545
  return o;
2546
- }, Nl = /* @__PURE__ */ Ce(Zl, [["__scopeId", "data-v-cc185b72"]]), Ul = /* @__PURE__ */ te({
2546
+ }, Nl = /* @__PURE__ */ Ce(Zl, [["__scopeId", "data-v-cc185b72"]]), Ul = /* @__PURE__ */ ne({
2547
2547
  __name: "AComboBox",
2548
2548
  props: {
2549
2549
  schema: {},
@@ -2560,12 +2560,12 @@ const Hl = { class: "aform_form-element" }, Vl = { class: "aform_field-label" },
2560
2560
  setup(e) {
2561
2561
  return (t, o) => {
2562
2562
  const n = Dn("ATableModal");
2563
- return h(), pe(n, {
2563
+ return g(), pe(n, {
2564
2564
  event: e.event,
2565
2565
  "cell-data": e.cellData,
2566
2566
  class: "amodal"
2567
2567
  }, {
2568
- default: Tt(() => [...o[0] || (o[0] = [
2568
+ default: $t(() => [...o[0] || (o[0] = [
2569
2569
  y("div", null, [
2570
2570
  y("input", { type: "text" }),
2571
2571
  y("input", { type: "text" }),
@@ -2576,7 +2576,7 @@ const Hl = { class: "aform_form-element" }, Vl = { class: "aform_field-label" },
2576
2576
  }, 8, ["event", "cell-data"]);
2577
2577
  };
2578
2578
  }
2579
- }), Wl = { class: "aform_display-value" }, Gl = ["id", "disabled", "required"], ql = ["for"], zl = ["innerHTML"], Yl = /* @__PURE__ */ te({
2579
+ }), Wl = { class: "aform_display-value" }, Gl = ["id", "disabled", "required"], ql = ["for"], zl = ["innerHTML"], Yl = /* @__PURE__ */ ne({
2580
2580
  __name: "ADate",
2581
2581
  props: /* @__PURE__ */ xe({
2582
2582
  schema: {},
@@ -2600,12 +2600,12 @@ const Hl = { class: "aform_form-element" }, Vl = { class: "aform_field-label" },
2600
2600
  }), o = ve("date"), n = () => {
2601
2601
  o.value && "showPicker" in HTMLInputElement.prototype && o.value.showPicker();
2602
2602
  };
2603
- return (s, r) => (h(), b("div", null, [
2604
- e.mode === "display" ? (h(), b(X, { key: 0 }, [
2603
+ return (s, r) => (g(), b("div", null, [
2604
+ e.mode === "display" ? (g(), b(X, { key: 0 }, [
2605
2605
  y("span", Wl, Z(t.value ? new Date(t.value).toLocaleDateString() : ""), 1),
2606
2606
  y("label", null, Z(e.label), 1)
2607
- ], 64)) : (h(), b(X, { key: 1 }, [
2608
- j(y("input", {
2607
+ ], 64)) : (g(), b(X, { key: 1 }, [
2608
+ J(y("input", {
2609
2609
  id: e.uuid,
2610
2610
  ref: "date",
2611
2611
  "onUpdate:modelValue": r[0] || (r[0] = (a) => t.value = a),
@@ -2617,10 +2617,10 @@ const Hl = { class: "aform_form-element" }, Vl = { class: "aform_field-label" },
2617
2617
  [be, t.value]
2618
2618
  ]),
2619
2619
  y("label", { for: e.uuid }, Z(e.label), 9, ql),
2620
- j(y("p", {
2620
+ J(y("p", {
2621
2621
  innerHTML: e.validation.errorMessage
2622
2622
  }, null, 8, zl), [
2623
- [$e, e.validation.errorMessage]
2623
+ [Te, e.validation.errorMessage]
2624
2624
  ])
2625
2625
  ], 64))
2626
2626
  ]));
@@ -2630,7 +2630,7 @@ function wn(e, t) {
2630
2630
  return vt() ? (pt(e, t), !0) : !1;
2631
2631
  }
2632
2632
  // @__NO_SIDE_EFFECTS__
2633
- function jt() {
2633
+ function Qt() {
2634
2634
  const e = /* @__PURE__ */ new Set(), t = (r) => {
2635
2635
  e.delete(r);
2636
2636
  };
@@ -2649,21 +2649,21 @@ function jt() {
2649
2649
  }
2650
2650
  const yn = typeof window < "u" && typeof document < "u";
2651
2651
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2652
- const jl = Object.prototype.toString, Jl = (e) => jl.call(e) === "[object Object]", Je = () => {
2653
- }, Ql = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
2652
+ const Jl = Object.prototype.toString, Ql = (e) => Jl.call(e) === "[object Object]", Qe = () => {
2653
+ }, jl = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
2654
2654
  function Kl(...e) {
2655
- if (e.length !== 1) return un(...e);
2655
+ if (e.length !== 1) return cn(...e);
2656
2656
  const t = e[0];
2657
- return typeof t == "function" ? Rt(St(() => ({
2657
+ return typeof t == "function" ? Lt(Rt(() => ({
2658
2658
  get: t,
2659
- set: Je
2659
+ set: Qe
2660
2660
  }))) : R(t);
2661
2661
  }
2662
2662
  function kt(e) {
2663
2663
  return Array.isArray(e) ? e : [e];
2664
2664
  }
2665
2665
  function ea(e, t, o) {
2666
- return oe(e, t, {
2666
+ return te(e, t, {
2667
2667
  ...o,
2668
2668
  immediate: !0
2669
2669
  });
@@ -2671,39 +2671,39 @@ function ea(e, t, o) {
2671
2671
  const bn = yn ? window : void 0, ta = yn ? window.document : void 0;
2672
2672
  function Ue(e) {
2673
2673
  var t;
2674
- const o = T(e);
2674
+ const o = $(e);
2675
2675
  return (t = o?.$el) !== null && t !== void 0 ? t : o;
2676
2676
  }
2677
2677
  function It(...e) {
2678
2678
  const t = (n, s, r, a) => (n.addEventListener(s, r, a), () => n.removeEventListener(s, r, a)), o = A(() => {
2679
- const n = kt(T(e[0])).filter((s) => s != null);
2679
+ const n = kt($(e[0])).filter((s) => s != null);
2680
2680
  return n.every((s) => typeof s != "string") ? n : void 0;
2681
2681
  });
2682
2682
  return ea(() => {
2683
2683
  var n, s;
2684
2684
  return [
2685
2685
  (n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => Ue(r))) !== null && n !== void 0 ? n : [bn].filter((r) => r != null),
2686
- kt(T(o.value ? e[1] : e[0])),
2686
+ kt($(o.value ? e[1] : e[0])),
2687
2687
  kt(H(o.value ? e[2] : e[1])),
2688
- T(o.value ? e[3] : e[2])
2688
+ $(o.value ? e[3] : e[2])
2689
2689
  ];
2690
2690
  }, ([n, s, r, a], i, l) => {
2691
2691
  if (!n?.length || !s?.length || !r?.length) return;
2692
- const u = Jl(a) ? { ...a } : a, c = n.flatMap((v) => s.flatMap((g) => r.map((x) => t(v, g, x, u))));
2692
+ const u = Ql(a) ? { ...a } : a, c = n.flatMap((v) => s.flatMap((x) => r.map((w) => t(v, x, w, u))));
2693
2693
  l(() => {
2694
2694
  c.forEach((v) => v());
2695
2695
  });
2696
2696
  }, { flush: "post" });
2697
2697
  }
2698
- function Jt(e, t, o = {}) {
2698
+ function jt(e, t, o = {}) {
2699
2699
  const { window: n = bn, ignore: s = [], capture: r = !0, detectIframe: a = !1, controls: i = !1 } = o;
2700
2700
  if (!n) return i ? {
2701
- stop: Je,
2702
- cancel: Je,
2703
- trigger: Je
2704
- } : Je;
2701
+ stop: Qe,
2702
+ cancel: Qe,
2703
+ trigger: Qe
2704
+ } : Qe;
2705
2705
  let l = !0;
2706
- const u = (f) => T(s).some((m) => {
2706
+ const u = (f) => $(s).some((m) => {
2707
2707
  if (typeof m == "string") return Array.from(n.document.querySelectorAll(m)).some((I) => I === f.target || f.composedPath().includes(I));
2708
2708
  {
2709
2709
  const I = Ue(m);
@@ -2711,14 +2711,14 @@ function Jt(e, t, o = {}) {
2711
2711
  }
2712
2712
  });
2713
2713
  function c(f) {
2714
- const m = T(f);
2714
+ const m = $(f);
2715
2715
  return m && m.$.subTree.shapeFlag === 16;
2716
2716
  }
2717
2717
  function v(f, m) {
2718
- const I = T(f), k = I.$.subTree && I.$.subTree.children;
2719
- return k == null || !Array.isArray(k) ? !1 : k.some((E) => E.el === m.target || m.composedPath().includes(E.el));
2718
+ const I = $(f), k = I.$.subTree && I.$.subTree.children;
2719
+ return k == null || !Array.isArray(k) ? !1 : k.some((C) => C.el === m.target || m.composedPath().includes(C.el));
2720
2720
  }
2721
- const g = (f) => {
2721
+ const x = (f) => {
2722
2722
  const m = Ue(e);
2723
2723
  if (f.target != null && !(!(m instanceof Element) && c(e) && v(e, f)) && !(!m || m === f.target || f.composedPath().includes(m))) {
2724
2724
  if ("detail" in f && f.detail === 0 && (l = !u(f)), !l) {
@@ -2728,12 +2728,12 @@ function Jt(e, t, o = {}) {
2728
2728
  t(f);
2729
2729
  }
2730
2730
  };
2731
- let x = !1;
2732
- const C = [
2731
+ let w = !1;
2732
+ const E = [
2733
2733
  It(n, "click", (f) => {
2734
- x || (x = !0, setTimeout(() => {
2735
- x = !1;
2736
- }, 0), g(f));
2734
+ w || (w = !0, setTimeout(() => {
2735
+ w = !1;
2736
+ }, 0), x(f));
2737
2737
  }, {
2738
2738
  passive: !0,
2739
2739
  capture: r
@@ -2749,16 +2749,16 @@ function Jt(e, t, o = {}) {
2749
2749
  ((m = n.document.activeElement) === null || m === void 0 ? void 0 : m.tagName) === "IFRAME" && !I?.contains(n.document.activeElement) && t(f);
2750
2750
  }, 0);
2751
2751
  }, { passive: !0 })
2752
- ].filter(Boolean), w = () => C.forEach((f) => f());
2752
+ ].filter(Boolean), h = () => E.forEach((f) => f());
2753
2753
  return i ? {
2754
- stop: w,
2754
+ stop: h,
2755
2755
  cancel: () => {
2756
2756
  l = !1;
2757
2757
  },
2758
2758
  trigger: (f) => {
2759
- l = !0, g(f), l = !1;
2759
+ l = !0, x(f), l = !1;
2760
2760
  }
2761
- } : w;
2761
+ } : h;
2762
2762
  }
2763
2763
  const na = {
2764
2764
  multiple: !0,
@@ -2774,33 +2774,33 @@ function oa(e) {
2774
2774
  return t.files;
2775
2775
  }
2776
2776
  function la(e = {}) {
2777
- const { document: t = ta } = e, o = R(oa(e.initialFiles)), { on: n, trigger: s } = /* @__PURE__ */ jt(), { on: r, trigger: a } = /* @__PURE__ */ jt(), i = A(() => {
2777
+ const { document: t = ta } = e, o = R(oa(e.initialFiles)), { on: n, trigger: s } = /* @__PURE__ */ Qt(), { on: r, trigger: a } = /* @__PURE__ */ Qt(), i = A(() => {
2778
2778
  var v;
2779
- const g = (v = Ue(e.input)) !== null && v !== void 0 ? v : t ? t.createElement("input") : void 0;
2780
- return g && (g.type = "file", g.onchange = (x) => {
2781
- o.value = x.target.files, s(o.value);
2782
- }, g.oncancel = () => {
2779
+ const x = (v = Ue(e.input)) !== null && v !== void 0 ? v : t ? t.createElement("input") : void 0;
2780
+ return x && (x.type = "file", x.onchange = (w) => {
2781
+ o.value = w.target.files, s(o.value);
2782
+ }, x.oncancel = () => {
2783
2783
  a();
2784
- }), g;
2784
+ }), x;
2785
2785
  }), l = () => {
2786
2786
  o.value = null, i.value && i.value.value && (i.value.value = "", s(null));
2787
2787
  }, u = (v) => {
2788
- const g = i.value;
2789
- g && (g.multiple = T(v.multiple), g.accept = T(v.accept), g.webkitdirectory = T(v.directory), Ql(v, "capture") && (g.capture = T(v.capture)));
2788
+ const x = i.value;
2789
+ x && (x.multiple = $(v.multiple), x.accept = $(v.accept), x.webkitdirectory = $(v.directory), jl(v, "capture") && (x.capture = $(v.capture)));
2790
2790
  }, c = (v) => {
2791
- const g = i.value;
2792
- if (!g) return;
2793
- const x = {
2791
+ const x = i.value;
2792
+ if (!x) return;
2793
+ const w = {
2794
2794
  ...na,
2795
2795
  ...e,
2796
2796
  ...v
2797
2797
  };
2798
- u(x), T(x.reset) && l(), g.click();
2798
+ u(w), $(w.reset) && l(), x.click();
2799
2799
  };
2800
2800
  return ht(() => {
2801
2801
  u(e);
2802
2802
  }), {
2803
- files: Rt(o),
2803
+ files: Lt(o),
2804
2804
  open: c,
2805
2805
  reset: l,
2806
2806
  onCancel: r,
@@ -2814,8 +2814,8 @@ const Ct = /* @__PURE__ */ new WeakMap();
2814
2814
  function aa(e, t = !1) {
2815
2815
  const o = ue(t);
2816
2816
  let n = "";
2817
- oe(Kl(e), (a) => {
2818
- const i = Mt(T(a));
2817
+ te(Kl(e), (a) => {
2818
+ const i = Mt($(a));
2819
2819
  if (i) {
2820
2820
  const l = i;
2821
2821
  if (Ct.get(l) || Ct.set(l, l.style.overflow), l.style.overflow !== "hidden" && (n = l.style.overflow), l.style.overflow === "hidden") return o.value = !0;
@@ -2823,10 +2823,10 @@ function aa(e, t = !1) {
2823
2823
  }
2824
2824
  }, { immediate: !0 });
2825
2825
  const s = () => {
2826
- const a = Mt(T(e));
2826
+ const a = Mt($(e));
2827
2827
  !a || o.value || (a.style.overflow = "hidden", o.value = !0);
2828
2828
  }, r = () => {
2829
- const a = Mt(T(e));
2829
+ const a = Mt($(e));
2830
2830
  !a || !o.value || (a.style.overflow = n, Ct.delete(a), o.value = !1);
2831
2831
  };
2832
2832
  return wn(r), A({
@@ -2842,10 +2842,10 @@ const Et = /* @__PURE__ */ new WeakMap(), xn = {
2842
2842
  mounted(e, t) {
2843
2843
  const o = !t.modifiers.bubble;
2844
2844
  let n;
2845
- if (typeof t.value == "function") n = Jt(e, t.value, { capture: o });
2845
+ if (typeof t.value == "function") n = jt(e, t.value, { capture: o });
2846
2846
  else {
2847
2847
  const [s, r] = t.value;
2848
- n = Jt(e, s, Object.assign({ capture: o }, r));
2848
+ n = jt(e, s, Object.assign({ capture: o }, r));
2849
2849
  }
2850
2850
  Et.set(e, n);
2851
2851
  },
@@ -2861,7 +2861,7 @@ function sa() {
2861
2861
  if (t.value = n.value, e) return;
2862
2862
  e = !0;
2863
2863
  const s = aa(o, n.value);
2864
- oe(t, (r) => s.value = r);
2864
+ te(t, (r) => s.value = r);
2865
2865
  };
2866
2866
  }
2867
2867
  sa();
@@ -2874,7 +2874,7 @@ const ra = {
2874
2874
  }, fa = {
2875
2875
  key: 0,
2876
2876
  class: "loading autocomplete-result"
2877
- }, va = ["onClick"], pa = /* @__PURE__ */ te({
2877
+ }, va = ["onClick"], pa = /* @__PURE__ */ ne({
2878
2878
  __name: "ADropdown",
2879
2879
  props: /* @__PURE__ */ xe({
2880
2880
  schema: {},
@@ -2893,7 +2893,7 @@ const ra = {
2893
2893
  }),
2894
2894
  emits: ["update:modelValue"],
2895
2895
  setup(e) {
2896
- const t = Me(e, "modelValue"), o = R(t.value ?? ""), n = sn({
2896
+ const t = Me(e, "modelValue"), o = R(t.value ?? ""), n = rn({
2897
2897
  activeItemIndex: null,
2898
2898
  open: !1,
2899
2899
  loading: !1,
@@ -2902,8 +2902,8 @@ const ra = {
2902
2902
  if (n.open = !0, n.activeItemIndex = null, e.filterFunction) {
2903
2903
  e.isAsync && (n.loading = !0);
2904
2904
  try {
2905
- const x = await e.filterFunction(t.value || "");
2906
- n.results = x || [];
2905
+ const w = await e.filterFunction(t.value || "");
2906
+ n.results = w || [];
2907
2907
  } catch {
2908
2908
  n.results = [];
2909
2909
  } finally {
@@ -2911,46 +2911,46 @@ const ra = {
2911
2911
  }
2912
2912
  } else
2913
2913
  u();
2914
- }, a = (x) => {
2915
- t.value = x, o.value = x, l(x);
2914
+ }, a = (w) => {
2915
+ t.value = w, o.value = w, l(w);
2916
2916
  }, i = () => {
2917
- const x = e.options?.indexOf(t.value ?? "") ?? -1;
2918
- n.activeItemIndex = e.isAsync ? null : x >= 0 ? x : null, n.open = !0, n.results = e.isAsync ? [] : e.options;
2919
- }, l = (x) => {
2920
- n.activeItemIndex = null, n.open = !1, e.options?.includes(x || t.value || "") || (t.value = o.value);
2917
+ const w = e.options?.indexOf(t.value ?? "") ?? -1;
2918
+ n.activeItemIndex = e.isAsync ? null : w >= 0 ? w : null, n.open = !0, n.results = e.isAsync ? [] : e.options;
2919
+ }, l = (w) => {
2920
+ n.activeItemIndex = null, n.open = !1, e.options?.includes(w || t.value || "") || (t.value = o.value);
2921
2921
  }, u = () => {
2922
- t.value ? n.results = e.options?.filter((x) => x.toLowerCase().includes((t.value ?? "").toLowerCase())) : n.results = e.options;
2922
+ t.value ? n.results = e.options?.filter((w) => w.toLowerCase().includes((t.value ?? "").toLowerCase())) : n.results = e.options;
2923
2923
  }, c = () => {
2924
- const x = n.results?.length || 0;
2924
+ const w = n.results?.length || 0;
2925
2925
  if (n.activeItemIndex != null) {
2926
- const C = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2927
- n.activeItemIndex = (C + 1) % x;
2926
+ const E = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2927
+ n.activeItemIndex = (E + 1) % w;
2928
2928
  } else
2929
2929
  n.activeItemIndex = 0;
2930
2930
  }, v = () => {
2931
- const x = n.results?.length || 0;
2931
+ const w = n.results?.length || 0;
2932
2932
  if (n.activeItemIndex != null) {
2933
- const C = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2934
- C === 0 ? n.activeItemIndex = null : n.activeItemIndex = C - 1;
2933
+ const E = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2934
+ E === 0 ? n.activeItemIndex = null : n.activeItemIndex = E - 1;
2935
2935
  } else
2936
- n.activeItemIndex = x - 1;
2937
- }, g = () => {
2936
+ n.activeItemIndex = w - 1;
2937
+ }, x = () => {
2938
2938
  if (n.results) {
2939
- const x = n.activeItemIndex || 0, C = n.results[x];
2940
- a(C);
2939
+ const w = n.activeItemIndex || 0, E = n.results[w];
2940
+ a(E);
2941
2941
  }
2942
2942
  n.activeItemIndex = 0;
2943
2943
  };
2944
- return (x, C) => e.mode === "display" ? (h(), b("div", ra, [
2944
+ return (w, E) => e.mode === "display" ? (g(), b("div", ra, [
2945
2945
  y("span", ia, Z(t.value ?? ""), 1),
2946
2946
  y("label", null, Z(e.label), 1)
2947
- ])) : j((h(), b("div", {
2947
+ ])) : J((g(), b("div", {
2948
2948
  key: 1,
2949
2949
  class: ae(["autocomplete", { isOpen: n.open }])
2950
2950
  }, [
2951
2951
  y("div", ua, [
2952
- j(y("input", {
2953
- "onUpdate:modelValue": C[0] || (C[0] = (w) => t.value = w),
2952
+ J(y("input", {
2953
+ "onUpdate:modelValue": E[0] || (E[0] = (h) => t.value = h),
2954
2954
  type: "text",
2955
2955
  disabled: e.mode === "read",
2956
2956
  onInput: r,
@@ -2958,21 +2958,21 @@ const ra = {
2958
2958
  onKeydown: [
2959
2959
  ye(c, ["down"]),
2960
2960
  ye(v, ["up"]),
2961
- ye(g, ["enter"]),
2961
+ ye(x, ["enter"]),
2962
2962
  ye(s, ["esc"]),
2963
2963
  ye(s, ["tab"])
2964
2964
  ]
2965
2965
  }, null, 40, ca), [
2966
2966
  [be, t.value]
2967
2967
  ]),
2968
- j(y("ul", da, [
2969
- n.loading ? (h(), b("li", fa, "Loading results...")) : (h(!0), b(X, { key: 1 }, de(n.results, (w, f) => (h(), b("li", {
2970
- key: w,
2968
+ J(y("ul", da, [
2969
+ n.loading ? (g(), b("li", fa, "Loading results...")) : (g(!0), b(X, { key: 1 }, de(n.results, (h, f) => (g(), b("li", {
2970
+ key: h,
2971
2971
  class: ae(["autocomplete-result", { "is-active": f === n.activeItemIndex }]),
2972
- onClick: he((m) => a(w), ["stop"])
2973
- }, Z(w), 11, va))), 128))
2972
+ onClick: he((m) => a(h), ["stop"])
2973
+ }, Z(h), 11, va))), 128))
2974
2974
  ], 512), [
2975
- [$e, n.open]
2975
+ [Te, n.open]
2976
2976
  ]),
2977
2977
  y("label", null, Z(e.label), 1)
2978
2978
  ])
@@ -2992,7 +2992,7 @@ function ut(e) {
2992
2992
  return Array.isArray(e) ? e : [e];
2993
2993
  }
2994
2994
  function xa(e, t, o) {
2995
- return oe(e, t, {
2995
+ return te(e, t, {
2996
2996
  ...o,
2997
2997
  immediate: !0
2998
2998
  });
@@ -3000,25 +3000,25 @@ function xa(e, t, o) {
3000
3000
  const ze = ha ? window : void 0;
3001
3001
  function Ge(e) {
3002
3002
  var t;
3003
- const o = T(e);
3003
+ const o = $(e);
3004
3004
  return (t = o?.$el) !== null && t !== void 0 ? t : o;
3005
3005
  }
3006
3006
  function Ke(...e) {
3007
3007
  const t = (n, s, r, a) => (n.addEventListener(s, r, a), () => n.removeEventListener(s, r, a)), o = A(() => {
3008
- const n = ut(T(e[0])).filter((s) => s != null);
3008
+ const n = ut($(e[0])).filter((s) => s != null);
3009
3009
  return n.every((s) => typeof s != "string") ? n : void 0;
3010
3010
  });
3011
3011
  return xa(() => {
3012
3012
  var n, s;
3013
3013
  return [
3014
3014
  (n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => Ge(r))) !== null && n !== void 0 ? n : [ze].filter((r) => r != null),
3015
- ut(T(o.value ? e[1] : e[0])),
3015
+ ut($(o.value ? e[1] : e[0])),
3016
3016
  ut(H(o.value ? e[2] : e[1])),
3017
- T(o.value ? e[3] : e[2])
3017
+ $(o.value ? e[3] : e[2])
3018
3018
  ];
3019
3019
  }, ([n, s, r, a], i, l) => {
3020
3020
  if (!n?.length || !s?.length || !r?.length) return;
3021
- const u = ya(a) ? { ...a } : a, c = n.flatMap((v) => s.flatMap((g) => r.map((x) => t(v, g, x, u))));
3021
+ const u = ya(a) ? { ...a } : a, c = n.flatMap((v) => s.flatMap((x) => r.map((w) => t(v, x, w, u))));
3022
3022
  l(() => {
3023
3023
  c.forEach((v) => v());
3024
3024
  });
@@ -3027,7 +3027,7 @@ function Ke(...e) {
3027
3027
  // @__NO_SIDE_EFFECTS__
3028
3028
  function ka() {
3029
3029
  const e = ue(!1), t = mt();
3030
- return t && Te(() => {
3030
+ return t && $e(() => {
3031
3031
  e.value = !0;
3032
3032
  }, t), e;
3033
3033
  }
@@ -3041,11 +3041,11 @@ function Ma(e, t, o = {}) {
3041
3041
  let r;
3042
3042
  const a = /* @__PURE__ */ Ia(() => n && "MutationObserver" in n), i = () => {
3043
3043
  r && (r.disconnect(), r = void 0);
3044
- }, l = oe(A(() => {
3045
- const v = ut(T(e)).map(Ge).filter(ga);
3044
+ }, l = te(A(() => {
3045
+ const v = ut($(e)).map(Ge).filter(ga);
3046
3046
  return new Set(v);
3047
3047
  }), (v) => {
3048
- i(), a.value && v.size && (r = new MutationObserver(t), v.forEach((g) => r.observe(g, s)));
3048
+ i(), a.value && v.size && (r = new MutationObserver(t), v.forEach((x) => r.observe(x, s)));
3049
3049
  }, {
3050
3050
  immediate: !0,
3051
3051
  flush: "post"
@@ -3067,8 +3067,8 @@ function Ca(e, t, o = {}) {
3067
3067
  }, l = ht(() => {
3068
3068
  const c = Ge(e);
3069
3069
  if (c) {
3070
- const { stop: v } = Ma(s, (g) => {
3071
- g.map((x) => [...x.removedNodes]).flat().some((x) => x === c || x.contains(c)) && t(g);
3070
+ const { stop: v } = Ma(s, (x) => {
3071
+ x.map((w) => [...w.removedNodes]).flat().some((w) => w === c || w.contains(c)) && t(x);
3072
3072
  }, {
3073
3073
  window: n,
3074
3074
  childList: !0,
@@ -3103,12 +3103,12 @@ function Ea(e = {}) {
3103
3103
  }
3104
3104
  return s && Ca(i, l, { document: r }), l(), i;
3105
3105
  }
3106
- const $a = "focusin", Ta = "focusout", Aa = ":focus-within";
3106
+ const Ta = "focusin", $a = "focusout", Aa = ":focus-within";
3107
3107
  function Da(e, t = {}) {
3108
3108
  const { window: o = ze } = t, n = A(() => Ge(e)), s = ue(!1), r = A(() => s.value);
3109
3109
  if (!o || !(/* @__PURE__ */ Ea(t)).value) return { focused: r };
3110
3110
  const a = { passive: !0 };
3111
- return Ke(n, $a, () => s.value = !0, a), Ke(n, Ta, () => {
3111
+ return Ke(n, Ta, () => s.value = !0, a), Ke(n, $a, () => {
3112
3112
  var i, l, u;
3113
3113
  return s.value = (i = (l = n.value) === null || l === void 0 || (u = l.matches) === null || u === void 0 ? void 0 : u.call(l, Aa)) !== null && i !== void 0 ? i : !1;
3114
3114
  }, a), { focused: r };
@@ -3124,7 +3124,7 @@ function Sa(e, { window: t = ze, scrollTarget: o } = {}) {
3124
3124
  n.value = i.top <= (t.innerHeight || r.documentElement.clientHeight) && i.left <= (t.innerWidth || r.documentElement.clientWidth) && i.bottom >= 0 && i.right >= 0;
3125
3125
  }
3126
3126
  };
3127
- return oe(
3127
+ return te(
3128
3128
  () => Ge(e),
3129
3129
  () => s(),
3130
3130
  { immediate: !0, flush: "post" }
@@ -3136,10 +3136,10 @@ function Sa(e, { window: t = ze, scrollTarget: o } = {}) {
3136
3136
  const Se = (e) => {
3137
3137
  let t = Sa(e).value;
3138
3138
  return t = t && e.offsetHeight > 0, t;
3139
- }, Re = (e) => e.tabIndex >= 0, Qt = (e) => {
3139
+ }, Re = (e) => e.tabIndex >= 0, Kt = (e) => {
3140
3140
  const t = e.target;
3141
- return Ft(t);
3142
- }, Ft = (e) => {
3141
+ return Ot(t);
3142
+ }, Ot = (e) => {
3143
3143
  let t;
3144
3144
  if (e instanceof HTMLTableCellElement) {
3145
3145
  const o = e.parentElement?.previousElementSibling;
@@ -3151,7 +3151,7 @@ const Se = (e) => {
3151
3151
  const o = e.previousElementSibling;
3152
3152
  o && (t = o);
3153
3153
  }
3154
- return t && (!Re(t) || !Se(t)) ? Ft(t) : t;
3154
+ return t && (!Re(t) || !Se(t)) ? Ot(t) : t;
3155
3155
  }, Ra = (e) => {
3156
3156
  const t = e.target;
3157
3157
  let o;
@@ -3168,11 +3168,11 @@ const Se = (e) => {
3168
3168
  s && (o = s);
3169
3169
  }
3170
3170
  }
3171
- return o && (!Re(o) || !Se(o)) ? Ot(o) : o;
3172
- }, Kt = (e) => {
3171
+ return o && (!Re(o) || !Se(o)) ? Zt(o) : o;
3172
+ }, en = (e) => {
3173
3173
  const t = e.target;
3174
- return Ot(t);
3175
- }, Ot = (e) => {
3174
+ return Zt(t);
3175
+ }, Zt = (e) => {
3176
3176
  let t;
3177
3177
  if (e instanceof HTMLTableCellElement) {
3178
3178
  const o = e.parentElement?.nextElementSibling;
@@ -3184,7 +3184,7 @@ const Se = (e) => {
3184
3184
  const o = e.nextElementSibling;
3185
3185
  o && (t = o);
3186
3186
  }
3187
- return t && (!Re(t) || !Se(t)) ? Ot(t) : t;
3187
+ return t && (!Re(t) || !Se(t)) ? Zt(t) : t;
3188
3188
  }, La = (e) => {
3189
3189
  const t = e.target;
3190
3190
  let o;
@@ -3201,25 +3201,25 @@ const Se = (e) => {
3201
3201
  s && (o = s);
3202
3202
  }
3203
3203
  }
3204
- return o && (!Re(o) || !Se(o)) ? Ft(o) : o;
3205
- }, en = (e) => {
3206
- const t = e.target;
3207
- return Zt(t);
3208
- }, Zt = (e) => {
3209
- let t;
3210
- return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!Re(t) || !Se(t)) ? Zt(t) : t;
3204
+ return o && (!Re(o) || !Se(o)) ? Ot(o) : o;
3211
3205
  }, tn = (e) => {
3212
3206
  const t = e.target;
3213
3207
  return Nt(t);
3214
3208
  }, Nt = (e) => {
3215
3209
  let t;
3216
- return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!Re(t) || !Se(t)) ? Nt(t) : t;
3210
+ return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!Re(t) || !Se(t)) ? Nt(t) : t;
3217
3211
  }, nn = (e) => {
3218
- const t = e.target.parentElement?.firstElementChild;
3219
- return t && (!Re(t) || !Se(t)) ? Nt(t) : t;
3212
+ const t = e.target;
3213
+ return Ut(t);
3214
+ }, Ut = (e) => {
3215
+ let t;
3216
+ return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!Re(t) || !Se(t)) ? Ut(t) : t;
3220
3217
  }, on = (e) => {
3218
+ const t = e.target.parentElement?.firstElementChild;
3219
+ return t && (!Re(t) || !Se(t)) ? Ut(t) : t;
3220
+ }, ln = (e) => {
3221
3221
  const t = e.target.parentElement?.lastElementChild;
3222
- return t && (!Re(t) || !Se(t)) ? Zt(t) : t;
3222
+ return t && (!Re(t) || !Se(t)) ? Nt(t) : t;
3223
3223
  }, at = ["alt", "control", "shift", "meta"], Ha = {
3224
3224
  ArrowUp: "up",
3225
3225
  ArrowDown: "down",
@@ -3227,19 +3227,19 @@ const Se = (e) => {
3227
3227
  ArrowRight: "right"
3228
3228
  }, In = {
3229
3229
  "keydown.up": (e) => {
3230
- const t = Qt(e);
3230
+ const t = Kt(e);
3231
3231
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3232
3232
  },
3233
3233
  "keydown.down": (e) => {
3234
- const t = Kt(e);
3234
+ const t = en(e);
3235
3235
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3236
3236
  },
3237
3237
  "keydown.left": (e) => {
3238
- const t = en(e);
3238
+ const t = tn(e);
3239
3239
  e.preventDefault(), e.stopPropagation(), t && t.focus();
3240
3240
  },
3241
3241
  "keydown.right": (e) => {
3242
- const t = tn(e);
3242
+ const t = nn(e);
3243
3243
  e.preventDefault(), e.stopPropagation(), t && t.focus();
3244
3244
  },
3245
3245
  "keydown.control.up": (e) => {
@@ -3251,41 +3251,41 @@ const Se = (e) => {
3251
3251
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3252
3252
  },
3253
3253
  "keydown.control.left": (e) => {
3254
- const t = nn(e);
3254
+ const t = on(e);
3255
3255
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3256
3256
  },
3257
3257
  "keydown.control.right": (e) => {
3258
- const t = on(e);
3258
+ const t = ln(e);
3259
3259
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3260
3260
  },
3261
3261
  "keydown.end": (e) => {
3262
- const t = on(e);
3262
+ const t = ln(e);
3263
3263
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3264
3264
  },
3265
3265
  "keydown.enter": (e) => {
3266
3266
  if (e.target instanceof HTMLTableCellElement) {
3267
3267
  e.preventDefault(), e.stopPropagation();
3268
- const t = Kt(e);
3268
+ const t = en(e);
3269
3269
  t && t.focus();
3270
3270
  }
3271
3271
  },
3272
3272
  "keydown.shift.enter": (e) => {
3273
3273
  if (e.target instanceof HTMLTableCellElement) {
3274
3274
  e.preventDefault(), e.stopPropagation();
3275
- const t = Qt(e);
3275
+ const t = Kt(e);
3276
3276
  t && t.focus();
3277
3277
  }
3278
3278
  },
3279
3279
  "keydown.home": (e) => {
3280
- const t = nn(e);
3280
+ const t = on(e);
3281
3281
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3282
3282
  },
3283
3283
  "keydown.tab": (e) => {
3284
- const t = tn(e);
3284
+ const t = nn(e);
3285
3285
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3286
3286
  },
3287
3287
  "keydown.shift.tab": (e) => {
3288
- const t = en(e);
3288
+ const t = tn(e);
3289
3289
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3290
3290
  }
3291
3291
  };
@@ -3319,41 +3319,41 @@ function Va(e) {
3319
3319
  if (at.includes(l)) return;
3320
3320
  const u = a.handlers || In;
3321
3321
  for (const c of Object.keys(u)) {
3322
- const [v, ...g] = c.split(".");
3323
- if (v === "keydown" && g.includes(l)) {
3324
- const x = u[c], C = g.filter((f) => at.includes(f)), w = at.some((f) => {
3322
+ const [v, ...x] = c.split(".");
3323
+ if (v === "keydown" && x.includes(l)) {
3324
+ const w = u[c], E = x.filter((f) => at.includes(f)), h = at.some((f) => {
3325
3325
  const m = f.charAt(0).toUpperCase() + f.slice(1);
3326
3326
  return i.getModifierState(m);
3327
3327
  });
3328
- if (C.length > 0) {
3329
- if (w) {
3328
+ if (E.length > 0) {
3329
+ if (h) {
3330
3330
  for (const f of at)
3331
- if (g.includes(f)) {
3331
+ if (x.includes(f)) {
3332
3332
  const m = f.charAt(0).toUpperCase() + f.slice(1);
3333
- i.getModifierState(m) && x(i);
3333
+ i.getModifierState(m) && w(i);
3334
3334
  }
3335
3335
  }
3336
3336
  } else
3337
- w || x(i);
3337
+ h || w(i);
3338
3338
  }
3339
3339
  }
3340
3340
  }, r = [];
3341
- Te(() => {
3341
+ $e(() => {
3342
3342
  for (const a of e) {
3343
3343
  const i = t(a), l = n(a), u = s(a), c = i ? [i] : l;
3344
3344
  for (const v of c) {
3345
- const { focused: g } = Da(R(v)), x = oe(g, (C) => {
3346
- C ? v.addEventListener("keydown", u) : v.removeEventListener("keydown", u);
3345
+ const { focused: x } = Da(R(v)), w = te(x, (E) => {
3346
+ E ? v.addEventListener("keydown", u) : v.removeEventListener("keydown", u);
3347
3347
  });
3348
- r.push(x);
3348
+ r.push(w);
3349
3349
  }
3350
3350
  }
3351
- }), an(() => {
3351
+ }), sn(() => {
3352
3352
  for (const a of r)
3353
3353
  a();
3354
3354
  });
3355
3355
  }
3356
- const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3356
+ const Ba = { class: "aform_display-value" }, Pa = { key: 0 }, _a = {
3357
3357
  key: 1,
3358
3358
  ref: "datepicker",
3359
3359
  class: "adatepicker",
@@ -3361,7 +3361,7 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3361
3361
  }, Fa = {
3362
3362
  colspan: "5",
3363
3363
  tabindex: -1
3364
- }, Oa = ["onClick", "onKeydown"], Za = 6, ln = 7, Na = /* @__PURE__ */ te({
3364
+ }, Oa = ["onClick", "onKeydown"], Za = 6, an = 7, Na = /* @__PURE__ */ ne({
3365
3365
  __name: "ADatePicker",
3366
3366
  props: /* @__PURE__ */ xe({
3367
3367
  schema: {},
@@ -3378,32 +3378,32 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3378
3378
  emits: ["update:modelValue"],
3379
3379
  setup(e, { expose: t }) {
3380
3380
  const o = Me(e, "modelValue"), n = R(new Date(o.value)), s = R(n.value.getMonth()), r = R(n.value.getFullYear()), a = R([]), i = ve("datepicker");
3381
- Te(async () => {
3381
+ $e(async () => {
3382
3382
  l(), await ft();
3383
3383
  const k = document.getElementsByClassName("selectedDate");
3384
3384
  if (k.length > 0)
3385
3385
  k[0].focus();
3386
3386
  else {
3387
- const E = document.getElementsByClassName("todaysDate");
3388
- E.length > 0 && E[0].focus();
3387
+ const C = document.getElementsByClassName("todaysDate");
3388
+ C.length > 0 && C[0].focus();
3389
3389
  }
3390
3390
  });
3391
3391
  const l = () => {
3392
3392
  a.value = [];
3393
- const k = new Date(r.value, s.value, 1), E = k.getDay(), D = k.setDate(k.getDate() - E);
3394
- for (const $ of Array(43).keys())
3395
- a.value.push(D + $ * 864e5);
3393
+ const k = new Date(r.value, s.value, 1), C = k.getDay(), D = k.setDate(k.getDate() - C);
3394
+ for (const T of Array(43).keys())
3395
+ a.value.push(D + T * 864e5);
3396
3396
  };
3397
- oe([s, r], l);
3397
+ te([s, r], l);
3398
3398
  const u = () => r.value -= 1, c = () => r.value += 1, v = () => {
3399
3399
  s.value == 0 ? (s.value = 11, u()) : s.value -= 1;
3400
- }, g = () => {
3400
+ }, x = () => {
3401
3401
  s.value == 11 ? (s.value = 0, c()) : s.value += 1;
3402
- }, x = (k) => {
3403
- const E = /* @__PURE__ */ new Date();
3404
- if (s.value === E.getMonth())
3405
- return E.toDateString() === new Date(k).toDateString();
3406
- }, C = (k) => new Date(k).toDateString() === new Date(n.value).toDateString(), w = (k, E) => (k - 1) * ln + E, f = (k, E) => a.value[w(k, E)], m = (k) => {
3402
+ }, w = (k) => {
3403
+ const C = /* @__PURE__ */ new Date();
3404
+ if (s.value === C.getMonth())
3405
+ return C.toDateString() === new Date(k).toDateString();
3406
+ }, E = (k) => new Date(k).toDateString() === new Date(n.value).toDateString(), h = (k, C) => (k - 1) * an + C, f = (k, C) => a.value[h(k, C)], m = (k) => {
3407
3407
  o.value = n.value = new Date(a.value[k]);
3408
3408
  }, I = A(() => new Date(r.value, s.value, 1).toLocaleDateString(void 0, {
3409
3409
  year: "numeric",
@@ -3417,7 +3417,7 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3417
3417
  ...In,
3418
3418
  "keydown.pageup": v,
3419
3419
  "keydown.shift.pageup": u,
3420
- "keydown.pagedown": g,
3420
+ "keydown.pagedown": x,
3421
3421
  "keydown.shift.pagedown": c,
3422
3422
  // TODO: this is a hack to override the stonecrop enter handler;
3423
3423
  // store context inside the component so that handlers can be setup consistently
@@ -3425,10 +3425,10 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3425
3425
  }
3426
3426
  }
3427
3427
  }
3428
- ]), t({ currentMonth: s, currentYear: r, selectedDate: n }), (k, E) => e.mode === "display" || e.mode === "read" ? (h(), b(X, { key: 0 }, [
3429
- y("span", _a, Z(o.value ? new Date(o.value).toLocaleDateString() : ""), 1),
3430
- e.label ? (h(), b("label", Ba, Z(e.label), 1)) : z("", !0)
3431
- ], 64)) : (h(), b("div", Pa, [
3428
+ ]), t({ currentMonth: s, currentYear: r, selectedDate: n }), (k, C) => e.mode === "display" || e.mode === "read" ? (g(), b(X, { key: 0 }, [
3429
+ y("span", Ba, Z(o.value ? new Date(o.value).toLocaleDateString() : ""), 1),
3430
+ e.label ? (g(), b("label", Pa, Z(e.label), 1)) : z("", !0)
3431
+ ], 64)) : (g(), b("div", _a, [
3432
3432
  y("table", null, [
3433
3433
  y("tbody", null, [
3434
3434
  y("tr", null, [
@@ -3441,10 +3441,10 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3441
3441
  y("td", {
3442
3442
  id: "next-month-btn",
3443
3443
  tabindex: -1,
3444
- onClick: g
3444
+ onClick: x
3445
3445
  }, ">")
3446
3446
  ]),
3447
- E[0] || (E[0] = y("tr", { class: "days-header" }, [
3447
+ C[0] || (C[0] = y("tr", { class: "days-header" }, [
3448
3448
  y("td", null, "M"),
3449
3449
  y("td", null, "T"),
3450
3450
  y("td", null, "W"),
@@ -3453,33 +3453,33 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3453
3453
  y("td", null, "S"),
3454
3454
  y("td", null, "S")
3455
3455
  ], -1)),
3456
- (h(), b(X, null, de(Za, (D) => y("tr", { key: D }, [
3457
- (h(), b(X, null, de(ln, ($) => y("td", {
3456
+ (g(), b(X, null, de(Za, (D) => y("tr", { key: D }, [
3457
+ (g(), b(X, null, de(an, (T) => y("td", {
3458
3458
  ref_for: !0,
3459
3459
  ref: "celldate",
3460
- key: w(D, $),
3460
+ key: h(D, T),
3461
3461
  contenteditable: !1,
3462
3462
  spellcheck: !1,
3463
3463
  tabindex: 0,
3464
3464
  class: ae({
3465
- todaysDate: x(f(D, $)),
3466
- selectedDate: C(f(D, $))
3465
+ todaysDate: w(f(D, T)),
3466
+ selectedDate: E(f(D, T))
3467
3467
  }),
3468
- onClick: he((B) => m(w(D, $)), ["prevent", "stop"]),
3469
- onKeydown: ye((B) => m(w(D, $)), ["enter"])
3470
- }, Z(new Date(f(D, $)).getDate()), 43, Oa)), 64))
3468
+ onClick: he((V) => m(h(D, T)), ["prevent", "stop"]),
3469
+ onKeydown: ye((V) => m(h(D, T)), ["enter"])
3470
+ }, Z(new Date(f(D, T)).getDate()), 43, Oa)), 64))
3471
3471
  ])), 64))
3472
3472
  ])
3473
3473
  ])
3474
3474
  ], 512));
3475
3475
  }
3476
- }), Ua = /* @__PURE__ */ Ce(Na, [["__scopeId", "data-v-9da05d06"]]), Wa = /* @__PURE__ */ te({
3476
+ }), Ua = /* @__PURE__ */ Ce(Na, [["__scopeId", "data-v-9da05d06"]]), Wa = /* @__PURE__ */ ne({
3477
3477
  __name: "CollapseButton",
3478
3478
  props: {
3479
3479
  collapsed: { type: Boolean }
3480
3480
  },
3481
3481
  setup(e) {
3482
- return (t, o) => (h(), b("button", {
3482
+ return (t, o) => (g(), b("button", {
3483
3483
  class: ae(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
3484
3484
  }, "×", 2));
3485
3485
  }
@@ -3489,7 +3489,7 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3489
3489
  }, Ya = {
3490
3490
  key: 0,
3491
3491
  class: "aform-nested-label"
3492
- }, Xa = /* @__PURE__ */ te({
3492
+ }, Xa = /* @__PURE__ */ ne({
3493
3493
  __name: "AForm",
3494
3494
  props: /* @__PURE__ */ xe({
3495
3495
  schema: {},
@@ -3500,69 +3500,73 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3500
3500
  }),
3501
3501
  emits: /* @__PURE__ */ xe(["update:schema", "update:data"], ["update:data"]),
3502
3502
  setup(e, { emit: t }) {
3503
- const o = t, n = Me(e, "data"), s = (g) => "schema" in g && Array.isArray(g.schema) && g.schema.length > 0 && (!("kind" in g) || g.kind !== "table"), r = R({});
3504
- oe(
3503
+ const o = t, n = Me(e, "data"), s = (w) => "schema" in w && Array.isArray(w.schema) && w.schema.length > 0 && (!("kind" in w) || w.kind !== "table"), r = R({});
3504
+ te(
3505
3505
  () => n.value,
3506
- (g) => {
3507
- !e.schema || !g || e.schema.forEach((x) => {
3508
- s(x) && (r.value[x.fieldname] = g[x.fieldname] ?? {});
3506
+ (w) => {
3507
+ !e.schema || !w || e.schema.forEach((E) => {
3508
+ s(E) && (r.value[E.fieldname] = w[E.fieldname] ?? {});
3509
3509
  });
3510
3510
  },
3511
3511
  { immediate: !0 }
3512
3512
  );
3513
- const a = (g, x) => {
3514
- r.value[g] = x, n.value && (n.value[g] = x, o("update:data", { ...n.value }));
3515
- }, i = (g) => {
3516
- const x = {};
3517
- for (const [C, w] of Object.entries(g))
3518
- ["component", "fieldtype", "hidden", "mode"].includes(C) || (x[C] = w);
3519
- if ("columns" in g || "kind" in g && g.kind === "table") {
3520
- const C = g.rows;
3521
- (!C || Array.isArray(C) && C.length === 0) && (x.rows = n.value[g.fieldname] || []);
3513
+ const a = (w, E) => {
3514
+ r.value[w] = E, n.value && (n.value[w] = E, o("update:data", { ...n.value }));
3515
+ }, i = (w) => {
3516
+ const E = {};
3517
+ for (const [h, f] of Object.entries(w))
3518
+ ["component", "fieldtype", "hidden", "mode", "width"].includes(h) || (E[h] = f);
3519
+ if ("columns" in w || "kind" in w && w.kind === "table") {
3520
+ const h = w.rows;
3521
+ (!h || Array.isArray(h) && h.length === 0) && (E.rows = n.value[w.fieldname] || []);
3522
3522
  }
3523
- return x;
3524
- }, l = A(() => e.mode ?? "edit");
3525
- function u(g) {
3526
- const x = g.mode;
3527
- return x || l.value;
3523
+ return E;
3524
+ }, l = (w) => {
3525
+ const E = w.width;
3526
+ return E ? { flexBasis: E, width: E } : {};
3527
+ }, u = A(() => e.mode ?? "edit");
3528
+ function c(w) {
3529
+ const E = w.mode;
3530
+ return E || u.value;
3528
3531
  }
3529
- const c = R([]);
3532
+ const v = R([]);
3530
3533
  ht(() => {
3531
- e.schema && c.value.length !== e.schema.length && (c.value = e.schema.map((g, x) => A({
3534
+ e.schema && v.value.length !== e.schema.length && (v.value = e.schema.map((w, E) => A({
3532
3535
  get() {
3533
- return n.value?.[e.schema[x].fieldname];
3536
+ return n.value?.[e.schema[E].fieldname];
3534
3537
  },
3535
- set: (C) => {
3536
- const w = e.schema[x].fieldname;
3537
- w && n.value && (n.value[w] = C, o("update:data", { ...n.value })), o("update:schema", e.schema);
3538
+ set: (h) => {
3539
+ const f = e.schema[E].fieldname;
3540
+ f && n.value && (n.value[f] = h, o("update:data", { ...n.value })), o("update:schema", e.schema);
3538
3541
  }
3539
3542
  })));
3540
3543
  });
3541
- const v = A(() => c.value);
3542
- return (g, x) => (h(), b("form", qa, [
3543
- (h(!0), b(X, null, de(e.schema, (C, w) => (h(), b(X, { key: w }, [
3544
- s(C) ? (h(), b("div", za, [
3545
- C.label && !("collapsible" in C) ? (h(), b("h4", Ya, Z(C.label), 1)) : z("", !0),
3546
- (h(), pe(Fe(C.component ?? "AForm"), {
3547
- data: r.value[C.fieldname],
3548
- mode: u(C),
3549
- schema: C.schema,
3550
- label: C.label,
3551
- collapsible: C.collapsible,
3552
- "onUpdate:data": (f) => a(C.fieldname, f)
3544
+ const x = A(() => v.value);
3545
+ return (w, E) => (g(), b("form", qa, [
3546
+ (g(!0), b(X, null, de(e.schema, (h, f) => (g(), b(X, { key: f }, [
3547
+ s(h) ? (g(), b("div", za, [
3548
+ h.label && !("collapsible" in h) ? (g(), b("h4", Ya, Z(h.label), 1)) : z("", !0),
3549
+ (g(), pe(Fe(h.component ?? "AForm"), {
3550
+ data: r.value[h.fieldname],
3551
+ mode: c(h),
3552
+ schema: h.schema,
3553
+ label: h.label,
3554
+ collapsible: h.collapsible,
3555
+ "onUpdate:data": (m) => a(h.fieldname, m)
3553
3556
  }, null, 40, ["data", "mode", "schema", "label", "collapsible", "onUpdate:data"]))
3554
- ])) : C.hidden ? z("", !0) : (h(), pe(Fe(C.component), dt({
3557
+ ])) : h.hidden ? z("", !0) : (g(), pe(Fe(h.component), dt({
3555
3558
  key: 1,
3556
- modelValue: v.value[w].value,
3557
- "onUpdate:modelValue": (f) => v.value[w].value = f,
3558
- schema: C,
3559
- data: n.value[C.fieldname],
3560
- mode: u(C)
3561
- }, { ref_for: !0 }, i(C)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "mode"]))
3559
+ modelValue: x.value[f].value,
3560
+ "onUpdate:modelValue": (m) => x.value[f].value = m,
3561
+ style: l(h),
3562
+ schema: h,
3563
+ data: n.value[h.fieldname],
3564
+ mode: c(h)
3565
+ }, { ref_for: !0 }, i(h)), null, 16, ["modelValue", "onUpdate:modelValue", "style", "schema", "data", "mode"]))
3562
3566
  ], 64))), 128))
3563
3567
  ]));
3564
3568
  }
3565
- }), Mn = /* @__PURE__ */ Ce(Xa, [["__scopeId", "data-v-4547f33c"]]), ja = /* @__PURE__ */ te({
3569
+ }), Mn = /* @__PURE__ */ Ce(Xa, [["__scopeId", "data-v-70086a8f"]]), Ja = /* @__PURE__ */ ne({
3566
3570
  __name: "AFieldset",
3567
3571
  props: {
3568
3572
  schema: {},
@@ -3576,31 +3580,31 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3576
3580
  const o = R(!1), n = R(e.data || []), s = R(e.schema), r = (a) => {
3577
3581
  a.preventDefault(), e.collapsible && (o.value = !o.value);
3578
3582
  };
3579
- return t({ collapsed: o }), (a, i) => (h(), b("fieldset", null, [
3580
- e.label || e.collapsible ? (h(), b("legend", {
3583
+ return t({ collapsed: o }), (a, i) => (g(), b("fieldset", null, [
3584
+ e.label || e.collapsible ? (g(), b("legend", {
3581
3585
  key: 0,
3582
3586
  onClick: r,
3583
3587
  onSubmit: r
3584
3588
  }, [
3585
- Dt(Z(e.label) + " ", 1),
3586
- e.collapsible ? (h(), pe(Ga, {
3589
+ St(Z(e.label) + " ", 1),
3590
+ e.collapsible ? (g(), pe(Ga, {
3587
3591
  key: 0,
3588
3592
  collapsed: o.value
3589
3593
  }, null, 8, ["collapsed"])) : z("", !0)
3590
3594
  ], 32)) : z("", !0),
3591
3595
  ge(a.$slots, "default", { collapsed: o.value }, () => [
3592
- j($t(Mn, {
3596
+ J(Tt(Mn, {
3593
3597
  data: n.value,
3594
3598
  "onUpdate:data": i[0] || (i[0] = (l) => n.value = l),
3595
3599
  schema: s.value,
3596
3600
  mode: e.mode
3597
3601
  }, null, 8, ["data", "schema", "mode"]), [
3598
- [$e, !o.value]
3602
+ [Te, !o.value]
3599
3603
  ])
3600
3604
  ], !0)
3601
3605
  ]));
3602
3606
  }
3603
- }), Ja = /* @__PURE__ */ Ce(ja, [["__scopeId", "data-v-3cefeba6"]]), Qa = { class: "aform_form-element aform_file-attach aform__grid--full" }, Ka = {
3607
+ }), Qa = /* @__PURE__ */ Ce(Ja, [["__scopeId", "data-v-3cefeba6"]]), ja = { class: "aform_form-element aform_file-attach aform__grid--full" }, Ka = {
3604
3608
  key: 0,
3605
3609
  class: "aform_file-attach-feedback"
3606
3610
  }, es = {
@@ -3609,7 +3613,7 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3609
3613
  }, ts = {
3610
3614
  key: 0,
3611
3615
  class: "aform_file-attach-feedback"
3612
- }, ns = ["disabled"], os = ["disabled"], ls = /* @__PURE__ */ te({
3616
+ }, ns = ["disabled"], os = ["disabled"], ls = /* @__PURE__ */ ne({
3613
3617
  __name: "AFileAttach",
3614
3618
  props: {
3615
3619
  schema: {},
@@ -3625,23 +3629,23 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3625
3629
  const a = t.value?.length ?? 0;
3626
3630
  return `${a} ${a === 1 ? "file" : "files"}`;
3627
3631
  });
3628
- return s((a) => a), (a, i) => (h(), b("div", Qa, [
3629
- e.mode === "display" ? (h(), b(X, { key: 0 }, [
3630
- H(t) ? (h(), b("div", Ka, [
3632
+ return s((a) => a), (a, i) => (g(), b("div", ja, [
3633
+ e.mode === "display" ? (g(), b(X, { key: 0 }, [
3634
+ H(t) ? (g(), b("div", Ka, [
3631
3635
  y("p", null, [
3632
3636
  y("b", null, Z(r.value), 1)
3633
3637
  ]),
3634
- (h(!0), b(X, null, de(H(t), (l) => (h(), b("li", {
3638
+ (g(!0), b(X, null, de(H(t), (l) => (g(), b("li", {
3635
3639
  key: l.name
3636
3640
  }, Z(l.name), 1))), 128))
3637
- ])) : (h(), b("span", es, "No file selected"))
3638
- ], 64)) : (h(), b(X, { key: 1 }, [
3639
- H(t) ? (h(), b("div", ts, [
3641
+ ])) : (g(), b("span", es, "No file selected"))
3642
+ ], 64)) : (g(), b(X, { key: 1 }, [
3643
+ H(t) ? (g(), b("div", ts, [
3640
3644
  y("p", null, [
3641
- i[2] || (i[2] = Dt(" You have selected: ", -1)),
3645
+ i[2] || (i[2] = St(" You have selected: ", -1)),
3642
3646
  y("b", null, Z(r.value), 1)
3643
3647
  ]),
3644
- (h(!0), b(X, null, de(H(t), (l) => (h(), b("li", {
3648
+ (g(!0), b(X, null, de(H(t), (l) => (g(), b("li", {
3645
3649
  key: l.name
3646
3650
  }, Z(l.name), 1))), 128))
3647
3651
  ])) : z("", !0),
@@ -3672,7 +3676,7 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3672
3676
  }, ps = ["onMousedown"], ms = {
3673
3677
  key: 0,
3674
3678
  class: "aform_field-label"
3675
- }, hs = /* @__PURE__ */ te({
3679
+ }, hs = /* @__PURE__ */ ne({
3676
3680
  __name: "AFormLink",
3677
3681
  props: /* @__PURE__ */ xe({
3678
3682
  schema: {},
@@ -3696,58 +3700,71 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3696
3700
  emits: ["update:modelValue"],
3697
3701
  setup(e) {
3698
3702
  const t = Me(e, "modelValue"), o = A(() => {
3699
- const E = t.value?.id;
3700
- return E != null && E !== "";
3701
- }), n = A(() => o.value ? e.formatter ? e.formatter(t.value) : t.value.displayText ?? String(t.value.id) : "—"), s = R(o.value ? n.value : ""), r = R(!1), a = R(!1), i = R([]), l = R(null), u = Sn("aformLinkNavigator", null), c = () => {
3703
+ const C = t.value?.id;
3704
+ return C != null && C !== "";
3705
+ }), n = A(() => o.value ? e.formatter ? e.formatter(t.value) : t.value.displayText ?? String(t.value.id) : "—"), s = R(o.value ? n.value : ""), r = R(!1), a = R(!1), i = R([]), l = R(null), u = Sn("aformLinkNavigator", null);
3706
+ te(
3707
+ () => t.value?.id,
3708
+ async (C) => {
3709
+ if (!(!C || t.value.displayText || !e.filterFunction))
3710
+ try {
3711
+ const V = (await (typeof e.filterFunction == "string" ? At(e.filterFunction) : e.filterFunction)(String(C))).find((U) => String(U.id) === String(C));
3712
+ V?.displayText && (s.value = V.displayText, t.value = { ...t.value, displayText: V.displayText });
3713
+ } catch {
3714
+ }
3715
+ },
3716
+ { immediate: !0 }
3717
+ );
3718
+ const c = () => {
3702
3719
  u && e.doctype && u.navigate(e.doctype, t.value.id);
3703
- }, v = async (E) => {
3720
+ }, v = async (C) => {
3704
3721
  if (!(!e.filterFunction || e.mode === "read")) {
3705
3722
  l.value = null, r.value = !0, e.isAsync && (a.value = !0);
3706
3723
  try {
3707
- const D = typeof e.filterFunction == "string" ? cn(e.filterFunction) : e.filterFunction;
3708
- i.value = await D(E) ?? [];
3724
+ const D = typeof e.filterFunction == "string" ? At(e.filterFunction) : e.filterFunction;
3725
+ i.value = await D(C) ?? [];
3709
3726
  } catch {
3710
3727
  i.value = [];
3711
3728
  } finally {
3712
3729
  a.value = !1;
3713
3730
  }
3714
3731
  }
3715
- }, g = () => {
3716
- r.value = !1, l.value = null, s.value = o.value ? n.value : "";
3717
3732
  }, x = () => {
3718
- r.value && g();
3719
- }, C = () => v(s.value), w = () => v(s.value), f = (E) => {
3720
- t.value = E, s.value = E.displayText ?? String(E.id), r.value = !1, l.value = null;
3733
+ r.value = !1, l.value = null, s.value = o.value ? n.value : "";
3734
+ }, w = () => {
3735
+ r.value && x();
3736
+ }, E = () => v(s.value), h = () => v(s.value), f = (C) => {
3737
+ t.value = C, s.value = C.displayText ?? String(C.id), r.value = !1, l.value = null;
3721
3738
  }, m = () => {
3722
- const E = i.value.length;
3723
- E && (l.value = l.value === null ? 0 : (l.value + 1) % E);
3739
+ const C = i.value.length;
3740
+ C && (l.value = l.value === null ? 0 : (l.value + 1) % C);
3724
3741
  }, I = () => {
3725
3742
  i.value.length && (l.value === null || l.value === 0 ? l.value = null : l.value -= 1);
3726
3743
  }, k = () => {
3727
3744
  l.value !== null && i.value[l.value] && f(i.value[l.value]);
3728
3745
  };
3729
- return (E, D) => (h(), b("div", ss, [
3730
- e.mode === "display" ? (h(), b("span", rs, Z(n.value), 1)) : (h(), b(X, { key: 1 }, [
3731
- j((h(), b("div", is, [
3746
+ return (C, D) => (g(), b("div", ss, [
3747
+ e.mode === "display" ? (g(), b("span", rs, Z(n.value), 1)) : (g(), b(X, { key: 1 }, [
3748
+ J((g(), b("div", is, [
3732
3749
  y("div", us, [
3733
- j(y("input", {
3734
- "onUpdate:modelValue": D[0] || (D[0] = ($) => s.value = $),
3750
+ J(y("input", {
3751
+ "onUpdate:modelValue": D[0] || (D[0] = (T) => s.value = T),
3735
3752
  type: "text",
3736
3753
  class: "aform_input-field",
3737
3754
  disabled: e.disabled || e.mode === "read",
3738
- onInput: w,
3739
- onFocus: C,
3755
+ onInput: h,
3756
+ onFocus: E,
3740
3757
  onKeydown: [
3741
3758
  ye(he(m, ["prevent"]), ["down"]),
3742
3759
  ye(he(I, ["prevent"]), ["up"]),
3743
3760
  ye(he(k, ["prevent"]), ["enter"]),
3744
- ye(g, ["esc"]),
3745
- ye(g, ["tab"])
3761
+ ye(x, ["esc"]),
3762
+ ye(x, ["tab"])
3746
3763
  ]
3747
3764
  }, null, 40, cs), [
3748
3765
  [be, s.value]
3749
3766
  ]),
3750
- o.value && !e.disabled ? (h(), b("button", {
3767
+ o.value && !e.disabled ? (g(), b("button", {
3751
3768
  key: 0,
3752
3769
  type: "button",
3753
3770
  class: "aform_form-btn",
@@ -3757,21 +3774,21 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3757
3774
  y("span", null, Z(e.icon === "chevron-right" ? "›" : "→"), 1)
3758
3775
  ], 40, ds)) : z("", !0)
3759
3776
  ]),
3760
- r.value ? (h(), b("ul", fs, [
3761
- a.value ? (h(), b("li", vs, "Loading…")) : (h(!0), b(X, { key: 1 }, de(i.value, ($, B) => (h(), b("li", {
3762
- key: String($.id),
3763
- class: ae(["autocomplete-result", { "is-active": B === l.value }]),
3764
- onMousedown: he((U) => f($), ["prevent"])
3765
- }, Z($.displayText ?? String($.id)), 43, ps))), 128))
3777
+ r.value ? (g(), b("ul", fs, [
3778
+ a.value ? (g(), b("li", vs, "Loading…")) : (g(!0), b(X, { key: 1 }, de(i.value, (T, V) => (g(), b("li", {
3779
+ key: String(T.id),
3780
+ class: ae(["autocomplete-result", { "is-active": V === l.value }]),
3781
+ onMousedown: he((U) => f(T), ["prevent"])
3782
+ }, Z(T.displayText ?? String(T.id)), 43, ps))), 128))
3766
3783
  ])) : z("", !0)
3767
3784
  ])), [
3768
- [H(xn), x]
3785
+ [H(xn), w]
3769
3786
  ]),
3770
- e.label ? (h(), b("label", ms, Z(e.label), 1)) : z("", !0)
3787
+ e.label ? (g(), b("label", ms, Z(e.label), 1)) : z("", !0)
3771
3788
  ], 64))
3772
3789
  ]));
3773
3790
  }
3774
- }), gs = /* @__PURE__ */ Ce(hs, [["__scopeId", "data-v-77cf5f58"]]), ws = { class: "aform_form-element" }, ys = { class: "aform_display-value" }, bs = { class: "aform_field-label" }, xs = ["id", "disabled", "required"], ks = ["for"], Is = ["innerHTML"], Ms = /* @__PURE__ */ te({
3791
+ }), gs = /* @__PURE__ */ Ce(hs, [["__scopeId", "data-v-8801750a"]]), ws = { class: "aform_form-element" }, ys = { class: "aform_display-value" }, bs = { class: "aform_field-label" }, xs = ["id", "disabled", "required"], ks = ["for"], Is = ["innerHTML"], Ms = /* @__PURE__ */ ne({
3775
3792
  __name: "ANumericInput",
3776
3793
  props: /* @__PURE__ */ xe({
3777
3794
  schema: {},
@@ -3788,12 +3805,12 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3788
3805
  emits: ["update:modelValue"],
3789
3806
  setup(e) {
3790
3807
  const t = Me(e, "modelValue");
3791
- return (o, n) => (h(), b("div", ws, [
3792
- e.mode === "display" ? (h(), b(X, { key: 0 }, [
3808
+ return (o, n) => (g(), b("div", ws, [
3809
+ e.mode === "display" ? (g(), b(X, { key: 0 }, [
3793
3810
  y("span", ys, Z(t.value ?? ""), 1),
3794
3811
  y("label", bs, Z(e.label), 1)
3795
- ], 64)) : (h(), b(X, { key: 1 }, [
3796
- j(y("input", {
3812
+ ], 64)) : (g(), b(X, { key: 1 }, [
3813
+ J(y("input", {
3797
3814
  id: e.uuid,
3798
3815
  "onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s),
3799
3816
  class: "aform_input-field",
@@ -3807,11 +3824,11 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3807
3824
  class: "aform_field-label",
3808
3825
  for: e.uuid
3809
3826
  }, Z(e.label), 9, ks),
3810
- j(y("p", {
3827
+ J(y("p", {
3811
3828
  class: "aform_error",
3812
3829
  innerHTML: e.validation.errorMessage
3813
3830
  }, null, 8, Is), [
3814
- [$e, e.validation.errorMessage]
3831
+ [Te, e.validation.errorMessage]
3815
3832
  ])
3816
3833
  ], 64))
3817
3834
  ]));
@@ -3819,7 +3836,7 @@ const _a = { class: "aform_display-value" }, Ba = { key: 0 }, Pa = {
3819
3836
  });
3820
3837
  function Cs(e) {
3821
3838
  try {
3822
- return cn(e);
3839
+ return At(e);
3823
3840
  } catch {
3824
3841
  return;
3825
3842
  }
@@ -3834,14 +3851,14 @@ function Es(e) {
3834
3851
  }
3835
3852
  return t;
3836
3853
  }
3837
- function $s(e, t) {
3854
+ function Ts(e, t) {
3838
3855
  let o = e;
3839
3856
  const n = [t, "/", "-", "(", ")", " "];
3840
3857
  for (const s of n)
3841
3858
  o = o.replaceAll(s, "");
3842
3859
  return o;
3843
3860
  }
3844
- function Ts(e, t, o) {
3861
+ function $s(e, t, o) {
3845
3862
  let n = t;
3846
3863
  for (const s of e) {
3847
3864
  const r = n.indexOf(o);
@@ -3855,14 +3872,14 @@ function Ts(e, t, o) {
3855
3872
  function As(e, t) {
3856
3873
  const o = Es(t);
3857
3874
  if (!o) return;
3858
- const n = "#", s = e.value, r = $s(s, n);
3875
+ const n = "#", s = e.value, r = Ts(s, n);
3859
3876
  if (r) {
3860
- const a = Ts(r, o, n), i = t.instance;
3877
+ const a = $s(r, o, n), i = t.instance;
3861
3878
  i?.maskFilled && (i.maskFilled = !a.includes(n)), e.value = a;
3862
3879
  } else
3863
3880
  e.value = o;
3864
3881
  }
3865
- const Ds = { class: "aform_form-element" }, Ss = { class: "aform_display-value" }, Rs = { class: "aform_field-label" }, Ls = ["id", "disabled", "maxlength", "required"], Hs = ["for"], Vs = ["innerHTML"], _s = /* @__PURE__ */ te({
3882
+ const Ds = { class: "aform_form-element" }, Ss = { class: "aform_display-value" }, Rs = { class: "aform_field-label" }, Ls = ["id", "disabled", "maxlength", "required"], Hs = ["for"], Vs = ["innerHTML"], Bs = /* @__PURE__ */ ne({
3866
3883
  __name: "ATextInput",
3867
3884
  props: /* @__PURE__ */ xe({
3868
3885
  schema: {},
@@ -3879,12 +3896,12 @@ const Ds = { class: "aform_form-element" }, Ss = { class: "aform_display-value"
3879
3896
  emits: ["update:modelValue"],
3880
3897
  setup(e) {
3881
3898
  const t = R(!0), o = Me(e, "modelValue");
3882
- return (n, s) => (h(), b("div", Ds, [
3883
- e.mode === "display" ? (h(), b(X, { key: 0 }, [
3899
+ return (n, s) => (g(), b("div", Ds, [
3900
+ e.mode === "display" ? (g(), b(X, { key: 0 }, [
3884
3901
  y("span", Ss, Z(o.value ?? ""), 1),
3885
3902
  y("label", Rs, Z(e.label), 1)
3886
- ], 64)) : (h(), b(X, { key: 1 }, [
3887
- j(y("input", {
3903
+ ], 64)) : (g(), b(X, { key: 1 }, [
3904
+ J(y("input", {
3888
3905
  id: e.uuid,
3889
3906
  "onUpdate:modelValue": s[0] || (s[0] = (r) => o.value = r),
3890
3907
  class: "aform_input-field",
@@ -3899,19 +3916,19 @@ const Ds = { class: "aform_form-element" }, Ss = { class: "aform_display-value"
3899
3916
  class: "aform_field-label",
3900
3917
  for: e.uuid
3901
3918
  }, Z(e.label), 9, Hs),
3902
- j(y("p", {
3919
+ J(y("p", {
3903
3920
  class: "aform_error",
3904
3921
  innerHTML: e.validation.errorMessage
3905
3922
  }, null, 8, Vs), [
3906
- [$e, e.validation.errorMessage]
3923
+ [Te, e.validation.errorMessage]
3907
3924
  ])
3908
3925
  ], 64))
3909
3926
  ]));
3910
3927
  }
3911
- }), Bs = { class: "login-container" }, Ps = { class: "account-container" }, Fs = { class: "account-header" }, Os = { id: "account-title" }, Zs = { id: "account-subtitle" }, Ns = { class: "login-form-container" }, Us = { class: "login-form-email aform_form-element" }, Ws = ["disabled"], Gs = { class: "login-form-password aform_form-element" }, qs = ["disabled"], zs = ["disabled"], Ys = {
3928
+ }), Ps = { class: "login-container" }, _s = { class: "account-container" }, Fs = { class: "account-header" }, Os = { id: "account-title" }, Zs = { id: "account-subtitle" }, Ns = { class: "login-form-container" }, Us = { class: "login-form-email aform_form-element" }, Ws = ["disabled"], Gs = { class: "login-form-password aform_form-element" }, qs = ["disabled"], zs = ["disabled"], Ys = {
3912
3929
  key: 0,
3913
3930
  class: "material-symbols-outlined loading-icon"
3914
- }, Xs = /* @__PURE__ */ te({
3931
+ }, Xs = /* @__PURE__ */ ne({
3915
3932
  __name: "Login",
3916
3933
  props: {
3917
3934
  headerTitle: { default: "Login" },
@@ -3927,9 +3944,9 @@ const Ds = { class: "aform_form-element" }, Ss = { class: "aform_display-value"
3927
3944
  }
3928
3945
  r.value = !1, o("loginSuccess");
3929
3946
  }
3930
- return (l, u) => (h(), b("div", Bs, [
3947
+ return (l, u) => (g(), b("div", Ps, [
3931
3948
  y("div", null, [
3932
- y("div", Ps, [
3949
+ y("div", _s, [
3933
3950
  y("div", Fs, [
3934
3951
  y("h1", Os, Z(e.headerTitle), 1),
3935
3952
  y("p", Zs, Z(e.headerSubtitle), 1)
@@ -3942,7 +3959,7 @@ const Ds = { class: "aform_form-element" }, Ss = { class: "aform_display-value"
3942
3959
  for: "email",
3943
3960
  class: "aform_field-label"
3944
3961
  }, "Email", -1)),
3945
- j(y("input", {
3962
+ J(y("input", {
3946
3963
  id: "email",
3947
3964
  "onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c),
3948
3965
  class: "aform_input-field",
@@ -3963,7 +3980,7 @@ const Ds = { class: "aform_form-element" }, Ss = { class: "aform_display-value"
3963
3980
  for: "password",
3964
3981
  class: "aform_field-label"
3965
3982
  }, "Password", -1)),
3966
- j(y("input", {
3983
+ J(y("input", {
3967
3984
  id: "password",
3968
3985
  "onUpdate:modelValue": u[1] || (u[1] = (c) => s.value = c),
3969
3986
  class: "aform_input-field",
@@ -3979,7 +3996,7 @@ const Ds = { class: "aform_form-element" }, Ss = { class: "aform_display-value"
3979
3996
  disabled: r.value || !n.value || !s.value,
3980
3997
  onClick: i
3981
3998
  }, [
3982
- r.value ? (h(), b("span", Ys, "progress_activity")) : z("", !0),
3999
+ r.value ? (g(), b("span", Ys, "progress_activity")) : z("", !0),
3983
4000
  u[4] || (u[4] = y("span", { id: "login-form-button" }, "Login", -1))
3984
4001
  ], 8, zs)
3985
4002
  ])
@@ -3991,9 +4008,9 @@ const Ds = { class: "aform_form-element" }, Ss = { class: "aform_display-value"
3991
4008
  ])
3992
4009
  ]));
3993
4010
  }
3994
- }), Qs = /* @__PURE__ */ Ce(Xs, [["__scopeId", "data-v-d9ffd0a7"]]);
4011
+ }), js = /* @__PURE__ */ Ce(Xs, [["__scopeId", "data-v-d9ffd0a7"]]);
3995
4012
  function Ks(e) {
3996
- e.use(Ll), e.component("ACheckbox", Nl), e.component("AComboBox", Ul), e.component("ADate", Xl), e.component("ADropdown", ma), e.component("ADatePicker", Ua), e.component("AFieldset", Ja), e.component("AFileAttach", as), e.component("AForm", Mn), e.component("AFormLink", gs), e.component("ANumericInput", Ms), e.component("ATextInput", _s);
4013
+ e.use(Ll), e.component("ACheckbox", Nl), e.component("AComboBox", Ul), e.component("ADate", Xl), e.component("ADropdown", ma), e.component("ADatePicker", Ua), e.component("AFieldset", Qa), e.component("AFileAttach", as), e.component("AForm", Mn), e.component("AFormLink", gs), e.component("ANumericInput", Ms), e.component("ATextInput", Bs);
3997
4014
  }
3998
4015
  export {
3999
4016
  Nl as ACheckbox,
@@ -4001,14 +4018,14 @@ export {
4001
4018
  Xl as ADate,
4002
4019
  Ua as ADatePicker,
4003
4020
  ma as ADropdown,
4004
- Ja as AFieldset,
4021
+ Qa as AFieldset,
4005
4022
  as as AFileAttach,
4006
4023
  Mn as AForm,
4007
4024
  gs as AFormLink,
4008
4025
  Ms as ANumericInput,
4009
- _s as ATextInput,
4010
- Qs as Login,
4011
- cn as deserializeFunction,
4026
+ Bs as ATextInput,
4027
+ js as Login,
4028
+ At as deserializeFunction,
4012
4029
  Ks as install
4013
4030
  };
4014
4031
  //# sourceMappingURL=aform.js.map