@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 +1221 -1155
- package/dist/atable.js.map +1 -1
- package/dist/atable.umd.cjs +12 -8
- package/dist/atable.umd.cjs.map +1 -1
- package/package.json +11 -11
package/dist/atable.js
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import { onMounted as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import './assets/index.css';function
|
|
4
|
-
return
|
|
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
|
|
6
|
+
const Jt = typeof window < "u" && typeof document < "u";
|
|
7
7
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
8
|
-
const
|
|
8
|
+
const Qt = (e) => e != null, Kt = Object.prototype.toString, _t = (e) => Kt.call(e) === "[object Object]", en = () => {
|
|
9
9
|
};
|
|
10
|
-
function
|
|
10
|
+
function Ue(e) {
|
|
11
11
|
return Array.isArray(e) ? e : [e];
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return
|
|
13
|
+
function tn(e, t, s) {
|
|
14
|
+
return ce(e, t, {
|
|
15
15
|
...s,
|
|
16
16
|
immediate: !0
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
function
|
|
19
|
+
const Le = Jt ? window : void 0;
|
|
20
|
+
function De(e) {
|
|
21
21
|
var t;
|
|
22
|
-
const s =
|
|
22
|
+
const s = D(e);
|
|
23
23
|
return (t = s?.$el) !== null && t !== void 0 ? t : s;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const t = (i, u,
|
|
27
|
-
const i =
|
|
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
|
|
30
|
+
return tn(() => {
|
|
31
31
|
var i, u;
|
|
32
32
|
return [
|
|
33
|
-
(i = (u = s.value) === null || u === void 0 ? void 0 : u.map((
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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,
|
|
39
|
-
if (!i?.length || !u?.length || !
|
|
40
|
-
const 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
|
-
|
|
42
|
+
f.forEach((g) => g());
|
|
43
43
|
});
|
|
44
44
|
}, { flush: "post" });
|
|
45
45
|
}
|
|
46
46
|
// @__NO_SIDE_EFFECTS__
|
|
47
|
-
function
|
|
48
|
-
const e =
|
|
49
|
-
return t &&
|
|
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
|
|
55
|
-
const t = /* @__PURE__ */
|
|
56
|
-
return
|
|
54
|
+
function on(e) {
|
|
55
|
+
const t = /* @__PURE__ */ nn();
|
|
56
|
+
return T(() => (t.value, !!e()));
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
const { window: i =
|
|
60
|
-
let
|
|
61
|
-
const a = /* @__PURE__ */
|
|
62
|
-
|
|
63
|
-
}, c =
|
|
64
|
-
const g =
|
|
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 && (
|
|
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 = () =>
|
|
71
|
+
}), r = () => o?.takeRecords(), f = () => {
|
|
72
72
|
c(), n();
|
|
73
73
|
};
|
|
74
|
-
return
|
|
74
|
+
return At(f), {
|
|
75
75
|
isSupported: a,
|
|
76
|
-
stop:
|
|
76
|
+
stop: f,
|
|
77
77
|
takeRecords: r
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
const { window: i =
|
|
82
|
-
if (!i || !u) return
|
|
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 = (
|
|
85
|
-
a?.(), a =
|
|
86
|
-
}, c =
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
89
|
-
const { stop: g } =
|
|
90
|
-
$.map((
|
|
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:
|
|
98
|
+
}, { flush: o }), r = () => {
|
|
99
99
|
c(), n();
|
|
100
100
|
};
|
|
101
|
-
return
|
|
101
|
+
return At(r), r;
|
|
102
102
|
}
|
|
103
103
|
// @__NO_SIDE_EFFECTS__
|
|
104
|
-
function
|
|
104
|
+
function sn(e = {}) {
|
|
105
105
|
var t;
|
|
106
|
-
const { window: s =
|
|
107
|
-
let r =
|
|
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
|
|
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 =
|
|
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
|
-
|
|
120
|
-
|
|
121
|
-
}, r),
|
|
119
|
+
Fe(s, "blur", (f) => {
|
|
120
|
+
f.relatedTarget === null && c();
|
|
121
|
+
}, r), Fe(s, "focus", c, r);
|
|
122
122
|
}
|
|
123
|
-
return u &&
|
|
123
|
+
return u && an(n, c, { document: o }), c(), n;
|
|
124
124
|
}
|
|
125
|
-
const
|
|
126
|
-
function
|
|
127
|
-
const { window: s =
|
|
128
|
-
if (!s || !(/* @__PURE__ */
|
|
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
|
|
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,
|
|
133
|
-
}, a), { focused:
|
|
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
|
|
136
|
-
const i =
|
|
135
|
+
function fn(e, { window: t = Le, scrollTarget: s } = {}) {
|
|
136
|
+
const i = z(!1), u = () => {
|
|
137
137
|
if (!t) return;
|
|
138
|
-
const
|
|
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 ||
|
|
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
|
|
147
|
-
() =>
|
|
146
|
+
return ce(
|
|
147
|
+
() => De(e),
|
|
148
148
|
() => u(),
|
|
149
149
|
{ immediate: !0, flush: "post" }
|
|
150
|
-
), t &&
|
|
150
|
+
), t && Fe(s || t, "scroll", u, {
|
|
151
151
|
capture: !1,
|
|
152
152
|
passive: !0
|
|
153
153
|
}), i;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
let t =
|
|
155
|
+
const be = (e) => {
|
|
156
|
+
let t = fn(e).value;
|
|
157
157
|
return t = t && e.offsetHeight > 0, t;
|
|
158
|
-
},
|
|
158
|
+
}, Ce = (e) => e.tabIndex >= 0, bt = (e) => {
|
|
159
159
|
const t = e.target;
|
|
160
|
-
return
|
|
161
|
-
},
|
|
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 && (!
|
|
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 && (!
|
|
191
|
-
},
|
|
190
|
+
return s && (!Ce(s) || !be(s)) ? ct(s) : s;
|
|
191
|
+
}, Ct = (e) => {
|
|
192
192
|
const t = e.target;
|
|
193
|
-
return
|
|
194
|
-
},
|
|
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 && (!
|
|
207
|
-
},
|
|
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 && (!
|
|
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.
|
|
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
|
|
238
|
-
return
|
|
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 && (!
|
|
242
|
-
},
|
|
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
|
-
},
|
|
247
|
+
}, Qe = {
|
|
248
248
|
"keydown.up": (e) => {
|
|
249
|
-
const t =
|
|
249
|
+
const t = bt(e);
|
|
250
250
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
251
251
|
},
|
|
252
252
|
"keydown.down": (e) => {
|
|
253
|
-
const t =
|
|
253
|
+
const t = Ct(e);
|
|
254
254
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
255
255
|
},
|
|
256
256
|
"keydown.left": (e) => {
|
|
257
|
-
const t =
|
|
257
|
+
const t = kt(e);
|
|
258
258
|
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
259
259
|
},
|
|
260
260
|
"keydown.right": (e) => {
|
|
261
|
-
const t =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
277
|
+
const t = It(e);
|
|
278
278
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
279
279
|
},
|
|
280
280
|
"keydown.end": (e) => {
|
|
281
|
-
const t =
|
|
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 =
|
|
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 =
|
|
294
|
+
const t = bt(e);
|
|
295
295
|
t && t.focus();
|
|
296
296
|
}
|
|
297
297
|
},
|
|
298
298
|
"keydown.home": (e) => {
|
|
299
|
-
const t =
|
|
299
|
+
const t = Rt(e);
|
|
300
300
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
301
301
|
},
|
|
302
302
|
"keydown.tab": (e) => {
|
|
303
|
-
const t =
|
|
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 =
|
|
307
|
+
const t = kt(e);
|
|
308
308
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
|
-
function
|
|
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) =>
|
|
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 =
|
|
338
|
-
if (
|
|
339
|
-
const r = a.handlers ||
|
|
340
|
-
for (const
|
|
341
|
-
const [g, ...$] =
|
|
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
|
|
344
|
-
const h =
|
|
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 (
|
|
347
|
+
if (x.length > 0) {
|
|
348
348
|
if (p) {
|
|
349
|
-
for (const
|
|
350
|
-
if ($.includes(
|
|
351
|
-
const h =
|
|
352
|
-
n.getModifierState(h) &&
|
|
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 ||
|
|
356
|
+
p || V(n);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
},
|
|
360
|
-
|
|
359
|
+
}, o = [];
|
|
360
|
+
He(() => {
|
|
361
361
|
for (const a of e) {
|
|
362
|
-
const n = t(a), c = i(a), r = u(a),
|
|
363
|
-
for (const g of
|
|
364
|
-
const { focused: $ } =
|
|
365
|
-
|
|
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
|
-
|
|
367
|
+
o.push(V);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
}),
|
|
371
|
-
for (const a of
|
|
370
|
+
}), Bt(() => {
|
|
371
|
+
for (const a of o)
|
|
372
372
|
a();
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
function vt(e, t) {
|
|
376
|
-
return
|
|
376
|
+
return $t() ? (Et(e, t), !0) : !1;
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const Tt = typeof window < "u" && typeof document < "u";
|
|
379
379
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
380
|
-
const mn = (e) => e != null,
|
|
380
|
+
const mn = (e) => e != null, wn = Object.prototype.toString, pn = (e) => wn.call(e) === "[object Object]", Ee = () => {
|
|
381
381
|
};
|
|
382
|
-
function
|
|
383
|
-
if (e.length !== 1) return
|
|
382
|
+
function xn(...e) {
|
|
383
|
+
if (e.length !== 1) return Wt(...e);
|
|
384
384
|
const t = e[0];
|
|
385
|
-
return typeof t == "function" ? Ft(
|
|
385
|
+
return typeof t == "function" ? Ft(St(() => ({
|
|
386
386
|
get: t,
|
|
387
|
-
set:
|
|
388
|
-
}))) :
|
|
387
|
+
set: Ee
|
|
388
|
+
}))) : z(t);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function yn(e, t) {
|
|
391
391
|
function s(...i) {
|
|
392
|
-
return new Promise((u,
|
|
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(
|
|
397
|
+
})).then(u).catch(o);
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
return s;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
403
|
-
let s, i, u =
|
|
404
|
-
const
|
|
405
|
-
clearTimeout(c), u(), u =
|
|
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 =
|
|
410
|
-
return s &&
|
|
411
|
-
u = t.rejectOnCancel ? $ : g, a = c,
|
|
412
|
-
s &&
|
|
413
|
-
},
|
|
414
|
-
i &&
|
|
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
|
|
419
|
+
function je(e) {
|
|
420
420
|
return Array.isArray(e) ? e : [e];
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return
|
|
422
|
+
function Cn(e) {
|
|
423
|
+
return lt();
|
|
424
424
|
}
|
|
425
425
|
// @__NO_SIDE_EFFECTS__
|
|
426
|
-
function
|
|
427
|
-
return
|
|
426
|
+
function kn(e, t = 200, s = {}) {
|
|
427
|
+
return yn(bn(t, s), e);
|
|
428
428
|
}
|
|
429
|
-
function
|
|
430
|
-
if (!
|
|
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] =
|
|
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
|
|
438
|
-
if (!((
|
|
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
|
|
454
|
-
|
|
453
|
+
function Rn(e, t = !0, s) {
|
|
454
|
+
Cn() ? He(e, s) : t ? e() : at(e);
|
|
455
455
|
}
|
|
456
|
-
function
|
|
457
|
-
return
|
|
456
|
+
function In(e, t, s) {
|
|
457
|
+
return ce(e, t, {
|
|
458
458
|
...s,
|
|
459
459
|
immediate: !0
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
|
-
const
|
|
463
|
-
function
|
|
462
|
+
const ze = Tt ? window : void 0;
|
|
463
|
+
function ge(e) {
|
|
464
464
|
var t;
|
|
465
|
-
const s =
|
|
465
|
+
const s = D(e);
|
|
466
466
|
return (t = s?.$el) !== null && t !== void 0 ? t : s;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
const t = (i, u,
|
|
470
|
-
const i =
|
|
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
|
|
473
|
+
return In(() => {
|
|
474
474
|
var i, u;
|
|
475
475
|
return [
|
|
476
|
-
(i = (u = s.value) === null || u === void 0 ? void 0 : u.map((
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
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,
|
|
482
|
-
if (!i?.length || !u?.length || !
|
|
483
|
-
const 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
|
-
|
|
485
|
+
f.forEach((g) => g());
|
|
486
486
|
});
|
|
487
487
|
}, { flush: "post" });
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
const { window: i =
|
|
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:
|
|
493
|
-
cancel:
|
|
494
|
-
trigger:
|
|
495
|
-
} :
|
|
492
|
+
stop: Ee,
|
|
493
|
+
cancel: Ee,
|
|
494
|
+
trigger: Ee
|
|
495
|
+
} : Ee;
|
|
496
496
|
let c = !0;
|
|
497
|
-
const r = (
|
|
498
|
-
if (typeof h == "string") return Array.from(i.document.querySelectorAll(h)).some((m) => 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 =
|
|
501
|
-
return m && (
|
|
500
|
+
const m = ge(h);
|
|
501
|
+
return m && (v.target === m || v.composedPath().includes(m));
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
|
-
function v
|
|
505
|
-
const h =
|
|
504
|
+
function f(v) {
|
|
505
|
+
const h = D(v);
|
|
506
506
|
return h && h.$.subTree.shapeFlag === 16;
|
|
507
507
|
}
|
|
508
|
-
function g(
|
|
509
|
-
const m =
|
|
510
|
-
return
|
|
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 $ = (
|
|
513
|
-
const h =
|
|
514
|
-
if (
|
|
515
|
-
if ("detail" in
|
|
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(
|
|
519
|
+
t(v);
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
|
-
let
|
|
523
|
-
const
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}, 0), $(
|
|
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:
|
|
530
|
+
capture: o
|
|
531
531
|
}),
|
|
532
|
-
|
|
533
|
-
const h =
|
|
534
|
-
c = !r(
|
|
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 &&
|
|
536
|
+
a && Re(i, "blur", (v) => {
|
|
537
537
|
setTimeout(() => {
|
|
538
538
|
var h;
|
|
539
|
-
const m =
|
|
540
|
-
((h = i.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !m?.contains(i.document.activeElement) && t(
|
|
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 = () =>
|
|
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: (
|
|
550
|
-
c = !0, $(
|
|
549
|
+
trigger: (v) => {
|
|
550
|
+
c = !0, $(v), c = !1;
|
|
551
551
|
}
|
|
552
552
|
} : p;
|
|
553
553
|
}
|
|
554
554
|
// @__NO_SIDE_EFFECTS__
|
|
555
|
-
function
|
|
556
|
-
const e =
|
|
557
|
-
return t &&
|
|
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
|
|
563
|
-
const t = /* @__PURE__ */
|
|
564
|
-
return
|
|
562
|
+
function Dt(e) {
|
|
563
|
+
const t = /* @__PURE__ */ $n();
|
|
564
|
+
return T(() => (t.value, !!e()));
|
|
565
565
|
}
|
|
566
|
-
function
|
|
567
|
-
const { window: i =
|
|
568
|
-
let
|
|
569
|
-
const a = /* @__PURE__ */
|
|
570
|
-
|
|
571
|
-
}, c =
|
|
572
|
-
const g =
|
|
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 && (
|
|
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 = () =>
|
|
579
|
+
}), r = () => o?.takeRecords(), f = () => {
|
|
580
580
|
c(), n();
|
|
581
581
|
};
|
|
582
|
-
return vt(
|
|
582
|
+
return vt(f), {
|
|
583
583
|
isSupported: a,
|
|
584
|
-
stop:
|
|
584
|
+
stop: f,
|
|
585
585
|
takeRecords: r
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
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
|
-
}),
|
|
594
|
-
|
|
595
|
-
},
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
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
|
-
|
|
603
|
-
},
|
|
604
|
-
if (
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
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 (
|
|
615
|
-
const
|
|
616
|
-
var
|
|
676
|
+
if (Tt) {
|
|
677
|
+
const k = () => {
|
|
678
|
+
var O;
|
|
617
679
|
return {
|
|
618
|
-
capture: (
|
|
619
|
-
passive: !
|
|
680
|
+
capture: (O = t.capture) !== null && O !== void 0 ? O : !0,
|
|
681
|
+
passive: !D(n)
|
|
620
682
|
};
|
|
621
683
|
};
|
|
622
|
-
|
|
684
|
+
Re(h, "pointerdown", Be, k), Re(p, "pointermove", Te, k), Re(p, "pointerup", Pe, k);
|
|
623
685
|
}
|
|
624
686
|
return {
|
|
625
|
-
...
|
|
626
|
-
position:
|
|
627
|
-
isDragging:
|
|
628
|
-
style:
|
|
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
|
|
632
|
-
const { window: i =
|
|
633
|
-
let
|
|
634
|
-
const a = /* @__PURE__ */
|
|
635
|
-
|
|
636
|
-
}, c =
|
|
637
|
-
const
|
|
638
|
-
return Array.isArray(
|
|
639
|
-
}), (
|
|
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
|
-
|
|
642
|
-
for (const g of
|
|
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
|
|
656
|
-
const { reset: s = !0, windowResize: i = !0, windowScroll: u = !0, immediate:
|
|
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 =
|
|
724
|
+
const h = ge(e);
|
|
659
725
|
if (!h) {
|
|
660
|
-
s && (n.value = 0, c.value = 0, r.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,
|
|
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
|
|
732
|
+
function v() {
|
|
667
733
|
a === "sync" ? p() : a === "next-frame" && requestAnimationFrame(() => p());
|
|
668
734
|
}
|
|
669
|
-
return
|
|
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 &&
|
|
673
|
-
|
|
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:
|
|
744
|
+
right: f,
|
|
679
745
|
top: g,
|
|
680
746
|
width: $,
|
|
681
|
-
x:
|
|
682
|
-
y,
|
|
683
|
-
update:
|
|
747
|
+
x: V,
|
|
748
|
+
y: x,
|
|
749
|
+
update: v
|
|
684
750
|
};
|
|
685
751
|
}
|
|
686
|
-
function
|
|
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
|
|
690
|
-
function
|
|
691
|
-
const s =
|
|
755
|
+
const tt = /* @__PURE__ */ new WeakMap();
|
|
756
|
+
function Sn(e, t = !1) {
|
|
757
|
+
const s = ie(t);
|
|
692
758
|
let i = "";
|
|
693
|
-
|
|
694
|
-
const n =
|
|
759
|
+
ce(xn(e), (a) => {
|
|
760
|
+
const n = et(D(a));
|
|
695
761
|
if (n) {
|
|
696
762
|
const c = n;
|
|
697
|
-
if (
|
|
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 =
|
|
768
|
+
const a = et(D(e));
|
|
703
769
|
!a || s.value || (a.style.overflow = "hidden", s.value = !0);
|
|
704
|
-
},
|
|
705
|
-
const a =
|
|
706
|
-
!a || !s.value || (a.style.overflow = i,
|
|
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(
|
|
774
|
+
return vt(o), T({
|
|
709
775
|
get() {
|
|
710
776
|
return s.value;
|
|
711
777
|
},
|
|
712
778
|
set(a) {
|
|
713
|
-
a ? u() :
|
|
779
|
+
a ? u() : o();
|
|
714
780
|
}
|
|
715
781
|
});
|
|
716
782
|
}
|
|
717
|
-
const
|
|
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
|
-
},
|
|
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 =
|
|
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:
|
|
801
|
+
fontWeight: o.value ? "bold" : "inherit",
|
|
736
802
|
paddingLeft: e.store.getIndent(e.colIndex, e.store.display[e.rowIndex]?.indent)
|
|
737
|
-
})),
|
|
803
|
+
})), V = T(() => ({
|
|
738
804
|
"sticky-column": e.pinned,
|
|
739
|
-
"cell-modified":
|
|
740
|
-
})),
|
|
741
|
-
|
|
805
|
+
"cell-modified": o.value
|
|
806
|
+
})), x = () => {
|
|
807
|
+
v(), p();
|
|
742
808
|
}, p = () => {
|
|
743
|
-
const { left:
|
|
744
|
-
a.mask, a.modalComponent && e.store.$patch((
|
|
745
|
-
|
|
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
|
|
750
|
-
...
|
|
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" && (
|
|
758
|
-
...
|
|
823
|
+
typeof e.addNavigation == "object" && (A = {
|
|
824
|
+
...A,
|
|
759
825
|
...e.addNavigation
|
|
760
|
-
}),
|
|
826
|
+
}), ft([
|
|
761
827
|
{
|
|
762
828
|
selectors: s,
|
|
763
|
-
handlers:
|
|
829
|
+
handlers: A
|
|
764
830
|
}
|
|
765
831
|
]);
|
|
766
832
|
}
|
|
767
|
-
const
|
|
833
|
+
const v = () => {
|
|
768
834
|
if (s.value && a.edit) {
|
|
769
|
-
const
|
|
770
|
-
if (
|
|
835
|
+
const A = window.getSelection();
|
|
836
|
+
if (A)
|
|
771
837
|
try {
|
|
772
|
-
const
|
|
773
|
-
|
|
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,
|
|
844
|
+
s.value && (u.value = s.value.textContent, v());
|
|
779
845
|
}, m = () => {
|
|
780
846
|
try {
|
|
781
|
-
const
|
|
782
|
-
if (
|
|
783
|
-
const
|
|
784
|
-
if (
|
|
785
|
-
return
|
|
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
|
-
},
|
|
856
|
+
}, I = (A) => {
|
|
791
857
|
if (s.value)
|
|
792
858
|
try {
|
|
793
|
-
const
|
|
794
|
-
if (!
|
|
795
|
-
let
|
|
796
|
-
const
|
|
797
|
-
if (!
|
|
798
|
-
let
|
|
799
|
-
for (;
|
|
800
|
-
const
|
|
801
|
-
if (
|
|
802
|
-
|
|
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
|
-
|
|
871
|
+
X = ae;
|
|
806
872
|
}
|
|
807
|
-
|
|
873
|
+
q && L.removeAllRanges && L.addRange && (L.removeAllRanges(), L.addRange(q));
|
|
808
874
|
} catch {
|
|
809
875
|
}
|
|
810
|
-
},
|
|
876
|
+
}, E = (A) => {
|
|
811
877
|
if (!a.edit) return;
|
|
812
|
-
const
|
|
813
|
-
if (
|
|
878
|
+
const L = A.target;
|
|
879
|
+
if (L.textContent === u.value)
|
|
814
880
|
return;
|
|
815
|
-
const
|
|
816
|
-
u.value =
|
|
817
|
-
|
|
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
|
-
},
|
|
885
|
+
}, H = /* @__PURE__ */ kn(E, e.debounce);
|
|
820
886
|
return t({
|
|
821
887
|
currentData: u
|
|
822
|
-
}), (
|
|
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":
|
|
827
|
-
contenteditable:
|
|
892
|
+
"data-editable": Z(a).edit,
|
|
893
|
+
contenteditable: Z(a).edit,
|
|
828
894
|
tabindex: e.tabIndex,
|
|
829
895
|
spellcheck: !1,
|
|
830
|
-
style:
|
|
831
|
-
class:
|
|
896
|
+
style: me($.value),
|
|
897
|
+
class: oe(["atable-cell", V.value]),
|
|
832
898
|
onFocus: h,
|
|
833
|
-
onPaste:
|
|
834
|
-
onInput:
|
|
835
|
-
(...
|
|
836
|
-
onClick:
|
|
899
|
+
onPaste: E,
|
|
900
|
+
onInput: L[0] || (L[0] = //@ts-ignore
|
|
901
|
+
(...X) => Z(H) && Z(H)(...X)),
|
|
902
|
+
onClick: x
|
|
837
903
|
}, [
|
|
838
|
-
|
|
904
|
+
Z(a).cellComponent ? (y(), ve(We(Z(a).cellComponent), st({
|
|
839
905
|
key: 0,
|
|
840
|
-
value:
|
|
841
|
-
},
|
|
906
|
+
value: f.value
|
|
907
|
+
}, Z(a).cellComponentProps), null, 16, ["value"])) : g.value ? (y(), C("span", {
|
|
842
908
|
key: 1,
|
|
843
|
-
innerHTML:
|
|
844
|
-
}, null, 8,
|
|
845
|
-
], 46,
|
|
909
|
+
innerHTML: f.value
|
|
910
|
+
}, null, 8, Hn)) : (y(), C("span", Ln, xe(f.value), 1))
|
|
911
|
+
], 46, Dn));
|
|
846
912
|
}
|
|
847
|
-
}),
|
|
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: () =>
|
|
919
|
+
addNavigation: { type: [Boolean, Object], default: () => Qe }
|
|
854
920
|
},
|
|
855
921
|
setup(e) {
|
|
856
|
-
const t =
|
|
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),
|
|
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) => (
|
|
871
|
-
|
|
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
|
-
|
|
942
|
+
W("td", {
|
|
877
943
|
tabIndex: -1,
|
|
878
944
|
class: "row-index",
|
|
879
|
-
onClick: u[0] || (u[0] = (
|
|
880
|
-
},
|
|
881
|
-
|
|
882
|
-
], 16,
|
|
883
|
-
e.store.display[e.rowIndex].expanded ? (
|
|
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
|
-
|
|
955
|
+
W("td", {
|
|
890
956
|
tabIndex: -1,
|
|
891
957
|
colspan: e.store.columns.length + 1,
|
|
892
958
|
class: "expanded-row-content"
|
|
893
959
|
}, [
|
|
894
|
-
|
|
895
|
-
], 8,
|
|
896
|
-
], 8,
|
|
960
|
+
fe(i.$slots, "content", {}, void 0, !0)
|
|
961
|
+
], 8, Pn)
|
|
962
|
+
], 8, Bn)) : K("", !0)
|
|
897
963
|
], 64));
|
|
898
964
|
}
|
|
899
|
-
}),
|
|
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
|
-
},
|
|
970
|
+
}, Nn = /* @__PURE__ */ Ie(Zn, [["__scopeId", "data-v-a42297c7"]]), Wn = ["colspan"], Fn = {
|
|
905
971
|
ref: "container",
|
|
906
972
|
class: "gantt-container"
|
|
907
|
-
},
|
|
973
|
+
}, zn = ["data-rowindex", "data-colindex"], Xn = {
|
|
908
974
|
key: 2,
|
|
909
975
|
class: "gantt-label"
|
|
910
|
-
},
|
|
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 =
|
|
930
|
-
const S = p.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: `${
|
|
999
|
+
width: `${B - S}%`,
|
|
934
1000
|
backgroundColor: u.value
|
|
935
1001
|
};
|
|
936
|
-
}),
|
|
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
|
-
),
|
|
1012
|
+
), q = z({ startX: 0, startPos: 0 }), { isDragging: ue } = _e(c, {
|
|
947
1013
|
axis: "x",
|
|
948
|
-
onStart: () =>
|
|
949
|
-
onMove: ({ x: S }) =>
|
|
950
|
-
onEnd: ({ x: S }) =>
|
|
951
|
-
}), { isDragging:
|
|
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: () =>
|
|
954
|
-
onMove: ({ x: S }) =>
|
|
1019
|
+
onStart: () => ke(x.value, v.value),
|
|
1020
|
+
onMove: ({ x: S }) => Be(S),
|
|
955
1021
|
onEnd: ({ x: S }) => Te(S)
|
|
956
|
-
}), { isDragging: Ae } =
|
|
1022
|
+
}), { isDragging: Ae } = _e(n, {
|
|
957
1023
|
exact: !0,
|
|
958
1024
|
axis: "x",
|
|
959
|
-
onStart: () =>
|
|
960
|
-
onMove: ({ x: S }) =>
|
|
961
|
-
onEnd: ({ x: S }) =>
|
|
1025
|
+
onStart: () => ke(V.value, p.value),
|
|
1026
|
+
onMove: ({ x: S }) => Pe(S),
|
|
1027
|
+
onEnd: ({ x: S }) => k(S)
|
|
962
1028
|
});
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
}),
|
|
966
|
-
|
|
1029
|
+
He(() => {
|
|
1030
|
+
O();
|
|
1031
|
+
}), Xt(() => {
|
|
1032
|
+
F();
|
|
967
1033
|
});
|
|
968
|
-
function
|
|
969
|
-
n.value && (n.value.style.transition = "none"),
|
|
1034
|
+
function ke(S, B) {
|
|
1035
|
+
n.value && (n.value.style.transition = "none"), q.value = { startX: S, startPos: B };
|
|
970
1036
|
}
|
|
971
|
-
function
|
|
972
|
-
if (!
|
|
973
|
-
const
|
|
974
|
-
n.value.style.left = `${
|
|
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
|
|
1042
|
+
function Ve(S) {
|
|
977
1043
|
if (!n.value) return;
|
|
978
|
-
const
|
|
979
|
-
p.value =
|
|
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:
|
|
985
|
-
newStart:
|
|
986
|
-
end:
|
|
987
|
-
delta:
|
|
988
|
-
oldColspan:
|
|
989
|
-
newColspan:
|
|
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
|
|
993
|
-
if (!
|
|
994
|
-
const
|
|
995
|
-
n.value.style.width = `${(
|
|
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
|
|
1000
|
-
|
|
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:
|
|
1006
|
-
newEnd:
|
|
1071
|
+
oldEnd: Y,
|
|
1072
|
+
newEnd: Q,
|
|
1007
1073
|
start: p.value,
|
|
1008
|
-
delta:
|
|
1009
|
-
oldColspan:
|
|
1010
|
-
newColspan:
|
|
1074
|
+
delta: U,
|
|
1075
|
+
oldColspan: Y - p.value,
|
|
1076
|
+
newColspan: Q - p.value
|
|
1011
1077
|
});
|
|
1012
1078
|
}
|
|
1013
|
-
function
|
|
1079
|
+
function Pe(S) {
|
|
1014
1080
|
if (!Ae.value || !n.value) return;
|
|
1015
|
-
const
|
|
1016
|
-
n.value.style.left = `${
|
|
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
|
|
1084
|
+
function k(S) {
|
|
1019
1085
|
if (!n.value) return;
|
|
1020
|
-
const
|
|
1021
|
-
let
|
|
1022
|
-
|
|
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:
|
|
1027
|
-
oldEnd:
|
|
1028
|
-
newStart:
|
|
1029
|
-
newEnd:
|
|
1030
|
-
delta:
|
|
1031
|
-
colspan:
|
|
1092
|
+
oldStart: Q,
|
|
1093
|
+
oldEnd: _,
|
|
1094
|
+
newStart: ne,
|
|
1095
|
+
newEnd: se,
|
|
1096
|
+
delta: U,
|
|
1097
|
+
colspan: se - ne
|
|
1032
1098
|
});
|
|
1033
1099
|
}
|
|
1034
|
-
function
|
|
1035
|
-
const { x: S, y:
|
|
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:
|
|
1103
|
+
id: o,
|
|
1038
1104
|
rowIndex: e.rowIndex,
|
|
1039
1105
|
colIndex: e.colIndex,
|
|
1040
1106
|
startIndex: p,
|
|
1041
|
-
endIndex:
|
|
1107
|
+
endIndex: v,
|
|
1042
1108
|
color: u,
|
|
1043
1109
|
label: e.label,
|
|
1044
|
-
position: { x: S, y:
|
|
1110
|
+
position: { x: S, y: B }
|
|
1045
1111
|
}), e.store.isDependencyGraphEnabled && (e.store.registerConnectionHandle({
|
|
1046
|
-
id: `${
|
|
1112
|
+
id: `${o}-connection-left`,
|
|
1047
1113
|
rowIndex: e.rowIndex,
|
|
1048
1114
|
colIndex: e.colIndex,
|
|
1049
1115
|
side: "left",
|
|
1050
|
-
position: { x:
|
|
1116
|
+
position: { x: U, y: Y },
|
|
1051
1117
|
visible: h,
|
|
1052
|
-
barId:
|
|
1118
|
+
barId: o
|
|
1053
1119
|
}), e.store.registerConnectionHandle({
|
|
1054
|
-
id: `${
|
|
1120
|
+
id: `${o}-connection-right`,
|
|
1055
1121
|
rowIndex: e.rowIndex,
|
|
1056
1122
|
colIndex: e.colIndex,
|
|
1057
1123
|
side: "right",
|
|
1058
|
-
position: { x:
|
|
1124
|
+
position: { x: Q, y: _ },
|
|
1059
1125
|
visible: m,
|
|
1060
|
-
barId:
|
|
1126
|
+
barId: o
|
|
1061
1127
|
}));
|
|
1062
1128
|
}
|
|
1063
|
-
function
|
|
1064
|
-
e.store.unregisterGanttBar(
|
|
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
|
|
1132
|
+
function J() {
|
|
1067
1133
|
e.store.isDependencyGraphEnabled && (h.value = !0, m.value = !0);
|
|
1068
1134
|
}
|
|
1069
|
-
function
|
|
1070
|
-
!
|
|
1135
|
+
function G() {
|
|
1136
|
+
!I.value && !E.value && (h.value = !1, m.value = !1);
|
|
1071
1137
|
}
|
|
1072
|
-
function
|
|
1073
|
-
|
|
1074
|
-
const
|
|
1075
|
-
if (
|
|
1076
|
-
const
|
|
1077
|
-
|
|
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
|
|
1080
|
-
|
|
1081
|
-
},
|
|
1082
|
-
|
|
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",
|
|
1150
|
+
document.addEventListener("mousemove", Y), document.addEventListener("mouseup", Q);
|
|
1085
1151
|
}
|
|
1086
|
-
function
|
|
1087
|
-
const
|
|
1088
|
-
if (
|
|
1089
|
-
const
|
|
1090
|
-
if (
|
|
1091
|
-
const
|
|
1092
|
-
`${
|
|
1093
|
-
`${
|
|
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
|
-
|
|
1161
|
+
Ke && i("connection:create", Ke);
|
|
1096
1162
|
}
|
|
1097
1163
|
}
|
|
1098
1164
|
}
|
|
1099
|
-
function
|
|
1100
|
-
|
|
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:
|
|
1104
|
-
cleanupConnectionDrag:
|
|
1105
|
-
currentEnd:
|
|
1106
|
-
handleConnectionDrop:
|
|
1107
|
-
isLeftConnectionDragging:
|
|
1169
|
+
barStyle: le,
|
|
1170
|
+
cleanupConnectionDrag: Me,
|
|
1171
|
+
currentEnd: v,
|
|
1172
|
+
handleConnectionDrop: pe,
|
|
1173
|
+
isLeftConnectionDragging: I,
|
|
1108
1174
|
isLeftConnectionVisible: h,
|
|
1109
|
-
isRightConnectionDragging:
|
|
1175
|
+
isRightConnectionDragging: E,
|
|
1110
1176
|
isRightConnectionVisible: m,
|
|
1111
|
-
showDragPreview:
|
|
1112
|
-
}), (S,
|
|
1177
|
+
showDragPreview: H
|
|
1178
|
+
}), (S, B) => (y(), C("td", {
|
|
1113
1179
|
class: "aganttcell",
|
|
1114
1180
|
colspan: e.colspan
|
|
1115
1181
|
}, [
|
|
1116
|
-
|
|
1117
|
-
|
|
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:
|
|
1122
|
-
style:
|
|
1123
|
-
onMouseenter:
|
|
1124
|
-
onMouseleave:
|
|
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 ? (
|
|
1192
|
+
e.store.isDependencyGraphEnabled ? (y(), C("div", {
|
|
1127
1193
|
key: 0,
|
|
1128
1194
|
ref: "leftConnectionHandle",
|
|
1129
|
-
class:
|
|
1130
|
-
onMousedown:
|
|
1131
|
-
}, [...
|
|
1132
|
-
|
|
1133
|
-
])], 34)) :
|
|
1134
|
-
e.store.isDependencyGraphEnabled ? (
|
|
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:
|
|
1138
|
-
onMousedown:
|
|
1139
|
-
}, [...
|
|
1140
|
-
|
|
1141
|
-
])], 34)) :
|
|
1142
|
-
|
|
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:
|
|
1145
|
-
}, [...
|
|
1146
|
-
|
|
1147
|
-
|
|
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 ? (
|
|
1150
|
-
|
|
1215
|
+
e.label ? (y(), C("label", Xn, xe(e.label), 1)) : K("", !0),
|
|
1216
|
+
W("div", {
|
|
1151
1217
|
ref: "rightResizeHandle",
|
|
1152
|
-
class:
|
|
1153
|
-
}, [...
|
|
1154
|
-
|
|
1155
|
-
|
|
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,
|
|
1223
|
+
], 46, zn)
|
|
1158
1224
|
], 512),
|
|
1159
|
-
e.store.isDependencyGraphEnabled &&
|
|
1225
|
+
e.store.isDependencyGraphEnabled && H.value ? (y(), C("svg", {
|
|
1160
1226
|
key: 0,
|
|
1161
|
-
style:
|
|
1227
|
+
style: me(j.value)
|
|
1162
1228
|
}, [
|
|
1163
|
-
|
|
1164
|
-
x1:
|
|
1165
|
-
y1:
|
|
1166
|
-
x2:
|
|
1167
|
-
y2:
|
|
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,
|
|
1172
|
-
], 4)) :
|
|
1173
|
-
], 8,
|
|
1237
|
+
}, null, 8, Gn)
|
|
1238
|
+
], 4)) : K("", !0)
|
|
1239
|
+
], 8, Wn));
|
|
1174
1240
|
}
|
|
1175
|
-
}),
|
|
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
|
-
`,
|
|
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>`,
|
|
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>`,
|
|
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>`,
|
|
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>`,
|
|
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>`,
|
|
1220
|
-
add:
|
|
1221
|
-
delete:
|
|
1222
|
-
duplicate:
|
|
1223
|
-
insertAbove:
|
|
1224
|
-
insertBelow:
|
|
1225
|
-
move:
|
|
1226
|
-
},
|
|
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
|
-
},
|
|
1295
|
+
}, no = ["aria-expanded"], oo = ["onClick"], lo = ["innerHTML"], ao = { class: "action-label" }, so = {
|
|
1230
1296
|
key: 1,
|
|
1231
1297
|
class: "row-actions-icons"
|
|
1232
|
-
},
|
|
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 =
|
|
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 =
|
|
1250
|
-
const h = [], m = s.config.actions || {},
|
|
1251
|
-
for (const
|
|
1252
|
-
const
|
|
1253
|
-
if (
|
|
1254
|
-
let
|
|
1255
|
-
typeof
|
|
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
|
-
}), $ =
|
|
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
|
-
}),
|
|
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
|
-
|
|
1338
|
+
Je(u, (h) => {
|
|
1273
1339
|
const m = h[0];
|
|
1274
1340
|
m && (a.value = m.contentRect.width);
|
|
1275
1341
|
});
|
|
1276
|
-
const
|
|
1342
|
+
const x = () => {
|
|
1277
1343
|
n.value || p(), n.value = !n.value;
|
|
1278
1344
|
}, p = () => {
|
|
1279
|
-
if (!
|
|
1280
|
-
const h =
|
|
1281
|
-
c.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
|
-
|
|
1355
|
+
ot(u, () => {
|
|
1290
1356
|
n.value = !1;
|
|
1291
1357
|
});
|
|
1292
|
-
const
|
|
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) => (
|
|
1363
|
+
return (h, m) => (y(), C("td", {
|
|
1298
1364
|
ref: "actionsCell",
|
|
1299
|
-
class:
|
|
1365
|
+
class: oe(["atable-row-actions", { "sticky-column": e.position === "before-index", "dropdown-active": n.value }])
|
|
1300
1366
|
}, [
|
|
1301
|
-
$.value ? (
|
|
1302
|
-
|
|
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:
|
|
1374
|
+
onClick: Se(x, ["stop"])
|
|
1309
1375
|
}, [...m[0] || (m[0] = [
|
|
1310
|
-
|
|
1311
|
-
])], 8,
|
|
1312
|
-
|
|
1313
|
-
class:
|
|
1314
|
-
style:
|
|
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
|
-
(
|
|
1318
|
-
key:
|
|
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:
|
|
1388
|
+
onClick: Se((E) => v(I.type), ["stop"])
|
|
1323
1389
|
}, [
|
|
1324
|
-
|
|
1390
|
+
W("span", {
|
|
1325
1391
|
class: "action-icon",
|
|
1326
|
-
innerHTML:
|
|
1327
|
-
}, null, 8,
|
|
1328
|
-
|
|
1329
|
-
], 8,
|
|
1392
|
+
innerHTML: I.icon
|
|
1393
|
+
}, null, 8, lo),
|
|
1394
|
+
W("span", ao, xe(I.label), 1)
|
|
1395
|
+
], 8, oo))), 128))
|
|
1330
1396
|
], 6), [
|
|
1331
|
-
[
|
|
1397
|
+
[it, n.value]
|
|
1332
1398
|
])
|
|
1333
|
-
])) : (
|
|
1334
|
-
(
|
|
1335
|
-
key:
|
|
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:
|
|
1339
|
-
"aria-label":
|
|
1340
|
-
onClick:
|
|
1404
|
+
title: I.label,
|
|
1405
|
+
"aria-label": I.label,
|
|
1406
|
+
onClick: Se((E) => v(I.type), ["stop"])
|
|
1341
1407
|
}, [
|
|
1342
|
-
|
|
1408
|
+
W("span", {
|
|
1343
1409
|
class: "action-icon",
|
|
1344
|
-
innerHTML:
|
|
1345
|
-
}, null, 8,
|
|
1346
|
-
], 8,
|
|
1410
|
+
innerHTML: I.icon
|
|
1411
|
+
}, null, 8, ro)
|
|
1412
|
+
], 8, io))), 128))
|
|
1347
1413
|
]))
|
|
1348
1414
|
], 2));
|
|
1349
1415
|
}
|
|
1350
|
-
}),
|
|
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 =
|
|
1361
|
-
s("row:action",
|
|
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
|
|
1365
|
-
typeof e.addNavigation == "object" && (
|
|
1366
|
-
...
|
|
1430
|
+
let f = Qe;
|
|
1431
|
+
typeof e.addNavigation == "object" && (f = {
|
|
1432
|
+
...f,
|
|
1367
1433
|
...e.addNavigation
|
|
1368
|
-
}),
|
|
1434
|
+
}), ft([
|
|
1369
1435
|
{
|
|
1370
1436
|
selectors: i,
|
|
1371
|
-
handlers:
|
|
1437
|
+
handlers: f
|
|
1372
1438
|
}
|
|
1373
1439
|
]);
|
|
1374
1440
|
}
|
|
1375
|
-
return (
|
|
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" ? (
|
|
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"])) :
|
|
1388
|
-
e.store.config.view !== "uncounted" ?
|
|
1389
|
-
e.store.config.view === "list" ? (
|
|
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:
|
|
1393
|
-
},
|
|
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:
|
|
1462
|
+
class: oe(["tree-index", e.store.hasPinnedColumns ? "sticky-index" : ""]),
|
|
1397
1463
|
onClick: g[0] || (g[0] = ($) => e.store.toggleRowExpand(e.rowIndex))
|
|
1398
|
-
},
|
|
1399
|
-
], !0) :
|
|
1400
|
-
n.value && c.value === "after-index" ? (
|
|
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"])) :
|
|
1408
|
-
|
|
1409
|
-
n.value && c.value === "end" ? (
|
|
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"])) :
|
|
1417
|
-
], 8,
|
|
1418
|
-
[
|
|
1482
|
+
}, null, 8, ["row-index", "store", "config", "position"])) : K("", !0)
|
|
1483
|
+
], 8, co)), [
|
|
1484
|
+
[it, u.value]
|
|
1419
1485
|
]);
|
|
1420
1486
|
}
|
|
1421
|
-
}),
|
|
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 =
|
|
1491
|
+
if (typeof t.value == "function") i = ot(e, t.value, { capture: s });
|
|
1426
1492
|
else {
|
|
1427
|
-
const [u,
|
|
1428
|
-
i =
|
|
1493
|
+
const [u, o] = t.value;
|
|
1494
|
+
i = ot(e, u, Object.assign({ capture: s }, o));
|
|
1429
1495
|
}
|
|
1430
|
-
|
|
1496
|
+
nt.set(e, i);
|
|
1431
1497
|
},
|
|
1432
1498
|
unmounted(e) {
|
|
1433
|
-
const t =
|
|
1434
|
-
t && typeof t == "function" ? t() : t?.stop(),
|
|
1499
|
+
const t = nt.get(e);
|
|
1500
|
+
t && typeof t == "function" ? t() : t?.stop(), nt.delete(e);
|
|
1435
1501
|
}
|
|
1436
|
-
},
|
|
1437
|
-
typeof t.value == "function" ?
|
|
1502
|
+
}, vo = { mounted(e, t) {
|
|
1503
|
+
typeof t.value == "function" ? Je(e, t.value) : Je(e, ...t.value);
|
|
1438
1504
|
} };
|
|
1439
|
-
function
|
|
1505
|
+
function ho() {
|
|
1440
1506
|
let e = !1;
|
|
1441
|
-
const t =
|
|
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 =
|
|
1446
|
-
|
|
1511
|
+
const u = Sn(s, i.value);
|
|
1512
|
+
ce(t, (o) => u.value = o);
|
|
1447
1513
|
};
|
|
1448
1514
|
}
|
|
1449
|
-
|
|
1450
|
-
const
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
(
|
|
1539
|
+
(L) => L.barId === a.from.barId && L.side === a.from.side
|
|
1474
1540
|
), c = e.store.connectionHandles.find(
|
|
1475
|
-
(
|
|
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 +
|
|
1479
|
-
return `M ${r} ${
|
|
1480
|
-
},
|
|
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) => (
|
|
1484
|
-
(
|
|
1485
|
-
n[0] || (n[0] =
|
|
1486
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
(
|
|
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) =>
|
|
1516
|
-
}, null, 40,
|
|
1517
|
-
(
|
|
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) =>
|
|
1527
|
-
}, null, 40,
|
|
1592
|
+
onDblclick: (r) => o(c)
|
|
1593
|
+
}, null, 40, po))), 128))
|
|
1528
1594
|
]))
|
|
1529
1595
|
]));
|
|
1530
1596
|
}
|
|
1531
|
-
}),
|
|
1597
|
+
}), bo = /* @__PURE__ */ Ie(yo, [["__scopeId", "data-v-71911260"]]), Co = { class: "column-filter" }, ko = {
|
|
1532
1598
|
key: 2,
|
|
1533
1599
|
class: "checkbox-filter"
|
|
1534
|
-
},
|
|
1600
|
+
}, Mo = ["value"], Ro = {
|
|
1535
1601
|
key: 5,
|
|
1536
1602
|
class: "date-range-filter"
|
|
1537
|
-
},
|
|
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 =
|
|
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((
|
|
1552
|
-
const g =
|
|
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((
|
|
1555
|
-
value:
|
|
1556
|
-
label: String(
|
|
1620
|
+
}), Array.from(r).map((f) => ({
|
|
1621
|
+
value: f,
|
|
1622
|
+
label: String(f)
|
|
1557
1623
|
}));
|
|
1558
|
-
}, u =
|
|
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) => (
|
|
1570
|
-
(e.column.filterType || "text") === "text" ?
|
|
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] = (
|
|
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] = (
|
|
1641
|
+
onInput: r[1] || (r[1] = (f) => o(t.value))
|
|
1576
1642
|
}, null, 544)), [
|
|
1577
|
-
[
|
|
1578
|
-
]) : e.column.filterType === "number" ?
|
|
1643
|
+
[Ne, t.value]
|
|
1644
|
+
]) : e.column.filterType === "number" ? de((y(), C("input", {
|
|
1579
1645
|
key: 1,
|
|
1580
|
-
"onUpdate:modelValue": r[2] || (r[2] = (
|
|
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] = (
|
|
1649
|
+
onInput: r[3] || (r[3] = (f) => o(t.value))
|
|
1584
1650
|
}, null, 544)), [
|
|
1585
|
-
[
|
|
1586
|
-
]) : e.column.filterType === "checkbox" ? (
|
|
1587
|
-
|
|
1588
|
-
"onUpdate:modelValue": r[4] || (r[4] = (
|
|
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] = (
|
|
1657
|
+
onChange: r[5] || (r[5] = (f) => o(t.value))
|
|
1592
1658
|
}, null, 544), [
|
|
1593
|
-
[
|
|
1659
|
+
[Yt, t.value]
|
|
1594
1660
|
]),
|
|
1595
|
-
|
|
1596
|
-
])) : e.column.filterType === "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] = (
|
|
1664
|
+
"onUpdate:modelValue": r[6] || (r[6] = (f) => t.value = f),
|
|
1599
1665
|
class: "filter-select",
|
|
1600
|
-
onChange: r[7] || (r[7] = (
|
|
1666
|
+
onChange: r[7] || (r[7] = (f) => o(t.value))
|
|
1601
1667
|
}, [
|
|
1602
|
-
r[15] || (r[15] =
|
|
1603
|
-
(
|
|
1604
|
-
key:
|
|
1605
|
-
value:
|
|
1606
|
-
},
|
|
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" ?
|
|
1675
|
+
]) : e.column.filterType === "date" ? de((y(), C("input", {
|
|
1610
1676
|
key: 4,
|
|
1611
|
-
"onUpdate:modelValue": r[8] || (r[8] = (
|
|
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] = (
|
|
1680
|
+
onChange: r[9] || (r[9] = (f) => o(t.value))
|
|
1615
1681
|
}, null, 544)), [
|
|
1616
|
-
[
|
|
1617
|
-
]) : e.column.filterType === "dateRange" ? (
|
|
1618
|
-
|
|
1619
|
-
"onUpdate:modelValue": r[10] || (r[10] = (
|
|
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] = (
|
|
1688
|
+
onChange: r[11] || (r[11] = (f) => a("start", s.startValue))
|
|
1623
1689
|
}, null, 544), [
|
|
1624
|
-
[
|
|
1690
|
+
[Ne, s.startValue]
|
|
1625
1691
|
]),
|
|
1626
|
-
r[16] || (r[16] =
|
|
1627
|
-
|
|
1628
|
-
"onUpdate:modelValue": r[12] || (r[12] = (
|
|
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] = (
|
|
1697
|
+
onChange: r[13] || (r[13] = (f) => a("end", s.endValue))
|
|
1632
1698
|
}, null, 544), [
|
|
1633
|
-
[
|
|
1699
|
+
[Ne, s.endValue]
|
|
1634
1700
|
])
|
|
1635
|
-
])) : e.column.filterType === "component" && 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] = (
|
|
1642
|
-
}, null, 40, ["value", "column", "colIndex", "store"])) :
|
|
1643
|
-
u.value ? (
|
|
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
|
-
}, "×")) :
|
|
1714
|
+
}, "×")) : K("", !0)
|
|
1649
1715
|
]));
|
|
1650
1716
|
}
|
|
1651
|
-
}),
|
|
1717
|
+
}), $o = /* @__PURE__ */ Ie(Io, [["__scopeId", "data-v-8487462d"]]), Eo = { key: 0 }, So = {
|
|
1652
1718
|
class: "atable-header-row",
|
|
1653
1719
|
tabindex: "-1"
|
|
1654
|
-
},
|
|
1720
|
+
}, Ao = {
|
|
1655
1721
|
key: 2,
|
|
1656
1722
|
class: "row-actions-header"
|
|
1657
|
-
},
|
|
1723
|
+
}, To = ["data-colindex", "onClick"], Do = {
|
|
1658
1724
|
key: 3,
|
|
1659
1725
|
class: "row-actions-header"
|
|
1660
|
-
},
|
|
1726
|
+
}, Ho = {
|
|
1661
1727
|
key: 0,
|
|
1662
1728
|
class: "atable-filters-row"
|
|
1663
|
-
},
|
|
1729
|
+
}, Lo = {
|
|
1664
1730
|
key: 2,
|
|
1665
1731
|
class: "row-actions-header"
|
|
1666
|
-
},
|
|
1732
|
+
}, Oo = {
|
|
1667
1733
|
key: 3,
|
|
1668
1734
|
class: "row-actions-header"
|
|
1669
|
-
}, Ot = /* @__PURE__ */
|
|
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 =
|
|
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
|
|
1680
|
-
typeof $ == "number" && $ !==
|
|
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 ? (
|
|
1684
|
-
|
|
1685
|
-
i.value && u.value === "before-index" ? (
|
|
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:
|
|
1688
|
-
}, null, 2)) :
|
|
1689
|
-
t.store.zeroColumn ? (
|
|
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:
|
|
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)) :
|
|
1698
|
-
i.value && u.value === "after-index" ? (
|
|
1699
|
-
(
|
|
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":
|
|
1767
|
+
"data-colindex": f,
|
|
1702
1768
|
tabindex: "-1",
|
|
1703
|
-
style:
|
|
1704
|
-
class:
|
|
1705
|
-
onClick: (g) => r.sortable !== !1 ?
|
|
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
|
-
|
|
1708
|
-
jt(
|
|
1773
|
+
fe(n.$slots, "default", {}, () => [
|
|
1774
|
+
jt(xe(r.label || String.fromCharCode(f + 97).toUpperCase()), 1)
|
|
1709
1775
|
])
|
|
1710
|
-
], 14,
|
|
1711
|
-
[
|
|
1776
|
+
], 14, To)), [
|
|
1777
|
+
[Z(vo), a]
|
|
1712
1778
|
])), 128)),
|
|
1713
|
-
i.value && u.value === "end" ? (
|
|
1779
|
+
i.value && u.value === "end" ? (y(), C("th", Do)) : K("", !0)
|
|
1714
1780
|
]),
|
|
1715
|
-
s.value.length > 0 ? (
|
|
1716
|
-
i.value && u.value === "before-index" ? (
|
|
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:
|
|
1719
|
-
}, null, 2)) :
|
|
1720
|
-
t.store.zeroColumn ? (
|
|
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:
|
|
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)) :
|
|
1728
|
-
i.value && u.value === "after-index" ? (
|
|
1729
|
-
(
|
|
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:
|
|
1732
|
-
style:
|
|
1797
|
+
class: oe(`${r.pinned ? "sticky-column" : ""}`),
|
|
1798
|
+
style: me(t.store.getHeaderCellStyle(r))
|
|
1733
1799
|
}, [
|
|
1734
|
-
r.filterable ? (
|
|
1800
|
+
r.filterable ? (y(), ve($o, {
|
|
1735
1801
|
key: 0,
|
|
1736
1802
|
column: r,
|
|
1737
|
-
"col-index":
|
|
1803
|
+
"col-index": f,
|
|
1738
1804
|
store: t.store
|
|
1739
|
-
}, null, 8, ["column", "col-index", "store"])) :
|
|
1805
|
+
}, null, 8, ["column", "col-index", "store"])) : K("", !0)
|
|
1740
1806
|
], 6))), 128)),
|
|
1741
|
-
i.value && u.value === "end" ? (
|
|
1742
|
-
])) :
|
|
1743
|
-
])) :
|
|
1807
|
+
i.value && u.value === "end" ? (y(), C("th", Oo)) : K("", !0)
|
|
1808
|
+
])) : K("", !0)
|
|
1809
|
+
])) : K("", !0);
|
|
1744
1810
|
}
|
|
1745
|
-
}),
|
|
1811
|
+
}), Vt = /* @__PURE__ */ we({
|
|
1746
1812
|
__name: "ATableModal",
|
|
1747
1813
|
props: {
|
|
1748
1814
|
store: {}
|
|
1749
1815
|
},
|
|
1750
1816
|
setup(e) {
|
|
1751
|
-
const t =
|
|
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
|
|
1754
|
-
if (!
|
|
1755
|
-
const a =
|
|
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 =
|
|
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
|
|
1760
|
-
return
|
|
1761
|
-
left: `${
|
|
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 (
|
|
1831
|
+
return (o, a) => (y(), C("div", {
|
|
1766
1832
|
ref: "amodal",
|
|
1767
1833
|
class: "amodal",
|
|
1768
1834
|
tabindex: "-1",
|
|
1769
|
-
style:
|
|
1770
|
-
onClick: a[0] || (a[0] =
|
|
1835
|
+
style: me(u.value),
|
|
1836
|
+
onClick: a[0] || (a[0] = Se(() => {
|
|
1771
1837
|
}, ["stop"])),
|
|
1772
|
-
onInput: a[1] || (a[1] =
|
|
1838
|
+
onInput: a[1] || (a[1] = Se(() => {
|
|
1773
1839
|
}, ["stop"]))
|
|
1774
1840
|
}, [
|
|
1775
|
-
|
|
1841
|
+
fe(o.$slots, "default")
|
|
1776
1842
|
], 36));
|
|
1777
1843
|
}
|
|
1778
|
-
}),
|
|
1779
|
-
const t = e.id ||
|
|
1780
|
-
return
|
|
1844
|
+
}), Vo = (e) => {
|
|
1845
|
+
const t = e.id || Tn();
|
|
1846
|
+
return qt(`table-${t}`, () => {
|
|
1781
1847
|
const i = () => {
|
|
1782
|
-
const
|
|
1783
|
-
for (let
|
|
1784
|
-
const M =
|
|
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 = (
|
|
1788
|
-
for (let M = 0; M <
|
|
1789
|
-
if (
|
|
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
|
-
},
|
|
1793
|
-
const M = a.value,
|
|
1794
|
-
if (!
|
|
1795
|
-
switch (
|
|
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
|
|
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
|
|
1809
|
-
const M =
|
|
1810
|
-
|
|
1811
|
-
childrenOpen:
|
|
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:
|
|
1815
|
-
isRoot:
|
|
1880
|
+
isParent: ee,
|
|
1881
|
+
isRoot: N,
|
|
1816
1882
|
rowModified: !1,
|
|
1817
|
-
open:
|
|
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
|
|
1823
|
-
}, u =
|
|
1824
|
-
const
|
|
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 [
|
|
1827
|
-
|
|
1828
|
-
return
|
|
1829
|
-
}),
|
|
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
|
|
1832
|
-
for (let d = 0; d <
|
|
1833
|
-
n.value[d] && (
|
|
1834
|
-
if (
|
|
1835
|
-
const d = (w,
|
|
1836
|
-
const
|
|
1837
|
-
if (
|
|
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
|
|
1840
|
-
return
|
|
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 <
|
|
1843
|
-
|
|
1908
|
+
for (let w = 0; w < l.length; w++)
|
|
1909
|
+
l[w].isRoot || (l[w].open = d(w, l));
|
|
1844
1910
|
}
|
|
1845
|
-
return
|
|
1911
|
+
return l;
|
|
1846
1912
|
},
|
|
1847
|
-
set: (
|
|
1848
|
-
JSON.stringify(
|
|
1913
|
+
set: (l) => {
|
|
1914
|
+
JSON.stringify(l) !== JSON.stringify(f.value) && (f.value = l);
|
|
1849
1915
|
}
|
|
1850
|
-
}), g =
|
|
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 =
|
|
1854
|
-
const
|
|
1855
|
-
return
|
|
1856
|
-
}),
|
|
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
|
-
),
|
|
1859
|
-
let
|
|
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
|
|
1865
|
-
!
|
|
1866
|
-
const
|
|
1867
|
-
return
|
|
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
|
-
}),
|
|
1870
|
-
const d = u.value[
|
|
1871
|
-
|
|
1872
|
-
let
|
|
1873
|
-
|
|
1874
|
-
const
|
|
1875
|
-
if (!isNaN(
|
|
1876
|
-
return w === "asc" ?
|
|
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
|
|
1879
|
-
return w === "asc" ?
|
|
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
|
|
1884
|
-
}),
|
|
1885
|
-
const
|
|
1886
|
-
r.value[
|
|
1887
|
-
...
|
|
1888
|
-
[
|
|
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
|
-
},
|
|
1891
|
-
|
|
1892
|
-
},
|
|
1893
|
-
const
|
|
1894
|
-
r.value[
|
|
1895
|
-
},
|
|
1896
|
-
const d = u.value.indexOf(
|
|
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:
|
|
1899
|
-
textAlign:
|
|
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 = (
|
|
1907
|
-
if (
|
|
1908
|
-
const
|
|
1909
|
-
u.value[
|
|
1910
|
-
...u.value[
|
|
1911
|
-
width: `${
|
|
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
|
-
},
|
|
1914
|
-
const d =
|
|
1915
|
-
return
|
|
1916
|
-
},
|
|
1917
|
-
if (
|
|
1918
|
-
const d = c.value[
|
|
1919
|
-
c.value[
|
|
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:
|
|
1922
|
-
},
|
|
1987
|
+
childrenOpen: R
|
|
1988
|
+
}, R || Te(l);
|
|
1923
1989
|
} else if (a.value.view === "list-expansion") {
|
|
1924
|
-
const d = c.value[
|
|
1925
|
-
c.value[
|
|
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 = (
|
|
1931
|
-
for (let d = 0; d <
|
|
1932
|
-
if (
|
|
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
|
-
},
|
|
1940
|
-
const w =
|
|
1941
|
-
return
|
|
1942
|
-
},
|
|
1943
|
-
const
|
|
1944
|
-
return
|
|
1945
|
-
},
|
|
1946
|
-
|
|
1947
|
-
},
|
|
1948
|
-
const d =
|
|
1949
|
-
d && (
|
|
1950
|
-
},
|
|
1951
|
-
const d =
|
|
1952
|
-
d >= 0 ?
|
|
1953
|
-
},
|
|
1954
|
-
const d =
|
|
1955
|
-
d >= 0 &&
|
|
1956
|
-
},
|
|
1957
|
-
const d =
|
|
1958
|
-
d >= 0 ?
|
|
1959
|
-
},
|
|
1960
|
-
const d =
|
|
1961
|
-
d >= 0 &&
|
|
1962
|
-
}, S = (
|
|
1963
|
-
const
|
|
1964
|
-
if (!
|
|
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
|
|
1967
|
-
id: `connection-${
|
|
2032
|
+
const b = {
|
|
2033
|
+
id: `connection-${l}-${d}`,
|
|
1968
2034
|
from: {
|
|
1969
|
-
barId:
|
|
1970
|
-
side:
|
|
2035
|
+
barId: R.barId,
|
|
2036
|
+
side: R.side
|
|
1971
2037
|
},
|
|
1972
2038
|
to: {
|
|
1973
|
-
barId:
|
|
1974
|
-
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(
|
|
1980
|
-
},
|
|
1981
|
-
const d = p.value.findIndex((w) => w.id ===
|
|
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
|
-
},
|
|
1984
|
-
if (u.value[
|
|
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
|
-
|
|
1987
|
-
},
|
|
1988
|
-
const
|
|
1989
|
-
if (!
|
|
1990
|
-
switch (
|
|
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
|
|
1993
|
-
return typeof
|
|
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
|
|
1997
|
-
return !isNaN(
|
|
2062
|
+
const b = Number(l), M = Number(P);
|
|
2063
|
+
return !isNaN(b) && !isNaN(M) && b === M;
|
|
1998
2064
|
}
|
|
1999
2065
|
case "select":
|
|
2000
|
-
return
|
|
2066
|
+
return l === P;
|
|
2001
2067
|
case "checkbox":
|
|
2002
|
-
return
|
|
2068
|
+
return P === !0 ? !!l : !0;
|
|
2003
2069
|
case "date": {
|
|
2004
|
-
let
|
|
2005
|
-
if (typeof
|
|
2006
|
-
const
|
|
2007
|
-
|
|
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
|
-
|
|
2010
|
-
const M = new Date(String(
|
|
2011
|
-
return
|
|
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
|
|
2015
|
-
if (!
|
|
2016
|
-
let
|
|
2017
|
-
if (typeof
|
|
2018
|
-
const
|
|
2019
|
-
|
|
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
|
-
|
|
2022
|
-
return !(
|
|
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
|
-
},
|
|
2028
|
-
!d.value && !d.startValue && !d.endValue ? delete h.value[
|
|
2029
|
-
},
|
|
2030
|
-
delete h.value[
|
|
2031
|
-
},
|
|
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
|
|
2034
|
-
w[
|
|
2035
|
-
|
|
2036
|
-
let
|
|
2037
|
-
return d === "start" ? (
|
|
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:
|
|
2109
|
+
connectionHandles: x,
|
|
2044
2110
|
connectionPaths: p,
|
|
2045
|
-
display:
|
|
2111
|
+
display: f,
|
|
2046
2112
|
filterState: h,
|
|
2047
|
-
ganttBars:
|
|
2113
|
+
ganttBars: V,
|
|
2048
2114
|
modal: g,
|
|
2049
|
-
rows:
|
|
2050
|
-
sortState:
|
|
2115
|
+
rows: o,
|
|
2116
|
+
sortState: v,
|
|
2051
2117
|
table: r,
|
|
2052
2118
|
updates: $,
|
|
2053
2119
|
// getters
|
|
2054
|
-
filteredRows:
|
|
2120
|
+
filteredRows: X,
|
|
2055
2121
|
hasPinnedColumns: m,
|
|
2056
|
-
isGanttView:
|
|
2057
|
-
isTreeView:
|
|
2058
|
-
isDependencyGraphEnabled:
|
|
2059
|
-
numberedRowWidth:
|
|
2060
|
-
zeroColumn:
|
|
2122
|
+
isGanttView: I,
|
|
2123
|
+
isTreeView: E,
|
|
2124
|
+
isDependencyGraphEnabled: H,
|
|
2125
|
+
numberedRowWidth: A,
|
|
2126
|
+
zeroColumn: L,
|
|
2061
2127
|
// actions
|
|
2062
|
-
addRow:
|
|
2063
|
-
clearFilter:
|
|
2064
|
-
closeModal:
|
|
2128
|
+
addRow: Ze,
|
|
2129
|
+
clearFilter: se,
|
|
2130
|
+
closeModal: O,
|
|
2065
2131
|
createConnection: S,
|
|
2066
|
-
deleteConnection:
|
|
2067
|
-
deleteRow: (
|
|
2068
|
-
if (
|
|
2132
|
+
deleteConnection: B,
|
|
2133
|
+
deleteRow: (l) => {
|
|
2134
|
+
if (l < 0 || l >= o.value.length)
|
|
2069
2135
|
return null;
|
|
2070
|
-
const [d] =
|
|
2071
|
-
delete n.value[
|
|
2072
|
-
const w = {},
|
|
2073
|
-
for (const [
|
|
2074
|
-
const M = parseInt(
|
|
2075
|
-
M >
|
|
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 [
|
|
2078
|
-
const M = parseInt(
|
|
2079
|
-
M >
|
|
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 =
|
|
2147
|
+
return n.value = w, c.value = R, d;
|
|
2082
2148
|
},
|
|
2083
|
-
duplicateRow: (
|
|
2084
|
-
if (
|
|
2149
|
+
duplicateRow: (l) => {
|
|
2150
|
+
if (l < 0 || l >= o.value.length)
|
|
2085
2151
|
return -1;
|
|
2086
|
-
const d =
|
|
2087
|
-
return
|
|
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:
|
|
2090
|
-
getCellDisplayValue:
|
|
2091
|
-
getConnectionsForBar:
|
|
2092
|
-
getFormattedValue:
|
|
2093
|
-
getHandlesForBar:
|
|
2094
|
-
getHeaderCellStyle:
|
|
2095
|
-
getIndent:
|
|
2096
|
-
getRowExpandSymbol:
|
|
2097
|
-
insertRowAbove: (
|
|
2098
|
-
const w = Math.max(0,
|
|
2099
|
-
return
|
|
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: (
|
|
2102
|
-
const w = Math.min(
|
|
2103
|
-
return
|
|
2167
|
+
insertRowBelow: (l, d) => {
|
|
2168
|
+
const w = Math.min(l + 1, o.value.length);
|
|
2169
|
+
return Ze(d, w);
|
|
2104
2170
|
},
|
|
2105
|
-
isRowGantt:
|
|
2106
|
-
isRowVisible:
|
|
2107
|
-
moveRow: (
|
|
2108
|
-
if (
|
|
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] =
|
|
2111
|
-
|
|
2112
|
-
const
|
|
2113
|
-
for (const [
|
|
2114
|
-
const
|
|
2115
|
-
let
|
|
2116
|
-
|
|
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 [
|
|
2119
|
-
const
|
|
2120
|
-
let
|
|
2121
|
-
|
|
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 =
|
|
2189
|
+
return n.value = R, c.value = P, !0;
|
|
2124
2190
|
},
|
|
2125
|
-
registerConnectionHandle:
|
|
2126
|
-
registerGanttBar:
|
|
2191
|
+
registerConnectionHandle: pe,
|
|
2192
|
+
registerGanttBar: G,
|
|
2127
2193
|
resizeColumn: Ae,
|
|
2128
|
-
setCellData:
|
|
2129
|
-
setCellText:
|
|
2130
|
-
setFilter:
|
|
2131
|
-
sortByColumn:
|
|
2132
|
-
toggleRowExpand:
|
|
2133
|
-
unregisterConnectionHandle:
|
|
2134
|
-
unregisterGanttBar:
|
|
2135
|
-
updateGanttBar:
|
|
2136
|
-
updateRows:
|
|
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
|
-
},
|
|
2205
|
+
}, Bo = {
|
|
2140
2206
|
class: "atable-container",
|
|
2141
2207
|
style: { position: "relative" }
|
|
2142
|
-
},
|
|
2208
|
+
}, Po = /* @__PURE__ */ we({
|
|
2143
2209
|
__name: "ATable",
|
|
2144
|
-
props: /* @__PURE__ */
|
|
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__ */
|
|
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"),
|
|
2156
|
-
n.$onAction(({ name:
|
|
2157
|
-
if (
|
|
2158
|
-
const [m,
|
|
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],
|
|
2226
|
+
i.value = [...p.rows], o("cellUpdate", { colIndex: m, rowIndex: I, newValue: E, oldValue: H });
|
|
2161
2227
|
});
|
|
2162
|
-
} else if (
|
|
2163
|
-
const [m] =
|
|
2164
|
-
let
|
|
2165
|
-
m.type === "resize" ?
|
|
2166
|
-
|
|
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
|
|
2169
|
-
u.value = [...p.columns],
|
|
2234
|
+
} else x === "resizeColumn" && h(() => {
|
|
2235
|
+
u.value = [...p.columns], o("columns:update", [...p.columns]);
|
|
2170
2236
|
});
|
|
2171
|
-
}),
|
|
2237
|
+
}), ce(
|
|
2172
2238
|
() => i.value,
|
|
2173
|
-
(
|
|
2174
|
-
JSON.stringify(
|
|
2239
|
+
(x) => {
|
|
2240
|
+
JSON.stringify(x) !== JSON.stringify(n.rows) && (n.rows = [...x]);
|
|
2175
2241
|
},
|
|
2176
2242
|
{ deep: !0 }
|
|
2177
|
-
),
|
|
2243
|
+
), ce(
|
|
2178
2244
|
u,
|
|
2179
|
-
(
|
|
2180
|
-
JSON.stringify(
|
|
2245
|
+
(x) => {
|
|
2246
|
+
JSON.stringify(x) !== JSON.stringify(n.columns) && (n.columns = [...x], o("columns:update", [...x]));
|
|
2181
2247
|
},
|
|
2182
2248
|
{ deep: !0 }
|
|
2183
|
-
),
|
|
2184
|
-
u.value.some((
|
|
2249
|
+
), He(() => {
|
|
2250
|
+
u.value.some((x) => x.pinned) && (r(), n.isTreeView && Ht(a, r, { childList: !0, subtree: !0 }));
|
|
2185
2251
|
});
|
|
2186
|
-
const c =
|
|
2187
|
-
const
|
|
2188
|
-
for (const [m,
|
|
2189
|
-
const
|
|
2190
|
-
|
|
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
|
|
2193
|
-
let
|
|
2194
|
-
const
|
|
2195
|
-
for (const
|
|
2196
|
-
(
|
|
2197
|
-
|
|
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", (
|
|
2201
|
-
if (
|
|
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 &&
|
|
2270
|
+
p && at().then(() => {
|
|
2205
2271
|
p.focus();
|
|
2206
2272
|
});
|
|
2207
2273
|
}
|
|
2208
2274
|
});
|
|
2209
|
-
const
|
|
2210
|
-
if (!
|
|
2275
|
+
const f = (x) => {
|
|
2276
|
+
if (!x.gantt || c.value === 0)
|
|
2211
2277
|
return n.columns;
|
|
2212
2278
|
const p = [];
|
|
2213
|
-
for (let
|
|
2214
|
-
const h = { ...n.columns[
|
|
2215
|
-
h.originalIndex =
|
|
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:
|
|
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 = (
|
|
2226
|
-
|
|
2227
|
-
}, $ = (
|
|
2228
|
-
|
|
2229
|
-
},
|
|
2230
|
-
switch (
|
|
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
|
|
2233
|
-
i.value = [...n.rows],
|
|
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
|
|
2238
|
-
|
|
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
|
|
2243
|
-
if (
|
|
2244
|
-
const h = n.rows[
|
|
2245
|
-
i.value = [...n.rows],
|
|
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
|
|
2251
|
-
i.value = [...n.rows],
|
|
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
|
|
2256
|
-
i.value = [...n.rows],
|
|
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
|
-
|
|
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
|
-
}), (
|
|
2279
|
-
|
|
2344
|
+
}), (x, p) => (y(), C("div", Bo, [
|
|
2345
|
+
de((y(), C("table", {
|
|
2280
2346
|
ref: "table",
|
|
2281
2347
|
class: "atable",
|
|
2282
|
-
style:
|
|
2283
|
-
width:
|
|
2348
|
+
style: me({
|
|
2349
|
+
width: Z(n).config.fullWidth ? "100%" : "auto"
|
|
2284
2350
|
})
|
|
2285
2351
|
}, [
|
|
2286
|
-
|
|
2352
|
+
fe(x.$slots, "header", { data: Z(n) }, () => [
|
|
2287
2353
|
pt(Ot, {
|
|
2288
|
-
columns:
|
|
2289
|
-
store:
|
|
2354
|
+
columns: Z(n).columns,
|
|
2355
|
+
store: Z(n)
|
|
2290
2356
|
}, null, 8, ["columns", "store"])
|
|
2291
2357
|
], !0),
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
(
|
|
2295
|
-
key: `${
|
|
2296
|
-
row:
|
|
2297
|
-
rowIndex:
|
|
2298
|
-
store:
|
|
2299
|
-
"onRow:action":
|
|
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
|
-
(
|
|
2368
|
+
(y(!0), C(he, null, ye(f(v), (m, I) => (y(), C(he, {
|
|
2303
2369
|
key: m.name
|
|
2304
2370
|
}, [
|
|
2305
|
-
m.isGantt ? (
|
|
2371
|
+
m.isGantt ? (y(), ve(We(m.ganttComponent || "AGanttCell"), {
|
|
2306
2372
|
key: 0,
|
|
2307
|
-
store:
|
|
2308
|
-
"columns-count":
|
|
2309
|
-
color:
|
|
2310
|
-
start:
|
|
2311
|
-
end:
|
|
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:
|
|
2315
|
-
colIndex: m.originalIndex ??
|
|
2316
|
-
style:
|
|
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:
|
|
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"])) : (
|
|
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:
|
|
2390
|
+
store: Z(n),
|
|
2325
2391
|
pinned: m.pinned,
|
|
2326
|
-
rowIndex:
|
|
2327
|
-
colIndex:
|
|
2328
|
-
style:
|
|
2392
|
+
rowIndex: v.originalIndex,
|
|
2393
|
+
colIndex: I,
|
|
2394
|
+
style: me({
|
|
2329
2395
|
textAlign: m?.align || "center",
|
|
2330
|
-
width:
|
|
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
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
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
|
-
(
|
|
2345
|
-
key: `${
|
|
2346
|
-
"col-index":
|
|
2347
|
-
"row-index":
|
|
2348
|
-
store:
|
|
2349
|
-
},
|
|
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
|
-
[
|
|
2419
|
+
[it, Z(n).modal.visible]
|
|
2354
2420
|
])
|
|
2355
2421
|
], !0)
|
|
2356
2422
|
], 4)), [
|
|
2357
|
-
[
|
|
2423
|
+
[Z(fo), Z(n).closeModal]
|
|
2358
2424
|
]),
|
|
2359
|
-
|
|
2425
|
+
Z(n).isGanttView && Z(n).isDependencyGraphEnabled ? (y(), ve(bo, {
|
|
2360
2426
|
key: 0,
|
|
2361
|
-
store:
|
|
2427
|
+
store: Z(n),
|
|
2362
2428
|
"onConnection:delete": $
|
|
2363
|
-
}, null, 8, ["store"])) :
|
|
2429
|
+
}, null, 8, ["store"])) : K("", !0)
|
|
2364
2430
|
]));
|
|
2365
2431
|
}
|
|
2366
|
-
}),
|
|
2367
|
-
function
|
|
2368
|
-
return
|
|
2369
|
-
|
|
2370
|
-
|
|
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] =
|
|
2438
|
+
t[0] || (t[0] = W("div", { class: "aloading-bar" }, null, -1))
|
|
2373
2439
|
]);
|
|
2374
2440
|
}
|
|
2375
|
-
const
|
|
2376
|
-
function
|
|
2377
|
-
return
|
|
2378
|
-
|
|
2379
|
-
|
|
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] =
|
|
2447
|
+
t[0] || (t[0] = W("div", { class: "aloading-bar" }, null, -1))
|
|
2382
2448
|
]);
|
|
2383
2449
|
}
|
|
2384
|
-
const
|
|
2385
|
-
function
|
|
2386
|
-
e.component("ACell",
|
|
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
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
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
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
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
|