@ninebone/table 0.0.162 β 0.0.164
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 +66 -66
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +4 -4
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -22,26 +22,26 @@ const Re = class Re extends We.constructor {
|
|
|
22
22
|
};
|
|
23
23
|
a(Re, "Trace");
|
|
24
24
|
let be = Re;
|
|
25
|
-
const
|
|
26
|
-
var L,
|
|
25
|
+
const O = new be();
|
|
26
|
+
var L, B, y, D, N, P, ee, X, te;
|
|
27
27
|
const Te = class Te extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
30
|
u(this, L);
|
|
31
|
-
u(this,
|
|
31
|
+
u(this, B, !1);
|
|
32
32
|
u(this, y);
|
|
33
|
-
u(this, B);
|
|
34
33
|
u(this, D);
|
|
35
34
|
u(this, N);
|
|
35
|
+
u(this, P);
|
|
36
36
|
u(this, ee, /* @__PURE__ */ a(() => {
|
|
37
37
|
if (!e(this, L)) return;
|
|
38
38
|
const t = e(this, L).querySelector(".ng-container-body");
|
|
39
|
-
t && (p(this,
|
|
39
|
+
t && (p(this, P, new ResizeObserver(() => {
|
|
40
40
|
this.refresh();
|
|
41
|
-
})), e(this,
|
|
41
|
+
})), e(this, P).observe(t));
|
|
42
42
|
}, "#observeResize"));
|
|
43
43
|
v(this, "refresh", /* @__PURE__ */ a(() => {
|
|
44
|
-
if (!e(this, L) || !e(this, y) || e(this,
|
|
44
|
+
if (!e(this, L) || !e(this, y) || e(this, B)) return;
|
|
45
45
|
const t = e(this, y).container, i = t.querySelector("table");
|
|
46
46
|
if (!i) return;
|
|
47
47
|
const n = e(this, y).track, o = e(this, y).thumb, r = e(this, L).querySelector(".ng-container-bottom"), l = t.clientWidth, b = i.scrollWidth;
|
|
@@ -67,7 +67,7 @@ const Te = class Te extends HTMLElement {
|
|
|
67
67
|
const S = c - h;
|
|
68
68
|
f > S && (f = S), o.style.left = `${f}px`, e(this, y).left.disabled = f === 0, e(this, y).right.disabled = f >= S - 1;
|
|
69
69
|
}, "refresh"));
|
|
70
|
-
u(this,
|
|
70
|
+
u(this, X, /* @__PURE__ */ a((t) => {
|
|
71
71
|
if (!e(this, y)) return !1;
|
|
72
72
|
const i = e(this, y).container, n = i.querySelector("table");
|
|
73
73
|
if (!n) return !1;
|
|
@@ -82,16 +82,16 @@ const Te = class Te extends HTMLElement {
|
|
|
82
82
|
}, "#thumbMoveTo"));
|
|
83
83
|
u(this, te, /* @__PURE__ */ a(() => {
|
|
84
84
|
const t = /* @__PURE__ */ a((n) => {
|
|
85
|
-
clearInterval(e(this,
|
|
85
|
+
clearInterval(e(this, D)), clearInterval(e(this, N));
|
|
86
86
|
const o = parseInt(e(this, y).thumb.style.left || 0, 10);
|
|
87
|
-
e(this,
|
|
88
|
-
clearInterval(e(this,
|
|
87
|
+
e(this, X).call(this, o + n), p(this, D, setInterval(() => {
|
|
88
|
+
clearInterval(e(this, D)), p(this, N, setInterval(() => {
|
|
89
89
|
const r = parseInt(e(this, y).thumb.style.left || 0, 10);
|
|
90
|
-
e(this,
|
|
90
|
+
e(this, X).call(this, r + n) || clearInterval(e(this, N));
|
|
91
91
|
}, 50));
|
|
92
92
|
}, 500));
|
|
93
93
|
}, "delayScroll"), i = /* @__PURE__ */ a(() => {
|
|
94
|
-
clearInterval(e(this,
|
|
94
|
+
clearInterval(e(this, D)), clearInterval(e(this, N));
|
|
95
95
|
}, "clearTimer");
|
|
96
96
|
["mouseup", "mouseleave", "touchend"].forEach((n) => {
|
|
97
97
|
e(this, y).left.addEventListener(n, i), e(this, y).right.addEventListener(n, i), e(this, y).track.addEventListener(n, i);
|
|
@@ -103,16 +103,16 @@ const Te = class Te extends HTMLElement {
|
|
|
103
103
|
if (n.button !== 0) return;
|
|
104
104
|
n.preventDefault();
|
|
105
105
|
const o = e(this, y).track.getBoundingClientRect(), r = e(this, y).thumb.clientWidth;
|
|
106
|
-
e(this,
|
|
106
|
+
e(this, X).call(this, n.clientX - o.left - r / 2);
|
|
107
107
|
}), e(this, y).thumb.addEventListener("mousedown", (n) => {
|
|
108
108
|
if (n.button !== 0) return;
|
|
109
|
-
n.stopPropagation(), n.preventDefault(), p(this,
|
|
109
|
+
n.stopPropagation(), n.preventDefault(), p(this, B, !0), this.shiftX = n.clientX - e(this, y).thumb.getBoundingClientRect().left;
|
|
110
110
|
const o = /* @__PURE__ */ a((l) => {
|
|
111
|
-
if (!e(this,
|
|
111
|
+
if (!e(this, B)) return;
|
|
112
112
|
const b = e(this, y).track.getBoundingClientRect();
|
|
113
|
-
e(this,
|
|
113
|
+
e(this, X).call(this, l.clientX - b.left - this.shiftX);
|
|
114
114
|
}, "onMouseMove"), r = /* @__PURE__ */ a(() => {
|
|
115
|
-
p(this,
|
|
115
|
+
p(this, B, !1), i(), document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", r), this.refresh();
|
|
116
116
|
}, "onMouseUp");
|
|
117
117
|
document.addEventListener("mousemove", o), document.addEventListener("mouseup", r);
|
|
118
118
|
});
|
|
@@ -200,16 +200,16 @@ const Te = class Te extends HTMLElement {
|
|
|
200
200
|
t();
|
|
201
201
|
}
|
|
202
202
|
disconnectedCallback() {
|
|
203
|
-
e(this,
|
|
203
|
+
e(this, P) && e(this, P).disconnect();
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
L = new WeakMap(),
|
|
206
|
+
L = new WeakMap(), B = new WeakMap(), y = new WeakMap(), D = new WeakMap(), N = new WeakMap(), P = new WeakMap(), ee = new WeakMap(), X = new WeakMap(), te = new WeakMap(), a(Te, "NineTableHScrollBar");
|
|
207
207
|
let ge = Te;
|
|
208
208
|
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", ge);
|
|
209
|
-
var
|
|
209
|
+
var V, _, q, M, I, H, se, ie;
|
|
210
210
|
const qe = class qe {
|
|
211
211
|
constructor(s) {
|
|
212
|
-
u(this,
|
|
212
|
+
u(this, V);
|
|
213
213
|
u(this, _, []);
|
|
214
214
|
u(this, q, null);
|
|
215
215
|
u(this, M, null);
|
|
@@ -222,7 +222,7 @@ const qe = class qe {
|
|
|
222
222
|
* π― λ·°ν¬νΈ ν¬κΈ° λ³ν μμ μ λμ΄ κ³μ° λ° νμν ν κ°μ μ°μ Β·μΊμ±μ μκ²°
|
|
223
223
|
*/
|
|
224
224
|
u(this, ie, /* @__PURE__ */ a(() => {
|
|
225
|
-
!e(this,
|
|
225
|
+
!e(this, V) || !(e(this, V) instanceof HTMLElement) || (p(this, M, new ResizeObserver((s) => {
|
|
226
226
|
for (const t of s) {
|
|
227
227
|
const i = t.target;
|
|
228
228
|
if (!i.classList.contains("active"))
|
|
@@ -236,14 +236,14 @@ const qe = class qe {
|
|
|
236
236
|
const h = Math.max(o - r, 100);
|
|
237
237
|
if (e(this, I) !== h && (p(this, I, h), e(this, q) !== null)) {
|
|
238
238
|
const d = Math.ceil(e(this, I) / e(this, q));
|
|
239
|
-
p(this, H, d + 20),
|
|
239
|
+
p(this, H, d + 20), O.log(`[RowManager] Resized. Height: ${e(this, I)}px | Target Rows: ${e(this, H)}`), [".ng-container-body", ".ng-container-left", ".ng-container-right"].forEach((g) => {
|
|
240
240
|
const f = i.querySelector(g);
|
|
241
241
|
f && f.querySelector("tbody") && this.renderRows(f);
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
})), e(this, M).observe(e(this,
|
|
246
|
+
})), e(this, M).observe(e(this, V)));
|
|
247
247
|
}, "#initResizeObserver"));
|
|
248
248
|
v(this, "initTemplate", /* @__PURE__ */ a((s) => {
|
|
249
249
|
const t = s.querySelector("tbody.bindable") || s.querySelector("tbody");
|
|
@@ -306,20 +306,20 @@ const qe = class qe {
|
|
|
306
306
|
v(this, "destroy", /* @__PURE__ */ a(() => {
|
|
307
307
|
e(this, M) && (e(this, M).disconnect(), p(this, M, null));
|
|
308
308
|
}, "destroy"));
|
|
309
|
-
p(this,
|
|
309
|
+
p(this, V, s), e(this, se).call(this);
|
|
310
310
|
}
|
|
311
311
|
get templateLength() {
|
|
312
312
|
return e(this, _).length || 1;
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
|
-
|
|
315
|
+
V = new WeakMap(), _ = new WeakMap(), q = new WeakMap(), M = new WeakMap(), I = new WeakMap(), H = new WeakMap(), se = new WeakMap(), ie = new WeakMap(), a(qe, "RowManager");
|
|
316
316
|
let pe = qe;
|
|
317
|
-
var C,
|
|
317
|
+
var C, U, ne;
|
|
318
318
|
const j = class j extends HTMLElement {
|
|
319
319
|
constructor() {
|
|
320
320
|
super();
|
|
321
321
|
u(this, C, null);
|
|
322
|
-
u(this,
|
|
322
|
+
u(this, U);
|
|
323
323
|
v(this, "init", /* @__PURE__ */ a((t) => {
|
|
324
324
|
if (!t) return;
|
|
325
325
|
const i = /* @__PURE__ */ a((c) => {
|
|
@@ -338,7 +338,7 @@ const j = class j extends HTMLElement {
|
|
|
338
338
|
}, "ensureThead");
|
|
339
339
|
return h(c), d(c), c.classList.add("nine-table-element"), c;
|
|
340
340
|
}, "initializeTable"), n = t.cloneNode(!0);
|
|
341
|
-
p(this, C, i(n)), e(this, C).style.display = "table", e(this,
|
|
341
|
+
p(this, C, i(n)), e(this, C).style.display = "table", e(this, U).initTemplate(e(this, C));
|
|
342
342
|
const o = this.querySelector(".ng-container-left"), r = this.querySelector(".ng-container-body"), l = this.querySelector(".ng-container-right"), b = /* @__PURE__ */ a((c, h, d = !1) => {
|
|
343
343
|
const g = c.cloneNode(!0), f = Array.from(g.querySelectorAll("colgroup col")), S = [];
|
|
344
344
|
return f.forEach((x, A) => {
|
|
@@ -353,7 +353,7 @@ const j = class j extends HTMLElement {
|
|
|
353
353
|
}, "filterTableByFixed");
|
|
354
354
|
if (r) {
|
|
355
355
|
const c = b(e(this, C), null, !0);
|
|
356
|
-
r.innerHTML = "", r.appendChild(c), e(this,
|
|
356
|
+
r.innerHTML = "", r.appendChild(c), e(this, U).measureAndCacheHeight(r);
|
|
357
357
|
}
|
|
358
358
|
if (o) {
|
|
359
359
|
const c = b(e(this, C), "left", !1);
|
|
@@ -385,7 +385,7 @@ const j = class j extends HTMLElement {
|
|
|
385
385
|
setTimeout(() => {
|
|
386
386
|
const c = this.querySelector("nine-table-hscrollbar");
|
|
387
387
|
c && typeof c.refresh == "function" && c.refresh();
|
|
388
|
-
}, 0),
|
|
388
|
+
}, 0), O.log(`NineTableSheet 3-split initialized with rows: ${this.getRowCount()}`);
|
|
389
389
|
}, "init"));
|
|
390
390
|
v(this, "getRowCount", /* @__PURE__ */ a(() => e(this, C) ? e(this, C).querySelectorAll("tbody tr").length : 0, "getRowCount"));
|
|
391
391
|
v(this, "scrollToX", /* @__PURE__ */ a((t) => {
|
|
@@ -513,16 +513,16 @@ const j = class j extends HTMLElement {
|
|
|
513
513
|
</div>
|
|
514
514
|
`;
|
|
515
515
|
}, "#render"));
|
|
516
|
-
p(this,
|
|
516
|
+
p(this, U, new pe(this));
|
|
517
517
|
}
|
|
518
518
|
connectedCallback() {
|
|
519
519
|
e(this, ne).call(this);
|
|
520
520
|
}
|
|
521
521
|
disconnectedCallback() {
|
|
522
|
-
this.innerHTML = "",
|
|
522
|
+
this.innerHTML = "", O.log("NineTableSheet destroyed.");
|
|
523
523
|
}
|
|
524
524
|
};
|
|
525
|
-
C = new WeakMap(),
|
|
525
|
+
C = new WeakMap(), U = new WeakMap(), ne = new WeakMap(), a(j, "NineTableSheet"), v(j, "SCROLLBAR_SIZE", 16);
|
|
526
526
|
let ye = j;
|
|
527
527
|
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ye);
|
|
528
528
|
var re;
|
|
@@ -611,13 +611,13 @@ const Ae = class Ae {
|
|
|
611
611
|
}, "#applyAutoHeight"));
|
|
612
612
|
v(this, "updateSplitters", /* @__PURE__ */ a(() => {
|
|
613
613
|
const s = e(this, E).querySelector("nine-table-sheets-body");
|
|
614
|
-
if (!s) return;
|
|
614
|
+
if (O.log(s), !s) return;
|
|
615
615
|
const t = Array.from(s.querySelectorAll("nine-table-sheet"));
|
|
616
|
-
Array.from(s.querySelectorAll("nine-splitter
|
|
616
|
+
Array.from(s.querySelectorAll("nine-splitter")).forEach((o) => o.style.setProperty("display", "none", "important"));
|
|
617
617
|
const n = t.filter((o) => o.classList.contains("active"));
|
|
618
|
-
n.length < 2
|
|
619
|
-
const r = parseInt(o.getAttribute("data-index"), 10), l = s.querySelector(`nine-splitter
|
|
620
|
-
|
|
618
|
+
O.log(n), !(n.length < 2) && n.forEach((o) => {
|
|
619
|
+
const r = parseInt(o.getAttribute("data-index"), 10), l = s.querySelector(`nine-splitter[data-split-index="${r}"]`);
|
|
620
|
+
O.log(l);
|
|
621
621
|
const b = t[r + 1];
|
|
622
622
|
l && b && b.classList.contains("active") && l.style.setProperty("display", "block", "important");
|
|
623
623
|
});
|
|
@@ -747,36 +747,36 @@ const Ae = class Ae {
|
|
|
747
747
|
};
|
|
748
748
|
E = new WeakMap(), G = new WeakMap(), oe = new WeakMap(), J = new WeakMap(), le = new WeakMap(), a(Ae, "LayoutManager");
|
|
749
749
|
let we = Ae;
|
|
750
|
-
var z,
|
|
750
|
+
var z, Y;
|
|
751
751
|
const Ce = class Ce {
|
|
752
752
|
constructor(s) {
|
|
753
753
|
u(this, z);
|
|
754
|
-
u(this,
|
|
754
|
+
u(this, Y, -1);
|
|
755
755
|
v(this, "count", /* @__PURE__ */ a(() => e(this, z).rawRecords.length, "count"));
|
|
756
756
|
p(this, z, s);
|
|
757
757
|
}
|
|
758
758
|
get at() {
|
|
759
|
-
return e(this,
|
|
759
|
+
return e(this, Y);
|
|
760
760
|
}
|
|
761
761
|
set at(s) {
|
|
762
762
|
var i, n;
|
|
763
|
-
p(this,
|
|
763
|
+
p(this, Y, parseInt(s, 10));
|
|
764
764
|
const t = ((n = (i = e(this, z).owner).querySelector) == null ? void 0 : n.call(i, ".ng-container-body")) || e(this, z).owner.body;
|
|
765
|
-
t && !t.querySelector(`tbody.bindable tr[data-row="${e(this,
|
|
765
|
+
t && !t.querySelector(`tbody.bindable tr[data-row="${e(this, Y)}"]`) && setTimeout(() => {
|
|
766
766
|
var o, r;
|
|
767
|
-
(r = (o = e(this, z).owner).scrollTo_V1) == null || r.call(o, e(this,
|
|
767
|
+
(r = (o = e(this, z).owner).scrollTo_V1) == null || r.call(o, e(this, Y));
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
770
|
};
|
|
771
|
-
z = new WeakMap(),
|
|
771
|
+
z = new WeakMap(), Y = new WeakMap(), a(Ce, "ngRow");
|
|
772
772
|
let ve = Ce;
|
|
773
|
-
var R, w, k,
|
|
773
|
+
var R, w, k, K, ae, W, ce, Q, he, de, Z;
|
|
774
774
|
const T = class T {
|
|
775
775
|
constructor(s, t) {
|
|
776
776
|
u(this, R);
|
|
777
777
|
u(this, w);
|
|
778
778
|
u(this, k, []);
|
|
779
|
-
u(this,
|
|
779
|
+
u(this, K, []);
|
|
780
780
|
u(this, ae, 0);
|
|
781
781
|
u(this, W, []);
|
|
782
782
|
u(this, ce, /* @__PURE__ */ a(() => {
|
|
@@ -802,11 +802,11 @@ const T = class T {
|
|
|
802
802
|
_: [0, 0, 0, 0, T.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, W).slice(), -1, {}, {}]
|
|
803
803
|
}), "#getDefaultMeta"));
|
|
804
804
|
v(this, "reset", /* @__PURE__ */ a(() => {
|
|
805
|
-
p(this, k, []), p(this,
|
|
805
|
+
p(this, k, []), p(this, K, []);
|
|
806
806
|
}, "reset"));
|
|
807
807
|
v(this, "clear", /* @__PURE__ */ a(() => {
|
|
808
808
|
var s;
|
|
809
|
-
e(this, w).rawRecords = [], p(this, k, []), p(this,
|
|
809
|
+
e(this, w).rawRecords = [], p(this, k, []), p(this, K, []), (s = e(this, w).viewRecords) != null && s.reset && e(this, w).viewRecords.reset();
|
|
810
810
|
}, "clear"));
|
|
811
811
|
u(this, he, /* @__PURE__ */ a((s) => {
|
|
812
812
|
var n;
|
|
@@ -856,14 +856,14 @@ const T = class T {
|
|
|
856
856
|
l !== i && r.__ng.rowState !== T.ROW_STATE.INSERT && (r.__ng.o.hasOwnProperty(t) || (r.__ng.o[t] = l), r.__ng.rowState = T.ROW_STATE.UPDATE), r.v[o] = i, e(this, w).owner.refreshData && e(this, w).owner.refreshData(s);
|
|
857
857
|
}, "setValue"));
|
|
858
858
|
v(this, "resetRecords", /* @__PURE__ */ a(() => {
|
|
859
|
-
p(this,
|
|
859
|
+
p(this, K, e(this, w).rawRecords.filter((s) => !s.__ng.deleted)), p(this, k, e(this, w).rawRecords.filter((s) => !s.__ng.deleted && !s.__ng.filtered)), e(this, w).rawRecords.forEach((s, t) => {
|
|
860
860
|
s.__ng.rowidx = t;
|
|
861
861
|
}), e(this, k).forEach((s, t) => {
|
|
862
862
|
s.__ng.i = t;
|
|
863
863
|
});
|
|
864
864
|
}, "resetRecords"));
|
|
865
865
|
v(this, "getValidData", /* @__PURE__ */ a(() => (e(this, k).length === 0 && e(this, w).rawRecords.length > 0 && this.resetRecords(), e(this, k)), "getValidData"));
|
|
866
|
-
u(this,
|
|
866
|
+
u(this, Z, /* @__PURE__ */ a((s) => {
|
|
867
867
|
var i;
|
|
868
868
|
if (!s) return s;
|
|
869
869
|
const t = typeof ((i = e(this, R).fields) == null ? void 0 : i.get) == "function" ? e(this, R).fields.get() : [];
|
|
@@ -879,19 +879,19 @@ const T = class T {
|
|
|
879
879
|
var o;
|
|
880
880
|
const i = this.getValidData();
|
|
881
881
|
if (!i || i.length <= 0) return;
|
|
882
|
-
if (s == null) return e(this,
|
|
882
|
+
if (s == null) return e(this, Z).call(this, i);
|
|
883
883
|
if (s < 0 || s >= i.length) return null;
|
|
884
884
|
const n = typeof ((o = e(this, R).fields) == null ? void 0 : o.get) == "function" ? e(this, R).fields.get() : [];
|
|
885
885
|
if (t != null) {
|
|
886
886
|
const r = n.indexOf(t);
|
|
887
887
|
return r >= 0 ? i[s].v[r] : null;
|
|
888
888
|
}
|
|
889
|
-
return e(this,
|
|
889
|
+
return e(this, Z).call(this, i[s]);
|
|
890
890
|
}, "get"));
|
|
891
891
|
p(this, R, s), p(this, w, t), e(this, ce).call(this);
|
|
892
892
|
}
|
|
893
893
|
get source() {
|
|
894
|
-
return e(this,
|
|
894
|
+
return e(this, Z).call(this, e(this, w).rawRecords);
|
|
895
895
|
}
|
|
896
896
|
set source(s) {
|
|
897
897
|
this.clear(), this.add(s, !1);
|
|
@@ -900,7 +900,7 @@ const T = class T {
|
|
|
900
900
|
return ++He(this, ae)._;
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
|
-
R = new WeakMap(), w = new WeakMap(), k = new WeakMap(),
|
|
903
|
+
R = new WeakMap(), w = new WeakMap(), k = new WeakMap(), K = new WeakMap(), ae = new WeakMap(), W = new WeakMap(), ce = new WeakMap(), Q = new WeakMap(), he = new WeakMap(), de = new WeakMap(), Z = new WeakMap(), a(T, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
904
904
|
v(T, "ROW_STATE", {
|
|
905
905
|
EMPTY: "EMPTY",
|
|
906
906
|
NORMAL: "NORMAL",
|
|
@@ -930,35 +930,35 @@ const Le = class Le {
|
|
|
930
930
|
};
|
|
931
931
|
a(Le, "ngDataManager");
|
|
932
932
|
let Se = Le;
|
|
933
|
-
var
|
|
933
|
+
var F, fe;
|
|
934
934
|
const _e = class _e extends HTMLElement {
|
|
935
935
|
constructor() {
|
|
936
936
|
super();
|
|
937
937
|
//#created = false;
|
|
938
|
-
u(this,
|
|
938
|
+
u(this, F);
|
|
939
939
|
u(this, fe);
|
|
940
|
-
this.attachShadow({ mode: "open" }), p(this,
|
|
940
|
+
this.attachShadow({ mode: "open" }), p(this, F, new Se(this));
|
|
941
941
|
}
|
|
942
942
|
connectedCallback() {
|
|
943
|
-
p(this, fe, new we(this.shadowRoot)),
|
|
943
|
+
p(this, fe, new we(this.shadowRoot)), O.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
944
944
|
}
|
|
945
945
|
disconnectedCallback() {
|
|
946
|
-
|
|
946
|
+
O.log("NineTable disconnected.");
|
|
947
947
|
}
|
|
948
948
|
// π― μΈλΆμμ grid.data.set(...) ννλ‘ μ κ·Όν μ μλλ‘ λ°μ΄ν° λ§€λμ μ€ν
|
|
949
949
|
get data() {
|
|
950
|
-
return e(this,
|
|
950
|
+
return e(this, F).data;
|
|
951
951
|
}
|
|
952
952
|
// π― ν(row) κ΄λ ¨ μ μ΄ μ κ·Όμ μ€ν
|
|
953
953
|
get row() {
|
|
954
|
-
return e(this,
|
|
954
|
+
return e(this, F).row;
|
|
955
955
|
}
|
|
956
956
|
// π― μ 체 λ°μ΄ν° λ§€λμ μ κ·Ό νμν κ²½μ°
|
|
957
957
|
get dataManager() {
|
|
958
|
-
return e(this,
|
|
958
|
+
return e(this, F);
|
|
959
959
|
}
|
|
960
960
|
};
|
|
961
|
-
|
|
961
|
+
F = new WeakMap(), fe = new WeakMap(), a(_e, "NineTable");
|
|
962
962
|
let Ee = _e;
|
|
963
963
|
customElements.get("nine-table") || customElements.define("nine-table", Ee);
|
|
964
964
|
//# sourceMappingURL=nine-table.js.map
|