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