@ninebone/table 0.0.320 β 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 -147
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +5 -8
- 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>
|
|
@@ -701,10 +702,7 @@ const et = class et extends HTMLElement {
|
|
|
701
702
|
}
|
|
702
703
|
nine-table-sheet tbody.fixed-tbody {
|
|
703
704
|
position: sticky;
|
|
704
|
-
--top: 25px; /* ν€λ(thead)μ λμ΄λ§νΌ top κ°μ μ£Όκ±°λ ν€λ λ°λ‘ λ°μ μ€λλ‘ μ€μ */
|
|
705
705
|
z-index: 4;
|
|
706
|
-
background-color: red;
|
|
707
|
-
height: 100px;
|
|
708
706
|
}
|
|
709
707
|
|
|
710
708
|
|
|
@@ -807,31 +805,31 @@ const et = class et extends HTMLElement {
|
|
|
807
805
|
</div>
|
|
808
806
|
`;
|
|
809
807
|
}, "#render"));
|
|
810
|
-
g(this,
|
|
808
|
+
g(this, J, new Ot(this)), g(this, lt, this.getRootNode().host), F.log(t(this, lt));
|
|
811
809
|
}
|
|
812
810
|
connectedCallback() {
|
|
813
|
-
t(this,
|
|
811
|
+
t(this, Rt).call(this);
|
|
814
812
|
}
|
|
815
813
|
disconnectedCallback() {
|
|
816
|
-
this.innerHTML = "",
|
|
814
|
+
this.innerHTML = "", F.log("NineTableSheet destroyed.");
|
|
817
815
|
}
|
|
818
816
|
};
|
|
819
|
-
|
|
820
|
-
let
|
|
821
|
-
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet",
|
|
822
|
-
var
|
|
823
|
-
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 {
|
|
824
822
|
constructor() {
|
|
825
823
|
super();
|
|
826
|
-
h(this,
|
|
824
|
+
h(this, qt, /* @__PURE__ */ c(() => {
|
|
827
825
|
var e;
|
|
828
826
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
829
827
|
var n;
|
|
830
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);
|
|
831
|
-
t(this,
|
|
832
|
-
}), t(this,
|
|
829
|
+
t(this, ct).call(this, r, o);
|
|
830
|
+
}), t(this, ct).call(this, 0, !1);
|
|
833
831
|
}, "#init"));
|
|
834
|
-
h(this,
|
|
832
|
+
h(this, ct, /* @__PURE__ */ c((e, s = !1) => {
|
|
835
833
|
const o = /* @__PURE__ */ c(() => {
|
|
836
834
|
const f = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
837
835
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((m) => m.style.setProperty("display", "none"));
|
|
@@ -864,30 +862,30 @@ const Kt = class Kt extends HTMLElement {
|
|
|
864
862
|
}, "#switchSheet"));
|
|
865
863
|
}
|
|
866
864
|
connectedCallback() {
|
|
867
|
-
t(this,
|
|
865
|
+
t(this, qt).call(this);
|
|
868
866
|
}
|
|
869
867
|
};
|
|
870
|
-
|
|
871
|
-
let
|
|
872
|
-
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets",
|
|
873
|
-
var k,
|
|
874
|
-
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 {
|
|
875
873
|
constructor(i) {
|
|
876
874
|
h(this, k);
|
|
877
|
-
h(this,
|
|
878
|
-
t(this,
|
|
875
|
+
h(this, Tt, /* @__PURE__ */ c(() => {
|
|
876
|
+
t(this, At).call(this), new ResizeObserver((i) => {
|
|
879
877
|
for (let e of i)
|
|
880
|
-
t(this, k).getAttribute("auto-height") === "true" && t(this,
|
|
878
|
+
t(this, k).getAttribute("auto-height") === "true" && t(this, at).call(this);
|
|
881
879
|
}).observe(t(this, k));
|
|
882
880
|
}, "#init"));
|
|
883
|
-
h(this,
|
|
881
|
+
h(this, at, /* @__PURE__ */ c(() => {
|
|
884
882
|
var a, d;
|
|
885
883
|
const i = Array.from(t(this, k).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
886
884
|
if (i.length === 0) return;
|
|
887
|
-
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;
|
|
888
886
|
t(this, k).style.height = `${l}px`;
|
|
889
887
|
}, "#applyAutoHeight"));
|
|
890
|
-
h(this,
|
|
888
|
+
h(this, At, /* @__PURE__ */ c(() => {
|
|
891
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) => {
|
|
892
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>` : "";
|
|
893
891
|
return u + b;
|
|
@@ -994,17 +992,17 @@ const jt = class jt {
|
|
|
994
992
|
const l = t(this, k).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
995
993
|
l == null || l.forEach((a, d) => {
|
|
996
994
|
e[d] && setTimeout(() => {
|
|
997
|
-
a.generate(e[d]), s && t(this,
|
|
995
|
+
a.generate(e[d]), s && t(this, at).call(this);
|
|
998
996
|
});
|
|
999
997
|
});
|
|
1000
998
|
}, "#render"));
|
|
1001
|
-
g(this, k, i), t(this,
|
|
999
|
+
g(this, k, i), t(this, Tt).call(this);
|
|
1002
1000
|
}
|
|
1003
1001
|
};
|
|
1004
|
-
k = new WeakMap(),
|
|
1005
|
-
let
|
|
1002
|
+
k = new WeakMap(), Tt = new WeakMap(), at = new WeakMap(), At = new WeakMap(), c(Zt, "LayoutManager");
|
|
1003
|
+
let Nt = Zt;
|
|
1006
1004
|
var W, X;
|
|
1007
|
-
const
|
|
1005
|
+
const Gt = class Gt {
|
|
1008
1006
|
constructor(i) {
|
|
1009
1007
|
h(this, W);
|
|
1010
1008
|
h(this, X, -1);
|
|
@@ -1024,31 +1022,31 @@ const Zt = class Zt {
|
|
|
1024
1022
|
});
|
|
1025
1023
|
}
|
|
1026
1024
|
};
|
|
1027
|
-
W = new WeakMap(), X = new WeakMap(), c(
|
|
1028
|
-
let Bt =
|
|
1029
|
-
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;
|
|
1030
1028
|
const L = class L {
|
|
1031
1029
|
constructor(i, e) {
|
|
1032
1030
|
h(this, T);
|
|
1033
1031
|
h(this, v);
|
|
1034
1032
|
h(this, A, []);
|
|
1035
|
-
h(this,
|
|
1036
|
-
h(this,
|
|
1033
|
+
h(this, Q, []);
|
|
1034
|
+
h(this, Lt, 0);
|
|
1037
1035
|
h(this, z, []);
|
|
1038
|
-
h(this,
|
|
1036
|
+
h(this, Ht, /* @__PURE__ */ c(() => {
|
|
1039
1037
|
g(this, z, []);
|
|
1040
1038
|
const i = t(this, T).template || [];
|
|
1041
1039
|
Array.from(i).forEach((e) => {
|
|
1042
1040
|
var s;
|
|
1043
1041
|
t(this, z).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1044
1042
|
}), (t(this, v).rawRecords || []).forEach((e) => {
|
|
1045
|
-
e.__ng || (e.__ng = t(this,
|
|
1043
|
+
e.__ng || (e.__ng = t(this, ht).call(this)), e.__ng.height = t(this, z).slice();
|
|
1046
1044
|
});
|
|
1047
1045
|
}, "#initialize"));
|
|
1048
1046
|
w(this, "set", /* @__PURE__ */ c((i) => {
|
|
1049
1047
|
this.clear(), this.add(i, !1);
|
|
1050
1048
|
}, "set"));
|
|
1051
|
-
h(this,
|
|
1049
|
+
h(this, ht, /* @__PURE__ */ c(() => ({
|
|
1052
1050
|
rowState: L.ROW_STATE.EMPTY,
|
|
1053
1051
|
deleted: !1,
|
|
1054
1052
|
filtered: !1,
|
|
@@ -1058,13 +1056,13 @@ const L = class L {
|
|
|
1058
1056
|
_: [0, 0, 0, 0, L.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, z).slice(), -1, {}, {}]
|
|
1059
1057
|
}), "#getDefaultMeta"));
|
|
1060
1058
|
w(this, "reset", /* @__PURE__ */ c(() => {
|
|
1061
|
-
g(this, A, []), g(this,
|
|
1059
|
+
g(this, A, []), g(this, Q, []);
|
|
1062
1060
|
}, "reset"));
|
|
1063
1061
|
w(this, "clear", /* @__PURE__ */ c(() => {
|
|
1064
1062
|
var i;
|
|
1065
|
-
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();
|
|
1066
1064
|
}, "clear"));
|
|
1067
|
-
h(this,
|
|
1065
|
+
h(this, Ct, /* @__PURE__ */ c((i) => {
|
|
1068
1066
|
var o;
|
|
1069
1067
|
Array.isArray(i) || (i = [i]);
|
|
1070
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 = [];
|
|
@@ -1075,14 +1073,14 @@ const L = class L {
|
|
|
1075
1073
|
}), s.push(n);
|
|
1076
1074
|
}), s;
|
|
1077
1075
|
}, "#json2Array"));
|
|
1078
|
-
h(this,
|
|
1079
|
-
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;
|
|
1080
1078
|
}), i), "#defaultInsert"));
|
|
1081
1079
|
w(this, "add", /* @__PURE__ */ c((i, e = !0) => {
|
|
1082
1080
|
var r;
|
|
1083
1081
|
i === void 0 && (i = {});
|
|
1084
|
-
const s = t(this,
|
|
1085
|
-
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();
|
|
1086
1084
|
const o = this.count() - 1;
|
|
1087
1085
|
return e || s.forEach((n, l) => {
|
|
1088
1086
|
const a = t(this, v).rawRecords[o - l];
|
|
@@ -1112,14 +1110,14 @@ const L = class L {
|
|
|
1112
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);
|
|
1113
1111
|
}, "setValue"));
|
|
1114
1112
|
w(this, "resetRecords", /* @__PURE__ */ c(() => {
|
|
1115
|
-
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) => {
|
|
1116
1114
|
i.__ng.rowidx = e;
|
|
1117
1115
|
}), t(this, A).forEach((i, e) => {
|
|
1118
1116
|
i.__ng.i = e;
|
|
1119
1117
|
});
|
|
1120
1118
|
}, "resetRecords"));
|
|
1121
1119
|
w(this, "getValidData", /* @__PURE__ */ c(() => (t(this, A).length === 0 && t(this, v).rawRecords.length > 0 && this.resetRecords(), t(this, A)), "getValidData"));
|
|
1122
|
-
h(this,
|
|
1120
|
+
h(this, tt, /* @__PURE__ */ c((i) => {
|
|
1123
1121
|
var s;
|
|
1124
1122
|
if (!i) return i;
|
|
1125
1123
|
const e = typeof ((s = t(this, T).fields) == null ? void 0 : s.get) == "function" ? t(this, T).fields.get() : [];
|
|
@@ -1135,25 +1133,25 @@ const L = class L {
|
|
|
1135
1133
|
var r;
|
|
1136
1134
|
const s = this.getValidData();
|
|
1137
1135
|
if (!s || s.length <= 0) return;
|
|
1138
|
-
if (i == null) return t(this,
|
|
1136
|
+
if (i == null) return t(this, tt).call(this, s);
|
|
1139
1137
|
if (i < 0 || i >= s.length) return null;
|
|
1140
1138
|
const o = typeof ((r = t(this, T).fields) == null ? void 0 : r.get) == "function" ? t(this, T).fields.get() : [];
|
|
1141
1139
|
if (e != null) {
|
|
1142
1140
|
const n = o.indexOf(e);
|
|
1143
1141
|
return n >= 0 ? s[i].v[n] : null;
|
|
1144
1142
|
}
|
|
1145
|
-
return t(this,
|
|
1143
|
+
return t(this, tt).call(this, s[i]);
|
|
1146
1144
|
}, "get"));
|
|
1147
|
-
g(this, T, i), g(this, v, e), t(this,
|
|
1145
|
+
g(this, T, i), g(this, v, e), t(this, Ht).call(this);
|
|
1148
1146
|
}
|
|
1149
1147
|
get source() {
|
|
1150
|
-
return t(this,
|
|
1148
|
+
return t(this, tt).call(this, t(this, v).rawRecords);
|
|
1151
1149
|
}
|
|
1152
1150
|
set source(i) {
|
|
1153
1151
|
this.clear(), this.add(i, !1);
|
|
1154
1152
|
}
|
|
1155
1153
|
get nextId() {
|
|
1156
|
-
return ++
|
|
1154
|
+
return ++ne(this, Lt)._;
|
|
1157
1155
|
}
|
|
1158
1156
|
get length() {
|
|
1159
1157
|
return t(this, A).length;
|
|
@@ -1162,7 +1160,7 @@ const L = class L {
|
|
|
1162
1160
|
return this.length;
|
|
1163
1161
|
}
|
|
1164
1162
|
};
|
|
1165
|
-
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"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
1166
1164
|
w(L, "ROW_STATE", {
|
|
1167
1165
|
EMPTY: "EMPTY",
|
|
1168
1166
|
NORMAL: "NORMAL",
|
|
@@ -1170,10 +1168,10 @@ w(L, "ROW_STATE", {
|
|
|
1170
1168
|
UPDATE: "UPDATE",
|
|
1171
1169
|
DELETE: "DELETE"
|
|
1172
1170
|
});
|
|
1173
|
-
let
|
|
1174
|
-
const
|
|
1171
|
+
let Pt = L;
|
|
1172
|
+
const Jt = class Jt {
|
|
1175
1173
|
constructor(i) {
|
|
1176
|
-
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 = () => {
|
|
1177
1175
|
var e;
|
|
1178
1176
|
(e = this.owner.view) != null && e.redraw && this.owner.view.redraw();
|
|
1179
1177
|
}, this.setDataSource = (e) => {
|
|
@@ -1190,22 +1188,22 @@ const Gt = class Gt {
|
|
|
1190
1188
|
}, this.setDataSource([]);
|
|
1191
1189
|
}
|
|
1192
1190
|
};
|
|
1193
|
-
c(
|
|
1194
|
-
let
|
|
1195
|
-
var U,
|
|
1196
|
-
const
|
|
1191
|
+
c(Jt, "ngDataManager");
|
|
1192
|
+
let Yt = Jt;
|
|
1193
|
+
var U, Mt;
|
|
1194
|
+
const Qt = class Qt extends HTMLElement {
|
|
1197
1195
|
constructor() {
|
|
1198
1196
|
super();
|
|
1199
1197
|
//#created = false;
|
|
1200
1198
|
h(this, U);
|
|
1201
|
-
h(this,
|
|
1202
|
-
this.attachShadow({ mode: "open" }), g(this, U, new
|
|
1199
|
+
h(this, Mt);
|
|
1200
|
+
this.attachShadow({ mode: "open" }), g(this, U, new Yt(this));
|
|
1203
1201
|
}
|
|
1204
1202
|
connectedCallback() {
|
|
1205
|
-
g(this,
|
|
1203
|
+
g(this, Mt, new Nt(this)), F.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
1206
1204
|
}
|
|
1207
1205
|
disconnectedCallback() {
|
|
1208
|
-
|
|
1206
|
+
F.log("NineTable disconnected.");
|
|
1209
1207
|
}
|
|
1210
1208
|
// π― μΈλΆμμ grid.data.set(...) ννλ‘ μ κ·Όν μ μλλ‘ λ°μ΄ν° λ§€λμ μ€ν
|
|
1211
1209
|
get data() {
|
|
@@ -1220,7 +1218,7 @@ const Jt = class Jt extends HTMLElement {
|
|
|
1220
1218
|
return t(this, U);
|
|
1221
1219
|
}
|
|
1222
1220
|
};
|
|
1223
|
-
U = new WeakMap(),
|
|
1224
|
-
let
|
|
1225
|
-
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);
|
|
1226
1224
|
//# sourceMappingURL=nine-table.js.map
|