@ninebone/table 0.0.228 β 0.0.230
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 +185 -196
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +6 -6
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.js
CHANGED
|
@@ -2,49 +2,49 @@ var $e = Object.defineProperty;
|
|
|
2
2
|
var We = (w) => {
|
|
3
3
|
throw TypeError(w);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
5
|
+
var De = (w, i, t) => i in w ? $e(w, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : w[i] = t;
|
|
6
6
|
var a = (w, i) => $e(w, "name", { value: i, configurable: !0 });
|
|
7
|
-
var x = (w, i, t) =>
|
|
8
|
-
var e = (w, i, t) => (
|
|
9
|
-
var
|
|
7
|
+
var x = (w, i, t) => De(w, typeof i != "symbol" ? i + "" : i, t), Oe = (w, i, t) => i.has(w) || We("Cannot " + t);
|
|
8
|
+
var e = (w, i, t) => (Oe(w, i, "read from private field"), t ? t.call(w) : i.get(w)), d = (w, i, t) => i.has(w) ? We("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(w) : i.set(w, t), g = (w, i, t, s) => (Oe(w, i, "write to private field"), s ? s.call(w, t) : i.set(w, t), t);
|
|
9
|
+
var ze = (w, i, t, s) => ({
|
|
10
10
|
set _(n) {
|
|
11
|
-
|
|
11
|
+
g(w, i, n, t);
|
|
12
12
|
},
|
|
13
13
|
get _() {
|
|
14
14
|
return e(w, i, s);
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
-
import { trace as
|
|
18
|
-
const qe = class qe extends
|
|
17
|
+
import { trace as Ne } from "@ninebone/util";
|
|
18
|
+
const qe = class qe extends Ne.constructor {
|
|
19
19
|
constructor() {
|
|
20
20
|
super(), this.init("nine-table", "green");
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
a(qe, "Trace");
|
|
24
24
|
let me = qe;
|
|
25
|
-
const
|
|
26
|
-
var
|
|
25
|
+
const te = new me();
|
|
26
|
+
var L, D, y, N, B, P, se, V, ne;
|
|
27
27
|
const ke = class ke extends HTMLElement {
|
|
28
28
|
constructor() {
|
|
29
29
|
super();
|
|
30
|
-
d(this,
|
|
31
|
-
d(this,
|
|
32
|
-
d(this,
|
|
33
|
-
d(this, D);
|
|
30
|
+
d(this, L);
|
|
31
|
+
d(this, D, !1);
|
|
32
|
+
d(this, y);
|
|
34
33
|
d(this, N);
|
|
34
|
+
d(this, B);
|
|
35
35
|
d(this, P);
|
|
36
36
|
d(this, se, /* @__PURE__ */ a(() => {
|
|
37
|
-
if (!e(this,
|
|
38
|
-
const t = e(this,
|
|
39
|
-
t && (
|
|
37
|
+
if (!e(this, L)) return;
|
|
38
|
+
const t = e(this, L).querySelector(".ng-container-body");
|
|
39
|
+
t && (g(this, P, new ResizeObserver(() => {
|
|
40
40
|
this.refresh();
|
|
41
41
|
})), e(this, P).observe(t));
|
|
42
42
|
}, "#observeResize"));
|
|
43
43
|
x(this, "refresh", /* @__PURE__ */ a(() => {
|
|
44
|
-
if (!e(this,
|
|
45
|
-
const t = e(this,
|
|
44
|
+
if (!e(this, L) || !e(this, y) || e(this, D)) return;
|
|
45
|
+
const t = e(this, y).container, s = t.querySelector("table");
|
|
46
46
|
if (!s) return;
|
|
47
|
-
const n = e(this,
|
|
47
|
+
const n = e(this, y).track, r = e(this, y).thumb, o = e(this, L).querySelector(".ng-container-bottom"), c = t.clientWidth, f = s.scrollWidth;
|
|
48
48
|
if (c !== 0 && f > c)
|
|
49
49
|
o && (o.style.display = "flex");
|
|
50
50
|
else {
|
|
@@ -56,64 +56,64 @@ const ke = class ke extends HTMLElement {
|
|
|
56
56
|
const h = Math.max(Math.min(l * (c / f), l), 20);
|
|
57
57
|
r.style.width = `${h}px`;
|
|
58
58
|
const u = t.scrollLeft, b = f - c;
|
|
59
|
-
let
|
|
60
|
-
b > 0 && (
|
|
59
|
+
let p = 0;
|
|
60
|
+
b > 0 && (p = parseInt(u / b * (l - h), 10)), p < 0 && (p = 0);
|
|
61
61
|
const m = l - h;
|
|
62
|
-
|
|
62
|
+
p > m && (p = m), r.style.left = `${p}px`, te.log(p), e(this, y).left.disabled = p === 0, e(this, y).right.disabled = p >= m - 1;
|
|
63
63
|
}, "refresh"));
|
|
64
64
|
d(this, V, /* @__PURE__ */ a((t) => {
|
|
65
|
-
if (!e(this,
|
|
66
|
-
const s = e(this,
|
|
65
|
+
if (!e(this, y)) return !1;
|
|
66
|
+
const s = e(this, y).container, n = s.querySelector("table");
|
|
67
67
|
if (!n) return !1;
|
|
68
|
-
const r = e(this,
|
|
68
|
+
const r = e(this, y).track.getBoundingClientRect(), o = e(this, y).thumb.clientWidth;
|
|
69
69
|
let c = t;
|
|
70
70
|
c < 0 && (c = 0);
|
|
71
71
|
const f = r.width - o;
|
|
72
|
-
c > f && (c = f), c = parseInt(c, 10), e(this,
|
|
72
|
+
c > f && (c = f), c = parseInt(c, 10), e(this, y).thumb.style.left = `${c}px`, e(this, y).left.disabled = c === 0, e(this, y).right.disabled = c >= f - 1;
|
|
73
73
|
const l = s.clientWidth, h = n.scrollWidth;
|
|
74
74
|
let u = f > 0 ? -c * (h - l) / f : 0;
|
|
75
75
|
return -u > h - l && (u = -(h - l)), -u + 5 > h - l && (u = -(h - l)), l >= h && (u = 0), n.style.transform = `translateX(${u}px)`, c > 0 && c < f - 1;
|
|
76
76
|
}, "#thumbMoveTo"));
|
|
77
77
|
d(this, ne, /* @__PURE__ */ a(() => {
|
|
78
78
|
const t = /* @__PURE__ */ a((n) => {
|
|
79
|
-
clearInterval(e(this,
|
|
80
|
-
const r = parseInt(e(this,
|
|
81
|
-
e(this, V).call(this, r + n),
|
|
82
|
-
clearInterval(e(this,
|
|
83
|
-
const o = parseInt(e(this,
|
|
84
|
-
e(this, V).call(this, o + n) || clearInterval(e(this,
|
|
79
|
+
clearInterval(e(this, N)), clearInterval(e(this, B));
|
|
80
|
+
const r = parseInt(e(this, y).thumb.style.left || 0, 10);
|
|
81
|
+
e(this, V).call(this, r + n), g(this, N, setInterval(() => {
|
|
82
|
+
clearInterval(e(this, N)), g(this, B, setInterval(() => {
|
|
83
|
+
const o = parseInt(e(this, y).thumb.style.left || 0, 10);
|
|
84
|
+
e(this, V).call(this, o + n) || clearInterval(e(this, B));
|
|
85
85
|
}, 50));
|
|
86
86
|
}, 500));
|
|
87
87
|
}, "delayScroll"), s = /* @__PURE__ */ a(() => {
|
|
88
|
-
clearInterval(e(this,
|
|
88
|
+
clearInterval(e(this, N)), clearInterval(e(this, B));
|
|
89
89
|
}, "clearTimer");
|
|
90
90
|
["mouseup", "mouseleave", "touchend"].forEach((n) => {
|
|
91
|
-
e(this,
|
|
92
|
-
}), e(this,
|
|
91
|
+
e(this, y).left.addEventListener(n, s), e(this, y).right.addEventListener(n, s), e(this, y).track.addEventListener(n, s);
|
|
92
|
+
}), e(this, y).left.addEventListener("mousedown", (n) => {
|
|
93
93
|
n.button === 0 && t(-20);
|
|
94
|
-
}), e(this,
|
|
94
|
+
}), e(this, y).right.addEventListener("mousedown", (n) => {
|
|
95
95
|
n.button === 0 && t(20);
|
|
96
|
-
}), e(this,
|
|
96
|
+
}), e(this, y).left.addEventListener("touchstart", () => t(-20)), e(this, y).right.addEventListener("touchstart", () => t(20)), e(this, y).track.addEventListener("mousedown", (n) => {
|
|
97
97
|
if (n.button !== 0) return;
|
|
98
98
|
n.preventDefault();
|
|
99
|
-
const r = e(this,
|
|
99
|
+
const r = e(this, y).track.getBoundingClientRect(), o = e(this, y).thumb.clientWidth;
|
|
100
100
|
e(this, V).call(this, n.clientX - r.left - o / 2);
|
|
101
|
-
}), e(this,
|
|
101
|
+
}), e(this, y).thumb.addEventListener("mousedown", (n) => {
|
|
102
102
|
if (n.button !== 0) return;
|
|
103
|
-
n.stopPropagation(), n.preventDefault(),
|
|
103
|
+
n.stopPropagation(), n.preventDefault(), g(this, D, !0), this.shiftX = n.clientX - e(this, y).thumb.getBoundingClientRect().left;
|
|
104
104
|
const r = /* @__PURE__ */ a((c) => {
|
|
105
|
-
if (!e(this,
|
|
106
|
-
const f = e(this,
|
|
105
|
+
if (!e(this, D)) return;
|
|
106
|
+
const f = e(this, y).track.getBoundingClientRect();
|
|
107
107
|
e(this, V).call(this, c.clientX - f.left - this.shiftX);
|
|
108
108
|
}, "onMouseMove"), o = /* @__PURE__ */ a(() => {
|
|
109
|
-
|
|
109
|
+
g(this, D, !1), s(), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", o), this.refresh();
|
|
110
110
|
}, "onMouseUp");
|
|
111
111
|
document.addEventListener("mousemove", r), document.addEventListener("mouseup", o);
|
|
112
112
|
});
|
|
113
113
|
}, "#init"));
|
|
114
114
|
}
|
|
115
115
|
connectedCallback() {
|
|
116
|
-
if (
|
|
116
|
+
if (g(this, L, this.closest("nine-table-sheet") || this.getRootNode().host), !e(this, L)) return;
|
|
117
117
|
this.innerHTML = `
|
|
118
118
|
<style>
|
|
119
119
|
nine-table-hscrollbar {
|
|
@@ -178,12 +178,12 @@ const ke = class ke extends HTMLElement {
|
|
|
178
178
|
<button class='ng-scroll-right' disabled><div class='ng-scroll-icon'></div></button>
|
|
179
179
|
`;
|
|
180
180
|
const t = /* @__PURE__ */ a(() => {
|
|
181
|
-
const s = e(this,
|
|
181
|
+
const s = e(this, L).querySelector(".ng-container-body");
|
|
182
182
|
if (!s) {
|
|
183
183
|
setTimeout(t, 10);
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
|
-
|
|
186
|
+
g(this, y, {
|
|
187
187
|
container: s,
|
|
188
188
|
track: this.querySelector(".ng-scroll-track"),
|
|
189
189
|
thumb: this.querySelector(".ng-scroll-thumb"),
|
|
@@ -197,19 +197,19 @@ const ke = class ke extends HTMLElement {
|
|
|
197
197
|
e(this, P) && e(this, P).disconnect();
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
|
|
200
|
+
L = new WeakMap(), D = new WeakMap(), y = new WeakMap(), N = new WeakMap(), B = new WeakMap(), P = new WeakMap(), se = new WeakMap(), V = new WeakMap(), ne = new WeakMap(), a(ke, "NineTableHScrollBar");
|
|
201
201
|
let we = ke;
|
|
202
202
|
customElements.get("nine-table-hscrollbar") || customElements.define("nine-table-hscrollbar", we);
|
|
203
|
-
var
|
|
203
|
+
var H, C, R, I, $, W, re, oe, le, G;
|
|
204
204
|
const Le = class Le {
|
|
205
205
|
constructor(i) {
|
|
206
|
-
d(this,
|
|
207
|
-
d(this,
|
|
208
|
-
d(this,
|
|
209
|
-
d(this,
|
|
210
|
-
d(this,
|
|
211
|
-
d(this,
|
|
212
|
-
x(this, "getRowHeight", /* @__PURE__ */ a(() => e(this,
|
|
206
|
+
d(this, H);
|
|
207
|
+
d(this, C, []);
|
|
208
|
+
d(this, R, null);
|
|
209
|
+
d(this, I, null);
|
|
210
|
+
d(this, $, 0);
|
|
211
|
+
d(this, W, 0);
|
|
212
|
+
x(this, "getRowHeight", /* @__PURE__ */ a(() => e(this, R), "getRowHeight"));
|
|
213
213
|
d(this, re, /* @__PURE__ */ a(() => {
|
|
214
214
|
e(this, oe).call(this);
|
|
215
215
|
}, "#init"));
|
|
@@ -217,69 +217,58 @@ const Le = class Le {
|
|
|
217
217
|
* π― λ·°ν¬νΈ ν¬κΈ° λ³ν μμ μ λμ΄ κ³μ° λ° νμν ν κ°μ μ°μ Β·μΊμ±μ μκ²°
|
|
218
218
|
*/
|
|
219
219
|
d(this, oe, /* @__PURE__ */ a(() => {
|
|
220
|
-
!e(this,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
220
|
+
if (!e(this, H) || !(e(this, H) instanceof HTMLElement)) return;
|
|
221
|
+
let i = null;
|
|
222
|
+
g(this, I, new ResizeObserver((t) => {
|
|
223
|
+
for (const s of t) {
|
|
224
|
+
const n = s.target;
|
|
225
|
+
n.classList.contains("active") && (clearTimeout(i), i = setTimeout(() => {
|
|
226
|
+
const r = s.contentRect.height;
|
|
227
|
+
if (r <= 0) return;
|
|
228
|
+
const o = n.clientHeight || r;
|
|
229
|
+
let c = 0;
|
|
230
|
+
const f = n.querySelector(".ng-container-body");
|
|
231
|
+
if (!f) return;
|
|
232
|
+
const l = f.querySelector("thead");
|
|
233
|
+
l && (c += l.offsetHeight);
|
|
234
|
+
const h = Math.max(o - c, 100);
|
|
235
|
+
if (e(this, $) !== h && e(this, R)) {
|
|
236
|
+
g(this, $, h);
|
|
237
|
+
const u = Math.ceil(e(this, $) / e(this, R));
|
|
238
|
+
g(this, W, u + 20), e(this, G).call(this, f);
|
|
238
239
|
}
|
|
239
|
-
}
|
|
240
|
+
}, 100));
|
|
240
241
|
}
|
|
241
|
-
})), e(this,
|
|
242
|
+
})), e(this, I).observe(e(this, H));
|
|
242
243
|
}, "#initResizeObserver"));
|
|
243
|
-
x(this, "initTemplate", /* @__PURE__ */ a((i) => {
|
|
244
|
-
const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
|
|
245
|
-
if (!t) return;
|
|
246
|
-
const s = Array.from(t.querySelectorAll("tr")).filter((n) => !n.classList.contains("nodata"));
|
|
247
|
-
y(this, L, s.map((n) => n.cloneNode(!0))), y(this, S, null), console.log(`[RowManager] Template initialized with ${e(this, L).length} row(s).`);
|
|
248
|
-
}, "initTemplate"));
|
|
249
244
|
// π― ν
νλ¦Ώ μΆμΆ, λμ΄ μΈ‘μ , μ΄κΈ° λ λλ§μ μμμ λ§κ² λ΄λΆμμ μΌκ΄ μ²λ¦¬
|
|
250
245
|
x(this, "initialize", /* @__PURE__ */ a((i) => {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
if (!t) return;
|
|
254
|
-
const s = i.querySelector("tbody");
|
|
255
|
-
if (!s) return;
|
|
256
|
-
const n = Array.from(s.querySelectorAll("tr"));
|
|
257
|
-
y(this, L, n.map((r) => r.cloneNode(!0))), y(this, S, null), e(this, le).call(this, t), e(this, J).call(this, t);
|
|
246
|
+
const t = e(this, H).querySelector(".ng-container-body"), s = i.querySelector("tbody"), n = Array.from(s.querySelectorAll("tr"));
|
|
247
|
+
g(this, C, n.map((r) => r.cloneNode(!0))), g(this, R, null), e(this, le).call(this, t), e(this, G).call(this, t);
|
|
258
248
|
}, "initialize"));
|
|
259
249
|
d(this, le, /* @__PURE__ */ a((i) => {
|
|
260
|
-
if (e(this,
|
|
261
|
-
return e(this,
|
|
262
|
-
if (e(this,
|
|
250
|
+
if (e(this, R) !== null && e(this, R) > 0)
|
|
251
|
+
return e(this, R);
|
|
252
|
+
if (e(this, C).length === 0)
|
|
263
253
|
throw new Error("[RowManager] Template TRs are empty.");
|
|
264
254
|
const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
|
|
265
255
|
if (!t) return 24;
|
|
266
256
|
t.querySelectorAll("tr:not(.nodata)").forEach((u) => u.remove());
|
|
267
257
|
const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment();
|
|
268
|
-
e(this,
|
|
258
|
+
e(this, C).forEach((u) => {
|
|
269
259
|
n.appendChild(u.cloneNode(!0));
|
|
270
260
|
}), s ? s.before(n) : t.appendChild(n);
|
|
271
261
|
const r = i.closest("nine-table-sheet"), o = r ? r.style.display : "", c = r ? r.style.visibility : "", f = r ? r.style.position : "";
|
|
272
262
|
r && (r.style.display === "none" || window.getComputedStyle(r).display === "none") && (r.style.display = "block", r.style.visibility = "hidden", r.style.position = "absolute");
|
|
273
263
|
let l = 0;
|
|
274
264
|
if (t.querySelectorAll("tr:not(.nodata)").forEach((u, b) => {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
y(this, H, u + 20);
|
|
265
|
+
l += u.offsetHeight || u.getBoundingClientRect().height;
|
|
266
|
+
}), r && (r.style.display = o, r.style.visibility = c, r.style.position = f), g(this, R, l), e(this, $) > 0) {
|
|
267
|
+
const u = Math.ceil(e(this, $) / e(this, R));
|
|
268
|
+
g(this, W, u + 20);
|
|
280
269
|
} else
|
|
281
|
-
|
|
282
|
-
return console.log(`[RowManager] Template Height Cached: ${e(this,
|
|
270
|
+
g(this, W, 40);
|
|
271
|
+
return console.log(`[RowManager] Template Height Cached: ${e(this, R)}px | RowCount: ${e(this, W)}`), e(this, R);
|
|
283
272
|
}, "#measureAndCacheHeight"));
|
|
284
273
|
/**
|
|
285
274
|
* π― μΊμλ ν κ°μ λ°ν (μμ λλ§ μ΅μνμ λ°©μ΄ μ°μ°)
|
|
@@ -297,41 +286,41 @@ const Le = class Le {
|
|
|
297
286
|
/**
|
|
298
287
|
* π― μΊμλ ν κ°μλ₯Ό κ³§λ°λ‘ κ°μ Έμμ TR λΌλ μ£Όμ
(μ€λ³΅ κ³μ° μ κ±°)
|
|
299
288
|
*/
|
|
300
|
-
d(this,
|
|
301
|
-
if (e(this,
|
|
289
|
+
d(this, G, /* @__PURE__ */ a((i) => {
|
|
290
|
+
if (e(this, C).length === 0) return;
|
|
302
291
|
const t = i.querySelector("tbody.bindable") || i.querySelector("tbody");
|
|
303
292
|
if (!t) return;
|
|
304
293
|
t.querySelectorAll("tr:not(.nodata)").forEach((o) => o.remove());
|
|
305
|
-
const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), r = e(this,
|
|
294
|
+
const s = t.querySelector("tr.nodata"), n = document.createDocumentFragment(), r = e(this, W);
|
|
306
295
|
for (let o = 0; o < r; o++)
|
|
307
|
-
e(this,
|
|
296
|
+
e(this, C).forEach((c) => {
|
|
308
297
|
n.appendChild(c.cloneNode(!0));
|
|
309
298
|
});
|
|
310
299
|
s ? s.before(n) : t.appendChild(n), console.log(`[RowManager] Rendered ${r} sets into DOM.`);
|
|
311
300
|
}, "#renderRows"));
|
|
312
301
|
x(this, "destroy", /* @__PURE__ */ a(() => {
|
|
313
|
-
e(this,
|
|
302
|
+
e(this, I) && (e(this, I).disconnect(), g(this, I, null));
|
|
314
303
|
}, "destroy"));
|
|
315
|
-
|
|
304
|
+
g(this, H, i), e(this, re).call(this);
|
|
316
305
|
}
|
|
317
306
|
get templateLength() {
|
|
318
|
-
return e(this,
|
|
307
|
+
return e(this, C).length || 1;
|
|
319
308
|
}
|
|
320
309
|
};
|
|
321
|
-
|
|
310
|
+
H = new WeakMap(), C = new WeakMap(), R = new WeakMap(), I = new WeakMap(), $ = new WeakMap(), W = new WeakMap(), re = new WeakMap(), oe = new WeakMap(), le = new WeakMap(), G = new WeakMap(), a(Le, "RowManager");
|
|
322
311
|
let ve = Le;
|
|
323
|
-
var
|
|
324
|
-
const
|
|
312
|
+
var M, U, ae, ce;
|
|
313
|
+
const j = class j extends HTMLElement {
|
|
325
314
|
constructor() {
|
|
326
315
|
super();
|
|
327
|
-
d(this,
|
|
316
|
+
d(this, M, null);
|
|
328
317
|
d(this, U);
|
|
329
318
|
x(this, "generate", /* @__PURE__ */ a((t) => {
|
|
330
319
|
if (!t) return;
|
|
331
320
|
const s = /* @__PURE__ */ a((l) => {
|
|
332
321
|
const h = /* @__PURE__ */ a((b) => {
|
|
333
322
|
if (b.querySelector("colgroup")) return;
|
|
334
|
-
const
|
|
323
|
+
const p = b.querySelector("tbody tr") || b.querySelector("tr"), m = p ? p.querySelectorAll("th, td").length : 1, E = document.createElement("colgroup"), T = Math.max(Math.floor(b.clientWidth / m), 100);
|
|
335
324
|
for (let _ = 0; _ < m; _++) {
|
|
336
325
|
const Y = document.createElement("col");
|
|
337
326
|
Y.setAttribute("width", T), E.appendChild(Y);
|
|
@@ -339,45 +328,45 @@ const G = class G extends HTMLElement {
|
|
|
339
328
|
b.prepend(E);
|
|
340
329
|
}, "ensureColgroup"), u = /* @__PURE__ */ a((b) => {
|
|
341
330
|
if (b.querySelector("thead")) return;
|
|
342
|
-
const
|
|
343
|
-
m ? m.after(
|
|
331
|
+
const p = document.createElement("thead"), m = b.querySelector("colgroup");
|
|
332
|
+
m ? m.after(p) : b.prepend(p);
|
|
344
333
|
}, "ensureThead");
|
|
345
334
|
return h(l), u(l), l.classList.add("nine-table-element"), l;
|
|
346
335
|
}, "initializeTable"), n = t.cloneNode(!0);
|
|
347
|
-
|
|
336
|
+
g(this, M, s(n)), e(this, M).style.display = "table";
|
|
348
337
|
const r = this.querySelector(".ng-container-left"), o = this.querySelector(".ng-container-body"), c = this.querySelector(".ng-container-right"), f = /* @__PURE__ */ a((l, h, u = !1) => {
|
|
349
|
-
const b = l.cloneNode(!0),
|
|
350
|
-
return
|
|
338
|
+
const b = l.cloneNode(!0), p = Array.from(b.querySelectorAll("colgroup col")), m = [];
|
|
339
|
+
return p.forEach((E, T) => {
|
|
351
340
|
const _ = E.getAttribute("fixed");
|
|
352
341
|
let Y = !1;
|
|
353
342
|
u ? Y = _ !== "left" && _ !== "right" : Y = _ === h, Y || m.push(T);
|
|
354
343
|
}), m.reverse().forEach((E) => {
|
|
355
|
-
|
|
344
|
+
p[E] && p[E].remove(), b.querySelectorAll("tr").forEach((T) => {
|
|
356
345
|
const _ = T.querySelectorAll("th, td");
|
|
357
346
|
_[E] && _[E].remove();
|
|
358
347
|
});
|
|
359
348
|
}), b;
|
|
360
349
|
}, "filterTableByFixed");
|
|
361
350
|
if (o) {
|
|
362
|
-
const l = f(e(this,
|
|
363
|
-
o.innerHTML = "", o.appendChild(l), e(this, U).initialize(e(this,
|
|
351
|
+
const l = f(e(this, M), null, !0);
|
|
352
|
+
o.innerHTML = "", o.appendChild(l), e(this, U).initialize(e(this, M));
|
|
364
353
|
}
|
|
365
354
|
if (r) {
|
|
366
|
-
const l = f(e(this,
|
|
355
|
+
const l = f(e(this, M), "left", !1);
|
|
367
356
|
let h = 0;
|
|
368
357
|
l.querySelectorAll("col").forEach((b) => {
|
|
369
|
-
const
|
|
370
|
-
isNaN(
|
|
358
|
+
const p = parseInt(b.getAttribute("width"), 10);
|
|
359
|
+
isNaN(p) || (h += p);
|
|
371
360
|
}), r.innerHTML = "", r.appendChild(l);
|
|
372
361
|
const u = h > 0 ? h : 0;
|
|
373
362
|
r.style.flex = `0 0 ${u}px`, r.style.width = `${u}px`;
|
|
374
363
|
}
|
|
375
364
|
if (c) {
|
|
376
|
-
const l = f(e(this,
|
|
365
|
+
const l = f(e(this, M), "right", !1);
|
|
377
366
|
let h = 0;
|
|
378
367
|
l.querySelectorAll("col").forEach((b) => {
|
|
379
|
-
const
|
|
380
|
-
isNaN(
|
|
368
|
+
const p = parseInt(b.getAttribute("width"), 10);
|
|
369
|
+
isNaN(p) || (h += p);
|
|
381
370
|
}), c.innerHTML = "", c.appendChild(l);
|
|
382
371
|
const u = h > 0 ? h : 0;
|
|
383
372
|
c.style.flex = `0 0 ${u}px`, c.style.width = `${u}px`;
|
|
@@ -408,7 +397,7 @@ const G = class G extends HTMLElement {
|
|
|
408
397
|
e(this, ce).call(this), new MutationObserver((t) => {
|
|
409
398
|
const s = /* @__PURE__ */ a(() => {
|
|
410
399
|
requestAnimationFrame(() => {
|
|
411
|
-
var u, b,
|
|
400
|
+
var u, b, p;
|
|
412
401
|
const n = this.querySelector(".ng-container-left table"), r = this.querySelector(".ng-container-body table"), o = this.querySelector(".ng-container-right table");
|
|
413
402
|
if (!r) return;
|
|
414
403
|
const c = n ? Array.from(n.querySelectorAll("tr")) : [], f = Array.from(r.querySelectorAll("tr")), l = o ? Array.from(o.querySelectorAll("tr")) : [], h = Math.max(c.length, f.length, l.length);
|
|
@@ -416,7 +405,7 @@ const G = class G extends HTMLElement {
|
|
|
416
405
|
const E = [
|
|
417
406
|
((u = c[m]) == null ? void 0 : u.getBoundingClientRect().height) || 0,
|
|
418
407
|
((b = f[m]) == null ? void 0 : b.getBoundingClientRect().height) || 0,
|
|
419
|
-
((
|
|
408
|
+
((p = l[m]) == null ? void 0 : p.getBoundingClientRect().height) || 0
|
|
420
409
|
], T = Math.max(...E);
|
|
421
410
|
T > 0 && (c[m] && (c[m].style.height = `${T}px`), f[m] && (f[m].style.height = `${T}px`), l[m] && (l[m].style.height = `${T}px`));
|
|
422
411
|
}
|
|
@@ -427,7 +416,7 @@ const G = class G extends HTMLElement {
|
|
|
427
416
|
}).observe(this, { attributes: !0 });
|
|
428
417
|
}, "#init"));
|
|
429
418
|
d(this, ce, /* @__PURE__ */ a(() => {
|
|
430
|
-
const t =
|
|
419
|
+
const t = j.SCROLLBAR_SIZE;
|
|
431
420
|
this.innerHTML = `
|
|
432
421
|
<style>
|
|
433
422
|
nine-table-sheet {
|
|
@@ -552,20 +541,20 @@ const G = class G extends HTMLElement {
|
|
|
552
541
|
</div>
|
|
553
542
|
`;
|
|
554
543
|
}, "#render"));
|
|
555
|
-
|
|
544
|
+
g(this, U, new ve(this));
|
|
556
545
|
}
|
|
557
546
|
connectedCallback() {
|
|
558
547
|
e(this, ae).call(this);
|
|
559
548
|
}
|
|
560
549
|
disconnectedCallback() {
|
|
561
|
-
this.innerHTML = "",
|
|
550
|
+
this.innerHTML = "", te.log("NineTableSheet destroyed.");
|
|
562
551
|
}
|
|
563
552
|
};
|
|
564
|
-
|
|
565
|
-
let ie =
|
|
553
|
+
M = new WeakMap(), U = new WeakMap(), ae = new WeakMap(), ce = new WeakMap(), a(j, "NineTableSheet"), x(j, "SCROLLBAR_SIZE", 16);
|
|
554
|
+
let ie = j;
|
|
566
555
|
customElements.get("nine-table-sheet") || customElements.define("nine-table-sheet", ie);
|
|
567
|
-
var he,
|
|
568
|
-
const
|
|
556
|
+
var he, J;
|
|
557
|
+
const _e = class _e extends HTMLElement {
|
|
569
558
|
constructor() {
|
|
570
559
|
super();
|
|
571
560
|
d(this, he, /* @__PURE__ */ a(() => {
|
|
@@ -573,16 +562,16 @@ const Ce = class Ce extends HTMLElement {
|
|
|
573
562
|
(t = this.querySelector(".nine-tab-bar")) == null || t.addEventListener("click", (s) => {
|
|
574
563
|
var o;
|
|
575
564
|
const n = s.ctrlKey || s.metaKey || s.shiftKey, r = parseInt((o = s.target.closest(".nine-tab-item")) == null ? void 0 : o.dataset.index, 10);
|
|
576
|
-
e(this,
|
|
577
|
-
}), e(this,
|
|
565
|
+
e(this, J).call(this, r, n);
|
|
566
|
+
}), e(this, J).call(this, 0, !1);
|
|
578
567
|
}, "#init"));
|
|
579
|
-
d(this,
|
|
568
|
+
d(this, J, /* @__PURE__ */ a((t, s = !1) => {
|
|
580
569
|
const n = /* @__PURE__ */ a(() => {
|
|
581
570
|
const h = Array.from(this.querySelectorAll("nine-table-sheet"));
|
|
582
|
-
Array.from(this.querySelectorAll("nine-splitter")).forEach((
|
|
583
|
-
const b = h.filter((
|
|
584
|
-
b.length < 2 || b.forEach((
|
|
585
|
-
const m = parseInt(
|
|
571
|
+
Array.from(this.querySelectorAll("nine-splitter")).forEach((p) => p.style.setProperty("display", "none"));
|
|
572
|
+
const b = h.filter((p) => p.classList.contains("active"));
|
|
573
|
+
b.length < 2 || b.forEach((p) => {
|
|
574
|
+
const m = parseInt(p.getAttribute("data-index"), 10), E = this.querySelector(`nine-splitter[data-split-index="${m}"]`), T = h[m + 1];
|
|
586
575
|
E && T && T.classList.contains("active") && E.style.setProperty("display", "flex");
|
|
587
576
|
});
|
|
588
577
|
}, "updateSplitters"), r = this.querySelector(".nine-tab-bar"), o = this.querySelector("nine-table-sheets-body"), c = r.querySelectorAll(".nine-tab-item"), f = o.querySelectorAll("nine-table-sheet");
|
|
@@ -612,32 +601,32 @@ const Ce = class Ce extends HTMLElement {
|
|
|
612
601
|
e(this, he).call(this);
|
|
613
602
|
}
|
|
614
603
|
};
|
|
615
|
-
he = new WeakMap(),
|
|
616
|
-
let xe =
|
|
604
|
+
he = new WeakMap(), J = new WeakMap(), a(_e, "NineTableSheets");
|
|
605
|
+
let xe = _e;
|
|
617
606
|
customElements.get("nine-table-sheets") || customElements.define("nine-table-sheets", xe);
|
|
618
|
-
var
|
|
619
|
-
const
|
|
607
|
+
var S, de, Q, fe;
|
|
608
|
+
const Ce = class Ce {
|
|
620
609
|
constructor(i) {
|
|
621
|
-
d(this,
|
|
610
|
+
d(this, S);
|
|
622
611
|
d(this, de, /* @__PURE__ */ a(() => {
|
|
623
612
|
e(this, fe).call(this), new ResizeObserver((i) => {
|
|
624
613
|
for (let t of i)
|
|
625
|
-
e(this,
|
|
626
|
-
}).observe(e(this,
|
|
614
|
+
e(this, S).getAttribute("auto-height") === "true" && e(this, Q).call(this);
|
|
615
|
+
}).observe(e(this, S));
|
|
627
616
|
}, "#init"));
|
|
628
|
-
d(this,
|
|
617
|
+
d(this, Q, /* @__PURE__ */ a(() => {
|
|
629
618
|
var f, l;
|
|
630
|
-
const i = Array.from(e(this,
|
|
619
|
+
const i = Array.from(e(this, S).shadowRoot.querySelectorAll("nine-table-sheet.active"));
|
|
631
620
|
if (i.length === 0) return;
|
|
632
|
-
const t = parseInt(e(this,
|
|
633
|
-
e(this,
|
|
621
|
+
const t = parseInt(e(this, S).getAttribute("max-display-row"), 10) || 10, s = Math.max(...i.map((h) => h.getRowHeight())), n = (f = e(this, S).shadowRoot.querySelector("nine-table-header")) == null ? void 0 : f.getBoundingClientRect().height, r = (l = e(this, S).shadowRoot.querySelector("nine-table-sheets-footer")) == null ? void 0 : l.getBoundingClientRect().height, o = ie.SCROLLBAR_SIZE, c = t * s + n + r + o;
|
|
622
|
+
e(this, S).style.height = `${c}px`;
|
|
634
623
|
}, "#applyAutoHeight"));
|
|
635
624
|
d(this, fe, /* @__PURE__ */ a(() => {
|
|
636
|
-
const t = Array.from(e(this,
|
|
625
|
+
const t = Array.from(e(this, S).children).filter((f) => f.tagName === "TABLE"), s = e(this, S).getAttribute("auto-height") === "true", n = t.length, r = t.map((f, l) => {
|
|
637
626
|
const u = `<nine-table-sheet class="${l === 0 ? "active" : ""}" data-index="${l}"></nine-table-sheet>`, b = l < n - 1 ? `<nine-splitter class="h" data-split-index="${l}"></nine-splitter>` : "";
|
|
638
627
|
return u + b;
|
|
639
628
|
}).join(""), o = t.map((f, l) => `<div class="nine-tab-item ${l === 0 ? "active" : ""}" data-index="${l}">Sheet ${l + 1}</div>`).join("");
|
|
640
|
-
e(this,
|
|
629
|
+
e(this, S).shadowRoot.innerHTML = `
|
|
641
630
|
<style>
|
|
642
631
|
:host {
|
|
643
632
|
display: flex;
|
|
@@ -736,42 +725,42 @@ const _e = class _e {
|
|
|
736
725
|
</nine-table-body>
|
|
737
726
|
<nine-table-footer></nine-table-footer>
|
|
738
727
|
`;
|
|
739
|
-
const c = e(this,
|
|
728
|
+
const c = e(this, S).shadowRoot.querySelectorAll("nine-table-sheet");
|
|
740
729
|
c == null || c.forEach((f, l) => {
|
|
741
730
|
t[l] && setTimeout(() => {
|
|
742
|
-
f.generate(t[l]), s && e(this,
|
|
731
|
+
f.generate(t[l]), s && e(this, Q).call(this);
|
|
743
732
|
});
|
|
744
733
|
});
|
|
745
734
|
}, "#render"));
|
|
746
|
-
|
|
735
|
+
g(this, S, i), e(this, de).call(this);
|
|
747
736
|
}
|
|
748
737
|
};
|
|
749
|
-
|
|
750
|
-
let Se =
|
|
751
|
-
var
|
|
738
|
+
S = new WeakMap(), de = new WeakMap(), Q = new WeakMap(), fe = new WeakMap(), a(Ce, "LayoutManager");
|
|
739
|
+
let Se = Ce;
|
|
740
|
+
var O, X;
|
|
752
741
|
const Me = class Me {
|
|
753
742
|
constructor(i) {
|
|
754
|
-
d(this,
|
|
743
|
+
d(this, O);
|
|
755
744
|
d(this, X, -1);
|
|
756
|
-
x(this, "count", /* @__PURE__ */ a(() => e(this,
|
|
757
|
-
|
|
745
|
+
x(this, "count", /* @__PURE__ */ a(() => e(this, O).rawRecords.length, "count"));
|
|
746
|
+
g(this, O, i);
|
|
758
747
|
}
|
|
759
748
|
get at() {
|
|
760
749
|
return e(this, X);
|
|
761
750
|
}
|
|
762
751
|
set at(i) {
|
|
763
752
|
var s, n;
|
|
764
|
-
|
|
765
|
-
const t = ((n = (s = e(this,
|
|
753
|
+
g(this, X, parseInt(i, 10));
|
|
754
|
+
const t = ((n = (s = e(this, O).owner).querySelector) == null ? void 0 : n.call(s, ".ng-container-body")) || e(this, O).owner.body;
|
|
766
755
|
t && !t.querySelector(`tbody.bindable tr[data-row="${e(this, X)}"]`) && setTimeout(() => {
|
|
767
756
|
var r, o;
|
|
768
|
-
(o = (r = e(this,
|
|
757
|
+
(o = (r = e(this, O).owner).scrollTo_V1) == null || o.call(r, e(this, X));
|
|
769
758
|
});
|
|
770
759
|
}
|
|
771
760
|
};
|
|
772
|
-
|
|
773
|
-
let
|
|
774
|
-
var A, v, q, K, ue,
|
|
761
|
+
O = new WeakMap(), X = new WeakMap(), a(Me, "ngRow");
|
|
762
|
+
let Ee = Me;
|
|
763
|
+
var A, v, q, K, ue, z, be, ee, ge, pe, Z;
|
|
775
764
|
const k = class k {
|
|
776
765
|
constructor(i, t) {
|
|
777
766
|
d(this, A);
|
|
@@ -779,37 +768,37 @@ const k = class k {
|
|
|
779
768
|
d(this, q, []);
|
|
780
769
|
d(this, K, []);
|
|
781
770
|
d(this, ue, 0);
|
|
782
|
-
d(this,
|
|
783
|
-
d(this,
|
|
784
|
-
|
|
771
|
+
d(this, z, []);
|
|
772
|
+
d(this, be, /* @__PURE__ */ a(() => {
|
|
773
|
+
g(this, z, []);
|
|
785
774
|
const i = e(this, A).template || [];
|
|
786
775
|
Array.from(i).forEach((t) => {
|
|
787
776
|
var s;
|
|
788
|
-
e(this,
|
|
777
|
+
e(this, z).push(((s = t.getBoundingClientRect) == null ? void 0 : s.call(t).height) || 24);
|
|
789
778
|
}), (e(this, v).rawRecords || []).forEach((t) => {
|
|
790
|
-
t.__ng || (t.__ng = e(this,
|
|
779
|
+
t.__ng || (t.__ng = e(this, ee).call(this)), t.__ng.height = e(this, z).slice();
|
|
791
780
|
});
|
|
792
781
|
}, "#initialize"));
|
|
793
782
|
x(this, "set", /* @__PURE__ */ a((i) => {
|
|
794
783
|
this.clear(), this.add(i, !1);
|
|
795
784
|
}, "set"));
|
|
796
|
-
d(this,
|
|
785
|
+
d(this, ee, /* @__PURE__ */ a(() => ({
|
|
797
786
|
rowState: k.ROW_STATE.EMPTY,
|
|
798
787
|
deleted: !1,
|
|
799
788
|
filtered: !1,
|
|
800
|
-
height: e(this,
|
|
789
|
+
height: e(this, z).slice(),
|
|
801
790
|
o: {},
|
|
802
791
|
c: {},
|
|
803
|
-
_: [0, 0, 0, 0, k.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this,
|
|
792
|
+
_: [0, 0, 0, 0, k.ROW_STATE.EMPTY, !1, !1, !0, !1, !0, !0, !1, e(this, z).slice(), -1, {}, {}]
|
|
804
793
|
}), "#getDefaultMeta"));
|
|
805
794
|
x(this, "reset", /* @__PURE__ */ a(() => {
|
|
806
|
-
|
|
795
|
+
g(this, q, []), g(this, K, []);
|
|
807
796
|
}, "reset"));
|
|
808
797
|
x(this, "clear", /* @__PURE__ */ a(() => {
|
|
809
798
|
var i;
|
|
810
|
-
e(this, v).rawRecords = [],
|
|
799
|
+
e(this, v).rawRecords = [], g(this, q, []), g(this, K, []), (i = e(this, v).viewRecords) != null && i.reset && e(this, v).viewRecords.reset();
|
|
811
800
|
}, "clear"));
|
|
812
|
-
d(this,
|
|
801
|
+
d(this, ge, /* @__PURE__ */ a((i) => {
|
|
813
802
|
var n;
|
|
814
803
|
Array.isArray(i) || (i = [i]);
|
|
815
804
|
const t = typeof ((n = e(this, A).fields) == null ? void 0 : n.get) == "function" ? e(this, A).fields.get() : Object.keys(i[0] || {}), s = [];
|
|
@@ -820,14 +809,14 @@ const k = class k {
|
|
|
820
809
|
}), s.push(o);
|
|
821
810
|
}), s;
|
|
822
811
|
}, "#json2Array"));
|
|
823
|
-
d(this,
|
|
824
|
-
t.__ng = e(this,
|
|
812
|
+
d(this, pe, /* @__PURE__ */ a((i) => (Array.isArray(i) || (i = [i]), i.forEach((t) => {
|
|
813
|
+
t.__ng = e(this, ee).call(this), t.__ng.rowid = this.nextId, t.__ng.rowState = k.ROW_STATE.INSERT, t.__ng._[0] = t.__ng.rowid;
|
|
825
814
|
}), i), "#defaultInsert"));
|
|
826
815
|
x(this, "add", /* @__PURE__ */ a((i, t = !0) => {
|
|
827
816
|
var r;
|
|
828
817
|
i === void 0 && (i = {});
|
|
829
|
-
const s = e(this,
|
|
830
|
-
e(this, v).rawRecords = e(this, v).rawRecords.concat(e(this,
|
|
818
|
+
const s = e(this, ge).call(this, i);
|
|
819
|
+
e(this, v).rawRecords = e(this, v).rawRecords.concat(e(this, pe).call(this, s)), this.resetRecords();
|
|
831
820
|
const n = this.count() - 1;
|
|
832
821
|
return t || s.forEach((o, c) => {
|
|
833
822
|
const f = e(this, v).rawRecords[n - c];
|
|
@@ -857,7 +846,7 @@ const k = class k {
|
|
|
857
846
|
c !== s && o.__ng.rowState !== k.ROW_STATE.INSERT && (o.__ng.o.hasOwnProperty(t) || (o.__ng.o[t] = c), o.__ng.rowState = k.ROW_STATE.UPDATE), o.v[r] = s, e(this, v).owner.refreshData && e(this, v).owner.refreshData(i);
|
|
858
847
|
}, "setValue"));
|
|
859
848
|
x(this, "resetRecords", /* @__PURE__ */ a(() => {
|
|
860
|
-
|
|
849
|
+
g(this, K, e(this, v).rawRecords.filter((i) => !i.__ng.deleted)), g(this, q, e(this, v).rawRecords.filter((i) => !i.__ng.deleted && !i.__ng.filtered)), e(this, v).rawRecords.forEach((i, t) => {
|
|
861
850
|
i.__ng.rowidx = t;
|
|
862
851
|
}), e(this, q).forEach((i, t) => {
|
|
863
852
|
i.__ng.i = t;
|
|
@@ -889,7 +878,7 @@ const k = class k {
|
|
|
889
878
|
}
|
|
890
879
|
return e(this, Z).call(this, s[i]);
|
|
891
880
|
}, "get"));
|
|
892
|
-
|
|
881
|
+
g(this, A, i), g(this, v, t), e(this, be).call(this);
|
|
893
882
|
}
|
|
894
883
|
get source() {
|
|
895
884
|
return e(this, Z).call(this, e(this, v).rawRecords);
|
|
@@ -898,7 +887,7 @@ const k = class k {
|
|
|
898
887
|
this.clear(), this.add(i, !1);
|
|
899
888
|
}
|
|
900
889
|
get nextId() {
|
|
901
|
-
return ++
|
|
890
|
+
return ++ze(this, ue)._;
|
|
902
891
|
}
|
|
903
892
|
get length() {
|
|
904
893
|
return e(this, q).length;
|
|
@@ -907,7 +896,7 @@ const k = class k {
|
|
|
907
896
|
return this.length;
|
|
908
897
|
}
|
|
909
898
|
};
|
|
910
|
-
A = new WeakMap(), v = new WeakMap(), q = new WeakMap(), K = new WeakMap(), ue = new WeakMap(),
|
|
899
|
+
A = new WeakMap(), v = new WeakMap(), q = new WeakMap(), K = new WeakMap(), ue = new WeakMap(), z = new WeakMap(), be = new WeakMap(), ee = new WeakMap(), ge = new WeakMap(), pe = new WeakMap(), Z = new WeakMap(), a(k, "ngData"), // π― ν μν μ μ μμλ₯Ό ν΄λμ€ λ΄λΆλ‘ λ΄μ¬ν
|
|
911
900
|
x(k, "ROW_STATE", {
|
|
912
901
|
EMPTY: "EMPTY",
|
|
913
902
|
NORMAL: "NORMAL",
|
|
@@ -915,10 +904,10 @@ x(k, "ROW_STATE", {
|
|
|
915
904
|
UPDATE: "UPDATE",
|
|
916
905
|
DELETE: "DELETE"
|
|
917
906
|
});
|
|
918
|
-
let
|
|
907
|
+
let Re = k;
|
|
919
908
|
const He = class He {
|
|
920
909
|
constructor(i) {
|
|
921
|
-
this.owner = i, this.row = new
|
|
910
|
+
this.owner = i, this.row = new Ee(this), this.data = new Re(i, this), this.rawRecords = [], this.viewRecords = [], this.delRecords = [], this.pageCnt = 25, this.viewRecords.reset = () => {
|
|
922
911
|
var t;
|
|
923
912
|
(t = this.owner.view) != null && t.redraw && this.owner.view.redraw();
|
|
924
913
|
}, this.setDataSource = (t) => {
|
|
@@ -937,20 +926,20 @@ const He = class He {
|
|
|
937
926
|
};
|
|
938
927
|
a(He, "ngDataManager");
|
|
939
928
|
let Te = He;
|
|
940
|
-
var F,
|
|
929
|
+
var F, ye;
|
|
941
930
|
const Ie = class Ie extends HTMLElement {
|
|
942
931
|
constructor() {
|
|
943
932
|
super();
|
|
944
933
|
//#created = false;
|
|
945
934
|
d(this, F);
|
|
946
|
-
d(this,
|
|
947
|
-
this.attachShadow({ mode: "open" }),
|
|
935
|
+
d(this, ye);
|
|
936
|
+
this.attachShadow({ mode: "open" }), g(this, F, new Te(this));
|
|
948
937
|
}
|
|
949
938
|
connectedCallback() {
|
|
950
|
-
|
|
939
|
+
g(this, ye, new Se(this)), te.log("NineTable connected."), this.dispatchEvent(new CustomEvent("load", { bubbles: !0, detail: { target: this } }));
|
|
951
940
|
}
|
|
952
941
|
disconnectedCallback() {
|
|
953
|
-
|
|
942
|
+
te.log("NineTable disconnected.");
|
|
954
943
|
}
|
|
955
944
|
// π― μΈλΆμμ grid.data.set(...) ννλ‘ μ κ·Όν μ μλλ‘ λ°μ΄ν° λ§€λμ μ€ν
|
|
956
945
|
get data() {
|
|
@@ -965,7 +954,7 @@ const Ie = class Ie extends HTMLElement {
|
|
|
965
954
|
return e(this, F);
|
|
966
955
|
}
|
|
967
956
|
};
|
|
968
|
-
F = new WeakMap(),
|
|
957
|
+
F = new WeakMap(), ye = new WeakMap(), a(Ie, "NineTable");
|
|
969
958
|
let Ae = Ie;
|
|
970
959
|
customElements.get("nine-table") || customElements.define("nine-table", Ae);
|
|
971
960
|
//# sourceMappingURL=nine-table.js.map
|