@ninebone/table 0.0.321 β 0.0.322
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 +145 -144
- 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,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var ee = Object.defineProperty;
|
|
2
|
+
var ie = (x) => {
|
|
3
3
|
throw TypeError(x);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var c = (x, i) =>
|
|
7
|
-
var w = (x, i, e) =>
|
|
8
|
-
var t = (x, i, e) => (
|
|
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 c = (x, i) => ee(x, "name", { value: i, configurable: !0 });
|
|
7
|
+
var w = (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)), h = (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), g = (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 _(o) {
|
|
11
11
|
g(x, i, o, e);
|
|
12
12
|
},
|
|
@@ -14,31 +14,31 @@ var se = (x, i, e, s) => ({
|
|
|
14
14
|
return t(x, i, s);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
import { trace as
|
|
18
|
-
const
|
|
17
|
+
import { trace as re } from "@ninebone/util";
|
|
18
|
+
const Xt = class Xt extends re.constructor {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(), this.init("nine-table", "green");
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
c(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
var C, M, y, D,
|
|
27
|
-
const
|
|
23
|
+
c(Xt, "Trace");
|
|
24
|
+
let It = Xt;
|
|
25
|
+
const F = new It();
|
|
26
|
+
var C, M, y, D, N, B, ft, P, ut;
|
|
27
|
+
const Ut = class Ut extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
30
|
h(this, C);
|
|
31
31
|
h(this, M, !1);
|
|
32
32
|
h(this, y);
|
|
33
33
|
h(this, D);
|
|
34
|
-
h(this, B);
|
|
35
34
|
h(this, N);
|
|
36
|
-
h(this,
|
|
35
|
+
h(this, B);
|
|
36
|
+
h(this, ft, /* @__PURE__ */ c(() => {
|
|
37
37
|
if (!t(this, C)) return;
|
|
38
38
|
const e = t(this, C).querySelector(".ng-container-body");
|
|
39
|
-
e && (g(this,
|
|
39
|
+
e && (g(this, B, new ResizeObserver(() => {
|
|
40
40
|
this.refresh();
|
|
41
|
-
})), t(this,
|
|
41
|
+
})), t(this, B).observe(e));
|
|
42
42
|
}, "#observeResize"));
|
|
43
43
|
w(this, "refresh", /* @__PURE__ */ c(() => {
|
|
44
44
|
if (!t(this, C) || !t(this, y) || t(this, M)) return;
|
|
@@ -59,7 +59,7 @@ const Xt = class Xt extends HTMLElement {
|
|
|
59
59
|
let m = 0;
|
|
60
60
|
b > 0 && (m = parseInt(u / b * (d - f), 10)), m < 0 && (m = 0);
|
|
61
61
|
const E = d - f;
|
|
62
|
-
m > E && (m = E), r.style.left = `${m}px`,
|
|
62
|
+
m > E && (m = E), r.style.left = `${m}px`, F.log(m), t(this, y).left.disabled = m === 0, t(this, y).right.disabled = m >= E - 1;
|
|
63
63
|
}, "refresh"));
|
|
64
64
|
h(this, P, /* @__PURE__ */ c((e) => {
|
|
65
65
|
if (!t(this, y)) return !1;
|
|
@@ -73,18 +73,18 @@ const Xt = class Xt extends HTMLElement {
|
|
|
73
73
|
const d = s.clientWidth, u = o.scrollWidth - d;
|
|
74
74
|
return a > 0 && u > 0 && (s.scrollLeft = l / a * u), l > 0 && l < a - 1;
|
|
75
75
|
}, "#thumbMoveTo"));
|
|
76
|
-
h(this,
|
|
76
|
+
h(this, ut, /* @__PURE__ */ c(() => {
|
|
77
77
|
const e = /* @__PURE__ */ c((o) => {
|
|
78
|
-
clearInterval(t(this, D)), clearInterval(t(this,
|
|
78
|
+
clearInterval(t(this, D)), clearInterval(t(this, N));
|
|
79
79
|
const r = parseInt(t(this, y).thumb.style.left || 0, 10);
|
|
80
80
|
t(this, P).call(this, r + o), g(this, D, setInterval(() => {
|
|
81
|
-
clearInterval(t(this, D)), g(this,
|
|
81
|
+
clearInterval(t(this, D)), g(this, N, setInterval(() => {
|
|
82
82
|
const n = parseInt(t(this, y).thumb.style.left || 0, 10);
|
|
83
|
-
t(this, P).call(this, n + o) || clearInterval(t(this,
|
|
83
|
+
t(this, P).call(this, n + o) || clearInterval(t(this, N));
|
|
84
84
|
}, 50));
|
|
85
85
|
}, 500));
|
|
86
86
|
}, "delayScroll"), s = /* @__PURE__ */ c(() => {
|
|
87
|
-
clearInterval(t(this, D)), clearInterval(t(this,
|
|
87
|
+
clearInterval(t(this, D)), clearInterval(t(this, N));
|
|
88
88
|
}, "clearTimer");
|
|
89
89
|
["mouseup", "mouseleave", "touchend"].forEach((o) => {
|
|
90
90
|
t(this, y).left.addEventListener(o, s), t(this, y).right.addEventListener(o, s), t(this, y).track.addEventListener(o, s);
|
|
@@ -190,19 +190,19 @@ const Xt = class Xt extends HTMLElement {
|
|
|
190
190
|
right: this.querySelector(".ng-scroll-right")
|
|
191
191
|
}), s.addEventListener("scroll", () => {
|
|
192
192
|
t(this, M) || this.refresh();
|
|
193
|
-
}), t(this,
|
|
193
|
+
}), t(this, ut).call(this), t(this, ft).call(this), this.refresh();
|
|
194
194
|
}, "initWhenReady");
|
|
195
195
|
e();
|
|
196
196
|
}
|
|
197
197
|
disconnectedCallback() {
|
|
198
|
-
t(this,
|
|
198
|
+
t(this, B) && t(this, B).disconnect();
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
C = new WeakMap(), M = new WeakMap(), y = new WeakMap(), D = new WeakMap(),
|
|
202
|
-
let
|
|
203
|
-
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar",
|
|
204
|
-
var Y, I, S, it, st,
|
|
205
|
-
const
|
|
201
|
+
C = new WeakMap(), M = new WeakMap(), y = new WeakMap(), D = new WeakMap(), N = new WeakMap(), B = new WeakMap(), ft = new WeakMap(), P = new WeakMap(), ut = new WeakMap(), c(Ut, "NineTableHScrollBar");
|
|
202
|
+
let $t = Ut;
|
|
203
|
+
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", $t);
|
|
204
|
+
var Y, I, S, it, st, bt;
|
|
205
|
+
const Ft = class Ft extends HTMLElement {
|
|
206
206
|
constructor() {
|
|
207
207
|
super();
|
|
208
208
|
h(this, Y);
|
|
@@ -233,7 +233,7 @@ const Ut = class Ut extends HTMLElement {
|
|
|
233
233
|
const m = a - d;
|
|
234
234
|
b < 0 && (b = 0), b > m && (b = m), r.style.top = `${b}px`, t(this, S).top.disabled = f <= 0, t(this, S).bottom.disabled = f >= u - 1;
|
|
235
235
|
}, "refresh"));
|
|
236
|
-
h(this,
|
|
236
|
+
h(this, bt, /* @__PURE__ */ c(() => {
|
|
237
237
|
const e = t(this, S).container;
|
|
238
238
|
e.addEventListener("scroll", () => {
|
|
239
239
|
t(this, I) || this.refresh();
|
|
@@ -243,7 +243,7 @@ const Ut = class Ut extends HTMLElement {
|
|
|
243
243
|
const o = /* @__PURE__ */ c((n) => {
|
|
244
244
|
if (!t(this, I)) return;
|
|
245
245
|
const l = t(this, S).track.getBoundingClientRect(), a = t(this, S).thumb.clientHeight, f = l.height - a, u = n.clientY - t(this, it), b = e.clientHeight, m = e.querySelector("table");
|
|
246
|
-
|
|
246
|
+
F.log(m), F.log(m.scrollHeight);
|
|
247
247
|
const q = m.scrollHeight - b;
|
|
248
248
|
if (f > 0 && q > 0) {
|
|
249
249
|
const O = u / f * q;
|
|
@@ -346,15 +346,15 @@ const Ut = class Ut extends HTMLElement {
|
|
|
346
346
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
347
347
|
top: this.querySelector(".ng-scroll-top"),
|
|
348
348
|
bottom: this.querySelector(".ng-scroll-bottom")
|
|
349
|
-
}), t(this,
|
|
349
|
+
}), t(this, bt).call(this), this.refresh();
|
|
350
350
|
}, "initWhenReady");
|
|
351
351
|
e();
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
|
-
Y = new WeakMap(), I = new WeakMap(), S = new WeakMap(), it = new WeakMap(), st = new WeakMap(),
|
|
355
|
-
let
|
|
356
|
-
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar",
|
|
357
|
-
var
|
|
354
|
+
Y = new WeakMap(), I = new WeakMap(), S = new WeakMap(), it = new WeakMap(), st = new WeakMap(), bt = new WeakMap(), c(Ft, "NineTableVScrollBar");
|
|
355
|
+
let Wt = Ft;
|
|
356
|
+
customElements.get("nine-table-vscrollbar") || customElements.define("nine-table-vscrollbar", Wt);
|
|
357
|
+
var gt, K;
|
|
358
358
|
const H = class H {
|
|
359
359
|
/**
|
|
360
360
|
* π― λ μ΄μμ λ΄μ μ¬λ¬ rawTables λ°°μ΄μ μΌκ΄λ‘ λ°μ λ¨μΌ λ§μ€ν° ν
νλ¦ΏμΌλ‘ μ¬μ μ»΄νμΌν©λλ€.
|
|
@@ -369,7 +369,7 @@ const H = class H {
|
|
|
369
369
|
var o, r, n, l;
|
|
370
370
|
if (!i) return null;
|
|
371
371
|
const e = i.cloneNode(!0);
|
|
372
|
-
return t(o = H,
|
|
372
|
+
return t(o = H, gt).call(o, e), t(r = H, K).call(r, e, "thead"), t(n = H, K).call(n, e, "tbody"), t(l = H, K).call(l, e, "tfoot"), Array.from(e.querySelectorAll("colgroup col")).forEach((a, d) => {
|
|
373
373
|
const f = a.getAttribute("fixed");
|
|
374
374
|
f && e.querySelectorAll(`thead [data-col="${d}"], tbody [data-col="${d}"], tfoot [data-col="${d}"]`).forEach((u) => {
|
|
375
375
|
u.setAttribute("fixed", f);
|
|
@@ -377,7 +377,7 @@ const H = class H {
|
|
|
377
377
|
}), e;
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
|
-
|
|
380
|
+
gt = new WeakMap(), K = new WeakMap(), c(H, "TableCompiler"), h(H, gt, /* @__PURE__ */ c((i) => {
|
|
381
381
|
if (!i.querySelector("colgroup")) {
|
|
382
382
|
const e = i.querySelector("tbody tr") || i.querySelector("tr"), s = e ? e.querySelectorAll("th, td").length : 1, o = document.createElement("colgroup"), r = Math.max(Math.floor(i.clientWidth / s), 100);
|
|
383
383
|
for (let n = 0; n < s; n++) {
|
|
@@ -391,7 +391,7 @@ bt = new WeakMap(), F = new WeakMap(), c(H, "TableCompiler"), h(H, bt, /* @__PUR
|
|
|
391
391
|
s ? s.after(e) : i.prepend(e);
|
|
392
392
|
}
|
|
393
393
|
i.classList.add("nine-table-element"), i.style.display = "table";
|
|
394
|
-
}, "#ensureTableStructure")), h(H,
|
|
394
|
+
}, "#ensureTableStructure")), h(H, K, /* @__PURE__ */ c((i, e) => {
|
|
395
395
|
const s = Array.from(i.querySelectorAll(e + " tr")), o = Array.from(i.querySelectorAll(e + " th," + e + " td")), r = s.length;
|
|
396
396
|
if (r === 0 || o.length === 0) return;
|
|
397
397
|
let n = 0;
|
|
@@ -424,20 +424,20 @@ bt = new WeakMap(), F = new WeakMap(), c(H, "TableCompiler"), h(H, bt, /* @__PUR
|
|
|
424
424
|
});
|
|
425
425
|
});
|
|
426
426
|
}, "#resetColIndex"));
|
|
427
|
-
let
|
|
428
|
-
var p, _, R, $, V,
|
|
429
|
-
const
|
|
427
|
+
let zt = H;
|
|
428
|
+
var p, _, R, $, V, j, yt, pt, nt, ot, mt, xt, rt, Z, vt;
|
|
429
|
+
const Kt = class Kt {
|
|
430
430
|
constructor(i) {
|
|
431
431
|
h(this, p);
|
|
432
432
|
h(this, _, /* @__PURE__ */ new Map());
|
|
433
433
|
h(this, R, null);
|
|
434
434
|
h(this, $, null);
|
|
435
435
|
h(this, V, 0);
|
|
436
|
-
h(this,
|
|
436
|
+
h(this, j, 40);
|
|
437
437
|
w(this, "refresh", /* @__PURE__ */ c(() => {
|
|
438
438
|
var e;
|
|
439
439
|
const i = t(this, p).querySelector(".ng-container-body");
|
|
440
|
-
i && (t(this, nt).call(this), t(this,
|
|
440
|
+
i && (t(this, nt).call(this), t(this, Z).call(this, i.scrollTop), (e = t(this, p).querySelector("nine-table-vscrollbar")) == null || e.refresh());
|
|
441
441
|
}, "refresh"));
|
|
442
442
|
w(this, "initialize", /* @__PURE__ */ c(() => {
|
|
443
443
|
g(this, R, null), t(this, _).clear(), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((o) => {
|
|
@@ -452,11 +452,11 @@ const Ft = class Ft {
|
|
|
452
452
|
});
|
|
453
453
|
const i = t(this, p).querySelector(".ng-container-body"), e = t(this, p).querySelector(".ng-container-left"), s = t(this, p).querySelector(".ng-container-right");
|
|
454
454
|
if (i) {
|
|
455
|
-
t(this,
|
|
455
|
+
t(this, pt).call(this, i), t(this, rt).call(this), t(this, nt).call(this), t(this, Z).call(this, i.scrollTop);
|
|
456
456
|
let o = i.scrollTop;
|
|
457
457
|
const r = /* @__PURE__ */ c((n) => {
|
|
458
458
|
var l;
|
|
459
|
-
e && e.scrollTop !== n && (e.scrollTop = n), s && s.scrollTop !== n && (s.scrollTop = n), t(this,
|
|
459
|
+
e && e.scrollTop !== n && (e.scrollTop = n), s && s.scrollTop !== n && (s.scrollTop = n), t(this, Z).call(this, n), (l = t(this, p).querySelector("nine-table-vscrollbar")) == null || l.refresh();
|
|
460
460
|
}, "syncScroll");
|
|
461
461
|
i.addEventListener("scroll", () => {
|
|
462
462
|
const n = i.scrollTop;
|
|
@@ -464,20 +464,20 @@ const Ft = class Ft {
|
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
466
|
}, "initialize"));
|
|
467
|
-
h(this,
|
|
467
|
+
h(this, yt, /* @__PURE__ */ c((i, e) => {
|
|
468
468
|
const s = t(this, _).get(e);
|
|
469
469
|
if (!s || s.length === 0) return;
|
|
470
470
|
const o = i.querySelector("tbody.bindable-tbody");
|
|
471
471
|
if (!o) return;
|
|
472
472
|
o.querySelectorAll("tr:not(.nodata)").forEach((l) => l.remove());
|
|
473
473
|
const r = o.querySelector("tr.nodata"), n = document.createDocumentFragment();
|
|
474
|
-
for (let l = 0; l < t(this,
|
|
474
|
+
for (let l = 0; l < t(this, j); l++)
|
|
475
475
|
s.forEach((a) => {
|
|
476
476
|
n.appendChild(a.cloneNode(!0));
|
|
477
477
|
});
|
|
478
478
|
r ? r.before(n) : o.appendChild(n);
|
|
479
479
|
}, "#renderRows"));
|
|
480
|
-
h(this,
|
|
480
|
+
h(this, pt, /* @__PURE__ */ c((i) => {
|
|
481
481
|
if (t(this, R) !== null && t(this, R) > 0)
|
|
482
482
|
return t(this, R);
|
|
483
483
|
const e = t(this, _).get(".ng-container-body");
|
|
@@ -509,11 +509,11 @@ const Ft = class Ft {
|
|
|
509
509
|
h(this, ot, /* @__PURE__ */ c(() => {
|
|
510
510
|
if (t(this, V) > 0 && t(this, R) > 0) {
|
|
511
511
|
const i = Math.ceil(t(this, V) / t(this, R));
|
|
512
|
-
g(this,
|
|
512
|
+
g(this, j, i + 20);
|
|
513
513
|
} else
|
|
514
|
-
g(this,
|
|
514
|
+
g(this, j, 40);
|
|
515
515
|
}, "#updateRowCount"));
|
|
516
|
-
h(this,
|
|
516
|
+
h(this, mt, /* @__PURE__ */ c(() => {
|
|
517
517
|
var a, d, f;
|
|
518
518
|
const i = t(this, p).querySelector(".ng-container-left table"), e = t(this, p).querySelector(".ng-container-body table"), s = t(this, p).querySelector(".ng-container-right table");
|
|
519
519
|
if (!e) return;
|
|
@@ -527,7 +527,7 @@ const Ft = class Ft {
|
|
|
527
527
|
m > 0 && (o[u] && (o[u].style.height = `${m}px`), r[u] && (r[u].style.height = `${m}px`), n[u] && (n[u].style.height = `${m}px`));
|
|
528
528
|
}
|
|
529
529
|
}, "#syncRowHeights"));
|
|
530
|
-
h(this,
|
|
530
|
+
h(this, xt, /* @__PURE__ */ c(() => {
|
|
531
531
|
!t(this, p) || !(t(this, p) instanceof HTMLElement) || (g(this, $, new ResizeObserver((i) => {
|
|
532
532
|
for (const e of i) {
|
|
533
533
|
const s = e.target;
|
|
@@ -546,10 +546,10 @@ const Ft = class Ft {
|
|
|
546
546
|
h(this, rt, /* @__PURE__ */ c(() => {
|
|
547
547
|
[".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((i) => {
|
|
548
548
|
const e = t(this, p).querySelector(i);
|
|
549
|
-
e && e.querySelector("tbody.bindable-tbody") && t(this,
|
|
550
|
-
}), t(this,
|
|
549
|
+
e && e.querySelector("tbody.bindable-tbody") && t(this, yt).call(this, e, i);
|
|
550
|
+
}), t(this, mt).call(this);
|
|
551
551
|
}, "#renderAllContainers"));
|
|
552
|
-
h(this,
|
|
552
|
+
h(this, Z, /* @__PURE__ */ c((i) => {
|
|
553
553
|
var r;
|
|
554
554
|
const e = t(this, R);
|
|
555
555
|
if (!e || e <= 0) return;
|
|
@@ -560,13 +560,13 @@ const Ft = class Ft {
|
|
|
560
560
|
const a = l.querySelector("tbody.bindable-tbody");
|
|
561
561
|
if (!a) return;
|
|
562
562
|
Array.from(a.querySelectorAll("tr:not(.nodata)")).forEach((f, u) => {
|
|
563
|
-
var E, q, O,
|
|
564
|
-
const b = s + Math.floor(u / o), m = (typeof t(this, p).getData == "function" ? t(this, p).getData(b) : null) ?? (typeof ((E = t(this, p).data) == null ? void 0 : E.get) == "function" ? t(this, p).data.get(b) : null) ?? ((O = (q = t(this, p).dataManager) == null ? void 0 : q.rawRecords) == null ? void 0 : O[b]) ?? ((
|
|
565
|
-
f.style.display = "", t(this,
|
|
563
|
+
var E, q, O, te;
|
|
564
|
+
const b = s + Math.floor(u / o), m = (typeof t(this, p).getData == "function" ? t(this, p).getData(b) : null) ?? (typeof ((E = t(this, p).data) == null ? void 0 : E.get) == "function" ? t(this, p).data.get(b) : null) ?? ((O = (q = t(this, p).dataManager) == null ? void 0 : q.rawRecords) == null ? void 0 : O[b]) ?? ((te = t(this, p).data) == null ? void 0 : te[b]) ?? { _index: b };
|
|
565
|
+
f.style.display = "", t(this, vt).call(this, f, m, b);
|
|
566
566
|
});
|
|
567
567
|
});
|
|
568
568
|
}, "#handleScroll"));
|
|
569
|
-
h(this,
|
|
569
|
+
h(this, vt, /* @__PURE__ */ c((i, e, s) => {
|
|
570
570
|
i.dataset.row = s, Array.from(i.cells).forEach((o, r) => {
|
|
571
571
|
const n = o.dataset.bind;
|
|
572
572
|
n && e && e[n] !== void 0 ? o.textContent = e[n] : o.textContent = e ? e[Object.keys(e)[r]] ?? `R${s}C${r}` : `ν ${s + 1}`, o.dataset.row = s;
|
|
@@ -575,7 +575,7 @@ const Ft = class Ft {
|
|
|
575
575
|
w(this, "destroy", /* @__PURE__ */ c(() => {
|
|
576
576
|
t(this, $) && (t(this, $).disconnect(), g(this, $, null));
|
|
577
577
|
}, "destroy"));
|
|
578
|
-
g(this, p, i), t(this,
|
|
578
|
+
g(this, p, i), t(this, xt).call(this);
|
|
579
579
|
}
|
|
580
580
|
getRowHeight() {
|
|
581
581
|
return t(this, R);
|
|
@@ -585,15 +585,16 @@ const Ft = class Ft {
|
|
|
585
585
|
return ((e = t(this, _).get(i)) == null ? void 0 : e.length) || 1;
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
|
-
p = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), $ = new WeakMap(), V = new WeakMap(),
|
|
589
|
-
let
|
|
590
|
-
var
|
|
588
|
+
p = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), $ = new WeakMap(), V = new WeakMap(), j = new WeakMap(), yt = new WeakMap(), pt = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), mt = new WeakMap(), xt = new WeakMap(), rt = new WeakMap(), Z = new WeakMap(), vt = new WeakMap(), c(Kt, "RowManager");
|
|
589
|
+
let Ot = Kt;
|
|
590
|
+
var lt, G, J, wt, St, Et, Rt, kt;
|
|
591
591
|
const et = class et extends HTMLElement {
|
|
592
592
|
constructor() {
|
|
593
593
|
super();
|
|
594
|
-
h(this,
|
|
595
|
-
h(this, G);
|
|
596
|
-
h(this,
|
|
594
|
+
h(this, lt);
|
|
595
|
+
h(this, G, null);
|
|
596
|
+
h(this, J);
|
|
597
|
+
h(this, wt, /* @__PURE__ */ c(() => {
|
|
597
598
|
[
|
|
598
599
|
{ selector: ".ng-container-body", type: null },
|
|
599
600
|
{ selector: ".ng-container-left", type: "left" },
|
|
@@ -601,11 +602,11 @@ const et = class et extends HTMLElement {
|
|
|
601
602
|
].forEach(({ selector: s, type: o }) => {
|
|
602
603
|
const r = this.querySelector(s);
|
|
603
604
|
if (!r) return;
|
|
604
|
-
const n = t(this,
|
|
605
|
+
const n = t(this, Et).call(this, t(this, G), o);
|
|
605
606
|
r.innerHTML = "", r.appendChild(n);
|
|
606
607
|
});
|
|
607
608
|
}, "#renderSplitContainers"));
|
|
608
|
-
h(this,
|
|
609
|
+
h(this, St, /* @__PURE__ */ c(() => {
|
|
609
610
|
["left", "right"].forEach((e) => {
|
|
610
611
|
const s = this.querySelector(`.ng-container-${e}`), o = s == null ? void 0 : s.querySelector("table");
|
|
611
612
|
if (!s || !o) return;
|
|
@@ -617,13 +618,13 @@ const et = class et extends HTMLElement {
|
|
|
617
618
|
});
|
|
618
619
|
}, "#updateContainerWidths"));
|
|
619
620
|
w(this, "generate", /* @__PURE__ */ c((e) => {
|
|
620
|
-
e && (g(this,
|
|
621
|
+
e && (g(this, G, zt.compile(e)), t(this, G).style.display = "table", t(this, wt).call(this), t(this, St).call(this), requestAnimationFrame(() => {
|
|
621
622
|
var o;
|
|
622
623
|
const s = (o = this.querySelector("thead")) == null ? void 0 : o.getBoundingClientRect().height;
|
|
623
624
|
this.querySelectorAll("tbody.fixed-tbody").forEach((r) => {
|
|
624
625
|
r.style.top = `${s}px`;
|
|
625
626
|
});
|
|
626
|
-
}), t(this,
|
|
627
|
+
}), t(this, J).initialize(), setTimeout(() => {
|
|
627
628
|
var s;
|
|
628
629
|
(s = this.querySelector("nine-table-hscrollbar")) == null || s.refresh();
|
|
629
630
|
}, 0));
|
|
@@ -631,7 +632,7 @@ const et = class et extends HTMLElement {
|
|
|
631
632
|
/**
|
|
632
633
|
* π― λ§μ€ν° ν
μ΄λΈμ κΈ°λ°μΌλ‘ νΉμ fixed νμ
μμλ§ λ¨κΈ°λ λΆν ν¬νΌ
|
|
633
634
|
*/
|
|
634
|
-
h(this,
|
|
635
|
+
h(this, Et, /* @__PURE__ */ c((e, s) => {
|
|
635
636
|
const o = e.cloneNode(!0), r = o.querySelector("tbody");
|
|
636
637
|
if (r) {
|
|
637
638
|
const n = document.createElement("tbody");
|
|
@@ -645,7 +646,7 @@ const et = class et extends HTMLElement {
|
|
|
645
646
|
n.remove();
|
|
646
647
|
}), o;
|
|
647
648
|
}, "#createSplitTable"));
|
|
648
|
-
w(this, "getRowHeight", /* @__PURE__ */ c(() => t(this,
|
|
649
|
+
w(this, "getRowHeight", /* @__PURE__ */ c(() => t(this, J).getRowHeight(), "getRowHeight"));
|
|
649
650
|
w(this, "scrollToX", /* @__PURE__ */ c((e) => {
|
|
650
651
|
const s = this.querySelector(".ng-container-body");
|
|
651
652
|
s && (s.scrollLeft = e);
|
|
@@ -654,10 +655,10 @@ const et = class et extends HTMLElement {
|
|
|
654
655
|
const s = this.querySelector(".ng-container-body");
|
|
655
656
|
s && (s.scrollTop = e);
|
|
656
657
|
}, "scrollToY"));
|
|
657
|
-
h(this, Et, /* @__PURE__ */ c(() => {
|
|
658
|
-
t(this, Rt).call(this);
|
|
659
|
-
}, "#init"));
|
|
660
658
|
h(this, Rt, /* @__PURE__ */ c(() => {
|
|
659
|
+
t(this, kt).call(this);
|
|
660
|
+
}, "#init"));
|
|
661
|
+
h(this, kt, /* @__PURE__ */ c(() => {
|
|
661
662
|
const e = et.SCROLLBAR_SIZE;
|
|
662
663
|
this.innerHTML = `
|
|
663
664
|
<style>
|
|
@@ -804,31 +805,31 @@ const et = class et extends HTMLElement {
|
|
|
804
805
|
</div>
|
|
805
806
|
`;
|
|
806
807
|
}, "#render"));
|
|
807
|
-
g(this,
|
|
808
|
+
g(this, J, new Ot(this)), g(this, lt, this.getRootNode().host), F.log(t(this, lt));
|
|
808
809
|
}
|
|
809
810
|
connectedCallback() {
|
|
810
|
-
t(this,
|
|
811
|
+
t(this, Rt).call(this);
|
|
811
812
|
}
|
|
812
813
|
disconnectedCallback() {
|
|
813
|
-
this.innerHTML = "",
|
|
814
|
+
this.innerHTML = "", F.log("NineTableSheet destroyed.");
|
|
814
815
|
}
|
|
815
816
|
};
|
|
816
|
-
|
|
817
|
-
let
|
|
818
|
-
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet",
|
|
819
|
-
var
|
|
820
|
-
const
|
|
817
|
+
lt = new WeakMap(), G = new WeakMap(), J = new WeakMap(), wt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Rt = new WeakMap(), kt = new WeakMap(), c(et, "NineTableSheet"), w(et, "SCROLLBAR_SIZE", 16);
|
|
818
|
+
let dt = et;
|
|
819
|
+
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", dt);
|
|
820
|
+
var qt, ct;
|
|
821
|
+
const jt = class jt extends HTMLElement {
|
|
821
822
|
constructor() {
|
|
822
823
|
super();
|
|
823
|
-
h(this,
|
|
824
|
+
h(this, qt, /* @__PURE__ */ c(() => {
|
|
824
825
|
var e;
|
|
825
826
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
826
827
|
var n;
|
|
827
828
|
const o = s.ctrlKey || s.metaKey || s.shiftKey, r = parseInt((n = s.target.closest(".nine-tab-item")) == null ? void 0 : n.dataset.index, 10);
|
|
828
|
-
t(this,
|
|
829
|
-
}), t(this,
|
|
829
|
+
t(this, ct).call(this, r, o);
|
|
830
|
+
}), t(this, ct).call(this, 0, !1);
|
|
830
831
|
}, "#init"));
|
|
831
|
-
h(this,
|
|
832
|
+
h(this, ct, /* @__PURE__ */ c((e, s = !1) => {
|
|
832
833
|
const o = /* @__PURE__ */ c(() => {
|
|
833
834
|
const f = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
834
835
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((m) => m.style.setProperty("display", "none"));
|
|
@@ -861,30 +862,30 @@ const Kt = class Kt extends HTMLElement {
|
|
|
861
862
|
}, "#switchSheet"));
|
|
862
863
|
}
|
|
863
864
|
connectedCallback() {
|
|
864
|
-
t(this,
|
|
865
|
+
t(this, qt).call(this);
|
|
865
866
|
}
|
|
866
867
|
};
|
|
867
|
-
|
|
868
|
-
let
|
|
869
|
-
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets",
|
|
870
|
-
var k,
|
|
871
|
-
const
|
|
868
|
+
qt = new WeakMap(), ct = new WeakMap(), c(jt, "NineTableSheets");
|
|
869
|
+
let Dt = jt;
|
|
870
|
+
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Dt);
|
|
871
|
+
var k, Tt, at, At;
|
|
872
|
+
const Zt = class Zt {
|
|
872
873
|
constructor(i) {
|
|
873
874
|
h(this, k);
|
|
874
|
-
h(this,
|
|
875
|
-
t(this,
|
|
875
|
+
h(this, Tt, /* @__PURE__ */ c(() => {
|
|
876
|
+
t(this, At).call(this), new ResizeObserver((i) => {
|
|
876
877
|
for (let e of i)
|
|
877
|
-
t(this, k).getAttribute("auto-height") === "true" && t(this,
|
|
878
|
+
t(this, k).getAttribute("auto-height") === "true" && t(this, at).call(this);
|
|
878
879
|
}).observe(t(this, k));
|
|
879
880
|
}, "#init"));
|
|
880
|
-
h(this,
|
|
881
|
+
h(this, at, /* @__PURE__ */ c(() => {
|
|
881
882
|
var a, d;
|
|
882
883
|
const i = Array.from(t(this, k).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
883
884
|
if (i.length === 0) return;
|
|
884
|
-
const e = parseInt(t(this, k).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), o = (a = t(this, k).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : a.getBoundingClientRect().height, r = (d = t(this, k).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : d.getBoundingClientRect().height, n =
|
|
885
|
+
const e = parseInt(t(this, k).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((f) => f.getRowHeight())), o = (a = t(this, k).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : a.getBoundingClientRect().height, r = (d = t(this, k).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : d.getBoundingClientRect().height, n = dt.SCROLLBAR_SIZE, l = e * s + o + r + n;
|
|
885
886
|
t(this, k).style.height = `${l}px`;
|
|
886
887
|
}, "#applyAutoHeight"));
|
|
887
|
-
h(this,
|
|
888
|
+
h(this, At, /* @__PURE__ */ c(() => {
|
|
888
889
|
const e = Array.from(t(this, k).children).filter((a) => a.tagName === "TABLE"), s = t(this, k).getAttribute("auto-height") === "true", o = e.length, r = e.map((a, d) => {
|
|
889
890
|
const u = `<nine-table-sheet class="${d === 0 ? "active" : ""}" data-index="${d}"></nine-table-sheet>`, b = d < o - 1 ? `<nine-splitter class="h" data-split-index="${d}"></nine-splitter>` : "";
|
|
890
891
|
return u + b;
|
|
@@ -991,17 +992,17 @@ const jt = class jt {
|
|
|
991
992
|
const l = t(this, k).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
992
993
|
l == null || l.forEach((a, d) => {
|
|
993
994
|
e[d] && setTimeout(() => {
|
|
994
|
-
a.generate(e[d]), s && t(this,
|
|
995
|
+
a.generate(e[d]), s && t(this, at).call(this);
|
|
995
996
|
});
|
|
996
997
|
});
|
|
997
998
|
}, "#render"));
|
|
998
|
-
g(this, k, i), t(this,
|
|
999
|
+
g(this, k, i), t(this, Tt).call(this);
|
|
999
1000
|
}
|
|
1000
1001
|
};
|
|
1001
|
-
k = new WeakMap(),
|
|
1002
|
-
let
|
|
1002
|
+
k = new WeakMap(), Tt = new WeakMap(), at = new WeakMap(), At = new WeakMap(), c(Zt, "LayoutManager");
|
|
1003
|
+
let Nt = Zt;
|
|
1003
1004
|
var W, X;
|
|
1004
|
-
const
|
|
1005
|
+
const Gt = class Gt {
|
|
1005
1006
|
constructor(i) {
|
|
1006
1007
|
h(this, W);
|
|
1007
1008
|
h(this, X, -1);
|
|
@@ -1021,31 +1022,31 @@ const Zt = class Zt {
|
|
|
1021
1022
|
});
|
|
1022
1023
|
}
|
|
1023
1024
|
};
|
|
1024
|
-
W = new WeakMap(), X = new WeakMap(), c(
|
|
1025
|
-
let Bt =
|
|
1026
|
-
var T, v, A,
|
|
1025
|
+
W = new WeakMap(), X = new WeakMap(), c(Gt, "ngRow");
|
|
1026
|
+
let Bt = Gt;
|
|
1027
|
+
var T, v, A, Q, Lt, z, Ht, ht, Ct, _t, tt;
|
|
1027
1028
|
const L = class L {
|
|
1028
1029
|
constructor(i, e) {
|
|
1029
1030
|
h(this, T);
|
|
1030
1031
|
h(this, v);
|
|
1031
1032
|
h(this, A, []);
|
|
1032
|
-
h(this,
|
|
1033
|
-
h(this,
|
|
1033
|
+
h(this, Q, []);
|
|
1034
|
+
h(this, Lt, 0);
|
|
1034
1035
|
h(this, z, []);
|
|
1035
|
-
h(this,
|
|
1036
|
+
h(this, Ht, /* @__PURE__ */ c(() => {
|
|
1036
1037
|
g(this, z, []);
|
|
1037
1038
|
const i = t(this, T).template || [];
|
|
1038
1039
|
Array.from(i).forEach((e) => {
|
|
1039
1040
|
var s;
|
|
1040
1041
|
t(this, z).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1041
1042
|
}), (t(this, v).rawRecords || []).forEach((e) => {
|
|
1042
|
-
e.__ng || (e.__ng = t(this,
|
|
1043
|
+
e.__ng || (e.__ng = t(this, ht).call(this)), e.__ng.height = t(this, z).slice();
|
|
1043
1044
|
});
|
|
1044
1045
|
}, "#initialize"));
|
|
1045
1046
|
w(this, "set", /* @__PURE__ */ c((i) => {
|
|
1046
1047
|
this.clear(), this.add(i, !1);
|
|
1047
1048
|
}, "set"));
|
|
1048
|
-
h(this,
|
|
1049
|
+
h(this, ht, /* @__PURE__ */ c(() => ({
|
|
1049
1050
|
rowState: L.ROW_STATE.EMPTY,
|
|
1050
1051
|
deleted: !1,
|
|
1051
1052
|
filtered: !1,
|
|
@@ -1055,13 +1056,13 @@ const L = class L {
|
|
|
1055
1056
|
_: [0, 0, 0, 0, L.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, z).slice(), -1, {}, {}]
|
|
1056
1057
|
}), "#getDefaultMeta"));
|
|
1057
1058
|
w(this, "reset", /* @__PURE__ */ c(() => {
|
|
1058
|
-
g(this, A, []), g(this,
|
|
1059
|
+
g(this, A, []), g(this, Q, []);
|
|
1059
1060
|
}, "reset"));
|
|
1060
1061
|
w(this, "clear", /* @__PURE__ */ c(() => {
|
|
1061
1062
|
var i;
|
|
1062
|
-
t(this, v).rawRecords = [], g(this, A, []), g(this,
|
|
1063
|
+
t(this, v).rawRecords = [], g(this, A, []), g(this, Q, []), (i = t(this, v).viewRecords) != null && i.reset && t(this, v).viewRecords.reset();
|
|
1063
1064
|
}, "clear"));
|
|
1064
|
-
h(this,
|
|
1065
|
+
h(this, Ct, /* @__PURE__ */ c((i) => {
|
|
1065
1066
|
var o;
|
|
1066
1067
|
Array.isArray(i) || (i = [i]);
|
|
1067
1068
|
const e = typeof ((o = t(this, T).fields) == null ? void 0 : o.get) == "function" ? t(this, T).fields.get() : Object.keys(i[0] || {}), s = [];
|
|
@@ -1072,14 +1073,14 @@ const L = class L {
|
|
|
1072
1073
|
}), s.push(n);
|
|
1073
1074
|
}), s;
|
|
1074
1075
|
}, "#json2Array"));
|
|
1075
|
-
h(this,
|
|
1076
|
-
e.__ng = t(this,
|
|
1076
|
+
h(this, _t, /* @__PURE__ */ c((i) => (Array.isArray(i) || (i = [i]), i.forEach((e) => {
|
|
1077
|
+
e.__ng = t(this, ht).call(this), e.__ng.rowid = this.nextId, e.__ng.rowState = L.ROW_STATE.INSERT, e.__ng._[0] = e.__ng.rowid;
|
|
1077
1078
|
}), i), "#defaultInsert"));
|
|
1078
1079
|
w(this, "add", /* @__PURE__ */ c((i, e = !0) => {
|
|
1079
1080
|
var r;
|
|
1080
1081
|
i === void 0 && (i = {});
|
|
1081
|
-
const s = t(this,
|
|
1082
|
-
t(this, v).rawRecords = t(this, v).rawRecords.concat(t(this,
|
|
1082
|
+
const s = t(this, Ct).call(this, i);
|
|
1083
|
+
t(this, v).rawRecords = t(this, v).rawRecords.concat(t(this, _t).call(this, s)), this.resetRecords();
|
|
1083
1084
|
const o = this.count() - 1;
|
|
1084
1085
|
return e || s.forEach((n, l) => {
|
|
1085
1086
|
const a = t(this, v).rawRecords[o - l];
|
|
@@ -1109,14 +1110,14 @@ const L = class L {
|
|
|
1109
1110
|
l !== s && n.__ng.rowState !== L.ROW_STATE.INSERT && (n.__ng.o.hasOwnProperty(e) || (n.__ng.o[e] = l), n.__ng.rowState = L.ROW_STATE.UPDATE), n.v[r] = s, t(this, v).owner.refreshData && t(this, v).owner.refreshData(i);
|
|
1110
1111
|
}, "setValue"));
|
|
1111
1112
|
w(this, "resetRecords", /* @__PURE__ */ c(() => {
|
|
1112
|
-
g(this,
|
|
1113
|
+
g(this, Q, t(this, v).rawRecords.filter((i) => !i.__ng.deleted)), g(this, A, t(this, v).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), t(this, v).rawRecords.forEach((i, e) => {
|
|
1113
1114
|
i.__ng.rowidx = e;
|
|
1114
1115
|
}), t(this, A).forEach((i, e) => {
|
|
1115
1116
|
i.__ng.i = e;
|
|
1116
1117
|
});
|
|
1117
1118
|
}, "resetRecords"));
|
|
1118
1119
|
w(this, "getValidData", /* @__PURE__ */ c(() => (t(this, A).length === 0 && t(this, v).rawRecords.length > 0 && this.resetRecords(), t(this, A)), "getValidData"));
|
|
1119
|
-
h(this,
|
|
1120
|
+
h(this, tt, /* @__PURE__ */ c((i) => {
|
|
1120
1121
|
var s;
|
|
1121
1122
|
if (!i) return i;
|
|
1122
1123
|
const e = typeof ((s = t(this, T).fields) == null ? void 0 : s.get) == "function" ? t(this, T).fields.get() : [];
|
|
@@ -1132,25 +1133,25 @@ const L = class L {
|
|
|
1132
1133
|
var r;
|
|
1133
1134
|
const s = this.getValidData();
|
|
1134
1135
|
if (!s || s.length <= 0) return;
|
|
1135
|
-
if (i == null) return t(this,
|
|
1136
|
+
if (i == null) return t(this, tt).call(this, s);
|
|
1136
1137
|
if (i < 0 || i >= s.length) return null;
|
|
1137
1138
|
const o = typeof ((r = t(this, T).fields) == null ? void 0 : r.get) == "function" ? t(this, T).fields.get() : [];
|
|
1138
1139
|
if (e != null) {
|
|
1139
1140
|
const n = o.indexOf(e);
|
|
1140
1141
|
return n >= 0 ? s[i].v[n] : null;
|
|
1141
1142
|
}
|
|
1142
|
-
return t(this,
|
|
1143
|
+
return t(this, tt).call(this, s[i]);
|
|
1143
1144
|
}, "get"));
|
|
1144
|
-
g(this, T, i), g(this, v, e), t(this,
|
|
1145
|
+
g(this, T, i), g(this, v, e), t(this, Ht).call(this);
|
|
1145
1146
|
}
|
|
1146
1147
|
get source() {
|
|
1147
|
-
return t(this,
|
|
1148
|
+
return t(this, tt).call(this, t(this, v).rawRecords);
|
|
1148
1149
|
}
|
|
1149
1150
|
set source(i) {
|
|
1150
1151
|
this.clear(), this.add(i, !1);
|
|
1151
1152
|
}
|
|
1152
1153
|
get nextId() {
|
|
1153
|
-
return ++
|
|
1154
|
+
return ++ne(this, Lt)._;
|
|
1154
1155
|
}
|
|
1155
1156
|
get length() {
|
|
1156
1157
|
return t(this, A).length;
|
|
@@ -1159,7 +1160,7 @@ const L = class L {
|
|
|
1159
1160
|
return this.length;
|
|
1160
1161
|
}
|
|
1161
1162
|
};
|
|
1162
|
-
T = new WeakMap(), v = new WeakMap(), A = new WeakMap(),
|
|
1163
|
+
T = new WeakMap(), v = new WeakMap(), A = new WeakMap(), Q = new WeakMap(), Lt = new WeakMap(), z = new WeakMap(), Ht = new WeakMap(), ht = new WeakMap(), Ct = new WeakMap(), _t = new WeakMap(), tt = new WeakMap(), c(L, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
1163
1164
|
w(L, "ROW_STATE", {
|
|
1164
1165
|
EMPTY: "EMPTY",
|
|
1165
1166
|
NORMAL: "NORMAL",
|
|
@@ -1167,10 +1168,10 @@ w(L, "ROW_STATE", {
|
|
|
1167
1168
|
UPDATE: "UPDATE",
|
|
1168
1169
|
DELETE: "DELETE"
|
|
1169
1170
|
});
|
|
1170
|
-
let
|
|
1171
|
-
const
|
|
1171
|
+
let Pt = L;
|
|
1172
|
+
const Jt = class Jt {
|
|
1172
1173
|
constructor(i) {
|
|
1173
|
-
this.owner = i, this.row = new Bt(this), this.data = new
|
|
1174
|
+
this.owner = i, this.row = new Bt(this), this.data = new Pt(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
|
|
1174
1175
|
var e;
|
|
1175
1176
|
(e = this.owner.view) != null && e.redraw && this.owner.view.redraw();
|
|
1176
1177
|
}, this.setDataSource = (e) => {
|
|
@@ -1187,22 +1188,22 @@ const Gt = class Gt {
|
|
|
1187
1188
|
}, this.setDataSource([]);
|
|
1188
1189
|
}
|
|
1189
1190
|
};
|
|
1190
|
-
c(
|
|
1191
|
-
let
|
|
1192
|
-
var U,
|
|
1193
|
-
const
|
|
1191
|
+
c(Jt, "ngDataManager");
|
|
1192
|
+
let Yt = Jt;
|
|
1193
|
+
var U, Mt;
|
|
1194
|
+
const Qt = class Qt extends HTMLElement {
|
|
1194
1195
|
constructor() {
|
|
1195
1196
|
super();
|
|
1196
1197
|
//#created = false;
|
|
1197
1198
|
h(this, U);
|
|
1198
|
-
h(this,
|
|
1199
|
-
this.attachShadow({ mode: "open" }), g(this, U, new
|
|
1199
|
+
h(this, Mt);
|
|
1200
|
+
this.attachShadow({ mode: "open" }), g(this, U, new Yt(this));
|
|
1200
1201
|
}
|
|
1201
1202
|
connectedCallback() {
|
|
1202
|
-
g(this,
|
|
1203
|
+
g(this, Mt, new Nt(this)), F.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
1203
1204
|
}
|
|
1204
1205
|
disconnectedCallback() {
|
|
1205
|
-
|
|
1206
|
+
F.log("NineTable disconnected.");
|
|
1206
1207
|
}
|
|
1207
1208
|
// π― μΈλΆμμ grid.data.set(...) ννλ‘ μ κ·Όν μ μλλ‘ λ°μ΄ν° λ§€λμ μ€ν
|
|
1208
1209
|
get data() {
|
|
@@ -1217,7 +1218,7 @@ const Jt = class Jt extends HTMLElement {
|
|
|
1217
1218
|
return t(this, U);
|
|
1218
1219
|
}
|
|
1219
1220
|
};
|
|
1220
|
-
U = new WeakMap(),
|
|
1221
|
-
let
|
|
1222
|
-
customElements.get("nine-table") || customElements.define("nine-table",
|
|
1221
|
+
U = new WeakMap(), Mt = new WeakMap(), c(Qt, "NineTable");
|
|
1222
|
+
let Vt = Qt;
|
|
1223
|
+
customElements.get("nine-table") || customElements.define("nine-table", Vt);
|
|
1223
1224
|
//# sourceMappingURL=nine-table.js.map
|