@stonecrop/atable 0.8.3 → 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/atable.js CHANGED
@@ -1,93 +1,93 @@
1
- import { onMounted as Ce, ref as N, watch as ae, onBeforeUnmount as Vt, computed as E, shallowRef as ee, toValue as Z, watchEffect as Bt, getCurrentScope as It, onScopeDispose as $t, getCurrentInstance as ot, unref as O, nextTick as lt, isRef as Pt, toRefs as Zt, customRef as Et, toRef as Nt, readonly as Ft, defineComponent as ue, useTemplateRef as te, createElementBlock as k, openBlock as x, normalizeClass as Q, normalizeStyle as ce, createBlock as se, resolveDynamicComponent as $e, mergeProps as at, toDisplayString as de, Fragment as ie, createElementVNode as P, createCommentVNode as U, renderSlot as le, useCssVars as zt, onUnmounted as Wt, withModifiers as ye, withDirectives as oe, renderList as ve, vShow as st, reactive as Xt, vModelText as Ie, vModelCheckbox as Gt, vModelSelect as Ut, createTextVNode as jt, mergeModels as gt, useModel as wt, createVNode as pt, withCtx as xt } from "vue";
2
- import { defineStore as Yt } from "pinia";
3
- import './assets/index.css';function St(e, t) {
4
- return It() ? ($t(e, t), !0) : !1;
1
+ import { onMounted as He, ref as z, watch as ce, onBeforeUnmount as Bt, computed as T, shallowRef as ie, toValue as D, watchEffect as Pt, getCurrentScope as $t, onScopeDispose as Et, getCurrentInstance as lt, unref as Z, nextTick as at, isRef as Zt, toRefs as Nt, customRef as St, toRef as Wt, readonly as Ft, defineComponent as we, useTemplateRef as re, openBlock as y, createElementBlock as C, normalizeClass as oe, normalizeStyle as me, createBlock as ve, resolveDynamicComponent as We, mergeProps as st, toDisplayString as xe, Fragment as he, createElementVNode as W, renderSlot as fe, createCommentVNode as K, useCssVars as zt, onUnmounted as Xt, withModifiers as Se, withDirectives as de, renderList as ye, vShow as it, reactive as Gt, vModelText as Ne, vModelCheckbox as Yt, vModelSelect as Ut, createTextVNode as jt, useModel as wt, createVNode as pt, withCtx as xt, mergeModels as yt } from "vue";
2
+ import { defineStore as qt } from "pinia";
3
+ import './assets/index.css';function At(e, t) {
4
+ return $t() ? (Et(e, t), !0) : !1;
5
5
  }
6
- const qt = typeof window < "u" && typeof document < "u";
6
+ const Jt = typeof window < "u" && typeof document < "u";
7
7
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
8
- const Jt = (e) => e != null, Qt = Object.prototype.toString, Kt = (e) => Qt.call(e) === "[object Object]", _t = () => {
8
+ const Qt = (e) => e != null, Kt = Object.prototype.toString, _t = (e) => Kt.call(e) === "[object Object]", en = () => {
9
9
  };
10
- function Ze(e) {
10
+ function Ue(e) {
11
11
  return Array.isArray(e) ? e : [e];
12
12
  }
13
- function en(e, t, s) {
14
- return ae(e, t, {
13
+ function tn(e, t, s) {
14
+ return ce(e, t, {
15
15
  ...s,
16
16
  immediate: !0
17
17
  });
18
18
  }
19
- const ke = qt ? window : void 0;
20
- function be(e) {
19
+ const Le = Jt ? window : void 0;
20
+ function De(e) {
21
21
  var t;
22
- const s = Z(e);
22
+ const s = D(e);
23
23
  return (t = s?.$el) !== null && t !== void 0 ? t : s;
24
24
  }
25
- function Ee(...e) {
26
- const t = (i, u, l, a) => (i.addEventListener(u, l, a), () => i.removeEventListener(u, l, a)), s = E(() => {
27
- const i = Ze(Z(e[0])).filter((u) => u != null);
25
+ function Fe(...e) {
26
+ const t = (i, u, o, a) => (i.addEventListener(u, o, a), () => i.removeEventListener(u, o, a)), s = T(() => {
27
+ const i = Ue(D(e[0])).filter((u) => u != null);
28
28
  return i.every((u) => typeof u != "string") ? i : void 0;
29
29
  });
30
- return en(() => {
30
+ return tn(() => {
31
31
  var i, u;
32
32
  return [
33
- (i = (u = s.value) === null || u === void 0 ? void 0 : u.map((l) => be(l))) !== null && i !== void 0 ? i : [ke].filter((l) => l != null),
34
- Ze(Z(s.value ? e[1] : e[0])),
35
- Ze(O(s.value ? e[2] : e[1])),
36
- Z(s.value ? e[3] : e[2])
33
+ (i = (u = s.value) === null || u === void 0 ? void 0 : u.map((o) => De(o))) !== null && i !== void 0 ? i : [Le].filter((o) => o != null),
34
+ Ue(D(s.value ? e[1] : e[0])),
35
+ Ue(Z(s.value ? e[2] : e[1])),
36
+ D(s.value ? e[3] : e[2])
37
37
  ];
38
- }, ([i, u, l, a], n, c) => {
39
- if (!i?.length || !u?.length || !l?.length) return;
40
- const r = Kt(a) ? { ...a } : a, v = i.flatMap((g) => u.flatMap(($) => l.map((A) => t(g, $, A, r))));
38
+ }, ([i, u, o, a], n, c) => {
39
+ if (!i?.length || !u?.length || !o?.length) return;
40
+ const r = _t(a) ? { ...a } : a, f = i.flatMap((g) => u.flatMap(($) => o.map((V) => t(g, $, V, r))));
41
41
  c(() => {
42
- v.forEach((g) => g());
42
+ f.forEach((g) => g());
43
43
  });
44
44
  }, { flush: "post" });
45
45
  }
46
46
  // @__NO_SIDE_EFFECTS__
47
- function tn() {
48
- const e = ee(!1), t = ot();
49
- return t && Ce(() => {
47
+ function nn() {
48
+ const e = ie(!1), t = lt();
49
+ return t && He(() => {
50
50
  e.value = !0;
51
51
  }, t), e;
52
52
  }
53
53
  // @__NO_SIDE_EFFECTS__
54
- function nn(e) {
55
- const t = /* @__PURE__ */ tn();
56
- return E(() => (t.value, !!e()));
54
+ function on(e) {
55
+ const t = /* @__PURE__ */ nn();
56
+ return T(() => (t.value, !!e()));
57
57
  }
58
- function on(e, t, s = {}) {
59
- const { window: i = ke, ...u } = s;
60
- let l;
61
- const a = /* @__PURE__ */ nn(() => i && "MutationObserver" in i), n = () => {
62
- l && (l.disconnect(), l = void 0);
63
- }, c = ae(E(() => {
64
- const g = Ze(Z(e)).map(be).filter(Jt);
58
+ function ln(e, t, s = {}) {
59
+ const { window: i = Le, ...u } = s;
60
+ let o;
61
+ const a = /* @__PURE__ */ on(() => i && "MutationObserver" in i), n = () => {
62
+ o && (o.disconnect(), o = void 0);
63
+ }, c = ce(T(() => {
64
+ const g = Ue(D(e)).map(De).filter(Qt);
65
65
  return new Set(g);
66
66
  }), (g) => {
67
- n(), a.value && g.size && (l = new MutationObserver(t), g.forEach(($) => l.observe($, u)));
67
+ n(), a.value && g.size && (o = new MutationObserver(t), g.forEach(($) => o.observe($, u)));
68
68
  }, {
69
69
  immediate: !0,
70
70
  flush: "post"
71
- }), r = () => l?.takeRecords(), v = () => {
71
+ }), r = () => o?.takeRecords(), f = () => {
72
72
  c(), n();
73
73
  };
74
- return St(v), {
74
+ return At(f), {
75
75
  isSupported: a,
76
- stop: v,
76
+ stop: f,
77
77
  takeRecords: r
78
78
  };
79
79
  }
80
- function ln(e, t, s = {}) {
81
- const { window: i = ke, document: u = i?.document, flush: l = "sync" } = s;
82
- if (!i || !u) return _t;
80
+ function an(e, t, s = {}) {
81
+ const { window: i = Le, document: u = i?.document, flush: o = "sync" } = s;
82
+ if (!i || !u) return en;
83
83
  let a;
84
- const n = (v) => {
85
- a?.(), a = v;
86
- }, c = Bt(() => {
87
- const v = be(e);
88
- if (v) {
89
- const { stop: g } = on(u, ($) => {
90
- $.map((A) => [...A.removedNodes]).flat().some((A) => A === v || A.contains(v)) && t($);
84
+ const n = (f) => {
85
+ a?.(), a = f;
86
+ }, c = Pt(() => {
87
+ const f = De(e);
88
+ if (f) {
89
+ const { stop: g } = ln(u, ($) => {
90
+ $.map((V) => [...V.removedNodes]).flat().some((V) => V === f || V.contains(f)) && t($);
91
91
  }, {
92
92
  window: i,
93
93
  childList: !0,
@@ -95,20 +95,20 @@ function ln(e, t, s = {}) {
95
95
  });
96
96
  n(g);
97
97
  }
98
- }, { flush: l }), r = () => {
98
+ }, { flush: o }), r = () => {
99
99
  c(), n();
100
100
  };
101
- return St(r), r;
101
+ return At(r), r;
102
102
  }
103
103
  // @__NO_SIDE_EFFECTS__
104
- function an(e = {}) {
104
+ function sn(e = {}) {
105
105
  var t;
106
- const { window: s = ke, deep: i = !0, triggerOnRemoval: u = !1 } = e, l = (t = e.document) !== null && t !== void 0 ? t : s?.document, a = () => {
107
- let r = l?.activeElement;
106
+ const { window: s = Le, deep: i = !0, triggerOnRemoval: u = !1 } = e, o = (t = e.document) !== null && t !== void 0 ? t : s?.document, a = () => {
107
+ let r = o?.activeElement;
108
108
  if (i)
109
- for (var v; r?.shadowRoot; ) r = r == null || (v = r.shadowRoot) === null || v === void 0 ? void 0 : v.activeElement;
109
+ for (var f; r?.shadowRoot; ) r = r == null || (f = r.shadowRoot) === null || f === void 0 ? void 0 : f.activeElement;
110
110
  return r;
111
- }, n = ee(), c = () => {
111
+ }, n = ie(), c = () => {
112
112
  n.value = a();
113
113
  };
114
114
  if (s) {
@@ -116,49 +116,49 @@ function an(e = {}) {
116
116
  capture: !0,
117
117
  passive: !0
118
118
  };
119
- Ee(s, "blur", (v) => {
120
- v.relatedTarget === null && c();
121
- }, r), Ee(s, "focus", c, r);
119
+ Fe(s, "blur", (f) => {
120
+ f.relatedTarget === null && c();
121
+ }, r), Fe(s, "focus", c, r);
122
122
  }
123
- return u && ln(n, c, { document: l }), c(), n;
123
+ return u && an(n, c, { document: o }), c(), n;
124
124
  }
125
- const sn = "focusin", rn = "focusout", cn = ":focus-within";
126
- function un(e, t = {}) {
127
- const { window: s = ke } = t, i = E(() => be(e)), u = ee(!1), l = E(() => u.value);
128
- if (!s || !(/* @__PURE__ */ an(t)).value) return { focused: l };
125
+ const rn = "focusin", cn = "focusout", un = ":focus-within";
126
+ function dn(e, t = {}) {
127
+ const { window: s = Le } = t, i = T(() => De(e)), u = ie(!1), o = T(() => u.value);
128
+ if (!s || !(/* @__PURE__ */ sn(t)).value) return { focused: o };
129
129
  const a = { passive: !0 };
130
- return Ee(i, sn, () => u.value = !0, a), Ee(i, rn, () => {
130
+ return Fe(i, rn, () => u.value = !0, a), Fe(i, cn, () => {
131
131
  var n, c, r;
132
- return u.value = (n = (c = i.value) === null || c === void 0 || (r = c.matches) === null || r === void 0 ? void 0 : r.call(c, cn)) !== null && n !== void 0 ? n : !1;
133
- }, a), { focused: l };
132
+ return u.value = (n = (c = i.value) === null || c === void 0 || (r = c.matches) === null || r === void 0 ? void 0 : r.call(c, un)) !== null && n !== void 0 ? n : !1;
133
+ }, a), { focused: o };
134
134
  }
135
- function dn(e, { window: t = ke, scrollTarget: s } = {}) {
136
- const i = N(!1), u = () => {
135
+ function fn(e, { window: t = Le, scrollTarget: s } = {}) {
136
+ const i = z(!1), u = () => {
137
137
  if (!t) return;
138
- const l = t.document, a = be(e);
138
+ const o = t.document, a = De(e);
139
139
  if (!a)
140
140
  i.value = !1;
141
141
  else {
142
142
  const n = a.getBoundingClientRect();
143
- i.value = n.top <= (t.innerHeight || l.documentElement.clientHeight) && n.left <= (t.innerWidth || l.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
143
+ i.value = n.top <= (t.innerHeight || o.documentElement.clientHeight) && n.left <= (t.innerWidth || o.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
144
144
  }
145
145
  };
146
- return ae(
147
- () => be(e),
146
+ return ce(
147
+ () => De(e),
148
148
  () => u(),
149
149
  { immediate: !0, flush: "post" }
150
- ), t && Ee(s || t, "scroll", u, {
150
+ ), t && Fe(s || t, "scroll", u, {
151
151
  capture: !1,
152
152
  passive: !0
153
153
  }), i;
154
154
  }
155
- const fe = (e) => {
156
- let t = dn(e).value;
155
+ const be = (e) => {
156
+ let t = fn(e).value;
157
157
  return t = t && e.offsetHeight > 0, t;
158
- }, he = (e) => e.tabIndex >= 0, yt = (e) => {
158
+ }, Ce = (e) => e.tabIndex >= 0, bt = (e) => {
159
159
  const t = e.target;
160
- return it(t);
161
- }, it = (e) => {
160
+ return rt(t);
161
+ }, rt = (e) => {
162
162
  let t;
163
163
  if (e instanceof HTMLTableCellElement) {
164
164
  const s = e.parentElement?.previousElementSibling;
@@ -170,7 +170,7 @@ const fe = (e) => {
170
170
  const s = e.previousElementSibling;
171
171
  s && (t = s);
172
172
  }
173
- return t && (!he(t) || !fe(t)) ? it(t) : t;
173
+ return t && (!Ce(t) || !be(t)) ? rt(t) : t;
174
174
  }, vn = (e) => {
175
175
  const t = e.target;
176
176
  let s;
@@ -187,11 +187,11 @@ const fe = (e) => {
187
187
  u && (s = u);
188
188
  }
189
189
  }
190
- return s && (!he(s) || !fe(s)) ? rt(s) : s;
191
- }, bt = (e) => {
190
+ return s && (!Ce(s) || !be(s)) ? ct(s) : s;
191
+ }, Ct = (e) => {
192
192
  const t = e.target;
193
- return rt(t);
194
- }, rt = (e) => {
193
+ return ct(t);
194
+ }, ct = (e) => {
195
195
  let t;
196
196
  if (e instanceof HTMLTableCellElement) {
197
197
  const s = e.parentElement?.nextElementSibling;
@@ -203,8 +203,8 @@ const fe = (e) => {
203
203
  const s = e.nextElementSibling;
204
204
  s && (t = s);
205
205
  }
206
- return t && (!he(t) || !fe(t)) ? rt(t) : t;
207
- }, fn = (e) => {
206
+ return t && (!Ce(t) || !be(t)) ? ct(t) : t;
207
+ }, hn = (e) => {
208
208
  const t = e.target;
209
209
  let s;
210
210
  if (t instanceof HTMLTableCellElement) {
@@ -220,45 +220,45 @@ const fe = (e) => {
220
220
  u && (s = u);
221
221
  }
222
222
  }
223
- return s && (!he(s) || !fe(s)) ? it(s) : s;
224
- }, Ct = (e) => {
225
- const t = e.target;
226
- return ct(t);
227
- }, ct = (e) => {
228
- let t;
229
- return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!he(t) || !fe(t)) ? ct(t) : t;
223
+ return s && (!Ce(s) || !be(s)) ? rt(s) : s;
230
224
  }, kt = (e) => {
231
225
  const t = e.target;
232
226
  return ut(t);
233
227
  }, ut = (e) => {
234
228
  let t;
235
- return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!he(t) || !fe(t)) ? ut(t) : t;
229
+ return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!Ce(t) || !be(t)) ? ut(t) : t;
236
230
  }, Mt = (e) => {
237
- const t = e.target.parentElement?.firstElementChild;
238
- return t && (!he(t) || !fe(t)) ? ut(t) : t;
231
+ const t = e.target;
232
+ return dt(t);
233
+ }, dt = (e) => {
234
+ let t;
235
+ return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!Ce(t) || !be(t)) ? dt(t) : t;
239
236
  }, Rt = (e) => {
237
+ const t = e.target.parentElement?.firstElementChild;
238
+ return t && (!Ce(t) || !be(t)) ? dt(t) : t;
239
+ }, It = (e) => {
240
240
  const t = e.target.parentElement?.lastElementChild;
241
- return t && (!he(t) || !fe(t)) ? ct(t) : t;
242
- }, Be = ["alt", "control", "shift", "meta"], hn = {
241
+ return t && (!Ce(t) || !be(t)) ? ut(t) : t;
242
+ }, Xe = ["alt", "control", "shift", "meta"], gn = {
243
243
  ArrowUp: "up",
244
244
  ArrowDown: "down",
245
245
  ArrowLeft: "left",
246
246
  ArrowRight: "right"
247
- }, We = {
247
+ }, Qe = {
248
248
  "keydown.up": (e) => {
249
- const t = yt(e);
249
+ const t = bt(e);
250
250
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
251
251
  },
252
252
  "keydown.down": (e) => {
253
- const t = bt(e);
253
+ const t = Ct(e);
254
254
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
255
255
  },
256
256
  "keydown.left": (e) => {
257
- const t = Ct(e);
257
+ const t = kt(e);
258
258
  e.preventDefault(), e.stopPropagation(), t && t.focus();
259
259
  },
260
260
  "keydown.right": (e) => {
261
- const t = kt(e);
261
+ const t = Mt(e);
262
262
  e.preventDefault(), e.stopPropagation(), t && t.focus();
263
263
  },
264
264
  "keydown.control.up": (e) => {
@@ -266,49 +266,49 @@ const fe = (e) => {
266
266
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
267
267
  },
268
268
  "keydown.control.down": (e) => {
269
- const t = fn(e);
269
+ const t = hn(e);
270
270
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
271
271
  },
272
272
  "keydown.control.left": (e) => {
273
- const t = Mt(e);
273
+ const t = Rt(e);
274
274
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
275
275
  },
276
276
  "keydown.control.right": (e) => {
277
- const t = Rt(e);
277
+ const t = It(e);
278
278
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
279
279
  },
280
280
  "keydown.end": (e) => {
281
- const t = Rt(e);
281
+ const t = It(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 = bt(e);
287
+ const t = Ct(e);
288
288
  t && t.focus();
289
289
  }
290
290
  },
291
291
  "keydown.shift.enter": (e) => {
292
292
  if (e.target instanceof HTMLTableCellElement) {
293
293
  e.preventDefault(), e.stopPropagation();
294
- const t = yt(e);
294
+ const t = bt(e);
295
295
  t && t.focus();
296
296
  }
297
297
  },
298
298
  "keydown.home": (e) => {
299
- const t = Mt(e);
299
+ const t = Rt(e);
300
300
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
301
301
  },
302
302
  "keydown.tab": (e) => {
303
- const t = kt(e);
303
+ const t = Mt(e);
304
304
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
305
305
  },
306
306
  "keydown.shift.tab": (e) => {
307
- const t = Ct(e);
307
+ const t = kt(e);
308
308
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
309
309
  }
310
310
  };
311
- function dt(e) {
311
+ function ft(e) {
312
312
  const t = (a) => {
313
313
  let n = null;
314
314
  return a.parent && (typeof a.parent == "string" ? n = document.querySelector(a.parent) : a.parent instanceof HTMLElement ? n = a.parent : n = a.parent.value), n;
@@ -332,110 +332,110 @@ function dt(e) {
332
332
  }, i = (a) => {
333
333
  const n = t(a);
334
334
  let c = [];
335
- return a.selectors ? c = s(a) : n && (c = Array.from(n.children).filter((r) => he(r) && fe(r))), c;
335
+ return a.selectors ? c = s(a) : n && (c = Array.from(n.children).filter((r) => Ce(r) && be(r))), c;
336
336
  }, u = (a) => (n) => {
337
- const c = hn[n.key] || n.key.toLowerCase();
338
- if (Be.includes(c)) return;
339
- const r = a.handlers || We;
340
- for (const v of Object.keys(r)) {
341
- const [g, ...$] = v.split(".");
337
+ const c = gn[n.key] || n.key.toLowerCase();
338
+ if (Xe.includes(c)) return;
339
+ const r = a.handlers || Qe;
340
+ for (const f of Object.keys(r)) {
341
+ const [g, ...$] = f.split(".");
342
342
  if (g === "keydown" && $.includes(c)) {
343
- const A = r[v], y = $.filter((f) => Be.includes(f)), p = Be.some((f) => {
344
- const h = f.charAt(0).toUpperCase() + f.slice(1);
343
+ const V = r[f], x = $.filter((v) => Xe.includes(v)), p = Xe.some((v) => {
344
+ const h = v.charAt(0).toUpperCase() + v.slice(1);
345
345
  return n.getModifierState(h);
346
346
  });
347
- if (y.length > 0) {
347
+ if (x.length > 0) {
348
348
  if (p) {
349
- for (const f of Be)
350
- if ($.includes(f)) {
351
- const h = f.charAt(0).toUpperCase() + f.slice(1);
352
- n.getModifierState(h) && A(n);
349
+ for (const v of Xe)
350
+ if ($.includes(v)) {
351
+ const h = v.charAt(0).toUpperCase() + v.slice(1);
352
+ n.getModifierState(h) && V(n);
353
353
  }
354
354
  }
355
355
  } else
356
- p || A(n);
356
+ p || V(n);
357
357
  }
358
358
  }
359
- }, l = [];
360
- Ce(() => {
359
+ }, o = [];
360
+ He(() => {
361
361
  for (const a of e) {
362
- const n = t(a), c = i(a), r = u(a), v = n ? [n] : c;
363
- for (const g of v) {
364
- const { focused: $ } = un(N(g)), A = ae($, (y) => {
365
- y ? g.addEventListener("keydown", r) : g.removeEventListener("keydown", r);
362
+ const n = t(a), c = i(a), r = u(a), f = n ? [n] : c;
363
+ for (const g of f) {
364
+ const { focused: $ } = dn(z(g)), V = ce($, (x) => {
365
+ x ? g.addEventListener("keydown", r) : g.removeEventListener("keydown", r);
366
366
  });
367
- l.push(A);
367
+ o.push(V);
368
368
  }
369
369
  }
370
- }), Vt(() => {
371
- for (const a of l)
370
+ }), Bt(() => {
371
+ for (const a of o)
372
372
  a();
373
373
  });
374
374
  }
375
375
  function vt(e, t) {
376
- return It() ? ($t(e, t), !0) : !1;
376
+ return $t() ? (Et(e, t), !0) : !1;
377
377
  }
378
- const At = typeof window < "u" && typeof document < "u";
378
+ const Tt = typeof window < "u" && typeof document < "u";
379
379
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
380
- const mn = (e) => e != null, gn = Object.prototype.toString, wn = (e) => gn.call(e) === "[object Object]", xe = () => {
380
+ const mn = (e) => e != null, wn = Object.prototype.toString, pn = (e) => wn.call(e) === "[object Object]", Ee = () => {
381
381
  };
382
- function pn(...e) {
383
- if (e.length !== 1) return Nt(...e);
382
+ function xn(...e) {
383
+ if (e.length !== 1) return Wt(...e);
384
384
  const t = e[0];
385
- return typeof t == "function" ? Ft(Et(() => ({
385
+ return typeof t == "function" ? Ft(St(() => ({
386
386
  get: t,
387
- set: xe
388
- }))) : N(t);
387
+ set: Ee
388
+ }))) : z(t);
389
389
  }
390
- function xn(e, t) {
390
+ function yn(e, t) {
391
391
  function s(...i) {
392
- return new Promise((u, l) => {
392
+ return new Promise((u, o) => {
393
393
  Promise.resolve(e(() => t.apply(this, i), {
394
394
  fn: t,
395
395
  thisArg: this,
396
396
  args: i
397
- })).then(u).catch(l);
397
+ })).then(u).catch(o);
398
398
  });
399
399
  }
400
400
  return s;
401
401
  }
402
- function yn(e, t = {}) {
403
- let s, i, u = xe;
404
- const l = (c) => {
405
- clearTimeout(c), u(), u = xe;
402
+ function bn(e, t = {}) {
403
+ let s, i, u = Ee;
404
+ const o = (c) => {
405
+ clearTimeout(c), u(), u = Ee;
406
406
  };
407
407
  let a;
408
408
  return (c) => {
409
- const r = Z(e), v = Z(t.maxWait);
410
- return s && l(s), r <= 0 || v !== void 0 && v <= 0 ? (i && (l(i), i = void 0), Promise.resolve(c())) : new Promise((g, $) => {
411
- u = t.rejectOnCancel ? $ : g, a = c, v && !i && (i = setTimeout(() => {
412
- s && l(s), i = void 0, g(a());
413
- }, v)), s = setTimeout(() => {
414
- i && l(i), i = void 0, g(c());
409
+ const r = D(e), f = D(t.maxWait);
410
+ return s && o(s), r <= 0 || f !== void 0 && f <= 0 ? (i && (o(i), i = void 0), Promise.resolve(c())) : new Promise((g, $) => {
411
+ u = t.rejectOnCancel ? $ : g, a = c, f && !i && (i = setTimeout(() => {
412
+ s && o(s), i = void 0, g(a());
413
+ }, f)), s = setTimeout(() => {
414
+ i && o(i), i = void 0, g(c());
415
415
  }, r);
416
416
  });
417
417
  };
418
418
  }
419
- function Ne(e) {
419
+ function je(e) {
420
420
  return Array.isArray(e) ? e : [e];
421
421
  }
422
- function bn(e) {
423
- return ot();
422
+ function Cn(e) {
423
+ return lt();
424
424
  }
425
425
  // @__NO_SIDE_EFFECTS__
426
- function Cn(e, t = 200, s = {}) {
427
- return xn(yn(t, s), e);
426
+ function kn(e, t = 200, s = {}) {
427
+ return yn(bn(t, s), e);
428
428
  }
429
- function kn(e, t = {}) {
430
- if (!Pt(e)) return Zt(e);
429
+ function Mn(e, t = {}) {
430
+ if (!Zt(e)) return Nt(e);
431
431
  const s = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
432
- for (const i in e.value) s[i] = Et(() => ({
432
+ for (const i in e.value) s[i] = St(() => ({
433
433
  get() {
434
434
  return e.value[i];
435
435
  },
436
436
  set(u) {
437
- var l;
438
- if (!((l = Z(t.replaceRef)) !== null && l !== void 0) || l) if (Array.isArray(e.value)) {
437
+ var o;
438
+ if (!((o = D(t.replaceRef)) !== null && o !== void 0) || o) if (Array.isArray(e.value)) {
439
439
  const a = [...e.value];
440
440
  a[i] = u, e.value = a;
441
441
  } else {
@@ -450,196 +450,262 @@ function kn(e, t = {}) {
450
450
  }));
451
451
  return s;
452
452
  }
453
- function Mn(e, t = !0, s) {
454
- bn() ? Ce(e, s) : t ? e() : lt(e);
453
+ function Rn(e, t = !0, s) {
454
+ Cn() ? He(e, s) : t ? e() : at(e);
455
455
  }
456
- function Rn(e, t, s) {
457
- return ae(e, t, {
456
+ function In(e, t, s) {
457
+ return ce(e, t, {
458
458
  ...s,
459
459
  immediate: !0
460
460
  });
461
461
  }
462
- const Se = At ? window : void 0;
463
- function re(e) {
462
+ const ze = Tt ? window : void 0;
463
+ function ge(e) {
464
464
  var t;
465
- const s = Z(e);
465
+ const s = D(e);
466
466
  return (t = s?.$el) !== null && t !== void 0 ? t : s;
467
467
  }
468
- function ge(...e) {
469
- const t = (i, u, l, a) => (i.addEventListener(u, l, a), () => i.removeEventListener(u, l, a)), s = E(() => {
470
- const i = Ne(Z(e[0])).filter((u) => u != null);
468
+ function Re(...e) {
469
+ const t = (i, u, o, a) => (i.addEventListener(u, o, a), () => i.removeEventListener(u, o, a)), s = T(() => {
470
+ const i = je(D(e[0])).filter((u) => u != null);
471
471
  return i.every((u) => typeof u != "string") ? i : void 0;
472
472
  });
473
- return Rn(() => {
473
+ return In(() => {
474
474
  var i, u;
475
475
  return [
476
- (i = (u = s.value) === null || u === void 0 ? void 0 : u.map((l) => re(l))) !== null && i !== void 0 ? i : [Se].filter((l) => l != null),
477
- Ne(Z(s.value ? e[1] : e[0])),
478
- Ne(O(s.value ? e[2] : e[1])),
479
- Z(s.value ? e[3] : e[2])
476
+ (i = (u = s.value) === null || u === void 0 ? void 0 : u.map((o) => ge(o))) !== null && i !== void 0 ? i : [ze].filter((o) => o != null),
477
+ je(D(s.value ? e[1] : e[0])),
478
+ je(Z(s.value ? e[2] : e[1])),
479
+ D(s.value ? e[3] : e[2])
480
480
  ];
481
- }, ([i, u, l, a], n, c) => {
482
- if (!i?.length || !u?.length || !l?.length) return;
483
- const r = wn(a) ? { ...a } : a, v = i.flatMap((g) => u.flatMap(($) => l.map((A) => t(g, $, A, r))));
481
+ }, ([i, u, o, a], n, c) => {
482
+ if (!i?.length || !u?.length || !o?.length) return;
483
+ const r = pn(a) ? { ...a } : a, f = i.flatMap((g) => u.flatMap(($) => o.map((V) => t(g, $, V, r))));
484
484
  c(() => {
485
- v.forEach((g) => g());
485
+ f.forEach((g) => g());
486
486
  });
487
487
  }, { flush: "post" });
488
488
  }
489
- function nt(e, t, s = {}) {
490
- const { window: i = Se, ignore: u = [], capture: l = !0, detectIframe: a = !1, controls: n = !1 } = s;
489
+ function ot(e, t, s = {}) {
490
+ const { window: i = ze, ignore: u = [], capture: o = !0, detectIframe: a = !1, controls: n = !1 } = s;
491
491
  if (!i) return n ? {
492
- stop: xe,
493
- cancel: xe,
494
- trigger: xe
495
- } : xe;
492
+ stop: Ee,
493
+ cancel: Ee,
494
+ trigger: Ee
495
+ } : Ee;
496
496
  let c = !0;
497
- const r = (f) => Z(u).some((h) => {
498
- if (typeof h == "string") return Array.from(i.document.querySelectorAll(h)).some((m) => m === f.target || f.composedPath().includes(m));
497
+ const r = (v) => D(u).some((h) => {
498
+ if (typeof h == "string") return Array.from(i.document.querySelectorAll(h)).some((m) => m === v.target || v.composedPath().includes(m));
499
499
  {
500
- const m = re(h);
501
- return m && (f.target === m || f.composedPath().includes(m));
500
+ const m = ge(h);
501
+ return m && (v.target === m || v.composedPath().includes(m));
502
502
  }
503
503
  });
504
- function v(f) {
505
- const h = Z(f);
504
+ function f(v) {
505
+ const h = D(v);
506
506
  return h && h.$.subTree.shapeFlag === 16;
507
507
  }
508
- function g(f, h) {
509
- const m = Z(f), R = m.$.subTree && m.$.subTree.children;
510
- return R == null || !Array.isArray(R) ? !1 : R.some((T) => T.el === h.target || h.composedPath().includes(T.el));
508
+ function g(v, h) {
509
+ const m = D(v), I = m.$.subTree && m.$.subTree.children;
510
+ return I == null || !Array.isArray(I) ? !1 : I.some((E) => E.el === h.target || h.composedPath().includes(E.el));
511
511
  }
512
- const $ = (f) => {
513
- const h = re(e);
514
- if (f.target != null && !(!(h instanceof Element) && v(e) && g(e, f)) && !(!h || h === f.target || f.composedPath().includes(h))) {
515
- if ("detail" in f && f.detail === 0 && (c = !r(f)), !c) {
512
+ const $ = (v) => {
513
+ const h = ge(e);
514
+ if (v.target != null && !(!(h instanceof Element) && f(e) && g(e, v)) && !(!h || h === v.target || v.composedPath().includes(h))) {
515
+ if ("detail" in v && v.detail === 0 && (c = !r(v)), !c) {
516
516
  c = !0;
517
517
  return;
518
518
  }
519
- t(f);
519
+ t(v);
520
520
  }
521
521
  };
522
- let A = !1;
523
- const y = [
524
- ge(i, "click", (f) => {
525
- A || (A = !0, setTimeout(() => {
526
- A = !1;
527
- }, 0), $(f));
522
+ let V = !1;
523
+ const x = [
524
+ Re(i, "click", (v) => {
525
+ V || (V = !0, setTimeout(() => {
526
+ V = !1;
527
+ }, 0), $(v));
528
528
  }, {
529
529
  passive: !0,
530
- capture: l
530
+ capture: o
531
531
  }),
532
- ge(i, "pointerdown", (f) => {
533
- const h = re(e);
534
- c = !r(f) && !!(h && !f.composedPath().includes(h));
532
+ Re(i, "pointerdown", (v) => {
533
+ const h = ge(e);
534
+ c = !r(v) && !!(h && !v.composedPath().includes(h));
535
535
  }, { passive: !0 }),
536
- a && ge(i, "blur", (f) => {
536
+ a && Re(i, "blur", (v) => {
537
537
  setTimeout(() => {
538
538
  var h;
539
- const m = re(e);
540
- ((h = i.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !m?.contains(i.document.activeElement) && t(f);
539
+ const m = ge(e);
540
+ ((h = i.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !m?.contains(i.document.activeElement) && t(v);
541
541
  }, 0);
542
542
  }, { passive: !0 })
543
- ].filter(Boolean), p = () => y.forEach((f) => f());
543
+ ].filter(Boolean), p = () => x.forEach((v) => v());
544
544
  return n ? {
545
545
  stop: p,
546
546
  cancel: () => {
547
547
  c = !1;
548
548
  },
549
- trigger: (f) => {
550
- c = !0, $(f), c = !1;
549
+ trigger: (v) => {
550
+ c = !0, $(v), c = !1;
551
551
  }
552
552
  } : p;
553
553
  }
554
554
  // @__NO_SIDE_EFFECTS__
555
- function In() {
556
- const e = ee(!1), t = ot();
557
- return t && Ce(() => {
555
+ function $n() {
556
+ const e = ie(!1), t = lt();
557
+ return t && He(() => {
558
558
  e.value = !0;
559
559
  }, t), e;
560
560
  }
561
561
  // @__NO_SIDE_EFFECTS__
562
- function Tt(e) {
563
- const t = /* @__PURE__ */ In();
564
- return E(() => (t.value, !!e()));
562
+ function Dt(e) {
563
+ const t = /* @__PURE__ */ $n();
564
+ return T(() => (t.value, !!e()));
565
565
  }
566
- function Dt(e, t, s = {}) {
567
- const { window: i = Se, ...u } = s;
568
- let l;
569
- const a = /* @__PURE__ */ Tt(() => i && "MutationObserver" in i), n = () => {
570
- l && (l.disconnect(), l = void 0);
571
- }, c = ae(E(() => {
572
- const g = Ne(Z(e)).map(re).filter(mn);
566
+ function Ht(e, t, s = {}) {
567
+ const { window: i = ze, ...u } = s;
568
+ let o;
569
+ const a = /* @__PURE__ */ Dt(() => i && "MutationObserver" in i), n = () => {
570
+ o && (o.disconnect(), o = void 0);
571
+ }, c = ce(T(() => {
572
+ const g = je(D(e)).map(ge).filter(mn);
573
573
  return new Set(g);
574
574
  }), (g) => {
575
- n(), a.value && g.size && (l = new MutationObserver(t), g.forEach(($) => l.observe($, u)));
575
+ n(), a.value && g.size && (o = new MutationObserver(t), g.forEach(($) => o.observe($, u)));
576
576
  }, {
577
577
  immediate: !0,
578
578
  flush: "post"
579
- }), r = () => l?.takeRecords(), v = () => {
579
+ }), r = () => o?.takeRecords(), f = () => {
580
580
  c(), n();
581
581
  };
582
- return vt(v), {
582
+ return vt(f), {
583
583
  isSupported: a,
584
- stop: v,
584
+ stop: f,
585
585
  takeRecords: r
586
586
  };
587
587
  }
588
- function Ke(e, t = {}) {
589
- var s;
590
- const { pointerTypes: i, preventDefault: u, stopPropagation: l, exact: a, onMove: n, onEnd: c, onStart: r, initialValue: v, axis: g = "both", draggingElement: $ = Se, containerElement: A, handle: y = e, buttons: p = [0] } = t, f = N((s = Z(v)) !== null && s !== void 0 ? s : {
588
+ const Ge = {
589
+ speed: 2,
590
+ margin: 30,
591
+ direction: "both"
592
+ };
593
+ function En(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 _e(e, t = {}) {
597
+ var s, i, u, o;
598
+ const { pointerTypes: a, preventDefault: n, stopPropagation: c, exact: r, onMove: f, onEnd: g, onStart: $, initialValue: V, axis: x = "both", draggingElement: p = ze, containerElement: v, handle: h = e, buttons: m = [0], restrictInView: I, autoScroll: E = !1 } = t, H = z((s = D(V)) !== null && s !== void 0 ? s : {
591
599
  x: 0,
592
600
  y: 0
593
- }), h = N(), m = (b) => i ? i.includes(b.pointerType) : !0, R = (b) => {
594
- Z(u) && b.preventDefault(), Z(l) && b.stopPropagation();
595
- }, T = (b) => {
596
- var D;
597
- if (!Z(p).includes(b.button) || Z(t.disabled) || !m(b) || Z(a) && b.target !== Z(e)) return;
598
- const j = Z(A), X = j == null || (D = j.getBoundingClientRect) === null || D === void 0 ? void 0 : D.call(j), F = Z(e).getBoundingClientRect(), ne = {
599
- x: b.clientX - (j ? F.left - X.left + j.scrollLeft : F.left),
600
- y: b.clientY - (j ? F.top - X.top + j.scrollTop : F.top)
601
+ }), A = z(), L = (k) => a ? a.includes(k.pointerType) : !0, X = (k) => {
602
+ D(n) && k.preventDefault(), D(c) && k.stopPropagation();
603
+ }, le = D(E), j = typeof le == "object" ? {
604
+ speed: (i = D(le.speed)) !== null && i !== void 0 ? i : Ge.speed,
605
+ margin: (u = D(le.margin)) !== null && u !== void 0 ? u : Ge.margin,
606
+ direction: (o = le.direction) !== null && o !== void 0 ? o : Ge.direction
607
+ } : Ge, q = (k) => typeof k == "number" ? [k, k] : [k.x, k.y], ue = (k, O, F) => {
608
+ const { clientWidth: J, clientHeight: G, scrollLeft: te, scrollTop: pe, scrollWidth: Me, scrollHeight: S } = k, [B, U] = q(j.margin), [Y, Q] = q(j.speed);
609
+ let _ = 0, ne = 0;
610
+ (j.direction === "x" || j.direction === "both") && (F.x < B && te > 0 ? _ = -Y : F.x + O.width > J - B && te < Me - J && (_ = Y)), (j.direction === "y" || j.direction === "both") && (F.y < U && pe > 0 ? ne = -Q : F.y + O.height > G - U && pe < S - G && (ne = Q)), (_ || ne) && k.scrollBy({
611
+ left: _,
612
+ top: ne,
613
+ behavior: "auto"
614
+ });
615
+ };
616
+ let ae = null;
617
+ const Ae = () => {
618
+ const k = D(v);
619
+ k && !ae && (ae = setInterval(() => {
620
+ const O = D(e).getBoundingClientRect(), { x: F, y: J } = H.value, G = {
621
+ x: F - k.scrollLeft,
622
+ y: J - k.scrollTop
623
+ };
624
+ G.x >= 0 && G.y >= 0 && (ue(k, O, G), G.x += k.scrollLeft, G.y += k.scrollTop, H.value = G);
625
+ }, 1e3 / 60));
626
+ }, ke = () => {
627
+ ae && (clearInterval(ae), ae = null);
628
+ }, Oe = (k, O, F, J) => {
629
+ const [G, te] = typeof F == "number" ? [F, F] : [F.x, F.y], { clientWidth: pe, clientHeight: Me } = O;
630
+ return k.x < G || k.x + J.width > pe - G || k.y < te || k.y + J.height > Me - te;
631
+ }, Ve = () => {
632
+ if (D(t.disabled) || !A.value) return;
633
+ const k = D(v);
634
+ if (!k) return;
635
+ const O = D(e).getBoundingClientRect(), { x: F, y: J } = H.value;
636
+ Oe({
637
+ x: F - k.scrollLeft,
638
+ y: J - k.scrollTop
639
+ }, k, j.margin, O) ? Ae() : ke();
640
+ };
641
+ D(E) && ce(H, Ve);
642
+ const Be = (k) => {
643
+ var O;
644
+ if (!D(m).includes(k.button) || D(t.disabled) || !L(k) || D(r) && k.target !== D(e)) return;
645
+ const F = D(v), J = F == null || (O = F.getBoundingClientRect) === null || O === void 0 ? void 0 : O.call(F), G = D(e).getBoundingClientRect(), te = {
646
+ x: k.clientX - (F ? G.left - J.left + (E ? 0 : F.scrollLeft) : G.left),
647
+ y: k.clientY - (F ? G.top - J.top + (E ? 0 : F.scrollTop) : G.top)
601
648
  };
602
- r?.(ne, b) !== !1 && (h.value = ne, R(b));
603
- }, z = (b) => {
604
- if (Z(t.disabled) || !m(b) || !h.value) return;
605
- const D = Z(A), j = Z(e).getBoundingClientRect();
606
- let { x: X, y: F } = f.value;
607
- (g === "x" || g === "both") && (X = b.clientX - h.value.x, D && (X = Math.min(Math.max(0, X), D.scrollWidth - j.width))), (g === "y" || g === "both") && (F = b.clientY - h.value.y, D && (F = Math.min(Math.max(0, F), D.scrollHeight - j.height))), f.value = {
608
- x: X,
609
- y: F
610
- }, n?.(f.value, b), R(b);
611
- }, L = (b) => {
612
- Z(t.disabled) || !m(b) || h.value && (h.value = void 0, c?.(f.value, b), R(b));
649
+ $?.(te, k) !== !1 && (A.value = te, X(k));
650
+ }, Te = (k) => {
651
+ if (D(t.disabled) || !L(k) || !A.value) return;
652
+ const O = D(v);
653
+ O instanceof HTMLElement && En(O);
654
+ const F = D(e).getBoundingClientRect();
655
+ let { x: J, y: G } = H.value;
656
+ if ((x === "x" || x === "both") && (J = k.clientX - A.value.x, O && (J = Math.min(Math.max(0, J), O.scrollWidth - F.width))), (x === "y" || x === "both") && (G = k.clientY - A.value.y, O && (G = Math.min(Math.max(0, G), O.scrollHeight - F.height))), D(E) && O && (ae === null && ue(O, F, {
657
+ x: J,
658
+ y: G
659
+ }), J += O.scrollLeft, G += O.scrollTop), O && (I || E)) {
660
+ if (x !== "y") {
661
+ const te = J - O.scrollLeft;
662
+ te < 0 ? J = O.scrollLeft : te > O.clientWidth - F.width && (J = O.clientWidth - F.width + O.scrollLeft);
663
+ }
664
+ if (x !== "x") {
665
+ const te = G - O.scrollTop;
666
+ te < 0 ? G = O.scrollTop : te > O.clientHeight - F.height && (G = O.clientHeight - F.height + O.scrollTop);
667
+ }
668
+ }
669
+ H.value = {
670
+ x: J,
671
+ y: G
672
+ }, f?.(H.value, k), X(k);
673
+ }, Pe = (k) => {
674
+ D(t.disabled) || !L(k) || A.value && (A.value = void 0, E && ke(), g?.(H.value, k), X(k));
613
675
  };
614
- if (At) {
615
- const b = () => {
616
- var D;
676
+ if (Tt) {
677
+ const k = () => {
678
+ var O;
617
679
  return {
618
- capture: (D = t.capture) !== null && D !== void 0 ? D : !0,
619
- passive: !Z(u)
680
+ capture: (O = t.capture) !== null && O !== void 0 ? O : !0,
681
+ passive: !D(n)
620
682
  };
621
683
  };
622
- ge(y, "pointerdown", T, b), ge($, "pointermove", z, b), ge($, "pointerup", L, b);
684
+ Re(h, "pointerdown", Be, k), Re(p, "pointermove", Te, k), Re(p, "pointerup", Pe, k);
623
685
  }
624
686
  return {
625
- ...kn(f),
626
- position: f,
627
- isDragging: E(() => !!h.value),
628
- style: E(() => `left:${f.value.x}px;top:${f.value.y}px;`)
687
+ ...Mn(H),
688
+ position: H,
689
+ isDragging: T(() => !!A.value),
690
+ style: T(() => `
691
+ left: ${H.value.x}px;
692
+ top: ${H.value.y}px;
693
+ ${E ? "text-wrap: nowrap;" : ""}
694
+ `)
629
695
  };
630
696
  }
631
- function ze(e, t, s = {}) {
632
- const { window: i = Se, ...u } = s;
633
- let l;
634
- const a = /* @__PURE__ */ Tt(() => i && "ResizeObserver" in i), n = () => {
635
- l && (l.disconnect(), l = void 0);
636
- }, c = ae(E(() => {
637
- const v = Z(e);
638
- return Array.isArray(v) ? v.map((g) => re(g)) : [re(v)];
639
- }), (v) => {
697
+ function Je(e, t, s = {}) {
698
+ const { window: i = ze, ...u } = s;
699
+ let o;
700
+ const a = /* @__PURE__ */ Dt(() => i && "ResizeObserver" in i), n = () => {
701
+ o && (o.disconnect(), o = void 0);
702
+ }, c = ce(T(() => {
703
+ const f = D(e);
704
+ return Array.isArray(f) ? f.map((g) => ge(g)) : [ge(f)];
705
+ }), (f) => {
640
706
  if (n(), a.value && i) {
641
- l = new ResizeObserver(t);
642
- for (const g of v) g && l.observe(g, u);
707
+ o = new ResizeObserver(t);
708
+ for (const g of f) g && o.observe(g, u);
643
709
  }
644
710
  }, {
645
711
  immediate: !0,
@@ -652,72 +718,72 @@ function ze(e, t, s = {}) {
652
718
  stop: r
653
719
  };
654
720
  }
655
- function pe(e, t = {}) {
656
- const { reset: s = !0, windowResize: i = !0, windowScroll: u = !0, immediate: l = !0, updateTiming: a = "sync" } = t, n = ee(0), c = ee(0), r = ee(0), v = ee(0), g = ee(0), $ = ee(0), A = ee(0), y = ee(0);
721
+ function $e(e, t = {}) {
722
+ const { reset: s = !0, windowResize: i = !0, windowScroll: u = !0, immediate: o = !0, updateTiming: a = "sync" } = t, n = ie(0), c = ie(0), r = ie(0), f = ie(0), g = ie(0), $ = ie(0), V = ie(0), x = ie(0);
657
723
  function p() {
658
- const h = re(e);
724
+ const h = ge(e);
659
725
  if (!h) {
660
- s && (n.value = 0, c.value = 0, r.value = 0, v.value = 0, g.value = 0, $.value = 0, A.value = 0, y.value = 0);
726
+ s && (n.value = 0, c.value = 0, r.value = 0, f.value = 0, g.value = 0, $.value = 0, V.value = 0, x.value = 0);
661
727
  return;
662
728
  }
663
729
  const m = h.getBoundingClientRect();
664
- n.value = m.height, c.value = m.bottom, r.value = m.left, v.value = m.right, g.value = m.top, $.value = m.width, A.value = m.x, y.value = m.y;
730
+ n.value = m.height, c.value = m.bottom, r.value = m.left, f.value = m.right, g.value = m.top, $.value = m.width, V.value = m.x, x.value = m.y;
665
731
  }
666
- function f() {
732
+ function v() {
667
733
  a === "sync" ? p() : a === "next-frame" && requestAnimationFrame(() => p());
668
734
  }
669
- return ze(e, f), ae(() => re(e), (h) => !h && f()), Dt(e, f, { attributeFilter: ["style", "class"] }), u && ge("scroll", f, {
735
+ return Je(e, v), ce(() => ge(e), (h) => !h && v()), Ht(e, v, { attributeFilter: ["style", "class"] }), u && Re("scroll", v, {
670
736
  capture: !0,
671
737
  passive: !0
672
- }), i && ge("resize", f, { passive: !0 }), Mn(() => {
673
- l && f();
738
+ }), i && Re("resize", v, { passive: !0 }), Rn(() => {
739
+ o && v();
674
740
  }), {
675
741
  height: n,
676
742
  bottom: c,
677
743
  left: r,
678
- right: v,
744
+ right: f,
679
745
  top: g,
680
746
  width: $,
681
- x: A,
682
- y,
683
- update: f
747
+ x: V,
748
+ y: x,
749
+ update: v
684
750
  };
685
751
  }
686
- function _e(e) {
752
+ function et(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 et = /* @__PURE__ */ new WeakMap();
690
- function $n(e, t = !1) {
691
- const s = ee(t);
755
+ const tt = /* @__PURE__ */ new WeakMap();
756
+ function Sn(e, t = !1) {
757
+ const s = ie(t);
692
758
  let i = "";
693
- ae(pn(e), (a) => {
694
- const n = _e(Z(a));
759
+ ce(xn(e), (a) => {
760
+ const n = et(D(a));
695
761
  if (n) {
696
762
  const c = n;
697
- if (et.get(c) || et.set(c, c.style.overflow), c.style.overflow !== "hidden" && (i = c.style.overflow), c.style.overflow === "hidden") return s.value = !0;
763
+ if (tt.get(c) || tt.set(c, c.style.overflow), c.style.overflow !== "hidden" && (i = c.style.overflow), c.style.overflow === "hidden") return s.value = !0;
698
764
  if (s.value) return c.style.overflow = "hidden";
699
765
  }
700
766
  }, { immediate: !0 });
701
767
  const u = () => {
702
- const a = _e(Z(e));
768
+ const a = et(D(e));
703
769
  !a || s.value || (a.style.overflow = "hidden", s.value = !0);
704
- }, l = () => {
705
- const a = _e(Z(e));
706
- !a || !s.value || (a.style.overflow = i, et.delete(a), s.value = !1);
770
+ }, o = () => {
771
+ const a = et(D(e));
772
+ !a || !s.value || (a.style.overflow = i, tt.delete(a), s.value = !1);
707
773
  };
708
- return vt(l), E({
774
+ return vt(o), T({
709
775
  get() {
710
776
  return s.value;
711
777
  },
712
778
  set(a) {
713
- a ? u() : l();
779
+ a ? u() : o();
714
780
  }
715
781
  });
716
782
  }
717
- const En = (e) => {
783
+ const An = (e) => {
718
784
  const t = new DOMParser().parseFromString(e, "text/html");
719
785
  return Array.from(t.body.childNodes).some((s) => s.nodeType === 1);
720
- }, Sn = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), An = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], Tn = ["innerHTML"], Dn = { key: 2 }, Hn = /* @__PURE__ */ ue({
786
+ }, Tn = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), Dn = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], Hn = ["innerHTML"], Ln = { key: 2 }, On = /* @__PURE__ */ we({
721
787
  __name: "ACell",
722
788
  props: {
723
789
  colIndex: {},
@@ -729,185 +795,185 @@ const En = (e) => {
729
795
  debounce: { default: 300 }
730
796
  },
731
797
  setup(e, { expose: t }) {
732
- const s = te("cell"), i = e.store.getCellData(e.colIndex, e.rowIndex), u = N(""), l = N(!1), a = e.store.columns[e.colIndex], n = e.store.rows[e.rowIndex], c = a.align || "center", r = a.width || "40ch", v = E(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), g = E(() => typeof v.value == "string" ? En(v.value) : !1), $ = E(() => ({
798
+ const s = re("cell"), i = e.store.getCellData(e.colIndex, e.rowIndex), u = z(""), o = z(!1), a = e.store.columns[e.colIndex], n = e.store.rows[e.rowIndex], c = a.align || "center", r = a.width || "40ch", f = T(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), g = T(() => typeof f.value == "string" ? An(f.value) : !1), $ = T(() => ({
733
799
  textAlign: c,
734
800
  width: r,
735
- fontWeight: l.value ? "bold" : "inherit",
801
+ fontWeight: o.value ? "bold" : "inherit",
736
802
  paddingLeft: e.store.getIndent(e.colIndex, e.store.display[e.rowIndex]?.indent)
737
- })), A = E(() => ({
803
+ })), V = T(() => ({
738
804
  "sticky-column": e.pinned,
739
- "cell-modified": l.value
740
- })), y = () => {
741
- f(), p();
805
+ "cell-modified": o.value
806
+ })), x = () => {
807
+ v(), p();
742
808
  }, p = () => {
743
- const { left: L, bottom: b, width: D, height: j } = pe(s);
744
- a.mask, a.modalComponent && e.store.$patch((X) => {
745
- X.modal.visible = !0, X.modal.colIndex = e.colIndex, X.modal.rowIndex = e.rowIndex, X.modal.left = L, X.modal.bottom = b, X.modal.width = D, X.modal.height = j, X.modal.cell = s.value, typeof a.modalComponent == "function" ? X.modal.component = a.modalComponent({ table: X.table, row: n, column: a }) : X.modal.component = a.modalComponent, X.modal.componentProps = a.modalComponentExtraProps;
809
+ const { left: A, bottom: L, width: X, height: le } = $e(s);
810
+ a.mask, a.modalComponent && e.store.$patch((j) => {
811
+ j.modal.visible = !0, j.modal.colIndex = e.colIndex, j.modal.rowIndex = e.rowIndex, j.modal.left = A, j.modal.bottom = L, j.modal.width = X, j.modal.height = le, j.modal.cell = s.value, typeof a.modalComponent == "function" ? j.modal.component = a.modalComponent({ table: j.table, row: n, column: a }) : j.modal.component = a.modalComponent, j.modal.componentProps = a.modalComponentExtraProps;
746
812
  });
747
813
  };
748
814
  if (e.addNavigation) {
749
- let L = {
750
- ...We,
815
+ let A = {
816
+ ...Qe,
751
817
  "keydown.f2": p,
752
818
  "keydown.alt.up": p,
753
819
  "keydown.alt.down": p,
754
820
  "keydown.alt.left": p,
755
821
  "keydown.alt.right": p
756
822
  };
757
- typeof e.addNavigation == "object" && (L = {
758
- ...L,
823
+ typeof e.addNavigation == "object" && (A = {
824
+ ...A,
759
825
  ...e.addNavigation
760
- }), dt([
826
+ }), ft([
761
827
  {
762
828
  selectors: s,
763
- handlers: L
829
+ handlers: A
764
830
  }
765
831
  ]);
766
832
  }
767
- const f = () => {
833
+ const v = () => {
768
834
  if (s.value && a.edit) {
769
- const L = window.getSelection();
770
- if (L)
835
+ const A = window.getSelection();
836
+ if (A)
771
837
  try {
772
- const b = document.createRange();
773
- b.selectNodeContents && (b.selectNodeContents(s.value), L.removeAllRanges(), L.addRange(b));
838
+ const L = document.createRange();
839
+ L.selectNodeContents && (L.selectNodeContents(s.value), A.removeAllRanges(), A.addRange(L));
774
840
  } catch {
775
841
  }
776
842
  }
777
843
  }, h = () => {
778
- s.value && (u.value = s.value.textContent, f());
844
+ s.value && (u.value = s.value.textContent, v());
779
845
  }, m = () => {
780
846
  try {
781
- const L = window.getSelection();
782
- if (L && L.rangeCount > 0 && s.value) {
783
- const b = L.getRangeAt(0), D = b.cloneRange();
784
- if (D.selectNodeContents && D.setEnd)
785
- return D.selectNodeContents(s.value), D.setEnd(b.endContainer, b.endOffset), D.toString().length;
847
+ const A = window.getSelection();
848
+ if (A && A.rangeCount > 0 && s.value) {
849
+ const L = A.getRangeAt(0), X = L.cloneRange();
850
+ if (X.selectNodeContents && X.setEnd)
851
+ return X.selectNodeContents(s.value), X.setEnd(L.endContainer, L.endOffset), X.toString().length;
786
852
  }
787
853
  } catch {
788
854
  }
789
855
  return 0;
790
- }, R = (L) => {
856
+ }, I = (A) => {
791
857
  if (s.value)
792
858
  try {
793
- const b = window.getSelection();
794
- if (!b) return;
795
- let D = 0;
796
- const j = document.createTreeWalker ? document.createTreeWalker(s.value, NodeFilter.SHOW_TEXT, null) : null;
797
- if (!j) return;
798
- let X, F = null;
799
- for (; X = j.nextNode(); ) {
800
- const ne = X, me = D + ne.textContent.length;
801
- if (L <= me && (F = document.createRange(), F.setStart && F.setEnd)) {
802
- F.setStart(ne, L - D), F.setEnd(ne, L - D);
859
+ const L = window.getSelection();
860
+ if (!L) return;
861
+ let X = 0;
862
+ const le = document.createTreeWalker ? document.createTreeWalker(s.value, NodeFilter.SHOW_TEXT, null) : null;
863
+ if (!le) return;
864
+ let j, q = null;
865
+ for (; j = le.nextNode(); ) {
866
+ const ue = j, ae = X + ue.textContent.length;
867
+ if (A <= ae && (q = document.createRange(), q.setStart && q.setEnd)) {
868
+ q.setStart(ue, A - X), q.setEnd(ue, A - X);
803
869
  break;
804
870
  }
805
- D = me;
871
+ X = ae;
806
872
  }
807
- F && b.removeAllRanges && b.addRange && (b.removeAllRanges(), b.addRange(F));
873
+ q && L.removeAllRanges && L.addRange && (L.removeAllRanges(), L.addRange(q));
808
874
  } catch {
809
875
  }
810
- }, T = (L) => {
876
+ }, E = (A) => {
811
877
  if (!a.edit) return;
812
- const b = L.target;
813
- if (b.textContent === u.value)
878
+ const L = A.target;
879
+ if (L.textContent === u.value)
814
880
  return;
815
- const D = m();
816
- u.value = b.textContent, a.format ? (l.value = b.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, i), e.store.setCellText(e.colIndex, e.rowIndex, b.textContent)) : (l.value = b.textContent !== i, e.store.setCellData(e.colIndex, e.rowIndex, b.textContent)), lt().then(() => {
817
- R(D);
881
+ const X = m();
882
+ u.value = L.textContent, a.format ? (o.value = L.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, i), e.store.setCellText(e.colIndex, e.rowIndex, L.textContent)) : (o.value = L.textContent !== i, e.store.setCellData(e.colIndex, e.rowIndex, L.textContent)), at().then(() => {
883
+ I(X);
818
884
  });
819
- }, z = /* @__PURE__ */ Cn(T, e.debounce);
885
+ }, H = /* @__PURE__ */ kn(E, e.debounce);
820
886
  return t({
821
887
  currentData: u
822
- }), (L, b) => (x(), k("td", {
888
+ }), (A, L) => (y(), C("td", {
823
889
  ref: "cell",
824
890
  "data-colindex": e.colIndex,
825
891
  "data-rowindex": e.rowIndex,
826
- "data-editable": O(a).edit,
827
- contenteditable: O(a).edit,
892
+ "data-editable": Z(a).edit,
893
+ contenteditable: Z(a).edit,
828
894
  tabindex: e.tabIndex,
829
895
  spellcheck: !1,
830
- style: ce($.value),
831
- class: Q(["atable-cell", A.value]),
896
+ style: me($.value),
897
+ class: oe(["atable-cell", V.value]),
832
898
  onFocus: h,
833
- onPaste: T,
834
- onInput: b[0] || (b[0] = //@ts-ignore
835
- (...D) => O(z) && O(z)(...D)),
836
- onClick: y
899
+ onPaste: E,
900
+ onInput: L[0] || (L[0] = //@ts-ignore
901
+ (...X) => Z(H) && Z(H)(...X)),
902
+ onClick: x
837
903
  }, [
838
- O(a).cellComponent ? (x(), se($e(O(a).cellComponent), at({
904
+ Z(a).cellComponent ? (y(), ve(We(Z(a).cellComponent), st({
839
905
  key: 0,
840
- value: v.value
841
- }, O(a).cellComponentProps), null, 16, ["value"])) : g.value ? (x(), k("span", {
906
+ value: f.value
907
+ }, Z(a).cellComponentProps), null, 16, ["value"])) : g.value ? (y(), C("span", {
842
908
  key: 1,
843
- innerHTML: v.value
844
- }, null, 8, Tn)) : (x(), k("span", Dn, de(v.value), 1))
845
- ], 46, An));
909
+ innerHTML: f.value
910
+ }, null, 8, Hn)) : (y(), C("span", Ln, xe(f.value), 1))
911
+ ], 46, Dn));
846
912
  }
847
- }), On = ["tabindex"], Ln = ["tabindex"], Vn = ["colspan"], Bn = /* @__PURE__ */ ue({
913
+ }), Vn = ["tabindex"], Bn = ["tabindex"], Pn = ["colspan"], Zn = /* @__PURE__ */ we({
848
914
  __name: "AExpansionRow",
849
915
  props: {
850
916
  rowIndex: {},
851
917
  store: {},
852
918
  tabIndex: { default: () => -1 },
853
- addNavigation: { type: [Boolean, Object], default: () => We }
919
+ addNavigation: { type: [Boolean, Object], default: () => Qe }
854
920
  },
855
921
  setup(e) {
856
- const t = te("rowEl"), s = E(() => e.store.display[e.rowIndex].expanded ? "▼" : "►");
922
+ const t = re("rowEl"), s = T(() => e.store.display[e.rowIndex].expanded ? "▼" : "►");
857
923
  if (e.addNavigation) {
858
924
  const i = {
859
925
  "keydown.control.g": (u) => {
860
926
  u.stopPropagation(), u.preventDefault(), e.store.toggleRowExpand(e.rowIndex);
861
927
  }
862
928
  };
863
- typeof e.addNavigation == "object" && Object.assign(i, e.addNavigation), dt([
929
+ typeof e.addNavigation == "object" && Object.assign(i, e.addNavigation), ft([
864
930
  {
865
931
  selectors: t,
866
932
  handlers: i
867
933
  }
868
934
  ]);
869
935
  }
870
- return (i, u) => (x(), k(ie, null, [
871
- P("tr", at(i.$attrs, {
936
+ return (i, u) => (y(), C(he, null, [
937
+ W("tr", st(i.$attrs, {
872
938
  ref: "rowEl",
873
939
  tabindex: e.tabIndex,
874
940
  class: "expandable-row"
875
941
  }), [
876
- P("td", {
942
+ W("td", {
877
943
  tabIndex: -1,
878
944
  class: "row-index",
879
- onClick: u[0] || (u[0] = (l) => e.store.toggleRowExpand(e.rowIndex))
880
- }, de(s.value), 1),
881
- le(i.$slots, "row", {}, void 0, !0)
882
- ], 16, On),
883
- e.store.display[e.rowIndex].expanded ? (x(), k("tr", {
945
+ onClick: u[0] || (u[0] = (o) => e.store.toggleRowExpand(e.rowIndex))
946
+ }, xe(s.value), 1),
947
+ fe(i.$slots, "row", {}, void 0, !0)
948
+ ], 16, Vn),
949
+ e.store.display[e.rowIndex].expanded ? (y(), C("tr", {
884
950
  key: 0,
885
951
  ref: "rowExpanded",
886
952
  tabindex: e.tabIndex,
887
953
  class: "expanded-row"
888
954
  }, [
889
- P("td", {
955
+ W("td", {
890
956
  tabIndex: -1,
891
957
  colspan: e.store.columns.length + 1,
892
958
  class: "expanded-row-content"
893
959
  }, [
894
- le(i.$slots, "content", {}, void 0, !0)
895
- ], 8, Vn)
896
- ], 8, Ln)) : U("", !0)
960
+ fe(i.$slots, "content", {}, void 0, !0)
961
+ ], 8, Pn)
962
+ ], 8, Bn)) : K("", !0)
897
963
  ], 64));
898
964
  }
899
- }), we = (e, t) => {
965
+ }), Ie = (e, t) => {
900
966
  const s = e.__vccOpts || e;
901
967
  for (const [i, u] of t)
902
968
  s[i] = u;
903
969
  return s;
904
- }, Pn = /* @__PURE__ */ we(Bn, [["__scopeId", "data-v-a42297c7"]]), Zn = ["colspan"], Nn = {
970
+ }, Nn = /* @__PURE__ */ Ie(Zn, [["__scopeId", "data-v-a42297c7"]]), Wn = ["colspan"], Fn = {
905
971
  ref: "container",
906
972
  class: "gantt-container"
907
- }, Fn = ["data-rowindex", "data-colindex"], zn = {
973
+ }, zn = ["data-rowindex", "data-colindex"], Xn = {
908
974
  key: 2,
909
975
  class: "gantt-label"
910
- }, Wn = ["x1", "y1", "x2", "y2"], Xn = /* @__PURE__ */ ue({
976
+ }, Gn = ["x1", "y1", "x2", "y2"], Yn = /* @__PURE__ */ we({
911
977
  __name: "AGanttCell",
912
978
  props: {
913
979
  store: {},
@@ -926,14 +992,14 @@ const En = (e) => {
926
992
  v6d722296: u.value,
927
993
  v260b36f8: S.colspan
928
994
  }));
929
- const i = s, u = N(e.color.length >= 6 ? e.color : "#cccccc"), l = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, a = te("container"), n = te("bar"), c = te("leftResizeHandle"), r = te("rightResizeHandle"), v = te("leftConnectionHandle"), g = te("rightConnectionHandle"), { width: $ } = pe(a), { left: A, right: y } = pe(n), p = N(e.start), f = N(e.end || p.value + e.colspan), h = N(!1), m = N(!1), R = N(!1), T = N(!1), z = N(!1), L = N({ startX: 0, startY: 0, endX: 0, endY: 0 }), b = E(() => Ae.value || ne.value || me.value), D = E(() => e.colspan > 0 ? $.value / e.colspan : 0), j = E(() => {
930
- const S = p.value / e.colspan * 100, V = f.value / e.colspan * 100;
995
+ const i = s, u = z(e.color.length >= 6 ? e.color : "#cccccc"), o = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, a = re("container"), n = re("bar"), c = re("leftResizeHandle"), r = re("rightResizeHandle"), f = re("leftConnectionHandle"), g = re("rightConnectionHandle"), { width: $ } = $e(a), { left: V, right: x } = $e(n), p = z(e.start), v = z(e.end || p.value + e.colspan), h = z(!1), m = z(!1), I = z(!1), E = z(!1), H = z(!1), A = z({ startX: 0, startY: 0, endX: 0, endY: 0 }), L = T(() => Ae.value || ue.value || ae.value), X = T(() => e.colspan > 0 ? $.value / e.colspan : 0), le = T(() => {
996
+ const S = p.value / e.colspan * 100, B = v.value / e.colspan * 100;
931
997
  return {
932
998
  left: `${S}%`,
933
- width: `${V - S}%`,
999
+ width: `${B - S}%`,
934
1000
  backgroundColor: u.value
935
1001
  };
936
- }), X = E(
1002
+ }), j = T(
937
1003
  () => ({
938
1004
  position: "fixed",
939
1005
  top: 0,
@@ -943,249 +1009,249 @@ const En = (e) => {
943
1009
  pointerEvents: "none",
944
1010
  zIndex: 1e3
945
1011
  })
946
- ), F = N({ startX: 0, startPos: 0 }), { isDragging: ne } = Ke(c, {
1012
+ ), q = z({ startX: 0, startPos: 0 }), { isDragging: ue } = _e(c, {
947
1013
  axis: "x",
948
- onStart: () => Me(A.value, p.value),
949
- onMove: ({ x: S }) => Xe(S),
950
- onEnd: ({ x: S }) => Ge(S)
951
- }), { isDragging: me } = Ke(r, {
1014
+ onStart: () => ke(V.value, p.value),
1015
+ onMove: ({ x: S }) => Oe(S),
1016
+ onEnd: ({ x: S }) => Ve(S)
1017
+ }), { isDragging: ae } = _e(r, {
952
1018
  axis: "x",
953
- onStart: () => Me(y.value, f.value),
954
- onMove: ({ x: S }) => Ue(S),
1019
+ onStart: () => ke(x.value, v.value),
1020
+ onMove: ({ x: S }) => Be(S),
955
1021
  onEnd: ({ x: S }) => Te(S)
956
- }), { isDragging: Ae } = Ke(n, {
1022
+ }), { isDragging: Ae } = _e(n, {
957
1023
  exact: !0,
958
1024
  axis: "x",
959
- onStart: () => Me(A.value, p.value),
960
- onMove: ({ x: S }) => je(S),
961
- onEnd: ({ x: S }) => De(S)
1025
+ onStart: () => ke(V.value, p.value),
1026
+ onMove: ({ x: S }) => Pe(S),
1027
+ onEnd: ({ x: S }) => k(S)
962
1028
  });
963
- Ce(() => {
964
- Ye();
965
- }), Wt(() => {
966
- qe();
1029
+ He(() => {
1030
+ O();
1031
+ }), Xt(() => {
1032
+ F();
967
1033
  });
968
- function Me(S, V) {
969
- n.value && (n.value.style.transition = "none"), F.value = { startX: S, startPos: V };
1034
+ function ke(S, B) {
1035
+ n.value && (n.value.style.transition = "none"), q.value = { startX: S, startPos: B };
970
1036
  }
971
- function Xe(S) {
972
- if (!ne.value || !n.value) return;
973
- const G = (S - F.value.startX) / D.value, W = Math.max(0, Math.min(f.value - 1, F.value.startPos + G));
974
- n.value.style.left = `${W / e.colspan * 100}%`, n.value.style.width = `${(f.value - W) / e.colspan * 100}%`;
1037
+ function Oe(S) {
1038
+ if (!ue.value || !n.value) return;
1039
+ const U = (S - q.value.startX) / X.value, Y = Math.max(0, Math.min(v.value - 1, q.value.startPos + U));
1040
+ n.value.style.left = `${Y / e.colspan * 100}%`, n.value.style.width = `${(v.value - Y) / e.colspan * 100}%`;
975
1041
  }
976
- function Ge(S) {
1042
+ function Ve(S) {
977
1043
  if (!n.value) return;
978
- const V = S - F.value.startX, G = Math.round(V / D.value), W = p.value, Y = Math.max(0, Math.min(f.value - 1, F.value.startPos + G));
979
- p.value = Y, e.store.updateGanttBar({
1044
+ const B = S - q.value.startX, U = Math.round(B / X.value), Y = p.value, Q = Math.max(0, Math.min(v.value - 1, q.value.startPos + U));
1045
+ p.value = Q, e.store.updateGanttBar({
980
1046
  rowIndex: e.rowIndex,
981
1047
  colIndex: e.colIndex,
982
1048
  type: "resize",
983
1049
  edge: "start",
984
- oldStart: W,
985
- newStart: Y,
986
- end: f.value,
987
- delta: G,
988
- oldColspan: f.value - W,
989
- newColspan: f.value - Y
1050
+ oldStart: Y,
1051
+ newStart: Q,
1052
+ end: v.value,
1053
+ delta: U,
1054
+ oldColspan: v.value - Y,
1055
+ newColspan: v.value - Q
990
1056
  });
991
1057
  }
992
- function Ue(S) {
993
- if (!me.value || !n.value) return;
994
- const G = (S - F.value.startX) / D.value, W = Math.max(p.value + 1, Math.min(e.columnsCount, F.value.startPos + G));
995
- n.value.style.width = `${(W - p.value) / e.colspan * 100}%`;
1058
+ function Be(S) {
1059
+ if (!ae.value || !n.value) return;
1060
+ const U = (S - q.value.startX) / X.value, Y = Math.max(p.value + 1, Math.min(e.columnsCount, q.value.startPos + U));
1061
+ n.value.style.width = `${(Y - p.value) / e.colspan * 100}%`;
996
1062
  }
997
1063
  function Te(S) {
998
1064
  if (!n.value) return;
999
- const V = S - F.value.startX, G = Math.round(V / D.value), W = f.value, Y = Math.max(p.value + 1, Math.min(e.columnsCount, F.value.startPos + G));
1000
- f.value = Y, e.store.updateGanttBar({
1065
+ const B = S - q.value.startX, U = Math.round(B / X.value), Y = v.value, Q = Math.max(p.value + 1, Math.min(e.columnsCount, q.value.startPos + U));
1066
+ v.value = Q, e.store.updateGanttBar({
1001
1067
  rowIndex: e.rowIndex,
1002
1068
  colIndex: e.colIndex,
1003
1069
  type: "resize",
1004
1070
  edge: "end",
1005
- oldEnd: W,
1006
- newEnd: Y,
1071
+ oldEnd: Y,
1072
+ newEnd: Q,
1007
1073
  start: p.value,
1008
- delta: G,
1009
- oldColspan: W - p.value,
1010
- newColspan: Y - p.value
1074
+ delta: U,
1075
+ oldColspan: Y - p.value,
1076
+ newColspan: Q - p.value
1011
1077
  });
1012
1078
  }
1013
- function je(S) {
1079
+ function Pe(S) {
1014
1080
  if (!Ae.value || !n.value) return;
1015
- const G = (S - F.value.startX) / D.value, W = f.value - p.value, Y = Math.max(0, Math.min(F.value.startPos + G, e.columnsCount - W));
1016
- n.value.style.left = `${Y / e.colspan * 100}%`;
1081
+ const U = (S - q.value.startX) / X.value, Y = v.value - p.value, Q = Math.max(0, Math.min(q.value.startPos + U, e.columnsCount - Y));
1082
+ n.value.style.left = `${Q / e.colspan * 100}%`;
1017
1083
  }
1018
- function De(S) {
1084
+ function k(S) {
1019
1085
  if (!n.value) return;
1020
- const V = S - F.value.startX, G = Math.round(V / D.value), W = f.value - p.value, Y = p.value, J = f.value;
1021
- let K = F.value.startPos + G, _ = K + W;
1022
- K < 0 ? (K = 0, _ = W) : _ > e.columnsCount && (_ = e.columnsCount, K = _ - W), p.value = K, f.value = _, e.store.updateGanttBar({
1086
+ const B = S - q.value.startX, U = Math.round(B / X.value), Y = v.value - p.value, Q = p.value, _ = v.value;
1087
+ let ne = q.value.startPos + U, se = ne + Y;
1088
+ ne < 0 ? (ne = 0, se = Y) : se > e.columnsCount && (se = e.columnsCount, ne = se - Y), p.value = ne, v.value = se, e.store.updateGanttBar({
1023
1089
  rowIndex: e.rowIndex,
1024
1090
  colIndex: e.colIndex,
1025
1091
  type: "bar",
1026
- oldStart: Y,
1027
- oldEnd: J,
1028
- newStart: K,
1029
- newEnd: _,
1030
- delta: G,
1031
- colspan: _ - K
1092
+ oldStart: Q,
1093
+ oldEnd: _,
1094
+ newStart: ne,
1095
+ newEnd: se,
1096
+ delta: U,
1097
+ colspan: se - ne
1032
1098
  });
1033
1099
  }
1034
- function Ye() {
1035
- const { x: S, y: V } = pe(n), { x: G, y: W } = pe(v), { x: Y, y: J } = pe(g);
1100
+ function O() {
1101
+ const { x: S, y: B } = $e(n), { x: U, y: Y } = $e(f), { x: Q, y: _ } = $e(g);
1036
1102
  e.store.registerGanttBar({
1037
- id: l,
1103
+ id: o,
1038
1104
  rowIndex: e.rowIndex,
1039
1105
  colIndex: e.colIndex,
1040
1106
  startIndex: p,
1041
- endIndex: f,
1107
+ endIndex: v,
1042
1108
  color: u,
1043
1109
  label: e.label,
1044
- position: { x: S, y: V }
1110
+ position: { x: S, y: B }
1045
1111
  }), e.store.isDependencyGraphEnabled && (e.store.registerConnectionHandle({
1046
- id: `${l}-connection-left`,
1112
+ id: `${o}-connection-left`,
1047
1113
  rowIndex: e.rowIndex,
1048
1114
  colIndex: e.colIndex,
1049
1115
  side: "left",
1050
- position: { x: G, y: W },
1116
+ position: { x: U, y: Y },
1051
1117
  visible: h,
1052
- barId: l
1118
+ barId: o
1053
1119
  }), e.store.registerConnectionHandle({
1054
- id: `${l}-connection-right`,
1120
+ id: `${o}-connection-right`,
1055
1121
  rowIndex: e.rowIndex,
1056
1122
  colIndex: e.colIndex,
1057
1123
  side: "right",
1058
- position: { x: Y, y: J },
1124
+ position: { x: Q, y: _ },
1059
1125
  visible: m,
1060
- barId: l
1126
+ barId: o
1061
1127
  }));
1062
1128
  }
1063
- function qe() {
1064
- e.store.unregisterGanttBar(l), e.store.isDependencyGraphEnabled && (e.store.unregisterConnectionHandle(`${l}-connection-left`), e.store.unregisterConnectionHandle(`${l}-connection-right`));
1129
+ function F() {
1130
+ e.store.unregisterGanttBar(o), e.store.isDependencyGraphEnabled && (e.store.unregisterConnectionHandle(`${o}-connection-left`), e.store.unregisterConnectionHandle(`${o}-connection-right`));
1065
1131
  }
1066
- function Je() {
1132
+ function J() {
1067
1133
  e.store.isDependencyGraphEnabled && (h.value = !0, m.value = !0);
1068
1134
  }
1069
- function He() {
1070
- !R.value && !T.value && (h.value = !1, m.value = !1);
1135
+ function G() {
1136
+ !I.value && !E.value && (h.value = !1, m.value = !1);
1071
1137
  }
1072
- function Oe(S, V) {
1073
- V.preventDefault(), V.stopPropagation(), z.value = !0, S === "left" ? R.value = !0 : T.value = !0;
1074
- const G = S === "left" ? v.value : g.value;
1075
- if (G) {
1076
- const J = G.getBoundingClientRect(), K = J.left + J.width / 2, _ = J.top + J.height / 2;
1077
- L.value = { startX: K, startY: _, endX: K, endY: _ };
1138
+ function te(S, B) {
1139
+ B.preventDefault(), B.stopPropagation(), H.value = !0, S === "left" ? I.value = !0 : E.value = !0;
1140
+ const U = S === "left" ? f.value : g.value;
1141
+ if (U) {
1142
+ const _ = U.getBoundingClientRect(), ne = _.left + _.width / 2, se = _.top + _.height / 2;
1143
+ A.value = { startX: ne, startY: se, endX: ne, endY: se };
1078
1144
  }
1079
- const W = (J) => {
1080
- L.value.endX = J.clientX, L.value.endY = J.clientY;
1081
- }, Y = (J) => {
1082
- Le(J, S), Ve(W, Y);
1145
+ const Y = (_) => {
1146
+ A.value.endX = _.clientX, A.value.endY = _.clientY;
1147
+ }, Q = (_) => {
1148
+ pe(_, S), Me(Y, Q);
1083
1149
  };
1084
- document.addEventListener("mousemove", W), document.addEventListener("mouseup", Y);
1150
+ document.addEventListener("mousemove", Y), document.addEventListener("mouseup", Q);
1085
1151
  }
1086
- function Le(S, V) {
1087
- const W = document.elementFromPoint(S.clientX, S.clientY)?.closest(".connection-handle");
1088
- if (W && W !== (V === "left" ? v.value : g.value)) {
1089
- const Y = W.closest(".gantt-bar");
1090
- if (Y) {
1091
- const J = parseInt(Y.getAttribute("data-rowindex") || "0"), K = parseInt(Y.getAttribute("data-colindex") || "0"), _ = W.classList.contains("left-connection-handle") ? "left" : "right", Re = `gantt-bar-row-${J}-col-${K}`, Qe = e.store.createConnection(
1092
- `${l}-connection-${V}`,
1093
- `${Re}-connection-${_}`
1152
+ function pe(S, B) {
1153
+ const Y = document.elementFromPoint(S.clientX, S.clientY)?.closest(".connection-handle");
1154
+ if (Y && Y !== (B === "left" ? f.value : g.value)) {
1155
+ const Q = Y.closest(".gantt-bar");
1156
+ if (Q) {
1157
+ const _ = parseInt(Q.getAttribute("data-rowindex") || "0"), ne = parseInt(Q.getAttribute("data-colindex") || "0"), se = Y.classList.contains("left-connection-handle") ? "left" : "right", Ze = `gantt-bar-row-${_}-col-${ne}`, Ke = e.store.createConnection(
1158
+ `${o}-connection-${B}`,
1159
+ `${Ze}-connection-${se}`
1094
1160
  );
1095
- Qe && i("connection:create", Qe);
1161
+ Ke && i("connection:create", Ke);
1096
1162
  }
1097
1163
  }
1098
1164
  }
1099
- function Ve(S, V) {
1100
- z.value = !1, R.value = !1, T.value = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", V), n.value?.matches(":hover") || He();
1165
+ function Me(S, B) {
1166
+ H.value = !1, I.value = !1, E.value = !1, document.removeEventListener("mousemove", S), document.removeEventListener("mouseup", B), n.value?.matches(":hover") || G();
1101
1167
  }
1102
1168
  return t({
1103
- barStyle: j,
1104
- cleanupConnectionDrag: Ve,
1105
- currentEnd: f,
1106
- handleConnectionDrop: Le,
1107
- isLeftConnectionDragging: R,
1169
+ barStyle: le,
1170
+ cleanupConnectionDrag: Me,
1171
+ currentEnd: v,
1172
+ handleConnectionDrop: pe,
1173
+ isLeftConnectionDragging: I,
1108
1174
  isLeftConnectionVisible: h,
1109
- isRightConnectionDragging: T,
1175
+ isRightConnectionDragging: E,
1110
1176
  isRightConnectionVisible: m,
1111
- showDragPreview: z
1112
- }), (S, V) => (x(), k("td", {
1177
+ showDragPreview: H
1178
+ }), (S, B) => (y(), C("td", {
1113
1179
  class: "aganttcell",
1114
1180
  colspan: e.colspan
1115
1181
  }, [
1116
- P("div", Nn, [
1117
- P("div", {
1182
+ W("div", Fn, [
1183
+ W("div", {
1118
1184
  ref: "bar",
1119
1185
  "data-rowindex": e.rowIndex,
1120
1186
  "data-colindex": e.colIndex,
1121
- class: Q(["gantt-bar", { "is-dragging": b.value }]),
1122
- style: ce(j.value),
1123
- onMouseenter: Je,
1124
- onMouseleave: He
1187
+ class: oe(["gantt-bar", { "is-dragging": L.value }]),
1188
+ style: me(le.value),
1189
+ onMouseenter: J,
1190
+ onMouseleave: G
1125
1191
  }, [
1126
- e.store.isDependencyGraphEnabled ? (x(), k("div", {
1192
+ e.store.isDependencyGraphEnabled ? (y(), C("div", {
1127
1193
  key: 0,
1128
1194
  ref: "leftConnectionHandle",
1129
- class: Q(["connection-handle left-connection-handle", { visible: h.value, "is-dragging": R.value }]),
1130
- onMousedown: V[0] || (V[0] = ye((G) => Oe("left", G), ["stop"]))
1131
- }, [...V[2] || (V[2] = [
1132
- P("div", { class: "connection-dot" }, null, -1)
1133
- ])], 34)) : U("", !0),
1134
- e.store.isDependencyGraphEnabled ? (x(), k("div", {
1195
+ class: oe(["connection-handle left-connection-handle", { visible: h.value, "is-dragging": I.value }]),
1196
+ onMousedown: B[0] || (B[0] = Se((U) => te("left", U), ["stop"]))
1197
+ }, [...B[2] || (B[2] = [
1198
+ W("div", { class: "connection-dot" }, null, -1)
1199
+ ])], 34)) : K("", !0),
1200
+ e.store.isDependencyGraphEnabled ? (y(), C("div", {
1135
1201
  key: 1,
1136
1202
  ref: "rightConnectionHandle",
1137
- class: Q(["connection-handle right-connection-handle", { visible: m.value, "is-dragging": T.value }]),
1138
- onMousedown: V[1] || (V[1] = ye((G) => Oe("right", G), ["stop"]))
1139
- }, [...V[3] || (V[3] = [
1140
- P("div", { class: "connection-dot" }, null, -1)
1141
- ])], 34)) : U("", !0),
1142
- P("div", {
1203
+ class: oe(["connection-handle right-connection-handle", { visible: m.value, "is-dragging": E.value }]),
1204
+ onMousedown: B[1] || (B[1] = Se((U) => te("right", U), ["stop"]))
1205
+ }, [...B[3] || (B[3] = [
1206
+ W("div", { class: "connection-dot" }, null, -1)
1207
+ ])], 34)) : K("", !0),
1208
+ W("div", {
1143
1209
  ref: "leftResizeHandle",
1144
- class: Q(["resize-handle left-resize-handle", { "is-dragging": O(ne) }])
1145
- }, [...V[4] || (V[4] = [
1146
- P("div", { class: "handle-grip" }, null, -1),
1147
- P("div", { class: "vertical-indicator left-indicator" }, null, -1)
1210
+ class: oe(["resize-handle left-resize-handle", { "is-dragging": Z(ue) }])
1211
+ }, [...B[4] || (B[4] = [
1212
+ W("div", { class: "handle-grip" }, null, -1),
1213
+ W("div", { class: "vertical-indicator left-indicator" }, null, -1)
1148
1214
  ])], 2),
1149
- e.label ? (x(), k("label", zn, de(e.label), 1)) : U("", !0),
1150
- P("div", {
1215
+ e.label ? (y(), C("label", Xn, xe(e.label), 1)) : K("", !0),
1216
+ W("div", {
1151
1217
  ref: "rightResizeHandle",
1152
- class: Q(["resize-handle right-resize-handle", { "is-dragging": O(me) }])
1153
- }, [...V[5] || (V[5] = [
1154
- P("div", { class: "handle-grip" }, null, -1),
1155
- P("div", { class: "vertical-indicator right-indicator" }, null, -1)
1218
+ class: oe(["resize-handle right-resize-handle", { "is-dragging": Z(ae) }])
1219
+ }, [...B[5] || (B[5] = [
1220
+ W("div", { class: "handle-grip" }, null, -1),
1221
+ W("div", { class: "vertical-indicator right-indicator" }, null, -1)
1156
1222
  ])], 2)
1157
- ], 46, Fn)
1223
+ ], 46, zn)
1158
1224
  ], 512),
1159
- e.store.isDependencyGraphEnabled && z.value ? (x(), k("svg", {
1225
+ e.store.isDependencyGraphEnabled && H.value ? (y(), C("svg", {
1160
1226
  key: 0,
1161
- style: ce(X.value)
1227
+ style: me(j.value)
1162
1228
  }, [
1163
- P("line", {
1164
- x1: L.value.startX,
1165
- y1: L.value.startY,
1166
- x2: L.value.endX,
1167
- y2: L.value.endY,
1229
+ W("line", {
1230
+ x1: A.value.startX,
1231
+ y1: A.value.startY,
1232
+ x2: A.value.endX,
1233
+ y2: A.value.endY,
1168
1234
  stroke: "#2196f3",
1169
1235
  "stroke-width": "2",
1170
1236
  "stroke-dasharray": "5,5"
1171
- }, null, 8, Wn)
1172
- ], 4)) : U("", !0)
1173
- ], 8, Zn));
1237
+ }, null, 8, Gn)
1238
+ ], 4)) : K("", !0)
1239
+ ], 8, Wn));
1174
1240
  }
1175
- }), Gn = /* @__PURE__ */ we(Xn, [["__scopeId", "data-v-8917a8a3"]]), Un = `<?xml version="1.0" encoding="UTF-8"?>
1241
+ }), Un = /* @__PURE__ */ Ie(Yn, [["__scopeId", "data-v-8917a8a3"]]), jn = `<?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
- `, jn = `<?xml version="1.0" encoding="UTF-8"?>
1246
+ `, qn = `<?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>`, Yn = `<?xml version="1.0" encoding="UTF-8"?>
1250
+ </svg>`, Jn = `<?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>`, qn = `<?xml version="1.0" encoding="UTF-8"?>
1254
+ </svg>`, Qn = `<?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 En = (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>`, Jn = `<?xml version="1.0" encoding="UTF-8"?>
1268
+ </svg>`, Kn = `<?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 En = (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>`, Qn = `<?xml version="1.0" encoding="UTF-8"?>
1282
+ </svg>`, _n = `<?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>`, Kn = {
1220
- add: Un,
1221
- delete: jn,
1222
- duplicate: Yn,
1223
- insertAbove: qn,
1224
- insertBelow: Jn,
1225
- move: Qn
1226
- }, _n = {
1285
+ </svg>`, eo = {
1286
+ add: jn,
1287
+ delete: qn,
1288
+ duplicate: Jn,
1289
+ insertAbove: Qn,
1290
+ insertBelow: Kn,
1291
+ move: _n
1292
+ }, to = {
1227
1293
  key: 0,
1228
1294
  class: "row-actions-dropdown"
1229
- }, eo = ["aria-expanded"], to = ["onClick"], no = ["innerHTML"], oo = { class: "action-label" }, lo = {
1295
+ }, no = ["aria-expanded"], oo = ["onClick"], lo = ["innerHTML"], ao = { class: "action-label" }, so = {
1230
1296
  key: 1,
1231
1297
  class: "row-actions-icons"
1232
- }, ao = ["title", "aria-label", "onClick"], so = ["innerHTML"], Fe = /* @__PURE__ */ ue({
1298
+ }, io = ["title", "aria-label", "onClick"], ro = ["innerHTML"], qe = /* @__PURE__ */ we({
1233
1299
  __name: "ARowActions",
1234
1300
  props: {
1235
1301
  rowIndex: {},
@@ -1239,27 +1305,27 @@ const En = (e) => {
1239
1305
  },
1240
1306
  emits: ["action"],
1241
1307
  setup(e, { emit: t }) {
1242
- const s = e, i = t, u = te("actionsCell"), l = te("toggleButton"), a = N(0), n = N(!1), c = N(!1), r = N({ top: 0, left: 0 }), v = {
1308
+ const s = e, i = t, u = re("actionsCell"), o = re("toggleButton"), a = z(0), n = z(!1), c = z(!1), r = z({ top: 0, left: 0 }), f = {
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
- }, g = E(() => {
1250
- const h = [], m = s.config.actions || {}, R = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
1251
- for (const T of R) {
1252
- const z = m[T];
1253
- if (z === !1 || z === void 0) continue;
1254
- let L = !0, b = v[T], D = Kn[T];
1255
- typeof z == "object" && (L = z.enabled !== !1, b = z.label || b, D = z.icon || D), L && h.push({ type: T, label: b, icon: D });
1315
+ }, g = T(() => {
1316
+ const h = [], m = s.config.actions || {}, I = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
1317
+ for (const E of I) {
1318
+ const H = m[E];
1319
+ if (H === !1 || H === void 0) continue;
1320
+ let A = !0, L = f[E], X = eo[E];
1321
+ typeof H == "object" && (A = H.enabled !== !1, L = H.label || L, X = H.icon || X), A && h.push({ type: E, label: L, icon: X });
1256
1322
  }
1257
1323
  return h;
1258
- }), $ = E(() => {
1324
+ }), $ = T(() => {
1259
1325
  if (s.config.forceDropdown) return !0;
1260
1326
  const h = s.config.dropdownThreshold ?? 150;
1261
1327
  return h === 0 ? !1 : a.value > 0 && a.value < h;
1262
- }), A = E(() => n.value ? c.value ? {
1328
+ }), V = T(() => n.value ? c.value ? {
1263
1329
  position: "fixed",
1264
1330
  bottom: `${window.innerHeight - r.value.top}px`,
1265
1331
  left: `${r.value.left}px`,
@@ -1269,16 +1335,16 @@ const En = (e) => {
1269
1335
  top: `${r.value.top}px`,
1270
1336
  left: `${r.value.left}px`
1271
1337
  } : {});
1272
- ze(u, (h) => {
1338
+ Je(u, (h) => {
1273
1339
  const m = h[0];
1274
1340
  m && (a.value = m.contentRect.width);
1275
1341
  });
1276
- const y = () => {
1342
+ const x = () => {
1277
1343
  n.value || p(), n.value = !n.value;
1278
1344
  }, p = () => {
1279
- if (!l.value) return;
1280
- const h = l.value.getBoundingClientRect(), m = window.innerHeight, R = g.value.length * 40 + 16, T = m - h.bottom, z = h.top;
1281
- c.value = T < R && z > R, c.value ? r.value = {
1345
+ if (!o.value) return;
1346
+ const h = o.value.getBoundingClientRect(), m = window.innerHeight, I = g.value.length * 40 + 16, E = m - h.bottom, H = h.top;
1347
+ c.value = E < I && H > I, c.value ? r.value = {
1282
1348
  top: h.top,
1283
1349
  left: h.left
1284
1350
  } : r.value = {
@@ -1286,68 +1352,68 @@ const En = (e) => {
1286
1352
  left: h.left
1287
1353
  };
1288
1354
  };
1289
- nt(u, () => {
1355
+ ot(u, () => {
1290
1356
  n.value = !1;
1291
1357
  });
1292
- const f = (h) => {
1358
+ const v = (h) => {
1293
1359
  n.value = !1;
1294
1360
  const m = s.config.actions?.[h];
1295
1361
  typeof m == "object" && m.handler && m.handler(s.rowIndex, s.store) === !1 || i("action", h, s.rowIndex);
1296
1362
  };
1297
- return (h, m) => (x(), k("td", {
1363
+ return (h, m) => (y(), C("td", {
1298
1364
  ref: "actionsCell",
1299
- class: Q(["atable-row-actions", { "sticky-column": e.position === "before-index", "dropdown-active": n.value }])
1365
+ class: oe(["atable-row-actions", { "sticky-column": e.position === "before-index", "dropdown-active": n.value }])
1300
1366
  }, [
1301
- $.value ? (x(), k("div", _n, [
1302
- P("button", {
1367
+ $.value ? (y(), C("div", to, [
1368
+ W("button", {
1303
1369
  ref: "toggleButton",
1304
1370
  type: "button",
1305
1371
  class: "row-actions-toggle",
1306
1372
  "aria-expanded": n.value,
1307
1373
  "aria-haspopup": "true",
1308
- onClick: ye(y, ["stop"])
1374
+ onClick: Se(x, ["stop"])
1309
1375
  }, [...m[0] || (m[0] = [
1310
- P("span", { class: "dropdown-icon" }, "⋮", -1)
1311
- ])], 8, eo),
1312
- oe(P("div", {
1313
- class: Q(["row-actions-menu", { "menu-flipped": c.value }]),
1314
- style: ce(A.value),
1376
+ W("span", { class: "dropdown-icon" }, "⋮", -1)
1377
+ ])], 8, no),
1378
+ de(W("div", {
1379
+ class: oe(["row-actions-menu", { "menu-flipped": c.value }]),
1380
+ style: me(V.value),
1315
1381
  role: "menu"
1316
1382
  }, [
1317
- (x(!0), k(ie, null, ve(g.value, (R) => (x(), k("button", {
1318
- key: R.type,
1383
+ (y(!0), C(he, null, ye(g.value, (I) => (y(), C("button", {
1384
+ key: I.type,
1319
1385
  type: "button",
1320
1386
  class: "row-action-menu-item",
1321
1387
  role: "menuitem",
1322
- onClick: ye((T) => f(R.type), ["stop"])
1388
+ onClick: Se((E) => v(I.type), ["stop"])
1323
1389
  }, [
1324
- P("span", {
1390
+ W("span", {
1325
1391
  class: "action-icon",
1326
- innerHTML: R.icon
1327
- }, null, 8, no),
1328
- P("span", oo, de(R.label), 1)
1329
- ], 8, to))), 128))
1392
+ innerHTML: I.icon
1393
+ }, null, 8, lo),
1394
+ W("span", ao, xe(I.label), 1)
1395
+ ], 8, oo))), 128))
1330
1396
  ], 6), [
1331
- [st, n.value]
1397
+ [it, n.value]
1332
1398
  ])
1333
- ])) : (x(), k("div", lo, [
1334
- (x(!0), k(ie, null, ve(g.value, (R) => (x(), k("button", {
1335
- key: R.type,
1399
+ ])) : (y(), C("div", so, [
1400
+ (y(!0), C(he, null, ye(g.value, (I) => (y(), C("button", {
1401
+ key: I.type,
1336
1402
  type: "button",
1337
1403
  class: "row-action-btn",
1338
- title: R.label,
1339
- "aria-label": R.label,
1340
- onClick: ye((T) => f(R.type), ["stop"])
1404
+ title: I.label,
1405
+ "aria-label": I.label,
1406
+ onClick: Se((E) => v(I.type), ["stop"])
1341
1407
  }, [
1342
- P("span", {
1408
+ W("span", {
1343
1409
  class: "action-icon",
1344
- innerHTML: R.icon
1345
- }, null, 8, so)
1346
- ], 8, ao))), 128))
1410
+ innerHTML: I.icon
1411
+ }, null, 8, ro)
1412
+ ], 8, io))), 128))
1347
1413
  ]))
1348
1414
  ], 2));
1349
1415
  }
1350
- }), io = ["tabindex"], ro = /* @__PURE__ */ ue({
1416
+ }), co = ["tabindex"], uo = /* @__PURE__ */ we({
1351
1417
  __name: "ARow",
1352
1418
  props: {
1353
1419
  rowIndex: {},
@@ -1357,97 +1423,97 @@ const En = (e) => {
1357
1423
  },
1358
1424
  emits: ["row:action"],
1359
1425
  setup(e, { emit: t }) {
1360
- const s = t, i = te("rowEl"), u = E(() => e.store.isRowVisible(e.rowIndex)), l = E(() => e.store.getRowExpandSymbol(e.rowIndex)), a = E(() => e.store.config.rowActions || { enabled: !1 }), n = E(() => a.value.enabled), c = E(() => a.value.position || "before-index"), r = (v, g) => {
1361
- s("row:action", v, g);
1426
+ const s = t, i = re("rowEl"), u = T(() => e.store.isRowVisible(e.rowIndex)), o = T(() => e.store.getRowExpandSymbol(e.rowIndex)), a = T(() => e.store.config.rowActions || { enabled: !1 }), n = T(() => a.value.enabled), c = T(() => a.value.position || "before-index"), r = (f, g) => {
1427
+ s("row:action", f, g);
1362
1428
  };
1363
1429
  if (e.addNavigation) {
1364
- let v = We;
1365
- typeof e.addNavigation == "object" && (v = {
1366
- ...v,
1430
+ let f = Qe;
1431
+ typeof e.addNavigation == "object" && (f = {
1432
+ ...f,
1367
1433
  ...e.addNavigation
1368
- }), dt([
1434
+ }), ft([
1369
1435
  {
1370
1436
  selectors: i,
1371
- handlers: v
1437
+ handlers: f
1372
1438
  }
1373
1439
  ]);
1374
1440
  }
1375
- return (v, g) => oe((x(), k("tr", {
1441
+ return (f, g) => de((y(), C("tr", {
1376
1442
  ref: "rowEl",
1377
1443
  tabindex: e.tabIndex,
1378
1444
  class: "atable-row"
1379
1445
  }, [
1380
- n.value && c.value === "before-index" ? (x(), se(Fe, {
1446
+ n.value && c.value === "before-index" ? (y(), ve(qe, {
1381
1447
  key: 0,
1382
1448
  "row-index": e.rowIndex,
1383
1449
  store: e.store,
1384
1450
  config: a.value,
1385
1451
  position: c.value,
1386
1452
  onAction: r
1387
- }, null, 8, ["row-index", "store", "config", "position"])) : U("", !0),
1388
- e.store.config.view !== "uncounted" ? le(v.$slots, "index", { key: 1 }, () => [
1389
- e.store.config.view === "list" ? (x(), k("td", {
1453
+ }, null, 8, ["row-index", "store", "config", "position"])) : K("", !0),
1454
+ e.store.config.view !== "uncounted" ? fe(f.$slots, "index", { key: 1 }, () => [
1455
+ e.store.config.view === "list" ? (y(), C("td", {
1390
1456
  key: 0,
1391
1457
  tabIndex: -1,
1392
- class: Q(["list-index", e.store.hasPinnedColumns ? "sticky-index" : ""])
1393
- }, de(e.rowIndex + 1), 3)) : e.store.isTreeView ? (x(), k("td", {
1458
+ class: oe(["list-index", e.store.hasPinnedColumns ? "sticky-index" : ""])
1459
+ }, xe(e.rowIndex + 1), 3)) : e.store.isTreeView ? (y(), C("td", {
1394
1460
  key: 1,
1395
1461
  tabIndex: -1,
1396
- class: Q(["tree-index", e.store.hasPinnedColumns ? "sticky-index" : ""]),
1462
+ class: oe(["tree-index", e.store.hasPinnedColumns ? "sticky-index" : ""]),
1397
1463
  onClick: g[0] || (g[0] = ($) => e.store.toggleRowExpand(e.rowIndex))
1398
- }, de(l.value), 3)) : U("", !0)
1399
- ], !0) : U("", !0),
1400
- n.value && c.value === "after-index" ? (x(), se(Fe, {
1464
+ }, xe(o.value), 3)) : K("", !0)
1465
+ ], !0) : K("", !0),
1466
+ n.value && c.value === "after-index" ? (y(), ve(qe, {
1401
1467
  key: 2,
1402
1468
  "row-index": e.rowIndex,
1403
1469
  store: e.store,
1404
1470
  config: a.value,
1405
1471
  position: c.value,
1406
1472
  onAction: r
1407
- }, null, 8, ["row-index", "store", "config", "position"])) : U("", !0),
1408
- le(v.$slots, "default", {}, void 0, !0),
1409
- n.value && c.value === "end" ? (x(), se(Fe, {
1473
+ }, null, 8, ["row-index", "store", "config", "position"])) : K("", !0),
1474
+ fe(f.$slots, "default", {}, void 0, !0),
1475
+ n.value && c.value === "end" ? (y(), ve(qe, {
1410
1476
  key: 3,
1411
1477
  "row-index": e.rowIndex,
1412
1478
  store: e.store,
1413
1479
  config: a.value,
1414
1480
  position: c.value,
1415
1481
  onAction: r
1416
- }, null, 8, ["row-index", "store", "config", "position"])) : U("", !0)
1417
- ], 8, io)), [
1418
- [st, u.value]
1482
+ }, null, 8, ["row-index", "store", "config", "position"])) : K("", !0)
1483
+ ], 8, co)), [
1484
+ [it, u.value]
1419
1485
  ]);
1420
1486
  }
1421
- }), Ht = /* @__PURE__ */ we(ro, [["__scopeId", "data-v-c35a3748"]]), tt = /* @__PURE__ */ new WeakMap(), co = {
1487
+ }), Lt = /* @__PURE__ */ Ie(uo, [["__scopeId", "data-v-c35a3748"]]), nt = /* @__PURE__ */ new WeakMap(), fo = {
1422
1488
  mounted(e, t) {
1423
1489
  const s = !t.modifiers.bubble;
1424
1490
  let i;
1425
- if (typeof t.value == "function") i = nt(e, t.value, { capture: s });
1491
+ if (typeof t.value == "function") i = ot(e, t.value, { capture: s });
1426
1492
  else {
1427
- const [u, l] = t.value;
1428
- i = nt(e, u, Object.assign({ capture: s }, l));
1493
+ const [u, o] = t.value;
1494
+ i = ot(e, u, Object.assign({ capture: s }, o));
1429
1495
  }
1430
- tt.set(e, i);
1496
+ nt.set(e, i);
1431
1497
  },
1432
1498
  unmounted(e) {
1433
- const t = tt.get(e);
1434
- t && typeof t == "function" ? t() : t?.stop(), tt.delete(e);
1499
+ const t = nt.get(e);
1500
+ t && typeof t == "function" ? t() : t?.stop(), nt.delete(e);
1435
1501
  }
1436
- }, uo = { mounted(e, t) {
1437
- typeof t.value == "function" ? ze(e, t.value) : ze(e, ...t.value);
1502
+ }, vo = { mounted(e, t) {
1503
+ typeof t.value == "function" ? Je(e, t.value) : Je(e, ...t.value);
1438
1504
  } };
1439
- function vo() {
1505
+ function ho() {
1440
1506
  let e = !1;
1441
- const t = ee(!1);
1507
+ const t = ie(!1);
1442
1508
  return (s, i) => {
1443
1509
  if (t.value = i.value, e) return;
1444
1510
  e = !0;
1445
- const u = $n(s, i.value);
1446
- ae(t, (l) => u.value = l);
1511
+ const u = Sn(s, i.value);
1512
+ ce(t, (o) => u.value = o);
1447
1513
  };
1448
1514
  }
1449
- vo();
1450
- const fo = { class: "gantt-connection-overlay" }, ho = {
1515
+ ho();
1516
+ const go = { class: "gantt-connection-overlay" }, mo = {
1451
1517
  class: "connection-svg",
1452
1518
  style: {
1453
1519
  position: "absolute",
@@ -1458,39 +1524,39 @@ const fo = { class: "gantt-connection-overlay" }, ho = {
1458
1524
  pointerEvents: "none",
1459
1525
  zIndex: 1
1460
1526
  }
1461
- }, mo = ["d", "stroke-width", "onDblclick"], go = ["id", "d", "stroke", "stroke-width", "onDblclick"], wo = 0.25, Pe = 16, po = /* @__PURE__ */ ue({
1527
+ }, wo = ["d", "stroke-width", "onDblclick"], po = ["id", "d", "stroke", "stroke-width", "onDblclick"], xo = 0.25, Ye = 16, yo = /* @__PURE__ */ we({
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 s = t, i = E(() => e.store.connectionPaths.filter((a) => {
1534
+ const s = t, i = T(() => e.store.connectionPaths.filter((a) => {
1469
1535
  const n = e.store.ganttBars.find((r) => r.id === a.from.barId), c = e.store.ganttBars.find((r) => r.id === a.to.barId);
1470
1536
  return n && c;
1471
1537
  })), u = (a) => {
1472
1538
  const n = e.store.connectionHandles.find(
1473
- (b) => b.barId === a.from.barId && b.side === a.from.side
1539
+ (L) => L.barId === a.from.barId && L.side === a.from.side
1474
1540
  ), c = e.store.connectionHandles.find(
1475
- (b) => b.barId === a.to.barId && b.side === a.to.side
1541
+ (L) => L.barId === a.to.barId && L.side === a.to.side
1476
1542
  );
1477
1543
  if (!n || !c) return "";
1478
- const r = n.position.x + Pe / 2, v = n.position.y + Pe / 2, g = c.position.x + Pe / 2, $ = c.position.y + Pe / 2, A = Math.abs(g - r), y = Math.max(A * wo, 50), p = r + (a.from.side === "left" ? -y : y), f = g + (a.to.side === "left" ? -y : y), h = { x: 0.5 * r + 0.5 * p, y: 0.5 * v + 0.5 * v }, m = { x: 0.5 * p + 0.5 * f, y: 0.5 * v + 0.5 * $ }, R = { x: 0.5 * f + 0.5 * g, y: 0.5 * $ + 0.5 * $ }, T = { x: 0.5 * h.x + 0.5 * m.x, y: 0.5 * h.y + 0.5 * m.y }, z = { x: 0.5 * m.x + 0.5 * R.x, y: 0.5 * m.y + 0.5 * R.y }, L = { x: 0.5 * T.x + 0.5 * z.x, y: 0.5 * T.y + 0.5 * z.y };
1479
- return `M ${r} ${v} Q ${p} ${v}, ${L.x} ${L.y} Q ${f} ${$}, ${g} ${$}`;
1480
- }, l = (a) => {
1544
+ const r = n.position.x + Ye / 2, f = n.position.y + Ye / 2, g = c.position.x + Ye / 2, $ = c.position.y + Ye / 2, V = Math.abs(g - r), x = Math.max(V * xo, 50), p = r + (a.from.side === "left" ? -x : x), v = g + (a.to.side === "left" ? -x : x), h = { x: 0.5 * r + 0.5 * p, y: 0.5 * f + 0.5 * f }, m = { x: 0.5 * p + 0.5 * v, y: 0.5 * f + 0.5 * $ }, I = { x: 0.5 * v + 0.5 * g, y: 0.5 * $ + 0.5 * $ }, E = { x: 0.5 * h.x + 0.5 * m.x, y: 0.5 * h.y + 0.5 * m.y }, H = { x: 0.5 * m.x + 0.5 * I.x, y: 0.5 * m.y + 0.5 * I.y }, A = { x: 0.5 * E.x + 0.5 * H.x, y: 0.5 * E.y + 0.5 * H.y };
1545
+ return `M ${r} ${f} Q ${p} ${f}, ${A.x} ${A.y} Q ${v} ${$}, ${g} ${$}`;
1546
+ }, o = (a) => {
1481
1547
  e.store.deleteConnection(a.id) && s("connection:delete", a);
1482
1548
  };
1483
- return (a, n) => (x(), k("div", fo, [
1484
- (x(), k("svg", ho, [
1485
- n[0] || (n[0] = P("defs", null, [
1486
- P("path", {
1549
+ return (a, n) => (y(), C("div", go, [
1550
+ (y(), C("svg", mo, [
1551
+ n[0] || (n[0] = W("defs", null, [
1552
+ W("path", {
1487
1553
  id: "arrowhead",
1488
1554
  d: "M 0 -7 L 20 0 L 0 7Z",
1489
1555
  stroke: "black",
1490
1556
  "stroke-width": "1",
1491
1557
  fill: "currentColor"
1492
1558
  }),
1493
- P("marker", {
1559
+ W("marker", {
1494
1560
  id: "arrowhead-marker",
1495
1561
  markerWidth: "10",
1496
1562
  markerHeight: "7",
@@ -1499,22 +1565,22 @@ const fo = { class: "gantt-connection-overlay" }, ho = {
1499
1565
  orient: "auto",
1500
1566
  markerUnits: "strokeWidth"
1501
1567
  }, [
1502
- P("polygon", {
1568
+ W("polygon", {
1503
1569
  points: "0 0, 10 3.5, 0 7",
1504
1570
  fill: "currentColor"
1505
1571
  })
1506
1572
  ])
1507
1573
  ], -1)),
1508
- (x(!0), k(ie, null, ve(i.value, (c) => (x(), k("path", {
1574
+ (y(!0), C(he, null, ye(i.value, (c) => (y(), C("path", {
1509
1575
  key: `${c.id}-hitbox`,
1510
1576
  d: u(c),
1511
1577
  stroke: "transparent",
1512
1578
  "stroke-width": (c.style?.width || 2) + 10,
1513
1579
  fill: "none",
1514
1580
  class: "connection-hitbox",
1515
- onDblclick: (r) => l(c)
1516
- }, null, 40, mo))), 128)),
1517
- (x(!0), k(ie, null, ve(i.value, (c) => (x(), k("path", {
1581
+ onDblclick: (r) => o(c)
1582
+ }, null, 40, wo))), 128)),
1583
+ (y(!0), C(he, null, ye(i.value, (c) => (y(), C("path", {
1518
1584
  id: c.id,
1519
1585
  key: c.id,
1520
1586
  d: u(c),
@@ -1523,18 +1589,18 @@ const fo = { class: "gantt-connection-overlay" }, ho = {
1523
1589
  fill: "none",
1524
1590
  "marker-mid": "url(#arrowhead-marker)",
1525
1591
  class: "connection-path animated-path",
1526
- onDblclick: (r) => l(c)
1527
- }, null, 40, go))), 128))
1592
+ onDblclick: (r) => o(c)
1593
+ }, null, 40, po))), 128))
1528
1594
  ]))
1529
1595
  ]));
1530
1596
  }
1531
- }), xo = /* @__PURE__ */ we(po, [["__scopeId", "data-v-71911260"]]), yo = { class: "column-filter" }, bo = {
1597
+ }), bo = /* @__PURE__ */ Ie(yo, [["__scopeId", "data-v-71911260"]]), Co = { class: "column-filter" }, ko = {
1532
1598
  key: 2,
1533
1599
  class: "checkbox-filter"
1534
- }, Co = ["value"], ko = {
1600
+ }, Mo = ["value"], Ro = {
1535
1601
  key: 5,
1536
1602
  class: "date-range-filter"
1537
- }, Mo = /* @__PURE__ */ ue({
1603
+ }, Io = /* @__PURE__ */ we({
1538
1604
  __name: "ATableColumnFilter",
1539
1605
  props: {
1540
1606
  column: {},
@@ -1542,20 +1608,20 @@ const fo = { class: "gantt-connection-overlay" }, ho = {
1542
1608
  store: {}
1543
1609
  },
1544
1610
  setup(e) {
1545
- const t = N(""), s = Xt({
1611
+ const t = z(""), s = Gt({
1546
1612
  startValue: "",
1547
1613
  endValue: ""
1548
1614
  }), i = (c) => {
1549
1615
  if (c.filterOptions) return c.filterOptions;
1550
1616
  const r = /* @__PURE__ */ new Set();
1551
- return e.store.rows.forEach((v) => {
1552
- const g = v[c.name];
1617
+ return e.store.rows.forEach((f) => {
1618
+ const g = f[c.name];
1553
1619
  g != null && g !== "" && r.add(g);
1554
- }), Array.from(r).map((v) => ({
1555
- value: v,
1556
- label: String(v)
1620
+ }), Array.from(r).map((f) => ({
1621
+ value: f,
1622
+ label: String(f)
1557
1623
  }));
1558
- }, u = E(() => !!(t.value || s.startValue || s.endValue)), l = (c) => {
1624
+ }, u = T(() => !!(t.value || s.startValue || s.endValue)), o = (c) => {
1559
1625
  !c && e.column.filterType !== "checkbox" ? (e.store.clearFilter(e.colIndex), t.value = "") : (t.value = c, e.store.setFilter(e.colIndex, { value: c }));
1560
1626
  }, a = (c, r) => {
1561
1627
  c === "start" ? s.startValue = r : s.endValue = r, !s.startValue && !s.endValue ? e.store.clearFilter(e.colIndex) : e.store.setFilter(e.colIndex, {
@@ -1566,238 +1632,238 @@ const fo = { class: "gantt-connection-overlay" }, ho = {
1566
1632
  }, n = () => {
1567
1633
  t.value = "", s.startValue = "", s.endValue = "", e.store.clearFilter(e.colIndex);
1568
1634
  };
1569
- return (c, r) => (x(), k("div", yo, [
1570
- (e.column.filterType || "text") === "text" ? oe((x(), k("input", {
1635
+ return (c, r) => (y(), C("div", Co, [
1636
+ (e.column.filterType || "text") === "text" ? de((y(), C("input", {
1571
1637
  key: 0,
1572
- "onUpdate:modelValue": r[0] || (r[0] = (v) => t.value = v),
1638
+ "onUpdate:modelValue": r[0] || (r[0] = (f) => t.value = f),
1573
1639
  type: "text",
1574
1640
  class: "filter-input",
1575
- onInput: r[1] || (r[1] = (v) => l(t.value))
1641
+ onInput: r[1] || (r[1] = (f) => o(t.value))
1576
1642
  }, null, 544)), [
1577
- [Ie, t.value]
1578
- ]) : e.column.filterType === "number" ? oe((x(), k("input", {
1643
+ [Ne, t.value]
1644
+ ]) : e.column.filterType === "number" ? de((y(), C("input", {
1579
1645
  key: 1,
1580
- "onUpdate:modelValue": r[2] || (r[2] = (v) => t.value = v),
1646
+ "onUpdate:modelValue": r[2] || (r[2] = (f) => t.value = f),
1581
1647
  type: "number",
1582
1648
  class: "filter-input",
1583
- onInput: r[3] || (r[3] = (v) => l(t.value))
1649
+ onInput: r[3] || (r[3] = (f) => o(t.value))
1584
1650
  }, null, 544)), [
1585
- [Ie, t.value]
1586
- ]) : e.column.filterType === "checkbox" ? (x(), k("label", bo, [
1587
- oe(P("input", {
1588
- "onUpdate:modelValue": r[4] || (r[4] = (v) => t.value = v),
1651
+ [Ne, t.value]
1652
+ ]) : e.column.filterType === "checkbox" ? (y(), C("label", ko, [
1653
+ de(W("input", {
1654
+ "onUpdate:modelValue": r[4] || (r[4] = (f) => t.value = f),
1589
1655
  type: "checkbox",
1590
1656
  class: "filter-checkbox",
1591
- onChange: r[5] || (r[5] = (v) => l(t.value))
1657
+ onChange: r[5] || (r[5] = (f) => o(t.value))
1592
1658
  }, null, 544), [
1593
- [Gt, t.value]
1659
+ [Yt, t.value]
1594
1660
  ]),
1595
- P("span", null, de(e.column.label), 1)
1596
- ])) : e.column.filterType === "select" ? oe((x(), k("select", {
1661
+ W("span", null, xe(e.column.label), 1)
1662
+ ])) : e.column.filterType === "select" ? de((y(), C("select", {
1597
1663
  key: 3,
1598
- "onUpdate:modelValue": r[6] || (r[6] = (v) => t.value = v),
1664
+ "onUpdate:modelValue": r[6] || (r[6] = (f) => t.value = f),
1599
1665
  class: "filter-select",
1600
- onChange: r[7] || (r[7] = (v) => l(t.value))
1666
+ onChange: r[7] || (r[7] = (f) => o(t.value))
1601
1667
  }, [
1602
- r[15] || (r[15] = P("option", { value: "" }, "All", -1)),
1603
- (x(!0), k(ie, null, ve(i(e.column), (v) => (x(), k("option", {
1604
- key: v.value || v,
1605
- value: v.value || v
1606
- }, de(v.label || v), 9, Co))), 128))
1668
+ r[15] || (r[15] = W("option", { value: "" }, "All", -1)),
1669
+ (y(!0), C(he, null, ye(i(e.column), (f) => (y(), C("option", {
1670
+ key: f.value || f,
1671
+ value: f.value || f
1672
+ }, xe(f.label || f), 9, Mo))), 128))
1607
1673
  ], 544)), [
1608
1674
  [Ut, t.value]
1609
- ]) : e.column.filterType === "date" ? oe((x(), k("input", {
1675
+ ]) : e.column.filterType === "date" ? de((y(), C("input", {
1610
1676
  key: 4,
1611
- "onUpdate:modelValue": r[8] || (r[8] = (v) => t.value = v),
1677
+ "onUpdate:modelValue": r[8] || (r[8] = (f) => t.value = f),
1612
1678
  type: "date",
1613
1679
  class: "filter-input",
1614
- onChange: r[9] || (r[9] = (v) => l(t.value))
1680
+ onChange: r[9] || (r[9] = (f) => o(t.value))
1615
1681
  }, null, 544)), [
1616
- [Ie, t.value]
1617
- ]) : e.column.filterType === "dateRange" ? (x(), k("div", ko, [
1618
- oe(P("input", {
1619
- "onUpdate:modelValue": r[10] || (r[10] = (v) => s.startValue = v),
1682
+ [Ne, t.value]
1683
+ ]) : e.column.filterType === "dateRange" ? (y(), C("div", Ro, [
1684
+ de(W("input", {
1685
+ "onUpdate:modelValue": r[10] || (r[10] = (f) => s.startValue = f),
1620
1686
  type: "date",
1621
1687
  class: "filter-input",
1622
- onChange: r[11] || (r[11] = (v) => a("start", s.startValue))
1688
+ onChange: r[11] || (r[11] = (f) => a("start", s.startValue))
1623
1689
  }, null, 544), [
1624
- [Ie, s.startValue]
1690
+ [Ne, s.startValue]
1625
1691
  ]),
1626
- r[16] || (r[16] = P("span", { class: "date-separator" }, "-", -1)),
1627
- oe(P("input", {
1628
- "onUpdate:modelValue": r[12] || (r[12] = (v) => s.endValue = v),
1692
+ r[16] || (r[16] = W("span", { class: "date-separator" }, "-", -1)),
1693
+ de(W("input", {
1694
+ "onUpdate:modelValue": r[12] || (r[12] = (f) => s.endValue = f),
1629
1695
  type: "date",
1630
1696
  class: "filter-input",
1631
- onChange: r[13] || (r[13] = (v) => a("end", s.endValue))
1697
+ onChange: r[13] || (r[13] = (f) => a("end", s.endValue))
1632
1698
  }, null, 544), [
1633
- [Ie, s.endValue]
1699
+ [Ne, s.endValue]
1634
1700
  ])
1635
- ])) : e.column.filterType === "component" && e.column.filterComponent ? (x(), se($e(e.column.filterComponent), {
1701
+ ])) : e.column.filterType === "component" && e.column.filterComponent ? (y(), ve(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
- "onUpdate:value": r[14] || (r[14] = (v) => l(v))
1642
- }, null, 40, ["value", "column", "colIndex", "store"])) : U("", !0),
1643
- u.value ? (x(), k("button", {
1707
+ "onUpdate:value": r[14] || (r[14] = (f) => o(f))
1708
+ }, null, 40, ["value", "column", "colIndex", "store"])) : K("", !0),
1709
+ u.value ? (y(), C("button", {
1644
1710
  key: 7,
1645
1711
  onClick: n,
1646
1712
  class: "clear-btn",
1647
1713
  title: "Clear"
1648
- }, "×")) : U("", !0)
1714
+ }, "×")) : K("", !0)
1649
1715
  ]));
1650
1716
  }
1651
- }), Ro = /* @__PURE__ */ we(Mo, [["__scopeId", "data-v-8487462d"]]), Io = { key: 0 }, $o = {
1717
+ }), $o = /* @__PURE__ */ Ie(Io, [["__scopeId", "data-v-8487462d"]]), Eo = { key: 0 }, So = {
1652
1718
  class: "atable-header-row",
1653
1719
  tabindex: "-1"
1654
- }, Eo = {
1720
+ }, Ao = {
1655
1721
  key: 2,
1656
1722
  class: "row-actions-header"
1657
- }, So = ["data-colindex", "onClick"], Ao = {
1723
+ }, To = ["data-colindex", "onClick"], Do = {
1658
1724
  key: 3,
1659
1725
  class: "row-actions-header"
1660
- }, To = {
1726
+ }, Ho = {
1661
1727
  key: 0,
1662
1728
  class: "atable-filters-row"
1663
- }, Do = {
1729
+ }, Lo = {
1664
1730
  key: 2,
1665
1731
  class: "row-actions-header"
1666
- }, Ho = {
1732
+ }, Oo = {
1667
1733
  key: 3,
1668
1734
  class: "row-actions-header"
1669
- }, Ot = /* @__PURE__ */ ue({
1735
+ }, Ot = /* @__PURE__ */ we({
1670
1736
  __name: "ATableHeader",
1671
1737
  props: {
1672
1738
  columns: {},
1673
1739
  store: {}
1674
1740
  },
1675
1741
  setup(e) {
1676
- const t = e, s = E(() => t.columns.filter((n) => n.filterable)), i = E(() => t.store.config.value?.rowActions?.enabled ?? !1), u = E(() => t.store.config.value?.rowActions?.position ?? "before-index"), l = (n) => t.store.sortByColumn(n), a = (n) => {
1742
+ const t = e, s = T(() => t.columns.filter((n) => n.filterable)), i = T(() => t.store.config.value?.rowActions?.enabled ?? !1), u = T(() => t.store.config.value?.rowActions?.position ?? "before-index"), o = (n) => t.store.sortByColumn(n), a = (n) => {
1677
1743
  for (const c of n) {
1678
1744
  if (c.borderBoxSize.length === 0) continue;
1679
- const v = c.borderBoxSize[0].inlineSize, g = Number(c.target.dataset.colindex), $ = t.store.columns[g]?.width;
1680
- typeof $ == "number" && $ !== v && t.store.resizeColumn(g, v);
1745
+ const f = c.borderBoxSize[0].inlineSize, g = Number(c.target.dataset.colindex), $ = t.store.columns[g]?.width;
1746
+ typeof $ == "number" && $ !== f && t.store.resizeColumn(g, f);
1681
1747
  }
1682
1748
  };
1683
- return (n, c) => t.columns.length ? (x(), k("thead", Io, [
1684
- P("tr", $o, [
1685
- i.value && u.value === "before-index" ? (x(), k("th", {
1749
+ return (n, c) => t.columns.length ? (y(), C("thead", Eo, [
1750
+ W("tr", So, [
1751
+ i.value && u.value === "before-index" ? (y(), C("th", {
1686
1752
  key: 0,
1687
- class: Q(["row-actions-header", { "sticky-column": u.value === "before-index" }])
1688
- }, null, 2)) : U("", !0),
1689
- t.store.zeroColumn ? (x(), k("th", {
1753
+ class: oe(["row-actions-header", { "sticky-column": u.value === "before-index" }])
1754
+ }, null, 2)) : K("", !0),
1755
+ t.store.zeroColumn ? (y(), C("th", {
1690
1756
  key: 1,
1691
1757
  id: "header-index",
1692
- class: Q([[
1758
+ class: oe([[
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)) : U("", !0),
1698
- i.value && u.value === "after-index" ? (x(), k("th", Eo)) : U("", !0),
1699
- (x(!0), k(ie, null, ve(t.columns, (r, v) => oe((x(), k("th", {
1763
+ }, null, 2)) : K("", !0),
1764
+ i.value && u.value === "after-index" ? (y(), C("th", Ao)) : K("", !0),
1765
+ (y(!0), C(he, null, ye(t.columns, (r, f) => de((y(), C("th", {
1700
1766
  key: r.name,
1701
- "data-colindex": v,
1767
+ "data-colindex": f,
1702
1768
  tabindex: "-1",
1703
- style: ce(t.store.getHeaderCellStyle(r)),
1704
- class: Q(`${r.pinned ? "sticky-column" : ""} ${r.sortable === !1 ? "" : "cursor-pointer"}`),
1705
- onClick: (g) => r.sortable !== !1 ? l(v) : void 0
1769
+ style: me(t.store.getHeaderCellStyle(r)),
1770
+ class: oe(`${r.pinned ? "sticky-column" : ""} ${r.sortable === !1 ? "" : "cursor-pointer"}`),
1771
+ onClick: (g) => r.sortable !== !1 ? o(f) : void 0
1706
1772
  }, [
1707
- le(n.$slots, "default", {}, () => [
1708
- jt(de(r.label || String.fromCharCode(v + 97).toUpperCase()), 1)
1773
+ fe(n.$slots, "default", {}, () => [
1774
+ jt(xe(r.label || String.fromCharCode(f + 97).toUpperCase()), 1)
1709
1775
  ])
1710
- ], 14, So)), [
1711
- [O(uo), a]
1776
+ ], 14, To)), [
1777
+ [Z(vo), a]
1712
1778
  ])), 128)),
1713
- i.value && u.value === "end" ? (x(), k("th", Ao)) : U("", !0)
1779
+ i.value && u.value === "end" ? (y(), C("th", Do)) : K("", !0)
1714
1780
  ]),
1715
- s.value.length > 0 ? (x(), k("tr", To, [
1716
- i.value && u.value === "before-index" ? (x(), k("th", {
1781
+ s.value.length > 0 ? (y(), C("tr", Ho, [
1782
+ i.value && u.value === "before-index" ? (y(), C("th", {
1717
1783
  key: 0,
1718
- class: Q(["row-actions-header", { "sticky-column": u.value === "before-index" }])
1719
- }, null, 2)) : U("", !0),
1720
- t.store.zeroColumn ? (x(), k("th", {
1784
+ class: oe(["row-actions-header", { "sticky-column": u.value === "before-index" }])
1785
+ }, null, 2)) : K("", !0),
1786
+ t.store.zeroColumn ? (y(), C("th", {
1721
1787
  key: 1,
1722
- class: Q([[
1788
+ class: oe([[
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)) : U("", !0),
1728
- i.value && u.value === "after-index" ? (x(), k("th", Do)) : U("", !0),
1729
- (x(!0), k(ie, null, ve(t.columns, (r, v) => (x(), k("th", {
1793
+ }, null, 2)) : K("", !0),
1794
+ i.value && u.value === "after-index" ? (y(), C("th", Lo)) : K("", !0),
1795
+ (y(!0), C(he, null, ye(t.columns, (r, f) => (y(), C("th", {
1730
1796
  key: `filter-${r.name}`,
1731
- class: Q(`${r.pinned ? "sticky-column" : ""}`),
1732
- style: ce(t.store.getHeaderCellStyle(r))
1797
+ class: oe(`${r.pinned ? "sticky-column" : ""}`),
1798
+ style: me(t.store.getHeaderCellStyle(r))
1733
1799
  }, [
1734
- r.filterable ? (x(), se(Ro, {
1800
+ r.filterable ? (y(), ve($o, {
1735
1801
  key: 0,
1736
1802
  column: r,
1737
- "col-index": v,
1803
+ "col-index": f,
1738
1804
  store: t.store
1739
- }, null, 8, ["column", "col-index", "store"])) : U("", !0)
1805
+ }, null, 8, ["column", "col-index", "store"])) : K("", !0)
1740
1806
  ], 6))), 128)),
1741
- i.value && u.value === "end" ? (x(), k("th", Ho)) : U("", !0)
1742
- ])) : U("", !0)
1743
- ])) : U("", !0);
1807
+ i.value && u.value === "end" ? (y(), C("th", Oo)) : K("", !0)
1808
+ ])) : K("", !0)
1809
+ ])) : K("", !0);
1744
1810
  }
1745
- }), Lt = /* @__PURE__ */ ue({
1811
+ }), Vt = /* @__PURE__ */ we({
1746
1812
  __name: "ATableModal",
1747
1813
  props: {
1748
1814
  store: {}
1749
1815
  },
1750
1816
  setup(e) {
1751
- const t = te("amodal"), { width: s, height: i } = pe(t), u = E(() => {
1817
+ const t = re("amodal"), { width: s, height: i } = $e(t), u = T(() => {
1752
1818
  if (!(e.store.modal.height && e.store.modal.width && e.store.modal.left && e.store.modal.bottom)) return;
1753
- const l = e.store.modal.cell?.closest("table");
1754
- if (!l) return {};
1755
- const a = l.offsetHeight || 0, n = l.offsetWidth || 0;
1819
+ const o = e.store.modal.cell?.closest("table");
1820
+ if (!o) return {};
1821
+ const a = o.offsetHeight || 0, n = o.offsetWidth || 0;
1756
1822
  let c = e.store.modal.cell?.offsetTop || 0;
1757
- const r = l.querySelector("thead")?.offsetHeight || 0;
1823
+ const r = o.querySelector("thead")?.offsetHeight || 0;
1758
1824
  c += r, c = c + i.value < a ? c : c - (i.value + e.store.modal.height);
1759
- let v = e.store.modal.cell?.offsetLeft || 0;
1760
- return v = v + s.value <= n ? v : v - (s.value - e.store.modal.width), {
1761
- left: `${v}px`,
1825
+ let f = e.store.modal.cell?.offsetLeft || 0;
1826
+ return f = f + s.value <= n ? f : f - (s.value - e.store.modal.width), {
1827
+ left: `${f}px`,
1762
1828
  top: `${c}px`
1763
1829
  };
1764
1830
  });
1765
- return (l, a) => (x(), k("div", {
1831
+ return (o, a) => (y(), C("div", {
1766
1832
  ref: "amodal",
1767
1833
  class: "amodal",
1768
1834
  tabindex: "-1",
1769
- style: ce(u.value),
1770
- onClick: a[0] || (a[0] = ye(() => {
1835
+ style: me(u.value),
1836
+ onClick: a[0] || (a[0] = Se(() => {
1771
1837
  }, ["stop"])),
1772
- onInput: a[1] || (a[1] = ye(() => {
1838
+ onInput: a[1] || (a[1] = Se(() => {
1773
1839
  }, ["stop"]))
1774
1840
  }, [
1775
- le(l.$slots, "default")
1841
+ fe(o.$slots, "default")
1776
1842
  ], 36));
1777
1843
  }
1778
- }), Oo = (e) => {
1779
- const t = e.id || Sn();
1780
- return Yt(`table-${t}`, () => {
1844
+ }), Vo = (e) => {
1845
+ const t = e.id || Tn();
1846
+ return qt(`table-${t}`, () => {
1781
1847
  const i = () => {
1782
- const o = [Object.assign({}, { rowModified: !1 })], d = /* @__PURE__ */ new Set();
1783
- for (let C = 0; C < l.value.length; C++) {
1784
- const M = l.value[C];
1848
+ const l = [Object.assign({}, { rowModified: !1 })], d = /* @__PURE__ */ new Set();
1849
+ for (let b = 0; b < o.value.length; b++) {
1850
+ const M = o.value[b];
1785
1851
  M.parent !== null && M.parent !== void 0 && d.add(M.parent);
1786
1852
  }
1787
- const w = (C) => l.value[C]?.gantt !== void 0, I = (C) => {
1788
- for (let M = 0; M < l.value.length; M++)
1789
- if (l.value[M].parent === C && (w(M) || I(M)))
1853
+ const w = (b) => o.value[b]?.gantt !== void 0, R = (b) => {
1854
+ for (let M = 0; M < o.value.length; M++)
1855
+ if (o.value[M].parent === b && (w(M) || R(M)))
1790
1856
  return !0;
1791
1857
  return !1;
1792
- }, H = (C) => {
1793
- const M = a.value, B = M.view === "tree" || M.view === "tree-gantt" ? M.defaultTreeExpansion : void 0;
1794
- if (!B) return !0;
1795
- switch (B) {
1858
+ }, P = (b) => {
1859
+ const M = a.value, N = M.view === "tree" || M.view === "tree-gantt" ? M.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 I(C);
1866
+ return R(b);
1801
1867
  case "leaf":
1802
1868
  return !0;
1803
1869
  // All nodes should be expanded
@@ -1805,343 +1871,343 @@ const fo = { class: "gantt-connection-overlay" }, ho = {
1805
1871
  return !0;
1806
1872
  }
1807
1873
  };
1808
- for (let C = 0; C < l.value.length; C++) {
1809
- const M = l.value[C], B = M.parent === null || M.parent === void 0, q = d.has(C);
1810
- o[C] = {
1811
- childrenOpen: H(C),
1874
+ for (let b = 0; b < o.value.length; b++) {
1875
+ const M = o.value[b], N = M.parent === null || M.parent === void 0, ee = d.has(b);
1876
+ l[b] = {
1877
+ childrenOpen: P(b),
1812
1878
  expanded: !1,
1813
1879
  indent: M.indent || 0,
1814
- isParent: q,
1815
- isRoot: B,
1880
+ isParent: ee,
1881
+ isRoot: N,
1816
1882
  rowModified: !1,
1817
- open: B,
1883
+ open: N,
1818
1884
  // This will be recalculated later for non-root nodes
1819
1885
  parent: M.parent
1820
1886
  };
1821
1887
  }
1822
- return o;
1823
- }, u = N(e.columns), l = N(e.rows), a = N(e.config || {}), n = N({}), c = N({}), r = E(() => {
1824
- const o = {};
1888
+ return l;
1889
+ }, u = z(e.columns), o = z(e.rows), a = z(e.config || {}), n = z({}), c = z({}), r = T(() => {
1890
+ const l = {};
1825
1891
  for (const [d, w] of u.value.entries())
1826
- for (const [I, H] of l.value.entries())
1827
- o[`${d}:${I}`] = H[w.name];
1828
- return o;
1829
- }), v = E({
1892
+ for (const [R, P] of o.value.entries())
1893
+ l[`${d}:${R}`] = P[w.name];
1894
+ return l;
1895
+ }), f = T({
1830
1896
  get: () => {
1831
- const o = i();
1832
- for (let d = 0; d < o.length; d++)
1833
- n.value[d] && (o[d].rowModified = n.value[d]), c.value[d] && (c.value[d].childrenOpen !== void 0 && (o[d].childrenOpen = c.value[d].childrenOpen), c.value[d].expanded !== void 0 && (o[d].expanded = c.value[d].expanded));
1834
- if (T.value) {
1835
- const d = (w, I) => {
1836
- const H = I[w];
1837
- if (H.isRoot || H.parent === null || H.parent === void 0)
1897
+ const l = i();
1898
+ for (let d = 0; d < l.length; d++)
1899
+ n.value[d] && (l[d].rowModified = n.value[d]), c.value[d] && (c.value[d].childrenOpen !== void 0 && (l[d].childrenOpen = c.value[d].childrenOpen), c.value[d].expanded !== void 0 && (l[d].expanded = c.value[d].expanded));
1900
+ if (E.value) {
1901
+ const d = (w, R) => {
1902
+ const P = R[w];
1903
+ if (P.isRoot || P.parent === null || P.parent === void 0)
1838
1904
  return !0;
1839
- const C = H.parent;
1840
- return C < 0 || C >= I.length ? !1 : (I[C].childrenOpen || !1) && d(C, I);
1905
+ const b = P.parent;
1906
+ return b < 0 || b >= R.length ? !1 : (R[b].childrenOpen || !1) && d(b, R);
1841
1907
  };
1842
- for (let w = 0; w < o.length; w++)
1843
- o[w].isRoot || (o[w].open = d(w, o));
1908
+ for (let w = 0; w < l.length; w++)
1909
+ l[w].isRoot || (l[w].open = d(w, l));
1844
1910
  }
1845
- return o;
1911
+ return l;
1846
1912
  },
1847
- set: (o) => {
1848
- JSON.stringify(o) !== JSON.stringify(v.value) && (v.value = o);
1913
+ set: (l) => {
1914
+ JSON.stringify(l) !== JSON.stringify(f.value) && (f.value = l);
1849
1915
  }
1850
- }), g = N(e.modal || { visible: !1 }), $ = N({}), A = N([]), y = N([]), p = N([]), f = N({
1916
+ }), g = z(e.modal || { visible: !1 }), $ = z({}), V = z([]), x = z([]), p = z([]), v = z({
1851
1917
  column: null,
1852
1918
  direction: null
1853
- }), h = N({}), m = E(() => u.value.some((o) => o.pinned)), R = E(() => a.value.view === "gantt" || a.value.view === "tree-gantt"), T = E(() => a.value.view === "tree" || a.value.view === "tree-gantt"), z = E(() => {
1854
- const o = a.value;
1855
- return o.view === "gantt" || o.view === "tree-gantt" ? o.dependencyGraph !== !1 : !0;
1856
- }), L = E(() => `${Math.ceil(l.value.length / 100 + 1)}ch`), b = E(
1919
+ }), h = z({}), m = T(() => u.value.some((l) => l.pinned)), I = T(() => a.value.view === "gantt" || a.value.view === "tree-gantt"), E = T(() => a.value.view === "tree" || a.value.view === "tree-gantt"), H = T(() => {
1920
+ const l = a.value;
1921
+ return l.view === "gantt" || l.view === "tree-gantt" ? l.dependencyGraph !== !1 : !0;
1922
+ }), A = T(() => `${Math.ceil(o.value.length / 100 + 1)}ch`), L = T(
1857
1923
  () => a.value.view ? ["list", "tree", "tree-gantt", "list-expansion"].includes(a.value.view) : !1
1858
- ), D = E(() => {
1859
- let o = l.value.map((d, w) => ({
1924
+ ), X = T(() => {
1925
+ let l = o.value.map((d, w) => ({
1860
1926
  ...d,
1861
1927
  originalIndex: w
1862
1928
  }));
1863
1929
  if (Object.entries(h.value).forEach(([d, w]) => {
1864
- const I = parseInt(d), H = u.value[I];
1865
- !H || !(w.value || w.startValue || w.endValue || H.filterType === "checkbox" && w.value !== void 0) || (o = o.filter((M) => {
1866
- const B = M[H.name];
1867
- return J(B, w, H);
1930
+ const R = parseInt(d), P = u.value[R];
1931
+ !P || !(w.value || w.startValue || w.endValue || P.filterType === "checkbox" && w.value !== void 0) || (l = l.filter((M) => {
1932
+ const N = M[P.name];
1933
+ return _(N, w, P);
1868
1934
  }));
1869
- }), f.value.column !== null && f.value.direction) {
1870
- const d = u.value[f.value.column], w = f.value.direction;
1871
- o.sort((I, H) => {
1872
- let C = I[d.name], M = H[d.name];
1873
- C == null && (C = ""), M == null && (M = "");
1874
- const B = Number(C), q = Number(M);
1875
- if (!isNaN(B) && !isNaN(q) && C !== "" && M !== "")
1876
- return w === "asc" ? B - q : q - B;
1935
+ }), v.value.column !== null && v.value.direction) {
1936
+ const d = u.value[v.value.column], w = v.value.direction;
1937
+ l.sort((R, P) => {
1938
+ let b = R[d.name], M = P[d.name];
1939
+ b == null && (b = ""), M == null && (M = "");
1940
+ const N = Number(b), ee = Number(M);
1941
+ if (!isNaN(N) && !isNaN(ee) && b !== "" && M !== "")
1942
+ return w === "asc" ? N - ee : ee - N;
1877
1943
  {
1878
- const ht = String(C).toLowerCase(), mt = String(M).toLowerCase();
1879
- return w === "asc" ? ht.localeCompare(mt) : mt.localeCompare(ht);
1944
+ const gt = String(b).toLowerCase(), mt = String(M).toLowerCase();
1945
+ return w === "asc" ? gt.localeCompare(mt) : mt.localeCompare(gt);
1880
1946
  }
1881
1947
  });
1882
1948
  }
1883
- return o;
1884
- }), j = (o, d) => r.value[`${o}:${d}`], X = (o, d, w) => {
1885
- const I = `${o}:${d}`, H = u.value[o];
1886
- r.value[I] !== w && (n.value[d] = !0), r.value[I] = w, l.value[d] = {
1887
- ...l.value[d],
1888
- [H.name]: w
1949
+ return l;
1950
+ }), le = (l, d) => r.value[`${l}:${d}`], j = (l, d, w) => {
1951
+ const R = `${l}:${d}`, P = u.value[l];
1952
+ r.value[R] !== w && (n.value[d] = !0), r.value[R] = w, o.value[d] = {
1953
+ ...o.value[d],
1954
+ [P.name]: w
1889
1955
  };
1890
- }, F = (o) => {
1891
- l.value = o;
1892
- }, ne = (o, d, w) => {
1893
- const I = `${o}:${d}`;
1894
- r.value[I] !== w && (n.value[d] = !0, $.value[I] = w);
1895
- }, me = (o) => {
1896
- const d = u.value.indexOf(o) === u.value.length - 1, w = a.value.fullWidth ? o.resizable && !d : o.resizable;
1956
+ }, q = (l) => {
1957
+ o.value = l;
1958
+ }, ue = (l, d, w) => {
1959
+ const R = `${l}:${d}`;
1960
+ r.value[R] !== w && (n.value[d] = !0, $.value[R] = w);
1961
+ }, ae = (l) => {
1962
+ const d = u.value.indexOf(l) === u.value.length - 1, w = a.value.fullWidth ? l.resizable && !d : l.resizable;
1897
1963
  return {
1898
- width: o.width || "40ch",
1899
- textAlign: o.align || "center",
1964
+ width: l.width || "40ch",
1965
+ textAlign: l.align || "center",
1900
1966
  ...w && {
1901
1967
  resize: "horizontal",
1902
1968
  overflow: "hidden",
1903
1969
  whiteSpace: "nowrap"
1904
1970
  }
1905
1971
  };
1906
- }, Ae = (o, d) => {
1907
- if (o < 0 || o >= u.value.length) return;
1908
- const I = Math.max(d, 40);
1909
- u.value[o] = {
1910
- ...u.value[o],
1911
- width: `${I}px`
1972
+ }, Ae = (l, d) => {
1973
+ if (l < 0 || l >= u.value.length) return;
1974
+ const R = Math.max(d, 40);
1975
+ u.value[l] = {
1976
+ ...u.value[l],
1977
+ width: `${R}px`
1912
1978
  };
1913
- }, Me = (o) => {
1914
- const d = l.value[o];
1915
- return R.value && d.gantt !== void 0;
1916
- }, Xe = (o) => !T.value || v.value[o].isRoot || v.value[o].open, Ge = (o) => !T.value && a.value.view !== "list-expansion" ? "" : T.value && (v.value[o].isRoot || v.value[o].isParent) ? v.value[o].childrenOpen ? "▼" : "►" : a.value.view === "list-expansion" ? v.value[o].expanded ? "▼" : "►" : "", Ue = (o) => {
1917
- if (T.value) {
1918
- const d = c.value[o] || {}, I = !(d.childrenOpen ?? v.value[o].childrenOpen);
1919
- c.value[o] = {
1979
+ }, ke = (l) => {
1980
+ const d = o.value[l];
1981
+ return I.value && d.gantt !== void 0;
1982
+ }, Oe = (l) => !E.value || f.value[l].isRoot || f.value[l].open, Ve = (l) => !E.value && a.value.view !== "list-expansion" ? "" : E.value && (f.value[l].isRoot || f.value[l].isParent) ? f.value[l].childrenOpen ? "▼" : "►" : a.value.view === "list-expansion" ? f.value[l].expanded ? "▼" : "►" : "", Be = (l) => {
1983
+ if (E.value) {
1984
+ const d = c.value[l] || {}, R = !(d.childrenOpen ?? f.value[l].childrenOpen);
1985
+ c.value[l] = {
1920
1986
  ...d,
1921
- childrenOpen: I
1922
- }, I || Te(o);
1987
+ childrenOpen: R
1988
+ }, R || Te(l);
1923
1989
  } else if (a.value.view === "list-expansion") {
1924
- const d = c.value[o] || {}, w = d.expanded ?? v.value[o].expanded;
1925
- c.value[o] = {
1990
+ const d = c.value[l] || {}, w = d.expanded ?? f.value[l].expanded;
1991
+ c.value[l] = {
1926
1992
  ...d,
1927
1993
  expanded: !w
1928
1994
  };
1929
1995
  }
1930
- }, Te = (o) => {
1931
- for (let d = 0; d < l.value.length; d++)
1932
- if (v.value[d].parent === o) {
1996
+ }, Te = (l) => {
1997
+ for (let d = 0; d < o.value.length; d++)
1998
+ if (f.value[d].parent === l) {
1933
1999
  const w = c.value[d] || {};
1934
2000
  c.value[d] = {
1935
2001
  ...w,
1936
2002
  childrenOpen: !1
1937
2003
  }, Te(d);
1938
2004
  }
1939
- }, je = (o, d) => {
1940
- const w = j(o, d);
1941
- return De(o, d, w);
1942
- }, De = (o, d, w) => {
1943
- const I = u.value[o], H = l.value[d], C = I.format;
1944
- return C ? typeof C == "function" ? C(w, { table: r.value, row: H, column: I }) : typeof C == "string" ? Function(`"use strict";return (${C})`)()(w, { table: r.value, row: H, column: I }) : w : w;
1945
- }, Ye = (o) => {
1946
- o.target instanceof Node && g.value.parent?.contains(o.target) || g.value.visible && (g.value.visible = !1);
1947
- }, qe = (o, d) => d && o === 0 && d > 0 ? `${d}ch` : "inherit", Je = (o) => {
1948
- const d = l.value[o.rowIndex]?.gantt;
1949
- d && (o.type === "resize" ? o.edge === "start" ? (d.startIndex = o.newStart, d.endIndex = o.end, d.colspan = d.endIndex - d.startIndex) : o.edge === "end" && (d.startIndex = o.start, d.endIndex = o.newEnd, d.colspan = d.endIndex - d.startIndex) : o.type === "bar" && (d.startIndex = o.newStart, d.endIndex = o.newEnd, d.colspan = d.endIndex - d.startIndex));
1950
- }, He = (o) => {
1951
- const d = A.value.findIndex((w) => w.id === o.id);
1952
- d >= 0 ? A.value[d] = o : A.value.push(o);
1953
- }, Oe = (o) => {
1954
- const d = A.value.findIndex((w) => w.id === o);
1955
- d >= 0 && A.value.splice(d, 1);
1956
- }, Le = (o) => {
1957
- const d = y.value.findIndex((w) => w.id === o.id);
1958
- d >= 0 ? y.value[d] = o : y.value.push(o);
1959
- }, Ve = (o) => {
1960
- const d = y.value.findIndex((w) => w.id === o);
1961
- d >= 0 && y.value.splice(d, 1);
1962
- }, S = (o, d, w) => {
1963
- const I = y.value.find((M) => M.id === o), H = y.value.find((M) => M.id === d);
1964
- if (!I || !H)
2005
+ }, Pe = (l, d) => {
2006
+ const w = le(l, d);
2007
+ return k(l, d, w);
2008
+ }, k = (l, d, w) => {
2009
+ const R = u.value[l], P = o.value[d], b = R.format;
2010
+ return b ? typeof b == "function" ? b(w, { table: r.value, row: P, column: R }) : typeof b == "string" ? Function(`"use strict";return (${b})`)()(w, { table: r.value, row: P, column: R }) : w : w;
2011
+ }, O = (l) => {
2012
+ l.target instanceof Node && g.value.parent?.contains(l.target) || g.value.visible && (g.value.visible = !1);
2013
+ }, F = (l, d) => d && l === 0 && d > 0 ? `${d}ch` : "inherit", J = (l) => {
2014
+ const d = o.value[l.rowIndex]?.gantt;
2015
+ d && (l.type === "resize" ? l.edge === "start" ? (d.startIndex = l.newStart, d.endIndex = l.end, d.colspan = d.endIndex - d.startIndex) : l.edge === "end" && (d.startIndex = l.start, d.endIndex = l.newEnd, d.colspan = d.endIndex - d.startIndex) : l.type === "bar" && (d.startIndex = l.newStart, d.endIndex = l.newEnd, d.colspan = d.endIndex - d.startIndex));
2016
+ }, G = (l) => {
2017
+ const d = V.value.findIndex((w) => w.id === l.id);
2018
+ d >= 0 ? V.value[d] = l : V.value.push(l);
2019
+ }, te = (l) => {
2020
+ const d = V.value.findIndex((w) => w.id === l);
2021
+ d >= 0 && V.value.splice(d, 1);
2022
+ }, pe = (l) => {
2023
+ const d = x.value.findIndex((w) => w.id === l.id);
2024
+ d >= 0 ? x.value[d] = l : x.value.push(l);
2025
+ }, Me = (l) => {
2026
+ const d = x.value.findIndex((w) => w.id === l);
2027
+ d >= 0 && x.value.splice(d, 1);
2028
+ }, S = (l, d, w) => {
2029
+ const R = x.value.find((M) => M.id === l), P = x.value.find((M) => M.id === d);
2030
+ if (!R || !P)
1965
2031
  return console.warn("Cannot create connection: handle not found"), null;
1966
- const C = {
1967
- id: `connection-${o}-${d}`,
2032
+ const b = {
2033
+ id: `connection-${l}-${d}`,
1968
2034
  from: {
1969
- barId: I.barId,
1970
- side: I.side
2035
+ barId: R.barId,
2036
+ side: R.side
1971
2037
  },
1972
2038
  to: {
1973
- barId: H.barId,
1974
- side: H.side
2039
+ barId: P.barId,
2040
+ side: P.side
1975
2041
  },
1976
2042
  style: w?.style,
1977
2043
  label: w?.label
1978
2044
  };
1979
- return p.value.push(C), C;
1980
- }, V = (o) => {
1981
- const d = p.value.findIndex((w) => w.id === o);
2045
+ return p.value.push(b), b;
2046
+ }, B = (l) => {
2047
+ const d = p.value.findIndex((w) => w.id === l);
1982
2048
  return d >= 0 ? (p.value.splice(d, 1), !0) : !1;
1983
- }, G = (o) => p.value.filter((d) => d.from.barId === o || d.to.barId === o), W = (o) => y.value.filter((d) => d.barId === o), Y = (o) => {
1984
- if (u.value[o].sortable === !1) return;
2049
+ }, U = (l) => p.value.filter((d) => d.from.barId === l || d.to.barId === l), Y = (l) => x.value.filter((d) => d.barId === l), Q = (l) => {
2050
+ if (u.value[l].sortable === !1) return;
1985
2051
  let w;
1986
- f.value.column === o && f.value.direction === "asc" ? w = "desc" : w = "asc", f.value.column = o, f.value.direction = w;
1987
- }, J = (o, d, w) => {
1988
- const I = w.filterType || "text", H = d.value;
1989
- if (!H && I !== "dateRange" && I !== "checkbox") return !0;
1990
- switch (I) {
2052
+ v.value.column === l && v.value.direction === "asc" ? w = "desc" : w = "asc", v.value.column = l, v.value.direction = w;
2053
+ }, _ = (l, d, w) => {
2054
+ const R = w.filterType || "text", P = d.value;
2055
+ if (!P && R !== "dateRange" && R !== "checkbox") return !0;
2056
+ switch (R) {
1991
2057
  case "text": {
1992
- let C = "";
1993
- return typeof o == "object" && o !== null ? C = Object.values(o).join(" ") : C = String(o || ""), C.toLowerCase().includes(String(H).toLowerCase());
2058
+ let b = "";
2059
+ return typeof l == "object" && l !== null ? b = Object.values(l).join(" ") : b = String(l || ""), b.toLowerCase().includes(String(P).toLowerCase());
1994
2060
  }
1995
2061
  case "number": {
1996
- const C = Number(o), M = Number(H);
1997
- return !isNaN(C) && !isNaN(M) && C === M;
2062
+ const b = Number(l), M = Number(P);
2063
+ return !isNaN(b) && !isNaN(M) && b === M;
1998
2064
  }
1999
2065
  case "select":
2000
- return o === H;
2066
+ return l === P;
2001
2067
  case "checkbox":
2002
- return H === !0 ? !!o : !0;
2068
+ return P === !0 ? !!l : !0;
2003
2069
  case "date": {
2004
- let C;
2005
- if (typeof o == "number") {
2006
- const B = new Date(o), q = (/* @__PURE__ */ new Date()).getFullYear();
2007
- C = new Date(q, B.getMonth(), B.getDate());
2070
+ let b;
2071
+ if (typeof l == "number") {
2072
+ const N = new Date(l), ee = (/* @__PURE__ */ new Date()).getFullYear();
2073
+ b = new Date(ee, N.getMonth(), N.getDate());
2008
2074
  } else
2009
- C = new Date(String(o));
2010
- const M = new Date(String(H));
2011
- return C.toDateString() === M.toDateString();
2075
+ b = new Date(String(l));
2076
+ const M = new Date(String(P));
2077
+ return b.toDateString() === M.toDateString();
2012
2078
  }
2013
2079
  case "dateRange": {
2014
- const C = d.startValue, M = d.endValue;
2015
- if (!C && !M) return !0;
2016
- let B;
2017
- if (typeof o == "number") {
2018
- const q = new Date(o), ft = (/* @__PURE__ */ new Date()).getFullYear();
2019
- B = new Date(ft, q.getMonth(), q.getDate());
2080
+ const b = d.startValue, M = d.endValue;
2081
+ if (!b && !M) return !0;
2082
+ let N;
2083
+ if (typeof l == "number") {
2084
+ const ee = new Date(l), ht = (/* @__PURE__ */ new Date()).getFullYear();
2085
+ N = new Date(ht, ee.getMonth(), ee.getDate());
2020
2086
  } else
2021
- B = new Date(String(o));
2022
- return !(C && B < new Date(String(C)) || M && B > new Date(String(M)));
2087
+ N = new Date(String(l));
2088
+ return !(b && N < new Date(String(b)) || M && N > new Date(String(M)));
2023
2089
  }
2024
2090
  default:
2025
2091
  return !0;
2026
2092
  }
2027
- }, K = (o, d) => {
2028
- !d.value && !d.startValue && !d.endValue ? delete h.value[o] : h.value[o] = d;
2029
- }, _ = (o) => {
2030
- delete h.value[o];
2031
- }, Re = (o, d = "end") => {
2093
+ }, ne = (l, d) => {
2094
+ !d.value && !d.startValue && !d.endValue ? delete h.value[l] : h.value[l] = d;
2095
+ }, se = (l) => {
2096
+ delete h.value[l];
2097
+ }, Ze = (l, d = "end") => {
2032
2098
  const w = {};
2033
- for (const H of u.value)
2034
- w[H.name] = "";
2035
- o && Object.assign(w, o);
2036
- let I;
2037
- return d === "start" ? (I = 0, l.value.unshift(w)) : d === "end" ? (I = l.value.length, l.value.push(w)) : (I = Math.max(0, Math.min(d, l.value.length)), l.value.splice(I, 0, w)), I;
2099
+ for (const P of u.value)
2100
+ w[P.name] = "";
2101
+ l && Object.assign(w, l);
2102
+ let R;
2103
+ return d === "start" ? (R = 0, o.value.unshift(w)) : d === "end" ? (R = o.value.length, o.value.push(w)) : (R = Math.max(0, Math.min(d, o.value.length)), o.value.splice(R, 0, w)), R;
2038
2104
  };
2039
2105
  return {
2040
2106
  // state
2041
2107
  columns: u,
2042
2108
  config: a,
2043
- connectionHandles: y,
2109
+ connectionHandles: x,
2044
2110
  connectionPaths: p,
2045
- display: v,
2111
+ display: f,
2046
2112
  filterState: h,
2047
- ganttBars: A,
2113
+ ganttBars: V,
2048
2114
  modal: g,
2049
- rows: l,
2050
- sortState: f,
2115
+ rows: o,
2116
+ sortState: v,
2051
2117
  table: r,
2052
2118
  updates: $,
2053
2119
  // getters
2054
- filteredRows: D,
2120
+ filteredRows: X,
2055
2121
  hasPinnedColumns: m,
2056
- isGanttView: R,
2057
- isTreeView: T,
2058
- isDependencyGraphEnabled: z,
2059
- numberedRowWidth: L,
2060
- zeroColumn: b,
2122
+ isGanttView: I,
2123
+ isTreeView: E,
2124
+ isDependencyGraphEnabled: H,
2125
+ numberedRowWidth: A,
2126
+ zeroColumn: L,
2061
2127
  // actions
2062
- addRow: Re,
2063
- clearFilter: _,
2064
- closeModal: Ye,
2128
+ addRow: Ze,
2129
+ clearFilter: se,
2130
+ closeModal: O,
2065
2131
  createConnection: S,
2066
- deleteConnection: V,
2067
- deleteRow: (o) => {
2068
- if (o < 0 || o >= l.value.length)
2132
+ deleteConnection: B,
2133
+ deleteRow: (l) => {
2134
+ if (l < 0 || l >= o.value.length)
2069
2135
  return null;
2070
- const [d] = l.value.splice(o, 1);
2071
- delete n.value[o], delete c.value[o];
2072
- const w = {}, I = {};
2073
- for (const [H, C] of Object.entries(n.value)) {
2074
- const M = parseInt(H);
2075
- M > o ? w[M - 1] = C : w[M] = C;
2136
+ const [d] = o.value.splice(l, 1);
2137
+ delete n.value[l], delete c.value[l];
2138
+ const w = {}, R = {};
2139
+ for (const [P, b] of Object.entries(n.value)) {
2140
+ const M = parseInt(P);
2141
+ M > l ? w[M - 1] = b : w[M] = b;
2076
2142
  }
2077
- for (const [H, C] of Object.entries(c.value)) {
2078
- const M = parseInt(H);
2079
- M > o ? I[M - 1] = C : I[M] = C;
2143
+ for (const [P, b] of Object.entries(c.value)) {
2144
+ const M = parseInt(P);
2145
+ M > l ? R[M - 1] = b : R[M] = b;
2080
2146
  }
2081
- return n.value = w, c.value = I, d;
2147
+ return n.value = w, c.value = R, d;
2082
2148
  },
2083
- duplicateRow: (o) => {
2084
- if (o < 0 || o >= l.value.length)
2149
+ duplicateRow: (l) => {
2150
+ if (l < 0 || l >= o.value.length)
2085
2151
  return -1;
2086
- const d = l.value[o], w = JSON.parse(JSON.stringify(d)), I = o + 1;
2087
- return l.value.splice(I, 0, w), I;
2152
+ const d = o.value[l], w = JSON.parse(JSON.stringify(d)), R = l + 1;
2153
+ return o.value.splice(R, 0, w), R;
2088
2154
  },
2089
- getCellData: j,
2090
- getCellDisplayValue: je,
2091
- getConnectionsForBar: G,
2092
- getFormattedValue: De,
2093
- getHandlesForBar: W,
2094
- getHeaderCellStyle: me,
2095
- getIndent: qe,
2096
- getRowExpandSymbol: Ge,
2097
- insertRowAbove: (o, d) => {
2098
- const w = Math.max(0, o);
2099
- return Re(d, w);
2155
+ getCellData: le,
2156
+ getCellDisplayValue: Pe,
2157
+ getConnectionsForBar: U,
2158
+ getFormattedValue: k,
2159
+ getHandlesForBar: Y,
2160
+ getHeaderCellStyle: ae,
2161
+ getIndent: F,
2162
+ getRowExpandSymbol: Ve,
2163
+ insertRowAbove: (l, d) => {
2164
+ const w = Math.max(0, l);
2165
+ return Ze(d, w);
2100
2166
  },
2101
- insertRowBelow: (o, d) => {
2102
- const w = Math.min(o + 1, l.value.length);
2103
- return Re(d, w);
2167
+ insertRowBelow: (l, d) => {
2168
+ const w = Math.min(l + 1, o.value.length);
2169
+ return Ze(d, w);
2104
2170
  },
2105
- isRowGantt: Me,
2106
- isRowVisible: Xe,
2107
- moveRow: (o, d) => {
2108
- if (o < 0 || o >= l.value.length || d < 0 || d >= l.value.length || o === d)
2171
+ isRowGantt: ke,
2172
+ isRowVisible: Oe,
2173
+ moveRow: (l, d) => {
2174
+ if (l < 0 || l >= o.value.length || d < 0 || d >= o.value.length || l === d)
2109
2175
  return !1;
2110
- const [w] = l.value.splice(o, 1);
2111
- l.value.splice(d, 0, w);
2112
- const I = {}, H = {};
2113
- for (const [C, M] of Object.entries(n.value)) {
2114
- const B = parseInt(C);
2115
- let q = B;
2116
- B === o ? q = d : o < d ? B > o && B <= d && (q = B - 1) : B >= d && B < o && (q = B + 1), I[q] = M;
2176
+ const [w] = o.value.splice(l, 1);
2177
+ o.value.splice(d, 0, w);
2178
+ const R = {}, P = {};
2179
+ for (const [b, M] of Object.entries(n.value)) {
2180
+ const N = parseInt(b);
2181
+ let ee = N;
2182
+ N === l ? ee = d : l < d ? N > l && N <= d && (ee = N - 1) : N >= d && N < l && (ee = N + 1), R[ee] = M;
2117
2183
  }
2118
- for (const [C, M] of Object.entries(c.value)) {
2119
- const B = parseInt(C);
2120
- let q = B;
2121
- B === o ? q = d : o < d ? B > o && B <= d && (q = B - 1) : B >= d && B < o && (q = B + 1), H[q] = M;
2184
+ for (const [b, M] of Object.entries(c.value)) {
2185
+ const N = parseInt(b);
2186
+ let ee = N;
2187
+ N === l ? ee = d : l < d ? N > l && N <= d && (ee = N - 1) : N >= d && N < l && (ee = N + 1), P[ee] = M;
2122
2188
  }
2123
- return n.value = I, c.value = H, !0;
2189
+ return n.value = R, c.value = P, !0;
2124
2190
  },
2125
- registerConnectionHandle: Le,
2126
- registerGanttBar: He,
2191
+ registerConnectionHandle: pe,
2192
+ registerGanttBar: G,
2127
2193
  resizeColumn: Ae,
2128
- setCellData: X,
2129
- setCellText: ne,
2130
- setFilter: K,
2131
- sortByColumn: Y,
2132
- toggleRowExpand: Ue,
2133
- unregisterConnectionHandle: Ve,
2134
- unregisterGanttBar: Oe,
2135
- updateGanttBar: Je,
2136
- updateRows: F
2194
+ setCellData: j,
2195
+ setCellText: ue,
2196
+ setFilter: ne,
2197
+ sortByColumn: Q,
2198
+ toggleRowExpand: Be,
2199
+ unregisterConnectionHandle: Me,
2200
+ unregisterGanttBar: te,
2201
+ updateGanttBar: J,
2202
+ updateRows: q
2137
2203
  };
2138
2204
  })();
2139
- }, Lo = {
2205
+ }, Bo = {
2140
2206
  class: "atable-container",
2141
2207
  style: { position: "relative" }
2142
- }, Vo = /* @__PURE__ */ ue({
2208
+ }, Po = /* @__PURE__ */ we({
2143
2209
  __name: "ATable",
2144
- props: /* @__PURE__ */ gt({
2210
+ props: /* @__PURE__ */ yt({
2145
2211
  id: { default: "" },
2146
2212
  config: { default: () => new Object() }
2147
2213
  }, {
@@ -2150,114 +2216,114 @@ const fo = { class: "gantt-connection-overlay" }, ho = {
2150
2216
  columns: { required: !0 },
2151
2217
  columnsModifiers: {}
2152
2218
  }),
2153
- emits: /* @__PURE__ */ gt(["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__ */ yt(["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: s }) {
2155
- const i = wt(e, "rows"), u = wt(e, "columns"), l = s, a = te("table"), n = Oo({ columns: u.value, rows: i.value, id: e.id, config: e.config });
2156
- n.$onAction(({ name: y, store: p, args: f, after: h }) => {
2157
- if (y === "setCellData" || y === "setCellText") {
2158
- const [m, R, T] = f, z = p.getCellData(m, R);
2221
+ const i = wt(e, "rows"), u = wt(e, "columns"), o = s, a = re("table"), n = Vo({ columns: u.value, rows: i.value, id: e.id, config: e.config });
2222
+ n.$onAction(({ name: x, store: p, args: v, after: h }) => {
2223
+ if (x === "setCellData" || x === "setCellText") {
2224
+ const [m, I, E] = v, H = p.getCellData(m, I);
2159
2225
  h(() => {
2160
- i.value = [...p.rows], l("cellUpdate", { colIndex: m, rowIndex: R, newValue: T, oldValue: z });
2226
+ i.value = [...p.rows], o("cellUpdate", { colIndex: m, rowIndex: I, newValue: E, oldValue: H });
2161
2227
  });
2162
- } else if (y === "updateGanttBar") {
2163
- const [m] = f;
2164
- let R = !1;
2165
- m.type === "resize" ? R = m.oldColspan !== m.newColspan : m.type === "bar" && (R = m.oldStart !== m.newStart || m.oldEnd !== m.newEnd), R && h(() => {
2166
- l("gantt:drag", m);
2228
+ } else if (x === "updateGanttBar") {
2229
+ const [m] = v;
2230
+ let I = !1;
2231
+ m.type === "resize" ? I = m.oldColspan !== m.newColspan : m.type === "bar" && (I = m.oldStart !== m.newStart || m.oldEnd !== m.newEnd), I && h(() => {
2232
+ o("gantt:drag", m);
2167
2233
  });
2168
- } else y === "resizeColumn" && h(() => {
2169
- u.value = [...p.columns], l("columns:update", [...p.columns]);
2234
+ } else x === "resizeColumn" && h(() => {
2235
+ u.value = [...p.columns], o("columns:update", [...p.columns]);
2170
2236
  });
2171
- }), ae(
2237
+ }), ce(
2172
2238
  () => i.value,
2173
- (y) => {
2174
- JSON.stringify(y) !== JSON.stringify(n.rows) && (n.rows = [...y]);
2239
+ (x) => {
2240
+ JSON.stringify(x) !== JSON.stringify(n.rows) && (n.rows = [...x]);
2175
2241
  },
2176
2242
  { deep: !0 }
2177
- ), ae(
2243
+ ), ce(
2178
2244
  u,
2179
- (y) => {
2180
- JSON.stringify(y) !== JSON.stringify(n.columns) && (n.columns = [...y], l("columns:update", [...y]));
2245
+ (x) => {
2246
+ JSON.stringify(x) !== JSON.stringify(n.columns) && (n.columns = [...x], o("columns:update", [...x]));
2181
2247
  },
2182
2248
  { deep: !0 }
2183
- ), Ce(() => {
2184
- u.value.some((y) => y.pinned) && (r(), n.isTreeView && Dt(a, r, { childList: !0, subtree: !0 }));
2249
+ ), He(() => {
2250
+ u.value.some((x) => x.pinned) && (r(), n.isTreeView && Ht(a, r, { childList: !0, subtree: !0 }));
2185
2251
  });
2186
- const c = E(() => n.columns.filter((y) => y.pinned).length), r = () => {
2187
- const y = a.value, p = y?.rows[0], f = y?.rows[1], h = p ? Array.from(p.cells) : [];
2188
- for (const [m, R] of h.entries()) {
2189
- const T = f?.cells[m];
2190
- T && (R.style.width = `${T.offsetWidth}px`);
2252
+ const c = T(() => n.columns.filter((x) => x.pinned).length), r = () => {
2253
+ const x = a.value, p = x?.rows[0], v = x?.rows[1], h = p ? Array.from(p.cells) : [];
2254
+ for (const [m, I] of h.entries()) {
2255
+ const E = v?.cells[m];
2256
+ E && (I.style.width = `${E.offsetWidth}px`);
2191
2257
  }
2192
- for (const m of y?.rows || []) {
2193
- let R = 0;
2194
- const T = [];
2195
- for (const z of m.cells)
2196
- (z.classList.contains("sticky-column") || z.classList.contains("sticky-index")) && (z.style.left = `${R}px`, R += z.offsetWidth, T.push(z));
2197
- T.length > 0 && T[T.length - 1].classList.add("sticky-column-edge");
2258
+ for (const m of x?.rows || []) {
2259
+ let I = 0;
2260
+ const E = [];
2261
+ for (const H of m.cells)
2262
+ (H.classList.contains("sticky-column") || H.classList.contains("sticky-index")) && (H.style.left = `${I}px`, I += H.offsetWidth, E.push(H));
2263
+ E.length > 0 && E[E.length - 1].classList.add("sticky-column-edge");
2198
2264
  }
2199
2265
  };
2200
- window.addEventListener("keydown", (y) => {
2201
- if (y.key === "Escape" && n.modal.visible) {
2266
+ window.addEventListener("keydown", (x) => {
2267
+ if (x.key === "Escape" && n.modal.visible) {
2202
2268
  n.modal.visible = !1;
2203
2269
  const p = n.modal.parent;
2204
- p && lt().then(() => {
2270
+ p && at().then(() => {
2205
2271
  p.focus();
2206
2272
  });
2207
2273
  }
2208
2274
  });
2209
- const v = (y) => {
2210
- if (!y.gantt || c.value === 0)
2275
+ const f = (x) => {
2276
+ if (!x.gantt || c.value === 0)
2211
2277
  return n.columns;
2212
2278
  const p = [];
2213
- for (let f = 0; f < c.value; f++) {
2214
- const h = { ...n.columns[f] };
2215
- h.originalIndex = f, p.push(h);
2279
+ for (let v = 0; v < c.value; v++) {
2280
+ const h = { ...n.columns[v] };
2281
+ h.originalIndex = v, p.push(h);
2216
2282
  }
2217
2283
  return p.push({
2218
2284
  ...n.columns[c.value],
2219
2285
  isGantt: !0,
2220
- colspan: y.gantt?.colspan || n.columns.length - c.value,
2286
+ colspan: x.gantt?.colspan || n.columns.length - c.value,
2221
2287
  originalIndex: c.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
  }), p;
2225
- }, g = (y) => {
2226
- l("connection:event", { type: "create", connection: y });
2227
- }, $ = (y) => {
2228
- l("connection:event", { type: "delete", connection: y });
2229
- }, A = (y, p) => {
2230
- switch (y) {
2291
+ }, g = (x) => {
2292
+ o("connection:event", { type: "create", connection: x });
2293
+ }, $ = (x) => {
2294
+ o("connection:event", { type: "delete", connection: x });
2295
+ }, V = (x, p) => {
2296
+ switch (x) {
2231
2297
  case "add": {
2232
- const f = n.addRow({}, p + 1), h = n.rows[f];
2233
- i.value = [...n.rows], l("row:add", { rowIndex: f, row: h });
2298
+ const v = n.addRow({}, p + 1), h = n.rows[v];
2299
+ i.value = [...n.rows], o("row:add", { rowIndex: v, row: h });
2234
2300
  break;
2235
2301
  }
2236
2302
  case "delete": {
2237
- const f = n.deleteRow(p);
2238
- f && (i.value = [...n.rows], l("row:delete", { rowIndex: p, row: f }));
2303
+ const v = n.deleteRow(p);
2304
+ v && (i.value = [...n.rows], o("row:delete", { rowIndex: p, row: v }));
2239
2305
  break;
2240
2306
  }
2241
2307
  case "duplicate": {
2242
- const f = n.duplicateRow(p);
2243
- if (f >= 0) {
2244
- const h = n.rows[f];
2245
- i.value = [...n.rows], l("row:duplicate", { sourceIndex: p, newIndex: f, row: h });
2308
+ const v = n.duplicateRow(p);
2309
+ if (v >= 0) {
2310
+ const h = n.rows[v];
2311
+ i.value = [...n.rows], o("row:duplicate", { sourceIndex: p, newIndex: v, row: h });
2246
2312
  }
2247
2313
  break;
2248
2314
  }
2249
2315
  case "insertAbove": {
2250
- const f = n.insertRowAbove(p), h = n.rows[f];
2251
- i.value = [...n.rows], l("row:insert-above", { targetIndex: p, newIndex: f, row: h });
2316
+ const v = n.insertRowAbove(p), h = n.rows[v];
2317
+ i.value = [...n.rows], o("row:insert-above", { targetIndex: p, newIndex: v, row: h });
2252
2318
  break;
2253
2319
  }
2254
2320
  case "insertBelow": {
2255
- const f = n.insertRowBelow(p), h = n.rows[f];
2256
- i.value = [...n.rows], l("row:insert-below", { targetIndex: p, newIndex: f, row: h });
2321
+ const v = n.insertRowBelow(p), h = n.rows[v];
2322
+ i.value = [...n.rows], o("row:insert-below", { targetIndex: p, newIndex: v, row: h });
2257
2323
  break;
2258
2324
  }
2259
2325
  case "move": {
2260
- l("row:move", { fromIndex: p, toIndex: -1 });
2326
+ o("row:move", { fromIndex: p, toIndex: -1 });
2261
2327
  break;
2262
2328
  }
2263
2329
  }
@@ -2275,59 +2341,59 @@ const fo = { class: "gantt-connection-overlay" }, ho = {
2275
2341
  insertRowAbove: n.insertRowAbove,
2276
2342
  insertRowBelow: n.insertRowBelow,
2277
2343
  moveRow: n.moveRow
2278
- }), (y, p) => (x(), k("div", Lo, [
2279
- oe((x(), k("table", {
2344
+ }), (x, p) => (y(), C("div", Bo, [
2345
+ de((y(), C("table", {
2280
2346
  ref: "table",
2281
2347
  class: "atable",
2282
- style: ce({
2283
- width: O(n).config.fullWidth ? "100%" : "auto"
2348
+ style: me({
2349
+ width: Z(n).config.fullWidth ? "100%" : "auto"
2284
2350
  })
2285
2351
  }, [
2286
- le(y.$slots, "header", { data: O(n) }, () => [
2352
+ fe(x.$slots, "header", { data: Z(n) }, () => [
2287
2353
  pt(Ot, {
2288
- columns: O(n).columns,
2289
- store: O(n)
2354
+ columns: Z(n).columns,
2355
+ store: Z(n)
2290
2356
  }, null, 8, ["columns", "store"])
2291
2357
  ], !0),
2292
- P("tbody", null, [
2293
- le(y.$slots, "body", { data: O(n) }, () => [
2294
- (x(!0), k(ie, null, ve(O(n).filteredRows, (f, h) => (x(), se(Ht, {
2295
- key: `${f.originalIndex}-${h}`,
2296
- row: f,
2297
- rowIndex: f.originalIndex,
2298
- store: O(n),
2299
- "onRow:action": A
2358
+ W("tbody", null, [
2359
+ fe(x.$slots, "body", { data: Z(n) }, () => [
2360
+ (y(!0), C(he, null, ye(Z(n).filteredRows, (v, h) => (y(), ve(Lt, {
2361
+ key: `${v.originalIndex}-${h}`,
2362
+ row: v,
2363
+ rowIndex: v.originalIndex,
2364
+ store: Z(n),
2365
+ "onRow:action": V
2300
2366
  }, {
2301
2367
  default: xt(() => [
2302
- (x(!0), k(ie, null, ve(v(f), (m, R) => (x(), k(ie, {
2368
+ (y(!0), C(he, null, ye(f(v), (m, I) => (y(), C(he, {
2303
2369
  key: m.name
2304
2370
  }, [
2305
- m.isGantt ? (x(), se($e(m.ganttComponent || "AGanttCell"), {
2371
+ m.isGantt ? (y(), ve(We(m.ganttComponent || "AGanttCell"), {
2306
2372
  key: 0,
2307
- store: O(n),
2308
- "columns-count": O(n).columns.length - c.value,
2309
- color: f.gantt?.color,
2310
- start: f.gantt?.startIndex,
2311
- end: f.gantt?.endIndex,
2373
+ store: Z(n),
2374
+ "columns-count": Z(n).columns.length - c.value,
2375
+ color: v.gantt?.color,
2376
+ start: v.gantt?.startIndex,
2377
+ end: v.gantt?.endIndex,
2312
2378
  colspan: m.colspan,
2313
2379
  pinned: m.pinned,
2314
- rowIndex: f.originalIndex,
2315
- colIndex: m.originalIndex ?? R,
2316
- style: ce({
2380
+ rowIndex: v.originalIndex,
2381
+ colIndex: m.originalIndex ?? I,
2382
+ style: me({
2317
2383
  textAlign: m?.align || "center",
2318
2384
  minWidth: m?.width || "40ch",
2319
- width: O(n).config.fullWidth ? "auto" : null
2385
+ width: Z(n).config.fullWidth ? "auto" : null
2320
2386
  }),
2321
2387
  "onConnection:create": g
2322
- }, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "rowIndex", "colIndex", "style"])) : (x(), se($e(m.cellComponent || "ACell"), {
2388
+ }, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "rowIndex", "colIndex", "style"])) : (y(), ve(We(m.cellComponent || "ACell"), {
2323
2389
  key: 1,
2324
- store: O(n),
2390
+ store: Z(n),
2325
2391
  pinned: m.pinned,
2326
- rowIndex: f.originalIndex,
2327
- colIndex: R,
2328
- style: ce({
2392
+ rowIndex: v.originalIndex,
2393
+ colIndex: I,
2394
+ style: me({
2329
2395
  textAlign: m?.align || "center",
2330
- width: O(n).config.fullWidth ? "auto" : null
2396
+ width: Z(n).config.fullWidth ? "auto" : null
2331
2397
  }),
2332
2398
  spellcheck: "false"
2333
2399
  }, null, 8, ["store", "pinned", "rowIndex", "colIndex", "style"]))
@@ -2337,73 +2403,73 @@ const fo = { class: "gantt-connection-overlay" }, ho = {
2337
2403
  }, 1032, ["row", "rowIndex", "store"]))), 128))
2338
2404
  ], !0)
2339
2405
  ]),
2340
- le(y.$slots, "footer", { data: O(n) }, void 0, !0),
2341
- le(y.$slots, "modal", { data: O(n) }, () => [
2342
- oe(pt(Lt, { store: O(n) }, {
2406
+ fe(x.$slots, "footer", { data: Z(n) }, void 0, !0),
2407
+ fe(x.$slots, "modal", { data: Z(n) }, () => [
2408
+ de(pt(Vt, { store: Z(n) }, {
2343
2409
  default: xt(() => [
2344
- (x(), se($e(O(n).modal.component), at({
2345
- key: `${O(n).modal.rowIndex}:${O(n).modal.colIndex}`,
2346
- "col-index": O(n).modal.colIndex,
2347
- "row-index": O(n).modal.rowIndex,
2348
- store: O(n)
2349
- }, O(n).modal.componentProps), null, 16, ["col-index", "row-index", "store"]))
2410
+ (y(), ve(We(Z(n).modal.component), st({
2411
+ key: `${Z(n).modal.rowIndex}:${Z(n).modal.colIndex}`,
2412
+ "col-index": Z(n).modal.colIndex,
2413
+ "row-index": Z(n).modal.rowIndex,
2414
+ store: Z(n)
2415
+ }, Z(n).modal.componentProps), null, 16, ["col-index", "row-index", "store"]))
2350
2416
  ]),
2351
2417
  _: 1
2352
2418
  }, 8, ["store"]), [
2353
- [st, O(n).modal.visible]
2419
+ [it, Z(n).modal.visible]
2354
2420
  ])
2355
2421
  ], !0)
2356
2422
  ], 4)), [
2357
- [O(co), O(n).closeModal]
2423
+ [Z(fo), Z(n).closeModal]
2358
2424
  ]),
2359
- O(n).isGanttView && O(n).isDependencyGraphEnabled ? (x(), se(xo, {
2425
+ Z(n).isGanttView && Z(n).isDependencyGraphEnabled ? (y(), ve(bo, {
2360
2426
  key: 0,
2361
- store: O(n),
2427
+ store: Z(n),
2362
2428
  "onConnection:delete": $
2363
- }, null, 8, ["store"])) : U("", !0)
2429
+ }, null, 8, ["store"])) : K("", !0)
2364
2430
  ]));
2365
2431
  }
2366
- }), Bo = /* @__PURE__ */ we(Vo, [["__scopeId", "data-v-3d00d51b"]]), Po = {}, Zo = { class: "aloading" }, No = { class: "aloading-header" };
2367
- function Fo(e, t) {
2368
- return x(), k("div", Zo, [
2369
- P("h2", No, [
2370
- le(e.$slots, "default", {}, void 0, !0)
2432
+ }), Zo = /* @__PURE__ */ Ie(Po, [["__scopeId", "data-v-3d00d51b"]]), No = {}, Wo = { class: "aloading" }, Fo = { class: "aloading-header" };
2433
+ function zo(e, t) {
2434
+ return y(), C("div", Wo, [
2435
+ W("h2", Fo, [
2436
+ fe(e.$slots, "default", {}, void 0, !0)
2371
2437
  ]),
2372
- t[0] || (t[0] = P("div", { class: "aloading-bar" }, null, -1))
2438
+ t[0] || (t[0] = W("div", { class: "aloading-bar" }, null, -1))
2373
2439
  ]);
2374
2440
  }
2375
- const zo = /* @__PURE__ */ we(Po, [["render", Fo], ["__scopeId", "data-v-a930a25b"]]), Wo = {}, Xo = { class: "aloading" }, Go = { class: "aloading-header" };
2376
- function Uo(e, t) {
2377
- return x(), k("div", Xo, [
2378
- P("h2", Go, [
2379
- le(e.$slots, "default", {}, void 0, !0)
2441
+ const Xo = /* @__PURE__ */ Ie(No, [["render", zo], ["__scopeId", "data-v-a930a25b"]]), Go = {}, Yo = { class: "aloading" }, Uo = { class: "aloading-header" };
2442
+ function jo(e, t) {
2443
+ return y(), C("div", Yo, [
2444
+ W("h2", Uo, [
2445
+ fe(e.$slots, "default", {}, void 0, !0)
2380
2446
  ]),
2381
- t[0] || (t[0] = P("div", { class: "aloading-bar" }, null, -1))
2447
+ t[0] || (t[0] = W("div", { class: "aloading-bar" }, null, -1))
2382
2448
  ]);
2383
2449
  }
2384
- const jo = /* @__PURE__ */ we(Wo, [["render", Uo], ["__scopeId", "data-v-e1165876"]]);
2385
- function el(e) {
2386
- e.component("ACell", Hn), e.component("AExpansionRow", Pn), e.component("AGanttCell", Gn), e.component("ARow", Ht), e.component("ARowActions", Fe), e.component("ATable", Bo), e.component("ATableHeader", Ot), e.component("ATableLoading", zo), e.component("ATableLoadingBar", jo), e.component("ATableModal", Lt);
2450
+ const qo = /* @__PURE__ */ Ie(Go, [["render", jo], ["__scopeId", "data-v-e1165876"]]);
2451
+ function nl(e) {
2452
+ e.component("ACell", On), e.component("AExpansionRow", Nn), e.component("AGanttCell", Un), e.component("ARow", Lt), e.component("ARowActions", qe), e.component("ATable", Zo), e.component("ATableHeader", Ot), e.component("ATableLoading", Xo), e.component("ATableLoadingBar", qo), e.component("ATableModal", Vt);
2387
2453
  }
2388
2454
  export {
2389
- Hn as ACell,
2390
- Pn as AExpansionRow,
2391
- Gn as AGanttCell,
2392
- Ht as ARow,
2393
- Fe as ARowActions,
2394
- Bo as ATable,
2455
+ On as ACell,
2456
+ Nn as AExpansionRow,
2457
+ Un as AGanttCell,
2458
+ Lt as ARow,
2459
+ qe as ARowActions,
2460
+ Zo as ATable,
2395
2461
  Ot as ATableHeader,
2396
- zo as ATableLoading,
2397
- jo as ATableLoadingBar,
2398
- Lt as ATableModal,
2399
- Un as AddIcon,
2400
- jn as DeleteIcon,
2401
- Yn as DuplicateIcon,
2402
- qn as InsertAboveIcon,
2403
- Jn as InsertBelowIcon,
2404
- Qn as MoveIcon,
2405
- Kn as actionIcons,
2406
- Oo as createTableStore,
2407
- el as install
2462
+ Xo as ATableLoading,
2463
+ qo as ATableLoadingBar,
2464
+ Vt as ATableModal,
2465
+ jn as AddIcon,
2466
+ qn as DeleteIcon,
2467
+ Jn as DuplicateIcon,
2468
+ Qn as InsertAboveIcon,
2469
+ Kn as InsertBelowIcon,
2470
+ _n as MoveIcon,
2471
+ eo as actionIcons,
2472
+ Vo as createTableStore,
2473
+ nl as install
2408
2474
  };
2409
2475
  //# sourceMappingURL=atable.js.map