@stonecrop/atable 0.2.32 → 0.2.34
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/src/tsdoc-metadata.json +1 -1
- package/dist/atable.js +591 -605
- package/dist/atable.js.map +1 -1
- package/dist/atable.umd.cjs +1 -1
- package/dist/atable.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/src/components/ACell.vue +47 -47
- package/src/components/AExpansionRow.vue +24 -23
- package/src/components/ARow.vue +23 -27
- package/src/components/ATable.vue +18 -17
- package/src/components/ATableHeader.vue +3 -7
- package/src/components/ATableModal.vue +3 -3
package/dist/atable.js
CHANGED
|
@@ -1,368 +1,368 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var C = (
|
|
4
|
-
import { onMounted as xe, ref as
|
|
5
|
-
function Ce(
|
|
6
|
-
return Ee() ? (Ie(
|
|
1
|
+
var Pe = Object.defineProperty;
|
|
2
|
+
var He = (e, t, n) => t in e ? Pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var C = (e, t, n) => He(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { onMounted as xe, ref as I, watch as S, onBeforeUnmount as je, computed as b, unref as m, getCurrentScope as Ee, onScopeDispose as Ie, getCurrentInstance as Ne, defineComponent as T, inject as Y, useTemplateRef as ee, openBlock as w, createElementBlock as g, createBlock as B, resolveDynamicComponent as ke, mergeProps as te, toDisplayString as P, Fragment as q, createElementVNode as O, renderSlot as E, createCommentVNode as G, withDirectives as Z, vShow as Ae, toRef as We, readonly as Ve, customRef as Ue, reactive as $, renderList as K, normalizeStyle as z, createTextVNode as Be, provide as ze, nextTick as Fe, createVNode as de, withCtx as ce } from "vue";
|
|
5
|
+
function Ce(e) {
|
|
6
|
+
return Ee() ? (Ie(e), !0) : !1;
|
|
7
7
|
}
|
|
8
|
-
function ne(
|
|
9
|
-
return typeof
|
|
8
|
+
function ne(e) {
|
|
9
|
+
return typeof e == "function" ? e() : m(e);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const qe = typeof window < "u" && typeof document < "u";
|
|
12
12
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
13
|
-
const
|
|
14
|
-
};
|
|
15
|
-
function
|
|
16
|
-
var
|
|
17
|
-
const n = ne(
|
|
18
|
-
return (
|
|
13
|
+
const Ge = (e) => e != null, Ye = Object.prototype.toString, Xe = (e) => Ye.call(e) === "[object Object]", Je = () => {
|
|
14
|
+
}, N = qe ? window : void 0;
|
|
15
|
+
function H(e) {
|
|
16
|
+
var t;
|
|
17
|
+
const n = ne(e);
|
|
18
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return Xe;
|
|
20
|
+
function j(...e) {
|
|
21
|
+
let t, n, o, l;
|
|
22
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = N) : [t, n, o, l] = e, !t)
|
|
23
|
+
return Je;
|
|
25
24
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
}, r = (
|
|
29
|
-
() => [
|
|
30
|
-
([
|
|
31
|
-
if (
|
|
25
|
+
const i = [], a = () => {
|
|
26
|
+
i.forEach((s) => s()), i.length = 0;
|
|
27
|
+
}, r = (s, v, c, p) => (s.addEventListener(v, c, p), () => s.removeEventListener(v, c, p)), u = S(
|
|
28
|
+
() => [H(t), ne(l)],
|
|
29
|
+
([s, v]) => {
|
|
30
|
+
if (a(), !s)
|
|
32
31
|
return;
|
|
33
|
-
const c =
|
|
34
|
-
|
|
35
|
-
...n.flatMap((
|
|
32
|
+
const c = Xe(v) ? { ...v } : v;
|
|
33
|
+
i.push(
|
|
34
|
+
...n.flatMap((p) => o.map((f) => r(s, p, f, c)))
|
|
36
35
|
);
|
|
37
36
|
},
|
|
38
37
|
{ immediate: !0, flush: "post" }
|
|
39
38
|
), d = () => {
|
|
40
|
-
|
|
39
|
+
u(), a();
|
|
41
40
|
};
|
|
42
41
|
return Ce(d), d;
|
|
43
42
|
}
|
|
44
|
-
function
|
|
45
|
-
const
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
},
|
|
43
|
+
function Qe() {
|
|
44
|
+
const e = I(!1), t = Ne();
|
|
45
|
+
return t && xe(() => {
|
|
46
|
+
e.value = !0;
|
|
47
|
+
}, t), e;
|
|
49
48
|
}
|
|
50
|
-
function
|
|
51
|
-
const
|
|
52
|
-
return
|
|
49
|
+
function Ze(e) {
|
|
50
|
+
const t = Qe();
|
|
51
|
+
return b(() => (t.value, !!e()));
|
|
53
52
|
}
|
|
54
|
-
function
|
|
55
|
-
const { window: o =
|
|
56
|
-
let
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
const c = ne(
|
|
61
|
-
return new Set(
|
|
53
|
+
function Ke(e, t, n = {}) {
|
|
54
|
+
const { window: o = N, ...l } = n;
|
|
55
|
+
let i;
|
|
56
|
+
const a = Ze(() => o && "MutationObserver" in o), r = () => {
|
|
57
|
+
i && (i.disconnect(), i = void 0);
|
|
58
|
+
}, u = b(() => {
|
|
59
|
+
const c = ne(e), p = (Array.isArray(c) ? c : [c]).map(H).filter(Ge);
|
|
60
|
+
return new Set(p);
|
|
62
61
|
}), d = S(
|
|
63
|
-
() =>
|
|
62
|
+
() => u.value,
|
|
64
63
|
(c) => {
|
|
65
|
-
r(),
|
|
64
|
+
r(), a.value && c.size && (i = new MutationObserver(t), c.forEach((p) => i.observe(p, l)));
|
|
66
65
|
},
|
|
67
66
|
{ immediate: !0, flush: "post" }
|
|
68
|
-
),
|
|
69
|
-
|
|
67
|
+
), s = () => i == null ? void 0 : i.takeRecords(), v = () => {
|
|
68
|
+
d(), r();
|
|
70
69
|
};
|
|
71
|
-
return Ce(
|
|
72
|
-
isSupported:
|
|
73
|
-
stop:
|
|
74
|
-
takeRecords:
|
|
70
|
+
return Ce(v), {
|
|
71
|
+
isSupported: a,
|
|
72
|
+
stop: v,
|
|
73
|
+
takeRecords: s
|
|
75
74
|
};
|
|
76
75
|
}
|
|
77
|
-
function
|
|
78
|
-
var
|
|
76
|
+
function _e(e = {}) {
|
|
77
|
+
var t;
|
|
79
78
|
const {
|
|
80
|
-
window: n =
|
|
79
|
+
window: n = N,
|
|
81
80
|
deep: o = !0,
|
|
82
|
-
triggerOnRemoval:
|
|
83
|
-
} =
|
|
81
|
+
triggerOnRemoval: l = !1
|
|
82
|
+
} = e, i = (t = e.document) != null ? t : n == null ? void 0 : n.document, a = () => {
|
|
84
83
|
var d;
|
|
85
|
-
let
|
|
84
|
+
let s = i == null ? void 0 : i.activeElement;
|
|
86
85
|
if (o)
|
|
87
|
-
for (;
|
|
88
|
-
|
|
89
|
-
return
|
|
90
|
-
}, r =
|
|
91
|
-
r.value =
|
|
86
|
+
for (; s != null && s.shadowRoot; )
|
|
87
|
+
s = (d = s == null ? void 0 : s.shadowRoot) == null ? void 0 : d.activeElement;
|
|
88
|
+
return s;
|
|
89
|
+
}, r = I(), u = () => {
|
|
90
|
+
r.value = a();
|
|
92
91
|
};
|
|
93
|
-
return n && (
|
|
94
|
-
d.relatedTarget === null &&
|
|
95
|
-
}, !0),
|
|
96
|
-
d.filter((
|
|
97
|
-
|
|
92
|
+
return n && (j(n, "blur", (d) => {
|
|
93
|
+
d.relatedTarget === null && u();
|
|
94
|
+
}, !0), j(n, "focus", u, !0)), l && Ke(i, (d) => {
|
|
95
|
+
d.filter((s) => s.removedNodes.length).map((s) => Array.from(s.removedNodes)).flat().forEach((s) => {
|
|
96
|
+
s === r.value && u();
|
|
98
97
|
});
|
|
99
98
|
}, {
|
|
100
99
|
childList: !0,
|
|
101
100
|
subtree: !0
|
|
102
|
-
}),
|
|
101
|
+
}), u(), r;
|
|
103
102
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
const et = "focusin", tt = "focusout";
|
|
104
|
+
function nt(e, t = {}) {
|
|
105
|
+
const { window: n = N } = t, o = b(() => H(e)), l = I(!1), i = b(() => l.value), a = _e(t);
|
|
106
|
+
return !n || !a.value ? { focused: i } : (j(o, et, () => l.value = !0), j(o, tt, () => l.value = !1), { focused: i });
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
const o =
|
|
110
|
-
if (!
|
|
111
|
-
const
|
|
112
|
-
if (!
|
|
108
|
+
function ot(e, { window: t = N, scrollTarget: n } = {}) {
|
|
109
|
+
const o = I(!1), l = () => {
|
|
110
|
+
if (!t) return;
|
|
111
|
+
const i = t.document, a = H(e);
|
|
112
|
+
if (!a)
|
|
113
113
|
o.value = !1;
|
|
114
114
|
else {
|
|
115
|
-
const r =
|
|
116
|
-
o.value = r.top <= (
|
|
115
|
+
const r = a.getBoundingClientRect();
|
|
116
|
+
o.value = r.top <= (t.innerHeight || i.documentElement.clientHeight) && r.left <= (t.innerWidth || i.documentElement.clientWidth) && r.bottom >= 0 && r.right >= 0;
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
return S(
|
|
120
|
-
() =>
|
|
121
|
-
() =>
|
|
120
|
+
() => H(e),
|
|
121
|
+
() => l(),
|
|
122
122
|
{ immediate: !0, flush: "post" }
|
|
123
|
-
),
|
|
123
|
+
), t && j(n || t, "scroll", l, {
|
|
124
124
|
capture: !1,
|
|
125
125
|
passive: !0
|
|
126
126
|
}), o;
|
|
127
127
|
}
|
|
128
|
-
const k = (
|
|
129
|
-
let
|
|
130
|
-
return
|
|
131
|
-
}, A = (
|
|
132
|
-
const
|
|
133
|
-
return oe(
|
|
134
|
-
}, oe = (
|
|
135
|
-
var
|
|
128
|
+
const k = (e) => {
|
|
129
|
+
let t = ot(e).value;
|
|
130
|
+
return t = t && e.offsetHeight > 0, t;
|
|
131
|
+
}, A = (e) => e.tabIndex >= 0, ue = (e) => {
|
|
132
|
+
const t = e.target;
|
|
133
|
+
return oe(t);
|
|
134
|
+
}, oe = (e) => {
|
|
135
|
+
var t;
|
|
136
136
|
let n;
|
|
137
|
-
if (
|
|
138
|
-
const o = (
|
|
137
|
+
if (e instanceof HTMLTableCellElement) {
|
|
138
|
+
const o = (t = e.parentElement) == null ? void 0 : t.previousElementSibling;
|
|
139
139
|
if (o) {
|
|
140
|
-
const
|
|
141
|
-
|
|
140
|
+
const l = Array.from(o.children)[e.cellIndex];
|
|
141
|
+
l && (n = l);
|
|
142
142
|
}
|
|
143
|
-
} else if (
|
|
144
|
-
const o =
|
|
143
|
+
} else if (e instanceof HTMLTableRowElement) {
|
|
144
|
+
const o = e.previousElementSibling;
|
|
145
145
|
o && (n = o);
|
|
146
146
|
}
|
|
147
147
|
return n && (!A(n) || !k(n)) ? oe(n) : n;
|
|
148
|
-
},
|
|
149
|
-
var
|
|
150
|
-
const n =
|
|
148
|
+
}, lt = (e) => {
|
|
149
|
+
var t;
|
|
150
|
+
const n = e.target;
|
|
151
151
|
let o;
|
|
152
152
|
if (n instanceof HTMLTableCellElement) {
|
|
153
|
-
const
|
|
154
|
-
if (
|
|
155
|
-
const
|
|
156
|
-
|
|
153
|
+
const l = (t = n.parentElement) == null ? void 0 : t.parentElement;
|
|
154
|
+
if (l) {
|
|
155
|
+
const i = l.firstElementChild.children[n.cellIndex];
|
|
156
|
+
i && (o = i);
|
|
157
157
|
}
|
|
158
158
|
} else if (n instanceof HTMLTableRowElement) {
|
|
159
|
-
const
|
|
160
|
-
if (
|
|
161
|
-
const
|
|
162
|
-
|
|
159
|
+
const l = n.parentElement;
|
|
160
|
+
if (l) {
|
|
161
|
+
const i = l.firstElementChild;
|
|
162
|
+
i && (o = i);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
return o && (!A(o) || !k(o)) ? le(o) : o;
|
|
166
|
-
}, fe = (
|
|
167
|
-
const
|
|
168
|
-
return le(
|
|
169
|
-
}, le = (
|
|
170
|
-
var
|
|
166
|
+
}, fe = (e) => {
|
|
167
|
+
const t = e.target;
|
|
168
|
+
return le(t);
|
|
169
|
+
}, le = (e) => {
|
|
170
|
+
var t;
|
|
171
171
|
let n;
|
|
172
|
-
if (
|
|
173
|
-
const o = (
|
|
172
|
+
if (e instanceof HTMLTableCellElement) {
|
|
173
|
+
const o = (t = e.parentElement) == null ? void 0 : t.nextElementSibling;
|
|
174
174
|
if (o) {
|
|
175
|
-
const
|
|
176
|
-
|
|
175
|
+
const l = Array.from(o.children)[e.cellIndex];
|
|
176
|
+
l && (n = l);
|
|
177
177
|
}
|
|
178
|
-
} else if (
|
|
179
|
-
const o =
|
|
178
|
+
} else if (e instanceof HTMLTableRowElement) {
|
|
179
|
+
const o = e.nextElementSibling;
|
|
180
180
|
o && (n = o);
|
|
181
181
|
}
|
|
182
182
|
return n && (!A(n) || !k(n)) ? le(n) : n;
|
|
183
|
-
},
|
|
184
|
-
var
|
|
185
|
-
const n =
|
|
183
|
+
}, at = (e) => {
|
|
184
|
+
var t;
|
|
185
|
+
const n = e.target;
|
|
186
186
|
let o;
|
|
187
187
|
if (n instanceof HTMLTableCellElement) {
|
|
188
|
-
const
|
|
189
|
-
if (
|
|
190
|
-
const
|
|
191
|
-
|
|
188
|
+
const l = (t = n.parentElement) == null ? void 0 : t.parentElement;
|
|
189
|
+
if (l) {
|
|
190
|
+
const i = l.lastElementChild.children[n.cellIndex];
|
|
191
|
+
i && (o = i);
|
|
192
192
|
}
|
|
193
193
|
} else if (n instanceof HTMLTableRowElement) {
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
196
|
-
const
|
|
197
|
-
|
|
194
|
+
const l = n.parentElement;
|
|
195
|
+
if (l) {
|
|
196
|
+
const i = l.lastElementChild;
|
|
197
|
+
i && (o = i);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
return o && (!A(o) || !k(o)) ? oe(o) : o;
|
|
201
|
-
},
|
|
202
|
-
const
|
|
203
|
-
return
|
|
204
|
-
},
|
|
205
|
-
var
|
|
201
|
+
}, me = (e) => {
|
|
202
|
+
const t = e.target;
|
|
203
|
+
return ae(t);
|
|
204
|
+
}, ae = (e) => {
|
|
205
|
+
var t;
|
|
206
206
|
let n;
|
|
207
|
-
if (
|
|
208
|
-
n =
|
|
207
|
+
if (e.previousElementSibling)
|
|
208
|
+
n = e.previousElementSibling;
|
|
209
209
|
else {
|
|
210
|
-
const o = (
|
|
210
|
+
const o = (t = e.parentElement) == null ? void 0 : t.previousElementSibling;
|
|
211
211
|
n = o == null ? void 0 : o.lastElementChild;
|
|
212
212
|
}
|
|
213
|
-
return n && (!A(n) || !k(n)) ?
|
|
214
|
-
},
|
|
215
|
-
const
|
|
216
|
-
return
|
|
217
|
-
},
|
|
218
|
-
var
|
|
213
|
+
return n && (!A(n) || !k(n)) ? ae(n) : n;
|
|
214
|
+
}, pe = (e) => {
|
|
215
|
+
const t = e.target;
|
|
216
|
+
return ie(t);
|
|
217
|
+
}, ie = (e) => {
|
|
218
|
+
var t;
|
|
219
219
|
let n;
|
|
220
|
-
if (
|
|
221
|
-
n =
|
|
220
|
+
if (e.nextElementSibling)
|
|
221
|
+
n = e.nextElementSibling;
|
|
222
222
|
else {
|
|
223
|
-
const o = (
|
|
223
|
+
const o = (t = e.parentElement) == null ? void 0 : t.nextElementSibling;
|
|
224
224
|
n = o == null ? void 0 : o.firstElementChild;
|
|
225
225
|
}
|
|
226
|
-
return n && (!A(n) || !k(n)) ?
|
|
227
|
-
}, ve = (
|
|
228
|
-
const
|
|
229
|
-
return
|
|
230
|
-
}, we = (
|
|
231
|
-
const
|
|
232
|
-
return
|
|
233
|
-
},
|
|
226
|
+
return n && (!A(n) || !k(n)) ? ie(n) : n;
|
|
227
|
+
}, ve = (e) => {
|
|
228
|
+
const t = e.target.parentElement.firstElementChild;
|
|
229
|
+
return t && (!A(t) || !k(t)) ? ie(t) : t;
|
|
230
|
+
}, we = (e) => {
|
|
231
|
+
const t = e.target.parentElement.lastElementChild;
|
|
232
|
+
return t && (!A(t) || !k(t)) ? ae(t) : t;
|
|
233
|
+
}, V = ["alt", "control", "shift", "meta"], it = {
|
|
234
234
|
ArrowUp: "up",
|
|
235
235
|
ArrowDown: "down",
|
|
236
236
|
ArrowLeft: "left",
|
|
237
237
|
ArrowRight: "right"
|
|
238
|
-
},
|
|
239
|
-
"keydown.up": (
|
|
240
|
-
const
|
|
241
|
-
|
|
238
|
+
}, re = {
|
|
239
|
+
"keydown.up": (e) => {
|
|
240
|
+
const t = ue(e);
|
|
241
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
242
242
|
},
|
|
243
|
-
"keydown.down": (
|
|
244
|
-
const
|
|
245
|
-
|
|
243
|
+
"keydown.down": (e) => {
|
|
244
|
+
const t = fe(e);
|
|
245
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
246
246
|
},
|
|
247
|
-
"keydown.left": (
|
|
248
|
-
const
|
|
249
|
-
|
|
247
|
+
"keydown.left": (e) => {
|
|
248
|
+
const t = me(e);
|
|
249
|
+
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
250
250
|
},
|
|
251
|
-
"keydown.right": (
|
|
252
|
-
const
|
|
253
|
-
|
|
251
|
+
"keydown.right": (e) => {
|
|
252
|
+
const t = pe(e);
|
|
253
|
+
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
254
254
|
},
|
|
255
|
-
"keydown.control.up": (
|
|
256
|
-
const
|
|
257
|
-
|
|
255
|
+
"keydown.control.up": (e) => {
|
|
256
|
+
const t = lt(e);
|
|
257
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
258
258
|
},
|
|
259
|
-
"keydown.control.down": (
|
|
260
|
-
const
|
|
261
|
-
|
|
259
|
+
"keydown.control.down": (e) => {
|
|
260
|
+
const t = at(e);
|
|
261
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
262
262
|
},
|
|
263
|
-
"keydown.control.left": (
|
|
264
|
-
const
|
|
265
|
-
|
|
263
|
+
"keydown.control.left": (e) => {
|
|
264
|
+
const t = ve(e);
|
|
265
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
266
266
|
},
|
|
267
|
-
"keydown.control.right": (
|
|
268
|
-
const
|
|
269
|
-
|
|
267
|
+
"keydown.control.right": (e) => {
|
|
268
|
+
const t = we(e);
|
|
269
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
270
270
|
},
|
|
271
|
-
"keydown.end": (
|
|
272
|
-
const
|
|
273
|
-
|
|
271
|
+
"keydown.end": (e) => {
|
|
272
|
+
const t = we(e);
|
|
273
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
274
274
|
},
|
|
275
|
-
"keydown.enter": (
|
|
276
|
-
if (
|
|
277
|
-
|
|
278
|
-
const
|
|
279
|
-
|
|
275
|
+
"keydown.enter": (e) => {
|
|
276
|
+
if (e.target instanceof HTMLTableCellElement) {
|
|
277
|
+
e.preventDefault(), e.stopPropagation();
|
|
278
|
+
const t = fe(e);
|
|
279
|
+
t && t.focus();
|
|
280
280
|
}
|
|
281
281
|
},
|
|
282
|
-
"keydown.shift.enter": (
|
|
283
|
-
if (
|
|
284
|
-
|
|
285
|
-
const
|
|
286
|
-
|
|
282
|
+
"keydown.shift.enter": (e) => {
|
|
283
|
+
if (e.target instanceof HTMLTableCellElement) {
|
|
284
|
+
e.preventDefault(), e.stopPropagation();
|
|
285
|
+
const t = ue(e);
|
|
286
|
+
t && t.focus();
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
|
-
"keydown.home": (
|
|
290
|
-
const
|
|
291
|
-
|
|
289
|
+
"keydown.home": (e) => {
|
|
290
|
+
const t = ve(e);
|
|
291
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
292
292
|
},
|
|
293
|
-
"keydown.tab": (
|
|
294
|
-
const
|
|
295
|
-
|
|
293
|
+
"keydown.tab": (e) => {
|
|
294
|
+
const t = pe(e);
|
|
295
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
296
296
|
},
|
|
297
|
-
"keydown.shift.tab": (
|
|
298
|
-
const
|
|
299
|
-
|
|
297
|
+
"keydown.shift.tab": (e) => {
|
|
298
|
+
const t = me(e);
|
|
299
|
+
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
300
300
|
}
|
|
301
301
|
};
|
|
302
|
-
function
|
|
303
|
-
const
|
|
302
|
+
function se(e) {
|
|
303
|
+
const t = (a) => {
|
|
304
304
|
let r = null;
|
|
305
|
-
return
|
|
306
|
-
}, n = (
|
|
307
|
-
const r =
|
|
308
|
-
let
|
|
309
|
-
if (typeof
|
|
310
|
-
|
|
311
|
-
else if (Array.isArray(
|
|
312
|
-
for (const d of
|
|
313
|
-
d instanceof HTMLElement ?
|
|
314
|
-
else if (
|
|
315
|
-
|
|
316
|
-
else if (Array.isArray(
|
|
317
|
-
for (const d of
|
|
318
|
-
d instanceof HTMLElement ?
|
|
305
|
+
return a.parent && (typeof a.parent == "string" ? r = document.querySelector(a.parent) : a.parent instanceof HTMLElement ? r = a.parent : r = a.parent.value), r;
|
|
306
|
+
}, n = (a) => {
|
|
307
|
+
const r = t(a);
|
|
308
|
+
let u = [];
|
|
309
|
+
if (typeof a.selectors == "string")
|
|
310
|
+
u = r ? Array.from(r.querySelectorAll(a.selectors)) : Array.from(document.querySelectorAll(a.selectors));
|
|
311
|
+
else if (Array.isArray(a.selectors))
|
|
312
|
+
for (const d of a.selectors)
|
|
313
|
+
d instanceof HTMLElement ? u.push(d) : u.push(d.$el);
|
|
314
|
+
else if (a.selectors instanceof HTMLElement)
|
|
315
|
+
u.push(a.selectors);
|
|
316
|
+
else if (Array.isArray(a.selectors.value))
|
|
317
|
+
for (const d of a.selectors.value)
|
|
318
|
+
d instanceof HTMLElement ? u.push(d) : u.push(d.$el);
|
|
319
319
|
else
|
|
320
|
-
|
|
321
|
-
return
|
|
322
|
-
}, o = (
|
|
323
|
-
const r =
|
|
324
|
-
let
|
|
325
|
-
return
|
|
326
|
-
},
|
|
327
|
-
const
|
|
328
|
-
if (
|
|
329
|
-
const d =
|
|
330
|
-
for (const
|
|
331
|
-
const [
|
|
332
|
-
if (
|
|
333
|
-
const
|
|
334
|
-
const
|
|
335
|
-
return r.getModifierState(
|
|
320
|
+
u.push(a.selectors.value);
|
|
321
|
+
return u;
|
|
322
|
+
}, o = (a) => {
|
|
323
|
+
const r = t(a);
|
|
324
|
+
let u = [];
|
|
325
|
+
return a.selectors ? u = n(a) : r && (u = Array.from(r.children).filter((d) => A(d) && k(d))), u;
|
|
326
|
+
}, l = (a) => (r) => {
|
|
327
|
+
const u = it[r.key] || r.key.toLowerCase();
|
|
328
|
+
if (V.includes(u)) return;
|
|
329
|
+
const d = a.handlers || re;
|
|
330
|
+
for (const s of Object.keys(d)) {
|
|
331
|
+
const [v, ...c] = s.split(".");
|
|
332
|
+
if (v === "keydown" && c.includes(u)) {
|
|
333
|
+
const p = d[s], f = c.filter((y) => V.includes(y)), x = V.some((y) => {
|
|
334
|
+
const D = y.charAt(0).toUpperCase() + y.slice(1);
|
|
335
|
+
return r.getModifierState(D);
|
|
336
336
|
});
|
|
337
|
-
if (
|
|
338
|
-
if (
|
|
339
|
-
for (const y of
|
|
337
|
+
if (f.length > 0) {
|
|
338
|
+
if (x) {
|
|
339
|
+
for (const y of V)
|
|
340
340
|
if (c.includes(y)) {
|
|
341
|
-
const
|
|
342
|
-
r.getModifierState(
|
|
341
|
+
const D = y.charAt(0).toUpperCase() + y.slice(1);
|
|
342
|
+
r.getModifierState(D) && p(r);
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
} else
|
|
346
|
-
|
|
346
|
+
x || p(r);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
},
|
|
349
|
+
}, i = [];
|
|
350
350
|
xe(() => {
|
|
351
|
-
for (const
|
|
352
|
-
const r =
|
|
353
|
-
for (const
|
|
354
|
-
const { focused: c } =
|
|
355
|
-
|
|
351
|
+
for (const a of e) {
|
|
352
|
+
const r = t(a), u = o(a), d = l(a), s = r ? [r] : u;
|
|
353
|
+
for (const v of s) {
|
|
354
|
+
const { focused: c } = nt(I(v)), p = S(c, (f) => {
|
|
355
|
+
f ? v.addEventListener("keydown", d) : v.removeEventListener("keydown", d);
|
|
356
356
|
});
|
|
357
|
-
|
|
357
|
+
i.push(p);
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
}),
|
|
361
|
-
for (const
|
|
362
|
-
|
|
360
|
+
}), je(() => {
|
|
361
|
+
for (const a of i)
|
|
362
|
+
a();
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
-
const rt = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"],
|
|
365
|
+
const rt = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], st = { key: 1 }, Se = /* @__PURE__ */ T({
|
|
366
366
|
__name: "ACell",
|
|
367
367
|
props: {
|
|
368
368
|
colIndex: {},
|
|
@@ -371,311 +371,307 @@ const rt = ["data-colindex", "data-rowindex", "data-editable", "contenteditable"
|
|
|
371
371
|
addNavigation: { type: [Boolean, Object], default: !0 },
|
|
372
372
|
tabIndex: { default: 0 }
|
|
373
373
|
},
|
|
374
|
-
setup(
|
|
375
|
-
var
|
|
376
|
-
const
|
|
377
|
-
const
|
|
378
|
-
if (
|
|
379
|
-
const
|
|
380
|
-
return typeof
|
|
374
|
+
setup(e) {
|
|
375
|
+
var p;
|
|
376
|
+
const t = Y(e.tableid), n = ee("cell"), o = I(""), l = I(!1), i = b(() => {
|
|
377
|
+
const f = t.cellData(e.colIndex, e.rowIndex);
|
|
378
|
+
if (t.columns[e.colIndex].format) {
|
|
379
|
+
const x = t.table, y = t.rows[e.rowIndex], D = t.columns[e.colIndex], W = D.format;
|
|
380
|
+
return typeof W == "function" ? W(f, { table: x, row: y, column: D }) : typeof W == "string" ? Function(`"use strict";return (${W})`)()(f, { table: x, row: y, column: D }) : f;
|
|
381
381
|
} else
|
|
382
|
-
return
|
|
383
|
-
}),
|
|
384
|
-
if (
|
|
385
|
-
const
|
|
386
|
-
|
|
382
|
+
return f;
|
|
383
|
+
}), a = () => {
|
|
384
|
+
if (t.columns[e.colIndex].mask, t.columns[e.colIndex].modalComponent) {
|
|
385
|
+
const f = n.value.getBoundingClientRect();
|
|
386
|
+
t.modal.visible = !0, t.modal.colIndex = e.colIndex, t.modal.rowIndex = e.rowIndex, t.modal.parent = n.value, t.modal.top = f.top + f.height, t.modal.left = f.left, t.modal.width = u.value, t.modal.component = t.columns[e.colIndex].modalComponent, t.modal.componentProps = t.columns[e.colIndex].modalComponentProps;
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
if (e.addNavigation) {
|
|
390
|
-
let
|
|
391
|
-
...
|
|
392
|
-
"keydown.f2":
|
|
393
|
-
"keydown.alt.up":
|
|
394
|
-
"keydown.alt.down":
|
|
395
|
-
"keydown.alt.left":
|
|
396
|
-
"keydown.alt.right":
|
|
390
|
+
let f = {
|
|
391
|
+
...re,
|
|
392
|
+
"keydown.f2": a,
|
|
393
|
+
"keydown.alt.up": a,
|
|
394
|
+
"keydown.alt.down": a,
|
|
395
|
+
"keydown.alt.left": a,
|
|
396
|
+
"keydown.alt.right": a
|
|
397
397
|
};
|
|
398
|
-
typeof e.addNavigation == "object" && (
|
|
399
|
-
...
|
|
398
|
+
typeof e.addNavigation == "object" && (f = {
|
|
399
|
+
...f,
|
|
400
400
|
...e.addNavigation
|
|
401
|
-
}),
|
|
401
|
+
}), se([
|
|
402
402
|
{
|
|
403
|
-
selectors:
|
|
404
|
-
handlers:
|
|
403
|
+
selectors: n,
|
|
404
|
+
handlers: f
|
|
405
405
|
}
|
|
406
406
|
]);
|
|
407
407
|
}
|
|
408
|
-
const
|
|
409
|
-
|
|
410
|
-
},
|
|
411
|
-
|
|
412
|
-
},
|
|
413
|
-
textAlign:
|
|
414
|
-
width:
|
|
408
|
+
const r = b(() => t.columns[e.colIndex].align || "center"), u = b(() => t.columns[e.colIndex].width || "40ch"), d = () => {
|
|
409
|
+
n.value && (o.value = n.value.textContent);
|
|
410
|
+
}, s = () => {
|
|
411
|
+
n.value && n.value.textContent !== o.value && (o.value = n.value.textContent, n.value.dispatchEvent(new Event("change")), l.value = !0, t.columns[e.colIndex].format || t.setCellData(e.rowIndex, e.colIndex, o.value));
|
|
412
|
+
}, v = (f, x) => x && f === 0 && x > 0 ? `${x}ch` : "inherit", c = {
|
|
413
|
+
textAlign: r.value,
|
|
414
|
+
width: u.value,
|
|
415
415
|
backgroundColor: l.value ? "var(--cell-modified-color)" : "inherit",
|
|
416
416
|
fontWeight: l.value ? "bold" : "inherit",
|
|
417
|
-
paddingLeft:
|
|
417
|
+
paddingLeft: v(e.colIndex, (p = t.display[e.rowIndex]) == null ? void 0 : p.indent)
|
|
418
418
|
};
|
|
419
|
-
return (
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
"data-
|
|
423
|
-
"data-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
tabindex: v.tabIndex,
|
|
419
|
+
return (f, x) => (w(), g("td", {
|
|
420
|
+
ref: "cell",
|
|
421
|
+
"data-colindex": f.colIndex,
|
|
422
|
+
"data-rowindex": f.rowIndex,
|
|
423
|
+
"data-editable": m(t).columns[f.colIndex].edit,
|
|
424
|
+
contenteditable: m(t).columns[f.colIndex].edit,
|
|
425
|
+
tabindex: f.tabIndex,
|
|
427
426
|
spellcheck: !1,
|
|
428
|
-
style:
|
|
429
|
-
onFocus:
|
|
430
|
-
onPaste:
|
|
431
|
-
onBlur:
|
|
432
|
-
onInput:
|
|
433
|
-
onClick:
|
|
434
|
-
onMousedown:
|
|
427
|
+
style: c,
|
|
428
|
+
onFocus: d,
|
|
429
|
+
onPaste: s,
|
|
430
|
+
onBlur: s,
|
|
431
|
+
onInput: s,
|
|
432
|
+
onClick: a,
|
|
433
|
+
onMousedown: a,
|
|
435
434
|
class: "atable__cell"
|
|
436
435
|
}, [
|
|
437
|
-
|
|
436
|
+
m(t).columns[f.colIndex].cellComponent ? (w(), B(ke(m(t).columns[f.colIndex].cellComponent), te({
|
|
438
437
|
key: 0,
|
|
439
|
-
value:
|
|
440
|
-
},
|
|
438
|
+
value: i.value
|
|
439
|
+
}, m(t).columns[f.colIndex].cellComponentProps), null, 16, ["value"])) : (w(), g("span", st, P(i.value), 1))
|
|
441
440
|
], 40, rt));
|
|
442
441
|
}
|
|
443
|
-
}),
|
|
442
|
+
}), dt = ["tabindex"], ct = ["tabindex"], ut = ["colspan"], ft = /* @__PURE__ */ T({
|
|
444
443
|
__name: "AExpansionRow",
|
|
445
444
|
props: {
|
|
446
445
|
row: {},
|
|
447
446
|
rowIndex: {},
|
|
448
447
|
tableid: {},
|
|
449
|
-
tabIndex: { default: -1 },
|
|
448
|
+
tabIndex: { default: () => -1 },
|
|
450
449
|
addNavigation: { type: [Boolean, Object] }
|
|
451
450
|
},
|
|
452
|
-
setup(
|
|
453
|
-
const
|
|
451
|
+
setup(e) {
|
|
452
|
+
const t = Y(e.tableid), n = ee("rowEl"), o = b(() => t.display[e.rowIndex].expanded ? "▼" : "►");
|
|
454
453
|
if (e.addNavigation) {
|
|
455
|
-
const
|
|
456
|
-
"keydown.control.g": (
|
|
457
|
-
|
|
454
|
+
const l = {
|
|
455
|
+
"keydown.control.g": (i) => {
|
|
456
|
+
i.stopPropagation(), i.preventDefault(), t.toggleRowExpand(e.rowIndex);
|
|
458
457
|
}
|
|
459
458
|
};
|
|
460
|
-
typeof e.addNavigation == "object" && Object.assign(
|
|
459
|
+
typeof e.addNavigation == "object" && Object.assign(l, e.addNavigation), se([
|
|
461
460
|
{
|
|
462
|
-
selectors:
|
|
463
|
-
handlers:
|
|
461
|
+
selectors: n,
|
|
462
|
+
handlers: l
|
|
464
463
|
}
|
|
465
464
|
]);
|
|
466
465
|
}
|
|
467
|
-
return (
|
|
468
|
-
O("tr", te(
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
tabindex: s.tabIndex,
|
|
466
|
+
return (l, i) => (w(), g(q, null, [
|
|
467
|
+
O("tr", te(l.$attrs, {
|
|
468
|
+
ref: "rowEl",
|
|
469
|
+
tabindex: l.tabIndex,
|
|
472
470
|
class: "expandable-row"
|
|
473
471
|
}), [
|
|
474
472
|
O("td", {
|
|
475
473
|
tabIndex: -1,
|
|
476
|
-
onClick:
|
|
474
|
+
onClick: i[0] || (i[0] = (a) => m(t).toggleRowExpand(l.rowIndex)),
|
|
477
475
|
class: "row-index"
|
|
478
|
-
},
|
|
479
|
-
|
|
480
|
-
], 16,
|
|
481
|
-
|
|
476
|
+
}, P(o.value), 1),
|
|
477
|
+
E(l.$slots, "row")
|
|
478
|
+
], 16, dt),
|
|
479
|
+
m(t).display[l.rowIndex].expanded ? (w(), g("tr", {
|
|
482
480
|
key: 0,
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
tabindex: s.tabIndex,
|
|
481
|
+
ref: "rowExpanded",
|
|
482
|
+
tabindex: l.tabIndex,
|
|
486
483
|
class: "expanded-row"
|
|
487
484
|
}, [
|
|
488
485
|
O("td", {
|
|
489
486
|
tabIndex: -1,
|
|
490
|
-
colspan:
|
|
487
|
+
colspan: m(t).columns.length + 1,
|
|
491
488
|
class: "expanded-row-content"
|
|
492
489
|
}, [
|
|
493
|
-
|
|
494
|
-
], 8,
|
|
495
|
-
], 8,
|
|
490
|
+
E(l.$slots, "content")
|
|
491
|
+
], 8, ut)
|
|
492
|
+
], 8, ct)) : G("", !0)
|
|
496
493
|
], 64));
|
|
497
494
|
}
|
|
498
|
-
}),
|
|
495
|
+
}), mt = ["tabindex"], pt = {
|
|
499
496
|
key: 0,
|
|
500
497
|
tabIndex: -1,
|
|
501
498
|
class: "list-index"
|
|
502
|
-
},
|
|
499
|
+
}, De = /* @__PURE__ */ T({
|
|
503
500
|
__name: "ARow",
|
|
504
501
|
props: {
|
|
505
502
|
row: {},
|
|
506
503
|
rowIndex: {},
|
|
507
504
|
tableid: {},
|
|
508
|
-
tabIndex: { default: -1 },
|
|
505
|
+
tabIndex: { default: () => -1 },
|
|
509
506
|
addNavigation: { type: [Boolean, Object], default: !1 }
|
|
510
507
|
},
|
|
511
|
-
setup(
|
|
512
|
-
const
|
|
513
|
-
|
|
508
|
+
setup(e) {
|
|
509
|
+
const t = Y(e.tableid), n = ee("rowEl"), o = b(() => t.config.view !== "tree" || t.display[e.rowIndex].isRoot || t.display[e.rowIndex].open), l = b(() => t.config.view !== "tree" ? "" : t.display[e.rowIndex].isRoot || t.display[e.rowIndex].isParent ? t.display[e.rowIndex].childrenOpen ? "-" : "+" : ""), i = (a) => {
|
|
510
|
+
t.toggleRowExpand(a);
|
|
514
511
|
};
|
|
515
512
|
if (e.addNavigation) {
|
|
516
|
-
let
|
|
517
|
-
typeof e.addNavigation == "object" && (
|
|
518
|
-
...
|
|
513
|
+
let a = re;
|
|
514
|
+
typeof e.addNavigation == "object" && (a = {
|
|
515
|
+
...a,
|
|
519
516
|
...e.addNavigation
|
|
520
|
-
}),
|
|
517
|
+
}), se([
|
|
521
518
|
{
|
|
522
|
-
selectors:
|
|
523
|
-
handlers:
|
|
519
|
+
selectors: n,
|
|
520
|
+
handlers: a
|
|
524
521
|
}
|
|
525
522
|
]);
|
|
526
523
|
}
|
|
527
|
-
return (
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
tabindex: r.tabIndex,
|
|
524
|
+
return (a, r) => Z((w(), g("tr", {
|
|
525
|
+
ref: "rowEl",
|
|
526
|
+
tabindex: a.tabIndex,
|
|
531
527
|
class: "table-row"
|
|
532
528
|
}, [
|
|
533
|
-
|
|
534
|
-
|
|
529
|
+
E(a.$slots, "index", {}, () => [
|
|
530
|
+
m(t).config.view === "list" ? (w(), g("td", pt, P(a.rowIndex + 1), 1)) : m(t).config.view === "tree" ? (w(), g("td", {
|
|
535
531
|
key: 1,
|
|
536
532
|
tabIndex: -1,
|
|
537
533
|
class: "tree-index",
|
|
538
|
-
onClick:
|
|
539
|
-
},
|
|
534
|
+
onClick: r[0] || (r[0] = (u) => i(a.rowIndex))
|
|
535
|
+
}, P(l.value), 1)) : G("", !0)
|
|
540
536
|
]),
|
|
541
|
-
|
|
542
|
-
], 8,
|
|
543
|
-
[Ae,
|
|
537
|
+
E(a.$slots, "default")
|
|
538
|
+
], 8, mt)), [
|
|
539
|
+
[Ae, o.value]
|
|
544
540
|
]);
|
|
545
541
|
}
|
|
546
542
|
});
|
|
547
|
-
function
|
|
548
|
-
return Ee() ? (Ie(
|
|
543
|
+
function Te(e) {
|
|
544
|
+
return Ee() ? (Ie(e), !0) : !1;
|
|
549
545
|
}
|
|
550
|
-
function
|
|
551
|
-
return typeof
|
|
546
|
+
function L(e) {
|
|
547
|
+
return typeof e == "function" ? e() : m(e);
|
|
552
548
|
}
|
|
553
|
-
const
|
|
549
|
+
const $e = typeof window < "u" && typeof document < "u";
|
|
554
550
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
555
|
-
const
|
|
556
|
-
},
|
|
557
|
-
function
|
|
558
|
-
var
|
|
559
|
-
return
|
|
551
|
+
const vt = Object.prototype.toString, wt = (e) => vt.call(e) === "[object Object]", M = () => {
|
|
552
|
+
}, _ = /* @__PURE__ */ ht();
|
|
553
|
+
function ht() {
|
|
554
|
+
var e, t;
|
|
555
|
+
return $e && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
560
556
|
}
|
|
561
557
|
const he = {
|
|
562
558
|
mounted: "mounted",
|
|
563
559
|
updated: "updated",
|
|
564
560
|
unmounted: "unmounted"
|
|
565
561
|
};
|
|
566
|
-
function
|
|
567
|
-
if (
|
|
568
|
-
return We(...
|
|
569
|
-
const
|
|
570
|
-
return typeof
|
|
562
|
+
function gt(...e) {
|
|
563
|
+
if (e.length !== 1)
|
|
564
|
+
return We(...e);
|
|
565
|
+
const t = e[0];
|
|
566
|
+
return typeof t == "function" ? Ve(Ue(() => ({ get: t, set: M }))) : I(t);
|
|
571
567
|
}
|
|
572
|
-
function
|
|
573
|
-
var
|
|
574
|
-
const n =
|
|
575
|
-
return (
|
|
568
|
+
function R(e) {
|
|
569
|
+
var t;
|
|
570
|
+
const n = L(e);
|
|
571
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
576
572
|
}
|
|
577
|
-
const
|
|
578
|
-
function
|
|
579
|
-
let
|
|
580
|
-
if (typeof
|
|
581
|
-
return
|
|
573
|
+
const Re = $e ? window : void 0;
|
|
574
|
+
function F(...e) {
|
|
575
|
+
let t, n, o, l;
|
|
576
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = Re) : [t, n, o, l] = e, !t)
|
|
577
|
+
return M;
|
|
582
578
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
}, r = (
|
|
586
|
-
() => [
|
|
587
|
-
([
|
|
588
|
-
if (
|
|
579
|
+
const i = [], a = () => {
|
|
580
|
+
i.forEach((s) => s()), i.length = 0;
|
|
581
|
+
}, r = (s, v, c, p) => (s.addEventListener(v, c, p), () => s.removeEventListener(v, c, p)), u = S(
|
|
582
|
+
() => [R(t), L(l)],
|
|
583
|
+
([s, v]) => {
|
|
584
|
+
if (a(), !s)
|
|
589
585
|
return;
|
|
590
|
-
const c =
|
|
591
|
-
|
|
592
|
-
...n.flatMap((
|
|
586
|
+
const c = wt(v) ? { ...v } : v;
|
|
587
|
+
i.push(
|
|
588
|
+
...n.flatMap((p) => o.map((f) => r(s, p, f, c)))
|
|
593
589
|
);
|
|
594
590
|
},
|
|
595
591
|
{ immediate: !0, flush: "post" }
|
|
596
592
|
), d = () => {
|
|
597
|
-
|
|
593
|
+
u(), a();
|
|
598
594
|
};
|
|
599
|
-
return
|
|
595
|
+
return Te(d), d;
|
|
600
596
|
}
|
|
601
597
|
let ge = !1;
|
|
602
|
-
function
|
|
603
|
-
const { window: o =
|
|
598
|
+
function be(e, t, n = {}) {
|
|
599
|
+
const { window: o = Re, ignore: l = [], capture: i = !0, detectIframe: a = !1 } = n;
|
|
604
600
|
if (!o)
|
|
605
|
-
return
|
|
606
|
-
|
|
601
|
+
return M;
|
|
602
|
+
_ && !ge && (ge = !0, Array.from(o.document.body.children).forEach((c) => c.addEventListener("click", M)), o.document.documentElement.addEventListener("click", M));
|
|
607
603
|
let r = !0;
|
|
608
|
-
const
|
|
609
|
-
if (typeof
|
|
610
|
-
return Array.from(o.document.querySelectorAll(
|
|
604
|
+
const u = (c) => l.some((p) => {
|
|
605
|
+
if (typeof p == "string")
|
|
606
|
+
return Array.from(o.document.querySelectorAll(p)).some((f) => f === c.target || c.composedPath().includes(f));
|
|
611
607
|
{
|
|
612
|
-
const
|
|
613
|
-
return
|
|
608
|
+
const f = R(p);
|
|
609
|
+
return f && (c.target === f || c.composedPath().includes(f));
|
|
614
610
|
}
|
|
615
|
-
}),
|
|
616
|
-
|
|
617
|
-
const
|
|
618
|
-
if (!(!
|
|
619
|
-
if (c.detail === 0 && (r = !
|
|
611
|
+
}), s = [
|
|
612
|
+
F(o, "click", (c) => {
|
|
613
|
+
const p = R(e);
|
|
614
|
+
if (!(!p || p === c.target || c.composedPath().includes(p))) {
|
|
615
|
+
if (c.detail === 0 && (r = !u(c)), !r) {
|
|
620
616
|
r = !0;
|
|
621
617
|
return;
|
|
622
618
|
}
|
|
623
|
-
|
|
619
|
+
t(c);
|
|
624
620
|
}
|
|
625
|
-
}, { passive: !0, capture:
|
|
626
|
-
|
|
627
|
-
const
|
|
628
|
-
r = !
|
|
621
|
+
}, { passive: !0, capture: i }),
|
|
622
|
+
F(o, "pointerdown", (c) => {
|
|
623
|
+
const p = R(e);
|
|
624
|
+
r = !u(c) && !!(p && !c.composedPath().includes(p));
|
|
629
625
|
}, { passive: !0 }),
|
|
630
|
-
|
|
626
|
+
a && F(o, "blur", (c) => {
|
|
631
627
|
setTimeout(() => {
|
|
632
|
-
var
|
|
633
|
-
const
|
|
634
|
-
((
|
|
628
|
+
var p;
|
|
629
|
+
const f = R(e);
|
|
630
|
+
((p = o.document.activeElement) == null ? void 0 : p.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && t(c);
|
|
635
631
|
}, 0);
|
|
636
632
|
})
|
|
637
633
|
].filter(Boolean);
|
|
638
|
-
return () =>
|
|
634
|
+
return () => s.forEach((c) => c());
|
|
639
635
|
}
|
|
640
|
-
const
|
|
641
|
-
[he.mounted](
|
|
642
|
-
const n = !
|
|
643
|
-
if (typeof
|
|
644
|
-
|
|
636
|
+
const bt = {
|
|
637
|
+
[he.mounted](e, t) {
|
|
638
|
+
const n = !t.modifiers.bubble;
|
|
639
|
+
if (typeof t.value == "function")
|
|
640
|
+
e.__onClickOutside_stop = be(e, t.value, { capture: n });
|
|
645
641
|
else {
|
|
646
|
-
const [o,
|
|
647
|
-
|
|
642
|
+
const [o, l] = t.value;
|
|
643
|
+
e.__onClickOutside_stop = be(e, o, Object.assign({ capture: n }, l));
|
|
648
644
|
}
|
|
649
645
|
},
|
|
650
|
-
[he.unmounted](
|
|
651
|
-
|
|
646
|
+
[he.unmounted](e) {
|
|
647
|
+
e.__onClickOutside_stop();
|
|
652
648
|
}
|
|
653
649
|
};
|
|
654
|
-
function
|
|
655
|
-
return typeof Window < "u" &&
|
|
650
|
+
function X(e) {
|
|
651
|
+
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
656
652
|
}
|
|
657
|
-
function Oe(
|
|
658
|
-
const
|
|
659
|
-
if (
|
|
653
|
+
function Oe(e) {
|
|
654
|
+
const t = window.getComputedStyle(e);
|
|
655
|
+
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
|
|
660
656
|
return !0;
|
|
661
657
|
{
|
|
662
|
-
const n =
|
|
658
|
+
const n = e.parentNode;
|
|
663
659
|
return !n || n.tagName === "BODY" ? !1 : Oe(n);
|
|
664
660
|
}
|
|
665
661
|
}
|
|
666
|
-
function
|
|
667
|
-
const
|
|
668
|
-
return Oe(n) ? !1 :
|
|
662
|
+
function yt(e) {
|
|
663
|
+
const t = e || window.event, n = t.target;
|
|
664
|
+
return Oe(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
669
665
|
}
|
|
670
|
-
const
|
|
671
|
-
function
|
|
672
|
-
const n =
|
|
673
|
-
let o = null,
|
|
674
|
-
S(
|
|
675
|
-
const
|
|
676
|
-
if (
|
|
677
|
-
const d =
|
|
678
|
-
if (
|
|
666
|
+
const J = /* @__PURE__ */ new WeakMap();
|
|
667
|
+
function xt(e, t = !1) {
|
|
668
|
+
const n = I(t);
|
|
669
|
+
let o = null, l = "";
|
|
670
|
+
S(gt(e), (r) => {
|
|
671
|
+
const u = X(L(r));
|
|
672
|
+
if (u) {
|
|
673
|
+
const d = u;
|
|
674
|
+
if (J.get(d) || J.set(d, d.style.overflow), d.style.overflow !== "hidden" && (l = d.style.overflow), d.style.overflow === "hidden")
|
|
679
675
|
return n.value = !0;
|
|
680
676
|
if (n.value)
|
|
681
677
|
return d.style.overflow = "hidden";
|
|
@@ -683,72 +679,66 @@ function yt(t, e = !1) {
|
|
|
683
679
|
}, {
|
|
684
680
|
immediate: !0
|
|
685
681
|
});
|
|
686
|
-
const
|
|
687
|
-
const r =
|
|
688
|
-
!r || n.value || (
|
|
682
|
+
const i = () => {
|
|
683
|
+
const r = X(L(e));
|
|
684
|
+
!r || n.value || (_ && (o = F(
|
|
689
685
|
r,
|
|
690
686
|
"touchmove",
|
|
691
|
-
(
|
|
692
|
-
|
|
687
|
+
(u) => {
|
|
688
|
+
yt(u);
|
|
693
689
|
},
|
|
694
690
|
{ passive: !1 }
|
|
695
691
|
)), r.style.overflow = "hidden", n.value = !0);
|
|
696
|
-
},
|
|
697
|
-
const r =
|
|
698
|
-
!r || !n.value || (
|
|
692
|
+
}, a = () => {
|
|
693
|
+
const r = X(L(e));
|
|
694
|
+
!r || !n.value || (_ && (o == null || o()), r.style.overflow = l, J.delete(r), n.value = !1);
|
|
699
695
|
};
|
|
700
|
-
return
|
|
696
|
+
return Te(a), b({
|
|
701
697
|
get() {
|
|
702
698
|
return n.value;
|
|
703
699
|
},
|
|
704
700
|
set(r) {
|
|
705
|
-
r ?
|
|
701
|
+
r ? i() : a();
|
|
706
702
|
}
|
|
707
703
|
});
|
|
708
704
|
}
|
|
709
|
-
function
|
|
710
|
-
let
|
|
711
|
-
const
|
|
705
|
+
function Et() {
|
|
706
|
+
let e = !1;
|
|
707
|
+
const t = I(!1);
|
|
712
708
|
return (n, o) => {
|
|
713
|
-
if (
|
|
709
|
+
if (t.value = o.value, e)
|
|
714
710
|
return;
|
|
715
|
-
|
|
716
|
-
const
|
|
717
|
-
S(
|
|
711
|
+
e = !0;
|
|
712
|
+
const l = xt(n, o.value);
|
|
713
|
+
S(t, (i) => l.value = i);
|
|
718
714
|
};
|
|
719
715
|
}
|
|
720
|
-
|
|
721
|
-
var
|
|
722
|
-
for (var
|
|
723
|
-
|
|
724
|
-
function
|
|
725
|
-
return (
|
|
716
|
+
Et();
|
|
717
|
+
var h = [];
|
|
718
|
+
for (var Q = 0; Q < 256; ++Q)
|
|
719
|
+
h.push((Q + 256).toString(16).slice(1));
|
|
720
|
+
function It(e, t = 0) {
|
|
721
|
+
return (h[e[t + 0]] + h[e[t + 1]] + h[e[t + 2]] + h[e[t + 3]] + "-" + h[e[t + 4]] + h[e[t + 5]] + "-" + h[e[t + 6]] + h[e[t + 7]] + "-" + h[e[t + 8]] + h[e[t + 9]] + "-" + h[e[t + 10]] + h[e[t + 11]] + h[e[t + 12]] + h[e[t + 13]] + h[e[t + 14]] + h[e[t + 15]]).toLowerCase();
|
|
726
722
|
}
|
|
727
|
-
var
|
|
728
|
-
function
|
|
729
|
-
if (!
|
|
723
|
+
var U, kt = new Uint8Array(16);
|
|
724
|
+
function At() {
|
|
725
|
+
if (!U && (U = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !U))
|
|
730
726
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
731
|
-
return
|
|
727
|
+
return U(kt);
|
|
732
728
|
}
|
|
733
|
-
var
|
|
734
|
-
const
|
|
735
|
-
randomUUID:
|
|
729
|
+
var Ct = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
730
|
+
const ye = {
|
|
731
|
+
randomUUID: Ct
|
|
736
732
|
};
|
|
737
|
-
function
|
|
738
|
-
if (
|
|
739
|
-
return
|
|
740
|
-
|
|
741
|
-
var o =
|
|
742
|
-
|
|
743
|
-
n = n || 0;
|
|
744
|
-
for (var a = 0; a < 16; ++a)
|
|
745
|
-
e[n + a] = o[a];
|
|
746
|
-
return e;
|
|
747
|
-
}
|
|
748
|
-
return xt(o);
|
|
733
|
+
function St(e, t, n) {
|
|
734
|
+
if (ye.randomUUID && !t && !e)
|
|
735
|
+
return ye.randomUUID();
|
|
736
|
+
e = e || {};
|
|
737
|
+
var o = e.random || (e.rng || At)();
|
|
738
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, It(o);
|
|
749
739
|
}
|
|
750
|
-
class
|
|
751
|
-
constructor(
|
|
740
|
+
class Dt {
|
|
741
|
+
constructor(t, n, o, l, i, a) {
|
|
752
742
|
C(this, "id");
|
|
753
743
|
C(this, "rows");
|
|
754
744
|
C(this, "columns");
|
|
@@ -756,116 +746,114 @@ class Ct {
|
|
|
756
746
|
C(this, "table");
|
|
757
747
|
C(this, "display");
|
|
758
748
|
C(this, "modal");
|
|
759
|
-
this.id =
|
|
749
|
+
this.id = t || St(), this.rows = o, this.columns = $(n), this.config = $(l), this.table = i || $(this.createTableObject()), this.display = this.createDisplayObject(a), this.modal = $({ visible: !1 });
|
|
760
750
|
}
|
|
761
751
|
createTableObject() {
|
|
762
|
-
const
|
|
752
|
+
const t = {};
|
|
763
753
|
for (const [n, o] of this.columns.entries())
|
|
764
|
-
for (const [
|
|
765
|
-
|
|
766
|
-
return
|
|
754
|
+
for (const [l, i] of this.rows.entries())
|
|
755
|
+
t[`${n}:${l}`] = i[o.name];
|
|
756
|
+
return t;
|
|
767
757
|
}
|
|
768
|
-
createDisplayObject(
|
|
758
|
+
createDisplayObject(t) {
|
|
769
759
|
const n = [Object.assign({}, { modified: !1 })];
|
|
770
|
-
if (
|
|
771
|
-
return
|
|
760
|
+
if (t && "0:0" in t)
|
|
761
|
+
return t;
|
|
772
762
|
const o = /* @__PURE__ */ new Set();
|
|
773
|
-
for (let
|
|
774
|
-
const
|
|
775
|
-
|
|
763
|
+
for (let l = this.rows.length - 1; l >= 0; l--) {
|
|
764
|
+
const i = this.rows[l];
|
|
765
|
+
i.parent && o.add(i.parent), n[l] = {
|
|
776
766
|
childrenOpen: !1,
|
|
777
767
|
expanded: !1,
|
|
778
|
-
indent:
|
|
779
|
-
isParent: o.has(
|
|
780
|
-
isRoot:
|
|
768
|
+
indent: i.indent || null,
|
|
769
|
+
isParent: o.has(l),
|
|
770
|
+
isRoot: i.parent === null || i.parent === void 0,
|
|
781
771
|
modified: !1,
|
|
782
|
-
open:
|
|
783
|
-
parent:
|
|
772
|
+
open: i.parent === null || i.parent === void 0,
|
|
773
|
+
parent: i.parent
|
|
784
774
|
};
|
|
785
775
|
}
|
|
786
|
-
return
|
|
776
|
+
return $(n);
|
|
787
777
|
}
|
|
788
778
|
get zeroColumn() {
|
|
789
779
|
return ["list", "tree", "list-expansion"].includes(this.config.view);
|
|
790
780
|
}
|
|
791
781
|
get numberedRowWidth() {
|
|
792
|
-
return
|
|
782
|
+
return b(() => String(Math.ceil(this.rows.length / 100) + 1) + "ch");
|
|
793
783
|
}
|
|
794
|
-
cellData(
|
|
795
|
-
return this.table[`${
|
|
784
|
+
cellData(t, n) {
|
|
785
|
+
return this.table[`${t}:${n}`];
|
|
796
786
|
}
|
|
797
|
-
setCellData(
|
|
798
|
-
this.table[`${n}:${
|
|
799
|
-
const
|
|
800
|
-
return this.rows[
|
|
787
|
+
setCellData(t, n, o) {
|
|
788
|
+
this.table[`${n}:${t}`] !== o && (this.display[t].modified = !0), this.table[`${n}:${t}`] = o;
|
|
789
|
+
const l = this.columns[n];
|
|
790
|
+
return this.rows[t][l.name] = o, this.table[`${n}:${t}`];
|
|
801
791
|
}
|
|
802
|
-
toggleRowExpand(
|
|
792
|
+
toggleRowExpand(t) {
|
|
803
793
|
if (this.config.view === "tree") {
|
|
804
|
-
this.display[
|
|
794
|
+
this.display[t].childrenOpen = !this.display[t].childrenOpen;
|
|
805
795
|
for (let n = this.rows.length - 1; n >= 0; n--)
|
|
806
|
-
this.display[n].parent ===
|
|
807
|
-
} else this.config.view === "list-expansion" && (this.display[
|
|
796
|
+
this.display[n].parent === t && (this.display[n].open = !this.display[n].open, this.display[n].childrenOpen && this.toggleRowExpand(n));
|
|
797
|
+
} else this.config.view === "list-expansion" && (this.display[t].expanded = !this.display[t].expanded);
|
|
808
798
|
}
|
|
809
799
|
}
|
|
810
|
-
const
|
|
800
|
+
const Tt = {
|
|
811
801
|
key: 0,
|
|
812
802
|
id: "resizable"
|
|
813
|
-
},
|
|
803
|
+
}, $t = {
|
|
814
804
|
class: "atable-header-row",
|
|
815
805
|
tabindex: "-1"
|
|
816
|
-
},
|
|
806
|
+
}, Rt = {
|
|
817
807
|
key: 0,
|
|
818
808
|
id: "header-index"
|
|
819
|
-
},
|
|
809
|
+
}, Le = /* @__PURE__ */ T({
|
|
820
810
|
__name: "ATableHeader",
|
|
821
811
|
props: {
|
|
822
812
|
columns: {},
|
|
823
|
-
config: {},
|
|
824
813
|
tableid: {}
|
|
825
814
|
},
|
|
826
|
-
setup(
|
|
827
|
-
const
|
|
828
|
-
minWidth:
|
|
829
|
-
textAlign:
|
|
830
|
-
width:
|
|
815
|
+
setup(e) {
|
|
816
|
+
const t = Y(e.tableid), n = (o) => ({
|
|
817
|
+
minWidth: o.width || "40ch",
|
|
818
|
+
textAlign: o.align || "center",
|
|
819
|
+
width: t.config.fullWidth ? "auto" : null
|
|
831
820
|
});
|
|
832
|
-
return (
|
|
833
|
-
O("tr",
|
|
834
|
-
|
|
835
|
-
(
|
|
836
|
-
key:
|
|
821
|
+
return (o, l) => o.columns.length ? (w(), g("thead", Tt, [
|
|
822
|
+
O("tr", $t, [
|
|
823
|
+
m(t).zeroColumn ? (w(), g("th", Rt)) : G("", !0),
|
|
824
|
+
(w(!0), g(q, null, K(o.columns, (i, a) => (w(), g("th", {
|
|
825
|
+
key: i.name,
|
|
837
826
|
tabindex: "-1",
|
|
838
|
-
style:
|
|
827
|
+
style: z(n(i))
|
|
839
828
|
}, [
|
|
840
|
-
|
|
841
|
-
|
|
829
|
+
E(o.$slots, "default", {}, () => [
|
|
830
|
+
Be(P(i.label || String.fromCharCode(a + 97).toUpperCase()), 1)
|
|
842
831
|
])
|
|
843
832
|
], 4))), 128))
|
|
844
833
|
])
|
|
845
|
-
])) :
|
|
834
|
+
])) : G("", !0);
|
|
846
835
|
}
|
|
847
|
-
}),
|
|
836
|
+
}), Me = /* @__PURE__ */ T({
|
|
848
837
|
__name: "ATableModal",
|
|
849
838
|
props: {
|
|
850
839
|
colIndex: {},
|
|
851
840
|
rowIndex: {},
|
|
852
841
|
tableid: {}
|
|
853
842
|
},
|
|
854
|
-
setup(
|
|
855
|
-
const
|
|
843
|
+
setup(e) {
|
|
844
|
+
const t = (n) => {
|
|
856
845
|
n.stopPropagation();
|
|
857
846
|
};
|
|
858
|
-
return (n, o) => (
|
|
859
|
-
ref: "amodal",
|
|
847
|
+
return (n, o) => (w(), g("div", {
|
|
860
848
|
class: "amodal",
|
|
861
849
|
tabindex: "-1",
|
|
862
|
-
onClick:
|
|
863
|
-
onInput:
|
|
850
|
+
onClick: t,
|
|
851
|
+
onInput: t
|
|
864
852
|
}, [
|
|
865
|
-
|
|
866
|
-
],
|
|
853
|
+
E(n.$slots, "default")
|
|
854
|
+
], 32));
|
|
867
855
|
}
|
|
868
|
-
}),
|
|
856
|
+
}), Ot = /* @__PURE__ */ T({
|
|
869
857
|
__name: "ATable",
|
|
870
858
|
props: {
|
|
871
859
|
id: {},
|
|
@@ -876,60 +864,58 @@ const St = {
|
|
|
876
864
|
tableid: {}
|
|
877
865
|
},
|
|
878
866
|
emits: ["update:modelValue"],
|
|
879
|
-
setup(
|
|
880
|
-
const n = t, o = e;
|
|
881
|
-
|
|
882
|
-
Be(l.id, l), S(
|
|
867
|
+
setup(e, { emit: t }) {
|
|
868
|
+
const n = t, o = e.modelValue ? e.modelValue : e.rows, l = new Dt(e.id, e.columns, o, e.config);
|
|
869
|
+
ze(l.id, l), S(
|
|
883
870
|
() => l.rows,
|
|
884
|
-
(
|
|
885
|
-
|
|
871
|
+
(a) => {
|
|
872
|
+
n("update:modelValue", a);
|
|
886
873
|
},
|
|
887
874
|
{ deep: !0 }
|
|
888
875
|
);
|
|
889
|
-
const
|
|
890
|
-
var
|
|
891
|
-
|
|
876
|
+
const i = (a) => {
|
|
877
|
+
var r;
|
|
878
|
+
a.target instanceof Node && (r = l.modal.parent) != null && r.contains(a.target) || l.modal.visible && (l.modal.visible = !1);
|
|
892
879
|
};
|
|
893
|
-
return window.addEventListener("keydown", (
|
|
894
|
-
if (
|
|
880
|
+
return window.addEventListener("keydown", (a) => {
|
|
881
|
+
if (a.key === "Escape" && l.modal.visible) {
|
|
895
882
|
l.modal.visible = !1;
|
|
896
|
-
const
|
|
897
|
-
|
|
898
|
-
|
|
883
|
+
const r = l.modal.parent;
|
|
884
|
+
r && Fe().then(() => {
|
|
885
|
+
r.focus();
|
|
899
886
|
});
|
|
900
887
|
}
|
|
901
|
-
}), (
|
|
888
|
+
}), (a, r) => Z((w(), g("table", {
|
|
902
889
|
class: "atable",
|
|
903
|
-
style:
|
|
890
|
+
style: z({ width: m(l).config.fullWidth ? "100%" : "auto" })
|
|
904
891
|
}, [
|
|
905
|
-
|
|
906
|
-
de(
|
|
907
|
-
columns:
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
}, null, 8, ["columns", "config", "tableid"])
|
|
892
|
+
E(a.$slots, "header", { data: m(l) }, () => [
|
|
893
|
+
de(Le, {
|
|
894
|
+
columns: m(l).columns,
|
|
895
|
+
tableid: m(l).id
|
|
896
|
+
}, null, 8, ["columns", "tableid"])
|
|
911
897
|
]),
|
|
912
898
|
O("tbody", null, [
|
|
913
|
-
|
|
914
|
-
(
|
|
915
|
-
key:
|
|
916
|
-
row:
|
|
917
|
-
rowIndex:
|
|
918
|
-
tableid:
|
|
899
|
+
E(a.$slots, "body", { data: m(l) }, () => [
|
|
900
|
+
(w(!0), g(q, null, K(m(l).rows, (u, d) => (w(), B(De, {
|
|
901
|
+
key: u.id,
|
|
902
|
+
row: u,
|
|
903
|
+
rowIndex: d,
|
|
904
|
+
tableid: m(l).id
|
|
919
905
|
}, {
|
|
920
906
|
default: ce(() => [
|
|
921
|
-
(
|
|
922
|
-
key:
|
|
923
|
-
tableid:
|
|
924
|
-
col:
|
|
907
|
+
(w(!0), g(q, null, K(m(l).columns, (s, v) => (w(), B(Se, {
|
|
908
|
+
key: s.name,
|
|
909
|
+
tableid: m(l).id,
|
|
910
|
+
col: s,
|
|
925
911
|
spellcheck: "false",
|
|
926
|
-
rowIndex:
|
|
927
|
-
colIndex:
|
|
928
|
-
component:
|
|
929
|
-
style:
|
|
930
|
-
textAlign: (
|
|
931
|
-
minWidth: (
|
|
932
|
-
width:
|
|
912
|
+
rowIndex: d,
|
|
913
|
+
colIndex: v + (m(l).zeroColumn ? 0 : -1),
|
|
914
|
+
component: s.cellComponent,
|
|
915
|
+
style: z({
|
|
916
|
+
textAlign: (s == null ? void 0 : s.align) || "center",
|
|
917
|
+
minWidth: (s == null ? void 0 : s.width) || "40ch",
|
|
918
|
+
width: m(l).config.fullWidth ? "auto" : null
|
|
933
919
|
})
|
|
934
920
|
}, null, 8, ["tableid", "col", "rowIndex", "colIndex", "component", "style"]))), 128))
|
|
935
921
|
]),
|
|
@@ -937,47 +923,47 @@ const St = {
|
|
|
937
923
|
}, 1032, ["row", "rowIndex", "tableid"]))), 128))
|
|
938
924
|
])
|
|
939
925
|
]),
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
colIndex:
|
|
944
|
-
rowIndex:
|
|
945
|
-
tableid:
|
|
946
|
-
style:
|
|
947
|
-
left:
|
|
948
|
-
top:
|
|
949
|
-
maxWidth:
|
|
926
|
+
E(a.$slots, "footer", { data: m(l) }),
|
|
927
|
+
E(a.$slots, "modal", { data: m(l) }, () => [
|
|
928
|
+
Z(de(Me, {
|
|
929
|
+
colIndex: m(l).modal.colIndex,
|
|
930
|
+
rowIndex: m(l).modal.rowIndex,
|
|
931
|
+
tableid: m(l).id,
|
|
932
|
+
style: z({
|
|
933
|
+
left: m(l).modal.left + "px",
|
|
934
|
+
top: m(l).modal.top + "px",
|
|
935
|
+
maxWidth: m(l).modal.width + "px"
|
|
950
936
|
})
|
|
951
937
|
}, {
|
|
952
938
|
default: ce(() => [
|
|
953
|
-
(
|
|
954
|
-
key: `${
|
|
955
|
-
colIndex:
|
|
956
|
-
rowIndex:
|
|
957
|
-
tableid:
|
|
958
|
-
},
|
|
939
|
+
(w(), B(ke(m(l).modal.component), te({
|
|
940
|
+
key: `${m(l).modal.rowIndex}:${m(l).modal.colIndex}`,
|
|
941
|
+
colIndex: m(l).modal.colIndex,
|
|
942
|
+
rowIndex: m(l).modal.rowIndex,
|
|
943
|
+
tableid: m(l).id
|
|
944
|
+
}, m(l).modal.componentProps), null, 16, ["colIndex", "rowIndex", "tableid"]))
|
|
959
945
|
]),
|
|
960
946
|
_: 1
|
|
961
947
|
}, 8, ["colIndex", "rowIndex", "tableid", "style"]), [
|
|
962
|
-
[Ae,
|
|
948
|
+
[Ae, m(l).modal.visible]
|
|
963
949
|
])
|
|
964
950
|
])
|
|
965
951
|
], 4)), [
|
|
966
|
-
[
|
|
952
|
+
[m(bt), i]
|
|
967
953
|
]);
|
|
968
954
|
}
|
|
969
955
|
});
|
|
970
|
-
function
|
|
971
|
-
|
|
956
|
+
function Ht(e) {
|
|
957
|
+
e.component("ACell", Se), e.component("AExpansionRow", ft), e.component("ARow", De), e.component("ATable", Ot), e.component("ATableHeader", Le), e.component("ATableModal", Me);
|
|
972
958
|
}
|
|
973
959
|
export {
|
|
974
960
|
Se as ACell,
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
961
|
+
ft as AExpansionRow,
|
|
962
|
+
De as ARow,
|
|
963
|
+
Ot as ATable,
|
|
964
|
+
Le as ATableHeader,
|
|
965
|
+
Me as ATableModal,
|
|
966
|
+
Dt as TableDataStore,
|
|
967
|
+
Ht as install
|
|
982
968
|
};
|
|
983
969
|
//# sourceMappingURL=atable.js.map
|