@ninebone/table 0.0.315 β 0.0.316
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 +76 -63
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +12 -5
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -23,7 +23,7 @@ const Vt = class Vt extends oe.constructor {
|
|
|
23
23
|
c(Vt, "Trace");
|
|
24
24
|
let Mt = Vt;
|
|
25
25
|
const tt = new Mt();
|
|
26
|
-
var C, M, y, D,
|
|
26
|
+
var C, M, y, D, B, N, dt, P, ft;
|
|
27
27
|
const Xt = class Xt extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
@@ -31,14 +31,14 @@ const Xt = class Xt extends HTMLElement {
|
|
|
31
31
|
h(this, M, !1);
|
|
32
32
|
h(this, y);
|
|
33
33
|
h(this, D);
|
|
34
|
+
h(this, B);
|
|
34
35
|
h(this, N);
|
|
35
|
-
h(this, P);
|
|
36
36
|
h(this, dt, /* @__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, N, new ResizeObserver(() => {
|
|
40
40
|
this.refresh();
|
|
41
|
-
})), t(this,
|
|
41
|
+
})), t(this, N).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;
|
|
@@ -61,7 +61,7 @@ const Xt = class Xt extends HTMLElement {
|
|
|
61
61
|
const E = d - f;
|
|
62
62
|
m > E && (m = E), r.style.left = `${m}px`, tt.log(m), t(this, y).left.disabled = m === 0, t(this, y).right.disabled = m >= E - 1;
|
|
63
63
|
}, "refresh"));
|
|
64
|
-
h(this,
|
|
64
|
+
h(this, P, /* @__PURE__ */ c((e) => {
|
|
65
65
|
if (!t(this, y)) return !1;
|
|
66
66
|
const s = t(this, y).container, o = s.querySelector("table");
|
|
67
67
|
if (!o) return !1;
|
|
@@ -75,16 +75,16 @@ const Xt = class Xt extends HTMLElement {
|
|
|
75
75
|
}, "#thumbMoveTo"));
|
|
76
76
|
h(this, ft, /* @__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, B));
|
|
79
79
|
const r = parseInt(t(this, y).thumb.style.left || 0, 10);
|
|
80
|
-
t(this,
|
|
81
|
-
clearInterval(t(this, D)), g(this,
|
|
80
|
+
t(this, P).call(this, r + o), g(this, D, setInterval(() => {
|
|
81
|
+
clearInterval(t(this, D)), g(this, B, setInterval(() => {
|
|
82
82
|
const n = parseInt(t(this, y).thumb.style.left || 0, 10);
|
|
83
|
-
t(this,
|
|
83
|
+
t(this, P).call(this, n + o) || clearInterval(t(this, B));
|
|
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, B));
|
|
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);
|
|
@@ -96,14 +96,14 @@ const Xt = class Xt extends HTMLElement {
|
|
|
96
96
|
if (o.button !== 0) return;
|
|
97
97
|
o.preventDefault();
|
|
98
98
|
const r = t(this, y).track.getBoundingClientRect(), n = t(this, y).thumb.clientWidth;
|
|
99
|
-
t(this,
|
|
99
|
+
t(this, P).call(this, o.clientX - r.left - n / 2);
|
|
100
100
|
}), t(this, y).thumb.addEventListener("mousedown", (o) => {
|
|
101
101
|
if (o.button !== 0) return;
|
|
102
102
|
o.stopPropagation(), o.preventDefault(), g(this, M, !0), this.shiftX = o.clientX - t(this, y).thumb.getBoundingClientRect().left;
|
|
103
103
|
const r = /* @__PURE__ */ c((l) => {
|
|
104
104
|
if (!t(this, M)) return;
|
|
105
105
|
const a = t(this, y).track.getBoundingClientRect();
|
|
106
|
-
t(this,
|
|
106
|
+
t(this, P).call(this, l.clientX - a.left - this.shiftX);
|
|
107
107
|
}, "onMouseMove"), n = /* @__PURE__ */ c(() => {
|
|
108
108
|
g(this, M, !1), s(), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", n), this.refresh();
|
|
109
109
|
}, "onMouseUp");
|
|
@@ -195,10 +195,10 @@ const Xt = class Xt extends HTMLElement {
|
|
|
195
195
|
e();
|
|
196
196
|
}
|
|
197
197
|
disconnectedCallback() {
|
|
198
|
-
t(this,
|
|
198
|
+
t(this, N) && t(this, N).disconnect();
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
|
-
C = new WeakMap(), M = new WeakMap(), y = new WeakMap(), D = new WeakMap(),
|
|
201
|
+
C = new WeakMap(), M = new WeakMap(), y = new WeakMap(), D = new WeakMap(), B = new WeakMap(), N = new WeakMap(), dt = new WeakMap(), P = new WeakMap(), ft = new WeakMap(), c(Xt, "NineTableHScrollBar");
|
|
202
202
|
let It = Xt;
|
|
203
203
|
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", It);
|
|
204
204
|
var Y, I, S, it, st, ut;
|
|
@@ -244,10 +244,10 @@ const Ut = class Ut extends HTMLElement {
|
|
|
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
|
tt.log(m), tt.log(m.scrollHeight);
|
|
247
|
-
const
|
|
248
|
-
if (f > 0 &&
|
|
249
|
-
const
|
|
250
|
-
e.scrollTop = t(this, st) +
|
|
247
|
+
const T = m.scrollHeight - b;
|
|
248
|
+
if (f > 0 && T > 0) {
|
|
249
|
+
const O = u / f * T;
|
|
250
|
+
e.scrollTop = t(this, st) + O;
|
|
251
251
|
}
|
|
252
252
|
this.refresh();
|
|
253
253
|
}, "onMouseMove"), r = /* @__PURE__ */ c(() => {
|
|
@@ -410,8 +410,8 @@ bt = new WeakMap(), K = new WeakMap(), c(H, "TableCompiler"), h(H, bt, /* @__PUR
|
|
|
410
410
|
}
|
|
411
411
|
const b = u.rowSpan || 1, m = u.colSpan || 1;
|
|
412
412
|
for (let E = 0; E < b; E++)
|
|
413
|
-
for (let
|
|
414
|
-
d + E < r && f +
|
|
413
|
+
for (let T = 0; T < m; T++)
|
|
414
|
+
d + E < r && f + T < n && (l[d + E][f + T] = E === 0 && T === 0 ? "1" : "0");
|
|
415
415
|
});
|
|
416
416
|
}), s.forEach((a) => {
|
|
417
417
|
const d = a.sectionRowIndex;
|
|
@@ -560,8 +560,8 @@ const Kt = class Kt {
|
|
|
560
560
|
const a = l.querySelector("tbody");
|
|
561
561
|
if (!a) return;
|
|
562
562
|
Array.from(a.querySelectorAll("tr:not(.nodata)")).forEach((f, u) => {
|
|
563
|
-
var E,
|
|
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) ?? ((
|
|
563
|
+
var E, T, O, Qt;
|
|
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 = (T = t(this, p).dataManager) == null ? void 0 : T.rawRecords) == null ? void 0 : O[b]) ?? ((Qt = t(this, p).data) == null ? void 0 : Qt[b]) ?? { _index: b };
|
|
565
565
|
f.style.display = "", t(this, xt).call(this, f, m, b);
|
|
566
566
|
});
|
|
567
567
|
});
|
|
@@ -586,7 +586,7 @@ const Kt = class Kt {
|
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
p = new WeakMap(), _ = new WeakMap(), R = new WeakMap(), $ = new WeakMap(), V = new WeakMap(), j = new WeakMap(), gt = new WeakMap(), yt = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), pt = new WeakMap(), mt = new WeakMap(), rt = new WeakMap(), F = new WeakMap(), xt = new WeakMap(), c(Kt, "RowManager");
|
|
589
|
-
let
|
|
589
|
+
let zt = Kt;
|
|
590
590
|
var Z, G, vt, wt, St, Et, Rt;
|
|
591
591
|
const et = class et extends HTMLElement {
|
|
592
592
|
constructor() {
|
|
@@ -617,10 +617,16 @@ const et = class et extends HTMLElement {
|
|
|
617
617
|
});
|
|
618
618
|
}, "#updateContainerWidths"));
|
|
619
619
|
w(this, "generate", /* @__PURE__ */ c((e) => {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
620
|
+
var o;
|
|
621
|
+
if (!e) return;
|
|
622
|
+
g(this, Z, Wt.compile(e)), t(this, Z).style.display = "table", t(this, vt).call(this), t(this, wt).call(this);
|
|
623
|
+
const s = ((o = this.querySelector("thead")) == null ? void 0 : o.getBoundingClientRect().height) || 30;
|
|
624
|
+
this.querySelectorAll("tbody.fixed-tbody").forEach((r) => {
|
|
625
|
+
r.style.top = `${s}px`;
|
|
626
|
+
}), t(this, G).initialize(), setTimeout(() => {
|
|
627
|
+
var r;
|
|
628
|
+
(r = this.querySelector("nine-table-hscrollbar")) == null || r.refresh();
|
|
629
|
+
}, 0);
|
|
624
630
|
}, "generate"));
|
|
625
631
|
/**
|
|
626
632
|
* π― λ§μ€ν° ν
μ΄λΈμ κΈ°λ°μΌλ‘ νΉμ fixed νμ
μμλ§ λ¨κΈ°λ λΆν ν¬νΌ
|
|
@@ -629,7 +635,7 @@ const et = class et extends HTMLElement {
|
|
|
629
635
|
const o = e.cloneNode(!0), r = o.querySelector("tbody");
|
|
630
636
|
if (r) {
|
|
631
637
|
const n = document.createElement("tbody");
|
|
632
|
-
n.className = "
|
|
638
|
+
n.className = "fixed-tbody", r.className = "bindable-tbody", r.before(n);
|
|
633
639
|
}
|
|
634
640
|
return s === "left" ? o.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach((n) => {
|
|
635
641
|
n.getAttribute("fixed") !== "left" && n.remove();
|
|
@@ -693,6 +699,13 @@ const et = class et extends HTMLElement {
|
|
|
693
699
|
position: sticky;
|
|
694
700
|
top: 0;
|
|
695
701
|
}
|
|
702
|
+
nine-table-sheet tbody.fixed-tbody {
|
|
703
|
+
position: sticky;
|
|
704
|
+
--top: 25px; /* ν€λ(thead)μ λμ΄λ§νΌ top κ°μ μ£Όκ±°λ ν€λ λ°λ‘ λ°μ μ€λλ‘ μ€μ */
|
|
705
|
+
z-index: 4;
|
|
706
|
+
background-color: red;
|
|
707
|
+
height: 100px;
|
|
708
|
+
}
|
|
696
709
|
|
|
697
710
|
|
|
698
711
|
nine-table-sheet .ng-container-body {
|
|
@@ -794,7 +807,7 @@ const et = class et extends HTMLElement {
|
|
|
794
807
|
</div>
|
|
795
808
|
`;
|
|
796
809
|
}, "#render"));
|
|
797
|
-
g(this, G, new
|
|
810
|
+
g(this, G, new zt(this));
|
|
798
811
|
}
|
|
799
812
|
connectedCallback() {
|
|
800
813
|
t(this, Et).call(this);
|
|
@@ -806,11 +819,11 @@ const et = class et extends HTMLElement {
|
|
|
806
819
|
Z = new WeakMap(), G = new WeakMap(), vt = new WeakMap(), wt = new WeakMap(), St = new WeakMap(), Et = new WeakMap(), Rt = new WeakMap(), c(et, "NineTableSheet"), w(et, "SCROLLBAR_SIZE", 16);
|
|
807
820
|
let ht = et;
|
|
808
821
|
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ht);
|
|
809
|
-
var
|
|
822
|
+
var kt, lt;
|
|
810
823
|
const jt = class jt extends HTMLElement {
|
|
811
824
|
constructor() {
|
|
812
825
|
super();
|
|
813
|
-
h(this,
|
|
826
|
+
h(this, kt, /* @__PURE__ */ c(() => {
|
|
814
827
|
var e;
|
|
815
828
|
(e = this.querySelector(".nine-tab-bar")) == null || e.addEventListener("click", (s) => {
|
|
816
829
|
var n;
|
|
@@ -824,8 +837,8 @@ const jt = class jt extends HTMLElement {
|
|
|
824
837
|
Array.from(this.querySelectorAll("nine-splitter")).forEach((m) => m.style.setProperty("display", "none"));
|
|
825
838
|
const b = f.filter((m) => m.classList.contains("active"));
|
|
826
839
|
b.length < 2 || b.forEach((m) => {
|
|
827
|
-
const E = parseInt(m.getAttribute("data-index"), 10),
|
|
828
|
-
|
|
840
|
+
const E = parseInt(m.getAttribute("data-index"), 10), T = this.querySelector(`nine-splitter[data-split-index="${E}"]`), O = f[E + 1];
|
|
841
|
+
T && O && O.classList.contains("active") && T.style.setProperty("display", "flex");
|
|
829
842
|
});
|
|
830
843
|
}, "updateSplitters"), r = this.querySelector(".nine-tab-bar"), n = this.querySelector("nine-table-sheets-body"), l = r.querySelectorAll(".nine-tab-item"), a = n.querySelectorAll("nine-table-sheet");
|
|
831
844
|
if (!l[e]) return;
|
|
@@ -851,35 +864,35 @@ const jt = class jt extends HTMLElement {
|
|
|
851
864
|
}, "#switchSheet"));
|
|
852
865
|
}
|
|
853
866
|
connectedCallback() {
|
|
854
|
-
t(this,
|
|
867
|
+
t(this, kt).call(this);
|
|
855
868
|
}
|
|
856
869
|
};
|
|
857
|
-
|
|
858
|
-
let
|
|
859
|
-
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets",
|
|
860
|
-
var
|
|
870
|
+
kt = new WeakMap(), lt = new WeakMap(), c(jt, "NineTableSheets");
|
|
871
|
+
let Ot = jt;
|
|
872
|
+
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", Ot);
|
|
873
|
+
var k, Tt, ct, qt;
|
|
861
874
|
const Ft = class Ft {
|
|
862
875
|
constructor(i) {
|
|
863
|
-
h(this,
|
|
864
|
-
h(this,
|
|
876
|
+
h(this, k);
|
|
877
|
+
h(this, Tt, /* @__PURE__ */ c(() => {
|
|
865
878
|
t(this, qt).call(this), new ResizeObserver((i) => {
|
|
866
879
|
for (let e of i)
|
|
867
|
-
t(this,
|
|
868
|
-
}).observe(t(this,
|
|
880
|
+
t(this, k).getAttribute("auto-height") === "true" && t(this, ct).call(this);
|
|
881
|
+
}).observe(t(this, k));
|
|
869
882
|
}, "#init"));
|
|
870
883
|
h(this, ct, /* @__PURE__ */ c(() => {
|
|
871
884
|
var a, d;
|
|
872
|
-
const i = Array.from(t(this,
|
|
885
|
+
const i = Array.from(t(this, k).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
873
886
|
if (i.length === 0) return;
|
|
874
|
-
const e = parseInt(t(this,
|
|
875
|
-
t(this,
|
|
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 = ht.SCROLLBAR_SIZE, l = e * s + o + r + n;
|
|
888
|
+
t(this, k).style.height = `${l}px`;
|
|
876
889
|
}, "#applyAutoHeight"));
|
|
877
890
|
h(this, qt, /* @__PURE__ */ c(() => {
|
|
878
|
-
const e = Array.from(t(this,
|
|
891
|
+
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) => {
|
|
879
892
|
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>` : "";
|
|
880
893
|
return u + b;
|
|
881
894
|
}).join(""), n = e.map((a, d) => `<div class="nine-tab-item ${d === 0 ? "active" : ""}" data-index="${d}">Sheet ${d + 1}</div>`).join("");
|
|
882
|
-
t(this,
|
|
895
|
+
t(this, k).shadowRoot.innerHTML = `
|
|
883
896
|
<style>
|
|
884
897
|
:host {
|
|
885
898
|
display: flex;
|
|
@@ -978,17 +991,17 @@ const Ft = class Ft {
|
|
|
978
991
|
</nine-table-body>
|
|
979
992
|
<nine-table-footer></nine-table-footer>
|
|
980
993
|
`;
|
|
981
|
-
const l = t(this,
|
|
994
|
+
const l = t(this, k).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
982
995
|
l == null || l.forEach((a, d) => {
|
|
983
996
|
e[d] && setTimeout(() => {
|
|
984
997
|
a.generate(e[d]), s && t(this, ct).call(this);
|
|
985
998
|
});
|
|
986
999
|
});
|
|
987
1000
|
}, "#render"));
|
|
988
|
-
g(this,
|
|
1001
|
+
g(this, k, i), t(this, Tt).call(this);
|
|
989
1002
|
}
|
|
990
1003
|
};
|
|
991
|
-
|
|
1004
|
+
k = new WeakMap(), Tt = new WeakMap(), ct = new WeakMap(), qt = new WeakMap(), c(Ft, "LayoutManager");
|
|
992
1005
|
let Dt = Ft;
|
|
993
1006
|
var W, X;
|
|
994
1007
|
const Zt = class Zt {
|
|
@@ -1012,8 +1025,8 @@ const Zt = class Zt {
|
|
|
1012
1025
|
}
|
|
1013
1026
|
};
|
|
1014
1027
|
W = new WeakMap(), X = new WeakMap(), c(Zt, "ngRow");
|
|
1015
|
-
let
|
|
1016
|
-
var q, v, A, J, At,
|
|
1028
|
+
let Bt = Zt;
|
|
1029
|
+
var q, v, A, J, At, z, Lt, at, Ht, Ct, Q;
|
|
1017
1030
|
const L = class L {
|
|
1018
1031
|
constructor(i, e) {
|
|
1019
1032
|
h(this, q);
|
|
@@ -1021,15 +1034,15 @@ const L = class L {
|
|
|
1021
1034
|
h(this, A, []);
|
|
1022
1035
|
h(this, J, []);
|
|
1023
1036
|
h(this, At, 0);
|
|
1024
|
-
h(this,
|
|
1037
|
+
h(this, z, []);
|
|
1025
1038
|
h(this, Lt, /* @__PURE__ */ c(() => {
|
|
1026
|
-
g(this,
|
|
1039
|
+
g(this, z, []);
|
|
1027
1040
|
const i = t(this, q).template || [];
|
|
1028
1041
|
Array.from(i).forEach((e) => {
|
|
1029
1042
|
var s;
|
|
1030
|
-
t(this,
|
|
1043
|
+
t(this, z).push(((s = e.getBoundingClientRect) == null ? void 0 : s.call(e).height) || 24);
|
|
1031
1044
|
}), (t(this, v).rawRecords || []).forEach((e) => {
|
|
1032
|
-
e.__ng || (e.__ng = t(this, at).call(this)), e.__ng.height = t(this,
|
|
1045
|
+
e.__ng || (e.__ng = t(this, at).call(this)), e.__ng.height = t(this, z).slice();
|
|
1033
1046
|
});
|
|
1034
1047
|
}, "#initialize"));
|
|
1035
1048
|
w(this, "set", /* @__PURE__ */ c((i) => {
|
|
@@ -1039,10 +1052,10 @@ const L = class L {
|
|
|
1039
1052
|
rowState: L.ROW_STATE.EMPTY,
|
|
1040
1053
|
deleted: !1,
|
|
1041
1054
|
filtered: !1,
|
|
1042
|
-
height: t(this,
|
|
1055
|
+
height: t(this, z).slice(),
|
|
1043
1056
|
o: {},
|
|
1044
1057
|
c: {},
|
|
1045
|
-
_: [0, 0, 0, 0, L.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this,
|
|
1058
|
+
_: [0, 0, 0, 0, L.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, t(this, z).slice(), -1, {}, {}]
|
|
1046
1059
|
}), "#getDefaultMeta"));
|
|
1047
1060
|
w(this, "reset", /* @__PURE__ */ c(() => {
|
|
1048
1061
|
g(this, A, []), g(this, J, []);
|
|
@@ -1149,7 +1162,7 @@ const L = class L {
|
|
|
1149
1162
|
return this.length;
|
|
1150
1163
|
}
|
|
1151
1164
|
};
|
|
1152
|
-
q = new WeakMap(), v = new WeakMap(), A = new WeakMap(), J = new WeakMap(), At = new WeakMap(),
|
|
1165
|
+
q = new WeakMap(), v = new WeakMap(), A = new WeakMap(), J = new WeakMap(), At = new WeakMap(), z = new WeakMap(), Lt = new WeakMap(), at = new WeakMap(), Ht = new WeakMap(), Ct = new WeakMap(), Q = new WeakMap(), c(L, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
1153
1166
|
w(L, "ROW_STATE", {
|
|
1154
1167
|
EMPTY: "EMPTY",
|
|
1155
1168
|
NORMAL: "NORMAL",
|
|
@@ -1157,10 +1170,10 @@ w(L, "ROW_STATE", {
|
|
|
1157
1170
|
UPDATE: "UPDATE",
|
|
1158
1171
|
DELETE: "DELETE"
|
|
1159
1172
|
});
|
|
1160
|
-
let
|
|
1173
|
+
let Nt = L;
|
|
1161
1174
|
const Gt = class Gt {
|
|
1162
1175
|
constructor(i) {
|
|
1163
|
-
this.owner = i, this.row = new
|
|
1176
|
+
this.owner = i, this.row = new Bt(this), this.data = new Nt(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
|
|
1164
1177
|
var e;
|
|
1165
1178
|
(e = this.owner.view) != null && e.redraw && this.owner.view.redraw();
|
|
1166
1179
|
}, this.setDataSource = (e) => {
|
|
@@ -1178,7 +1191,7 @@ const Gt = class Gt {
|
|
|
1178
1191
|
}
|
|
1179
1192
|
};
|
|
1180
1193
|
c(Gt, "ngDataManager");
|
|
1181
|
-
let
|
|
1194
|
+
let Pt = Gt;
|
|
1182
1195
|
var U, _t;
|
|
1183
1196
|
const Jt = class Jt extends HTMLElement {
|
|
1184
1197
|
constructor() {
|
|
@@ -1186,7 +1199,7 @@ const Jt = class Jt extends HTMLElement {
|
|
|
1186
1199
|
//#created = false;
|
|
1187
1200
|
h(this, U);
|
|
1188
1201
|
h(this, _t);
|
|
1189
|
-
this.attachShadow({ mode: "open" }), g(this, U, new
|
|
1202
|
+
this.attachShadow({ mode: "open" }), g(this, U, new Pt(this));
|
|
1190
1203
|
}
|
|
1191
1204
|
connectedCallback() {
|
|
1192
1205
|
g(this, _t, new Dt(this)), tt.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|