@stonecrop/aform 0.8.2 → 0.8.4

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,67 +1,67 @@
1
- import { defineComponent as Y, useTemplateRef as ae, ref as S, computed as T, createElementBlock as k, openBlock as w, unref as L, normalizeClass as K, normalizeStyle as fe, createBlock as re, resolveDynamicComponent as Re, mergeProps as at, toDisplayString as j, createElementVNode as y, withDirectives as U, withModifiers as pe, Fragment as oe, renderList as ie, vShow as ge, createCommentVNode as z, renderSlot as ue, createTextVNode as Dt, onMounted as we, watch as Q, onBeforeUnmount as an, nextTick as st, useCssVars as Cn, onUnmounted as Mn, toValue as $, mergeModels as me, useModel as he, createVNode as ot, withCtx as At, shallowRef as ee, getCurrentScope as rt, onScopeDispose as it, reactive as sn, vModelText as de, vModelCheckbox as rn, vModelSelect as En, isRef as An, toRefs as Tn, customRef as $t, getCurrentInstance as ut, watchEffect as Te, toRef as un, readonly as St, resolveComponent as cn, withKeys as $e } from "vue";
1
+ import { defineComponent as te, useTemplateRef as fe, ref as L, computed as $, openBlock as w, createElementBlock as k, unref as V, normalizeClass as ae, normalizeStyle as xe, createBlock as pe, resolveDynamicComponent as We, mergeProps as vt, toDisplayString as K, createElementVNode as y, withModifiers as Ie, withDirectives as J, Fragment as ue, renderList as me, vShow as Ce, createCommentVNode as q, renderSlot as he, createTextVNode as Dt, onMounted as Ee, watch as oe, onBeforeUnmount as sn, nextTick as pt, toValue as E, shallowRef as ie, getCurrentScope as mt, onScopeDispose as ht, reactive as rn, vModelText as we, vModelCheckbox as un, vModelSelect as Cn, getCurrentInstance as gt, watchEffect as Oe, useCssVars as En, onUnmounted as An, useModel as ke, createVNode as dt, withCtx as Tt, mergeModels as Me, isRef as Tn, toRefs as $n, customRef as St, toRef as cn, readonly as Rt, resolveComponent as dn, withKeys as Ne } from "vue";
2
2
  import { defineStore as Dn } from "pinia";
3
- import './assets/index.css';function dn(e, t) {
4
- return rt() ? (it(e, t), !0) : !1;
3
+ import './assets/index.css';function fn(e, t) {
4
+ return mt() ? (ht(e, t), !0) : !1;
5
5
  }
6
- const $n = typeof window < "u" && typeof document < "u";
6
+ const Sn = typeof window < "u" && typeof document < "u";
7
7
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
8
- const Sn = (e) => e != null, Rn = Object.prototype.toString, Ln = (e) => Rn.call(e) === "[object Object]", Hn = () => {
8
+ const Rn = (e) => e != null, Ln = Object.prototype.toString, Hn = (e) => Ln.call(e) === "[object Object]", Vn = () => {
9
9
  };
10
- function Qe(e) {
10
+ function rt(e) {
11
11
  return Array.isArray(e) ? e : [e];
12
12
  }
13
- function _n(e, t, n) {
14
- return Q(e, t, {
13
+ function Pn(e, t, n) {
14
+ return oe(e, t, {
15
15
  ...n,
16
16
  immediate: !0
17
17
  });
18
18
  }
19
- const _e = $n ? window : void 0;
20
- function Le(e) {
19
+ const qe = Sn ? window : void 0;
20
+ function Ge(e) {
21
21
  var t;
22
- const n = $(e);
22
+ const n = E(e);
23
23
  return (t = n?.$el) !== null && t !== void 0 ? t : n;
24
24
  }
25
- function Be(...e) {
26
- const t = (o, a, r, s) => (o.addEventListener(a, r, s), () => o.removeEventListener(a, r, s)), n = T(() => {
27
- const o = Qe($(e[0])).filter((a) => a != null);
25
+ function Ke(...e) {
26
+ const t = (o, a, r, s) => (o.addEventListener(a, r, s), () => o.removeEventListener(a, r, s)), n = $(() => {
27
+ const o = rt(E(e[0])).filter((a) => a != null);
28
28
  return o.every((a) => typeof a != "string") ? o : void 0;
29
29
  });
30
- return _n(() => {
30
+ return Pn(() => {
31
31
  var o, a;
32
32
  return [
33
- (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => Le(r))) !== null && o !== void 0 ? o : [_e].filter((r) => r != null),
34
- Qe($(n.value ? e[1] : e[0])),
35
- Qe(L(n.value ? e[2] : e[1])),
36
- $(n.value ? e[3] : e[2])
33
+ (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => Ge(r))) !== null && o !== void 0 ? o : [qe].filter((r) => r != null),
34
+ rt(E(n.value ? e[1] : e[0])),
35
+ rt(V(n.value ? e[2] : e[1])),
36
+ E(n.value ? e[3] : e[2])
37
37
  ];
38
38
  }, ([o, a, r, s], l, i) => {
39
39
  if (!o?.length || !a?.length || !r?.length) return;
40
- const u = Ln(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
40
+ const u = Hn(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
41
41
  i(() => {
42
42
  c.forEach((p) => p());
43
43
  });
44
44
  }, { flush: "post" });
45
45
  }
46
46
  // @__NO_SIDE_EFFECTS__
47
- function Vn() {
48
- const e = ee(!1), t = ut();
49
- return t && we(() => {
47
+ function On() {
48
+ const e = ie(!1), t = gt();
49
+ return t && Ee(() => {
50
50
  e.value = !0;
51
51
  }, t), e;
52
52
  }
53
53
  // @__NO_SIDE_EFFECTS__
54
- function On(e) {
55
- const t = /* @__PURE__ */ Vn();
56
- return T(() => (t.value, !!e()));
54
+ function _n(e) {
55
+ const t = /* @__PURE__ */ On();
56
+ return $(() => (t.value, !!e()));
57
57
  }
58
- function Pn(e, t, n = {}) {
59
- const { window: o = _e, ...a } = n;
58
+ function Bn(e, t, n = {}) {
59
+ const { window: o = qe, ...a } = n;
60
60
  let r;
61
- const s = /* @__PURE__ */ On(() => o && "MutationObserver" in o), l = () => {
61
+ const s = /* @__PURE__ */ _n(() => o && "MutationObserver" in o), l = () => {
62
62
  r && (r.disconnect(), r = void 0);
63
- }, i = Q(T(() => {
64
- const p = Qe($(e)).map(Le).filter(Sn);
63
+ }, i = oe($(() => {
64
+ const p = rt(E(e)).map(Ge).filter(Rn);
65
65
  return new Set(p);
66
66
  }), (p) => {
67
67
  l(), s.value && p.size && (r = new MutationObserver(t), p.forEach((h) => r.observe(h, a)));
@@ -71,22 +71,22 @@ function Pn(e, t, n = {}) {
71
71
  }), u = () => r?.takeRecords(), c = () => {
72
72
  i(), l();
73
73
  };
74
- return dn(c), {
74
+ return fn(c), {
75
75
  isSupported: s,
76
76
  stop: c,
77
77
  takeRecords: u
78
78
  };
79
79
  }
80
- function Bn(e, t, n = {}) {
81
- const { window: o = _e, document: a = o?.document, flush: r = "sync" } = n;
82
- if (!o || !a) return Hn;
80
+ function Fn(e, t, n = {}) {
81
+ const { window: o = qe, document: a = o?.document, flush: r = "sync" } = n;
82
+ if (!o || !a) return Vn;
83
83
  let s;
84
84
  const l = (c) => {
85
85
  s?.(), s = c;
86
- }, i = Te(() => {
87
- const c = Le(e);
86
+ }, i = Oe(() => {
87
+ const c = Ge(e);
88
88
  if (c) {
89
- const { stop: p } = Pn(a, (h) => {
89
+ const { stop: p } = Bn(a, (h) => {
90
90
  h.map((b) => [...b.removedNodes]).flat().some((b) => b === c || b.contains(c)) && t(h);
91
91
  }, {
92
92
  window: o,
@@ -98,17 +98,17 @@ function Bn(e, t, n = {}) {
98
98
  }, { flush: r }), u = () => {
99
99
  i(), l();
100
100
  };
101
- return dn(u), u;
101
+ return fn(u), u;
102
102
  }
103
103
  // @__NO_SIDE_EFFECTS__
104
- function Fn(e = {}) {
104
+ function Zn(e = {}) {
105
105
  var t;
106
- const { window: n = _e, deep: o = !0, triggerOnRemoval: a = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : n?.document, s = () => {
106
+ const { window: n = qe, deep: o = !0, triggerOnRemoval: a = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : n?.document, s = () => {
107
107
  let u = r?.activeElement;
108
108
  if (o)
109
109
  for (var c; u?.shadowRoot; ) u = u == null || (c = u.shadowRoot) === null || c === void 0 ? void 0 : c.activeElement;
110
110
  return u;
111
- }, l = ee(), i = () => {
111
+ }, l = ie(), i = () => {
112
112
  l.value = s();
113
113
  };
114
114
  if (n) {
@@ -116,26 +116,26 @@ function Fn(e = {}) {
116
116
  capture: !0,
117
117
  passive: !0
118
118
  };
119
- Be(n, "blur", (c) => {
119
+ Ke(n, "blur", (c) => {
120
120
  c.relatedTarget === null && i();
121
- }, u), Be(n, "focus", i, u);
121
+ }, u), Ke(n, "focus", i, u);
122
122
  }
123
- return a && Bn(l, i, { document: r }), i(), l;
123
+ return a && Fn(l, i, { document: r }), i(), l;
124
124
  }
125
- const Zn = "focusin", Nn = "focusout", Wn = ":focus-within";
126
- function zn(e, t = {}) {
127
- const { window: n = _e } = t, o = T(() => Le(e)), a = ee(!1), r = T(() => a.value);
128
- if (!n || !(/* @__PURE__ */ Fn(t)).value) return { focused: r };
125
+ const Nn = "focusin", Un = "focusout", Wn = ":focus-within";
126
+ function Gn(e, t = {}) {
127
+ const { window: n = qe } = t, o = $(() => Ge(e)), a = ie(!1), r = $(() => a.value);
128
+ if (!n || !(/* @__PURE__ */ Zn(t)).value) return { focused: r };
129
129
  const s = { passive: !0 };
130
- return Be(o, Zn, () => a.value = !0, s), Be(o, Nn, () => {
130
+ return Ke(o, Nn, () => a.value = !0, s), Ke(o, Un, () => {
131
131
  var l, i, u;
132
132
  return a.value = (l = (i = o.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i, Wn)) !== null && l !== void 0 ? l : !1;
133
133
  }, s), { focused: r };
134
134
  }
135
- function Gn(e, { window: t = _e, scrollTarget: n } = {}) {
136
- const o = S(!1), a = () => {
135
+ function zn(e, { window: t = qe, scrollTarget: n } = {}) {
136
+ const o = L(!1), a = () => {
137
137
  if (!t) return;
138
- const r = t.document, s = Le(e);
138
+ const r = t.document, s = Ge(e);
139
139
  if (!s)
140
140
  o.value = !1;
141
141
  else {
@@ -143,22 +143,22 @@ function Gn(e, { window: t = _e, scrollTarget: n } = {}) {
143
143
  o.value = l.top <= (t.innerHeight || r.documentElement.clientHeight) && l.left <= (t.innerWidth || r.documentElement.clientWidth) && l.bottom >= 0 && l.right >= 0;
144
144
  }
145
145
  };
146
- return Q(
147
- () => Le(e),
146
+ return oe(
147
+ () => Ge(e),
148
148
  () => a(),
149
149
  { immediate: !0, flush: "post" }
150
- ), t && Be(n || t, "scroll", a, {
150
+ ), t && Ke(n || t, "scroll", a, {
151
151
  capture: !1,
152
152
  passive: !0
153
153
  }), o;
154
154
  }
155
- const ye = (e) => {
156
- let t = Gn(e).value;
155
+ const Ae = (e) => {
156
+ let t = zn(e).value;
157
157
  return t = t && e.offsetHeight > 0, t;
158
- }, xe = (e) => e.tabIndex >= 0, Wt = (e) => {
158
+ }, Te = (e) => e.tabIndex >= 0, Wt = (e) => {
159
159
  const t = e.target;
160
- return Rt(t);
161
- }, Rt = (e) => {
160
+ return Lt(t);
161
+ }, Lt = (e) => {
162
162
  let t;
163
163
  if (e instanceof HTMLTableCellElement) {
164
164
  const n = e.parentElement?.previousElementSibling;
@@ -170,8 +170,8 @@ const ye = (e) => {
170
170
  const n = e.previousElementSibling;
171
171
  n && (t = n);
172
172
  }
173
- return t && (!xe(t) || !ye(t)) ? Rt(t) : t;
174
- }, Un = (e) => {
173
+ return t && (!Te(t) || !Ae(t)) ? Lt(t) : t;
174
+ }, qn = (e) => {
175
175
  const t = e.target;
176
176
  let n;
177
177
  if (t instanceof HTMLTableCellElement) {
@@ -187,11 +187,11 @@ const ye = (e) => {
187
187
  a && (n = a);
188
188
  }
189
189
  }
190
- return n && (!xe(n) || !ye(n)) ? Lt(n) : n;
191
- }, zt = (e) => {
190
+ return n && (!Te(n) || !Ae(n)) ? Ht(n) : n;
191
+ }, Gt = (e) => {
192
192
  const t = e.target;
193
- return Lt(t);
194
- }, Lt = (e) => {
193
+ return Ht(t);
194
+ }, Ht = (e) => {
195
195
  let t;
196
196
  if (e instanceof HTMLTableCellElement) {
197
197
  const n = e.parentElement?.nextElementSibling;
@@ -203,8 +203,8 @@ const ye = (e) => {
203
203
  const n = e.nextElementSibling;
204
204
  n && (t = n);
205
205
  }
206
- return t && (!xe(t) || !ye(t)) ? Lt(t) : t;
207
- }, jn = (e) => {
206
+ return t && (!Te(t) || !Ae(t)) ? Ht(t) : t;
207
+ }, Yn = (e) => {
208
208
  const t = e.target;
209
209
  let n;
210
210
  if (t instanceof HTMLTableCellElement) {
@@ -220,71 +220,71 @@ const ye = (e) => {
220
220
  a && (n = a);
221
221
  }
222
222
  }
223
- return n && (!xe(n) || !ye(n)) ? Rt(n) : n;
224
- }, Gt = (e) => {
223
+ return n && (!Te(n) || !Ae(n)) ? Lt(n) : n;
224
+ }, zt = (e) => {
225
225
  const t = e.target;
226
- return Ht(t);
227
- }, Ht = (e) => {
226
+ return Vt(t);
227
+ }, Vt = (e) => {
228
228
  let t;
229
- return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!xe(t) || !ye(t)) ? Ht(t) : t;
230
- }, Ut = (e) => {
229
+ return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!Te(t) || !Ae(t)) ? Vt(t) : t;
230
+ }, qt = (e) => {
231
231
  const t = e.target;
232
- return _t(t);
233
- }, _t = (e) => {
232
+ return Pt(t);
233
+ }, Pt = (e) => {
234
234
  let t;
235
- return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!xe(t) || !ye(t)) ? _t(t) : t;
236
- }, jt = (e) => {
235
+ return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!Te(t) || !Ae(t)) ? Pt(t) : t;
236
+ }, Yt = (e) => {
237
237
  const t = e.target.parentElement?.firstElementChild;
238
- return t && (!xe(t) || !ye(t)) ? _t(t) : t;
239
- }, qt = (e) => {
238
+ return t && (!Te(t) || !Ae(t)) ? Pt(t) : t;
239
+ }, Xt = (e) => {
240
240
  const t = e.target.parentElement?.lastElementChild;
241
- return t && (!xe(t) || !ye(t)) ? Ht(t) : t;
242
- }, Xe = ["alt", "control", "shift", "meta"], qn = {
241
+ return t && (!Te(t) || !Ae(t)) ? Vt(t) : t;
242
+ }, ot = ["alt", "control", "shift", "meta"], Xn = {
243
243
  ArrowUp: "up",
244
244
  ArrowDown: "down",
245
245
  ArrowLeft: "left",
246
246
  ArrowRight: "right"
247
- }, ct = {
247
+ }, wt = {
248
248
  "keydown.up": (e) => {
249
249
  const t = Wt(e);
250
250
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
251
251
  },
252
252
  "keydown.down": (e) => {
253
- const t = zt(e);
253
+ const t = Gt(e);
254
254
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
255
255
  },
256
256
  "keydown.left": (e) => {
257
- const t = Gt(e);
257
+ const t = zt(e);
258
258
  e.preventDefault(), e.stopPropagation(), t && t.focus();
259
259
  },
260
260
  "keydown.right": (e) => {
261
- const t = Ut(e);
261
+ const t = qt(e);
262
262
  e.preventDefault(), e.stopPropagation(), t && t.focus();
263
263
  },
264
264
  "keydown.control.up": (e) => {
265
- const t = Un(e);
265
+ const t = qn(e);
266
266
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
267
267
  },
268
268
  "keydown.control.down": (e) => {
269
- const t = jn(e);
269
+ const t = Yn(e);
270
270
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
271
271
  },
272
272
  "keydown.control.left": (e) => {
273
- const t = jt(e);
273
+ const t = Yt(e);
274
274
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
275
275
  },
276
276
  "keydown.control.right": (e) => {
277
- const t = qt(e);
277
+ const t = Xt(e);
278
278
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
279
279
  },
280
280
  "keydown.end": (e) => {
281
- const t = qt(e);
281
+ const t = Xt(e);
282
282
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
283
283
  },
284
284
  "keydown.enter": (e) => {
285
285
  if (e.target instanceof HTMLTableCellElement) {
286
286
  e.preventDefault(), e.stopPropagation();
287
- const t = zt(e);
287
+ const t = Gt(e);
288
288
  t && t.focus();
289
289
  }
290
290
  },
@@ -296,19 +296,19 @@ const ye = (e) => {
296
296
  }
297
297
  },
298
298
  "keydown.home": (e) => {
299
- const t = jt(e);
299
+ const t = Yt(e);
300
300
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
301
301
  },
302
302
  "keydown.tab": (e) => {
303
- const t = Ut(e);
303
+ const t = qt(e);
304
304
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
305
305
  },
306
306
  "keydown.shift.tab": (e) => {
307
- const t = Gt(e);
307
+ const t = zt(e);
308
308
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
309
309
  }
310
310
  };
311
- function Vt(e) {
311
+ function Ot(e) {
312
312
  const t = (s) => {
313
313
  let l = null;
314
314
  return s.parent && (typeof s.parent == "string" ? l = document.querySelector(s.parent) : s.parent instanceof HTMLElement ? l = s.parent : l = s.parent.value), l;
@@ -332,23 +332,23 @@ function Vt(e) {
332
332
  }, o = (s) => {
333
333
  const l = t(s);
334
334
  let i = [];
335
- return s.selectors ? i = n(s) : l && (i = Array.from(l.children).filter((u) => xe(u) && ye(u))), i;
335
+ return s.selectors ? i = n(s) : l && (i = Array.from(l.children).filter((u) => Te(u) && Ae(u))), i;
336
336
  }, a = (s) => (l) => {
337
- const i = qn[l.key] || l.key.toLowerCase();
338
- if (Xe.includes(i)) return;
339
- const u = s.handlers || ct;
337
+ const i = Xn[l.key] || l.key.toLowerCase();
338
+ if (ot.includes(i)) return;
339
+ const u = s.handlers || wt;
340
340
  for (const c of Object.keys(u)) {
341
341
  const [p, ...h] = c.split(".");
342
342
  if (p === "keydown" && h.includes(i)) {
343
- const b = u[c], C = h.filter((v) => Xe.includes(v)), x = Xe.some((v) => {
344
- const m = v.charAt(0).toUpperCase() + v.slice(1);
343
+ const b = u[c], I = h.filter((f) => ot.includes(f)), x = ot.some((f) => {
344
+ const m = f.charAt(0).toUpperCase() + f.slice(1);
345
345
  return l.getModifierState(m);
346
346
  });
347
- if (C.length > 0) {
347
+ if (I.length > 0) {
348
348
  if (x) {
349
- for (const v of Xe)
350
- if (h.includes(v)) {
351
- const m = v.charAt(0).toUpperCase() + v.slice(1);
349
+ for (const f of ot)
350
+ if (h.includes(f)) {
351
+ const m = f.charAt(0).toUpperCase() + f.slice(1);
352
352
  l.getModifierState(m) && b(l);
353
353
  }
354
354
  }
@@ -357,37 +357,37 @@ function Vt(e) {
357
357
  }
358
358
  }
359
359
  }, r = [];
360
- we(() => {
360
+ Ee(() => {
361
361
  for (const s of e) {
362
362
  const l = t(s), i = o(s), u = a(s), c = l ? [l] : i;
363
363
  for (const p of c) {
364
- const { focused: h } = zn(S(p)), b = Q(h, (C) => {
365
- C ? p.addEventListener("keydown", u) : p.removeEventListener("keydown", u);
364
+ const { focused: h } = Gn(L(p)), b = oe(h, (I) => {
365
+ I ? p.addEventListener("keydown", u) : p.removeEventListener("keydown", u);
366
366
  });
367
367
  r.push(b);
368
368
  }
369
369
  }
370
- }), an(() => {
370
+ }), sn(() => {
371
371
  for (const s of r)
372
372
  s();
373
373
  });
374
374
  }
375
- function Ot(e, t) {
376
- return rt() ? (it(e, t), !0) : !1;
375
+ function _t(e, t) {
376
+ return mt() ? (ht(e, t), !0) : !1;
377
377
  }
378
378
  const vn = typeof window < "u" && typeof document < "u";
379
379
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
380
- const Yn = (e) => e != null, Xn = Object.prototype.toString, Jn = (e) => Xn.call(e) === "[object Object]", De = () => {
380
+ const jn = (e) => e != null, Jn = Object.prototype.toString, Qn = (e) => Jn.call(e) === "[object Object]", _e = () => {
381
381
  };
382
382
  function Kn(...e) {
383
- if (e.length !== 1) return un(...e);
383
+ if (e.length !== 1) return cn(...e);
384
384
  const t = e[0];
385
- return typeof t == "function" ? St($t(() => ({
385
+ return typeof t == "function" ? Rt(St(() => ({
386
386
  get: t,
387
- set: De
388
- }))) : S(t);
387
+ set: _e
388
+ }))) : L(t);
389
389
  }
390
- function Qn(e, t) {
390
+ function eo(e, t) {
391
391
  function n(...o) {
392
392
  return new Promise((a, r) => {
393
393
  Promise.resolve(e(() => t.apply(this, o), {
@@ -399,14 +399,14 @@ function Qn(e, t) {
399
399
  }
400
400
  return n;
401
401
  }
402
- function eo(e, t = {}) {
403
- let n, o, a = De;
402
+ function to(e, t = {}) {
403
+ let n, o, a = _e;
404
404
  const r = (l) => {
405
- clearTimeout(l), a(), a = De;
405
+ clearTimeout(l), a(), a = _e;
406
406
  };
407
407
  let s;
408
408
  return (l) => {
409
- const i = $(e), u = $(t.maxWait);
409
+ const i = E(e), u = E(t.maxWait);
410
410
  return n && r(n), i <= 0 || u !== void 0 && u <= 0 ? (o && (r(o), o = void 0), Promise.resolve(l())) : new Promise((c, p) => {
411
411
  a = t.rejectOnCancel ? p : c, s = l, u && !o && (o = setTimeout(() => {
412
412
  n && r(n), o = void 0, c(s());
@@ -416,26 +416,26 @@ function eo(e, t = {}) {
416
416
  });
417
417
  };
418
418
  }
419
- function et(e) {
419
+ function it(e) {
420
420
  return Array.isArray(e) ? e : [e];
421
421
  }
422
- function to(e) {
423
- return ut();
422
+ function no(e) {
423
+ return gt();
424
424
  }
425
425
  // @__NO_SIDE_EFFECTS__
426
- function no(e, t = 200, n = {}) {
427
- return Qn(eo(t, n), e);
426
+ function oo(e, t = 200, n = {}) {
427
+ return eo(to(t, n), e);
428
428
  }
429
- function oo(e, t = {}) {
430
- if (!An(e)) return Tn(e);
429
+ function lo(e, t = {}) {
430
+ if (!Tn(e)) return $n(e);
431
431
  const n = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
432
- for (const o in e.value) n[o] = $t(() => ({
432
+ for (const o in e.value) n[o] = St(() => ({
433
433
  get() {
434
434
  return e.value[o];
435
435
  },
436
436
  set(a) {
437
437
  var r;
438
- if (!((r = $(t.replaceRef)) !== null && r !== void 0) || r) if (Array.isArray(e.value)) {
438
+ if (!((r = E(t.replaceRef)) !== null && r !== void 0) || r) if (Array.isArray(e.value)) {
439
439
  const s = [...e.value];
440
440
  s[o] = a, e.value = s;
441
441
  } else {
@@ -450,126 +450,126 @@ function oo(e, t = {}) {
450
450
  }));
451
451
  return n;
452
452
  }
453
- function lo(e, t = !0, n) {
454
- to() ? we(e, n) : t ? e() : st(e);
453
+ function ao(e, t = !0, n) {
454
+ no() ? Ee(e, n) : t ? e() : pt(e);
455
455
  }
456
- function ao(e, t, n) {
457
- return Q(e, t, {
456
+ function so(e, t, n) {
457
+ return oe(e, t, {
458
458
  ...n,
459
459
  immediate: !0
460
460
  });
461
461
  }
462
- const Ze = vn ? window : void 0;
463
- function ve(e) {
462
+ const tt = vn ? window : void 0;
463
+ function ye(e) {
464
464
  var t;
465
- const n = $(e);
465
+ const n = E(e);
466
466
  return (t = n?.$el) !== null && t !== void 0 ? t : n;
467
467
  }
468
- function Me(...e) {
469
- const t = (o, a, r, s) => (o.addEventListener(a, r, s), () => o.removeEventListener(a, r, s)), n = T(() => {
470
- const o = et($(e[0])).filter((a) => a != null);
468
+ function He(...e) {
469
+ const t = (o, a, r, s) => (o.addEventListener(a, r, s), () => o.removeEventListener(a, r, s)), n = $(() => {
470
+ const o = it(E(e[0])).filter((a) => a != null);
471
471
  return o.every((a) => typeof a != "string") ? o : void 0;
472
472
  });
473
- return ao(() => {
473
+ return so(() => {
474
474
  var o, a;
475
475
  return [
476
- (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => ve(r))) !== null && o !== void 0 ? o : [Ze].filter((r) => r != null),
477
- et($(n.value ? e[1] : e[0])),
478
- et(L(n.value ? e[2] : e[1])),
479
- $(n.value ? e[3] : e[2])
476
+ (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => ye(r))) !== null && o !== void 0 ? o : [tt].filter((r) => r != null),
477
+ it(E(n.value ? e[1] : e[0])),
478
+ it(V(n.value ? e[2] : e[1])),
479
+ E(n.value ? e[3] : e[2])
480
480
  ];
481
481
  }, ([o, a, r, s], l, i) => {
482
482
  if (!o?.length || !a?.length || !r?.length) return;
483
- const u = Jn(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
483
+ const u = Qn(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
484
484
  i(() => {
485
485
  c.forEach((p) => p());
486
486
  });
487
487
  }, { flush: "post" });
488
488
  }
489
- function Tt(e, t, n = {}) {
490
- const { window: o = Ze, ignore: a = [], capture: r = !0, detectIframe: s = !1, controls: l = !1 } = n;
489
+ function $t(e, t, n = {}) {
490
+ const { window: o = tt, ignore: a = [], capture: r = !0, detectIframe: s = !1, controls: l = !1 } = n;
491
491
  if (!o) return l ? {
492
- stop: De,
493
- cancel: De,
494
- trigger: De
495
- } : De;
492
+ stop: _e,
493
+ cancel: _e,
494
+ trigger: _e
495
+ } : _e;
496
496
  let i = !0;
497
- const u = (v) => $(a).some((m) => {
498
- if (typeof m == "string") return Array.from(o.document.querySelectorAll(m)).some((g) => g === v.target || v.composedPath().includes(g));
497
+ const u = (f) => E(a).some((m) => {
498
+ if (typeof m == "string") return Array.from(o.document.querySelectorAll(m)).some((g) => g === f.target || f.composedPath().includes(g));
499
499
  {
500
- const g = ve(m);
501
- return g && (v.target === g || v.composedPath().includes(g));
500
+ const g = ye(m);
501
+ return g && (f.target === g || f.composedPath().includes(g));
502
502
  }
503
503
  });
504
- function c(v) {
505
- const m = $(v);
504
+ function c(f) {
505
+ const m = E(f);
506
506
  return m && m.$.subTree.shapeFlag === 16;
507
507
  }
508
- function p(v, m) {
509
- const g = $(v), M = g.$.subTree && g.$.subTree.children;
510
- return M == null || !Array.isArray(M) ? !1 : M.some((D) => D.el === m.target || m.composedPath().includes(D.el));
508
+ function p(f, m) {
509
+ const g = E(f), C = g.$.subTree && g.$.subTree.children;
510
+ return C == null || !Array.isArray(C) ? !1 : C.some((T) => T.el === m.target || m.composedPath().includes(T.el));
511
511
  }
512
- const h = (v) => {
513
- const m = ve(e);
514
- if (v.target != null && !(!(m instanceof Element) && c(e) && p(e, v)) && !(!m || m === v.target || v.composedPath().includes(m))) {
515
- if ("detail" in v && v.detail === 0 && (i = !u(v)), !i) {
512
+ const h = (f) => {
513
+ const m = ye(e);
514
+ if (f.target != null && !(!(m instanceof Element) && c(e) && p(e, f)) && !(!m || m === f.target || f.composedPath().includes(m))) {
515
+ if ("detail" in f && f.detail === 0 && (i = !u(f)), !i) {
516
516
  i = !0;
517
517
  return;
518
518
  }
519
- t(v);
519
+ t(f);
520
520
  }
521
521
  };
522
522
  let b = !1;
523
- const C = [
524
- Me(o, "click", (v) => {
523
+ const I = [
524
+ He(o, "click", (f) => {
525
525
  b || (b = !0, setTimeout(() => {
526
526
  b = !1;
527
- }, 0), h(v));
527
+ }, 0), h(f));
528
528
  }, {
529
529
  passive: !0,
530
530
  capture: r
531
531
  }),
532
- Me(o, "pointerdown", (v) => {
533
- const m = ve(e);
534
- i = !u(v) && !!(m && !v.composedPath().includes(m));
532
+ He(o, "pointerdown", (f) => {
533
+ const m = ye(e);
534
+ i = !u(f) && !!(m && !f.composedPath().includes(m));
535
535
  }, { passive: !0 }),
536
- s && Me(o, "blur", (v) => {
536
+ s && He(o, "blur", (f) => {
537
537
  setTimeout(() => {
538
538
  var m;
539
- const g = ve(e);
540
- ((m = o.document.activeElement) === null || m === void 0 ? void 0 : m.tagName) === "IFRAME" && !g?.contains(o.document.activeElement) && t(v);
539
+ const g = ye(e);
540
+ ((m = o.document.activeElement) === null || m === void 0 ? void 0 : m.tagName) === "IFRAME" && !g?.contains(o.document.activeElement) && t(f);
541
541
  }, 0);
542
542
  }, { passive: !0 })
543
- ].filter(Boolean), x = () => C.forEach((v) => v());
543
+ ].filter(Boolean), x = () => I.forEach((f) => f());
544
544
  return l ? {
545
545
  stop: x,
546
546
  cancel: () => {
547
547
  i = !1;
548
548
  },
549
- trigger: (v) => {
550
- i = !0, h(v), i = !1;
549
+ trigger: (f) => {
550
+ i = !0, h(f), i = !1;
551
551
  }
552
552
  } : x;
553
553
  }
554
554
  // @__NO_SIDE_EFFECTS__
555
- function so() {
556
- const e = ee(!1), t = ut();
557
- return t && we(() => {
555
+ function ro() {
556
+ const e = ie(!1), t = gt();
557
+ return t && Ee(() => {
558
558
  e.value = !0;
559
559
  }, t), e;
560
560
  }
561
561
  // @__NO_SIDE_EFFECTS__
562
- function fn(e) {
563
- const t = /* @__PURE__ */ so();
564
- return T(() => (t.value, !!e()));
562
+ function pn(e) {
563
+ const t = /* @__PURE__ */ ro();
564
+ return $(() => (t.value, !!e()));
565
565
  }
566
- function pn(e, t, n = {}) {
567
- const { window: o = Ze, ...a } = n;
566
+ function mn(e, t, n = {}) {
567
+ const { window: o = tt, ...a } = n;
568
568
  let r;
569
- const s = /* @__PURE__ */ fn(() => o && "MutationObserver" in o), l = () => {
569
+ const s = /* @__PURE__ */ pn(() => o && "MutationObserver" in o), l = () => {
570
570
  r && (r.disconnect(), r = void 0);
571
- }, i = Q(T(() => {
572
- const p = et($(e)).map(ve).filter(Yn);
571
+ }, i = oe($(() => {
572
+ const p = it(E(e)).map(ye).filter(jn);
573
573
  return new Set(p);
574
574
  }), (p) => {
575
575
  l(), s.value && p.size && (r = new MutationObserver(t), p.forEach((h) => r.observe(h, a)));
@@ -579,63 +579,129 @@ function pn(e, t, n = {}) {
579
579
  }), u = () => r?.takeRecords(), c = () => {
580
580
  i(), l();
581
581
  };
582
- return Ot(c), {
582
+ return _t(c), {
583
583
  isSupported: s,
584
584
  stop: c,
585
585
  takeRecords: u
586
586
  };
587
587
  }
588
- function wt(e, t = {}) {
589
- var n;
590
- const { pointerTypes: o, preventDefault: a, stopPropagation: r, exact: s, onMove: l, onEnd: i, onStart: u, initialValue: c, axis: p = "both", draggingElement: h = Ze, containerElement: b, handle: C = e, buttons: x = [0] } = t, v = S((n = $(c)) !== null && n !== void 0 ? n : {
588
+ const lt = {
589
+ speed: 2,
590
+ margin: 30,
591
+ direction: "both"
592
+ };
593
+ function io(e) {
594
+ e.scrollLeft > e.scrollWidth - e.clientWidth && (e.scrollLeft = Math.max(0, e.scrollWidth - e.clientWidth)), e.scrollTop > e.scrollHeight - e.clientHeight && (e.scrollTop = Math.max(0, e.scrollHeight - e.clientHeight));
595
+ }
596
+ function yt(e, t = {}) {
597
+ var n, o, a, r;
598
+ const { pointerTypes: s, preventDefault: l, stopPropagation: i, exact: u, onMove: c, onEnd: p, onStart: h, initialValue: b, axis: I = "both", draggingElement: x = tt, containerElement: f, handle: m = e, buttons: g = [0], restrictInView: C, autoScroll: T = !1 } = t, R = L((n = E(b)) !== null && n !== void 0 ? n : {
591
599
  x: 0,
592
600
  y: 0
593
- }), m = S(), g = (E) => o ? o.includes(E.pointerType) : !0, M = (E) => {
594
- $(a) && E.preventDefault(), $(r) && E.stopPropagation();
595
- }, D = (E) => {
596
- var O;
597
- if (!$(x).includes(E.button) || $(t.disabled) || !g(E) || $(s) && E.target !== $(e)) return;
598
- const X = $(b), G = X == null || (O = X.getBoundingClientRect) === null || O === void 0 ? void 0 : O.call(X), N = $(e).getBoundingClientRect(), ce = {
599
- x: E.clientX - (X ? N.left - G.left + X.scrollLeft : N.left),
600
- y: E.clientY - (X ? N.top - G.top + X.scrollTop : N.top)
601
+ }), S = L(), _ = (D) => s ? s.includes(D.pointerType) : !0, U = (D) => {
602
+ E(l) && D.preventDefault(), E(i) && D.stopPropagation();
603
+ }, ve = E(T), Y = typeof ve == "object" ? {
604
+ speed: (o = E(ve.speed)) !== null && o !== void 0 ? o : lt.speed,
605
+ margin: (a = E(ve.margin)) !== null && a !== void 0 ? a : lt.margin,
606
+ direction: (r = ve.direction) !== null && r !== void 0 ? r : lt.direction
607
+ } : lt, X = (D) => typeof D == "number" ? [D, D] : [D.x, D.y], ge = (D, F, W) => {
608
+ const { clientWidth: j, clientHeight: z, scrollLeft: se, scrollTop: be, scrollWidth: Le, scrollHeight: O } = D, [B, G] = X(Y.margin), [Q, ne] = X(Y.speed);
609
+ let ee = 0, re = 0;
610
+ (Y.direction === "x" || Y.direction === "both") && (W.x < B && se > 0 ? ee = -Q : W.x + F.width > j - B && se < Le - j && (ee = Q)), (Y.direction === "y" || Y.direction === "both") && (W.y < G && be > 0 ? re = -ne : W.y + F.height > z - G && be < O - z && (re = ne)), (ee || re) && D.scrollBy({
611
+ left: ee,
612
+ top: re,
613
+ behavior: "auto"
614
+ });
615
+ };
616
+ let de = null;
617
+ const Be = () => {
618
+ const D = E(f);
619
+ D && !de && (de = setInterval(() => {
620
+ const F = E(e).getBoundingClientRect(), { x: W, y: j } = R.value, z = {
621
+ x: W - D.scrollLeft,
622
+ y: j - D.scrollTop
623
+ };
624
+ z.x >= 0 && z.y >= 0 && (ge(D, F, z), z.x += D.scrollLeft, z.y += D.scrollTop, R.value = z);
625
+ }, 1e3 / 60));
626
+ }, Re = () => {
627
+ de && (clearInterval(de), de = null);
628
+ }, Xe = (D, F, W, j) => {
629
+ const [z, se] = typeof W == "number" ? [W, W] : [W.x, W.y], { clientWidth: be, clientHeight: Le } = F;
630
+ return D.x < z || D.x + j.width > be - z || D.y < se || D.y + j.height > Le - se;
631
+ }, je = () => {
632
+ if (E(t.disabled) || !S.value) return;
633
+ const D = E(f);
634
+ if (!D) return;
635
+ const F = E(e).getBoundingClientRect(), { x: W, y: j } = R.value;
636
+ Xe({
637
+ x: W - D.scrollLeft,
638
+ y: j - D.scrollTop
639
+ }, D, Y.margin, F) ? Be() : Re();
640
+ };
641
+ E(T) && oe(R, je);
642
+ const Fe = (D) => {
643
+ var F;
644
+ if (!E(g).includes(D.button) || E(t.disabled) || !_(D) || E(u) && D.target !== E(e)) return;
645
+ const W = E(f), j = W == null || (F = W.getBoundingClientRect) === null || F === void 0 ? void 0 : F.call(W), z = E(e).getBoundingClientRect(), se = {
646
+ x: D.clientX - (W ? z.left - j.left + (T ? 0 : W.scrollLeft) : z.left),
647
+ y: D.clientY - (W ? z.top - j.top + (T ? 0 : W.scrollTop) : z.top)
601
648
  };
602
- u?.(ce, E) !== !1 && (m.value = ce, M(E));
603
- }, P = (E) => {
604
- if ($(t.disabled) || !g(E) || !m.value) return;
605
- const O = $(b), X = $(e).getBoundingClientRect();
606
- let { x: G, y: N } = v.value;
607
- (p === "x" || p === "both") && (G = E.clientX - m.value.x, O && (G = Math.min(Math.max(0, G), O.scrollWidth - X.width))), (p === "y" || p === "both") && (N = E.clientY - m.value.y, O && (N = Math.min(Math.max(0, N), O.scrollHeight - X.height))), v.value = {
608
- x: G,
609
- y: N
610
- }, l?.(v.value, E), M(E);
611
- }, H = (E) => {
612
- $(t.disabled) || !g(E) || m.value && (m.value = void 0, i?.(v.value, E), M(E));
649
+ h?.(se, D) !== !1 && (S.value = se, U(D));
650
+ }, Je = (D) => {
651
+ if (E(t.disabled) || !_(D) || !S.value) return;
652
+ const F = E(f);
653
+ F instanceof HTMLElement && io(F);
654
+ const W = E(e).getBoundingClientRect();
655
+ let { x: j, y: z } = R.value;
656
+ if ((I === "x" || I === "both") && (j = D.clientX - S.value.x, F && (j = Math.min(Math.max(0, j), F.scrollWidth - W.width))), (I === "y" || I === "both") && (z = D.clientY - S.value.y, F && (z = Math.min(Math.max(0, z), F.scrollHeight - W.height))), E(T) && F && (de === null && ge(F, W, {
657
+ x: j,
658
+ y: z
659
+ }), j += F.scrollLeft, z += F.scrollTop), F && (C || T)) {
660
+ if (I !== "y") {
661
+ const se = j - F.scrollLeft;
662
+ se < 0 ? j = F.scrollLeft : se > F.clientWidth - W.width && (j = F.clientWidth - W.width + F.scrollLeft);
663
+ }
664
+ if (I !== "x") {
665
+ const se = z - F.scrollTop;
666
+ se < 0 ? z = F.scrollTop : se > F.clientHeight - W.height && (z = F.clientHeight - W.height + F.scrollTop);
667
+ }
668
+ }
669
+ R.value = {
670
+ x: j,
671
+ y: z
672
+ }, c?.(R.value, D), U(D);
673
+ }, Ze = (D) => {
674
+ E(t.disabled) || !_(D) || S.value && (S.value = void 0, T && Re(), p?.(R.value, D), U(D));
613
675
  };
614
676
  if (vn) {
615
- const E = () => {
616
- var O;
677
+ const D = () => {
678
+ var F;
617
679
  return {
618
- capture: (O = t.capture) !== null && O !== void 0 ? O : !0,
619
- passive: !$(a)
680
+ capture: (F = t.capture) !== null && F !== void 0 ? F : !0,
681
+ passive: !E(l)
620
682
  };
621
683
  };
622
- Me(C, "pointerdown", D, E), Me(h, "pointermove", P, E), Me(h, "pointerup", H, E);
684
+ He(m, "pointerdown", Fe, D), He(x, "pointermove", Je, D), He(x, "pointerup", Ze, D);
623
685
  }
624
686
  return {
625
- ...oo(v),
626
- position: v,
627
- isDragging: T(() => !!m.value),
628
- style: T(() => `left:${v.value.x}px;top:${v.value.y}px;`)
687
+ ...lo(R),
688
+ position: R,
689
+ isDragging: $(() => !!S.value),
690
+ style: $(() => `
691
+ left: ${R.value.x}px;
692
+ top: ${R.value.y}px;
693
+ ${T ? "text-wrap: nowrap;" : ""}
694
+ `)
629
695
  };
630
696
  }
631
- function lt(e, t, n = {}) {
632
- const { window: o = Ze, ...a } = n;
697
+ function ft(e, t, n = {}) {
698
+ const { window: o = tt, ...a } = n;
633
699
  let r;
634
- const s = /* @__PURE__ */ fn(() => o && "ResizeObserver" in o), l = () => {
700
+ const s = /* @__PURE__ */ pn(() => o && "ResizeObserver" in o), l = () => {
635
701
  r && (r.disconnect(), r = void 0);
636
- }, i = Q(T(() => {
637
- const c = $(e);
638
- return Array.isArray(c) ? c.map((p) => ve(p)) : [ve(c)];
702
+ }, i = oe($(() => {
703
+ const c = E(e);
704
+ return Array.isArray(c) ? c.map((p) => ye(p)) : [ye(c)];
639
705
  }), (c) => {
640
706
  if (l(), s.value && o) {
641
707
  r = new ResizeObserver(t);
@@ -647,30 +713,30 @@ function lt(e, t, n = {}) {
647
713
  }), u = () => {
648
714
  l(), i();
649
715
  };
650
- return Ot(u), {
716
+ return _t(u), {
651
717
  isSupported: s,
652
718
  stop: u
653
719
  };
654
720
  }
655
- function Ae(e, t = {}) {
656
- const { reset: n = !0, windowResize: o = !0, windowScroll: a = !0, immediate: r = !0, updateTiming: s = "sync" } = t, l = ee(0), i = ee(0), u = ee(0), c = ee(0), p = ee(0), h = ee(0), b = ee(0), C = ee(0);
721
+ function Pe(e, t = {}) {
722
+ const { reset: n = !0, windowResize: o = !0, windowScroll: a = !0, immediate: r = !0, updateTiming: s = "sync" } = t, l = ie(0), i = ie(0), u = ie(0), c = ie(0), p = ie(0), h = ie(0), b = ie(0), I = ie(0);
657
723
  function x() {
658
- const m = ve(e);
724
+ const m = ye(e);
659
725
  if (!m) {
660
- n && (l.value = 0, i.value = 0, u.value = 0, c.value = 0, p.value = 0, h.value = 0, b.value = 0, C.value = 0);
726
+ n && (l.value = 0, i.value = 0, u.value = 0, c.value = 0, p.value = 0, h.value = 0, b.value = 0, I.value = 0);
661
727
  return;
662
728
  }
663
729
  const g = m.getBoundingClientRect();
664
- l.value = g.height, i.value = g.bottom, u.value = g.left, c.value = g.right, p.value = g.top, h.value = g.width, b.value = g.x, C.value = g.y;
730
+ l.value = g.height, i.value = g.bottom, u.value = g.left, c.value = g.right, p.value = g.top, h.value = g.width, b.value = g.x, I.value = g.y;
665
731
  }
666
- function v() {
732
+ function f() {
667
733
  s === "sync" ? x() : s === "next-frame" && requestAnimationFrame(() => x());
668
734
  }
669
- return lt(e, v), Q(() => ve(e), (m) => !m && v()), pn(e, v, { attributeFilter: ["style", "class"] }), a && Me("scroll", v, {
735
+ return ft(e, f), oe(() => ye(e), (m) => !m && f()), mn(e, f, { attributeFilter: ["style", "class"] }), a && He("scroll", f, {
670
736
  capture: !0,
671
737
  passive: !0
672
- }), o && Me("resize", v, { passive: !0 }), lo(() => {
673
- r && v();
738
+ }), o && He("resize", f, { passive: !0 }), ao(() => {
739
+ r && f();
674
740
  }), {
675
741
  height: l,
676
742
  bottom: i,
@@ -679,33 +745,33 @@ function Ae(e, t = {}) {
679
745
  top: p,
680
746
  width: h,
681
747
  x: b,
682
- y: C,
683
- update: v
748
+ y: I,
749
+ update: f
684
750
  };
685
751
  }
686
- function yt(e) {
752
+ function xt(e) {
687
753
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
688
754
  }
689
- const xt = /* @__PURE__ */ new WeakMap();
690
- function ro(e, t = !1) {
691
- const n = ee(t);
755
+ const bt = /* @__PURE__ */ new WeakMap();
756
+ function uo(e, t = !1) {
757
+ const n = ie(t);
692
758
  let o = "";
693
- Q(Kn(e), (s) => {
694
- const l = yt($(s));
759
+ oe(Kn(e), (s) => {
760
+ const l = xt(E(s));
695
761
  if (l) {
696
762
  const i = l;
697
- if (xt.get(i) || xt.set(i, i.style.overflow), i.style.overflow !== "hidden" && (o = i.style.overflow), i.style.overflow === "hidden") return n.value = !0;
763
+ if (bt.get(i) || bt.set(i, i.style.overflow), i.style.overflow !== "hidden" && (o = i.style.overflow), i.style.overflow === "hidden") return n.value = !0;
698
764
  if (n.value) return i.style.overflow = "hidden";
699
765
  }
700
766
  }, { immediate: !0 });
701
767
  const a = () => {
702
- const s = yt($(e));
768
+ const s = xt(E(e));
703
769
  !s || n.value || (s.style.overflow = "hidden", n.value = !0);
704
770
  }, r = () => {
705
- const s = yt($(e));
706
- !s || !n.value || (s.style.overflow = o, xt.delete(s), n.value = !1);
771
+ const s = xt(E(e));
772
+ !s || !n.value || (s.style.overflow = o, bt.delete(s), n.value = !1);
707
773
  };
708
- return Ot(r), T({
774
+ return _t(r), $({
709
775
  get() {
710
776
  return n.value;
711
777
  },
@@ -714,10 +780,10 @@ function ro(e, t = !1) {
714
780
  }
715
781
  });
716
782
  }
717
- const io = (e) => {
783
+ const co = (e) => {
718
784
  const t = new DOMParser().parseFromString(e, "text/html");
719
785
  return Array.from(t.body.childNodes).some((n) => n.nodeType === 1);
720
- }, uo = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), co = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], vo = ["innerHTML"], fo = { key: 2 }, po = /* @__PURE__ */ Y({
786
+ }, fo = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), vo = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], po = ["innerHTML"], mo = { key: 2 }, ho = /* @__PURE__ */ te({
721
787
  __name: "ACell",
722
788
  props: {
723
789
  colIndex: {},
@@ -729,146 +795,146 @@ const io = (e) => {
729
795
  debounce: { default: 300 }
730
796
  },
731
797
  setup(e, { expose: t }) {
732
- const n = ae("cell"), o = e.store.getCellData(e.colIndex, e.rowIndex), a = S(""), r = S(!1), s = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], i = s.align || "center", u = s.width || "40ch", c = T(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), p = T(() => typeof c.value == "string" ? io(c.value) : !1), h = T(() => ({
798
+ const n = fe("cell"), o = e.store.getCellData(e.colIndex, e.rowIndex), a = L(""), r = L(!1), s = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], i = s.align || "center", u = s.width || "40ch", c = $(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), p = $(() => typeof c.value == "string" ? co(c.value) : !1), h = $(() => ({
733
799
  textAlign: i,
734
800
  width: u,
735
801
  fontWeight: r.value ? "bold" : "inherit",
736
802
  paddingLeft: e.store.getIndent(e.colIndex, e.store.display[e.rowIndex]?.indent)
737
- })), b = T(() => ({
803
+ })), b = $(() => ({
738
804
  "sticky-column": e.pinned,
739
805
  "cell-modified": r.value
740
- })), C = () => {
741
- v(), x();
806
+ })), I = () => {
807
+ f(), x();
742
808
  }, x = () => {
743
- const { left: H, bottom: E, width: O, height: X } = Ae(n);
744
- s.mask, s.modalComponent && e.store.$patch((G) => {
745
- G.modal.visible = !0, G.modal.colIndex = e.colIndex, G.modal.rowIndex = e.rowIndex, G.modal.left = H, G.modal.bottom = E, G.modal.width = O, G.modal.height = X, G.modal.cell = n.value, typeof s.modalComponent == "function" ? G.modal.component = s.modalComponent({ table: G.table, row: l, column: s }) : G.modal.component = s.modalComponent, G.modal.componentProps = s.modalComponentExtraProps;
809
+ const { left: S, bottom: _, width: U, height: ve } = Pe(n);
810
+ s.mask, s.modalComponent && e.store.$patch((Y) => {
811
+ Y.modal.visible = !0, Y.modal.colIndex = e.colIndex, Y.modal.rowIndex = e.rowIndex, Y.modal.left = S, Y.modal.bottom = _, Y.modal.width = U, Y.modal.height = ve, Y.modal.cell = n.value, typeof s.modalComponent == "function" ? Y.modal.component = s.modalComponent({ table: Y.table, row: l, column: s }) : Y.modal.component = s.modalComponent, Y.modal.componentProps = s.modalComponentExtraProps;
746
812
  });
747
813
  };
748
814
  if (e.addNavigation) {
749
- let H = {
750
- ...ct,
815
+ let S = {
816
+ ...wt,
751
817
  "keydown.f2": x,
752
818
  "keydown.alt.up": x,
753
819
  "keydown.alt.down": x,
754
820
  "keydown.alt.left": x,
755
821
  "keydown.alt.right": x
756
822
  };
757
- typeof e.addNavigation == "object" && (H = {
758
- ...H,
823
+ typeof e.addNavigation == "object" && (S = {
824
+ ...S,
759
825
  ...e.addNavigation
760
- }), Vt([
826
+ }), Ot([
761
827
  {
762
828
  selectors: n,
763
- handlers: H
829
+ handlers: S
764
830
  }
765
831
  ]);
766
832
  }
767
- const v = () => {
833
+ const f = () => {
768
834
  if (n.value && s.edit) {
769
- const H = window.getSelection();
770
- if (H)
835
+ const S = window.getSelection();
836
+ if (S)
771
837
  try {
772
- const E = document.createRange();
773
- E.selectNodeContents && (E.selectNodeContents(n.value), H.removeAllRanges(), H.addRange(E));
838
+ const _ = document.createRange();
839
+ _.selectNodeContents && (_.selectNodeContents(n.value), S.removeAllRanges(), S.addRange(_));
774
840
  } catch {
775
841
  }
776
842
  }
777
843
  }, m = () => {
778
- n.value && (a.value = n.value.textContent, v());
844
+ n.value && (a.value = n.value.textContent, f());
779
845
  }, g = () => {
780
846
  try {
781
- const H = window.getSelection();
782
- if (H && H.rangeCount > 0 && n.value) {
783
- const E = H.getRangeAt(0), O = E.cloneRange();
784
- if (O.selectNodeContents && O.setEnd)
785
- return O.selectNodeContents(n.value), O.setEnd(E.endContainer, E.endOffset), O.toString().length;
847
+ const S = window.getSelection();
848
+ if (S && S.rangeCount > 0 && n.value) {
849
+ const _ = S.getRangeAt(0), U = _.cloneRange();
850
+ if (U.selectNodeContents && U.setEnd)
851
+ return U.selectNodeContents(n.value), U.setEnd(_.endContainer, _.endOffset), U.toString().length;
786
852
  }
787
853
  } catch {
788
854
  }
789
855
  return 0;
790
- }, M = (H) => {
856
+ }, C = (S) => {
791
857
  if (n.value)
792
858
  try {
793
- const E = window.getSelection();
794
- if (!E) return;
795
- let O = 0;
796
- const X = document.createTreeWalker ? document.createTreeWalker(n.value, NodeFilter.SHOW_TEXT, null) : null;
797
- if (!X) return;
798
- let G, N = null;
799
- for (; G = X.nextNode(); ) {
800
- const ce = G, Ce = O + ce.textContent.length;
801
- if (H <= Ce && (N = document.createRange(), N.setStart && N.setEnd)) {
802
- N.setStart(ce, H - O), N.setEnd(ce, H - O);
859
+ const _ = window.getSelection();
860
+ if (!_) return;
861
+ let U = 0;
862
+ const ve = document.createTreeWalker ? document.createTreeWalker(n.value, NodeFilter.SHOW_TEXT, null) : null;
863
+ if (!ve) return;
864
+ let Y, X = null;
865
+ for (; Y = ve.nextNode(); ) {
866
+ const ge = Y, de = U + ge.textContent.length;
867
+ if (S <= de && (X = document.createRange(), X.setStart && X.setEnd)) {
868
+ X.setStart(ge, S - U), X.setEnd(ge, S - U);
803
869
  break;
804
870
  }
805
- O = Ce;
871
+ U = de;
806
872
  }
807
- N && E.removeAllRanges && E.addRange && (E.removeAllRanges(), E.addRange(N));
873
+ X && _.removeAllRanges && _.addRange && (_.removeAllRanges(), _.addRange(X));
808
874
  } catch {
809
875
  }
810
- }, D = (H) => {
876
+ }, T = (S) => {
811
877
  if (!s.edit) return;
812
- const E = H.target;
813
- if (E.textContent === a.value)
878
+ const _ = S.target;
879
+ if (_.textContent === a.value)
814
880
  return;
815
- const O = g();
816
- a.value = E.textContent, s.format ? (r.value = E.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, o), e.store.setCellText(e.colIndex, e.rowIndex, E.textContent)) : (r.value = E.textContent !== o, e.store.setCellData(e.colIndex, e.rowIndex, E.textContent)), st().then(() => {
817
- M(O);
881
+ const U = g();
882
+ a.value = _.textContent, s.format ? (r.value = _.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, o), e.store.setCellText(e.colIndex, e.rowIndex, _.textContent)) : (r.value = _.textContent !== o, e.store.setCellData(e.colIndex, e.rowIndex, _.textContent)), pt().then(() => {
883
+ C(U);
818
884
  });
819
- }, P = /* @__PURE__ */ no(D, e.debounce);
885
+ }, R = /* @__PURE__ */ oo(T, e.debounce);
820
886
  return t({
821
887
  currentData: a
822
- }), (H, E) => (w(), k("td", {
888
+ }), (S, _) => (w(), k("td", {
823
889
  ref: "cell",
824
890
  "data-colindex": e.colIndex,
825
891
  "data-rowindex": e.rowIndex,
826
- "data-editable": L(s).edit,
827
- contenteditable: L(s).edit,
892
+ "data-editable": V(s).edit,
893
+ contenteditable: V(s).edit,
828
894
  tabindex: e.tabIndex,
829
895
  spellcheck: !1,
830
- style: fe(h.value),
831
- class: K(["atable-cell", b.value]),
896
+ style: xe(h.value),
897
+ class: ae(["atable-cell", b.value]),
832
898
  onFocus: m,
833
- onPaste: D,
834
- onInput: E[0] || (E[0] = //@ts-ignore
835
- (...O) => L(P) && L(P)(...O)),
836
- onClick: C
899
+ onPaste: T,
900
+ onInput: _[0] || (_[0] = //@ts-ignore
901
+ (...U) => V(R) && V(R)(...U)),
902
+ onClick: I
837
903
  }, [
838
- L(s).cellComponent ? (w(), re(Re(L(s).cellComponent), at({
904
+ V(s).cellComponent ? (w(), pe(We(V(s).cellComponent), vt({
839
905
  key: 0,
840
906
  value: c.value
841
- }, L(s).cellComponentProps), null, 16, ["value"])) : p.value ? (w(), k("span", {
907
+ }, V(s).cellComponentProps), null, 16, ["value"])) : p.value ? (w(), k("span", {
842
908
  key: 1,
843
909
  innerHTML: c.value
844
- }, null, 8, vo)) : (w(), k("span", fo, j(c.value), 1))
845
- ], 46, co));
910
+ }, null, 8, po)) : (w(), k("span", mo, K(c.value), 1))
911
+ ], 46, vo));
846
912
  }
847
- }), mo = ["tabindex"], ho = ["tabindex"], go = ["colspan"], wo = /* @__PURE__ */ Y({
913
+ }), go = ["tabindex"], wo = ["tabindex"], yo = ["colspan"], xo = /* @__PURE__ */ te({
848
914
  __name: "AExpansionRow",
849
915
  props: {
850
916
  rowIndex: {},
851
917
  store: {},
852
918
  tabIndex: { default: () => -1 },
853
- addNavigation: { type: [Boolean, Object], default: () => ct }
919
+ addNavigation: { type: [Boolean, Object], default: () => wt }
854
920
  },
855
921
  setup(e) {
856
- const t = ae("rowEl"), n = T(() => e.store.display[e.rowIndex].expanded ? "▼" : "►");
922
+ const t = fe("rowEl"), n = $(() => e.store.display[e.rowIndex].expanded ? "▼" : "►");
857
923
  if (e.addNavigation) {
858
924
  const o = {
859
925
  "keydown.control.g": (a) => {
860
926
  a.stopPropagation(), a.preventDefault(), e.store.toggleRowExpand(e.rowIndex);
861
927
  }
862
928
  };
863
- typeof e.addNavigation == "object" && Object.assign(o, e.addNavigation), Vt([
929
+ typeof e.addNavigation == "object" && Object.assign(o, e.addNavigation), Ot([
864
930
  {
865
931
  selectors: t,
866
932
  handlers: o
867
933
  }
868
934
  ]);
869
935
  }
870
- return (o, a) => (w(), k(oe, null, [
871
- y("tr", at(o.$attrs, {
936
+ return (o, a) => (w(), k(ue, null, [
937
+ y("tr", vt(o.$attrs, {
872
938
  ref: "rowEl",
873
939
  tabindex: e.tabIndex,
874
940
  class: "expandable-row"
@@ -877,9 +943,9 @@ const io = (e) => {
877
943
  tabIndex: -1,
878
944
  class: "row-index",
879
945
  onClick: a[0] || (a[0] = (r) => e.store.toggleRowExpand(e.rowIndex))
880
- }, j(n.value), 1),
881
- ue(o.$slots, "row", {}, void 0, !0)
882
- ], 16, mo),
946
+ }, K(n.value), 1),
947
+ he(o.$slots, "row", {}, void 0, !0)
948
+ ], 16, go),
883
949
  e.store.display[e.rowIndex].expanded ? (w(), k("tr", {
884
950
  key: 0,
885
951
  ref: "rowExpanded",
@@ -891,23 +957,23 @@ const io = (e) => {
891
957
  colspan: e.store.columns.length + 1,
892
958
  class: "expanded-row-content"
893
959
  }, [
894
- ue(o.$slots, "content", {}, void 0, !0)
895
- ], 8, go)
896
- ], 8, ho)) : z("", !0)
960
+ he(o.$slots, "content", {}, void 0, !0)
961
+ ], 8, yo)
962
+ ], 8, wo)) : q("", !0)
897
963
  ], 64));
898
964
  }
899
- }), Ee = (e, t) => {
965
+ }), Ve = (e, t) => {
900
966
  const n = e.__vccOpts || e;
901
967
  for (const [o, a] of t)
902
968
  n[o] = a;
903
969
  return n;
904
- }, yo = /* @__PURE__ */ Ee(wo, [["__scopeId", "data-v-a42297c7"]]), xo = ["colspan"], bo = {
970
+ }, bo = /* @__PURE__ */ Ve(xo, [["__scopeId", "data-v-a42297c7"]]), Io = ["colspan"], ko = {
905
971
  ref: "container",
906
972
  class: "gantt-container"
907
- }, ko = ["data-rowindex", "data-colindex"], Io = {
973
+ }, Mo = ["data-rowindex", "data-colindex"], Co = {
908
974
  key: 2,
909
975
  class: "gantt-label"
910
- }, Co = ["x1", "y1", "x2", "y2"], Mo = /* @__PURE__ */ Y({
976
+ }, Eo = ["x1", "y1", "x2", "y2"], Ao = /* @__PURE__ */ te({
911
977
  __name: "AGanttCell",
912
978
  props: {
913
979
  store: {},
@@ -922,18 +988,18 @@ const io = (e) => {
922
988
  },
923
989
  emits: ["connection:create"],
924
990
  setup(e, { expose: t, emit: n }) {
925
- Cn((V) => ({
991
+ En((O) => ({
926
992
  v6d722296: a.value,
927
- v260b36f8: V.colspan
993
+ v260b36f8: O.colspan
928
994
  }));
929
- const o = n, a = S(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s = ae("container"), l = ae("bar"), i = ae("leftResizeHandle"), u = ae("rightResizeHandle"), c = ae("leftConnectionHandle"), p = ae("rightConnectionHandle"), { width: h } = Ae(s), { left: b, right: C } = Ae(l), x = S(e.start), v = S(e.end || x.value + e.colspan), m = S(!1), g = S(!1), M = S(!1), D = S(!1), P = S(!1), H = S({ startX: 0, startY: 0, endX: 0, endY: 0 }), E = T(() => Ne.value || ce.value || Ce.value), O = T(() => e.colspan > 0 ? h.value / e.colspan : 0), X = T(() => {
930
- const V = x.value / e.colspan * 100, B = v.value / e.colspan * 100;
995
+ const o = n, a = L(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s = fe("container"), l = fe("bar"), i = fe("leftResizeHandle"), u = fe("rightResizeHandle"), c = fe("leftConnectionHandle"), p = fe("rightConnectionHandle"), { width: h } = Pe(s), { left: b, right: I } = Pe(l), x = L(e.start), f = L(e.end || x.value + e.colspan), m = L(!1), g = L(!1), C = L(!1), T = L(!1), R = L(!1), S = L({ startX: 0, startY: 0, endX: 0, endY: 0 }), _ = $(() => Be.value || ge.value || de.value), U = $(() => e.colspan > 0 ? h.value / e.colspan : 0), ve = $(() => {
996
+ const O = x.value / e.colspan * 100, B = f.value / e.colspan * 100;
931
997
  return {
932
- left: `${V}%`,
933
- width: `${B - V}%`,
998
+ left: `${O}%`,
999
+ width: `${B - O}%`,
934
1000
  backgroundColor: a.value
935
1001
  };
936
- }), G = T(
1002
+ }), Y = $(
937
1003
  () => ({
938
1004
  position: "fixed",
939
1005
  top: 0,
@@ -943,111 +1009,111 @@ const io = (e) => {
943
1009
  pointerEvents: "none",
944
1010
  zIndex: 1e3
945
1011
  })
946
- ), N = S({ startX: 0, startPos: 0 }), { isDragging: ce } = wt(i, {
1012
+ ), X = L({ startX: 0, startPos: 0 }), { isDragging: ge } = yt(i, {
947
1013
  axis: "x",
948
- onStart: () => Oe(b.value, x.value),
949
- onMove: ({ x: V }) => dt(V),
950
- onEnd: ({ x: V }) => vt(V)
951
- }), { isDragging: Ce } = wt(u, {
1014
+ onStart: () => Re(b.value, x.value),
1015
+ onMove: ({ x: O }) => Xe(O),
1016
+ onEnd: ({ x: O }) => je(O)
1017
+ }), { isDragging: de } = yt(u, {
952
1018
  axis: "x",
953
- onStart: () => Oe(C.value, v.value),
954
- onMove: ({ x: V }) => We(V),
955
- onEnd: ({ x: V }) => ft(V)
956
- }), { isDragging: Ne } = wt(l, {
1019
+ onStart: () => Re(I.value, f.value),
1020
+ onMove: ({ x: O }) => Fe(O),
1021
+ onEnd: ({ x: O }) => Je(O)
1022
+ }), { isDragging: Be } = yt(l, {
957
1023
  exact: !0,
958
1024
  axis: "x",
959
- onStart: () => Oe(b.value, x.value),
960
- onMove: ({ x: V }) => ze(V),
961
- onEnd: ({ x: V }) => pt(V)
1025
+ onStart: () => Re(b.value, x.value),
1026
+ onMove: ({ x: O }) => Ze(O),
1027
+ onEnd: ({ x: O }) => D(O)
962
1028
  });
963
- we(() => {
964
- mt();
965
- }), Mn(() => {
966
- ht();
1029
+ Ee(() => {
1030
+ F();
1031
+ }), An(() => {
1032
+ W();
967
1033
  });
968
- function Oe(V, B) {
969
- l.value && (l.value.style.transition = "none"), N.value = { startX: V, startPos: B };
1034
+ function Re(O, B) {
1035
+ l.value && (l.value.style.transition = "none"), X.value = { startX: O, startPos: B };
970
1036
  }
971
- function dt(V) {
972
- if (!ce.value || !l.value) return;
973
- const B = (V - N.value.startX) / O.value, W = Math.max(0, Math.min(v.value - 1, N.value.startPos + B));
974
- l.value.style.left = `${W / e.colspan * 100}%`, l.value.style.width = `${(v.value - W) / e.colspan * 100}%`;
1037
+ function Xe(O) {
1038
+ if (!ge.value || !l.value) return;
1039
+ const B = (O - X.value.startX) / U.value, G = Math.max(0, Math.min(f.value - 1, X.value.startPos + B));
1040
+ l.value.style.left = `${G / e.colspan * 100}%`, l.value.style.width = `${(f.value - G) / e.colspan * 100}%`;
975
1041
  }
976
- function vt(V) {
1042
+ function je(O) {
977
1043
  if (!l.value) return;
978
- const B = V - N.value.startX, W = Math.round(B / O.value), q = x.value, te = Math.max(0, Math.min(v.value - 1, N.value.startPos + W));
979
- x.value = te, e.store.updateGanttBar({
1044
+ const B = O - X.value.startX, G = Math.round(B / U.value), Q = x.value, ne = Math.max(0, Math.min(f.value - 1, X.value.startPos + G));
1045
+ x.value = ne, e.store.updateGanttBar({
980
1046
  rowIndex: e.rowIndex,
981
1047
  colIndex: e.colIndex,
982
1048
  type: "resize",
983
1049
  edge: "start",
984
- oldStart: q,
985
- newStart: te,
986
- end: v.value,
987
- delta: W,
988
- oldColspan: v.value - q,
989
- newColspan: v.value - te
1050
+ oldStart: Q,
1051
+ newStart: ne,
1052
+ end: f.value,
1053
+ delta: G,
1054
+ oldColspan: f.value - Q,
1055
+ newColspan: f.value - ne
990
1056
  });
991
1057
  }
992
- function We(V) {
993
- if (!Ce.value || !l.value) return;
994
- const B = (V - N.value.startX) / O.value, W = Math.max(x.value + 1, Math.min(e.columnsCount, N.value.startPos + B));
995
- l.value.style.width = `${(W - x.value) / e.colspan * 100}%`;
1058
+ function Fe(O) {
1059
+ if (!de.value || !l.value) return;
1060
+ const B = (O - X.value.startX) / U.value, G = Math.max(x.value + 1, Math.min(e.columnsCount, X.value.startPos + B));
1061
+ l.value.style.width = `${(G - x.value) / e.colspan * 100}%`;
996
1062
  }
997
- function ft(V) {
1063
+ function Je(O) {
998
1064
  if (!l.value) return;
999
- const B = V - N.value.startX, W = Math.round(B / O.value), q = v.value, te = Math.max(x.value + 1, Math.min(e.columnsCount, N.value.startPos + W));
1000
- v.value = te, e.store.updateGanttBar({
1065
+ const B = O - X.value.startX, G = Math.round(B / U.value), Q = f.value, ne = Math.max(x.value + 1, Math.min(e.columnsCount, X.value.startPos + G));
1066
+ f.value = ne, e.store.updateGanttBar({
1001
1067
  rowIndex: e.rowIndex,
1002
1068
  colIndex: e.colIndex,
1003
1069
  type: "resize",
1004
1070
  edge: "end",
1005
- oldEnd: q,
1006
- newEnd: te,
1071
+ oldEnd: Q,
1072
+ newEnd: ne,
1007
1073
  start: x.value,
1008
- delta: W,
1009
- oldColspan: q - x.value,
1010
- newColspan: te - x.value
1074
+ delta: G,
1075
+ oldColspan: Q - x.value,
1076
+ newColspan: ne - x.value
1011
1077
  });
1012
1078
  }
1013
- function ze(V) {
1014
- if (!Ne.value || !l.value) return;
1015
- const B = (V - N.value.startX) / O.value, W = v.value - x.value, q = Math.max(0, Math.min(N.value.startPos + B, e.columnsCount - W));
1016
- l.value.style.left = `${q / e.colspan * 100}%`;
1079
+ function Ze(O) {
1080
+ if (!Be.value || !l.value) return;
1081
+ const B = (O - X.value.startX) / U.value, G = f.value - x.value, Q = Math.max(0, Math.min(X.value.startPos + B, e.columnsCount - G));
1082
+ l.value.style.left = `${Q / e.colspan * 100}%`;
1017
1083
  }
1018
- function pt(V) {
1084
+ function D(O) {
1019
1085
  if (!l.value) return;
1020
- const B = V - N.value.startX, W = Math.round(B / O.value), q = v.value - x.value, te = x.value, ne = v.value;
1021
- let se = N.value.startPos + W, le = se + q;
1022
- se < 0 ? (se = 0, le = q) : le > e.columnsCount && (le = e.columnsCount, se = le - q), x.value = se, v.value = le, e.store.updateGanttBar({
1086
+ const B = O - X.value.startX, G = Math.round(B / U.value), Q = f.value - x.value, ne = x.value, ee = f.value;
1087
+ let re = X.value.startPos + G, ce = re + Q;
1088
+ re < 0 ? (re = 0, ce = Q) : ce > e.columnsCount && (ce = e.columnsCount, re = ce - Q), x.value = re, f.value = ce, e.store.updateGanttBar({
1023
1089
  rowIndex: e.rowIndex,
1024
1090
  colIndex: e.colIndex,
1025
1091
  type: "bar",
1026
- oldStart: te,
1027
- oldEnd: ne,
1028
- newStart: se,
1029
- newEnd: le,
1030
- delta: W,
1031
- colspan: le - se
1092
+ oldStart: ne,
1093
+ oldEnd: ee,
1094
+ newStart: re,
1095
+ newEnd: ce,
1096
+ delta: G,
1097
+ colspan: ce - re
1032
1098
  });
1033
1099
  }
1034
- function mt() {
1035
- const { x: V, y: B } = Ae(l), { x: W, y: q } = Ae(c), { x: te, y: ne } = Ae(p);
1100
+ function F() {
1101
+ const { x: O, y: B } = Pe(l), { x: G, y: Q } = Pe(c), { x: ne, y: ee } = Pe(p);
1036
1102
  e.store.registerGanttBar({
1037
1103
  id: r,
1038
1104
  rowIndex: e.rowIndex,
1039
1105
  colIndex: e.colIndex,
1040
1106
  startIndex: x,
1041
- endIndex: v,
1107
+ endIndex: f,
1042
1108
  color: a,
1043
1109
  label: e.label,
1044
- position: { x: V, y: B }
1110
+ position: { x: O, y: B }
1045
1111
  }), e.store.isDependencyGraphEnabled && (e.store.registerConnectionHandle({
1046
1112
  id: `${r}-connection-left`,
1047
1113
  rowIndex: e.rowIndex,
1048
1114
  colIndex: e.colIndex,
1049
1115
  side: "left",
1050
- position: { x: W, y: q },
1116
+ position: { x: G, y: Q },
1051
1117
  visible: m,
1052
1118
  barId: r
1053
1119
  }), e.store.registerConnectionHandle({
@@ -1055,137 +1121,137 @@ const io = (e) => {
1055
1121
  rowIndex: e.rowIndex,
1056
1122
  colIndex: e.colIndex,
1057
1123
  side: "right",
1058
- position: { x: te, y: ne },
1124
+ position: { x: ne, y: ee },
1059
1125
  visible: g,
1060
1126
  barId: r
1061
1127
  }));
1062
1128
  }
1063
- function ht() {
1129
+ function W() {
1064
1130
  e.store.unregisterGanttBar(r), e.store.isDependencyGraphEnabled && (e.store.unregisterConnectionHandle(`${r}-connection-left`), e.store.unregisterConnectionHandle(`${r}-connection-right`));
1065
1131
  }
1066
- function gt() {
1132
+ function j() {
1067
1133
  e.store.isDependencyGraphEnabled && (m.value = !0, g.value = !0);
1068
1134
  }
1069
- function Ge() {
1070
- !M.value && !D.value && (m.value = !1, g.value = !1);
1135
+ function z() {
1136
+ !C.value && !T.value && (m.value = !1, g.value = !1);
1071
1137
  }
1072
- function Ue(V, B) {
1073
- B.preventDefault(), B.stopPropagation(), P.value = !0, V === "left" ? M.value = !0 : D.value = !0;
1074
- const W = V === "left" ? c.value : p.value;
1075
- if (W) {
1076
- const ne = W.getBoundingClientRect(), se = ne.left + ne.width / 2, le = ne.top + ne.height / 2;
1077
- H.value = { startX: se, startY: le, endX: se, endY: le };
1138
+ function se(O, B) {
1139
+ B.preventDefault(), B.stopPropagation(), R.value = !0, O === "left" ? C.value = !0 : T.value = !0;
1140
+ const G = O === "left" ? c.value : p.value;
1141
+ if (G) {
1142
+ const ee = G.getBoundingClientRect(), re = ee.left + ee.width / 2, ce = ee.top + ee.height / 2;
1143
+ S.value = { startX: re, startY: ce, endX: re, endY: ce };
1078
1144
  }
1079
- const q = (ne) => {
1080
- H.value.endX = ne.clientX, H.value.endY = ne.clientY;
1081
- }, te = (ne) => {
1082
- je(ne, V), qe(q, te);
1145
+ const Q = (ee) => {
1146
+ S.value.endX = ee.clientX, S.value.endY = ee.clientY;
1147
+ }, ne = (ee) => {
1148
+ be(ee, O), Le(Q, ne);
1083
1149
  };
1084
- document.addEventListener("mousemove", q), document.addEventListener("mouseup", te);
1150
+ document.addEventListener("mousemove", Q), document.addEventListener("mouseup", ne);
1085
1151
  }
1086
- function je(V, B) {
1087
- const W = document.elementFromPoint(V.clientX, V.clientY)?.closest(".connection-handle");
1088
- if (W && W !== (B === "left" ? c.value : p.value)) {
1089
- const q = W.closest(".gantt-bar");
1090
- if (q) {
1091
- const te = parseInt(q.getAttribute("data-rowindex") || "0"), ne = parseInt(q.getAttribute("data-colindex") || "0"), se = W.classList.contains("left-connection-handle") ? "left" : "right", le = `gantt-bar-row-${te}-col-${ne}`, d = e.store.createConnection(
1152
+ function be(O, B) {
1153
+ const G = document.elementFromPoint(O.clientX, O.clientY)?.closest(".connection-handle");
1154
+ if (G && G !== (B === "left" ? c.value : p.value)) {
1155
+ const Q = G.closest(".gantt-bar");
1156
+ if (Q) {
1157
+ const ne = parseInt(Q.getAttribute("data-rowindex") || "0"), ee = parseInt(Q.getAttribute("data-colindex") || "0"), re = G.classList.contains("left-connection-handle") ? "left" : "right", ce = `gantt-bar-row-${ne}-col-${ee}`, d = e.store.createConnection(
1092
1158
  `${r}-connection-${B}`,
1093
- `${le}-connection-${se}`
1159
+ `${ce}-connection-${re}`
1094
1160
  );
1095
1161
  d && o("connection:create", d);
1096
1162
  }
1097
1163
  }
1098
1164
  }
1099
- function qe(V, B) {
1100
- P.value = !1, M.value = !1, D.value = !1, document.removeEventListener("mousemove", V), document.removeEventListener("mouseup", B), l.value?.matches(":hover") || Ge();
1165
+ function Le(O, B) {
1166
+ R.value = !1, C.value = !1, T.value = !1, document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", B), l.value?.matches(":hover") || z();
1101
1167
  }
1102
1168
  return t({
1103
- barStyle: X,
1104
- cleanupConnectionDrag: qe,
1105
- currentEnd: v,
1106
- handleConnectionDrop: je,
1107
- isLeftConnectionDragging: M,
1169
+ barStyle: ve,
1170
+ cleanupConnectionDrag: Le,
1171
+ currentEnd: f,
1172
+ handleConnectionDrop: be,
1173
+ isLeftConnectionDragging: C,
1108
1174
  isLeftConnectionVisible: m,
1109
- isRightConnectionDragging: D,
1175
+ isRightConnectionDragging: T,
1110
1176
  isRightConnectionVisible: g,
1111
- showDragPreview: P
1112
- }), (V, B) => (w(), k("td", {
1177
+ showDragPreview: R
1178
+ }), (O, B) => (w(), k("td", {
1113
1179
  class: "aganttcell",
1114
1180
  colspan: e.colspan
1115
1181
  }, [
1116
- y("div", bo, [
1182
+ y("div", ko, [
1117
1183
  y("div", {
1118
1184
  ref: "bar",
1119
1185
  "data-rowindex": e.rowIndex,
1120
1186
  "data-colindex": e.colIndex,
1121
- class: K(["gantt-bar", { "is-dragging": E.value }]),
1122
- style: fe(X.value),
1123
- onMouseenter: gt,
1124
- onMouseleave: Ge
1187
+ class: ae(["gantt-bar", { "is-dragging": _.value }]),
1188
+ style: xe(ve.value),
1189
+ onMouseenter: j,
1190
+ onMouseleave: z
1125
1191
  }, [
1126
1192
  e.store.isDependencyGraphEnabled ? (w(), k("div", {
1127
1193
  key: 0,
1128
1194
  ref: "leftConnectionHandle",
1129
- class: K(["connection-handle left-connection-handle", { visible: m.value, "is-dragging": M.value }]),
1130
- onMousedown: B[0] || (B[0] = pe((W) => Ue("left", W), ["stop"]))
1195
+ class: ae(["connection-handle left-connection-handle", { visible: m.value, "is-dragging": C.value }]),
1196
+ onMousedown: B[0] || (B[0] = Ie((G) => se("left", G), ["stop"]))
1131
1197
  }, [...B[2] || (B[2] = [
1132
1198
  y("div", { class: "connection-dot" }, null, -1)
1133
- ])], 34)) : z("", !0),
1199
+ ])], 34)) : q("", !0),
1134
1200
  e.store.isDependencyGraphEnabled ? (w(), k("div", {
1135
1201
  key: 1,
1136
1202
  ref: "rightConnectionHandle",
1137
- class: K(["connection-handle right-connection-handle", { visible: g.value, "is-dragging": D.value }]),
1138
- onMousedown: B[1] || (B[1] = pe((W) => Ue("right", W), ["stop"]))
1203
+ class: ae(["connection-handle right-connection-handle", { visible: g.value, "is-dragging": T.value }]),
1204
+ onMousedown: B[1] || (B[1] = Ie((G) => se("right", G), ["stop"]))
1139
1205
  }, [...B[3] || (B[3] = [
1140
1206
  y("div", { class: "connection-dot" }, null, -1)
1141
- ])], 34)) : z("", !0),
1207
+ ])], 34)) : q("", !0),
1142
1208
  y("div", {
1143
1209
  ref: "leftResizeHandle",
1144
- class: K(["resize-handle left-resize-handle", { "is-dragging": L(ce) }])
1210
+ class: ae(["resize-handle left-resize-handle", { "is-dragging": V(ge) }])
1145
1211
  }, [...B[4] || (B[4] = [
1146
1212
  y("div", { class: "handle-grip" }, null, -1),
1147
1213
  y("div", { class: "vertical-indicator left-indicator" }, null, -1)
1148
1214
  ])], 2),
1149
- e.label ? (w(), k("label", Io, j(e.label), 1)) : z("", !0),
1215
+ e.label ? (w(), k("label", Co, K(e.label), 1)) : q("", !0),
1150
1216
  y("div", {
1151
1217
  ref: "rightResizeHandle",
1152
- class: K(["resize-handle right-resize-handle", { "is-dragging": L(Ce) }])
1218
+ class: ae(["resize-handle right-resize-handle", { "is-dragging": V(de) }])
1153
1219
  }, [...B[5] || (B[5] = [
1154
1220
  y("div", { class: "handle-grip" }, null, -1),
1155
1221
  y("div", { class: "vertical-indicator right-indicator" }, null, -1)
1156
1222
  ])], 2)
1157
- ], 46, ko)
1223
+ ], 46, Mo)
1158
1224
  ], 512),
1159
- e.store.isDependencyGraphEnabled && P.value ? (w(), k("svg", {
1225
+ e.store.isDependencyGraphEnabled && R.value ? (w(), k("svg", {
1160
1226
  key: 0,
1161
- style: fe(G.value)
1227
+ style: xe(Y.value)
1162
1228
  }, [
1163
1229
  y("line", {
1164
- x1: H.value.startX,
1165
- y1: H.value.startY,
1166
- x2: H.value.endX,
1167
- y2: H.value.endY,
1230
+ x1: S.value.startX,
1231
+ y1: S.value.startY,
1232
+ x2: S.value.endX,
1233
+ y2: S.value.endY,
1168
1234
  stroke: "#2196f3",
1169
1235
  "stroke-width": "2",
1170
1236
  "stroke-dasharray": "5,5"
1171
- }, null, 8, Co)
1172
- ], 4)) : z("", !0)
1173
- ], 8, xo));
1237
+ }, null, 8, Eo)
1238
+ ], 4)) : q("", !0)
1239
+ ], 8, Io));
1174
1240
  }
1175
- }), Eo = /* @__PURE__ */ Ee(Mo, [["__scopeId", "data-v-8917a8a3"]]), Ao = `<?xml version="1.0" encoding="UTF-8"?>
1241
+ }), To = /* @__PURE__ */ Ve(Ao, [["__scopeId", "data-v-8917a8a3"]]), $o = `<?xml version="1.0" encoding="UTF-8"?>
1176
1242
  <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
1177
1243
  <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;"/>
1178
1244
  <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;"/>
1179
1245
  </svg>
1180
- `, To = `<?xml version="1.0" encoding="UTF-8"?>
1246
+ `, Do = `<?xml version="1.0" encoding="UTF-8"?>
1181
1247
  <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
1182
1248
  <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;"/>
1183
1249
  <polygon points="46.84 19.99 44.01 17.16 32 29.17 19.99 17.16 17.16 19.99 29.17 32 17.16 44.01 19.99 46.84 32 34.83 44.01 46.84 46.84 44.01 34.83 32 46.84 19.99" style="fill: #000; stroke-width: 0px;"/>
1184
- </svg>`, Do = `<?xml version="1.0" encoding="UTF-8"?>
1250
+ </svg>`, So = `<?xml version="1.0" encoding="UTF-8"?>
1185
1251
  <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.67 70.67">
1186
1252
  <path d="M68.67,16.67h-14.67V2c0-1.1-.9-2-2-2H2C.9,0,0,.9,0,2v50c0,1.1.9,2,2,2h14.67v14.67c0,1.1.9,2,2,2h50c1.1,0,2-.9,2-2V18.67c0-1.1-.9-2-2-2ZM4,4h46v46H4V4ZM66.67,66.67H20.67v-12.67h31.33c1.1,0,2-.9,2-2v-31.33h12.67v46Z" style="fill: #000; stroke-width: 0px;"/>
1187
1253
  <polygon points="41 25 29 25 29 13 25 13 25 25 13 25 13 29 25 29 25 41 29 41 29 29 41 29 41 25" style="fill: #000; stroke-width: 0px;"/>
1188
- </svg>`, $o = `<?xml version="1.0" encoding="UTF-8"?>
1254
+ </svg>`, Ro = `<?xml version="1.0" encoding="UTF-8"?>
1189
1255
  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 70.6 61.5">
1190
1256
  <path d="M68.6,45.8v13.7H2v-13.7h66.6M70.6,43.8H0v17.7h70.6v-17.7h0Z"/>
1191
1257
  <path d="M68.6,24.2v13.7H2v-13.7h66.6M70.6,22.2H0v17.7h70.6v-17.7h0Z"/>
@@ -1199,7 +1265,7 @@ const io = (e) => {
1199
1265
  <polygon points="70.6 18.7 68.1 18.7 68.1 16.7 68.6 16.7 68.6 16.2 70.6 16.2 70.6 18.7"/>
1200
1266
  <path d="M70.6,13.4h-2v-2.7h2v2.7ZM70.6,8h-2v-2.7h2v2.7Z"/>
1201
1267
  </g>
1202
- </svg>`, So = `<?xml version="1.0" encoding="UTF-8"?>
1268
+ </svg>`, Lo = `<?xml version="1.0" encoding="UTF-8"?>
1203
1269
  <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 70.6 61.5">
1204
1270
  <g>
1205
1271
  <polygon points="70.6 45.3 68.6 45.3 68.6 44.8 68.1 44.8 68.1 42.8 70.6 42.8 70.6 45.3"/>
@@ -1213,23 +1279,23 @@ const io = (e) => {
1213
1279
  </g>
1214
1280
  <path d="M68.6,23.7v13.7H2v-13.7h66.6M70.6,21.7H0v17.7h70.6v-17.7h0Z"/>
1215
1281
  <path d="M68.6,2v13.7H2V2h66.6M70.6,0H0v17.7h70.6V0h0Z"/>
1216
- </svg>`, Ro = `<?xml version="1.0" encoding="UTF-8"?>
1282
+ </svg>`, Ho = `<?xml version="1.0" encoding="UTF-8"?>
1217
1283
  <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.67 70.64">
1218
1284
  <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;"/>
1219
- </svg>`, Lo = {
1220
- add: Ao,
1221
- delete: To,
1222
- duplicate: Do,
1223
- insertAbove: $o,
1224
- insertBelow: So,
1225
- move: Ro
1226
- }, Ho = {
1285
+ </svg>`, Vo = {
1286
+ add: $o,
1287
+ delete: Do,
1288
+ duplicate: So,
1289
+ insertAbove: Ro,
1290
+ insertBelow: Lo,
1291
+ move: Ho
1292
+ }, Po = {
1227
1293
  key: 0,
1228
1294
  class: "row-actions-dropdown"
1229
- }, _o = ["aria-expanded"], Vo = ["onClick"], Oo = ["innerHTML"], Po = { class: "action-label" }, Bo = {
1295
+ }, Oo = ["aria-expanded"], _o = ["onClick"], Bo = ["innerHTML"], Fo = { class: "action-label" }, Zo = {
1230
1296
  key: 1,
1231
1297
  class: "row-actions-icons"
1232
- }, Fo = ["title", "aria-label", "onClick"], Zo = ["innerHTML"], tt = /* @__PURE__ */ Y({
1298
+ }, No = ["title", "aria-label", "onClick"], Uo = ["innerHTML"], ut = /* @__PURE__ */ te({
1233
1299
  __name: "ARowActions",
1234
1300
  props: {
1235
1301
  rowIndex: {},
@@ -1239,27 +1305,27 @@ const io = (e) => {
1239
1305
  },
1240
1306
  emits: ["action"],
1241
1307
  setup(e, { emit: t }) {
1242
- const n = e, o = t, a = ae("actionsCell"), r = ae("toggleButton"), s = S(0), l = S(!1), i = S(!1), u = S({ top: 0, left: 0 }), c = {
1308
+ const n = e, o = t, a = fe("actionsCell"), r = fe("toggleButton"), s = L(0), l = L(!1), i = L(!1), u = L({ top: 0, left: 0 }), c = {
1243
1309
  add: "Add Row",
1244
1310
  delete: "Delete Row",
1245
1311
  duplicate: "Duplicate Row",
1246
1312
  insertAbove: "Insert Above",
1247
1313
  insertBelow: "Insert Below",
1248
1314
  move: "Move Row"
1249
- }, p = T(() => {
1250
- const m = [], g = n.config.actions || {}, M = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
1251
- for (const D of M) {
1252
- const P = g[D];
1253
- if (P === !1 || P === void 0) continue;
1254
- let H = !0, E = c[D], O = Lo[D];
1255
- typeof P == "object" && (H = P.enabled !== !1, E = P.label || E, O = P.icon || O), H && m.push({ type: D, label: E, icon: O });
1315
+ }, p = $(() => {
1316
+ const m = [], g = n.config.actions || {}, C = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
1317
+ for (const T of C) {
1318
+ const R = g[T];
1319
+ if (R === !1 || R === void 0) continue;
1320
+ let S = !0, _ = c[T], U = Vo[T];
1321
+ typeof R == "object" && (S = R.enabled !== !1, _ = R.label || _, U = R.icon || U), S && m.push({ type: T, label: _, icon: U });
1256
1322
  }
1257
1323
  return m;
1258
- }), h = T(() => {
1324
+ }), h = $(() => {
1259
1325
  if (n.config.forceDropdown) return !0;
1260
1326
  const m = n.config.dropdownThreshold ?? 150;
1261
1327
  return m === 0 ? !1 : s.value > 0 && s.value < m;
1262
- }), b = T(() => l.value ? i.value ? {
1328
+ }), b = $(() => l.value ? i.value ? {
1263
1329
  position: "fixed",
1264
1330
  bottom: `${window.innerHeight - u.value.top}px`,
1265
1331
  left: `${u.value.left}px`,
@@ -1269,16 +1335,16 @@ const io = (e) => {
1269
1335
  top: `${u.value.top}px`,
1270
1336
  left: `${u.value.left}px`
1271
1337
  } : {});
1272
- lt(a, (m) => {
1338
+ ft(a, (m) => {
1273
1339
  const g = m[0];
1274
1340
  g && (s.value = g.contentRect.width);
1275
1341
  });
1276
- const C = () => {
1342
+ const I = () => {
1277
1343
  l.value || x(), l.value = !l.value;
1278
1344
  }, x = () => {
1279
1345
  if (!r.value) return;
1280
- const m = r.value.getBoundingClientRect(), g = window.innerHeight, M = p.value.length * 40 + 16, D = g - m.bottom, P = m.top;
1281
- i.value = D < M && P > M, i.value ? u.value = {
1346
+ const m = r.value.getBoundingClientRect(), g = window.innerHeight, C = p.value.length * 40 + 16, T = g - m.bottom, R = m.top;
1347
+ i.value = T < C && R > C, i.value ? u.value = {
1282
1348
  top: m.top,
1283
1349
  left: m.left
1284
1350
  } : u.value = {
@@ -1286,68 +1352,68 @@ const io = (e) => {
1286
1352
  left: m.left
1287
1353
  };
1288
1354
  };
1289
- Tt(a, () => {
1355
+ $t(a, () => {
1290
1356
  l.value = !1;
1291
1357
  });
1292
- const v = (m) => {
1358
+ const f = (m) => {
1293
1359
  l.value = !1;
1294
1360
  const g = n.config.actions?.[m];
1295
1361
  typeof g == "object" && g.handler && g.handler(n.rowIndex, n.store) === !1 || o("action", m, n.rowIndex);
1296
1362
  };
1297
1363
  return (m, g) => (w(), k("td", {
1298
1364
  ref: "actionsCell",
1299
- class: K(["atable-row-actions", { "sticky-column": e.position === "before-index", "dropdown-active": l.value }])
1365
+ class: ae(["atable-row-actions", { "sticky-column": e.position === "before-index", "dropdown-active": l.value }])
1300
1366
  }, [
1301
- h.value ? (w(), k("div", Ho, [
1367
+ h.value ? (w(), k("div", Po, [
1302
1368
  y("button", {
1303
1369
  ref: "toggleButton",
1304
1370
  type: "button",
1305
1371
  class: "row-actions-toggle",
1306
1372
  "aria-expanded": l.value,
1307
1373
  "aria-haspopup": "true",
1308
- onClick: pe(C, ["stop"])
1374
+ onClick: Ie(I, ["stop"])
1309
1375
  }, [...g[0] || (g[0] = [
1310
1376
  y("span", { class: "dropdown-icon" }, "⋮", -1)
1311
- ])], 8, _o),
1312
- U(y("div", {
1313
- class: K(["row-actions-menu", { "menu-flipped": i.value }]),
1314
- style: fe(b.value),
1377
+ ])], 8, Oo),
1378
+ J(y("div", {
1379
+ class: ae(["row-actions-menu", { "menu-flipped": i.value }]),
1380
+ style: xe(b.value),
1315
1381
  role: "menu"
1316
1382
  }, [
1317
- (w(!0), k(oe, null, ie(p.value, (M) => (w(), k("button", {
1318
- key: M.type,
1383
+ (w(!0), k(ue, null, me(p.value, (C) => (w(), k("button", {
1384
+ key: C.type,
1319
1385
  type: "button",
1320
1386
  class: "row-action-menu-item",
1321
1387
  role: "menuitem",
1322
- onClick: pe((D) => v(M.type), ["stop"])
1388
+ onClick: Ie((T) => f(C.type), ["stop"])
1323
1389
  }, [
1324
1390
  y("span", {
1325
1391
  class: "action-icon",
1326
- innerHTML: M.icon
1327
- }, null, 8, Oo),
1328
- y("span", Po, j(M.label), 1)
1329
- ], 8, Vo))), 128))
1392
+ innerHTML: C.icon
1393
+ }, null, 8, Bo),
1394
+ y("span", Fo, K(C.label), 1)
1395
+ ], 8, _o))), 128))
1330
1396
  ], 6), [
1331
- [ge, l.value]
1397
+ [Ce, l.value]
1332
1398
  ])
1333
- ])) : (w(), k("div", Bo, [
1334
- (w(!0), k(oe, null, ie(p.value, (M) => (w(), k("button", {
1335
- key: M.type,
1399
+ ])) : (w(), k("div", Zo, [
1400
+ (w(!0), k(ue, null, me(p.value, (C) => (w(), k("button", {
1401
+ key: C.type,
1336
1402
  type: "button",
1337
1403
  class: "row-action-btn",
1338
- title: M.label,
1339
- "aria-label": M.label,
1340
- onClick: pe((D) => v(M.type), ["stop"])
1404
+ title: C.label,
1405
+ "aria-label": C.label,
1406
+ onClick: Ie((T) => f(C.type), ["stop"])
1341
1407
  }, [
1342
1408
  y("span", {
1343
1409
  class: "action-icon",
1344
- innerHTML: M.icon
1345
- }, null, 8, Zo)
1346
- ], 8, Fo))), 128))
1410
+ innerHTML: C.icon
1411
+ }, null, 8, Uo)
1412
+ ], 8, No))), 128))
1347
1413
  ]))
1348
1414
  ], 2));
1349
1415
  }
1350
- }), No = ["tabindex"], Wo = /* @__PURE__ */ Y({
1416
+ }), Wo = ["tabindex"], Go = /* @__PURE__ */ te({
1351
1417
  __name: "ARow",
1352
1418
  props: {
1353
1419
  rowIndex: {},
@@ -1357,97 +1423,97 @@ const io = (e) => {
1357
1423
  },
1358
1424
  emits: ["row:action"],
1359
1425
  setup(e, { emit: t }) {
1360
- const n = t, o = ae("rowEl"), a = T(() => e.store.isRowVisible(e.rowIndex)), r = T(() => e.store.getRowExpandSymbol(e.rowIndex)), s = T(() => e.store.config.rowActions || { enabled: !1 }), l = T(() => s.value.enabled), i = T(() => s.value.position || "before-index"), u = (c, p) => {
1426
+ const n = t, o = fe("rowEl"), a = $(() => e.store.isRowVisible(e.rowIndex)), r = $(() => e.store.getRowExpandSymbol(e.rowIndex)), s = $(() => e.store.config.rowActions || { enabled: !1 }), l = $(() => s.value.enabled), i = $(() => s.value.position || "before-index"), u = (c, p) => {
1361
1427
  n("row:action", c, p);
1362
1428
  };
1363
1429
  if (e.addNavigation) {
1364
- let c = ct;
1430
+ let c = wt;
1365
1431
  typeof e.addNavigation == "object" && (c = {
1366
1432
  ...c,
1367
1433
  ...e.addNavigation
1368
- }), Vt([
1434
+ }), Ot([
1369
1435
  {
1370
1436
  selectors: o,
1371
1437
  handlers: c
1372
1438
  }
1373
1439
  ]);
1374
1440
  }
1375
- return (c, p) => U((w(), k("tr", {
1441
+ return (c, p) => J((w(), k("tr", {
1376
1442
  ref: "rowEl",
1377
1443
  tabindex: e.tabIndex,
1378
1444
  class: "atable-row"
1379
1445
  }, [
1380
- l.value && i.value === "before-index" ? (w(), re(tt, {
1446
+ l.value && i.value === "before-index" ? (w(), pe(ut, {
1381
1447
  key: 0,
1382
1448
  "row-index": e.rowIndex,
1383
1449
  store: e.store,
1384
1450
  config: s.value,
1385
1451
  position: i.value,
1386
1452
  onAction: u
1387
- }, null, 8, ["row-index", "store", "config", "position"])) : z("", !0),
1388
- e.store.config.view !== "uncounted" ? ue(c.$slots, "index", { key: 1 }, () => [
1453
+ }, null, 8, ["row-index", "store", "config", "position"])) : q("", !0),
1454
+ e.store.config.view !== "uncounted" ? he(c.$slots, "index", { key: 1 }, () => [
1389
1455
  e.store.config.view === "list" ? (w(), k("td", {
1390
1456
  key: 0,
1391
1457
  tabIndex: -1,
1392
- class: K(["list-index", e.store.hasPinnedColumns ? "sticky-index" : ""])
1393
- }, j(e.rowIndex + 1), 3)) : e.store.isTreeView ? (w(), k("td", {
1458
+ class: ae(["list-index", e.store.hasPinnedColumns ? "sticky-index" : ""])
1459
+ }, K(e.rowIndex + 1), 3)) : e.store.isTreeView ? (w(), k("td", {
1394
1460
  key: 1,
1395
1461
  tabIndex: -1,
1396
- class: K(["tree-index", e.store.hasPinnedColumns ? "sticky-index" : ""]),
1462
+ class: ae(["tree-index", e.store.hasPinnedColumns ? "sticky-index" : ""]),
1397
1463
  onClick: p[0] || (p[0] = (h) => e.store.toggleRowExpand(e.rowIndex))
1398
- }, j(r.value), 3)) : z("", !0)
1399
- ], !0) : z("", !0),
1400
- l.value && i.value === "after-index" ? (w(), re(tt, {
1464
+ }, K(r.value), 3)) : q("", !0)
1465
+ ], !0) : q("", !0),
1466
+ l.value && i.value === "after-index" ? (w(), pe(ut, {
1401
1467
  key: 2,
1402
1468
  "row-index": e.rowIndex,
1403
1469
  store: e.store,
1404
1470
  config: s.value,
1405
1471
  position: i.value,
1406
1472
  onAction: u
1407
- }, null, 8, ["row-index", "store", "config", "position"])) : z("", !0),
1408
- ue(c.$slots, "default", {}, void 0, !0),
1409
- l.value && i.value === "end" ? (w(), re(tt, {
1473
+ }, null, 8, ["row-index", "store", "config", "position"])) : q("", !0),
1474
+ he(c.$slots, "default", {}, void 0, !0),
1475
+ l.value && i.value === "end" ? (w(), pe(ut, {
1410
1476
  key: 3,
1411
1477
  "row-index": e.rowIndex,
1412
1478
  store: e.store,
1413
1479
  config: s.value,
1414
1480
  position: i.value,
1415
1481
  onAction: u
1416
- }, null, 8, ["row-index", "store", "config", "position"])) : z("", !0)
1417
- ], 8, No)), [
1418
- [ge, a.value]
1482
+ }, null, 8, ["row-index", "store", "config", "position"])) : q("", !0)
1483
+ ], 8, Wo)), [
1484
+ [Ce, a.value]
1419
1485
  ]);
1420
1486
  }
1421
- }), mn = /* @__PURE__ */ Ee(Wo, [["__scopeId", "data-v-c35a3748"]]), bt = /* @__PURE__ */ new WeakMap(), zo = {
1487
+ }), hn = /* @__PURE__ */ Ve(Go, [["__scopeId", "data-v-c35a3748"]]), It = /* @__PURE__ */ new WeakMap(), zo = {
1422
1488
  mounted(e, t) {
1423
1489
  const n = !t.modifiers.bubble;
1424
1490
  let o;
1425
- if (typeof t.value == "function") o = Tt(e, t.value, { capture: n });
1491
+ if (typeof t.value == "function") o = $t(e, t.value, { capture: n });
1426
1492
  else {
1427
1493
  const [a, r] = t.value;
1428
- o = Tt(e, a, Object.assign({ capture: n }, r));
1494
+ o = $t(e, a, Object.assign({ capture: n }, r));
1429
1495
  }
1430
- bt.set(e, o);
1496
+ It.set(e, o);
1431
1497
  },
1432
1498
  unmounted(e) {
1433
- const t = bt.get(e);
1434
- t && typeof t == "function" ? t() : t?.stop(), bt.delete(e);
1499
+ const t = It.get(e);
1500
+ t && typeof t == "function" ? t() : t?.stop(), It.delete(e);
1435
1501
  }
1436
- }, Go = { mounted(e, t) {
1437
- typeof t.value == "function" ? lt(e, t.value) : lt(e, ...t.value);
1502
+ }, qo = { mounted(e, t) {
1503
+ typeof t.value == "function" ? ft(e, t.value) : ft(e, ...t.value);
1438
1504
  } };
1439
- function Uo() {
1505
+ function Yo() {
1440
1506
  let e = !1;
1441
- const t = ee(!1);
1507
+ const t = ie(!1);
1442
1508
  return (n, o) => {
1443
1509
  if (t.value = o.value, e) return;
1444
1510
  e = !0;
1445
- const a = ro(n, o.value);
1446
- Q(t, (r) => a.value = r);
1511
+ const a = uo(n, o.value);
1512
+ oe(t, (r) => a.value = r);
1447
1513
  };
1448
1514
  }
1449
- Uo();
1450
- const jo = { class: "gantt-connection-overlay" }, qo = {
1515
+ Yo();
1516
+ const Xo = { class: "gantt-connection-overlay" }, jo = {
1451
1517
  class: "connection-svg",
1452
1518
  style: {
1453
1519
  position: "absolute",
@@ -1458,30 +1524,30 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
1458
1524
  pointerEvents: "none",
1459
1525
  zIndex: 1
1460
1526
  }
1461
- }, Yo = ["d", "stroke-width", "onDblclick"], Xo = ["id", "d", "stroke", "stroke-width", "onDblclick"], Jo = 0.25, Je = 16, Ko = /* @__PURE__ */ Y({
1527
+ }, Jo = ["d", "stroke-width", "onDblclick"], Qo = ["id", "d", "stroke", "stroke-width", "onDblclick"], Ko = 0.25, at = 16, el = /* @__PURE__ */ te({
1462
1528
  __name: "AGanttConnection",
1463
1529
  props: {
1464
1530
  store: {}
1465
1531
  },
1466
1532
  emits: ["connection:delete"],
1467
1533
  setup(e, { emit: t }) {
1468
- const n = t, o = T(() => e.store.connectionPaths.filter((s) => {
1534
+ const n = t, o = $(() => e.store.connectionPaths.filter((s) => {
1469
1535
  const l = e.store.ganttBars.find((u) => u.id === s.from.barId), i = e.store.ganttBars.find((u) => u.id === s.to.barId);
1470
1536
  return l && i;
1471
1537
  })), a = (s) => {
1472
1538
  const l = e.store.connectionHandles.find(
1473
- (E) => E.barId === s.from.barId && E.side === s.from.side
1539
+ (_) => _.barId === s.from.barId && _.side === s.from.side
1474
1540
  ), i = e.store.connectionHandles.find(
1475
- (E) => E.barId === s.to.barId && E.side === s.to.side
1541
+ (_) => _.barId === s.to.barId && _.side === s.to.side
1476
1542
  );
1477
1543
  if (!l || !i) return "";
1478
- const u = l.position.x + Je / 2, c = l.position.y + Je / 2, p = i.position.x + Je / 2, h = i.position.y + Je / 2, b = Math.abs(p - u), C = Math.max(b * Jo, 50), x = u + (s.from.side === "left" ? -C : C), v = p + (s.to.side === "left" ? -C : C), m = { x: 0.5 * u + 0.5 * x, y: 0.5 * c + 0.5 * c }, g = { x: 0.5 * x + 0.5 * v, y: 0.5 * c + 0.5 * h }, M = { x: 0.5 * v + 0.5 * p, y: 0.5 * h + 0.5 * h }, D = { x: 0.5 * m.x + 0.5 * g.x, y: 0.5 * m.y + 0.5 * g.y }, P = { x: 0.5 * g.x + 0.5 * M.x, y: 0.5 * g.y + 0.5 * M.y }, H = { x: 0.5 * D.x + 0.5 * P.x, y: 0.5 * D.y + 0.5 * P.y };
1479
- return `M ${u} ${c} Q ${x} ${c}, ${H.x} ${H.y} Q ${v} ${h}, ${p} ${h}`;
1544
+ const u = l.position.x + at / 2, c = l.position.y + at / 2, p = i.position.x + at / 2, h = i.position.y + at / 2, b = Math.abs(p - u), I = Math.max(b * Ko, 50), x = u + (s.from.side === "left" ? -I : I), f = p + (s.to.side === "left" ? -I : I), m = { x: 0.5 * u + 0.5 * x, y: 0.5 * c + 0.5 * c }, g = { x: 0.5 * x + 0.5 * f, y: 0.5 * c + 0.5 * h }, C = { x: 0.5 * f + 0.5 * p, y: 0.5 * h + 0.5 * h }, T = { x: 0.5 * m.x + 0.5 * g.x, y: 0.5 * m.y + 0.5 * g.y }, R = { x: 0.5 * g.x + 0.5 * C.x, y: 0.5 * g.y + 0.5 * C.y }, S = { x: 0.5 * T.x + 0.5 * R.x, y: 0.5 * T.y + 0.5 * R.y };
1545
+ return `M ${u} ${c} Q ${x} ${c}, ${S.x} ${S.y} Q ${f} ${h}, ${p} ${h}`;
1480
1546
  }, r = (s) => {
1481
1547
  e.store.deleteConnection(s.id) && n("connection:delete", s);
1482
1548
  };
1483
- return (s, l) => (w(), k("div", jo, [
1484
- (w(), k("svg", qo, [
1549
+ return (s, l) => (w(), k("div", Xo, [
1550
+ (w(), k("svg", jo, [
1485
1551
  l[0] || (l[0] = y("defs", null, [
1486
1552
  y("path", {
1487
1553
  id: "arrowhead",
@@ -1505,7 +1571,7 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
1505
1571
  })
1506
1572
  ])
1507
1573
  ], -1)),
1508
- (w(!0), k(oe, null, ie(o.value, (i) => (w(), k("path", {
1574
+ (w(!0), k(ue, null, me(o.value, (i) => (w(), k("path", {
1509
1575
  key: `${i.id}-hitbox`,
1510
1576
  d: a(i),
1511
1577
  stroke: "transparent",
@@ -1513,8 +1579,8 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
1513
1579
  fill: "none",
1514
1580
  class: "connection-hitbox",
1515
1581
  onDblclick: (u) => r(i)
1516
- }, null, 40, Yo))), 128)),
1517
- (w(!0), k(oe, null, ie(o.value, (i) => (w(), k("path", {
1582
+ }, null, 40, Jo))), 128)),
1583
+ (w(!0), k(ue, null, me(o.value, (i) => (w(), k("path", {
1518
1584
  id: i.id,
1519
1585
  key: i.id,
1520
1586
  d: a(i),
@@ -1524,17 +1590,17 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
1524
1590
  "marker-mid": "url(#arrowhead-marker)",
1525
1591
  class: "connection-path animated-path",
1526
1592
  onDblclick: (u) => r(i)
1527
- }, null, 40, Xo))), 128))
1593
+ }, null, 40, Qo))), 128))
1528
1594
  ]))
1529
1595
  ]));
1530
1596
  }
1531
- }), Qo = /* @__PURE__ */ Ee(Ko, [["__scopeId", "data-v-71911260"]]), el = { class: "column-filter" }, tl = {
1597
+ }), tl = /* @__PURE__ */ Ve(el, [["__scopeId", "data-v-71911260"]]), nl = { class: "column-filter" }, ol = {
1532
1598
  key: 2,
1533
1599
  class: "checkbox-filter"
1534
- }, nl = ["value"], ol = {
1600
+ }, ll = ["value"], al = {
1535
1601
  key: 5,
1536
1602
  class: "date-range-filter"
1537
- }, ll = /* @__PURE__ */ Y({
1603
+ }, sl = /* @__PURE__ */ te({
1538
1604
  __name: "ATableColumnFilter",
1539
1605
  props: {
1540
1606
  column: {},
@@ -1542,7 +1608,7 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
1542
1608
  store: {}
1543
1609
  },
1544
1610
  setup(e) {
1545
- const t = S(""), n = sn({
1611
+ const t = L(""), n = rn({
1546
1612
  startValue: "",
1547
1613
  endValue: ""
1548
1614
  }), o = (i) => {
@@ -1555,7 +1621,7 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
1555
1621
  value: c,
1556
1622
  label: String(c)
1557
1623
  }));
1558
- }, a = T(() => !!(t.value || n.startValue || n.endValue)), r = (i) => {
1624
+ }, a = $(() => !!(t.value || n.startValue || n.endValue)), r = (i) => {
1559
1625
  !i && e.column.filterType !== "checkbox" ? (e.store.clearFilter(e.colIndex), t.value = "") : (t.value = i, e.store.setFilter(e.colIndex, { value: i }));
1560
1626
  }, s = (i, u) => {
1561
1627
  i === "start" ? n.startValue = u : n.endValue = u, !n.startValue && !n.endValue ? e.store.clearFilter(e.colIndex) : e.store.setFilter(e.colIndex, {
@@ -1566,189 +1632,189 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
1566
1632
  }, l = () => {
1567
1633
  t.value = "", n.startValue = "", n.endValue = "", e.store.clearFilter(e.colIndex);
1568
1634
  };
1569
- return (i, u) => (w(), k("div", el, [
1570
- (e.column.filterType || "text") === "text" ? U((w(), k("input", {
1635
+ return (i, u) => (w(), k("div", nl, [
1636
+ (e.column.filterType || "text") === "text" ? J((w(), k("input", {
1571
1637
  key: 0,
1572
1638
  "onUpdate:modelValue": u[0] || (u[0] = (c) => t.value = c),
1573
1639
  type: "text",
1574
1640
  class: "filter-input",
1575
1641
  onInput: u[1] || (u[1] = (c) => r(t.value))
1576
1642
  }, null, 544)), [
1577
- [de, t.value]
1578
- ]) : e.column.filterType === "number" ? U((w(), k("input", {
1643
+ [we, t.value]
1644
+ ]) : e.column.filterType === "number" ? J((w(), k("input", {
1579
1645
  key: 1,
1580
1646
  "onUpdate:modelValue": u[2] || (u[2] = (c) => t.value = c),
1581
1647
  type: "number",
1582
1648
  class: "filter-input",
1583
1649
  onInput: u[3] || (u[3] = (c) => r(t.value))
1584
1650
  }, null, 544)), [
1585
- [de, t.value]
1586
- ]) : e.column.filterType === "checkbox" ? (w(), k("label", tl, [
1587
- U(y("input", {
1651
+ [we, t.value]
1652
+ ]) : e.column.filterType === "checkbox" ? (w(), k("label", ol, [
1653
+ J(y("input", {
1588
1654
  "onUpdate:modelValue": u[4] || (u[4] = (c) => t.value = c),
1589
1655
  type: "checkbox",
1590
1656
  class: "filter-checkbox",
1591
1657
  onChange: u[5] || (u[5] = (c) => r(t.value))
1592
1658
  }, null, 544), [
1593
- [rn, t.value]
1659
+ [un, t.value]
1594
1660
  ]),
1595
- y("span", null, j(e.column.label), 1)
1596
- ])) : e.column.filterType === "select" ? U((w(), k("select", {
1661
+ y("span", null, K(e.column.label), 1)
1662
+ ])) : e.column.filterType === "select" ? J((w(), k("select", {
1597
1663
  key: 3,
1598
1664
  "onUpdate:modelValue": u[6] || (u[6] = (c) => t.value = c),
1599
1665
  class: "filter-select",
1600
1666
  onChange: u[7] || (u[7] = (c) => r(t.value))
1601
1667
  }, [
1602
1668
  u[15] || (u[15] = y("option", { value: "" }, "All", -1)),
1603
- (w(!0), k(oe, null, ie(o(e.column), (c) => (w(), k("option", {
1669
+ (w(!0), k(ue, null, me(o(e.column), (c) => (w(), k("option", {
1604
1670
  key: c.value || c,
1605
1671
  value: c.value || c
1606
- }, j(c.label || c), 9, nl))), 128))
1672
+ }, K(c.label || c), 9, ll))), 128))
1607
1673
  ], 544)), [
1608
- [En, t.value]
1609
- ]) : e.column.filterType === "date" ? U((w(), k("input", {
1674
+ [Cn, t.value]
1675
+ ]) : e.column.filterType === "date" ? J((w(), k("input", {
1610
1676
  key: 4,
1611
1677
  "onUpdate:modelValue": u[8] || (u[8] = (c) => t.value = c),
1612
1678
  type: "date",
1613
1679
  class: "filter-input",
1614
1680
  onChange: u[9] || (u[9] = (c) => r(t.value))
1615
1681
  }, null, 544)), [
1616
- [de, t.value]
1617
- ]) : e.column.filterType === "dateRange" ? (w(), k("div", ol, [
1618
- U(y("input", {
1682
+ [we, t.value]
1683
+ ]) : e.column.filterType === "dateRange" ? (w(), k("div", al, [
1684
+ J(y("input", {
1619
1685
  "onUpdate:modelValue": u[10] || (u[10] = (c) => n.startValue = c),
1620
1686
  type: "date",
1621
1687
  class: "filter-input",
1622
1688
  onChange: u[11] || (u[11] = (c) => s("start", n.startValue))
1623
1689
  }, null, 544), [
1624
- [de, n.startValue]
1690
+ [we, n.startValue]
1625
1691
  ]),
1626
1692
  u[16] || (u[16] = y("span", { class: "date-separator" }, "-", -1)),
1627
- U(y("input", {
1693
+ J(y("input", {
1628
1694
  "onUpdate:modelValue": u[12] || (u[12] = (c) => n.endValue = c),
1629
1695
  type: "date",
1630
1696
  class: "filter-input",
1631
1697
  onChange: u[13] || (u[13] = (c) => s("end", n.endValue))
1632
1698
  }, null, 544), [
1633
- [de, n.endValue]
1699
+ [we, n.endValue]
1634
1700
  ])
1635
- ])) : e.column.filterType === "component" && e.column.filterComponent ? (w(), re(Re(e.column.filterComponent), {
1701
+ ])) : e.column.filterType === "component" && e.column.filterComponent ? (w(), pe(We(e.column.filterComponent), {
1636
1702
  key: 6,
1637
1703
  value: t.value,
1638
1704
  column: e.column,
1639
1705
  colIndex: e.colIndex,
1640
1706
  store: e.store,
1641
1707
  "onUpdate:value": u[14] || (u[14] = (c) => r(c))
1642
- }, null, 40, ["value", "column", "colIndex", "store"])) : z("", !0),
1708
+ }, null, 40, ["value", "column", "colIndex", "store"])) : q("", !0),
1643
1709
  a.value ? (w(), k("button", {
1644
1710
  key: 7,
1645
1711
  onClick: l,
1646
1712
  class: "clear-btn",
1647
1713
  title: "Clear"
1648
- }, "×")) : z("", !0)
1714
+ }, "×")) : q("", !0)
1649
1715
  ]));
1650
1716
  }
1651
- }), al = /* @__PURE__ */ Ee(ll, [["__scopeId", "data-v-8487462d"]]), sl = { key: 0 }, rl = {
1717
+ }), rl = /* @__PURE__ */ Ve(sl, [["__scopeId", "data-v-8487462d"]]), il = { key: 0 }, ul = {
1652
1718
  class: "atable-header-row",
1653
1719
  tabindex: "-1"
1654
- }, il = {
1720
+ }, cl = {
1655
1721
  key: 2,
1656
1722
  class: "row-actions-header"
1657
- }, ul = ["data-colindex", "onClick"], cl = {
1723
+ }, dl = ["data-colindex", "onClick"], fl = {
1658
1724
  key: 3,
1659
1725
  class: "row-actions-header"
1660
- }, dl = {
1726
+ }, vl = {
1661
1727
  key: 0,
1662
1728
  class: "atable-filters-row"
1663
- }, vl = {
1729
+ }, pl = {
1664
1730
  key: 2,
1665
1731
  class: "row-actions-header"
1666
- }, fl = {
1732
+ }, ml = {
1667
1733
  key: 3,
1668
1734
  class: "row-actions-header"
1669
- }, hn = /* @__PURE__ */ Y({
1735
+ }, gn = /* @__PURE__ */ te({
1670
1736
  __name: "ATableHeader",
1671
1737
  props: {
1672
1738
  columns: {},
1673
1739
  store: {}
1674
1740
  },
1675
1741
  setup(e) {
1676
- const t = e, n = T(() => t.columns.filter((l) => l.filterable)), o = T(() => t.store.config.value?.rowActions?.enabled ?? !1), a = T(() => t.store.config.value?.rowActions?.position ?? "before-index"), r = (l) => t.store.sortByColumn(l), s = (l) => {
1742
+ const t = e, n = $(() => t.columns.filter((l) => l.filterable)), o = $(() => t.store.config.value?.rowActions?.enabled ?? !1), a = $(() => t.store.config.value?.rowActions?.position ?? "before-index"), r = (l) => t.store.sortByColumn(l), s = (l) => {
1677
1743
  for (const i of l) {
1678
1744
  if (i.borderBoxSize.length === 0) continue;
1679
1745
  const u = i.borderBoxSize[0].inlineSize, c = Number(i.target.dataset.colindex), p = t.store.columns[c]?.width;
1680
1746
  typeof p == "number" && p !== u && t.store.resizeColumn(c, u);
1681
1747
  }
1682
1748
  };
1683
- return (l, i) => t.columns.length ? (w(), k("thead", sl, [
1684
- y("tr", rl, [
1749
+ return (l, i) => t.columns.length ? (w(), k("thead", il, [
1750
+ y("tr", ul, [
1685
1751
  o.value && a.value === "before-index" ? (w(), k("th", {
1686
1752
  key: 0,
1687
- class: K(["row-actions-header", { "sticky-column": a.value === "before-index" }])
1688
- }, null, 2)) : z("", !0),
1753
+ class: ae(["row-actions-header", { "sticky-column": a.value === "before-index" }])
1754
+ }, null, 2)) : q("", !0),
1689
1755
  t.store.zeroColumn ? (w(), k("th", {
1690
1756
  key: 1,
1691
1757
  id: "header-index",
1692
- class: K([[
1758
+ class: ae([[
1693
1759
  t.store.hasPinnedColumns ? "sticky-index" : "",
1694
1760
  t.store.isTreeView ? "tree-index" : "",
1695
1761
  t.store.config.view === "list-expansion" ? "list-expansion-index" : ""
1696
1762
  ], "list-index"])
1697
- }, null, 2)) : z("", !0),
1698
- o.value && a.value === "after-index" ? (w(), k("th", il)) : z("", !0),
1699
- (w(!0), k(oe, null, ie(t.columns, (u, c) => U((w(), k("th", {
1763
+ }, null, 2)) : q("", !0),
1764
+ o.value && a.value === "after-index" ? (w(), k("th", cl)) : q("", !0),
1765
+ (w(!0), k(ue, null, me(t.columns, (u, c) => J((w(), k("th", {
1700
1766
  key: u.name,
1701
1767
  "data-colindex": c,
1702
1768
  tabindex: "-1",
1703
- style: fe(t.store.getHeaderCellStyle(u)),
1704
- class: K(`${u.pinned ? "sticky-column" : ""} ${u.sortable === !1 ? "" : "cursor-pointer"}`),
1769
+ style: xe(t.store.getHeaderCellStyle(u)),
1770
+ class: ae(`${u.pinned ? "sticky-column" : ""} ${u.sortable === !1 ? "" : "cursor-pointer"}`),
1705
1771
  onClick: (p) => u.sortable !== !1 ? r(c) : void 0
1706
1772
  }, [
1707
- ue(l.$slots, "default", {}, () => [
1708
- Dt(j(u.label || String.fromCharCode(c + 97).toUpperCase()), 1)
1773
+ he(l.$slots, "default", {}, () => [
1774
+ Dt(K(u.label || String.fromCharCode(c + 97).toUpperCase()), 1)
1709
1775
  ])
1710
- ], 14, ul)), [
1711
- [L(Go), s]
1776
+ ], 14, dl)), [
1777
+ [V(qo), s]
1712
1778
  ])), 128)),
1713
- o.value && a.value === "end" ? (w(), k("th", cl)) : z("", !0)
1779
+ o.value && a.value === "end" ? (w(), k("th", fl)) : q("", !0)
1714
1780
  ]),
1715
- n.value.length > 0 ? (w(), k("tr", dl, [
1781
+ n.value.length > 0 ? (w(), k("tr", vl, [
1716
1782
  o.value && a.value === "before-index" ? (w(), k("th", {
1717
1783
  key: 0,
1718
- class: K(["row-actions-header", { "sticky-column": a.value === "before-index" }])
1719
- }, null, 2)) : z("", !0),
1784
+ class: ae(["row-actions-header", { "sticky-column": a.value === "before-index" }])
1785
+ }, null, 2)) : q("", !0),
1720
1786
  t.store.zeroColumn ? (w(), k("th", {
1721
1787
  key: 1,
1722
- class: K([[
1788
+ class: ae([[
1723
1789
  t.store.hasPinnedColumns ? "sticky-index" : "",
1724
1790
  t.store.isTreeView ? "tree-index" : "",
1725
1791
  t.store.config.view === "list-expansion" ? "list-expansion-index" : ""
1726
1792
  ], "list-index"])
1727
- }, null, 2)) : z("", !0),
1728
- o.value && a.value === "after-index" ? (w(), k("th", vl)) : z("", !0),
1729
- (w(!0), k(oe, null, ie(t.columns, (u, c) => (w(), k("th", {
1793
+ }, null, 2)) : q("", !0),
1794
+ o.value && a.value === "after-index" ? (w(), k("th", pl)) : q("", !0),
1795
+ (w(!0), k(ue, null, me(t.columns, (u, c) => (w(), k("th", {
1730
1796
  key: `filter-${u.name}`,
1731
- class: K(`${u.pinned ? "sticky-column" : ""}`),
1732
- style: fe(t.store.getHeaderCellStyle(u))
1797
+ class: ae(`${u.pinned ? "sticky-column" : ""}`),
1798
+ style: xe(t.store.getHeaderCellStyle(u))
1733
1799
  }, [
1734
- u.filterable ? (w(), re(al, {
1800
+ u.filterable ? (w(), pe(rl, {
1735
1801
  key: 0,
1736
1802
  column: u,
1737
1803
  "col-index": c,
1738
1804
  store: t.store
1739
- }, null, 8, ["column", "col-index", "store"])) : z("", !0)
1805
+ }, null, 8, ["column", "col-index", "store"])) : q("", !0)
1740
1806
  ], 6))), 128)),
1741
- o.value && a.value === "end" ? (w(), k("th", fl)) : z("", !0)
1742
- ])) : z("", !0)
1743
- ])) : z("", !0);
1807
+ o.value && a.value === "end" ? (w(), k("th", ml)) : q("", !0)
1808
+ ])) : q("", !0)
1809
+ ])) : q("", !0);
1744
1810
  }
1745
- }), gn = /* @__PURE__ */ Y({
1811
+ }), wn = /* @__PURE__ */ te({
1746
1812
  __name: "ATableModal",
1747
1813
  props: {
1748
1814
  store: {}
1749
1815
  },
1750
1816
  setup(e) {
1751
- const t = ae("amodal"), { width: n, height: o } = Ae(t), a = T(() => {
1817
+ const t = fe("amodal"), { width: n, height: o } = Pe(t), a = $(() => {
1752
1818
  if (!(e.store.modal.height && e.store.modal.width && e.store.modal.left && e.store.modal.bottom)) return;
1753
1819
  const r = e.store.modal.cell?.closest("table");
1754
1820
  if (!r) return {};
@@ -1766,38 +1832,38 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
1766
1832
  ref: "amodal",
1767
1833
  class: "amodal",
1768
1834
  tabindex: "-1",
1769
- style: fe(a.value),
1770
- onClick: s[0] || (s[0] = pe(() => {
1835
+ style: xe(a.value),
1836
+ onClick: s[0] || (s[0] = Ie(() => {
1771
1837
  }, ["stop"])),
1772
- onInput: s[1] || (s[1] = pe(() => {
1838
+ onInput: s[1] || (s[1] = Ie(() => {
1773
1839
  }, ["stop"]))
1774
1840
  }, [
1775
- ue(r.$slots, "default")
1841
+ he(r.$slots, "default")
1776
1842
  ], 36));
1777
1843
  }
1778
- }), pl = (e) => {
1779
- const t = e.id || uo();
1844
+ }), hl = (e) => {
1845
+ const t = e.id || fo();
1780
1846
  return Dn(`table-${t}`, () => {
1781
1847
  const n = () => {
1782
- const d = [Object.assign({}, { rowModified: !1 })], f = /* @__PURE__ */ new Set();
1848
+ const d = [Object.assign({}, { rowModified: !1 })], v = /* @__PURE__ */ new Set();
1783
1849
  for (let A = 0; A < a.value.length; A++) {
1784
- const R = a.value[A];
1785
- R.parent !== null && R.parent !== void 0 && f.add(R.parent);
1850
+ const H = a.value[A];
1851
+ H.parent !== null && H.parent !== void 0 && v.add(H.parent);
1786
1852
  }
1787
- const I = (A) => a.value[A]?.gantt !== void 0, _ = (A) => {
1788
- for (let R = 0; R < a.value.length; R++)
1789
- if (a.value[R].parent === A && (I(R) || _(R)))
1853
+ const M = (A) => a.value[A]?.gantt !== void 0, P = (A) => {
1854
+ for (let H = 0; H < a.value.length; H++)
1855
+ if (a.value[H].parent === A && (M(H) || P(H)))
1790
1856
  return !0;
1791
1857
  return !1;
1792
- }, F = (A) => {
1793
- const R = r.value, Z = R.view === "tree" || R.view === "tree-gantt" ? R.defaultTreeExpansion : void 0;
1794
- if (!Z) return !0;
1795
- switch (Z) {
1858
+ }, Z = (A) => {
1859
+ const H = r.value, N = H.view === "tree" || H.view === "tree-gantt" ? H.defaultTreeExpansion : void 0;
1860
+ if (!N) return !0;
1861
+ switch (N) {
1796
1862
  case "root":
1797
1863
  return !1;
1798
1864
  // Only root nodes are visible, all children start collapsed
1799
1865
  case "branch":
1800
- return _(A);
1866
+ return P(A);
1801
1867
  case "leaf":
1802
1868
  return !0;
1803
1869
  // All nodes should be expanded
@@ -1806,244 +1872,244 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
1806
1872
  }
1807
1873
  };
1808
1874
  for (let A = 0; A < a.value.length; A++) {
1809
- const R = a.value[A], Z = R.parent === null || R.parent === void 0, J = f.has(A);
1875
+ const H = a.value[A], N = H.parent === null || H.parent === void 0, le = v.has(A);
1810
1876
  d[A] = {
1811
- childrenOpen: F(A),
1877
+ childrenOpen: Z(A),
1812
1878
  expanded: !1,
1813
- indent: R.indent || 0,
1814
- isParent: J,
1815
- isRoot: Z,
1879
+ indent: H.indent || 0,
1880
+ isParent: le,
1881
+ isRoot: N,
1816
1882
  rowModified: !1,
1817
- open: Z,
1883
+ open: N,
1818
1884
  // This will be recalculated later for non-root nodes
1819
- parent: R.parent
1885
+ parent: H.parent
1820
1886
  };
1821
1887
  }
1822
1888
  return d;
1823
- }, o = S(e.columns), a = S(e.rows), r = S(e.config || {}), s = S({}), l = S({}), i = T(() => {
1889
+ }, o = L(e.columns), a = L(e.rows), r = L(e.config || {}), s = L({}), l = L({}), i = $(() => {
1824
1890
  const d = {};
1825
- for (const [f, I] of o.value.entries())
1826
- for (const [_, F] of a.value.entries())
1827
- d[`${f}:${_}`] = F[I.name];
1891
+ for (const [v, M] of o.value.entries())
1892
+ for (const [P, Z] of a.value.entries())
1893
+ d[`${v}:${P}`] = Z[M.name];
1828
1894
  return d;
1829
- }), u = T({
1895
+ }), u = $({
1830
1896
  get: () => {
1831
1897
  const d = n();
1832
- for (let f = 0; f < d.length; f++)
1833
- s.value[f] && (d[f].rowModified = s.value[f]), l.value[f] && (l.value[f].childrenOpen !== void 0 && (d[f].childrenOpen = l.value[f].childrenOpen), l.value[f].expanded !== void 0 && (d[f].expanded = l.value[f].expanded));
1834
- if (M.value) {
1835
- const f = (I, _) => {
1836
- const F = _[I];
1837
- if (F.isRoot || F.parent === null || F.parent === void 0)
1898
+ for (let v = 0; v < d.length; v++)
1899
+ s.value[v] && (d[v].rowModified = s.value[v]), l.value[v] && (l.value[v].childrenOpen !== void 0 && (d[v].childrenOpen = l.value[v].childrenOpen), l.value[v].expanded !== void 0 && (d[v].expanded = l.value[v].expanded));
1900
+ if (C.value) {
1901
+ const v = (M, P) => {
1902
+ const Z = P[M];
1903
+ if (Z.isRoot || Z.parent === null || Z.parent === void 0)
1838
1904
  return !0;
1839
- const A = F.parent;
1840
- return A < 0 || A >= _.length ? !1 : (_[A].childrenOpen || !1) && f(A, _);
1905
+ const A = Z.parent;
1906
+ return A < 0 || A >= P.length ? !1 : (P[A].childrenOpen || !1) && v(A, P);
1841
1907
  };
1842
- for (let I = 0; I < d.length; I++)
1843
- d[I].isRoot || (d[I].open = f(I, d));
1908
+ for (let M = 0; M < d.length; M++)
1909
+ d[M].isRoot || (d[M].open = v(M, d));
1844
1910
  }
1845
1911
  return d;
1846
1912
  },
1847
1913
  set: (d) => {
1848
1914
  JSON.stringify(d) !== JSON.stringify(u.value) && (u.value = d);
1849
1915
  }
1850
- }), c = S(e.modal || { visible: !1 }), p = S({}), h = S([]), b = S([]), C = S([]), x = S({
1916
+ }), c = L(e.modal || { visible: !1 }), p = L({}), h = L([]), b = L([]), I = L([]), x = L({
1851
1917
  column: null,
1852
1918
  direction: null
1853
- }), v = S({}), m = T(() => o.value.some((d) => d.pinned)), g = T(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), M = T(() => r.value.view === "tree" || r.value.view === "tree-gantt"), D = T(() => {
1919
+ }), f = L({}), m = $(() => o.value.some((d) => d.pinned)), g = $(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), C = $(() => r.value.view === "tree" || r.value.view === "tree-gantt"), T = $(() => {
1854
1920
  const d = r.value;
1855
1921
  return d.view === "gantt" || d.view === "tree-gantt" ? d.dependencyGraph !== !1 : !0;
1856
- }), P = T(() => `${Math.ceil(a.value.length / 100 + 1)}ch`), H = T(
1922
+ }), R = $(() => `${Math.ceil(a.value.length / 100 + 1)}ch`), S = $(
1857
1923
  () => r.value.view ? ["list", "tree", "tree-gantt", "list-expansion"].includes(r.value.view) : !1
1858
- ), E = T(() => {
1859
- let d = a.value.map((f, I) => ({
1860
- ...f,
1861
- originalIndex: I
1924
+ ), _ = $(() => {
1925
+ let d = a.value.map((v, M) => ({
1926
+ ...v,
1927
+ originalIndex: M
1862
1928
  }));
1863
- if (Object.entries(v.value).forEach(([f, I]) => {
1864
- const _ = parseInt(f), F = o.value[_];
1865
- !F || !(I.value || I.startValue || I.endValue || F.filterType === "checkbox" && I.value !== void 0) || (d = d.filter((A) => {
1866
- const R = A[F.name];
1867
- return te(R, I, F);
1929
+ if (Object.entries(f.value).forEach(([v, M]) => {
1930
+ const P = parseInt(v), Z = o.value[P];
1931
+ !Z || !(M.value || M.startValue || M.endValue || Z.filterType === "checkbox" && M.value !== void 0) || (d = d.filter((A) => {
1932
+ const H = A[Z.name];
1933
+ return ne(H, M, Z);
1868
1934
  }));
1869
1935
  }), x.value.column !== null && x.value.direction) {
1870
- const f = o.value[x.value.column], I = x.value.direction;
1871
- d.sort((_, F) => {
1872
- let A = _[f.name], R = F[f.name];
1873
- A == null && (A = ""), R == null && (R = "");
1874
- const Z = Number(A), J = Number(R);
1875
- if (!isNaN(Z) && !isNaN(J) && A !== "" && R !== "")
1876
- return I === "asc" ? Z - J : J - Z;
1936
+ const v = o.value[x.value.column], M = x.value.direction;
1937
+ d.sort((P, Z) => {
1938
+ let A = P[v.name], H = Z[v.name];
1939
+ A == null && (A = ""), H == null && (H = "");
1940
+ const N = Number(A), le = Number(H);
1941
+ if (!isNaN(N) && !isNaN(le) && A !== "" && H !== "")
1942
+ return M === "asc" ? N - le : le - N;
1877
1943
  {
1878
- const Ye = String(A).toLowerCase(), Nt = String(R).toLowerCase();
1879
- return I === "asc" ? Ye.localeCompare(Nt) : Nt.localeCompare(Ye);
1944
+ const nt = String(A).toLowerCase(), Ut = String(H).toLowerCase();
1945
+ return M === "asc" ? nt.localeCompare(Ut) : Ut.localeCompare(nt);
1880
1946
  }
1881
1947
  });
1882
1948
  }
1883
1949
  return d;
1884
- }), O = (d, f) => i.value[`${d}:${f}`], X = (d, f, I) => {
1885
- const _ = `${d}:${f}`, F = o.value[d];
1886
- i.value[_] !== I && (s.value[f] = !0), i.value[_] = I, a.value[f] = {
1887
- ...a.value[f],
1888
- [F.name]: I
1950
+ }), U = (d, v) => i.value[`${d}:${v}`], ve = (d, v, M) => {
1951
+ const P = `${d}:${v}`, Z = o.value[d];
1952
+ i.value[P] !== M && (s.value[v] = !0), i.value[P] = M, a.value[v] = {
1953
+ ...a.value[v],
1954
+ [Z.name]: M
1889
1955
  };
1890
- }, G = (d) => {
1956
+ }, Y = (d) => {
1891
1957
  a.value = d;
1892
- }, N = (d, f, I) => {
1893
- const _ = `${d}:${f}`;
1894
- i.value[_] !== I && (s.value[f] = !0, p.value[_] = I);
1895
- }, ce = (d) => {
1896
- const f = o.value.indexOf(d) === o.value.length - 1, I = r.value.fullWidth ? d.resizable && !f : d.resizable;
1958
+ }, X = (d, v, M) => {
1959
+ const P = `${d}:${v}`;
1960
+ i.value[P] !== M && (s.value[v] = !0, p.value[P] = M);
1961
+ }, ge = (d) => {
1962
+ const v = o.value.indexOf(d) === o.value.length - 1, M = r.value.fullWidth ? d.resizable && !v : d.resizable;
1897
1963
  return {
1898
1964
  width: d.width || "40ch",
1899
1965
  textAlign: d.align || "center",
1900
- ...I && {
1966
+ ...M && {
1901
1967
  resize: "horizontal",
1902
1968
  overflow: "hidden",
1903
1969
  whiteSpace: "nowrap"
1904
1970
  }
1905
1971
  };
1906
- }, Ce = (d, f) => {
1972
+ }, de = (d, v) => {
1907
1973
  if (d < 0 || d >= o.value.length) return;
1908
- const I = Math.max(f, 40);
1974
+ const M = Math.max(v, 40);
1909
1975
  o.value[d] = {
1910
1976
  ...o.value[d],
1911
- width: `${I}px`
1977
+ width: `${M}px`
1912
1978
  };
1913
- }, Ne = (d) => {
1914
- const f = a.value[d];
1915
- return g.value && f.gantt !== void 0;
1916
- }, Oe = (d) => !M.value || u.value[d].isRoot || u.value[d].open, dt = (d) => !M.value && r.value.view !== "list-expansion" ? "" : M.value && (u.value[d].isRoot || u.value[d].isParent) ? u.value[d].childrenOpen ? "▼" : "►" : r.value.view === "list-expansion" ? u.value[d].expanded ? "▼" : "►" : "", vt = (d) => {
1917
- if (M.value) {
1918
- const f = l.value[d] || {}, I = !(f.childrenOpen ?? u.value[d].childrenOpen);
1979
+ }, Be = (d) => {
1980
+ const v = a.value[d];
1981
+ return g.value && v.gantt !== void 0;
1982
+ }, Re = (d) => !C.value || u.value[d].isRoot || u.value[d].open, Xe = (d) => !C.value && r.value.view !== "list-expansion" ? "" : C.value && (u.value[d].isRoot || u.value[d].isParent) ? u.value[d].childrenOpen ? "▼" : "►" : r.value.view === "list-expansion" ? u.value[d].expanded ? "▼" : "►" : "", je = (d) => {
1983
+ if (C.value) {
1984
+ const v = l.value[d] || {}, M = !(v.childrenOpen ?? u.value[d].childrenOpen);
1919
1985
  l.value[d] = {
1920
- ...f,
1921
- childrenOpen: I
1922
- }, I || We(d);
1986
+ ...v,
1987
+ childrenOpen: M
1988
+ }, M || Fe(d);
1923
1989
  } else if (r.value.view === "list-expansion") {
1924
- const f = l.value[d] || {}, I = f.expanded ?? u.value[d].expanded;
1990
+ const v = l.value[d] || {}, M = v.expanded ?? u.value[d].expanded;
1925
1991
  l.value[d] = {
1926
- ...f,
1927
- expanded: !I
1992
+ ...v,
1993
+ expanded: !M
1928
1994
  };
1929
1995
  }
1930
- }, We = (d) => {
1931
- for (let f = 0; f < a.value.length; f++)
1932
- if (u.value[f].parent === d) {
1933
- const I = l.value[f] || {};
1934
- l.value[f] = {
1935
- ...I,
1996
+ }, Fe = (d) => {
1997
+ for (let v = 0; v < a.value.length; v++)
1998
+ if (u.value[v].parent === d) {
1999
+ const M = l.value[v] || {};
2000
+ l.value[v] = {
2001
+ ...M,
1936
2002
  childrenOpen: !1
1937
- }, We(f);
2003
+ }, Fe(v);
1938
2004
  }
1939
- }, ft = (d, f) => {
1940
- const I = O(d, f);
1941
- return ze(d, f, I);
1942
- }, ze = (d, f, I) => {
1943
- const _ = o.value[d], F = a.value[f], A = _.format;
1944
- return A ? typeof A == "function" ? A(I, { table: i.value, row: F, column: _ }) : typeof A == "string" ? Function(`"use strict";return (${A})`)()(I, { table: i.value, row: F, column: _ }) : I : I;
1945
- }, pt = (d) => {
2005
+ }, Je = (d, v) => {
2006
+ const M = U(d, v);
2007
+ return Ze(d, v, M);
2008
+ }, Ze = (d, v, M) => {
2009
+ const P = o.value[d], Z = a.value[v], A = P.format;
2010
+ return A ? typeof A == "function" ? A(M, { table: i.value, row: Z, column: P }) : typeof A == "string" ? Function(`"use strict";return (${A})`)()(M, { table: i.value, row: Z, column: P }) : M : M;
2011
+ }, D = (d) => {
1946
2012
  d.target instanceof Node && c.value.parent?.contains(d.target) || c.value.visible && (c.value.visible = !1);
1947
- }, mt = (d, f) => f && d === 0 && f > 0 ? `${f}ch` : "inherit", ht = (d) => {
1948
- const f = a.value[d.rowIndex]?.gantt;
1949
- f && (d.type === "resize" ? d.edge === "start" ? (f.startIndex = d.newStart, f.endIndex = d.end, f.colspan = f.endIndex - f.startIndex) : d.edge === "end" && (f.startIndex = d.start, f.endIndex = d.newEnd, f.colspan = f.endIndex - f.startIndex) : d.type === "bar" && (f.startIndex = d.newStart, f.endIndex = d.newEnd, f.colspan = f.endIndex - f.startIndex));
1950
- }, gt = (d) => {
1951
- const f = h.value.findIndex((I) => I.id === d.id);
1952
- f >= 0 ? h.value[f] = d : h.value.push(d);
1953
- }, Ge = (d) => {
1954
- const f = h.value.findIndex((I) => I.id === d);
1955
- f >= 0 && h.value.splice(f, 1);
1956
- }, Ue = (d) => {
1957
- const f = b.value.findIndex((I) => I.id === d.id);
1958
- f >= 0 ? b.value[f] = d : b.value.push(d);
1959
- }, je = (d) => {
1960
- const f = b.value.findIndex((I) => I.id === d);
1961
- f >= 0 && b.value.splice(f, 1);
1962
- }, qe = (d, f, I) => {
1963
- const _ = b.value.find((R) => R.id === d), F = b.value.find((R) => R.id === f);
1964
- if (!_ || !F)
2013
+ }, F = (d, v) => v && d === 0 && v > 0 ? `${v}ch` : "inherit", W = (d) => {
2014
+ const v = a.value[d.rowIndex]?.gantt;
2015
+ v && (d.type === "resize" ? d.edge === "start" ? (v.startIndex = d.newStart, v.endIndex = d.end, v.colspan = v.endIndex - v.startIndex) : d.edge === "end" && (v.startIndex = d.start, v.endIndex = d.newEnd, v.colspan = v.endIndex - v.startIndex) : d.type === "bar" && (v.startIndex = d.newStart, v.endIndex = d.newEnd, v.colspan = v.endIndex - v.startIndex));
2016
+ }, j = (d) => {
2017
+ const v = h.value.findIndex((M) => M.id === d.id);
2018
+ v >= 0 ? h.value[v] = d : h.value.push(d);
2019
+ }, z = (d) => {
2020
+ const v = h.value.findIndex((M) => M.id === d);
2021
+ v >= 0 && h.value.splice(v, 1);
2022
+ }, se = (d) => {
2023
+ const v = b.value.findIndex((M) => M.id === d.id);
2024
+ v >= 0 ? b.value[v] = d : b.value.push(d);
2025
+ }, be = (d) => {
2026
+ const v = b.value.findIndex((M) => M.id === d);
2027
+ v >= 0 && b.value.splice(v, 1);
2028
+ }, Le = (d, v, M) => {
2029
+ const P = b.value.find((H) => H.id === d), Z = b.value.find((H) => H.id === v);
2030
+ if (!P || !Z)
1965
2031
  return console.warn("Cannot create connection: handle not found"), null;
1966
2032
  const A = {
1967
- id: `connection-${d}-${f}`,
2033
+ id: `connection-${d}-${v}`,
1968
2034
  from: {
1969
- barId: _.barId,
1970
- side: _.side
2035
+ barId: P.barId,
2036
+ side: P.side
1971
2037
  },
1972
2038
  to: {
1973
- barId: F.barId,
1974
- side: F.side
2039
+ barId: Z.barId,
2040
+ side: Z.side
1975
2041
  },
1976
- style: I?.style,
1977
- label: I?.label
2042
+ style: M?.style,
2043
+ label: M?.label
1978
2044
  };
1979
- return C.value.push(A), A;
1980
- }, V = (d) => {
1981
- const f = C.value.findIndex((I) => I.id === d);
1982
- return f >= 0 ? (C.value.splice(f, 1), !0) : !1;
1983
- }, B = (d) => C.value.filter((f) => f.from.barId === d || f.to.barId === d), W = (d) => b.value.filter((f) => f.barId === d), q = (d) => {
2045
+ return I.value.push(A), A;
2046
+ }, O = (d) => {
2047
+ const v = I.value.findIndex((M) => M.id === d);
2048
+ return v >= 0 ? (I.value.splice(v, 1), !0) : !1;
2049
+ }, B = (d) => I.value.filter((v) => v.from.barId === d || v.to.barId === d), G = (d) => b.value.filter((v) => v.barId === d), Q = (d) => {
1984
2050
  if (o.value[d].sortable === !1) return;
1985
- let f;
1986
- x.value.column === d && x.value.direction === "asc" ? f = "desc" : f = "asc", x.value.column = d, x.value.direction = f;
1987
- }, te = (d, f, I) => {
1988
- const _ = I.filterType || "text", F = f.value;
1989
- if (!F && _ !== "dateRange" && _ !== "checkbox") return !0;
1990
- switch (_) {
2051
+ let v;
2052
+ x.value.column === d && x.value.direction === "asc" ? v = "desc" : v = "asc", x.value.column = d, x.value.direction = v;
2053
+ }, ne = (d, v, M) => {
2054
+ const P = M.filterType || "text", Z = v.value;
2055
+ if (!Z && P !== "dateRange" && P !== "checkbox") return !0;
2056
+ switch (P) {
1991
2057
  case "text": {
1992
2058
  let A = "";
1993
- return typeof d == "object" && d !== null ? A = Object.values(d).join(" ") : A = String(d || ""), A.toLowerCase().includes(String(F).toLowerCase());
2059
+ return typeof d == "object" && d !== null ? A = Object.values(d).join(" ") : A = String(d || ""), A.toLowerCase().includes(String(Z).toLowerCase());
1994
2060
  }
1995
2061
  case "number": {
1996
- const A = Number(d), R = Number(F);
1997
- return !isNaN(A) && !isNaN(R) && A === R;
2062
+ const A = Number(d), H = Number(Z);
2063
+ return !isNaN(A) && !isNaN(H) && A === H;
1998
2064
  }
1999
2065
  case "select":
2000
- return d === F;
2066
+ return d === Z;
2001
2067
  case "checkbox":
2002
- return F === !0 ? !!d : !0;
2068
+ return Z === !0 ? !!d : !0;
2003
2069
  case "date": {
2004
2070
  let A;
2005
2071
  if (typeof d == "number") {
2006
- const Z = new Date(d), J = (/* @__PURE__ */ new Date()).getFullYear();
2007
- A = new Date(J, Z.getMonth(), Z.getDate());
2072
+ const N = new Date(d), le = (/* @__PURE__ */ new Date()).getFullYear();
2073
+ A = new Date(le, N.getMonth(), N.getDate());
2008
2074
  } else
2009
2075
  A = new Date(String(d));
2010
- const R = new Date(String(F));
2011
- return A.toDateString() === R.toDateString();
2076
+ const H = new Date(String(Z));
2077
+ return A.toDateString() === H.toDateString();
2012
2078
  }
2013
2079
  case "dateRange": {
2014
- const A = f.startValue, R = f.endValue;
2015
- if (!A && !R) return !0;
2016
- let Z;
2080
+ const A = v.startValue, H = v.endValue;
2081
+ if (!A && !H) return !0;
2082
+ let N;
2017
2083
  if (typeof d == "number") {
2018
- const J = new Date(d), Ye = (/* @__PURE__ */ new Date()).getFullYear();
2019
- Z = new Date(Ye, J.getMonth(), J.getDate());
2084
+ const le = new Date(d), nt = (/* @__PURE__ */ new Date()).getFullYear();
2085
+ N = new Date(nt, le.getMonth(), le.getDate());
2020
2086
  } else
2021
- Z = new Date(String(d));
2022
- return !(A && Z < new Date(String(A)) || R && Z > new Date(String(R)));
2087
+ N = new Date(String(d));
2088
+ return !(A && N < new Date(String(A)) || H && N > new Date(String(H)));
2023
2089
  }
2024
2090
  default:
2025
2091
  return !0;
2026
2092
  }
2027
- }, ne = (d, f) => {
2028
- !f.value && !f.startValue && !f.endValue ? delete v.value[d] : v.value[d] = f;
2029
- }, se = (d) => {
2030
- delete v.value[d];
2031
- }, le = (d, f = "end") => {
2032
- const I = {};
2033
- for (const F of o.value)
2034
- I[F.name] = "";
2035
- d && Object.assign(I, d);
2036
- let _;
2037
- return f === "start" ? (_ = 0, a.value.unshift(I)) : f === "end" ? (_ = a.value.length, a.value.push(I)) : (_ = Math.max(0, Math.min(f, a.value.length)), a.value.splice(_, 0, I)), _;
2093
+ }, ee = (d, v) => {
2094
+ !v.value && !v.startValue && !v.endValue ? delete f.value[d] : f.value[d] = v;
2095
+ }, re = (d) => {
2096
+ delete f.value[d];
2097
+ }, ce = (d, v = "end") => {
2098
+ const M = {};
2099
+ for (const Z of o.value)
2100
+ M[Z.name] = "";
2101
+ d && Object.assign(M, d);
2102
+ let P;
2103
+ return v === "start" ? (P = 0, a.value.unshift(M)) : v === "end" ? (P = a.value.length, a.value.push(M)) : (P = Math.max(0, Math.min(v, a.value.length)), a.value.splice(P, 0, M)), P;
2038
2104
  };
2039
2105
  return {
2040
2106
  // state
2041
2107
  columns: o,
2042
2108
  config: r,
2043
2109
  connectionHandles: b,
2044
- connectionPaths: C,
2110
+ connectionPaths: I,
2045
2111
  display: u,
2046
- filterState: v,
2112
+ filterState: f,
2047
2113
  ganttBars: h,
2048
2114
  modal: c,
2049
2115
  rows: a,
@@ -2051,97 +2117,97 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
2051
2117
  table: i,
2052
2118
  updates: p,
2053
2119
  // getters
2054
- filteredRows: E,
2120
+ filteredRows: _,
2055
2121
  hasPinnedColumns: m,
2056
2122
  isGanttView: g,
2057
- isTreeView: M,
2058
- isDependencyGraphEnabled: D,
2059
- numberedRowWidth: P,
2060
- zeroColumn: H,
2123
+ isTreeView: C,
2124
+ isDependencyGraphEnabled: T,
2125
+ numberedRowWidth: R,
2126
+ zeroColumn: S,
2061
2127
  // actions
2062
- addRow: le,
2063
- clearFilter: se,
2064
- closeModal: pt,
2065
- createConnection: qe,
2066
- deleteConnection: V,
2128
+ addRow: ce,
2129
+ clearFilter: re,
2130
+ closeModal: D,
2131
+ createConnection: Le,
2132
+ deleteConnection: O,
2067
2133
  deleteRow: (d) => {
2068
2134
  if (d < 0 || d >= a.value.length)
2069
2135
  return null;
2070
- const [f] = a.value.splice(d, 1);
2136
+ const [v] = a.value.splice(d, 1);
2071
2137
  delete s.value[d], delete l.value[d];
2072
- const I = {}, _ = {};
2073
- for (const [F, A] of Object.entries(s.value)) {
2074
- const R = parseInt(F);
2075
- R > d ? I[R - 1] = A : I[R] = A;
2138
+ const M = {}, P = {};
2139
+ for (const [Z, A] of Object.entries(s.value)) {
2140
+ const H = parseInt(Z);
2141
+ H > d ? M[H - 1] = A : M[H] = A;
2076
2142
  }
2077
- for (const [F, A] of Object.entries(l.value)) {
2078
- const R = parseInt(F);
2079
- R > d ? _[R - 1] = A : _[R] = A;
2143
+ for (const [Z, A] of Object.entries(l.value)) {
2144
+ const H = parseInt(Z);
2145
+ H > d ? P[H - 1] = A : P[H] = A;
2080
2146
  }
2081
- return s.value = I, l.value = _, f;
2147
+ return s.value = M, l.value = P, v;
2082
2148
  },
2083
2149
  duplicateRow: (d) => {
2084
2150
  if (d < 0 || d >= a.value.length)
2085
2151
  return -1;
2086
- const f = a.value[d], I = JSON.parse(JSON.stringify(f)), _ = d + 1;
2087
- return a.value.splice(_, 0, I), _;
2152
+ const v = a.value[d], M = JSON.parse(JSON.stringify(v)), P = d + 1;
2153
+ return a.value.splice(P, 0, M), P;
2088
2154
  },
2089
- getCellData: O,
2090
- getCellDisplayValue: ft,
2155
+ getCellData: U,
2156
+ getCellDisplayValue: Je,
2091
2157
  getConnectionsForBar: B,
2092
- getFormattedValue: ze,
2093
- getHandlesForBar: W,
2094
- getHeaderCellStyle: ce,
2095
- getIndent: mt,
2096
- getRowExpandSymbol: dt,
2097
- insertRowAbove: (d, f) => {
2098
- const I = Math.max(0, d);
2099
- return le(f, I);
2158
+ getFormattedValue: Ze,
2159
+ getHandlesForBar: G,
2160
+ getHeaderCellStyle: ge,
2161
+ getIndent: F,
2162
+ getRowExpandSymbol: Xe,
2163
+ insertRowAbove: (d, v) => {
2164
+ const M = Math.max(0, d);
2165
+ return ce(v, M);
2100
2166
  },
2101
- insertRowBelow: (d, f) => {
2102
- const I = Math.min(d + 1, a.value.length);
2103
- return le(f, I);
2167
+ insertRowBelow: (d, v) => {
2168
+ const M = Math.min(d + 1, a.value.length);
2169
+ return ce(v, M);
2104
2170
  },
2105
- isRowGantt: Ne,
2106
- isRowVisible: Oe,
2107
- moveRow: (d, f) => {
2108
- if (d < 0 || d >= a.value.length || f < 0 || f >= a.value.length || d === f)
2171
+ isRowGantt: Be,
2172
+ isRowVisible: Re,
2173
+ moveRow: (d, v) => {
2174
+ if (d < 0 || d >= a.value.length || v < 0 || v >= a.value.length || d === v)
2109
2175
  return !1;
2110
- const [I] = a.value.splice(d, 1);
2111
- a.value.splice(f, 0, I);
2112
- const _ = {}, F = {};
2113
- for (const [A, R] of Object.entries(s.value)) {
2114
- const Z = parseInt(A);
2115
- let J = Z;
2116
- Z === d ? J = f : d < f ? Z > d && Z <= f && (J = Z - 1) : Z >= f && Z < d && (J = Z + 1), _[J] = R;
2176
+ const [M] = a.value.splice(d, 1);
2177
+ a.value.splice(v, 0, M);
2178
+ const P = {}, Z = {};
2179
+ for (const [A, H] of Object.entries(s.value)) {
2180
+ const N = parseInt(A);
2181
+ let le = N;
2182
+ N === d ? le = v : d < v ? N > d && N <= v && (le = N - 1) : N >= v && N < d && (le = N + 1), P[le] = H;
2117
2183
  }
2118
- for (const [A, R] of Object.entries(l.value)) {
2119
- const Z = parseInt(A);
2120
- let J = Z;
2121
- Z === d ? J = f : d < f ? Z > d && Z <= f && (J = Z - 1) : Z >= f && Z < d && (J = Z + 1), F[J] = R;
2184
+ for (const [A, H] of Object.entries(l.value)) {
2185
+ const N = parseInt(A);
2186
+ let le = N;
2187
+ N === d ? le = v : d < v ? N > d && N <= v && (le = N - 1) : N >= v && N < d && (le = N + 1), Z[le] = H;
2122
2188
  }
2123
- return s.value = _, l.value = F, !0;
2189
+ return s.value = P, l.value = Z, !0;
2124
2190
  },
2125
- registerConnectionHandle: Ue,
2126
- registerGanttBar: gt,
2127
- resizeColumn: Ce,
2128
- setCellData: X,
2129
- setCellText: N,
2130
- setFilter: ne,
2131
- sortByColumn: q,
2132
- toggleRowExpand: vt,
2133
- unregisterConnectionHandle: je,
2134
- unregisterGanttBar: Ge,
2135
- updateGanttBar: ht,
2136
- updateRows: G
2191
+ registerConnectionHandle: se,
2192
+ registerGanttBar: j,
2193
+ resizeColumn: de,
2194
+ setCellData: ve,
2195
+ setCellText: X,
2196
+ setFilter: ee,
2197
+ sortByColumn: Q,
2198
+ toggleRowExpand: je,
2199
+ unregisterConnectionHandle: be,
2200
+ unregisterGanttBar: z,
2201
+ updateGanttBar: W,
2202
+ updateRows: Y
2137
2203
  };
2138
2204
  })();
2139
- }, ml = {
2205
+ }, gl = {
2140
2206
  class: "atable-container",
2141
2207
  style: { position: "relative" }
2142
- }, hl = /* @__PURE__ */ Y({
2208
+ }, wl = /* @__PURE__ */ te({
2143
2209
  __name: "ATable",
2144
- props: /* @__PURE__ */ me({
2210
+ props: /* @__PURE__ */ Me({
2145
2211
  id: { default: "" },
2146
2212
  config: { default: () => new Object() }
2147
2213
  }, {
@@ -2150,110 +2216,110 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
2150
2216
  columns: { required: !0 },
2151
2217
  columnsModifiers: {}
2152
2218
  }),
2153
- emits: /* @__PURE__ */ me(["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"]),
2219
+ emits: /* @__PURE__ */ Me(["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"]),
2154
2220
  setup(e, { expose: t, emit: n }) {
2155
- const o = he(e, "rows"), a = he(e, "columns"), r = n, s = ae("table"), l = pl({ columns: a.value, rows: o.value, id: e.id, config: e.config });
2156
- l.$onAction(({ name: C, store: x, args: v, after: m }) => {
2157
- if (C === "setCellData" || C === "setCellText") {
2158
- const [g, M, D] = v, P = x.getCellData(g, M);
2221
+ const o = ke(e, "rows"), a = ke(e, "columns"), r = n, s = fe("table"), l = hl({ columns: a.value, rows: o.value, id: e.id, config: e.config });
2222
+ l.$onAction(({ name: I, store: x, args: f, after: m }) => {
2223
+ if (I === "setCellData" || I === "setCellText") {
2224
+ const [g, C, T] = f, R = x.getCellData(g, C);
2159
2225
  m(() => {
2160
- o.value = [...x.rows], r("cellUpdate", { colIndex: g, rowIndex: M, newValue: D, oldValue: P });
2226
+ o.value = [...x.rows], r("cellUpdate", { colIndex: g, rowIndex: C, newValue: T, oldValue: R });
2161
2227
  });
2162
- } else if (C === "updateGanttBar") {
2163
- const [g] = v;
2164
- let M = !1;
2165
- g.type === "resize" ? M = g.oldColspan !== g.newColspan : g.type === "bar" && (M = g.oldStart !== g.newStart || g.oldEnd !== g.newEnd), M && m(() => {
2228
+ } else if (I === "updateGanttBar") {
2229
+ const [g] = f;
2230
+ let C = !1;
2231
+ g.type === "resize" ? C = g.oldColspan !== g.newColspan : g.type === "bar" && (C = g.oldStart !== g.newStart || g.oldEnd !== g.newEnd), C && m(() => {
2166
2232
  r("gantt:drag", g);
2167
2233
  });
2168
- } else C === "resizeColumn" && m(() => {
2234
+ } else I === "resizeColumn" && m(() => {
2169
2235
  a.value = [...x.columns], r("columns:update", [...x.columns]);
2170
2236
  });
2171
- }), Q(
2237
+ }), oe(
2172
2238
  () => o.value,
2173
- (C) => {
2174
- JSON.stringify(C) !== JSON.stringify(l.rows) && (l.rows = [...C]);
2239
+ (I) => {
2240
+ JSON.stringify(I) !== JSON.stringify(l.rows) && (l.rows = [...I]);
2175
2241
  },
2176
2242
  { deep: !0 }
2177
- ), Q(
2243
+ ), oe(
2178
2244
  a,
2179
- (C) => {
2180
- JSON.stringify(C) !== JSON.stringify(l.columns) && (l.columns = [...C], r("columns:update", [...C]));
2245
+ (I) => {
2246
+ JSON.stringify(I) !== JSON.stringify(l.columns) && (l.columns = [...I], r("columns:update", [...I]));
2181
2247
  },
2182
2248
  { deep: !0 }
2183
- ), we(() => {
2184
- a.value.some((C) => C.pinned) && (u(), l.isTreeView && pn(s, u, { childList: !0, subtree: !0 }));
2249
+ ), Ee(() => {
2250
+ a.value.some((I) => I.pinned) && (u(), l.isTreeView && mn(s, u, { childList: !0, subtree: !0 }));
2185
2251
  });
2186
- const i = T(() => l.columns.filter((C) => C.pinned).length), u = () => {
2187
- const C = s.value, x = C?.rows[0], v = C?.rows[1], m = x ? Array.from(x.cells) : [];
2188
- for (const [g, M] of m.entries()) {
2189
- const D = v?.cells[g];
2190
- D && (M.style.width = `${D.offsetWidth}px`);
2252
+ const i = $(() => l.columns.filter((I) => I.pinned).length), u = () => {
2253
+ const I = s.value, x = I?.rows[0], f = I?.rows[1], m = x ? Array.from(x.cells) : [];
2254
+ for (const [g, C] of m.entries()) {
2255
+ const T = f?.cells[g];
2256
+ T && (C.style.width = `${T.offsetWidth}px`);
2191
2257
  }
2192
- for (const g of C?.rows || []) {
2193
- let M = 0;
2194
- const D = [];
2195
- for (const P of g.cells)
2196
- (P.classList.contains("sticky-column") || P.classList.contains("sticky-index")) && (P.style.left = `${M}px`, M += P.offsetWidth, D.push(P));
2197
- D.length > 0 && D[D.length - 1].classList.add("sticky-column-edge");
2258
+ for (const g of I?.rows || []) {
2259
+ let C = 0;
2260
+ const T = [];
2261
+ for (const R of g.cells)
2262
+ (R.classList.contains("sticky-column") || R.classList.contains("sticky-index")) && (R.style.left = `${C}px`, C += R.offsetWidth, T.push(R));
2263
+ T.length > 0 && T[T.length - 1].classList.add("sticky-column-edge");
2198
2264
  }
2199
2265
  };
2200
- window.addEventListener("keydown", (C) => {
2201
- if (C.key === "Escape" && l.modal.visible) {
2266
+ window.addEventListener("keydown", (I) => {
2267
+ if (I.key === "Escape" && l.modal.visible) {
2202
2268
  l.modal.visible = !1;
2203
2269
  const x = l.modal.parent;
2204
- x && st().then(() => {
2270
+ x && pt().then(() => {
2205
2271
  x.focus();
2206
2272
  });
2207
2273
  }
2208
2274
  });
2209
- const c = (C) => {
2210
- if (!C.gantt || i.value === 0)
2275
+ const c = (I) => {
2276
+ if (!I.gantt || i.value === 0)
2211
2277
  return l.columns;
2212
2278
  const x = [];
2213
- for (let v = 0; v < i.value; v++) {
2214
- const m = { ...l.columns[v] };
2215
- m.originalIndex = v, x.push(m);
2279
+ for (let f = 0; f < i.value; f++) {
2280
+ const m = { ...l.columns[f] };
2281
+ m.originalIndex = f, x.push(m);
2216
2282
  }
2217
2283
  return x.push({
2218
2284
  ...l.columns[i.value],
2219
2285
  isGantt: !0,
2220
- colspan: C.gantt?.colspan || l.columns.length - i.value,
2286
+ colspan: I.gantt?.colspan || l.columns.length - i.value,
2221
2287
  originalIndex: i.value,
2222
2288
  width: "auto"
2223
2289
  // TODO: refactor to API that can detect when data exists in a cell. Might have be custom and not generalizable
2224
2290
  }), x;
2225
- }, p = (C) => {
2226
- r("connection:event", { type: "create", connection: C });
2227
- }, h = (C) => {
2228
- r("connection:event", { type: "delete", connection: C });
2229
- }, b = (C, x) => {
2230
- switch (C) {
2291
+ }, p = (I) => {
2292
+ r("connection:event", { type: "create", connection: I });
2293
+ }, h = (I) => {
2294
+ r("connection:event", { type: "delete", connection: I });
2295
+ }, b = (I, x) => {
2296
+ switch (I) {
2231
2297
  case "add": {
2232
- const v = l.addRow({}, x + 1), m = l.rows[v];
2233
- o.value = [...l.rows], r("row:add", { rowIndex: v, row: m });
2298
+ const f = l.addRow({}, x + 1), m = l.rows[f];
2299
+ o.value = [...l.rows], r("row:add", { rowIndex: f, row: m });
2234
2300
  break;
2235
2301
  }
2236
2302
  case "delete": {
2237
- const v = l.deleteRow(x);
2238
- v && (o.value = [...l.rows], r("row:delete", { rowIndex: x, row: v }));
2303
+ const f = l.deleteRow(x);
2304
+ f && (o.value = [...l.rows], r("row:delete", { rowIndex: x, row: f }));
2239
2305
  break;
2240
2306
  }
2241
2307
  case "duplicate": {
2242
- const v = l.duplicateRow(x);
2243
- if (v >= 0) {
2244
- const m = l.rows[v];
2245
- o.value = [...l.rows], r("row:duplicate", { sourceIndex: x, newIndex: v, row: m });
2308
+ const f = l.duplicateRow(x);
2309
+ if (f >= 0) {
2310
+ const m = l.rows[f];
2311
+ o.value = [...l.rows], r("row:duplicate", { sourceIndex: x, newIndex: f, row: m });
2246
2312
  }
2247
2313
  break;
2248
2314
  }
2249
2315
  case "insertAbove": {
2250
- const v = l.insertRowAbove(x), m = l.rows[v];
2251
- o.value = [...l.rows], r("row:insert-above", { targetIndex: x, newIndex: v, row: m });
2316
+ const f = l.insertRowAbove(x), m = l.rows[f];
2317
+ o.value = [...l.rows], r("row:insert-above", { targetIndex: x, newIndex: f, row: m });
2252
2318
  break;
2253
2319
  }
2254
2320
  case "insertBelow": {
2255
- const v = l.insertRowBelow(x), m = l.rows[v];
2256
- o.value = [...l.rows], r("row:insert-below", { targetIndex: x, newIndex: v, row: m });
2321
+ const f = l.insertRowBelow(x), m = l.rows[f];
2322
+ o.value = [...l.rows], r("row:insert-below", { targetIndex: x, newIndex: f, row: m });
2257
2323
  break;
2258
2324
  }
2259
2325
  case "move": {
@@ -2275,59 +2341,59 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
2275
2341
  insertRowAbove: l.insertRowAbove,
2276
2342
  insertRowBelow: l.insertRowBelow,
2277
2343
  moveRow: l.moveRow
2278
- }), (C, x) => (w(), k("div", ml, [
2279
- U((w(), k("table", {
2344
+ }), (I, x) => (w(), k("div", gl, [
2345
+ J((w(), k("table", {
2280
2346
  ref: "table",
2281
2347
  class: "atable",
2282
- style: fe({
2283
- width: L(l).config.fullWidth ? "100%" : "auto"
2348
+ style: xe({
2349
+ width: V(l).config.fullWidth ? "100%" : "auto"
2284
2350
  })
2285
2351
  }, [
2286
- ue(C.$slots, "header", { data: L(l) }, () => [
2287
- ot(hn, {
2288
- columns: L(l).columns,
2289
- store: L(l)
2352
+ he(I.$slots, "header", { data: V(l) }, () => [
2353
+ dt(gn, {
2354
+ columns: V(l).columns,
2355
+ store: V(l)
2290
2356
  }, null, 8, ["columns", "store"])
2291
2357
  ], !0),
2292
2358
  y("tbody", null, [
2293
- ue(C.$slots, "body", { data: L(l) }, () => [
2294
- (w(!0), k(oe, null, ie(L(l).filteredRows, (v, m) => (w(), re(mn, {
2295
- key: `${v.originalIndex}-${m}`,
2296
- row: v,
2297
- rowIndex: v.originalIndex,
2298
- store: L(l),
2359
+ he(I.$slots, "body", { data: V(l) }, () => [
2360
+ (w(!0), k(ue, null, me(V(l).filteredRows, (f, m) => (w(), pe(hn, {
2361
+ key: `${f.originalIndex}-${m}`,
2362
+ row: f,
2363
+ rowIndex: f.originalIndex,
2364
+ store: V(l),
2299
2365
  "onRow:action": b
2300
2366
  }, {
2301
- default: At(() => [
2302
- (w(!0), k(oe, null, ie(c(v), (g, M) => (w(), k(oe, {
2367
+ default: Tt(() => [
2368
+ (w(!0), k(ue, null, me(c(f), (g, C) => (w(), k(ue, {
2303
2369
  key: g.name
2304
2370
  }, [
2305
- g.isGantt ? (w(), re(Re(g.ganttComponent || "AGanttCell"), {
2371
+ g.isGantt ? (w(), pe(We(g.ganttComponent || "AGanttCell"), {
2306
2372
  key: 0,
2307
- store: L(l),
2308
- "columns-count": L(l).columns.length - i.value,
2309
- color: v.gantt?.color,
2310
- start: v.gantt?.startIndex,
2311
- end: v.gantt?.endIndex,
2373
+ store: V(l),
2374
+ "columns-count": V(l).columns.length - i.value,
2375
+ color: f.gantt?.color,
2376
+ start: f.gantt?.startIndex,
2377
+ end: f.gantt?.endIndex,
2312
2378
  colspan: g.colspan,
2313
2379
  pinned: g.pinned,
2314
- rowIndex: v.originalIndex,
2315
- colIndex: g.originalIndex ?? M,
2316
- style: fe({
2380
+ rowIndex: f.originalIndex,
2381
+ colIndex: g.originalIndex ?? C,
2382
+ style: xe({
2317
2383
  textAlign: g?.align || "center",
2318
2384
  minWidth: g?.width || "40ch",
2319
- width: L(l).config.fullWidth ? "auto" : null
2385
+ width: V(l).config.fullWidth ? "auto" : null
2320
2386
  }),
2321
2387
  "onConnection:create": p
2322
- }, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "rowIndex", "colIndex", "style"])) : (w(), re(Re(g.cellComponent || "ACell"), {
2388
+ }, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "rowIndex", "colIndex", "style"])) : (w(), pe(We(g.cellComponent || "ACell"), {
2323
2389
  key: 1,
2324
- store: L(l),
2390
+ store: V(l),
2325
2391
  pinned: g.pinned,
2326
- rowIndex: v.originalIndex,
2327
- colIndex: M,
2328
- style: fe({
2392
+ rowIndex: f.originalIndex,
2393
+ colIndex: C,
2394
+ style: xe({
2329
2395
  textAlign: g?.align || "center",
2330
- width: L(l).config.fullWidth ? "auto" : null
2396
+ width: V(l).config.fullWidth ? "auto" : null
2331
2397
  }),
2332
2398
  spellcheck: "false"
2333
2399
  }, null, 8, ["store", "pinned", "rowIndex", "colIndex", "style"]))
@@ -2337,57 +2403,57 @@ const jo = { class: "gantt-connection-overlay" }, qo = {
2337
2403
  }, 1032, ["row", "rowIndex", "store"]))), 128))
2338
2404
  ], !0)
2339
2405
  ]),
2340
- ue(C.$slots, "footer", { data: L(l) }, void 0, !0),
2341
- ue(C.$slots, "modal", { data: L(l) }, () => [
2342
- U(ot(gn, { store: L(l) }, {
2343
- default: At(() => [
2344
- (w(), re(Re(L(l).modal.component), at({
2345
- key: `${L(l).modal.rowIndex}:${L(l).modal.colIndex}`,
2346
- "col-index": L(l).modal.colIndex,
2347
- "row-index": L(l).modal.rowIndex,
2348
- store: L(l)
2349
- }, L(l).modal.componentProps), null, 16, ["col-index", "row-index", "store"]))
2406
+ he(I.$slots, "footer", { data: V(l) }, void 0, !0),
2407
+ he(I.$slots, "modal", { data: V(l) }, () => [
2408
+ J(dt(wn, { store: V(l) }, {
2409
+ default: Tt(() => [
2410
+ (w(), pe(We(V(l).modal.component), vt({
2411
+ key: `${V(l).modal.rowIndex}:${V(l).modal.colIndex}`,
2412
+ "col-index": V(l).modal.colIndex,
2413
+ "row-index": V(l).modal.rowIndex,
2414
+ store: V(l)
2415
+ }, V(l).modal.componentProps), null, 16, ["col-index", "row-index", "store"]))
2350
2416
  ]),
2351
2417
  _: 1
2352
2418
  }, 8, ["store"]), [
2353
- [ge, L(l).modal.visible]
2419
+ [Ce, V(l).modal.visible]
2354
2420
  ])
2355
2421
  ], !0)
2356
2422
  ], 4)), [
2357
- [L(zo), L(l).closeModal]
2423
+ [V(zo), V(l).closeModal]
2358
2424
  ]),
2359
- L(l).isGanttView && L(l).isDependencyGraphEnabled ? (w(), re(Qo, {
2425
+ V(l).isGanttView && V(l).isDependencyGraphEnabled ? (w(), pe(tl, {
2360
2426
  key: 0,
2361
- store: L(l),
2427
+ store: V(l),
2362
2428
  "onConnection:delete": h
2363
- }, null, 8, ["store"])) : z("", !0)
2429
+ }, null, 8, ["store"])) : q("", !0)
2364
2430
  ]));
2365
2431
  }
2366
- }), gl = /* @__PURE__ */ Ee(hl, [["__scopeId", "data-v-3d00d51b"]]), wl = {}, yl = { class: "aloading" }, xl = { class: "aloading-header" };
2367
- function bl(e, t) {
2368
- return w(), k("div", yl, [
2369
- y("h2", xl, [
2370
- ue(e.$slots, "default", {}, void 0, !0)
2432
+ }), yl = /* @__PURE__ */ Ve(wl, [["__scopeId", "data-v-3d00d51b"]]), xl = {}, bl = { class: "aloading" }, Il = { class: "aloading-header" };
2433
+ function kl(e, t) {
2434
+ return w(), k("div", bl, [
2435
+ y("h2", Il, [
2436
+ he(e.$slots, "default", {}, void 0, !0)
2371
2437
  ]),
2372
2438
  t[0] || (t[0] = y("div", { class: "aloading-bar" }, null, -1))
2373
2439
  ]);
2374
2440
  }
2375
- const kl = /* @__PURE__ */ Ee(wl, [["render", bl], ["__scopeId", "data-v-a930a25b"]]), Il = {}, Cl = { class: "aloading" }, Ml = { class: "aloading-header" };
2376
- function El(e, t) {
2377
- return w(), k("div", Cl, [
2378
- y("h2", Ml, [
2379
- ue(e.$slots, "default", {}, void 0, !0)
2441
+ const Ml = /* @__PURE__ */ Ve(xl, [["render", kl], ["__scopeId", "data-v-a930a25b"]]), Cl = {}, El = { class: "aloading" }, Al = { class: "aloading-header" };
2442
+ function Tl(e, t) {
2443
+ return w(), k("div", El, [
2444
+ y("h2", Al, [
2445
+ he(e.$slots, "default", {}, void 0, !0)
2380
2446
  ]),
2381
2447
  t[0] || (t[0] = y("div", { class: "aloading-bar" }, null, -1))
2382
2448
  ]);
2383
2449
  }
2384
- const Al = /* @__PURE__ */ Ee(Il, [["render", El], ["__scopeId", "data-v-e1165876"]]);
2385
- function Tl(e) {
2386
- e.component("ACell", po), e.component("AExpansionRow", yo), e.component("AGanttCell", Eo), e.component("ARow", mn), e.component("ARowActions", tt), e.component("ATable", gl), e.component("ATableHeader", hn), e.component("ATableLoading", kl), e.component("ATableLoadingBar", Al), e.component("ATableModal", gn);
2450
+ const $l = /* @__PURE__ */ Ve(Cl, [["render", Tl], ["__scopeId", "data-v-e1165876"]]);
2451
+ function Dl(e) {
2452
+ e.component("ACell", ho), e.component("AExpansionRow", bo), e.component("AGanttCell", To), e.component("ARow", hn), e.component("ARowActions", ut), e.component("ATable", yl), e.component("ATableHeader", gn), e.component("ATableLoading", Ml), e.component("ATableLoadingBar", $l), e.component("ATableModal", wn);
2387
2453
  }
2388
- const Dl = { class: "aform_form-element" }, $l = ["for"], Sl = { class: "aform_checkbox-container aform_input-field" }, Rl = ["id", "readonly", "required"], Ll = ["innerHTML"], Hl = /* @__PURE__ */ Y({
2454
+ const Sl = { class: "aform_form-element" }, Rl = ["for"], Ll = { class: "aform_checkbox-container aform_input-field" }, Hl = ["id", "readonly", "required"], Vl = ["innerHTML"], Pl = /* @__PURE__ */ te({
2389
2455
  __name: "ACheckbox",
2390
- props: /* @__PURE__ */ me({
2456
+ props: /* @__PURE__ */ Me({
2391
2457
  schema: {},
2392
2458
  label: {},
2393
2459
  mask: {},
@@ -2396,54 +2462,54 @@ const Dl = { class: "aform_form-element" }, $l = ["for"], Sl = { class: "aform_c
2396
2462
  uuid: {},
2397
2463
  validation: { default: () => ({ errorMessage: "&nbsp;" }) }
2398
2464
  }, {
2399
- modelValue: {},
2465
+ modelValue: { type: [Boolean, String, Array, Set] },
2400
2466
  modelModifiers: {}
2401
2467
  }),
2402
2468
  emits: ["update:modelValue"],
2403
2469
  setup(e) {
2404
- const t = he(e, "modelValue");
2405
- return (n, o) => (w(), k("div", Dl, [
2470
+ const t = ke(e, "modelValue");
2471
+ return (n, o) => (w(), k("div", Sl, [
2406
2472
  y("label", {
2407
2473
  class: "aform_field-label",
2408
2474
  for: e.uuid
2409
- }, j(e.label), 9, $l),
2410
- y("span", Sl, [
2411
- U(y("input", {
2475
+ }, K(e.label), 9, Rl),
2476
+ y("span", Ll, [
2477
+ J(y("input", {
2412
2478
  id: e.uuid,
2413
2479
  "onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
2414
2480
  type: "checkbox",
2415
2481
  class: "aform_checkbox",
2416
2482
  readonly: e.readOnly,
2417
2483
  required: e.required
2418
- }, null, 8, Rl), [
2419
- [rn, t.value]
2484
+ }, null, 8, Hl), [
2485
+ [un, t.value]
2420
2486
  ])
2421
2487
  ]),
2422
- U(y("p", {
2488
+ J(y("p", {
2423
2489
  class: "aform_error",
2424
2490
  innerHTML: e.validation.errorMessage
2425
- }, null, 8, Ll), [
2426
- [ge, e.validation.errorMessage]
2491
+ }, null, 8, Vl), [
2492
+ [Ce, e.validation.errorMessage]
2427
2493
  ])
2428
2494
  ]));
2429
2495
  }
2430
- }), be = (e, t) => {
2496
+ }), $e = (e, t) => {
2431
2497
  const n = e.__vccOpts || e;
2432
2498
  for (const [o, a] of t)
2433
2499
  n[o] = a;
2434
2500
  return n;
2435
- }, _l = /* @__PURE__ */ be(Hl, [["__scopeId", "data-v-f13fd4d6"]]), Vl = /* @__PURE__ */ Y({
2501
+ }, Ol = /* @__PURE__ */ $e(Pl, [["__scopeId", "data-v-f13fd4d6"]]), _l = /* @__PURE__ */ te({
2436
2502
  __name: "AComboBox",
2437
2503
  props: ["event", "cellData", "tableID"],
2438
2504
  setup(e) {
2439
2505
  return (t, n) => {
2440
- const o = cn("ATableModal");
2441
- return w(), re(o, {
2506
+ const o = dn("ATableModal");
2507
+ return w(), pe(o, {
2442
2508
  event: e.event,
2443
2509
  "cell-data": e.cellData,
2444
2510
  class: "amodal"
2445
2511
  }, {
2446
- default: At(() => [...n[0] || (n[0] = [
2512
+ default: Tt(() => [...n[0] || (n[0] = [
2447
2513
  y("div", null, [
2448
2514
  y("input", { type: "text" }),
2449
2515
  y("input", { type: "text" }),
@@ -2454,9 +2520,9 @@ const Dl = { class: "aform_form-element" }, $l = ["for"], Sl = { class: "aform_c
2454
2520
  }, 8, ["event", "cell-data"]);
2455
2521
  };
2456
2522
  }
2457
- }), Ol = ["id", "disabled", "required"], Pl = ["for"], Bl = ["innerHTML"], Fl = /* @__PURE__ */ Y({
2523
+ }), Bl = ["id", "disabled", "required"], Fl = ["for"], Zl = ["innerHTML"], Nl = /* @__PURE__ */ te({
2458
2524
  __name: "ADate",
2459
- props: /* @__PURE__ */ me({
2525
+ props: /* @__PURE__ */ Me({
2460
2526
  schema: {},
2461
2527
  label: { default: "Date" },
2462
2528
  mask: {},
@@ -2472,14 +2538,14 @@ const Dl = { class: "aform_form-element" }, $l = ["for"], Sl = { class: "aform_c
2472
2538
  }),
2473
2539
  emits: ["update:modelValue"],
2474
2540
  setup(e) {
2475
- const t = he(e, "modelValue", {
2541
+ const t = ke(e, "modelValue", {
2476
2542
  // format the date to be compatible with the native input datepicker
2477
2543
  set: (a) => new Date(a).toISOString().split("T")[0]
2478
- }), n = ae("date"), o = () => {
2544
+ }), n = fe("date"), o = () => {
2479
2545
  n.value && "showPicker" in HTMLInputElement.prototype && n.value.showPicker();
2480
2546
  };
2481
2547
  return (a, r) => (w(), k("div", null, [
2482
- U(y("input", {
2548
+ J(y("input", {
2483
2549
  id: e.uuid,
2484
2550
  ref: "date",
2485
2551
  "onUpdate:modelValue": r[0] || (r[0] = (s) => t.value = s),
@@ -2487,23 +2553,23 @@ const Dl = { class: "aform_form-element" }, $l = ["for"], Sl = { class: "aform_c
2487
2553
  disabled: e.readOnly,
2488
2554
  required: e.required,
2489
2555
  onClick: o
2490
- }, null, 8, Ol), [
2491
- [de, t.value]
2556
+ }, null, 8, Bl), [
2557
+ [we, t.value]
2492
2558
  ]),
2493
- y("label", { for: e.uuid }, j(e.label), 9, Pl),
2494
- U(y("p", {
2559
+ y("label", { for: e.uuid }, K(e.label), 9, Fl),
2560
+ J(y("p", {
2495
2561
  innerHTML: e.validation.errorMessage
2496
- }, null, 8, Bl), [
2497
- [ge, e.validation.errorMessage]
2562
+ }, null, 8, Zl), [
2563
+ [Ce, e.validation.errorMessage]
2498
2564
  ])
2499
2565
  ]));
2500
2566
  }
2501
- }), Zl = /* @__PURE__ */ be(Fl, [["__scopeId", "data-v-a15ed922"]]);
2502
- function wn(e, t) {
2503
- return rt() ? (it(e, t), !0) : !1;
2567
+ }), Ul = /* @__PURE__ */ $e(Nl, [["__scopeId", "data-v-a15ed922"]]);
2568
+ function yn(e, t) {
2569
+ return mt() ? (ht(e, t), !0) : !1;
2504
2570
  }
2505
2571
  // @__NO_SIDE_EFFECTS__
2506
- function Yt() {
2572
+ function jt() {
2507
2573
  const e = /* @__PURE__ */ new Set(), t = (r) => {
2508
2574
  e.delete(r);
2509
2575
  };
@@ -2511,7 +2577,7 @@ function Yt() {
2511
2577
  on: (r) => {
2512
2578
  e.add(r);
2513
2579
  const s = () => t(r);
2514
- return wn(s), { off: s };
2580
+ return yn(s), { off: s };
2515
2581
  },
2516
2582
  off: t,
2517
2583
  trigger: (...r) => Promise.all(Array.from(e).map((s) => s(...r))),
@@ -2520,136 +2586,136 @@ function Yt() {
2520
2586
  }
2521
2587
  };
2522
2588
  }
2523
- const yn = typeof window < "u" && typeof document < "u";
2589
+ const xn = typeof window < "u" && typeof document < "u";
2524
2590
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2525
- const Nl = Object.prototype.toString, Wl = (e) => Nl.call(e) === "[object Object]", Pe = () => {
2591
+ const Wl = Object.prototype.toString, Gl = (e) => Wl.call(e) === "[object Object]", Qe = () => {
2526
2592
  }, zl = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
2527
- function Gl(...e) {
2528
- if (e.length !== 1) return un(...e);
2593
+ function ql(...e) {
2594
+ if (e.length !== 1) return cn(...e);
2529
2595
  const t = e[0];
2530
- return typeof t == "function" ? St($t(() => ({
2596
+ return typeof t == "function" ? Rt(St(() => ({
2531
2597
  get: t,
2532
- set: Pe
2533
- }))) : S(t);
2598
+ set: Qe
2599
+ }))) : L(t);
2534
2600
  }
2535
2601
  function kt(e) {
2536
2602
  return Array.isArray(e) ? e : [e];
2537
2603
  }
2538
- function Ul(e, t, n) {
2539
- return Q(e, t, {
2604
+ function Yl(e, t, n) {
2605
+ return oe(e, t, {
2540
2606
  ...n,
2541
2607
  immediate: !0
2542
2608
  });
2543
2609
  }
2544
- const xn = yn ? window : void 0, jl = yn ? window.document : void 0;
2545
- function Se(e) {
2610
+ const bn = xn ? window : void 0, Xl = xn ? window.document : void 0;
2611
+ function Ue(e) {
2546
2612
  var t;
2547
- const n = $(e);
2613
+ const n = E(e);
2548
2614
  return (t = n?.$el) !== null && t !== void 0 ? t : n;
2549
2615
  }
2550
- function It(...e) {
2551
- const t = (o, a, r, s) => (o.addEventListener(a, r, s), () => o.removeEventListener(a, r, s)), n = T(() => {
2552
- const o = kt($(e[0])).filter((a) => a != null);
2616
+ function Mt(...e) {
2617
+ const t = (o, a, r, s) => (o.addEventListener(a, r, s), () => o.removeEventListener(a, r, s)), n = $(() => {
2618
+ const o = kt(E(e[0])).filter((a) => a != null);
2553
2619
  return o.every((a) => typeof a != "string") ? o : void 0;
2554
2620
  });
2555
- return Ul(() => {
2621
+ return Yl(() => {
2556
2622
  var o, a;
2557
2623
  return [
2558
- (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => Se(r))) !== null && o !== void 0 ? o : [xn].filter((r) => r != null),
2559
- kt($(n.value ? e[1] : e[0])),
2560
- kt(L(n.value ? e[2] : e[1])),
2561
- $(n.value ? e[3] : e[2])
2624
+ (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => Ue(r))) !== null && o !== void 0 ? o : [bn].filter((r) => r != null),
2625
+ kt(E(n.value ? e[1] : e[0])),
2626
+ kt(V(n.value ? e[2] : e[1])),
2627
+ E(n.value ? e[3] : e[2])
2562
2628
  ];
2563
2629
  }, ([o, a, r, s], l, i) => {
2564
2630
  if (!o?.length || !a?.length || !r?.length) return;
2565
- const u = Wl(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
2631
+ const u = Gl(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
2566
2632
  i(() => {
2567
2633
  c.forEach((p) => p());
2568
2634
  });
2569
2635
  }, { flush: "post" });
2570
2636
  }
2571
- function Xt(e, t, n = {}) {
2572
- const { window: o = xn, ignore: a = [], capture: r = !0, detectIframe: s = !1, controls: l = !1 } = n;
2637
+ function Jt(e, t, n = {}) {
2638
+ const { window: o = bn, ignore: a = [], capture: r = !0, detectIframe: s = !1, controls: l = !1 } = n;
2573
2639
  if (!o) return l ? {
2574
- stop: Pe,
2575
- cancel: Pe,
2576
- trigger: Pe
2577
- } : Pe;
2640
+ stop: Qe,
2641
+ cancel: Qe,
2642
+ trigger: Qe
2643
+ } : Qe;
2578
2644
  let i = !0;
2579
- const u = (v) => $(a).some((m) => {
2580
- if (typeof m == "string") return Array.from(o.document.querySelectorAll(m)).some((g) => g === v.target || v.composedPath().includes(g));
2645
+ const u = (f) => E(a).some((m) => {
2646
+ if (typeof m == "string") return Array.from(o.document.querySelectorAll(m)).some((g) => g === f.target || f.composedPath().includes(g));
2581
2647
  {
2582
- const g = Se(m);
2583
- return g && (v.target === g || v.composedPath().includes(g));
2648
+ const g = Ue(m);
2649
+ return g && (f.target === g || f.composedPath().includes(g));
2584
2650
  }
2585
2651
  });
2586
- function c(v) {
2587
- const m = $(v);
2652
+ function c(f) {
2653
+ const m = E(f);
2588
2654
  return m && m.$.subTree.shapeFlag === 16;
2589
2655
  }
2590
- function p(v, m) {
2591
- const g = $(v), M = g.$.subTree && g.$.subTree.children;
2592
- return M == null || !Array.isArray(M) ? !1 : M.some((D) => D.el === m.target || m.composedPath().includes(D.el));
2656
+ function p(f, m) {
2657
+ const g = E(f), C = g.$.subTree && g.$.subTree.children;
2658
+ return C == null || !Array.isArray(C) ? !1 : C.some((T) => T.el === m.target || m.composedPath().includes(T.el));
2593
2659
  }
2594
- const h = (v) => {
2595
- const m = Se(e);
2596
- if (v.target != null && !(!(m instanceof Element) && c(e) && p(e, v)) && !(!m || m === v.target || v.composedPath().includes(m))) {
2597
- if ("detail" in v && v.detail === 0 && (i = !u(v)), !i) {
2660
+ const h = (f) => {
2661
+ const m = Ue(e);
2662
+ if (f.target != null && !(!(m instanceof Element) && c(e) && p(e, f)) && !(!m || m === f.target || f.composedPath().includes(m))) {
2663
+ if ("detail" in f && f.detail === 0 && (i = !u(f)), !i) {
2598
2664
  i = !0;
2599
2665
  return;
2600
2666
  }
2601
- t(v);
2667
+ t(f);
2602
2668
  }
2603
2669
  };
2604
2670
  let b = !1;
2605
- const C = [
2606
- It(o, "click", (v) => {
2671
+ const I = [
2672
+ Mt(o, "click", (f) => {
2607
2673
  b || (b = !0, setTimeout(() => {
2608
2674
  b = !1;
2609
- }, 0), h(v));
2675
+ }, 0), h(f));
2610
2676
  }, {
2611
2677
  passive: !0,
2612
2678
  capture: r
2613
2679
  }),
2614
- It(o, "pointerdown", (v) => {
2615
- const m = Se(e);
2616
- i = !u(v) && !!(m && !v.composedPath().includes(m));
2680
+ Mt(o, "pointerdown", (f) => {
2681
+ const m = Ue(e);
2682
+ i = !u(f) && !!(m && !f.composedPath().includes(m));
2617
2683
  }, { passive: !0 }),
2618
- s && It(o, "blur", (v) => {
2684
+ s && Mt(o, "blur", (f) => {
2619
2685
  setTimeout(() => {
2620
2686
  var m;
2621
- const g = Se(e);
2622
- ((m = o.document.activeElement) === null || m === void 0 ? void 0 : m.tagName) === "IFRAME" && !g?.contains(o.document.activeElement) && t(v);
2687
+ const g = Ue(e);
2688
+ ((m = o.document.activeElement) === null || m === void 0 ? void 0 : m.tagName) === "IFRAME" && !g?.contains(o.document.activeElement) && t(f);
2623
2689
  }, 0);
2624
2690
  }, { passive: !0 })
2625
- ].filter(Boolean), x = () => C.forEach((v) => v());
2691
+ ].filter(Boolean), x = () => I.forEach((f) => f());
2626
2692
  return l ? {
2627
2693
  stop: x,
2628
2694
  cancel: () => {
2629
2695
  i = !1;
2630
2696
  },
2631
- trigger: (v) => {
2632
- i = !0, h(v), i = !1;
2697
+ trigger: (f) => {
2698
+ i = !0, h(f), i = !1;
2633
2699
  }
2634
2700
  } : x;
2635
2701
  }
2636
- const ql = {
2702
+ const jl = {
2637
2703
  multiple: !0,
2638
2704
  accept: "*",
2639
2705
  reset: !1,
2640
2706
  directory: !1
2641
2707
  };
2642
- function Yl(e) {
2708
+ function Jl(e) {
2643
2709
  if (!e) return null;
2644
2710
  if (e instanceof FileList) return e;
2645
2711
  const t = new DataTransfer();
2646
2712
  for (const n of e) t.items.add(n);
2647
2713
  return t.files;
2648
2714
  }
2649
- function Xl(e = {}) {
2650
- const { document: t = jl } = e, n = S(Yl(e.initialFiles)), { on: o, trigger: a } = /* @__PURE__ */ Yt(), { on: r, trigger: s } = /* @__PURE__ */ Yt(), l = T(() => {
2715
+ function Ql(e = {}) {
2716
+ const { document: t = Xl } = e, n = L(Jl(e.initialFiles)), { on: o, trigger: a } = /* @__PURE__ */ jt(), { on: r, trigger: s } = /* @__PURE__ */ jt(), l = $(() => {
2651
2717
  var p;
2652
- const h = (p = Se(e.input)) !== null && p !== void 0 ? p : t ? t.createElement("input") : void 0;
2718
+ const h = (p = Ue(e.input)) !== null && p !== void 0 ? p : t ? t.createElement("input") : void 0;
2653
2719
  return h && (h.type = "file", h.onchange = (b) => {
2654
2720
  n.value = b.target.files, a(n.value);
2655
2721
  }, h.oncancel = () => {
@@ -2659,21 +2725,21 @@ function Xl(e = {}) {
2659
2725
  n.value = null, l.value && l.value.value && (l.value.value = "", a(null));
2660
2726
  }, u = (p) => {
2661
2727
  const h = l.value;
2662
- h && (h.multiple = $(p.multiple), h.accept = $(p.accept), h.webkitdirectory = $(p.directory), zl(p, "capture") && (h.capture = $(p.capture)));
2728
+ h && (h.multiple = E(p.multiple), h.accept = E(p.accept), h.webkitdirectory = E(p.directory), zl(p, "capture") && (h.capture = E(p.capture)));
2663
2729
  }, c = (p) => {
2664
2730
  const h = l.value;
2665
2731
  if (!h) return;
2666
2732
  const b = {
2667
- ...ql,
2733
+ ...jl,
2668
2734
  ...e,
2669
2735
  ...p
2670
2736
  };
2671
- u(b), $(b.reset) && i(), h.click();
2737
+ u(b), E(b.reset) && i(), h.click();
2672
2738
  };
2673
- return Te(() => {
2739
+ return Oe(() => {
2674
2740
  u(e);
2675
2741
  }), {
2676
- files: St(n),
2742
+ files: Rt(n),
2677
2743
  open: c,
2678
2744
  reset: i,
2679
2745
  onCancel: r,
@@ -2683,26 +2749,26 @@ function Xl(e = {}) {
2683
2749
  function Ct(e) {
2684
2750
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
2685
2751
  }
2686
- const Mt = /* @__PURE__ */ new WeakMap();
2687
- function Jl(e, t = !1) {
2688
- const n = ee(t);
2752
+ const Et = /* @__PURE__ */ new WeakMap();
2753
+ function Kl(e, t = !1) {
2754
+ const n = ie(t);
2689
2755
  let o = "";
2690
- Q(Gl(e), (s) => {
2691
- const l = Ct($(s));
2756
+ oe(ql(e), (s) => {
2757
+ const l = Ct(E(s));
2692
2758
  if (l) {
2693
2759
  const i = l;
2694
- if (Mt.get(i) || Mt.set(i, i.style.overflow), i.style.overflow !== "hidden" && (o = i.style.overflow), i.style.overflow === "hidden") return n.value = !0;
2760
+ if (Et.get(i) || Et.set(i, i.style.overflow), i.style.overflow !== "hidden" && (o = i.style.overflow), i.style.overflow === "hidden") return n.value = !0;
2695
2761
  if (n.value) return i.style.overflow = "hidden";
2696
2762
  }
2697
2763
  }, { immediate: !0 });
2698
2764
  const a = () => {
2699
- const s = Ct($(e));
2765
+ const s = Ct(E(e));
2700
2766
  !s || n.value || (s.style.overflow = "hidden", n.value = !0);
2701
2767
  }, r = () => {
2702
- const s = Ct($(e));
2703
- !s || !n.value || (s.style.overflow = o, Mt.delete(s), n.value = !1);
2768
+ const s = Ct(E(e));
2769
+ !s || !n.value || (s.style.overflow = o, Et.delete(s), n.value = !1);
2704
2770
  };
2705
- return wn(r), T({
2771
+ return yn(r), $({
2706
2772
  get() {
2707
2773
  return n.value;
2708
2774
  },
@@ -2711,42 +2777,42 @@ function Jl(e, t = !1) {
2711
2777
  }
2712
2778
  });
2713
2779
  }
2714
- const Et = /* @__PURE__ */ new WeakMap(), Kl = {
2780
+ const At = /* @__PURE__ */ new WeakMap(), ea = {
2715
2781
  mounted(e, t) {
2716
2782
  const n = !t.modifiers.bubble;
2717
2783
  let o;
2718
- if (typeof t.value == "function") o = Xt(e, t.value, { capture: n });
2784
+ if (typeof t.value == "function") o = Jt(e, t.value, { capture: n });
2719
2785
  else {
2720
2786
  const [a, r] = t.value;
2721
- o = Xt(e, a, Object.assign({ capture: n }, r));
2787
+ o = Jt(e, a, Object.assign({ capture: n }, r));
2722
2788
  }
2723
- Et.set(e, o);
2789
+ At.set(e, o);
2724
2790
  },
2725
2791
  unmounted(e) {
2726
- const t = Et.get(e);
2727
- t && typeof t == "function" ? t() : t?.stop(), Et.delete(e);
2792
+ const t = At.get(e);
2793
+ t && typeof t == "function" ? t() : t?.stop(), At.delete(e);
2728
2794
  }
2729
2795
  };
2730
- function Ql() {
2796
+ function ta() {
2731
2797
  let e = !1;
2732
- const t = ee(!1);
2798
+ const t = ie(!1);
2733
2799
  return (n, o) => {
2734
2800
  if (t.value = o.value, e) return;
2735
2801
  e = !0;
2736
- const a = Jl(n, o.value);
2737
- Q(t, (r) => a.value = r);
2802
+ const a = Kl(n, o.value);
2803
+ oe(t, (r) => a.value = r);
2738
2804
  };
2739
2805
  }
2740
- Ql();
2741
- const ea = { class: "input-wrapper" }, ta = {
2806
+ ta();
2807
+ const na = { class: "input-wrapper" }, oa = {
2742
2808
  id: "autocomplete-results",
2743
2809
  class: "autocomplete-results"
2744
- }, na = {
2810
+ }, la = {
2745
2811
  key: 0,
2746
2812
  class: "loading autocomplete-result"
2747
- }, oa = ["onClick"], la = /* @__PURE__ */ Y({
2813
+ }, aa = ["onClick"], sa = /* @__PURE__ */ te({
2748
2814
  __name: "ADropdown",
2749
- props: /* @__PURE__ */ me({
2815
+ props: /* @__PURE__ */ Me({
2750
2816
  label: {},
2751
2817
  items: { default: () => [] },
2752
2818
  isAsync: { type: Boolean, default: !1 },
@@ -2757,7 +2823,7 @@ const ea = { class: "input-wrapper" }, ta = {
2757
2823
  }),
2758
2824
  emits: ["update:modelValue"],
2759
2825
  setup(e) {
2760
- const t = he(e, "modelValue"), n = sn({
2826
+ const t = ke(e, "modelValue"), n = rn({
2761
2827
  activeItemIndex: null,
2762
2828
  open: !1,
2763
2829
  loading: !1,
@@ -2804,103 +2870,103 @@ const ea = { class: "input-wrapper" }, ta = {
2804
2870
  }
2805
2871
  n.activeItemIndex = 0;
2806
2872
  };
2807
- return (h, b) => U((w(), k("div", {
2808
- class: K(["autocomplete", { isOpen: n.open }])
2873
+ return (h, b) => J((w(), k("div", {
2874
+ class: ae(["autocomplete", { isOpen: n.open }])
2809
2875
  }, [
2810
- y("div", ea, [
2811
- U(y("input", {
2812
- "onUpdate:modelValue": b[0] || (b[0] = (C) => t.value = C),
2876
+ y("div", na, [
2877
+ J(y("input", {
2878
+ "onUpdate:modelValue": b[0] || (b[0] = (I) => t.value = I),
2813
2879
  type: "text",
2814
2880
  onInput: a,
2815
2881
  onFocus: s,
2816
2882
  onKeydown: [
2817
- $e(u, ["down"]),
2818
- $e(c, ["up"]),
2819
- $e(p, ["enter"]),
2820
- $e(o, ["esc"]),
2821
- $e(o, ["tab"])
2883
+ Ne(u, ["down"]),
2884
+ Ne(c, ["up"]),
2885
+ Ne(p, ["enter"]),
2886
+ Ne(o, ["esc"]),
2887
+ Ne(o, ["tab"])
2822
2888
  ]
2823
2889
  }, null, 544), [
2824
- [de, t.value]
2890
+ [we, t.value]
2825
2891
  ]),
2826
- U(y("ul", ta, [
2827
- n.loading ? (w(), k("li", na, "Loading results...")) : (w(!0), k(oe, { key: 1 }, ie(n.results, (C, x) => (w(), k("li", {
2828
- key: C,
2829
- class: K(["autocomplete-result", { "is-active": x === n.activeItemIndex }]),
2830
- onClick: pe((v) => r(C), ["stop"])
2831
- }, j(C), 11, oa))), 128))
2892
+ J(y("ul", oa, [
2893
+ n.loading ? (w(), k("li", la, "Loading results...")) : (w(!0), k(ue, { key: 1 }, me(n.results, (I, x) => (w(), k("li", {
2894
+ key: I,
2895
+ class: ae(["autocomplete-result", { "is-active": x === n.activeItemIndex }]),
2896
+ onClick: Ie((f) => r(I), ["stop"])
2897
+ }, K(I), 11, aa))), 128))
2832
2898
  ], 512), [
2833
- [ge, n.open]
2899
+ [Ce, n.open]
2834
2900
  ]),
2835
- y("label", null, j(e.label), 1)
2901
+ y("label", null, K(e.label), 1)
2836
2902
  ])
2837
2903
  ], 2)), [
2838
- [L(Kl), o]
2904
+ [V(ea), o]
2839
2905
  ]);
2840
2906
  }
2841
- }), aa = /* @__PURE__ */ be(la, [["__scopeId", "data-v-31a6db8c"]]);
2842
- function bn(e, t) {
2843
- return rt() ? (it(e, t), !0) : !1;
2907
+ }), ra = /* @__PURE__ */ $e(sa, [["__scopeId", "data-v-31a6db8c"]]);
2908
+ function In(e, t) {
2909
+ return mt() ? (ht(e, t), !0) : !1;
2844
2910
  }
2845
- const sa = typeof window < "u" && typeof document < "u";
2911
+ const ia = typeof window < "u" && typeof document < "u";
2846
2912
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2847
- const ra = (e) => e != null, ia = Object.prototype.toString, ua = (e) => ia.call(e) === "[object Object]", ca = () => {
2913
+ const ua = (e) => e != null, ca = Object.prototype.toString, da = (e) => ca.call(e) === "[object Object]", fa = () => {
2848
2914
  };
2849
- function nt(e) {
2915
+ function ct(e) {
2850
2916
  return Array.isArray(e) ? e : [e];
2851
2917
  }
2852
- function da(e, t, n) {
2853
- return Q(e, t, {
2918
+ function va(e, t, n) {
2919
+ return oe(e, t, {
2854
2920
  ...n,
2855
2921
  immediate: !0
2856
2922
  });
2857
2923
  }
2858
- const Ve = sa ? window : void 0;
2859
- function He(e) {
2924
+ const Ye = ia ? window : void 0;
2925
+ function ze(e) {
2860
2926
  var t;
2861
- const n = $(e);
2927
+ const n = E(e);
2862
2928
  return (t = n?.$el) !== null && t !== void 0 ? t : n;
2863
2929
  }
2864
- function Fe(...e) {
2865
- const t = (o, a, r, s) => (o.addEventListener(a, r, s), () => o.removeEventListener(a, r, s)), n = T(() => {
2866
- const o = nt($(e[0])).filter((a) => a != null);
2930
+ function et(...e) {
2931
+ const t = (o, a, r, s) => (o.addEventListener(a, r, s), () => o.removeEventListener(a, r, s)), n = $(() => {
2932
+ const o = ct(E(e[0])).filter((a) => a != null);
2867
2933
  return o.every((a) => typeof a != "string") ? o : void 0;
2868
2934
  });
2869
- return da(() => {
2935
+ return va(() => {
2870
2936
  var o, a;
2871
2937
  return [
2872
- (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => He(r))) !== null && o !== void 0 ? o : [Ve].filter((r) => r != null),
2873
- nt($(n.value ? e[1] : e[0])),
2874
- nt(L(n.value ? e[2] : e[1])),
2875
- $(n.value ? e[3] : e[2])
2938
+ (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => ze(r))) !== null && o !== void 0 ? o : [Ye].filter((r) => r != null),
2939
+ ct(E(n.value ? e[1] : e[0])),
2940
+ ct(V(n.value ? e[2] : e[1])),
2941
+ E(n.value ? e[3] : e[2])
2876
2942
  ];
2877
2943
  }, ([o, a, r, s], l, i) => {
2878
2944
  if (!o?.length || !a?.length || !r?.length) return;
2879
- const u = ua(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
2945
+ const u = da(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
2880
2946
  i(() => {
2881
2947
  c.forEach((p) => p());
2882
2948
  });
2883
2949
  }, { flush: "post" });
2884
2950
  }
2885
2951
  // @__NO_SIDE_EFFECTS__
2886
- function va() {
2887
- const e = ee(!1), t = ut();
2888
- return t && we(() => {
2952
+ function pa() {
2953
+ const e = ie(!1), t = gt();
2954
+ return t && Ee(() => {
2889
2955
  e.value = !0;
2890
2956
  }, t), e;
2891
2957
  }
2892
2958
  // @__NO_SIDE_EFFECTS__
2893
- function fa(e) {
2894
- const t = /* @__PURE__ */ va();
2895
- return T(() => (t.value, !!e()));
2959
+ function ma(e) {
2960
+ const t = /* @__PURE__ */ pa();
2961
+ return $(() => (t.value, !!e()));
2896
2962
  }
2897
- function pa(e, t, n = {}) {
2898
- const { window: o = Ve, ...a } = n;
2963
+ function ha(e, t, n = {}) {
2964
+ const { window: o = Ye, ...a } = n;
2899
2965
  let r;
2900
- const s = /* @__PURE__ */ fa(() => o && "MutationObserver" in o), l = () => {
2966
+ const s = /* @__PURE__ */ ma(() => o && "MutationObserver" in o), l = () => {
2901
2967
  r && (r.disconnect(), r = void 0);
2902
- }, i = Q(T(() => {
2903
- const p = nt($(e)).map(He).filter(ra);
2968
+ }, i = oe($(() => {
2969
+ const p = ct(E(e)).map(ze).filter(ua);
2904
2970
  return new Set(p);
2905
2971
  }), (p) => {
2906
2972
  l(), s.value && p.size && (r = new MutationObserver(t), p.forEach((h) => r.observe(h, a)));
@@ -2910,22 +2976,22 @@ function pa(e, t, n = {}) {
2910
2976
  }), u = () => r?.takeRecords(), c = () => {
2911
2977
  i(), l();
2912
2978
  };
2913
- return bn(c), {
2979
+ return In(c), {
2914
2980
  isSupported: s,
2915
2981
  stop: c,
2916
2982
  takeRecords: u
2917
2983
  };
2918
2984
  }
2919
- function ma(e, t, n = {}) {
2920
- const { window: o = Ve, document: a = o?.document, flush: r = "sync" } = n;
2921
- if (!o || !a) return ca;
2985
+ function ga(e, t, n = {}) {
2986
+ const { window: o = Ye, document: a = o?.document, flush: r = "sync" } = n;
2987
+ if (!o || !a) return fa;
2922
2988
  let s;
2923
2989
  const l = (c) => {
2924
2990
  s?.(), s = c;
2925
- }, i = Te(() => {
2926
- const c = He(e);
2991
+ }, i = Oe(() => {
2992
+ const c = ze(e);
2927
2993
  if (c) {
2928
- const { stop: p } = pa(a, (h) => {
2994
+ const { stop: p } = ha(a, (h) => {
2929
2995
  h.map((b) => [...b.removedNodes]).flat().some((b) => b === c || b.contains(c)) && t(h);
2930
2996
  }, {
2931
2997
  window: o,
@@ -2937,17 +3003,17 @@ function ma(e, t, n = {}) {
2937
3003
  }, { flush: r }), u = () => {
2938
3004
  i(), l();
2939
3005
  };
2940
- return bn(u), u;
3006
+ return In(u), u;
2941
3007
  }
2942
3008
  // @__NO_SIDE_EFFECTS__
2943
- function ha(e = {}) {
3009
+ function wa(e = {}) {
2944
3010
  var t;
2945
- const { window: n = Ve, deep: o = !0, triggerOnRemoval: a = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : n?.document, s = () => {
3011
+ const { window: n = Ye, deep: o = !0, triggerOnRemoval: a = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : n?.document, s = () => {
2946
3012
  let u = r?.activeElement;
2947
3013
  if (o)
2948
3014
  for (var c; u?.shadowRoot; ) u = u == null || (c = u.shadowRoot) === null || c === void 0 ? void 0 : c.activeElement;
2949
3015
  return u;
2950
- }, l = ee(), i = () => {
3016
+ }, l = ie(), i = () => {
2951
3017
  l.value = s();
2952
3018
  };
2953
3019
  if (n) {
@@ -2955,26 +3021,26 @@ function ha(e = {}) {
2955
3021
  capture: !0,
2956
3022
  passive: !0
2957
3023
  };
2958
- Fe(n, "blur", (c) => {
3024
+ et(n, "blur", (c) => {
2959
3025
  c.relatedTarget === null && i();
2960
- }, u), Fe(n, "focus", i, u);
3026
+ }, u), et(n, "focus", i, u);
2961
3027
  }
2962
- return a && ma(l, i, { document: r }), i(), l;
3028
+ return a && ga(l, i, { document: r }), i(), l;
2963
3029
  }
2964
- const ga = "focusin", wa = "focusout", ya = ":focus-within";
2965
- function xa(e, t = {}) {
2966
- const { window: n = Ve } = t, o = T(() => He(e)), a = ee(!1), r = T(() => a.value);
2967
- if (!n || !(/* @__PURE__ */ ha(t)).value) return { focused: r };
3030
+ const ya = "focusin", xa = "focusout", ba = ":focus-within";
3031
+ function Ia(e, t = {}) {
3032
+ const { window: n = Ye } = t, o = $(() => ze(e)), a = ie(!1), r = $(() => a.value);
3033
+ if (!n || !(/* @__PURE__ */ wa(t)).value) return { focused: r };
2968
3034
  const s = { passive: !0 };
2969
- return Fe(o, ga, () => a.value = !0, s), Fe(o, wa, () => {
3035
+ return et(o, ya, () => a.value = !0, s), et(o, xa, () => {
2970
3036
  var l, i, u;
2971
- return a.value = (l = (i = o.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i, ya)) !== null && l !== void 0 ? l : !1;
3037
+ return a.value = (l = (i = o.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i, ba)) !== null && l !== void 0 ? l : !1;
2972
3038
  }, s), { focused: r };
2973
3039
  }
2974
- function ba(e, { window: t = Ve, scrollTarget: n } = {}) {
2975
- const o = S(!1), a = () => {
3040
+ function ka(e, { window: t = Ye, scrollTarget: n } = {}) {
3041
+ const o = L(!1), a = () => {
2976
3042
  if (!t) return;
2977
- const r = t.document, s = He(e);
3043
+ const r = t.document, s = ze(e);
2978
3044
  if (!s)
2979
3045
  o.value = !1;
2980
3046
  else {
@@ -2982,22 +3048,22 @@ function ba(e, { window: t = Ve, scrollTarget: n } = {}) {
2982
3048
  o.value = l.top <= (t.innerHeight || r.documentElement.clientHeight) && l.left <= (t.innerWidth || r.documentElement.clientWidth) && l.bottom >= 0 && l.right >= 0;
2983
3049
  }
2984
3050
  };
2985
- return Q(
2986
- () => He(e),
3051
+ return oe(
3052
+ () => ze(e),
2987
3053
  () => a(),
2988
3054
  { immediate: !0, flush: "post" }
2989
- ), t && Fe(n || t, "scroll", a, {
3055
+ ), t && et(n || t, "scroll", a, {
2990
3056
  capture: !1,
2991
3057
  passive: !0
2992
3058
  }), o;
2993
3059
  }
2994
- const ke = (e) => {
2995
- let t = ba(e).value;
3060
+ const De = (e) => {
3061
+ let t = ka(e).value;
2996
3062
  return t = t && e.offsetHeight > 0, t;
2997
- }, Ie = (e) => e.tabIndex >= 0, Jt = (e) => {
3063
+ }, Se = (e) => e.tabIndex >= 0, Qt = (e) => {
2998
3064
  const t = e.target;
2999
- return Pt(t);
3000
- }, Pt = (e) => {
3065
+ return Bt(t);
3066
+ }, Bt = (e) => {
3001
3067
  let t;
3002
3068
  if (e instanceof HTMLTableCellElement) {
3003
3069
  const n = e.parentElement?.previousElementSibling;
@@ -3009,8 +3075,8 @@ const ke = (e) => {
3009
3075
  const n = e.previousElementSibling;
3010
3076
  n && (t = n);
3011
3077
  }
3012
- return t && (!Ie(t) || !ke(t)) ? Pt(t) : t;
3013
- }, ka = (e) => {
3078
+ return t && (!Se(t) || !De(t)) ? Bt(t) : t;
3079
+ }, Ma = (e) => {
3014
3080
  const t = e.target;
3015
3081
  let n;
3016
3082
  if (t instanceof HTMLTableCellElement) {
@@ -3026,11 +3092,11 @@ const ke = (e) => {
3026
3092
  a && (n = a);
3027
3093
  }
3028
3094
  }
3029
- return n && (!Ie(n) || !ke(n)) ? Bt(n) : n;
3095
+ return n && (!Se(n) || !De(n)) ? Ft(n) : n;
3030
3096
  }, Kt = (e) => {
3031
3097
  const t = e.target;
3032
- return Bt(t);
3033
- }, Bt = (e) => {
3098
+ return Ft(t);
3099
+ }, Ft = (e) => {
3034
3100
  let t;
3035
3101
  if (e instanceof HTMLTableCellElement) {
3036
3102
  const n = e.parentElement?.nextElementSibling;
@@ -3042,8 +3108,8 @@ const ke = (e) => {
3042
3108
  const n = e.nextElementSibling;
3043
3109
  n && (t = n);
3044
3110
  }
3045
- return t && (!Ie(t) || !ke(t)) ? Bt(t) : t;
3046
- }, Ia = (e) => {
3111
+ return t && (!Se(t) || !De(t)) ? Ft(t) : t;
3112
+ }, Ca = (e) => {
3047
3113
  const t = e.target;
3048
3114
  let n;
3049
3115
  if (t instanceof HTMLTableCellElement) {
@@ -3059,33 +3125,33 @@ const ke = (e) => {
3059
3125
  a && (n = a);
3060
3126
  }
3061
3127
  }
3062
- return n && (!Ie(n) || !ke(n)) ? Pt(n) : n;
3063
- }, Qt = (e) => {
3064
- const t = e.target;
3065
- return Ft(t);
3066
- }, Ft = (e) => {
3067
- let t;
3068
- return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!Ie(t) || !ke(t)) ? Ft(t) : t;
3128
+ return n && (!Se(n) || !De(n)) ? Bt(n) : n;
3069
3129
  }, en = (e) => {
3070
3130
  const t = e.target;
3071
3131
  return Zt(t);
3072
3132
  }, Zt = (e) => {
3073
3133
  let t;
3074
- return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!Ie(t) || !ke(t)) ? Zt(t) : t;
3134
+ return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!Se(t) || !De(t)) ? Zt(t) : t;
3075
3135
  }, tn = (e) => {
3076
- const t = e.target.parentElement?.firstElementChild;
3077
- return t && (!Ie(t) || !ke(t)) ? Zt(t) : t;
3136
+ const t = e.target;
3137
+ return Nt(t);
3138
+ }, Nt = (e) => {
3139
+ let t;
3140
+ return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!Se(t) || !De(t)) ? Nt(t) : t;
3078
3141
  }, nn = (e) => {
3142
+ const t = e.target.parentElement?.firstElementChild;
3143
+ return t && (!Se(t) || !De(t)) ? Nt(t) : t;
3144
+ }, on = (e) => {
3079
3145
  const t = e.target.parentElement?.lastElementChild;
3080
- return t && (!Ie(t) || !ke(t)) ? Ft(t) : t;
3081
- }, Ke = ["alt", "control", "shift", "meta"], Ca = {
3146
+ return t && (!Se(t) || !De(t)) ? Zt(t) : t;
3147
+ }, st = ["alt", "control", "shift", "meta"], Ea = {
3082
3148
  ArrowUp: "up",
3083
3149
  ArrowDown: "down",
3084
3150
  ArrowLeft: "left",
3085
3151
  ArrowRight: "right"
3086
3152
  }, kn = {
3087
3153
  "keydown.up": (e) => {
3088
- const t = Jt(e);
3154
+ const t = Qt(e);
3089
3155
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3090
3156
  },
3091
3157
  "keydown.down": (e) => {
@@ -3093,31 +3159,31 @@ const ke = (e) => {
3093
3159
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3094
3160
  },
3095
3161
  "keydown.left": (e) => {
3096
- const t = Qt(e);
3162
+ const t = en(e);
3097
3163
  e.preventDefault(), e.stopPropagation(), t && t.focus();
3098
3164
  },
3099
3165
  "keydown.right": (e) => {
3100
- const t = en(e);
3166
+ const t = tn(e);
3101
3167
  e.preventDefault(), e.stopPropagation(), t && t.focus();
3102
3168
  },
3103
3169
  "keydown.control.up": (e) => {
3104
- const t = ka(e);
3170
+ const t = Ma(e);
3105
3171
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3106
3172
  },
3107
3173
  "keydown.control.down": (e) => {
3108
- const t = Ia(e);
3174
+ const t = Ca(e);
3109
3175
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3110
3176
  },
3111
3177
  "keydown.control.left": (e) => {
3112
- const t = tn(e);
3178
+ const t = nn(e);
3113
3179
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3114
3180
  },
3115
3181
  "keydown.control.right": (e) => {
3116
- const t = nn(e);
3182
+ const t = on(e);
3117
3183
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3118
3184
  },
3119
3185
  "keydown.end": (e) => {
3120
- const t = nn(e);
3186
+ const t = on(e);
3121
3187
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3122
3188
  },
3123
3189
  "keydown.enter": (e) => {
@@ -3130,24 +3196,24 @@ const ke = (e) => {
3130
3196
  "keydown.shift.enter": (e) => {
3131
3197
  if (e.target instanceof HTMLTableCellElement) {
3132
3198
  e.preventDefault(), e.stopPropagation();
3133
- const t = Jt(e);
3199
+ const t = Qt(e);
3134
3200
  t && t.focus();
3135
3201
  }
3136
3202
  },
3137
3203
  "keydown.home": (e) => {
3138
- const t = tn(e);
3204
+ const t = nn(e);
3139
3205
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3140
3206
  },
3141
3207
  "keydown.tab": (e) => {
3142
- const t = en(e);
3208
+ const t = tn(e);
3143
3209
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3144
3210
  },
3145
3211
  "keydown.shift.tab": (e) => {
3146
- const t = Qt(e);
3212
+ const t = en(e);
3147
3213
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
3148
3214
  }
3149
3215
  };
3150
- function Ma(e) {
3216
+ function Aa(e) {
3151
3217
  const t = (s) => {
3152
3218
  let l = null;
3153
3219
  return s.parent && (typeof s.parent == "string" ? l = document.querySelector(s.parent) : s.parent instanceof HTMLElement ? l = s.parent : l = s.parent.value), l;
@@ -3171,23 +3237,23 @@ function Ma(e) {
3171
3237
  }, o = (s) => {
3172
3238
  const l = t(s);
3173
3239
  let i = [];
3174
- return s.selectors ? i = n(s) : l && (i = Array.from(l.children).filter((u) => Ie(u) && ke(u))), i;
3240
+ return s.selectors ? i = n(s) : l && (i = Array.from(l.children).filter((u) => Se(u) && De(u))), i;
3175
3241
  }, a = (s) => (l) => {
3176
- const i = Ca[l.key] || l.key.toLowerCase();
3177
- if (Ke.includes(i)) return;
3242
+ const i = Ea[l.key] || l.key.toLowerCase();
3243
+ if (st.includes(i)) return;
3178
3244
  const u = s.handlers || kn;
3179
3245
  for (const c of Object.keys(u)) {
3180
3246
  const [p, ...h] = c.split(".");
3181
3247
  if (p === "keydown" && h.includes(i)) {
3182
- const b = u[c], C = h.filter((v) => Ke.includes(v)), x = Ke.some((v) => {
3183
- const m = v.charAt(0).toUpperCase() + v.slice(1);
3248
+ const b = u[c], I = h.filter((f) => st.includes(f)), x = st.some((f) => {
3249
+ const m = f.charAt(0).toUpperCase() + f.slice(1);
3184
3250
  return l.getModifierState(m);
3185
3251
  });
3186
- if (C.length > 0) {
3252
+ if (I.length > 0) {
3187
3253
  if (x) {
3188
- for (const v of Ke)
3189
- if (h.includes(v)) {
3190
- const m = v.charAt(0).toUpperCase() + v.slice(1);
3254
+ for (const f of st)
3255
+ if (h.includes(f)) {
3256
+ const m = f.charAt(0).toUpperCase() + f.slice(1);
3191
3257
  l.getModifierState(m) && b(l);
3192
3258
  }
3193
3259
  }
@@ -3196,29 +3262,29 @@ function Ma(e) {
3196
3262
  }
3197
3263
  }
3198
3264
  }, r = [];
3199
- we(() => {
3265
+ Ee(() => {
3200
3266
  for (const s of e) {
3201
3267
  const l = t(s), i = o(s), u = a(s), c = l ? [l] : i;
3202
3268
  for (const p of c) {
3203
- const { focused: h } = xa(S(p)), b = Q(h, (C) => {
3204
- C ? p.addEventListener("keydown", u) : p.removeEventListener("keydown", u);
3269
+ const { focused: h } = Ia(L(p)), b = oe(h, (I) => {
3270
+ I ? p.addEventListener("keydown", u) : p.removeEventListener("keydown", u);
3205
3271
  });
3206
3272
  r.push(b);
3207
3273
  }
3208
3274
  }
3209
- }), an(() => {
3275
+ }), sn(() => {
3210
3276
  for (const s of r)
3211
3277
  s();
3212
3278
  });
3213
3279
  }
3214
- const Ea = {
3280
+ const Ta = {
3215
3281
  ref: "datepicker",
3216
3282
  class: "adatepicker",
3217
3283
  tabindex: "0"
3218
- }, Aa = {
3284
+ }, $a = {
3219
3285
  colspan: "5",
3220
3286
  tabindex: -1
3221
- }, Ta = ["onClick", "onKeydown"], Da = 6, on = 7, $a = /* @__PURE__ */ Y({
3287
+ }, Da = ["onClick", "onKeydown"], Sa = 6, ln = 7, Ra = /* @__PURE__ */ te({
3222
3288
  __name: "ADatePicker",
3223
3289
  props: {
3224
3290
  modelValue: { default: /* @__PURE__ */ new Date() },
@@ -3226,39 +3292,39 @@ const Ea = {
3226
3292
  },
3227
3293
  emits: ["update:modelValue"],
3228
3294
  setup(e, { expose: t }) {
3229
- const n = he(e, "modelValue"), o = S(new Date(n.value)), a = S(o.value.getMonth()), r = S(o.value.getFullYear()), s = S([]), l = ae("datepicker");
3230
- we(async () => {
3231
- i(), await st();
3232
- const M = document.getElementsByClassName("selectedDate");
3233
- if (M.length > 0)
3234
- M[0].focus();
3295
+ const n = ke(e, "modelValue"), o = L(new Date(n.value)), a = L(o.value.getMonth()), r = L(o.value.getFullYear()), s = L([]), l = fe("datepicker");
3296
+ Ee(async () => {
3297
+ i(), await pt();
3298
+ const C = document.getElementsByClassName("selectedDate");
3299
+ if (C.length > 0)
3300
+ C[0].focus();
3235
3301
  else {
3236
- const D = document.getElementsByClassName("todaysDate");
3237
- D.length > 0 && D[0].focus();
3302
+ const T = document.getElementsByClassName("todaysDate");
3303
+ T.length > 0 && T[0].focus();
3238
3304
  }
3239
3305
  });
3240
3306
  const i = () => {
3241
3307
  s.value = [];
3242
- const M = new Date(r.value, a.value, 1), D = M.getDay(), P = M.setDate(M.getDate() - D);
3243
- for (const H of Array(43).keys())
3244
- s.value.push(P + H * 864e5);
3308
+ const C = new Date(r.value, a.value, 1), T = C.getDay(), R = C.setDate(C.getDate() - T);
3309
+ for (const S of Array(43).keys())
3310
+ s.value.push(R + S * 864e5);
3245
3311
  };
3246
- Q([a, r], i);
3312
+ oe([a, r], i);
3247
3313
  const u = () => r.value -= 1, c = () => r.value += 1, p = () => {
3248
3314
  a.value == 0 ? (a.value = 11, u()) : a.value -= 1;
3249
3315
  }, h = () => {
3250
3316
  a.value == 11 ? (a.value = 0, c()) : a.value += 1;
3251
- }, b = (M) => {
3252
- const D = /* @__PURE__ */ new Date();
3253
- if (a.value === D.getMonth())
3254
- return D.toDateString() === new Date(M).toDateString();
3255
- }, C = (M) => new Date(M).toDateString() === new Date(o.value).toDateString(), x = (M, D) => (M - 1) * on + D, v = (M, D) => s.value[x(M, D)], m = (M) => {
3256
- n.value = o.value = new Date(s.value[M]);
3257
- }, g = T(() => new Date(r.value, a.value, 1).toLocaleDateString(void 0, {
3317
+ }, b = (C) => {
3318
+ const T = /* @__PURE__ */ new Date();
3319
+ if (a.value === T.getMonth())
3320
+ return T.toDateString() === new Date(C).toDateString();
3321
+ }, I = (C) => new Date(C).toDateString() === new Date(o.value).toDateString(), x = (C, T) => (C - 1) * ln + T, f = (C, T) => s.value[x(C, T)], m = (C) => {
3322
+ n.value = o.value = new Date(s.value[C]);
3323
+ }, g = $(() => new Date(r.value, a.value, 1).toLocaleDateString(void 0, {
3258
3324
  year: "numeric",
3259
3325
  month: "long"
3260
3326
  }));
3261
- return Ma([
3327
+ return Aa([
3262
3328
  {
3263
3329
  parent: l,
3264
3330
  selectors: "td",
@@ -3274,7 +3340,7 @@ const Ea = {
3274
3340
  }
3275
3341
  }
3276
3342
  }
3277
- ]), t({ currentMonth: a, currentYear: r, selectedDate: o }), (M, D) => (w(), k("div", Ea, [
3343
+ ]), t({ currentMonth: a, currentYear: r, selectedDate: o }), (C, T) => (w(), k("div", Ta, [
3278
3344
  y("table", null, [
3279
3345
  y("tbody", null, [
3280
3346
  y("tr", null, [
@@ -3283,14 +3349,14 @@ const Ea = {
3283
3349
  tabindex: -1,
3284
3350
  onClick: p
3285
3351
  }, "<"),
3286
- y("th", Aa, j(g.value), 1),
3352
+ y("th", $a, K(g.value), 1),
3287
3353
  y("td", {
3288
3354
  id: "next-month-btn",
3289
3355
  tabindex: -1,
3290
3356
  onClick: h
3291
3357
  }, ">")
3292
3358
  ]),
3293
- D[0] || (D[0] = y("tr", { class: "days-header" }, [
3359
+ T[0] || (T[0] = y("tr", { class: "days-header" }, [
3294
3360
  y("td", null, "M"),
3295
3361
  y("td", null, "T"),
3296
3362
  y("td", null, "W"),
@@ -3299,63 +3365,63 @@ const Ea = {
3299
3365
  y("td", null, "S"),
3300
3366
  y("td", null, "S")
3301
3367
  ], -1)),
3302
- (w(), k(oe, null, ie(Da, (P) => y("tr", { key: P }, [
3303
- (w(), k(oe, null, ie(on, (H) => y("td", {
3368
+ (w(), k(ue, null, me(Sa, (R) => y("tr", { key: R }, [
3369
+ (w(), k(ue, null, me(ln, (S) => y("td", {
3304
3370
  ref_for: !0,
3305
3371
  ref: "celldate",
3306
- key: x(P, H),
3372
+ key: x(R, S),
3307
3373
  contenteditable: !1,
3308
3374
  spellcheck: !1,
3309
3375
  tabindex: 0,
3310
- class: K({
3311
- todaysDate: b(v(P, H)),
3312
- selectedDate: C(v(P, H))
3376
+ class: ae({
3377
+ todaysDate: b(f(R, S)),
3378
+ selectedDate: I(f(R, S))
3313
3379
  }),
3314
- onClick: pe((E) => m(x(P, H)), ["prevent", "stop"]),
3315
- onKeydown: $e((E) => m(x(P, H)), ["enter"])
3316
- }, j(new Date(v(P, H)).getDate()), 43, Ta)), 64))
3380
+ onClick: Ie((_) => m(x(R, S)), ["prevent", "stop"]),
3381
+ onKeydown: Ne((_) => m(x(R, S)), ["enter"])
3382
+ }, K(new Date(f(R, S)).getDate()), 43, Da)), 64))
3317
3383
  ])), 64))
3318
3384
  ])
3319
3385
  ])
3320
3386
  ], 512));
3321
3387
  }
3322
- }), Sa = /* @__PURE__ */ be($a, [["__scopeId", "data-v-056d2b5e"]]), Ra = /* @__PURE__ */ Y({
3388
+ }), La = /* @__PURE__ */ $e(Ra, [["__scopeId", "data-v-056d2b5e"]]), Ha = /* @__PURE__ */ te({
3323
3389
  __name: "CollapseButton",
3324
3390
  props: {
3325
3391
  collapsed: { type: Boolean }
3326
3392
  },
3327
3393
  setup(e) {
3328
3394
  return (t, n) => (w(), k("button", {
3329
- class: K(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
3395
+ class: ae(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
3330
3396
  }, "×", 2));
3331
3397
  }
3332
- }), La = /* @__PURE__ */ be(Ra, [["__scopeId", "data-v-6f1c1b45"]]), Ha = { class: "aform" }, _a = {
3398
+ }), Va = /* @__PURE__ */ $e(Ha, [["__scopeId", "data-v-6f1c1b45"]]), Pa = { class: "aform" }, Oa = {
3333
3399
  key: 0,
3334
3400
  class: "aform-nested-section"
3335
- }, Va = {
3401
+ }, _a = {
3336
3402
  key: 0,
3337
3403
  class: "aform-nested-label"
3338
- }, Oa = /* @__PURE__ */ Y({
3404
+ }, Ba = /* @__PURE__ */ te({
3339
3405
  __name: "AForm",
3340
- props: /* @__PURE__ */ me({
3406
+ props: /* @__PURE__ */ Me({
3341
3407
  schema: {},
3342
3408
  readOnly: { type: Boolean }
3343
3409
  }, {
3344
3410
  data: { required: !0 },
3345
3411
  dataModifiers: {}
3346
3412
  }),
3347
- emits: /* @__PURE__ */ me(["update:schema", "update:data"], ["update:data"]),
3413
+ emits: /* @__PURE__ */ Me(["update:schema", "update:data"], ["update:data"]),
3348
3414
  setup(e, { emit: t }) {
3349
- const n = t, o = he(e, "data"), a = S({});
3350
- Te(() => {
3415
+ const n = t, o = ke(e, "data"), a = L({});
3416
+ Oe(() => {
3351
3417
  !e.schema || !o.value || e.schema.forEach((i) => {
3352
3418
  "schema" in i && Array.isArray(i.schema) && i.schema.length > 0 && (!a.value[i.fieldname] && o.value[i.fieldname] ? a.value[i.fieldname] = o.value[i.fieldname] : a.value[i.fieldname] || (a.value[i.fieldname] = {}));
3353
3419
  });
3354
- }), Te(() => {
3420
+ }), Oe(() => {
3355
3421
  Object.keys(a.value).forEach((i) => {
3356
3422
  o.value && a.value[i] !== o.value[i] && (o.value[i] = a.value[i], n("update:data", o.value));
3357
3423
  });
3358
- }), Te(() => {
3424
+ }), Oe(() => {
3359
3425
  o.value && e.schema && e.schema.forEach((i) => {
3360
3426
  i.fieldname && o.value[i.fieldname] !== void 0 && (i.value = o.value[i.fieldname]);
3361
3427
  });
@@ -3365,9 +3431,9 @@ const Ea = {
3365
3431
  for (const [c, p] of Object.entries(i))
3366
3432
  ["component", "fieldtype"].includes(c) || (u[c] = p), c === "rows" && (!p || Array.isArray(p) && p.length === 0) && (u.rows = o.value[i.fieldname] || []);
3367
3433
  return u;
3368
- }, s = S([]);
3369
- Te(() => {
3370
- e.schema && s.value.length !== e.schema.length && (s.value = e.schema.map((i, u) => T({
3434
+ }, s = L([]);
3435
+ Oe(() => {
3436
+ e.schema && s.value.length !== e.schema.length && (s.value = e.schema.map((i, u) => $({
3371
3437
  get() {
3372
3438
  return i.value;
3373
3439
  },
@@ -3377,20 +3443,20 @@ const Ea = {
3377
3443
  }
3378
3444
  })));
3379
3445
  });
3380
- const l = T(() => s.value);
3446
+ const l = $(() => s.value);
3381
3447
  return (i, u) => {
3382
- const c = cn("AForm", !0);
3383
- return w(), k("form", Ha, [
3384
- (w(!0), k(oe, null, ie(e.schema, (p, h) => (w(), k(oe, { key: h }, [
3385
- "schema" in p && Array.isArray(p.schema) && p.schema.length > 0 ? (w(), k("div", _a, [
3386
- p.label ? (w(), k("h4", Va, j(p.label), 1)) : z("", !0),
3387
- ot(c, {
3448
+ const c = dn("AForm", !0);
3449
+ return w(), k("form", Pa, [
3450
+ (w(!0), k(ue, null, me(e.schema, (p, h) => (w(), k(ue, { key: h }, [
3451
+ "schema" in p && Array.isArray(p.schema) && p.schema.length > 0 ? (w(), k("div", Oa, [
3452
+ p.label ? (w(), k("h4", _a, K(p.label), 1)) : q("", !0),
3453
+ dt(c, {
3388
3454
  data: a.value[p.fieldname],
3389
3455
  "onUpdate:data": (b) => a.value[p.fieldname] = b,
3390
3456
  schema: p.schema,
3391
3457
  "read-only": e.readOnly || p.readOnly
3392
3458
  }, null, 8, ["data", "onUpdate:data", "schema", "read-only"])
3393
- ])) : (w(), re(Re(p.component), at({
3459
+ ])) : (w(), pe(We(p.component), vt({
3394
3460
  key: 1,
3395
3461
  modelValue: l.value[h].value,
3396
3462
  "onUpdate:modelValue": (b) => l.value[h].value = b,
@@ -3402,7 +3468,7 @@ const Ea = {
3402
3468
  ]);
3403
3469
  };
3404
3470
  }
3405
- }), In = /* @__PURE__ */ be(Oa, [["__scopeId", "data-v-06e17c5b"]]), Pa = /* @__PURE__ */ Y({
3471
+ }), Mn = /* @__PURE__ */ $e(Ba, [["__scopeId", "data-v-06e17c5b"]]), Fa = /* @__PURE__ */ te({
3406
3472
  __name: "AFieldset",
3407
3473
  props: {
3408
3474
  schema: {},
@@ -3411,7 +3477,7 @@ const Ea = {
3411
3477
  data: { default: () => ({}) }
3412
3478
  },
3413
3479
  setup(e, { expose: t }) {
3414
- const n = S(!1), o = S(e.data || []), a = S(e.schema), r = (s) => {
3480
+ const n = L(!1), o = L(e.data || []), a = L(e.schema), r = (s) => {
3415
3481
  s.preventDefault(), e.collapsible && (n.value = !n.value);
3416
3482
  };
3417
3483
  return t({ collapsed: n }), (s, l) => (w(), k("fieldset", null, [
@@ -3419,59 +3485,59 @@ const Ea = {
3419
3485
  onClick: r,
3420
3486
  onSubmit: r
3421
3487
  }, [
3422
- Dt(j(e.label) + " ", 1),
3423
- e.collapsible ? (w(), re(La, {
3488
+ Dt(K(e.label) + " ", 1),
3489
+ e.collapsible ? (w(), pe(Va, {
3424
3490
  key: 0,
3425
3491
  collapsed: n.value
3426
- }, null, 8, ["collapsed"])) : z("", !0)
3492
+ }, null, 8, ["collapsed"])) : q("", !0)
3427
3493
  ], 32),
3428
- ue(s.$slots, "default", { collapsed: n.value }, () => [
3429
- U(ot(In, {
3494
+ he(s.$slots, "default", { collapsed: n.value }, () => [
3495
+ J(dt(Mn, {
3430
3496
  schema: a.value,
3431
3497
  data: o.value,
3432
3498
  "onUpdate:data": l[0] || (l[0] = (i) => o.value = i)
3433
3499
  }, null, 8, ["schema", "data"]), [
3434
- [ge, !n.value]
3500
+ [Ce, !n.value]
3435
3501
  ])
3436
3502
  ], !0)
3437
3503
  ]));
3438
3504
  }
3439
- }), Ba = /* @__PURE__ */ be(Pa, [["__scopeId", "data-v-18fd6c61"]]), Fa = { class: "aform_form-element aform_file-attach aform__grid--full" }, Za = {
3505
+ }), Za = /* @__PURE__ */ $e(Fa, [["__scopeId", "data-v-18fd6c61"]]), Na = { class: "aform_form-element aform_file-attach aform__grid--full" }, Ua = {
3440
3506
  key: 0,
3441
3507
  class: "aform_file-attach-feedback"
3442
- }, Na = ["disabled"], Wa = /* @__PURE__ */ Y({
3508
+ }, Wa = ["disabled"], Ga = /* @__PURE__ */ te({
3443
3509
  __name: "AFileAttach",
3444
3510
  props: {
3445
3511
  label: {}
3446
3512
  },
3447
3513
  setup(e) {
3448
- const { files: t, open: n, reset: o, onChange: a } = Xl(), r = T(() => `${t.value.length} ${t.value.length === 1 ? "file" : "files"}`);
3449
- return a((s) => s), (s, l) => (w(), k("div", Fa, [
3450
- L(t) ? (w(), k("div", Za, [
3514
+ const { files: t, open: n, reset: o, onChange: a } = Ql(), r = $(() => `${t.value.length} ${t.value.length === 1 ? "file" : "files"}`);
3515
+ return a((s) => s), (s, l) => (w(), k("div", Na, [
3516
+ V(t) ? (w(), k("div", Ua, [
3451
3517
  y("p", null, [
3452
3518
  l[2] || (l[2] = Dt(" You have selected: ", -1)),
3453
- y("b", null, j(r.value), 1)
3519
+ y("b", null, K(r.value), 1)
3454
3520
  ]),
3455
- (w(!0), k(oe, null, ie(L(t), (i) => (w(), k("li", {
3521
+ (w(!0), k(ue, null, me(V(t), (i) => (w(), k("li", {
3456
3522
  key: i.name
3457
- }, j(i.name), 1))), 128))
3458
- ])) : z("", !0),
3523
+ }, K(i.name), 1))), 128))
3524
+ ])) : q("", !0),
3459
3525
  y("button", {
3460
3526
  type: "button",
3461
3527
  class: "aform_form-btn",
3462
- onClick: l[0] || (l[0] = (i) => L(n)())
3463
- }, j(e.label), 1),
3528
+ onClick: l[0] || (l[0] = (i) => V(n)())
3529
+ }, K(e.label), 1),
3464
3530
  y("button", {
3465
3531
  type: "button",
3466
- disabled: !L(t),
3532
+ disabled: !V(t),
3467
3533
  class: "aform_form-btn",
3468
- onClick: l[1] || (l[1] = (i) => L(o)())
3469
- }, "Reset", 8, Na)
3534
+ onClick: l[1] || (l[1] = (i) => V(o)())
3535
+ }, "Reset", 8, Wa)
3470
3536
  ]));
3471
3537
  }
3472
- }), za = /* @__PURE__ */ be(Wa, [["__scopeId", "data-v-b700734f"]]), Ga = { class: "aform_form-element" }, Ua = ["id", "disabled", "required"], ja = ["for"], qa = ["innerHTML"], Ya = /* @__PURE__ */ Y({
3538
+ }), za = /* @__PURE__ */ $e(Ga, [["__scopeId", "data-v-b700734f"]]), qa = { class: "aform_form-element" }, Ya = ["id", "disabled", "required"], Xa = ["for"], ja = ["innerHTML"], Ja = /* @__PURE__ */ te({
3473
3539
  __name: "ANumericInput",
3474
- props: /* @__PURE__ */ me({
3540
+ props: /* @__PURE__ */ Me({
3475
3541
  schema: {},
3476
3542
  label: {},
3477
3543
  mask: {},
@@ -3485,31 +3551,31 @@ const Ea = {
3485
3551
  }),
3486
3552
  emits: ["update:modelValue"],
3487
3553
  setup(e) {
3488
- const t = he(e, "modelValue");
3489
- return (n, o) => (w(), k("div", Ga, [
3490
- U(y("input", {
3554
+ const t = ke(e, "modelValue");
3555
+ return (n, o) => (w(), k("div", qa, [
3556
+ J(y("input", {
3491
3557
  id: e.uuid,
3492
3558
  "onUpdate:modelValue": o[0] || (o[0] = (a) => t.value = a),
3493
3559
  class: "aform_input-field",
3494
3560
  type: "number",
3495
3561
  disabled: e.readOnly,
3496
3562
  required: e.required
3497
- }, null, 8, Ua), [
3498
- [de, t.value]
3563
+ }, null, 8, Ya), [
3564
+ [we, t.value]
3499
3565
  ]),
3500
3566
  y("label", {
3501
3567
  class: "aform_field-label",
3502
3568
  for: e.uuid
3503
- }, j(e.label), 9, ja),
3504
- U(y("p", {
3569
+ }, K(e.label), 9, Xa),
3570
+ J(y("p", {
3505
3571
  class: "aform_error",
3506
3572
  innerHTML: e.validation.errorMessage
3507
- }, null, 8, qa), [
3508
- [ge, e.validation.errorMessage]
3573
+ }, null, 8, ja), [
3574
+ [Ce, e.validation.errorMessage]
3509
3575
  ])
3510
3576
  ]));
3511
3577
  }
3512
- }), ln = {
3578
+ }), an = {
3513
3579
  date: "##/##/####",
3514
3580
  datetime: "####/##/## ##:##",
3515
3581
  time: "##:##",
@@ -3517,34 +3583,34 @@ const Ea = {
3517
3583
  phone: "(###) ### - ####",
3518
3584
  card: "#### #### #### ####"
3519
3585
  };
3520
- function Xa(e) {
3586
+ function Qa(e) {
3521
3587
  try {
3522
3588
  return Function(`"use strict";return (${e})`)();
3523
3589
  } catch {
3524
3590
  }
3525
3591
  }
3526
- function Ja(e) {
3592
+ function Ka(e) {
3527
3593
  let t = e.value;
3528
3594
  if (t) {
3529
- const n = Xa(t);
3595
+ const n = Qa(t);
3530
3596
  if (n) {
3531
3597
  const o = e.instance?.locale;
3532
3598
  t = n(o);
3533
3599
  }
3534
3600
  } else {
3535
3601
  const o = e.instance?.schema?.fieldtype?.toLowerCase();
3536
- o && ln[o] && (t = ln[o]);
3602
+ o && an[o] && (t = an[o]);
3537
3603
  }
3538
3604
  return t;
3539
3605
  }
3540
- function Ka(e, t) {
3606
+ function es(e, t) {
3541
3607
  let n = e;
3542
3608
  const o = [t, "/", "-", "(", ")", " "];
3543
3609
  for (const a of o)
3544
3610
  n = n.replaceAll(a, "");
3545
3611
  return n;
3546
3612
  }
3547
- function Qa(e, t, n) {
3613
+ function ts(e, t, n) {
3548
3614
  let o = t;
3549
3615
  for (const a of e) {
3550
3616
  const r = o.indexOf(n);
@@ -3555,19 +3621,19 @@ function Qa(e, t, n) {
3555
3621
  }
3556
3622
  return o.slice(0, t.length);
3557
3623
  }
3558
- function es(e, t) {
3559
- const n = Ja(t);
3624
+ function ns(e, t) {
3625
+ const n = Ka(t);
3560
3626
  if (!n) return;
3561
- const o = "#", a = e.value, r = Ka(a, o);
3627
+ const o = "#", a = e.value, r = es(a, o);
3562
3628
  if (r) {
3563
- const s = Qa(r, n, o);
3629
+ const s = ts(r, n, o);
3564
3630
  t.instance?.maskFilled && (t.instance.maskFilled = !s.includes(o)), e.value = s;
3565
3631
  } else
3566
3632
  e.value = n;
3567
3633
  }
3568
- const ts = { class: "aform_form-element" }, ns = ["id", "disabled", "maxlength", "required"], os = ["for"], ls = ["innerHTML"], as = /* @__PURE__ */ Y({
3634
+ const os = { class: "aform_form-element" }, ls = ["id", "disabled", "maxlength", "required"], as = ["for"], ss = ["innerHTML"], rs = /* @__PURE__ */ te({
3569
3635
  __name: "ATextInput",
3570
- props: /* @__PURE__ */ me({
3636
+ props: /* @__PURE__ */ Me({
3571
3637
  schema: {},
3572
3638
  label: {},
3573
3639
  mask: {},
@@ -3581,35 +3647,35 @@ const ts = { class: "aform_form-element" }, ns = ["id", "disabled", "maxlength",
3581
3647
  }),
3582
3648
  emits: ["update:modelValue"],
3583
3649
  setup(e) {
3584
- const t = S(!0), n = he(e, "modelValue");
3585
- return (o, a) => (w(), k("div", ts, [
3586
- U(y("input", {
3650
+ const t = L(!0), n = ke(e, "modelValue");
3651
+ return (o, a) => (w(), k("div", os, [
3652
+ J(y("input", {
3587
3653
  id: e.uuid,
3588
3654
  "onUpdate:modelValue": a[0] || (a[0] = (r) => n.value = r),
3589
3655
  class: "aform_input-field",
3590
3656
  disabled: e.readOnly,
3591
3657
  maxlength: e.mask && t.value ? e.mask.length : void 0,
3592
3658
  required: e.required
3593
- }, null, 8, ns), [
3594
- [de, n.value],
3595
- [L(es), e.mask]
3659
+ }, null, 8, ls), [
3660
+ [we, n.value],
3661
+ [V(ns), e.mask]
3596
3662
  ]),
3597
3663
  y("label", {
3598
3664
  class: "aform_field-label",
3599
3665
  for: e.uuid
3600
- }, j(e.label), 9, os),
3601
- U(y("p", {
3666
+ }, K(e.label), 9, as),
3667
+ J(y("p", {
3602
3668
  class: "aform_error",
3603
3669
  innerHTML: e.validation.errorMessage
3604
- }, null, 8, ls), [
3605
- [ge, e.validation.errorMessage]
3670
+ }, null, 8, ss), [
3671
+ [Ce, e.validation.errorMessage]
3606
3672
  ])
3607
3673
  ]));
3608
3674
  }
3609
- }), ss = { class: "login-container" }, rs = { class: "account-container" }, is = { class: "account-header" }, us = { id: "account-title" }, cs = { id: "account-subtitle" }, ds = { class: "login-form-container" }, vs = { class: "login-form-email aform_form-element" }, fs = ["disabled"], ps = { class: "login-form-password aform_form-element" }, ms = ["disabled"], hs = ["disabled"], gs = {
3675
+ }), is = { class: "login-container" }, us = { class: "account-container" }, cs = { class: "account-header" }, ds = { id: "account-title" }, fs = { id: "account-subtitle" }, vs = { class: "login-form-container" }, ps = { class: "login-form-email aform_form-element" }, ms = ["disabled"], hs = { class: "login-form-password aform_form-element" }, gs = ["disabled"], ws = ["disabled"], ys = {
3610
3676
  key: 0,
3611
3677
  class: "material-symbols-outlined loading-icon"
3612
- }, ws = /* @__PURE__ */ Y({
3678
+ }, xs = /* @__PURE__ */ te({
3613
3679
  __name: "Login",
3614
3680
  props: {
3615
3681
  headerTitle: { default: "Login" },
@@ -3617,7 +3683,7 @@ const ts = { class: "aform_form-element" }, ns = ["id", "disabled", "maxlength",
3617
3683
  },
3618
3684
  emits: ["loginFailed", "loginSuccess"],
3619
3685
  setup(e, { emit: t }) {
3620
- const n = t, o = S(""), a = S(""), r = S(!1), s = S(!1);
3686
+ const n = t, o = L(""), a = L(""), r = L(!1), s = L(!1);
3621
3687
  function l(i) {
3622
3688
  if (i.preventDefault(), r.value = !0, s.value) {
3623
3689
  r.value = !1, n("loginFailed");
@@ -3625,22 +3691,22 @@ const ts = { class: "aform_form-element" }, ns = ["id", "disabled", "maxlength",
3625
3691
  }
3626
3692
  r.value = !1, n("loginSuccess");
3627
3693
  }
3628
- return (i, u) => (w(), k("div", ss, [
3694
+ return (i, u) => (w(), k("div", is, [
3629
3695
  y("div", null, [
3630
- y("div", rs, [
3631
- y("div", is, [
3632
- y("h1", us, j(e.headerTitle), 1),
3633
- y("p", cs, j(e.headerSubtitle), 1)
3696
+ y("div", us, [
3697
+ y("div", cs, [
3698
+ y("h1", ds, K(e.headerTitle), 1),
3699
+ y("p", fs, K(e.headerSubtitle), 1)
3634
3700
  ]),
3635
3701
  y("form", { onSubmit: l }, [
3636
- y("div", ds, [
3637
- y("div", vs, [
3702
+ y("div", vs, [
3703
+ y("div", ps, [
3638
3704
  u[2] || (u[2] = y("label", {
3639
3705
  id: "login-email",
3640
3706
  for: "email",
3641
3707
  class: "aform_field-label"
3642
3708
  }, "Email", -1)),
3643
- U(y("input", {
3709
+ J(y("input", {
3644
3710
  id: "email",
3645
3711
  "onUpdate:modelValue": u[0] || (u[0] = (c) => o.value = c),
3646
3712
  class: "aform_input-field",
@@ -3651,25 +3717,25 @@ const ts = { class: "aform_form-element" }, ns = ["id", "disabled", "maxlength",
3651
3717
  "auto-complete": "email",
3652
3718
  "auto-correct": "off",
3653
3719
  disabled: r.value
3654
- }, null, 8, fs), [
3655
- [de, o.value]
3720
+ }, null, 8, ms), [
3721
+ [we, o.value]
3656
3722
  ])
3657
3723
  ]),
3658
- y("div", ps, [
3724
+ y("div", hs, [
3659
3725
  u[3] || (u[3] = y("label", {
3660
3726
  id: "login-password",
3661
3727
  for: "password",
3662
3728
  class: "aform_field-label"
3663
3729
  }, "Password", -1)),
3664
- U(y("input", {
3730
+ J(y("input", {
3665
3731
  id: "password",
3666
3732
  "onUpdate:modelValue": u[1] || (u[1] = (c) => a.value = c),
3667
3733
  class: "aform_input-field",
3668
3734
  name: "password",
3669
3735
  type: "password",
3670
3736
  disabled: r.value
3671
- }, null, 8, ms), [
3672
- [de, a.value]
3737
+ }, null, 8, gs), [
3738
+ [we, a.value]
3673
3739
  ])
3674
3740
  ]),
3675
3741
  y("button", {
@@ -3677,9 +3743,9 @@ const ts = { class: "aform_form-element" }, ns = ["id", "disabled", "maxlength",
3677
3743
  disabled: r.value || !o.value || !a.value,
3678
3744
  onClick: l
3679
3745
  }, [
3680
- r.value ? (w(), k("span", gs, "progress_activity")) : z("", !0),
3746
+ r.value ? (w(), k("span", ys, "progress_activity")) : q("", !0),
3681
3747
  u[4] || (u[4] = y("span", { id: "login-form-button" }, "Login", -1))
3682
- ], 8, hs)
3748
+ ], 8, ws)
3683
3749
  ])
3684
3750
  ], 32),
3685
3751
  u[5] || (u[5] = y("button", { class: "btn" }, [
@@ -3689,22 +3755,22 @@ const ts = { class: "aform_form-element" }, ns = ["id", "disabled", "maxlength",
3689
3755
  ])
3690
3756
  ]));
3691
3757
  }
3692
- }), bs = /* @__PURE__ */ be(ws, [["__scopeId", "data-v-d9ffd0a7"]]);
3693
- function ks(e) {
3694
- e.use(Tl), e.component("ACheckbox", _l), e.component("ACombobox", Vl), e.component("ADate", Zl), e.component("ADropdown", aa), e.component("ADatePicker", Sa), e.component("AFieldset", Ba), e.component("AFileAttach", za), e.component("AForm", In), e.component("ANumericInput", Ya), e.component("ATextInput", as);
3758
+ }), ks = /* @__PURE__ */ $e(xs, [["__scopeId", "data-v-d9ffd0a7"]]);
3759
+ function Ms(e) {
3760
+ e.use(Dl), e.component("ACheckbox", Ol), e.component("ACombobox", _l), e.component("ADate", Ul), e.component("ADropdown", ra), e.component("ADatePicker", La), e.component("AFieldset", Za), e.component("AFileAttach", za), e.component("AForm", Mn), e.component("ANumericInput", Ja), e.component("ATextInput", rs);
3695
3761
  }
3696
3762
  export {
3697
- _l as ACheckbox,
3698
- Vl as AComboBox,
3699
- Zl as ADate,
3700
- Sa as ADatePicker,
3701
- aa as ADropdown,
3702
- Ba as AFieldset,
3763
+ Ol as ACheckbox,
3764
+ _l as AComboBox,
3765
+ Ul as ADate,
3766
+ La as ADatePicker,
3767
+ ra as ADropdown,
3768
+ Za as AFieldset,
3703
3769
  za as AFileAttach,
3704
- In as AForm,
3705
- Ya as ANumericInput,
3706
- as as ATextInput,
3707
- bs as Login,
3708
- ks as install
3770
+ Mn as AForm,
3771
+ Ja as ANumericInput,
3772
+ rs as ATextInput,
3773
+ ks as Login,
3774
+ Ms as install
3709
3775
  };
3710
3776
  //# sourceMappingURL=aform.js.map