@ninebone/table 0.0.302 β 0.0.304
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/nine-table.js +271 -270
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +5 -5
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
throw TypeError(
|
|
1
|
+
var ee = Object.defineProperty;
|
|
2
|
+
var ie = (x) => {
|
|
3
|
+
throw TypeError(x);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var a = (
|
|
7
|
-
var S = (
|
|
8
|
-
var t = (
|
|
9
|
-
var
|
|
5
|
+
var oe = (x, i, e) => i in x ? ee(x, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : x[i] = e;
|
|
6
|
+
var a = (x, i) => ee(x, "name", { value: i, configurable: !0 });
|
|
7
|
+
var S = (x, i, e) => oe(x, typeof i != "symbol" ? i + "" : i, e), se = (x, i, e) => i.has(x) || ie("Cannot " + e);
|
|
8
|
+
var t = (x, i, e) => (se(x, i, "read from private field"), e ? e.call(x) : i.get(x)), d = (x, i, e) => i.has(x) ? ie("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(x) : i.set(x, e), b = (x, i, e, s) => (se(x, i, "write to private field"), s ? s.call(x, e) : i.set(x, e), e);
|
|
9
|
+
var ne = (x, i, e, s) => ({
|
|
10
10
|
set _(n) {
|
|
11
|
-
b(
|
|
11
|
+
b(x, i, n, e);
|
|
12
12
|
},
|
|
13
13
|
get _() {
|
|
14
|
-
return t(
|
|
14
|
+
return t(x, i, s);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
import { trace as
|
|
18
|
-
const Vt = class Vt extends
|
|
17
|
+
import { trace as re } from "@ninebone/util";
|
|
18
|
+
const Vt = class Vt extends re.constructor {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(), this.init("nine-table", "green");
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
a(Vt, "Trace");
|
|
24
|
-
let
|
|
25
|
-
const _ = new
|
|
26
|
-
var C, $,
|
|
27
|
-
const
|
|
24
|
+
let _t = Vt;
|
|
25
|
+
const _ = new _t();
|
|
26
|
+
var C, $, y, D, P, B, dt, N, ft;
|
|
27
|
+
const Xt = class Xt extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
d(this, C);
|
|
31
|
+
d(this, $, !1);
|
|
32
|
+
d(this, y);
|
|
33
|
+
d(this, D);
|
|
34
|
+
d(this, P);
|
|
35
|
+
d(this, B);
|
|
36
|
+
d(this, dt, /* @__PURE__ */ a(() => {
|
|
37
37
|
if (!t(this, C)) return;
|
|
38
38
|
const e = t(this, C).querySelector(".ng-container-body");
|
|
39
39
|
e && (b(this, B, new ResizeObserver(() => {
|
|
@@ -41,45 +41,45 @@ const Yt = class Yt extends HTMLElement {
|
|
|
41
41
|
})), t(this, B).observe(e));
|
|
42
42
|
}, "#observeResize"));
|
|
43
43
|
S(this, "refresh", /* @__PURE__ */ a(() => {
|
|
44
|
-
if (!t(this, C) || !t(this,
|
|
45
|
-
const e = t(this,
|
|
44
|
+
if (!t(this, C) || !t(this, y) || t(this, $)) return;
|
|
45
|
+
const e = t(this, y).container, s = e.querySelector("table");
|
|
46
46
|
if (!s) return;
|
|
47
|
-
const n = t(this,
|
|
47
|
+
const n = t(this, y).track, o = t(this, y).thumb, r = t(this, C).querySelector(".ng-container-bottom"), l = e.clientWidth, c = s.scrollWidth;
|
|
48
48
|
if (l !== 0 && c > l)
|
|
49
49
|
r && (r.style.display = "flex");
|
|
50
50
|
else {
|
|
51
51
|
r && (r.style.display = "none");
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
56
|
-
const u = Math.max(Math.min(
|
|
54
|
+
const h = n.clientWidth;
|
|
55
|
+
if (h <= 0) return;
|
|
56
|
+
const u = Math.max(Math.min(h * (l / c), h), 20);
|
|
57
57
|
o.style.width = `${u}px`;
|
|
58
58
|
const f = e.scrollLeft, g = c - l;
|
|
59
|
-
let
|
|
60
|
-
g > 0 && (
|
|
61
|
-
const w =
|
|
62
|
-
|
|
59
|
+
let p = 0;
|
|
60
|
+
g > 0 && (p = parseInt(f / g * (h - u), 10)), p < 0 && (p = 0);
|
|
61
|
+
const w = h - u;
|
|
62
|
+
p > w && (p = w), o.style.left = `${p}px`, _.log(p), t(this, y).left.disabled = p === 0, t(this, y).right.disabled = p >= w - 1;
|
|
63
63
|
}, "refresh"));
|
|
64
|
-
|
|
65
|
-
if (!t(this,
|
|
66
|
-
const s = t(this,
|
|
64
|
+
d(this, N, /* @__PURE__ */ a((e) => {
|
|
65
|
+
if (!t(this, y)) return !1;
|
|
66
|
+
const s = t(this, y).container, n = s.querySelector("table");
|
|
67
67
|
if (!n) return !1;
|
|
68
|
-
const o = t(this,
|
|
68
|
+
const o = t(this, y).track.getBoundingClientRect(), r = t(this, y).thumb.clientWidth;
|
|
69
69
|
let l = e;
|
|
70
70
|
l < 0 && (l = 0);
|
|
71
71
|
const c = o.width - r;
|
|
72
|
-
l > c && (l = c), l = parseInt(l, 10), t(this,
|
|
73
|
-
const
|
|
72
|
+
l > c && (l = c), l = parseInt(l, 10), t(this, y).thumb.style.left = `${l}px`, t(this, y).left.disabled = l === 0, t(this, y).right.disabled = l >= c - 1;
|
|
73
|
+
const h = s.clientWidth, f = n.scrollWidth - h;
|
|
74
74
|
return c > 0 && f > 0 && (s.scrollLeft = l / c * f), l > 0 && l < c - 1;
|
|
75
75
|
}, "#thumbMoveTo"));
|
|
76
|
-
|
|
76
|
+
d(this, ft, /* @__PURE__ */ a(() => {
|
|
77
77
|
const e = /* @__PURE__ */ a((n) => {
|
|
78
78
|
clearInterval(t(this, D)), clearInterval(t(this, P));
|
|
79
|
-
const o = parseInt(t(this,
|
|
79
|
+
const o = parseInt(t(this, y).thumb.style.left || 0, 10);
|
|
80
80
|
t(this, N).call(this, o + n), b(this, D, setInterval(() => {
|
|
81
81
|
clearInterval(t(this, D)), b(this, P, setInterval(() => {
|
|
82
|
-
const r = parseInt(t(this,
|
|
82
|
+
const r = parseInt(t(this, y).thumb.style.left || 0, 10);
|
|
83
83
|
t(this, N).call(this, r + n) || clearInterval(t(this, P));
|
|
84
84
|
}, 50));
|
|
85
85
|
}, 500));
|
|
@@ -87,22 +87,22 @@ const Yt = class Yt extends HTMLElement {
|
|
|
87
87
|
clearInterval(t(this, D)), clearInterval(t(this, P));
|
|
88
88
|
}, "clearTimer");
|
|
89
89
|
["mouseup", "mouseleave", "touchend"].forEach((n) => {
|
|
90
|
-
t(this,
|
|
91
|
-
}), t(this,
|
|
90
|
+
t(this, y).left.addEventListener(n, s), t(this, y).right.addEventListener(n, s), t(this, y).track.addEventListener(n, s);
|
|
91
|
+
}), t(this, y).left.addEventListener("mousedown", (n) => {
|
|
92
92
|
n.button === 0 && e(-20);
|
|
93
|
-
}), t(this,
|
|
93
|
+
}), t(this, y).right.addEventListener("mousedown", (n) => {
|
|
94
94
|
n.button === 0 && e(20);
|
|
95
|
-
}), t(this,
|
|
95
|
+
}), t(this, y).left.addEventListener("touchstart", () => e(-20)), t(this, y).right.addEventListener("touchstart", () => e(20)), t(this, y).track.addEventListener("mousedown", (n) => {
|
|
96
96
|
if (n.button !== 0) return;
|
|
97
97
|
n.preventDefault();
|
|
98
|
-
const o = t(this,
|
|
98
|
+
const o = t(this, y).track.getBoundingClientRect(), r = t(this, y).thumb.clientWidth;
|
|
99
99
|
t(this, N).call(this, n.clientX - o.left - r / 2);
|
|
100
|
-
}), t(this,
|
|
100
|
+
}), t(this, y).thumb.addEventListener("mousedown", (n) => {
|
|
101
101
|
if (n.button !== 0) return;
|
|
102
|
-
n.stopPropagation(), n.preventDefault(), b(this, $, !0), this.shiftX = n.clientX - t(this,
|
|
102
|
+
n.stopPropagation(), n.preventDefault(), b(this, $, !0), this.shiftX = n.clientX - t(this, y).thumb.getBoundingClientRect().left;
|
|
103
103
|
const o = /* @__PURE__ */ a((l) => {
|
|
104
104
|
if (!t(this, $)) return;
|
|
105
|
-
const c = t(this,
|
|
105
|
+
const c = t(this, y).track.getBoundingClientRect();
|
|
106
106
|
t(this, N).call(this, l.clientX - c.left - this.shiftX);
|
|
107
107
|
}, "onMouseMove"), r = /* @__PURE__ */ a(() => {
|
|
108
108
|
b(this, $, !1), s(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", r), this.refresh();
|
|
@@ -182,7 +182,7 @@ const Yt = class Yt extends HTMLElement {
|
|
|
182
182
|
setTimeout(e, 10);
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
|
-
b(this,
|
|
185
|
+
b(this, y, {
|
|
186
186
|
container: s,
|
|
187
187
|
track: this.querySelector(".ng-scroll-track"),
|
|
188
188
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
@@ -190,7 +190,7 @@ const Yt = class Yt extends HTMLElement {
|
|
|
190
190
|
right: this.querySelector(".ng-scroll-right")
|
|
191
191
|
}), s.addEventListener("scroll", () => {
|
|
192
192
|
t(this, $) || this.refresh();
|
|
193
|
-
}), t(this,
|
|
193
|
+
}), t(this, ft).call(this), t(this, dt).call(this), this.refresh();
|
|
194
194
|
}, "initWhenReady");
|
|
195
195
|
e();
|
|
196
196
|
}
|
|
@@ -198,23 +198,23 @@ const Yt = class Yt extends HTMLElement {
|
|
|
198
198
|
t(this, B) && t(this, B).disconnect();
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
C = new WeakMap(), $ = new WeakMap(),
|
|
202
|
-
let
|
|
203
|
-
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar",
|
|
204
|
-
var
|
|
205
|
-
const
|
|
201
|
+
C = new WeakMap(), $ = new WeakMap(), y = new WeakMap(), D = new WeakMap(), P = new WeakMap(), B = new WeakMap(), dt = new WeakMap(), N = new WeakMap(), ft = new WeakMap(), a(Xt, "NineTableHScrollBar");
|
|
202
|
+
let $t = Xt;
|
|
203
|
+
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", $t);
|
|
204
|
+
var Y, I, E, it, st, ut;
|
|
205
|
+
const Ut = class Ut extends HTMLElement {
|
|
206
206
|
constructor() {
|
|
207
207
|
super();
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
d(this, Y);
|
|
209
|
+
d(this, I, !1);
|
|
210
|
+
d(this, E);
|
|
211
|
+
d(this, it, 0);
|
|
212
|
+
d(this, st, 0);
|
|
213
213
|
/**
|
|
214
214
|
* π― μ€ν¬λ‘€λ° μμΉ λ° μΈλΈ ν¬κΈ° κ°±μ
|
|
215
215
|
*/
|
|
216
216
|
S(this, "refresh", /* @__PURE__ */ a(() => {
|
|
217
|
-
if (!t(this,
|
|
217
|
+
if (!t(this, Y) || !t(this, E) || t(this, I)) return;
|
|
218
218
|
const e = t(this, E).container, s = e.querySelector("table");
|
|
219
219
|
if (!s) return;
|
|
220
220
|
const n = t(this, E).track, o = t(this, E).thumb, r = e.clientHeight, l = s.scrollHeight;
|
|
@@ -225,27 +225,27 @@ const Xt = class Xt extends HTMLElement {
|
|
|
225
225
|
o.style.display = "block";
|
|
226
226
|
const c = n.clientHeight;
|
|
227
227
|
if (c <= 0) return;
|
|
228
|
-
const
|
|
229
|
-
o.style.height = `${
|
|
228
|
+
const h = Math.max(Math.min(c * (r / l), c), 20);
|
|
229
|
+
o.style.height = `${h}px`;
|
|
230
230
|
const u = e.scrollTop, f = l - r;
|
|
231
231
|
let g = 0;
|
|
232
|
-
f > 0 && (g = u / f * (c -
|
|
233
|
-
const
|
|
234
|
-
g < 0 && (g = 0), g >
|
|
232
|
+
f > 0 && (g = u / f * (c - h));
|
|
233
|
+
const p = c - h;
|
|
234
|
+
g < 0 && (g = 0), g > p && (g = p), o.style.top = `${g}px`, t(this, E).top.disabled = u <= 0, t(this, E).bottom.disabled = u >= f - 1;
|
|
235
235
|
}, "refresh"));
|
|
236
|
-
|
|
236
|
+
d(this, ut, /* @__PURE__ */ a(() => {
|
|
237
237
|
const e = t(this, E).container;
|
|
238
238
|
e.addEventListener("scroll", () => {
|
|
239
239
|
t(this, I) || this.refresh();
|
|
240
240
|
}), t(this, E).thumb.addEventListener("mousedown", (s) => {
|
|
241
241
|
if (s.button !== 0) return;
|
|
242
|
-
s.stopPropagation(), s.preventDefault(), b(this, I, !0), b(this,
|
|
242
|
+
s.stopPropagation(), s.preventDefault(), b(this, I, !0), b(this, it, s.clientY), b(this, st, e.scrollTop);
|
|
243
243
|
const n = /* @__PURE__ */ a((r) => {
|
|
244
244
|
if (!t(this, I)) return;
|
|
245
|
-
const l = t(this, E).track.getBoundingClientRect(), c = t(this, E).thumb.clientHeight, u = l.height - c, f = r.clientY - t(this,
|
|
245
|
+
const l = t(this, E).track.getBoundingClientRect(), c = t(this, E).thumb.clientHeight, u = l.height - c, f = r.clientY - t(this, it), g = e.clientHeight, w = table.scrollHeight - g;
|
|
246
246
|
if (u > 0 && w > 0) {
|
|
247
|
-
const
|
|
248
|
-
e.scrollTop = t(this,
|
|
247
|
+
const k = f / u * w;
|
|
248
|
+
e.scrollTop = t(this, st) + k;
|
|
249
249
|
}
|
|
250
250
|
this.refresh();
|
|
251
251
|
}, "onMouseMove"), o = /* @__PURE__ */ a(() => {
|
|
@@ -254,7 +254,7 @@ const Xt = class Xt extends HTMLElement {
|
|
|
254
254
|
document.addEventListener("mousemove", n), document.addEventListener("mouseup", o);
|
|
255
255
|
}), t(this, E).track.addEventListener("mousedown", (s) => {
|
|
256
256
|
if (s.button !== 0 || s.target === t(this, E).thumb) return;
|
|
257
|
-
const n = t(this, E).track.getBoundingClientRect(), o = t(this, E).thumb.clientHeight, r = s.clientY - n.top - o / 2, c = n.height - o,
|
|
257
|
+
const n = t(this, E).track.getBoundingClientRect(), o = t(this, E).thumb.clientHeight, r = s.clientY - n.top - o / 2, c = n.height - o, h = e.clientHeight, f = e.querySelector("table").scrollHeight - h;
|
|
258
258
|
if (c > 0 && f > 0) {
|
|
259
259
|
const g = Math.max(0, Math.min(1, r / c));
|
|
260
260
|
e.scrollTop = g * f;
|
|
@@ -268,7 +268,7 @@ const Xt = class Xt extends HTMLElement {
|
|
|
268
268
|
}, "#init"));
|
|
269
269
|
}
|
|
270
270
|
connectedCallback() {
|
|
271
|
-
if (b(this,
|
|
271
|
+
if (b(this, Y, this.closest("nine-table-sheet") || this.getRootNode().host), !t(this, Y)) return;
|
|
272
272
|
this.innerHTML = `
|
|
273
273
|
<style>
|
|
274
274
|
nine-table-vscrollbar {
|
|
@@ -333,7 +333,7 @@ const Xt = class Xt extends HTMLElement {
|
|
|
333
333
|
<button class='ng-scroll-bottom' disabled><div class='ng-scroll-icon'></div></button>
|
|
334
334
|
`;
|
|
335
335
|
const e = /* @__PURE__ */ a(() => {
|
|
336
|
-
const s = t(this,
|
|
336
|
+
const s = t(this, Y).querySelector(".ng-container-body");
|
|
337
337
|
if (!s) {
|
|
338
338
|
setTimeout(e, 10);
|
|
339
339
|
return;
|
|
@@ -344,15 +344,15 @@ const Xt = class Xt extends HTMLElement {
|
|
|
344
344
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
345
345
|
top: this.querySelector(".ng-scroll-top"),
|
|
346
346
|
bottom: this.querySelector(".ng-scroll-bottom")
|
|
347
|
-
}), t(this,
|
|
347
|
+
}), t(this, ut).call(this), this.refresh();
|
|
348
348
|
}, "initWhenReady");
|
|
349
349
|
e();
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
|
-
|
|
353
|
-
let
|
|
354
|
-
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar",
|
|
355
|
-
var
|
|
352
|
+
Y = new WeakMap(), I = new WeakMap(), E = new WeakMap(), it = new WeakMap(), st = new WeakMap(), ut = new WeakMap(), a(Ut, "NineTableVScrollBar");
|
|
353
|
+
let It = Ut;
|
|
354
|
+
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", It);
|
|
355
|
+
var gt, j;
|
|
356
356
|
const H = class H {
|
|
357
357
|
/**
|
|
358
358
|
* π― λ μ΄μμ λ΄μ μ¬λ¬ rawTables λ°°μ΄μ μΌκ΄λ‘ λ°μ λ¨μΌ λ§μ€ν° ν
νλ¦ΏμΌλ‘ μ¬μ μ»΄νμΌν©λλ€.
|
|
@@ -367,15 +367,15 @@ const H = class H {
|
|
|
367
367
|
var n, o, r, l;
|
|
368
368
|
if (!i) return null;
|
|
369
369
|
const e = i.cloneNode(!0);
|
|
370
|
-
return t(n = H,
|
|
370
|
+
return t(n = H, gt).call(n, e), t(o = H, j).call(o, e, "thead"), t(r = H, j).call(r, e, "tbody"), t(l = H, j).call(l, e, "tfoot"), Array.from(e.querySelectorAll("colgroup col")).forEach((c, h) => {
|
|
371
371
|
const u = c.getAttribute("fixed");
|
|
372
|
-
u && e.querySelectorAll(`thead [data-col="${
|
|
372
|
+
u && e.querySelectorAll(`thead [data-col="${h}"], tbody [data-col="${h}"], tfoot [data-col="${h}"]`).forEach((f) => {
|
|
373
373
|
f.setAttribute("fixed", u);
|
|
374
374
|
});
|
|
375
375
|
}), e;
|
|
376
376
|
}
|
|
377
377
|
};
|
|
378
|
-
|
|
378
|
+
gt = new WeakMap(), j = new WeakMap(), a(H, "TableCompiler"), d(H, gt, /* @__PURE__ */ a((i) => {
|
|
379
379
|
if (!i.querySelector("colgroup")) {
|
|
380
380
|
const e = i.querySelector("tbody tr") || i.querySelector("tr"), s = e ? e.querySelectorAll("th, td").length : 1, n = document.createElement("colgroup"), o = Math.max(Math.floor(i.clientWidth / s), 100);
|
|
381
381
|
for (let r = 0; r < s; r++) {
|
|
@@ -389,7 +389,7 @@ ft = new WeakMap(), j = new WeakMap(), a(H, "TableCompiler"), h(H, ft, /* @__PUR
|
|
|
389
389
|
s ? s.after(e) : i.prepend(e);
|
|
390
390
|
}
|
|
391
391
|
i.classList.add("nine-table-element"), i.style.display = "table";
|
|
392
|
-
}, "#ensureTableStructure")),
|
|
392
|
+
}, "#ensureTableStructure")), d(H, j, /* @__PURE__ */ a((i, e) => {
|
|
393
393
|
const s = Array.from(i.querySelectorAll(e + " tr")), n = Array.from(i.querySelectorAll(e + " th," + e + " td")), o = s.length;
|
|
394
394
|
if (o === 0 || n.length === 0) return;
|
|
395
395
|
let r = 0;
|
|
@@ -398,48 +398,48 @@ ft = new WeakMap(), j = new WeakMap(), a(H, "TableCompiler"), h(H, ft, /* @__PUR
|
|
|
398
398
|
});
|
|
399
399
|
const l = Array.from(Array(o), () => Array(r).fill(null));
|
|
400
400
|
s.forEach((c) => {
|
|
401
|
-
const
|
|
401
|
+
const h = c.sectionRowIndex;
|
|
402
402
|
let u = 0;
|
|
403
403
|
Array.from(c.querySelectorAll("th,td")).forEach((f) => {
|
|
404
|
-
for (let w = 0; w < l[
|
|
405
|
-
if (l[
|
|
404
|
+
for (let w = 0; w < l[h].length; w++)
|
|
405
|
+
if (l[h][w] === null) {
|
|
406
406
|
u = w;
|
|
407
407
|
break;
|
|
408
408
|
}
|
|
409
|
-
const g = f.rowSpan || 1,
|
|
409
|
+
const g = f.rowSpan || 1, p = f.colSpan || 1;
|
|
410
410
|
for (let w = 0; w < g; w++)
|
|
411
|
-
for (let
|
|
412
|
-
|
|
411
|
+
for (let k = 0; k < p; k++)
|
|
412
|
+
h + w < o && u + k < r && (l[h + w][u + k] = w === 0 && k === 0 ? "1" : "0");
|
|
413
413
|
});
|
|
414
414
|
}), s.forEach((c) => {
|
|
415
|
-
const
|
|
415
|
+
const h = c.sectionRowIndex;
|
|
416
416
|
Array.from(c.querySelectorAll("th,td")).forEach((u) => {
|
|
417
|
-
for (let f = 0; f < l[
|
|
418
|
-
if (l[
|
|
419
|
-
u.dataset.col = f, l[
|
|
417
|
+
for (let f = 0; f < l[h].length; f++)
|
|
418
|
+
if (l[h][f] === "1") {
|
|
419
|
+
u.dataset.col = f, l[h][f] = "0";
|
|
420
420
|
break;
|
|
421
421
|
}
|
|
422
422
|
});
|
|
423
423
|
});
|
|
424
424
|
}, "#resetColIndex"));
|
|
425
|
-
let
|
|
426
|
-
var
|
|
427
|
-
const
|
|
425
|
+
let Wt = H;
|
|
426
|
+
var m, M, R, W, V, X, bt, pt, nt, ot, yt, mt, rt, F, xt;
|
|
427
|
+
const Kt = class Kt {
|
|
428
428
|
constructor(i) {
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
d(this, m);
|
|
430
|
+
d(this, M, /* @__PURE__ */ new Map());
|
|
431
431
|
// κ° μ»¨ν
μ΄λλ³ λ
립λ ν
νλ¦Ώ TR κ΄λ¦¬
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
432
|
+
d(this, R, null);
|
|
433
|
+
d(this, W, null);
|
|
434
|
+
d(this, V, 0);
|
|
435
|
+
d(this, X, 40);
|
|
436
436
|
/**
|
|
437
437
|
* π― μΈλΆμμ λ°μ΄ν°κ° λ‘λλκ±°λ λ³κ²½λ ν κ°μ λμ΄μ λ·°λ₯Ό μ¬κ°±μ νλ νΌλΈλ¦ λ©μλ
|
|
438
438
|
*/
|
|
439
439
|
S(this, "refresh", /* @__PURE__ */ a(() => {
|
|
440
440
|
var e;
|
|
441
|
-
const i = t(this,
|
|
442
|
-
i && (t(this,
|
|
441
|
+
const i = t(this, m).querySelector(".ng-container-body");
|
|
442
|
+
i && (t(this, nt).call(this), t(this, F).call(this, i.scrollTop), (e = t(this, m).querySelector("nine-table-vscrollbar")) == null || e.refresh());
|
|
443
443
|
}, "refresh"));
|
|
444
444
|
/**
|
|
445
445
|
* π― NineTableSheetμμ λ§μ€ν° ν
μ΄λΈμ μ λ¬λ°μ κ° μμλ³ ν
μ΄λΈ μμ± λ° ν
νλ¦Ώ μΆμΆ μΌμν
|
|
@@ -447,7 +447,7 @@ const Ut = class Ut {
|
|
|
447
447
|
// [RowManager.js μμ λ΄μ© λ°μ·]
|
|
448
448
|
S(this, "initialize", /* @__PURE__ */ a(() => {
|
|
449
449
|
b(this, R, null), t(this, M).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((e) => {
|
|
450
|
-
const s = t(this,
|
|
450
|
+
const s = t(this, m).querySelector(e);
|
|
451
451
|
if (!s) return;
|
|
452
452
|
const n = s.querySelector("table");
|
|
453
453
|
if (!n) return;
|
|
@@ -456,18 +456,18 @@ const Ut = class Ut {
|
|
|
456
456
|
const l = Array.from(o.querySelectorAll("tr")).map((c) => c.cloneNode(!0));
|
|
457
457
|
t(this, M).set(e, l);
|
|
458
458
|
});
|
|
459
|
-
const i = t(this,
|
|
459
|
+
const i = t(this, m).querySelector(".ng-container-body");
|
|
460
460
|
if (i) {
|
|
461
|
-
t(this,
|
|
461
|
+
t(this, pt).call(this, i), t(this, rt).call(this), t(this, nt).call(this), t(this, F).call(this, i.scrollTop);
|
|
462
462
|
let e = i.scrollTop;
|
|
463
463
|
i.addEventListener("scroll", () => {
|
|
464
464
|
var n;
|
|
465
465
|
const s = i.scrollTop;
|
|
466
|
-
_.log(e, s), e !== s && (e = s, t(this,
|
|
466
|
+
_.log(e, s), e !== s && (e = s, t(this, F).call(this, s)), (n = t(this, m).querySelector("nine-table-vscrollbar")) == null || n.refresh();
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
}, "initialize"));
|
|
470
|
-
|
|
470
|
+
d(this, bt, /* @__PURE__ */ a((i, e) => {
|
|
471
471
|
const s = t(this, M).get(e);
|
|
472
472
|
if (!s || s.length === 0) return;
|
|
473
473
|
const n = i.querySelector("tbody");
|
|
@@ -483,7 +483,7 @@ const Ut = class Ut {
|
|
|
483
483
|
/**
|
|
484
484
|
* π― ν
νλ¦Ώ TRλ€μ μ΄ λμ΄λ₯Ό μΈ‘μ νκ³ μΊμ±
|
|
485
485
|
*/
|
|
486
|
-
|
|
486
|
+
d(this, pt, /* @__PURE__ */ a((i) => {
|
|
487
487
|
if (t(this, R) !== null && t(this, R) > 0)
|
|
488
488
|
return t(this, R);
|
|
489
489
|
const e = t(this, M).get(".ng-container-body");
|
|
@@ -495,13 +495,13 @@ const Ut = class Ut {
|
|
|
495
495
|
e.forEach((g) => {
|
|
496
496
|
o.appendChild(g.cloneNode(!0));
|
|
497
497
|
}), n ? n.before(o) : s.appendChild(o);
|
|
498
|
-
const r = t(this,
|
|
498
|
+
const r = t(this, m), l = r.style.display, c = r.style.visibility, h = r.style.position;
|
|
499
499
|
(l === "none" || window.getComputedStyle(r).display === "none") && (r.style.display = "block", r.style.visibility = "hidden", r.style.position = "absolute");
|
|
500
500
|
let u = 0;
|
|
501
501
|
const f = s.querySelectorAll("tr:not(.nodata)");
|
|
502
502
|
return f.forEach((g) => {
|
|
503
503
|
u += g.offsetHeight || g.getBoundingClientRect().height;
|
|
504
|
-
}), f.forEach((g) => g.remove()), r.style.display = l, r.style.visibility = c, r.style.position =
|
|
504
|
+
}), f.forEach((g) => g.remove()), r.style.display = l, r.style.visibility = c, r.style.position = h, b(this, R, u > 0 ? u : 24), t(this, ot).call(this), _.log(`[RowManager] Height Cached: ${t(this, R)}px | RowCount: ${t(this, X)}`), t(this, R);
|
|
505
505
|
}, "#measureAndCacheHeight"));
|
|
506
506
|
/**
|
|
507
507
|
* π― μ 체 λ°μ΄ν° κ°μ κΈ°λ°μΌλ‘ κ°μ μ€ν¬λ‘€ λμ΄ μ€μ
|
|
@@ -509,41 +509,41 @@ const Ut = class Ut {
|
|
|
509
509
|
/**
|
|
510
510
|
* π― μ 체 λ°μ΄ν° κ°μ κΈ°λ°μΌλ‘ κ°μ μ€ν¬λ‘€ λμ΄ μ€μ
|
|
511
511
|
*/
|
|
512
|
-
|
|
512
|
+
d(this, nt, /* @__PURE__ */ a(() => {
|
|
513
513
|
var o, r, l, c;
|
|
514
|
-
if (!t(this,
|
|
515
|
-
const e = (typeof ((o = t(this,
|
|
516
|
-
_.log(`[RowManager] TotalCount: ${e} | RowHeight: ${s}px | TotalVirtualHeight: ${n}px`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((
|
|
517
|
-
const u = t(this,
|
|
518
|
-
f ? (f.style.height = `${n}px`, _.log(`[RowManager] Applied height to ${
|
|
514
|
+
if (!t(this, m).querySelector(".ng-container-body")) return;
|
|
515
|
+
const e = (typeof ((o = t(this, m).data) == null ? void 0 : o.count) == "function" ? t(this, m).data.count() : null) ?? ((l = (r = t(this, m).dataManager) == null ? void 0 : r.rawRecords) == null ? void 0 : l.length) ?? ((c = t(this, m).data) == null ? void 0 : c.length) ?? 0, s = t(this, R) || 24, n = e * s;
|
|
516
|
+
_.log(`[RowManager] TotalCount: ${e} | RowHeight: ${s}px | TotalVirtualHeight: ${n}px`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((h) => {
|
|
517
|
+
const u = t(this, m).querySelector(h), f = u == null ? void 0 : u.querySelector("table");
|
|
518
|
+
f ? (f.style.height = `${n}px`, _.log(`[RowManager] Applied height to ${h} table:`, f.style.height)) : _.log(`[RowManager] Table not found for selector: ${h}`);
|
|
519
519
|
});
|
|
520
520
|
}, "#updateVirtualScrollHeight"));
|
|
521
|
-
|
|
522
|
-
if (t(this,
|
|
523
|
-
const i = Math.ceil(t(this,
|
|
521
|
+
d(this, ot, /* @__PURE__ */ a(() => {
|
|
522
|
+
if (t(this, V) > 0 && t(this, R) > 0) {
|
|
523
|
+
const i = Math.ceil(t(this, V) / t(this, R));
|
|
524
524
|
b(this, X, i + 20);
|
|
525
525
|
} else
|
|
526
526
|
b(this, X, 40);
|
|
527
527
|
}, "#updateRowCount"));
|
|
528
|
-
|
|
529
|
-
var c,
|
|
530
|
-
const i = t(this,
|
|
528
|
+
d(this, yt, /* @__PURE__ */ a(() => {
|
|
529
|
+
var c, h, u;
|
|
530
|
+
const i = t(this, m).querySelector(".ng-container-left table"), e = t(this, m).querySelector(".ng-container-body table"), s = t(this, m).querySelector(".ng-container-right table");
|
|
531
531
|
if (!e) return;
|
|
532
532
|
const n = i ? Array.from(i.querySelectorAll("tr")) : [], o = Array.from(e.querySelectorAll("tr")), r = s ? Array.from(s.querySelectorAll("tr")) : [], l = Math.max(n.length, o.length, r.length);
|
|
533
533
|
for (let f = 0; f < l; f++) {
|
|
534
534
|
const g = [
|
|
535
535
|
((c = n[f]) == null ? void 0 : c.getBoundingClientRect().height) || 0,
|
|
536
|
-
((
|
|
536
|
+
((h = o[f]) == null ? void 0 : h.getBoundingClientRect().height) || 0,
|
|
537
537
|
((u = r[f]) == null ? void 0 : u.getBoundingClientRect().height) || 0
|
|
538
|
-
],
|
|
539
|
-
|
|
538
|
+
], p = Math.max(...g);
|
|
539
|
+
p > 0 && (n[f] && (n[f].style.height = `${p}px`), o[f] && (o[f].style.height = `${p}px`), r[f] && (r[f].style.height = `${p}px`));
|
|
540
540
|
}
|
|
541
541
|
}, "#syncRowHeights"));
|
|
542
542
|
/**
|
|
543
543
|
* π― ResizeObserver μ€μ : μνΈ ν¬κΈ° λ³κ²½ μ ν κ°μ μ¬μ°μ λ° μ¬λ λλ§
|
|
544
544
|
*/
|
|
545
|
-
|
|
546
|
-
!t(this,
|
|
545
|
+
d(this, mt, /* @__PURE__ */ a(() => {
|
|
546
|
+
!t(this, m) || !(t(this, m) instanceof HTMLElement) || (b(this, W, new ResizeObserver((i) => {
|
|
547
547
|
for (const e of i) {
|
|
548
548
|
const s = e.target;
|
|
549
549
|
if (!s.classList.contains("active")) continue;
|
|
@@ -553,46 +553,47 @@ const Ut = class Ut {
|
|
|
553
553
|
const r = s.querySelector("thead");
|
|
554
554
|
r && (o += r.offsetHeight || r.getBoundingClientRect().height);
|
|
555
555
|
const l = Math.max(n - o, 100);
|
|
556
|
-
t(this,
|
|
556
|
+
t(this, V) !== l && (b(this, V, l), t(this, ot).call(this), t(this, R) !== null && t(this, rt).call(this));
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
})), t(this, W).observe(t(this,
|
|
559
|
+
})), t(this, W).observe(t(this, m)));
|
|
560
560
|
}, "#initResizeObserver"));
|
|
561
561
|
/**
|
|
562
562
|
* π― λ°λ λ° μ’μ° κ³ μ 컨ν
μ΄λ μ 체μ κ°κ°μ λ§λ ν
νλ¦Ώ ν λΌλ μ£Όμ
|
|
563
563
|
*/
|
|
564
|
-
|
|
564
|
+
d(this, rt, /* @__PURE__ */ a(() => {
|
|
565
565
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
|
|
566
|
-
const e = t(this,
|
|
567
|
-
e && e.querySelector("tbody") && t(this,
|
|
568
|
-
}), t(this,
|
|
566
|
+
const e = t(this, m).querySelector(i);
|
|
567
|
+
e && e.querySelector("tbody") && t(this, bt).call(this, e, i);
|
|
568
|
+
}), t(this, yt).call(this);
|
|
569
569
|
}, "#renderAllContainers"));
|
|
570
570
|
/**
|
|
571
571
|
* π― μ€ν¬λ‘€ μμΉμ λ°λ₯Έ λ°μ΄ν° λ°μΈλ© κ°±μ
|
|
572
572
|
*/
|
|
573
|
-
|
|
573
|
+
/**
|
|
574
|
+
* π― μ€ν¬λ‘€ μμΉμ λ°λ₯Έ λ°μ΄ν° λ°μΈλ© λ° tbody λ―ΈμΈ ν½μ
μ΄λ(translateY) κ°±μ
|
|
575
|
+
*/
|
|
576
|
+
d(this, F, /* @__PURE__ */ a((i) => {
|
|
574
577
|
var r;
|
|
575
578
|
const e = t(this, R);
|
|
576
579
|
if (!e || e <= 0) return;
|
|
577
|
-
const s = ((r = t(this, M).get(".ng-container-body")) == null ? void 0 : r.length) || 1
|
|
580
|
+
const s = Math.max(0, Math.floor(i / e)), n = i % e, o = ((r = t(this, M).get(".ng-container-body")) == null ? void 0 : r.length) || 1;
|
|
578
581
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((l) => {
|
|
579
|
-
const c = t(this,
|
|
582
|
+
const c = t(this, m).querySelector(l);
|
|
580
583
|
if (!c) return;
|
|
581
|
-
const
|
|
582
|
-
if (!
|
|
583
|
-
Array.from(
|
|
584
|
-
|
|
585
|
-
w
|
|
584
|
+
const h = c.querySelector("tbody");
|
|
585
|
+
if (!h) return;
|
|
586
|
+
h.style.transform = `translateY(-${n}px)`, h.style.willChange = "transform", Array.from(h.querySelectorAll("tr:not(.nodata)")).forEach((f, g) => {
|
|
587
|
+
var k, tt, Qt, te;
|
|
588
|
+
const p = s + Math.floor(g / o), w = (typeof t(this, m).getData == "function" ? t(this, m).getData(p) : null) ?? (typeof ((k = t(this, m).data) == null ? void 0 : k.get) == "function" ? t(this, m).data.get(p) : null) ?? ((Qt = (tt = t(this, m).dataManager) == null ? void 0 : tt.rawRecords) == null ? void 0 : Qt[p]) ?? ((te = t(this, m).data) == null ? void 0 : te[p]) ?? null;
|
|
589
|
+
w ? (f.style.display = "", t(this, xt).call(this, f, w, p)) : f.style.display = "none";
|
|
586
590
|
});
|
|
587
591
|
});
|
|
588
592
|
}, "#handleScroll"));
|
|
589
593
|
/**
|
|
590
594
|
* π― κ°λ³ TR μ리먼νΈμ μ€μ λ°μ΄ν° κ°μ κ½μμ£Όλ λ°μΈλ© λ©μλ
|
|
591
595
|
*/
|
|
592
|
-
|
|
593
|
-
* π― κ°λ³ TR μ리먼νΈμ μ€μ λ°μ΄ν° κ°μ κ½μμ£Όλ λ°μΈλ© λ©μλ
|
|
594
|
-
*/
|
|
595
|
-
h(this, mt, /* @__PURE__ */ a((i, e, s) => {
|
|
596
|
+
d(this, xt, /* @__PURE__ */ a((i, e, s) => {
|
|
596
597
|
i.dataset.row = s, Array.from(i.cells).forEach((n, o) => {
|
|
597
598
|
const r = n.dataset.bind;
|
|
598
599
|
r && e && e[r] !== void 0 ? n.textContent = e[r] : n.textContent = e ? e[Object.keys(e)[o]] ?? `R${s}C${o}` : `ν ${s + 1}`, n.dataset.row = s;
|
|
@@ -601,7 +602,7 @@ const Ut = class Ut {
|
|
|
601
602
|
S(this, "destroy", /* @__PURE__ */ a(() => {
|
|
602
603
|
t(this, W) && (t(this, W).disconnect(), b(this, W, null));
|
|
603
604
|
}, "destroy"));
|
|
604
|
-
b(this,
|
|
605
|
+
b(this, m, i), t(this, mt).call(this);
|
|
605
606
|
}
|
|
606
607
|
getRowHeight() {
|
|
607
608
|
return t(this, R);
|
|
@@ -611,15 +612,15 @@ const Ut = class Ut {
|
|
|
611
612
|
return ((e = t(this, M).get(i)) == null ? void 0 : e.length) || 1;
|
|
612
613
|
}
|
|
613
614
|
};
|
|
614
|
-
|
|
615
|
-
let
|
|
616
|
-
var
|
|
617
|
-
const
|
|
615
|
+
m = new WeakMap(), M = new WeakMap(), R = new WeakMap(), W = new WeakMap(), V = new WeakMap(), X = new WeakMap(), bt = new WeakMap(), pt = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), yt = new WeakMap(), mt = new WeakMap(), rt = new WeakMap(), F = new WeakMap(), xt = new WeakMap(), a(Kt, "RowManager");
|
|
616
|
+
let Ot = Kt;
|
|
617
|
+
var Z, G, vt, wt, St, Et, Rt;
|
|
618
|
+
const et = class et extends HTMLElement {
|
|
618
619
|
constructor() {
|
|
619
620
|
super();
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
621
|
+
d(this, Z, null);
|
|
622
|
+
d(this, G);
|
|
623
|
+
d(this, vt, /* @__PURE__ */ a(() => {
|
|
623
624
|
[
|
|
624
625
|
{ selector: ".ng-container-body", type: null },
|
|
625
626
|
{ selector: ".ng-container-left", type: "left" },
|
|
@@ -627,11 +628,11 @@ const Q = class Q extends HTMLElement {
|
|
|
627
628
|
].forEach(({ selector: s, type: n }) => {
|
|
628
629
|
const o = this.querySelector(s);
|
|
629
630
|
if (!o) return;
|
|
630
|
-
const r = t(this,
|
|
631
|
+
const r = t(this, St).call(this, t(this, Z), n);
|
|
631
632
|
o.innerHTML = "", o.appendChild(r);
|
|
632
633
|
});
|
|
633
634
|
}, "#renderSplitContainers"));
|
|
634
|
-
|
|
635
|
+
d(this, wt, /* @__PURE__ */ a(() => {
|
|
635
636
|
["left", "right"].forEach((e) => {
|
|
636
637
|
const s = this.querySelector(`.ng-container-${e}`), n = s == null ? void 0 : s.querySelector("table");
|
|
637
638
|
if (!s || !n) return;
|
|
@@ -643,7 +644,7 @@ const Q = class Q extends HTMLElement {
|
|
|
643
644
|
});
|
|
644
645
|
}, "#updateContainerWidths"));
|
|
645
646
|
S(this, "generate", /* @__PURE__ */ a((e) => {
|
|
646
|
-
e && (b(this,
|
|
647
|
+
e && (b(this, Z, Wt.compile(e)), t(this, Z).style.display = "table", t(this, vt).call(this), t(this, wt).call(this), t(this, G).initialize(), setTimeout(() => {
|
|
647
648
|
var s;
|
|
648
649
|
(s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
|
|
649
650
|
}, 0));
|
|
@@ -651,7 +652,7 @@ const Q = class Q extends HTMLElement {
|
|
|
651
652
|
/**
|
|
652
653
|
* π― λ§μ€ν° ν
μ΄λΈμ κΈ°λ°μΌλ‘ νΉμ fixed νμ
μμλ§ λ¨κΈ°λ λΆν ν¬νΌ
|
|
653
654
|
*/
|
|
654
|
-
|
|
655
|
+
d(this, St, /* @__PURE__ */ a((e, s) => {
|
|
655
656
|
const n = e.cloneNode(!0);
|
|
656
657
|
return s === "left" ? n.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((o) => {
|
|
657
658
|
o.getAttribute("fixed") !== "left" && o.remove();
|
|
@@ -661,7 +662,7 @@ const Q = class Q extends HTMLElement {
|
|
|
661
662
|
o.remove();
|
|
662
663
|
}), n;
|
|
663
664
|
}, "#createSplitTable"));
|
|
664
|
-
S(this, "getRowHeight", /* @__PURE__ */ a(() => t(this,
|
|
665
|
+
S(this, "getRowHeight", /* @__PURE__ */ a(() => t(this, G).getRowHeight(), "getRowHeight"));
|
|
665
666
|
S(this, "scrollToX", /* @__PURE__ */ a((e) => {
|
|
666
667
|
const s = this.querySelector(".ng-container-body");
|
|
667
668
|
s && (s.scrollLeft = e);
|
|
@@ -670,11 +671,11 @@ const Q = class Q extends HTMLElement {
|
|
|
670
671
|
const s = this.querySelector(".ng-container-body");
|
|
671
672
|
s && (s.scrollTop = e);
|
|
672
673
|
}, "scrollToY"));
|
|
673
|
-
|
|
674
|
-
t(this,
|
|
674
|
+
d(this, Et, /* @__PURE__ */ a(() => {
|
|
675
|
+
t(this, Rt).call(this);
|
|
675
676
|
}, "#init"));
|
|
676
|
-
|
|
677
|
-
const e =
|
|
677
|
+
d(this, Rt, /* @__PURE__ */ a(() => {
|
|
678
|
+
const e = et.SCROLLBAR_SIZE;
|
|
678
679
|
this.innerHTML = `
|
|
679
680
|
<style>
|
|
680
681
|
nine-table-sheet {
|
|
@@ -810,38 +811,38 @@ const Q = class Q extends HTMLElement {
|
|
|
810
811
|
</div>
|
|
811
812
|
`;
|
|
812
813
|
}, "#render"));
|
|
813
|
-
b(this,
|
|
814
|
+
b(this, G, new Ot(this));
|
|
814
815
|
}
|
|
815
816
|
connectedCallback() {
|
|
816
|
-
t(this,
|
|
817
|
+
t(this, Et).call(this);
|
|
817
818
|
}
|
|
818
819
|
disconnectedCallback() {
|
|
819
820
|
this.innerHTML = "", _.log("NineTableSheet destroyed.");
|
|
820
821
|
}
|
|
821
822
|
};
|
|
822
|
-
|
|
823
|
-
let
|
|
824
|
-
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet",
|
|
825
|
-
var
|
|
826
|
-
const
|
|
823
|
+
Z = new WeakMap(), G = new WeakMap(), vt = new WeakMap(), wt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Rt = new WeakMap(), a(et, "NineTableSheet"), S(et, "SCROLLBAR_SIZE", 16);
|
|
824
|
+
let ht = et;
|
|
825
|
+
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ht);
|
|
826
|
+
var Tt, lt;
|
|
827
|
+
const jt = class jt extends HTMLElement {
|
|
827
828
|
constructor() {
|
|
828
829
|
super();
|
|
829
|
-
|
|
830
|
+
d(this, Tt, /* @__PURE__ */ a(() => {
|
|
830
831
|
var e;
|
|
831
832
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
832
833
|
var r;
|
|
833
834
|
const n = s.ctrlKey || s.metaKey || s.shiftKey, o = parseInt((r = s.target.closest(".nine-tab-item")) == null ? void 0 : r.dataset.index, 10);
|
|
834
|
-
t(this,
|
|
835
|
-
}), t(this,
|
|
835
|
+
t(this, lt).call(this, o, n);
|
|
836
|
+
}), t(this, lt).call(this, 0, !1);
|
|
836
837
|
}, "#init"));
|
|
837
|
-
|
|
838
|
+
d(this, lt, /* @__PURE__ */ a((e, s = !1) => {
|
|
838
839
|
const n = /* @__PURE__ */ a(() => {
|
|
839
840
|
const u = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
840
|
-
Array.from(this.querySelectorAll("nine-splitter")).forEach((
|
|
841
|
-
const g = u.filter((
|
|
842
|
-
g.length < 2 || g.forEach((
|
|
843
|
-
const w = parseInt(
|
|
844
|
-
|
|
841
|
+
Array.from(this.querySelectorAll("nine-splitter")).forEach((p) => p.style.setProperty("display", "none"));
|
|
842
|
+
const g = u.filter((p) => p.classList.contains("active"));
|
|
843
|
+
g.length < 2 || g.forEach((p) => {
|
|
844
|
+
const w = parseInt(p.getAttribute("data-index"), 10), k = this.querySelector(`nine-splitter[data-split-index="${w}"]`), tt = u[w + 1];
|
|
845
|
+
k && tt && tt.classList.contains("active") && k.style.setProperty("display", "flex");
|
|
845
846
|
});
|
|
846
847
|
}, "updateSplitters"), o = this.querySelector(".nine-tab-bar"), r = this.querySelector("nine-table-sheets-body"), l = o.querySelectorAll(".nine-tab-item"), c = r.querySelectorAll("nine-table-sheet");
|
|
847
848
|
if (!l[e]) return;
|
|
@@ -860,41 +861,41 @@ const Kt = class Kt extends HTMLElement {
|
|
|
860
861
|
const g = r.querySelector(`nine-table-sheet[data-index="${e}"]`);
|
|
861
862
|
g && (g.classList.toggle("active"), g.classList.contains("active") || (g.style.flex = ""));
|
|
862
863
|
}
|
|
863
|
-
const
|
|
864
|
-
|
|
865
|
-
u.style.flex =
|
|
864
|
+
const h = r.querySelectorAll("nine-table-sheet.active");
|
|
865
|
+
h == null || h.forEach((u) => {
|
|
866
|
+
u.style.flex = h.length > 1 ? "1 1 0%" : "1 1 100%";
|
|
866
867
|
}), n();
|
|
867
868
|
}, "#switchSheet"));
|
|
868
869
|
}
|
|
869
870
|
connectedCallback() {
|
|
870
|
-
t(this,
|
|
871
|
+
t(this, Tt).call(this);
|
|
871
872
|
}
|
|
872
873
|
};
|
|
873
|
-
|
|
874
|
-
let
|
|
875
|
-
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets",
|
|
876
|
-
var T,
|
|
877
|
-
const
|
|
874
|
+
Tt = new WeakMap(), lt = new WeakMap(), a(jt, "NineTableSheets");
|
|
875
|
+
let zt = jt;
|
|
876
|
+
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", zt);
|
|
877
|
+
var T, kt, at, At;
|
|
878
|
+
const Ft = class Ft {
|
|
878
879
|
constructor(i) {
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
t(this,
|
|
880
|
+
d(this, T);
|
|
881
|
+
d(this, kt, /* @__PURE__ */ a(() => {
|
|
882
|
+
t(this, At).call(this), new ResizeObserver((i) => {
|
|
882
883
|
for (let e of i)
|
|
883
|
-
t(this, T).getAttribute("auto-height") === "true" && t(this,
|
|
884
|
+
t(this, T).getAttribute("auto-height") === "true" && t(this, at).call(this);
|
|
884
885
|
}).observe(t(this, T));
|
|
885
886
|
}, "#init"));
|
|
886
|
-
|
|
887
|
-
var c,
|
|
887
|
+
d(this, at, /* @__PURE__ */ a(() => {
|
|
888
|
+
var c, h;
|
|
888
889
|
const i = Array.from(t(this, T).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
889
890
|
if (i.length === 0) return;
|
|
890
|
-
const e = parseInt(t(this, T).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((u) => u.getRowHeight())), n = (c = t(this, T).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, o = (
|
|
891
|
+
const e = parseInt(t(this, T).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((u) => u.getRowHeight())), n = (c = t(this, T).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : c.getBoundingClientRect().height, o = (h = t(this, T).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : h.getBoundingClientRect().height, r = ht.SCROLLBAR_SIZE, l = e * s + n + o + r;
|
|
891
892
|
t(this, T).style.height = `${l}px`;
|
|
892
893
|
}, "#applyAutoHeight"));
|
|
893
|
-
|
|
894
|
-
const e = Array.from(t(this, T).children).filter((c) => c.tagName === "TABLE"), s = t(this, T).getAttribute("auto-height") === "true", n = e.length, o = e.map((c,
|
|
895
|
-
const f = `<nine-table-sheet class="${
|
|
894
|
+
d(this, At, /* @__PURE__ */ a(() => {
|
|
895
|
+
const e = Array.from(t(this, T).children).filter((c) => c.tagName === "TABLE"), s = t(this, T).getAttribute("auto-height") === "true", n = e.length, o = e.map((c, h) => {
|
|
896
|
+
const f = `<nine-table-sheet class="${h === 0 ? "active" : ""}" data-index="${h}"></nine-table-sheet>`, g = h < n - 1 ? `<nine-splitter class="h" data-split-index="${h}"></nine-splitter>` : "";
|
|
896
897
|
return f + g;
|
|
897
|
-
}).join(""), r = e.map((c,
|
|
898
|
+
}).join(""), r = e.map((c, h) => `<div class="nine-tab-item ${h === 0 ? "active" : ""}" data-index="${h}">Sheet ${h + 1}</div>`).join("");
|
|
898
899
|
t(this, T).shadowRoot.innerHTML = `
|
|
899
900
|
<style>
|
|
900
901
|
:host {
|
|
@@ -995,22 +996,22 @@ const jt = class jt {
|
|
|
995
996
|
<nine-table-footer></nine-table-footer>
|
|
996
997
|
`;
|
|
997
998
|
const l = t(this, T).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
998
|
-
l == null || l.forEach((c,
|
|
999
|
-
e[
|
|
1000
|
-
c.generate(e[
|
|
999
|
+
l == null || l.forEach((c, h) => {
|
|
1000
|
+
e[h] && setTimeout(() => {
|
|
1001
|
+
c.generate(e[h]), s && t(this, at).call(this);
|
|
1001
1002
|
});
|
|
1002
1003
|
});
|
|
1003
1004
|
}, "#render"));
|
|
1004
|
-
b(this, T, i), t(this,
|
|
1005
|
+
b(this, T, i), t(this, kt).call(this);
|
|
1005
1006
|
}
|
|
1006
1007
|
};
|
|
1007
|
-
T = new WeakMap(),
|
|
1008
|
-
let
|
|
1008
|
+
T = new WeakMap(), kt = new WeakMap(), at = new WeakMap(), At = new WeakMap(), a(Ft, "LayoutManager");
|
|
1009
|
+
let Dt = Ft;
|
|
1009
1010
|
var O, U;
|
|
1010
|
-
const
|
|
1011
|
+
const Zt = class Zt {
|
|
1011
1012
|
constructor(i) {
|
|
1012
|
-
|
|
1013
|
-
|
|
1013
|
+
d(this, O);
|
|
1014
|
+
d(this, U, -1);
|
|
1014
1015
|
S(this, "count", /* @__PURE__ */ a(() => t(this, O).rawRecords.length, "count"));
|
|
1015
1016
|
b(this, O, i);
|
|
1016
1017
|
}
|
|
@@ -1027,50 +1028,50 @@ const Ft = class Ft {
|
|
|
1027
1028
|
});
|
|
1028
1029
|
}
|
|
1029
1030
|
};
|
|
1030
|
-
O = new WeakMap(), U = new WeakMap(), a(
|
|
1031
|
-
let
|
|
1032
|
-
var
|
|
1033
|
-
const
|
|
1031
|
+
O = new WeakMap(), U = new WeakMap(), a(Zt, "ngRow");
|
|
1032
|
+
let Pt = Zt;
|
|
1033
|
+
var A, v, q, J, qt, z, Lt, ct, Ht, Ct, Q;
|
|
1034
|
+
const L = class L {
|
|
1034
1035
|
constructor(i, e) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1036
|
+
d(this, A);
|
|
1037
|
+
d(this, v);
|
|
1038
|
+
d(this, q, []);
|
|
1039
|
+
d(this, J, []);
|
|
1040
|
+
d(this, qt, 0);
|
|
1041
|
+
d(this, z, []);
|
|
1042
|
+
d(this, Lt, /* @__PURE__ */ a(() => {
|
|
1042
1043
|
b(this, z, []);
|
|
1043
|
-
const i = t(this,
|
|
1044
|
+
const i = t(this, A).template || [];
|
|
1044
1045
|
Array.from(i).forEach((e) => {
|
|
1045
1046
|
var s;
|
|
1046
1047
|
t(this, z).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1047
1048
|
}), (t(this, v).rawRecords || []).forEach((e) => {
|
|
1048
|
-
e.__ng || (e.__ng = t(this,
|
|
1049
|
+
e.__ng || (e.__ng = t(this, ct).call(this)), e.__ng.height = t(this, z).slice();
|
|
1049
1050
|
});
|
|
1050
1051
|
}, "#initialize"));
|
|
1051
1052
|
S(this, "set", /* @__PURE__ */ a((i) => {
|
|
1052
1053
|
this.clear(), this.add(i, !1);
|
|
1053
1054
|
}, "set"));
|
|
1054
|
-
|
|
1055
|
-
rowState:
|
|
1055
|
+
d(this, ct, /* @__PURE__ */ a(() => ({
|
|
1056
|
+
rowState: L.ROW_STATE.EMPTY,
|
|
1056
1057
|
deleted: !1,
|
|
1057
1058
|
filtered: !1,
|
|
1058
1059
|
height: t(this, z).slice(),
|
|
1059
1060
|
o: {},
|
|
1060
1061
|
c: {},
|
|
1061
|
-
_: [0, 0, 0, 0,
|
|
1062
|
+
_: [0, 0, 0, 0, L.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, z).slice(), -1, {}, {}]
|
|
1062
1063
|
}), "#getDefaultMeta"));
|
|
1063
1064
|
S(this, "reset", /* @__PURE__ */ a(() => {
|
|
1064
|
-
b(this,
|
|
1065
|
+
b(this, q, []), b(this, J, []);
|
|
1065
1066
|
}, "reset"));
|
|
1066
1067
|
S(this, "clear", /* @__PURE__ */ a(() => {
|
|
1067
1068
|
var i;
|
|
1068
|
-
t(this, v).rawRecords = [], b(this,
|
|
1069
|
+
t(this, v).rawRecords = [], b(this, q, []), b(this, J, []), (i = t(this, v).viewRecords) != null && i.reset && t(this, v).viewRecords.reset();
|
|
1069
1070
|
}, "clear"));
|
|
1070
|
-
|
|
1071
|
+
d(this, Ht, /* @__PURE__ */ a((i) => {
|
|
1071
1072
|
var n;
|
|
1072
1073
|
Array.isArray(i) || (i = [i]);
|
|
1073
|
-
const e = typeof ((n = t(this,
|
|
1074
|
+
const e = typeof ((n = t(this, A).fields) == null ? void 0 : n.get) == "function" ? t(this, A).fields.get() : Object.keys(i[0] || {}), s = [];
|
|
1074
1075
|
return i.forEach((o) => {
|
|
1075
1076
|
const r = { v: [] };
|
|
1076
1077
|
e.forEach((l) => {
|
|
@@ -1078,28 +1079,28 @@ const q = class q {
|
|
|
1078
1079
|
}), s.push(r);
|
|
1079
1080
|
}), s;
|
|
1080
1081
|
}, "#json2Array"));
|
|
1081
|
-
|
|
1082
|
-
e.__ng = t(this,
|
|
1082
|
+
d(this, Ct, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
|
|
1083
|
+
e.__ng = t(this, ct).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = L.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
|
|
1083
1084
|
}), i), "#defaultInsert"));
|
|
1084
1085
|
S(this, "add", /* @__PURE__ */ a((i, e = !0) => {
|
|
1085
1086
|
var o;
|
|
1086
1087
|
i === void 0 && (i = {});
|
|
1087
|
-
const s = t(this,
|
|
1088
|
-
t(this, v).rawRecords = t(this, v).rawRecords.concat(t(this,
|
|
1088
|
+
const s = t(this, Ht).call(this, i);
|
|
1089
|
+
t(this, v).rawRecords = t(this, v).rawRecords.concat(t(this, Ct).call(this, s)), this.resetRecords();
|
|
1089
1090
|
const n = this.count() - 1;
|
|
1090
1091
|
return e || s.forEach((r, l) => {
|
|
1091
1092
|
const c = t(this, v).rawRecords[n - l];
|
|
1092
|
-
c && (c.__ng.rowState =
|
|
1093
|
+
c && (c.__ng.rowState = L.ROW_STATE.EMPTY);
|
|
1093
1094
|
}), (o = t(this, v).viewRecords) != null && o.reset && t(this, v).viewRecords.reset(), n;
|
|
1094
1095
|
}, "add"));
|
|
1095
1096
|
S(this, "delete", /* @__PURE__ */ a((i) => {
|
|
1096
1097
|
var s;
|
|
1097
1098
|
let e = [];
|
|
1098
1099
|
Array.isArray(i) ? e = i : typeof i > "u" ? e = [t(this, v).owner.row.at] : e = [parseInt(i, 10)], e.sort((n, o) => o - n).forEach((n) => {
|
|
1099
|
-
if (t(this,
|
|
1100
|
-
const o = t(this,
|
|
1101
|
-
t(this,
|
|
1102
|
-
r.__ng.rowid === o && (r.__ng.deleted = !0, r.__ng.rowState =
|
|
1100
|
+
if (t(this, q)[n]) {
|
|
1101
|
+
const o = t(this, q)[n].__ng.rowid;
|
|
1102
|
+
t(this, q)[n].__ng.rowState === L.ROW_STATE.INSERT ? t(this, v).rawRecords = t(this, v).rawRecords.filter((r) => r.__ng.rowid !== o) : t(this, v).rawRecords.forEach((r) => {
|
|
1103
|
+
r.__ng.rowid === o && (r.__ng.deleted = !0, r.__ng.rowState = L.ROW_STATE.DELETE);
|
|
1103
1104
|
});
|
|
1104
1105
|
}
|
|
1105
1106
|
}), this.resetRecords(), (s = t(this, v).viewRecords) != null && s.reset && t(this, v).viewRecords.reset();
|
|
@@ -1107,25 +1108,25 @@ const q = class q {
|
|
|
1107
1108
|
S(this, "setValue", /* @__PURE__ */ a((i, e, s) => {
|
|
1108
1109
|
var c;
|
|
1109
1110
|
i = parseInt(i, 10);
|
|
1110
|
-
const o = (typeof ((c = t(this,
|
|
1111
|
+
const o = (typeof ((c = t(this, A).fields) == null ? void 0 : c.get) == "function" ? t(this, A).fields.get() : []).indexOf(e);
|
|
1111
1112
|
if (o < 0) return;
|
|
1112
1113
|
const r = this.getValidData()[i];
|
|
1113
1114
|
if (!r) return;
|
|
1114
1115
|
const l = r.v[o];
|
|
1115
|
-
l !== s && r.__ng.rowState !==
|
|
1116
|
+
l !== s && r.__ng.rowState !== L.ROW_STATE.INSERT && (r.__ng.o.hasOwnProperty(e) || (r.__ng.o[e] = l), r.__ng.rowState = L.ROW_STATE.UPDATE), r.v[o] = s, t(this, v).owner.refreshData && t(this, v).owner.refreshData(i);
|
|
1116
1117
|
}, "setValue"));
|
|
1117
1118
|
S(this, "resetRecords", /* @__PURE__ */ a(() => {
|
|
1118
|
-
b(this,
|
|
1119
|
+
b(this, J, t(this, v).rawRecords.filter((i) => !i.__ng.deleted)), b(this, q, t(this, v).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, v).rawRecords.forEach((i, e) => {
|
|
1119
1120
|
i.__ng.rowidx = e;
|
|
1120
|
-
}), t(this,
|
|
1121
|
+
}), t(this, q).forEach((i, e) => {
|
|
1121
1122
|
i.__ng.i = e;
|
|
1122
1123
|
});
|
|
1123
1124
|
}, "resetRecords"));
|
|
1124
|
-
S(this, "getValidData", /* @__PURE__ */ a(() => (t(this,
|
|
1125
|
-
|
|
1125
|
+
S(this, "getValidData", /* @__PURE__ */ a(() => (t(this, q).length === 0 && t(this, v).rawRecords.length > 0 && this.resetRecords(), t(this, q)), "getValidData"));
|
|
1126
|
+
d(this, Q, /* @__PURE__ */ a((i) => {
|
|
1126
1127
|
var s;
|
|
1127
1128
|
if (!i) return i;
|
|
1128
|
-
const e = typeof ((s = t(this,
|
|
1129
|
+
const e = typeof ((s = t(this, A).fields) == null ? void 0 : s.get) == "function" ? t(this, A).fields.get() : [];
|
|
1129
1130
|
return Array.isArray(i) ? i.filter((n) => !n.__ng.deleted).map((n) => {
|
|
1130
1131
|
const o = {};
|
|
1131
1132
|
return e.forEach((r, l) => {
|
|
@@ -1138,45 +1139,45 @@ const q = class q {
|
|
|
1138
1139
|
var o;
|
|
1139
1140
|
const s = this.getValidData();
|
|
1140
1141
|
if (!s || s.length <= 0) return;
|
|
1141
|
-
if (i == null) return t(this,
|
|
1142
|
+
if (i == null) return t(this, Q).call(this, s);
|
|
1142
1143
|
if (i < 0 || i >= s.length) return null;
|
|
1143
|
-
const n = typeof ((o = t(this,
|
|
1144
|
+
const n = typeof ((o = t(this, A).fields) == null ? void 0 : o.get) == "function" ? t(this, A).fields.get() : [];
|
|
1144
1145
|
if (e != null) {
|
|
1145
1146
|
const r = n.indexOf(e);
|
|
1146
1147
|
return r >= 0 ? s[i].v[r] : null;
|
|
1147
1148
|
}
|
|
1148
|
-
return t(this,
|
|
1149
|
+
return t(this, Q).call(this, s[i]);
|
|
1149
1150
|
}, "get"));
|
|
1150
|
-
b(this,
|
|
1151
|
+
b(this, A, i), b(this, v, e), t(this, Lt).call(this);
|
|
1151
1152
|
}
|
|
1152
1153
|
get source() {
|
|
1153
|
-
return t(this,
|
|
1154
|
+
return t(this, Q).call(this, t(this, v).rawRecords);
|
|
1154
1155
|
}
|
|
1155
1156
|
set source(i) {
|
|
1156
1157
|
this.clear(), this.add(i, !1);
|
|
1157
1158
|
}
|
|
1158
1159
|
get nextId() {
|
|
1159
|
-
return ++
|
|
1160
|
+
return ++ne(this, qt)._;
|
|
1160
1161
|
}
|
|
1161
1162
|
get length() {
|
|
1162
|
-
return t(this,
|
|
1163
|
+
return t(this, q).length;
|
|
1163
1164
|
}
|
|
1164
1165
|
getRowCount() {
|
|
1165
1166
|
return this.length;
|
|
1166
1167
|
}
|
|
1167
1168
|
};
|
|
1168
|
-
|
|
1169
|
-
S(
|
|
1169
|
+
A = new WeakMap(), v = new WeakMap(), q = new WeakMap(), J = new WeakMap(), qt = new WeakMap(), z = new WeakMap(), Lt = new WeakMap(), ct = new WeakMap(), Ht = new WeakMap(), Ct = new WeakMap(), Q = new WeakMap(), a(L, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
1170
|
+
S(L, "ROW_STATE", {
|
|
1170
1171
|
EMPTY: "EMPTY",
|
|
1171
1172
|
NORMAL: "NORMAL",
|
|
1172
1173
|
INSERT: "INSERT",
|
|
1173
1174
|
UPDATE: "UPDATE",
|
|
1174
1175
|
DELETE: "DELETE"
|
|
1175
1176
|
});
|
|
1176
|
-
let
|
|
1177
|
-
const
|
|
1177
|
+
let Bt = L;
|
|
1178
|
+
const Gt = class Gt {
|
|
1178
1179
|
constructor(i) {
|
|
1179
|
-
this.owner = i, this.row = new
|
|
1180
|
+
this.owner = i, this.row = new Pt(this), this.data = new Bt(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
|
|
1180
1181
|
var e;
|
|
1181
1182
|
(e = this.owner.view) != null && e.redraw && this.owner.view.redraw();
|
|
1182
1183
|
}, this.setDataSource = (e) => {
|
|
@@ -1193,19 +1194,19 @@ const Zt = class Zt {
|
|
|
1193
1194
|
}, this.setDataSource([]);
|
|
1194
1195
|
}
|
|
1195
1196
|
};
|
|
1196
|
-
a(
|
|
1197
|
-
let
|
|
1198
|
-
var K,
|
|
1199
|
-
const
|
|
1197
|
+
a(Gt, "ngDataManager");
|
|
1198
|
+
let Nt = Gt;
|
|
1199
|
+
var K, Mt;
|
|
1200
|
+
const Jt = class Jt extends HTMLElement {
|
|
1200
1201
|
constructor() {
|
|
1201
1202
|
super();
|
|
1202
1203
|
//#created = false;
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
this.attachShadow({ mode: "open" }), b(this, K, new
|
|
1204
|
+
d(this, K);
|
|
1205
|
+
d(this, Mt);
|
|
1206
|
+
this.attachShadow({ mode: "open" }), b(this, K, new Nt(this));
|
|
1206
1207
|
}
|
|
1207
1208
|
connectedCallback() {
|
|
1208
|
-
b(this,
|
|
1209
|
+
b(this, Mt, new Dt(this)), _.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
1209
1210
|
}
|
|
1210
1211
|
disconnectedCallback() {
|
|
1211
1212
|
_.log("NineTable disconnected.");
|
|
@@ -1223,7 +1224,7 @@ const Gt = class Gt extends HTMLElement {
|
|
|
1223
1224
|
return t(this, K);
|
|
1224
1225
|
}
|
|
1225
1226
|
};
|
|
1226
|
-
K = new WeakMap(),
|
|
1227
|
-
let
|
|
1228
|
-
customElements.get("nine-table") || customElements.define("nine-table",
|
|
1227
|
+
K = new WeakMap(), Mt = new WeakMap(), a(Jt, "NineTable");
|
|
1228
|
+
let Yt = Jt;
|
|
1229
|
+
customElements.get("nine-table") || customElements.define("nine-table", Yt);
|
|
1229
1230
|
//# sourceMappingURL=nine-table.js.map
|